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 5d7cfad..8d861e4 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 @@ -47,6 +47,8 @@ import org.apache.hadoop.hive.metastore.api.NotificationEvent; import org.apache.hadoop.hive.metastore.api.NotificationEventRequest; 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.Partition; import org.apache.hadoop.hive.metastore.api.PartitionEventType; import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; @@ -841,6 +843,11 @@ public CurrentNotificationEventId getCurrentNotificationEventId() { } @Override + public NotificationEventsCountResponse getNotificationEventsCount(NotificationEventsCountRequest rqst) { + return objectStore.getNotificationEventsCount(rqst); + } + + @Override public void flushCache() { objectStore.flushCache(); } diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java index df01b25..0de12f1 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java @@ -7036,6 +7036,13 @@ public CurrentNotificationEventId get_current_notificationEventId() throws TExce } @Override + public NotificationEventsCountResponse get_notification_events_count(NotificationEventsCountRequest rqst) + throws TException { + RawStore ms = getMS(); + return ms.getNotificationEventsCount(rqst); + } + + @Override public FireEventResponse fire_listener_event(FireEventRequest rqst) throws TException { switch (rqst.getData().getSetField()) { case INSERT_DATA: diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java index 688f181..70451c4 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -2356,6 +2356,13 @@ public CurrentNotificationEventId getCurrentNotificationEventId() throws TExcept return client.get_current_notificationEventId(); } + @InterfaceAudience.LimitedPrivate({"HCatalog"}) + @Override + public NotificationEventsCountResponse getNotificationEventsCount(NotificationEventsCountRequest rqst) + throws TException { + return client.get_notification_events_count(rqst); + } + @InterfaceAudience.LimitedPrivate({"Apache Hive, HCatalog"}) @Override public FireEventResponse fireListenerEvent(FireEventRequest rqst) throws TException { diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java b/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java index 813a283..69a845c 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java @@ -76,6 +76,8 @@ 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.NotificationEventsCountResponse; +import org.apache.hadoop.hive.metastore.api.NotificationEventsCountRequest; import org.apache.hadoop.hive.metastore.api.OpenTxnsResponse; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.PartitionEventType; @@ -1634,6 +1636,15 @@ NotificationEventResponse getNextNotification(long lastEventId, int maxEvents, CurrentNotificationEventId getCurrentNotificationEventId() throws TException; /** + * Get the number of events from given eventID for the input database. + * @return number of events + * @throws TException + */ + @InterfaceAudience.LimitedPrivate({"HCatalog"}) + NotificationEventsCountResponse getNotificationEventsCount(NotificationEventsCountRequest rqst) + throws TException; + + /** * Request that the metastore fire an event. Currently this is only supported for DML * operations, since the metastore knows when DDL operations happen. * @param request diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java index b878115..b86f87c 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java @@ -97,6 +97,8 @@ import org.apache.hadoop.hive.metastore.api.NotificationEvent; import org.apache.hadoop.hive.metastore.api.NotificationEventRequest; 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.Order; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.PartitionEventType; @@ -8312,6 +8314,27 @@ public CurrentNotificationEventId getCurrentNotificationEventId() { } } + @Override + public NotificationEventsCountResponse getNotificationEventsCount(NotificationEventsCountRequest rqst) { + Long result = 0L; + boolean commited = false; + Query query = null; + try { + openTransaction(); + long fromEventId = rqst.getFromEventId(); + String inputDbName = rqst.getDbName(); + String queryStr = "select count(eventId) from " + MNotificationLog.class.getName() + + " where eventId > fromEventId && dbName == inputDbName"; + query = pm.newQuery(queryStr); + query.declareParameters("java.lang.Long fromEventId, java.lang.String inputDbName"); + result = (Long) query.execute(fromEventId, inputDbName); + commited = commitTransaction(); + return new NotificationEventsCountResponse(result.longValue()); + } finally { + rollbackAndCleanup(commited, query); + } + } + private MNotificationLog translateThriftToDb(NotificationEvent entry) { MNotificationLog dbEntry = new MNotificationLog(); dbEntry.setEventId(entry.getEventId()); diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java index a2ae4c5..71982a0 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java @@ -46,6 +46,8 @@ import org.apache.hadoop.hive.metastore.api.NotificationEvent; import org.apache.hadoop.hive.metastore.api.NotificationEventRequest; 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.Partition; import org.apache.hadoop.hive.metastore.api.PartitionEventType; import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; @@ -621,6 +623,13 @@ public AggrStats get_aggr_stats_for(String dbName, String tblName, */ public CurrentNotificationEventId getCurrentNotificationEventId(); + /** + * Get the number of events corresponding to given database with fromEventId. + * This is intended for use by the repl commands to track the progress of incremental dump. + * @return + */ + public NotificationEventsCountResponse getNotificationEventsCount(NotificationEventsCountRequest rqst); + /* * Flush any catalog objects held by the metastore implementation. Note that this does not * flush statistics objects. This should be called at the beginning of each query. diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/TableType.java b/metastore/src/java/org/apache/hadoop/hive/metastore/TableType.java index e9e16d7..962dd81 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/TableType.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/TableType.java @@ -22,5 +22,19 @@ * Typesafe enum for types of tables described by the metastore. */ public enum TableType { - MANAGED_TABLE, EXTERNAL_TABLE, VIRTUAL_VIEW, INDEX_TABLE, MATERIALIZED_VIEW + MANAGED_TABLE ("MANAGED_TABLE"), + EXTERNAL_TABLE("EXTERNAL_TABLE"), + VIRTUAL_VIEW("VIRTUAL_VIEW"), + INDEX_TABLE("INDEX_TABLE"), + MATERIALIZED_VIEW("MATERIALIZED_VIEW"); + + String type = null; + TableType(String type) { + this.type = type; + } + + @Override + public String toString() { + return type; + } } diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java index 697cc2e..93d1ba6 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java @@ -63,6 +63,8 @@ import org.apache.hadoop.hive.metastore.api.NotificationEvent; import org.apache.hadoop.hive.metastore.api.NotificationEventRequest; 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.Partition; import org.apache.hadoop.hive.metastore.api.PartitionEventType; import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; @@ -1803,6 +1805,11 @@ public CurrentNotificationEventId getCurrentNotificationEventId() { } @Override + public NotificationEventsCountResponse getNotificationEventsCount(NotificationEventsCountRequest rqst) { + return rawStore.getNotificationEventsCount(rqst); + } + + @Override public void flushCache() { rawStore.flushCache(); } diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/messaging/EventUtils.java b/metastore/src/java/org/apache/hadoop/hive/metastore/messaging/EventUtils.java index 8205c25..8f90c7a 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/messaging/EventUtils.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/messaging/EventUtils.java @@ -21,6 +21,7 @@ import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.metastore.IMetaStoreClient; import org.apache.hadoop.hive.metastore.api.NotificationEvent; +import org.apache.hadoop.hive.metastore.api.NotificationEventsCountRequest; import org.apache.hadoop.hive.metastore.messaging.event.filters.DatabaseAndTableFilter; import org.apache.thrift.TException; @@ -34,6 +35,7 @@ public interface NotificationFetcher { int getBatchSize() throws IOException; long getCurrentNotificationEventId() throws IOException; + long getDbNotificationEventsCount(long fromEventId, String dbName) throws IOException; List getNextNotificationEvents( long pos, IMetaStoreClient.NotificationFilter filter) throws IOException; } @@ -75,6 +77,17 @@ public long getCurrentNotificationEventId() throws IOException { } @Override + public long getDbNotificationEventsCount(long fromEventId, String dbName) throws IOException { + try { + NotificationEventsCountRequest rqst + = new NotificationEventsCountRequest(fromEventId, dbName); + return msc.getNotificationEventsCount(rqst).getEventsCount(); + } catch (TException e) { + throw new IOException(e); + } + } + + @Override public List getNextNotificationEvents( long pos, IMetaStoreClient.NotificationFilter filter) throws IOException { try { diff --git a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java index fdb2866..4db203d 100644 --- a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java +++ b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java @@ -44,6 +44,8 @@ import org.apache.hadoop.hive.metastore.api.NotificationEvent; import org.apache.hadoop.hive.metastore.api.NotificationEventRequest; 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.Partition; import org.apache.hadoop.hive.metastore.api.PartitionEventType; import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; @@ -793,6 +795,11 @@ public CurrentNotificationEventId getCurrentNotificationEventId() { } @Override + public NotificationEventsCountResponse getNotificationEventsCount(NotificationEventsCountRequest rqst) { + return objectStore.getNotificationEventsCount(rqst); + } + + @Override public void flushCache() { objectStore.flushCache(); } diff --git a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java index f422c4e..fb16cfc 100644 --- a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java +++ b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java @@ -45,6 +45,8 @@ import org.apache.hadoop.hive.metastore.api.NotificationEvent; import org.apache.hadoop.hive.metastore.api.NotificationEventRequest; 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.Partition; import org.apache.hadoop.hive.metastore.api.PartitionEventType; import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; @@ -809,6 +811,10 @@ public CurrentNotificationEventId getCurrentNotificationEventId() { return null; } + @Override + public NotificationEventsCountResponse getNotificationEventsCount(NotificationEventsCountRequest rqst) { + return null; + } public void flushCache() { diff --git a/ql/if/queryplan.thrift b/ql/if/queryplan.thrift index 00b0200..aaf644a 100644 --- a/ql/if/queryplan.thrift +++ b/ql/if/queryplan.thrift @@ -102,6 +102,7 @@ enum StageType { COLUMNSTATS, REPL_DUMP, REPL_BOOTSTRAP_LOAD, + REPL_STATE_LOG } struct Stage { diff --git a/ql/src/gen/thrift/gen-cpp/queryplan_types.cpp b/ql/src/gen/thrift/gen-cpp/queryplan_types.cpp index f467da2..7262017 100644 --- a/ql/src/gen/thrift/gen-cpp/queryplan_types.cpp +++ b/ql/src/gen/thrift/gen-cpp/queryplan_types.cpp @@ -117,7 +117,8 @@ int _kStageTypeValues[] = { StageType::DEPENDENCY_COLLECTION, StageType::COLUMNSTATS, StageType::REPL_DUMP, - StageType::REPL_BOOTSTRAP_LOAD + StageType::REPL_BOOTSTRAP_LOAD, + StageType::REPL_STATE_LOG }; const char* _kStageTypeNames[] = { "CONDITIONAL", @@ -133,9 +134,10 @@ const char* _kStageTypeNames[] = { "DEPENDENCY_COLLECTION", "COLUMNSTATS", "REPL_DUMP", - "REPL_BOOTSTRAP_LOAD" + "REPL_BOOTSTRAP_LOAD", + "REPL_STATE_LOG" }; -const std::map _StageType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(14, _kStageTypeValues, _kStageTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); +const std::map _StageType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(15, _kStageTypeValues, _kStageTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); Adjacency::~Adjacency() throw() { diff --git a/ql/src/gen/thrift/gen-cpp/queryplan_types.h b/ql/src/gen/thrift/gen-cpp/queryplan_types.h index ac87ef7..18dc867 100644 --- a/ql/src/gen/thrift/gen-cpp/queryplan_types.h +++ b/ql/src/gen/thrift/gen-cpp/queryplan_types.h @@ -95,7 +95,8 @@ struct StageType { DEPENDENCY_COLLECTION = 10, COLUMNSTATS = 11, REPL_DUMP = 12, - REPL_BOOTSTRAP_LOAD = 13 + REPL_BOOTSTRAP_LOAD = 13, + REPL_STATE_LOG = 14 }; }; diff --git a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/StageType.java b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/StageType.java index 11a8f6d..ed408d2 100644 --- a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/StageType.java +++ b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/StageType.java @@ -25,7 +25,8 @@ DEPENDENCY_COLLECTION(10), COLUMNSTATS(11), REPL_DUMP(12), - REPL_BOOTSTRAP_LOAD(13); + REPL_BOOTSTRAP_LOAD(13), + REPL_STATE_LOG(14); private final int value; @@ -74,6 +75,8 @@ public static StageType findByValue(int value) { return REPL_DUMP; case 13: return REPL_BOOTSTRAP_LOAD; + case 14: + return REPL_STATE_LOG; default: return null; } diff --git a/ql/src/gen/thrift/gen-php/Types.php b/ql/src/gen/thrift/gen-php/Types.php index 68edfcd..bca2eee 100644 --- a/ql/src/gen/thrift/gen-php/Types.php +++ b/ql/src/gen/thrift/gen-php/Types.php @@ -116,6 +116,7 @@ final class StageType { const COLUMNSTATS = 11; const REPL_DUMP = 12; const REPL_BOOTSTRAP_LOAD = 13; + const REPL_STATE_LOG = 14; static public $__names = array( 0 => 'CONDITIONAL', 1 => 'COPY', @@ -131,6 +132,7 @@ final class StageType { 11 => 'COLUMNSTATS', 12 => 'REPL_DUMP', 13 => 'REPL_BOOTSTRAP_LOAD', + 14 => 'REPL_STATE_LOG', ); } diff --git a/ql/src/gen/thrift/gen-py/queryplan/ttypes.py b/ql/src/gen/thrift/gen-py/queryplan/ttypes.py index 6bf65af..1f0d627 100644 --- a/ql/src/gen/thrift/gen-py/queryplan/ttypes.py +++ b/ql/src/gen/thrift/gen-py/queryplan/ttypes.py @@ -162,6 +162,7 @@ class StageType: COLUMNSTATS = 11 REPL_DUMP = 12 REPL_BOOTSTRAP_LOAD = 13 + REPL_STATE_LOG = 14 _VALUES_TO_NAMES = { 0: "CONDITIONAL", @@ -178,6 +179,7 @@ class StageType: 11: "COLUMNSTATS", 12: "REPL_DUMP", 13: "REPL_BOOTSTRAP_LOAD", + 14: "REPL_STATE_LOG", } _NAMES_TO_VALUES = { @@ -195,6 +197,7 @@ class StageType: "COLUMNSTATS": 11, "REPL_DUMP": 12, "REPL_BOOTSTRAP_LOAD": 13, + "REPL_STATE_LOG": 14, } diff --git a/ql/src/gen/thrift/gen-rb/queryplan_types.rb b/ql/src/gen/thrift/gen-rb/queryplan_types.rb index 2730dde..88d9c17 100644 --- a/ql/src/gen/thrift/gen-rb/queryplan_types.rb +++ b/ql/src/gen/thrift/gen-rb/queryplan_types.rb @@ -74,8 +74,9 @@ module StageType COLUMNSTATS = 11 REPL_DUMP = 12 REPL_BOOTSTRAP_LOAD = 13 - VALUE_MAP = {0 => "CONDITIONAL", 1 => "COPY", 2 => "DDL", 3 => "MAPRED", 4 => "EXPLAIN", 5 => "FETCH", 6 => "FUNC", 7 => "MAPREDLOCAL", 8 => "MOVE", 9 => "STATS", 10 => "DEPENDENCY_COLLECTION", 11 => "COLUMNSTATS", 12 => "REPL_DUMP", 13 => "REPL_BOOTSTRAP_LOAD"} - VALID_VALUES = Set.new([CONDITIONAL, COPY, DDL, MAPRED, EXPLAIN, FETCH, FUNC, MAPREDLOCAL, MOVE, STATS, DEPENDENCY_COLLECTION, COLUMNSTATS, REPL_DUMP, REPL_BOOTSTRAP_LOAD]).freeze + REPL_STATE_LOG = 14 + VALUE_MAP = {0 => "CONDITIONAL", 1 => "COPY", 2 => "DDL", 3 => "MAPRED", 4 => "EXPLAIN", 5 => "FETCH", 6 => "FUNC", 7 => "MAPREDLOCAL", 8 => "MOVE", 9 => "STATS", 10 => "DEPENDENCY_COLLECTION", 11 => "COLUMNSTATS", 12 => "REPL_DUMP", 13 => "REPL_BOOTSTRAP_LOAD", 14 => "REPL_STATE_LOG"} + VALID_VALUES = Set.new([CONDITIONAL, COPY, DDL, MAPRED, EXPLAIN, FETCH, FUNC, MAPREDLOCAL, MOVE, STATS, DEPENDENCY_COLLECTION, COLUMNSTATS, REPL_DUMP, REPL_BOOTSTRAP_LOAD, REPL_STATE_LOG]).freeze end class Adjacency diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/TaskFactory.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/TaskFactory.java index 91ac4bf..fe9b624 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/TaskFactory.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/TaskFactory.java @@ -27,6 +27,8 @@ import org.apache.hadoop.hive.ql.exec.mr.MapredLocalTask; import org.apache.hadoop.hive.ql.exec.repl.ReplDumpTask; import org.apache.hadoop.hive.ql.exec.repl.ReplDumpWork; +import org.apache.hadoop.hive.ql.exec.repl.ReplStateLogTask; +import org.apache.hadoop.hive.ql.exec.repl.ReplStateLogWork; import org.apache.hadoop.hive.ql.exec.repl.bootstrap.ReplLoadTask; import org.apache.hadoop.hive.ql.exec.repl.bootstrap.ReplLoadWork; import org.apache.hadoop.hive.ql.exec.spark.SparkTask; @@ -114,6 +116,7 @@ public TaskTuple(Class workClass, Class> taskClass) { taskvec.add(new TaskTuple(SparkWork.class, SparkTask.class)); taskvec.add(new TaskTuple<>(ReplDumpWork.class, ReplDumpTask.class)); taskvec.add(new TaskTuple<>(ReplLoadWork.class, ReplLoadTask.class)); + taskvec.add(new TaskTuple<>(ReplStateLogWork.class, ReplStateLogTask.class)); } private static ThreadLocal tid = new ThreadLocal() { diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplDumpTask.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplDumpTask.java index 67a67fd..575d7d9 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplDumpTask.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplDumpTask.java @@ -49,6 +49,9 @@ Licensed to the Apache Software Foundation (ASF) under one import org.apache.hadoop.hive.ql.parse.repl.dump.io.FunctionSerializer; import org.apache.hadoop.hive.ql.parse.repl.dump.io.JsonWriter; import org.apache.hadoop.hive.ql.parse.repl.load.DumpMetaData; +import org.apache.hadoop.hive.ql.parse.repl.log.logger.BootstrapDumpLogger; +import org.apache.hadoop.hive.ql.parse.repl.log.logger.IncrementalDumpLogger; +import org.apache.hadoop.hive.ql.parse.repl.log.logger.ReplLogger; import org.apache.hadoop.hive.ql.plan.api.StageType; import org.apache.thrift.TException; import org.slf4j.Logger; @@ -64,7 +67,7 @@ Licensed to the Apache Software Foundation (ASF) under one private static final String FUNCTION_METADATA_FILE_NAME = "_metadata"; private Logger LOG = LoggerFactory.getLogger(ReplDumpTask.class); - private Logger REPL_STATE_LOG = LoggerFactory.getLogger("ReplState"); + private ReplLogger replLogger; @Override public String getName() { @@ -127,8 +130,9 @@ private Long incrementalDump(Path dumpRoot, DumpMetaData dmd, Path cmRoot) throw String dbName = (null != work.dbNameOrPattern && !work.dbNameOrPattern.isEmpty()) ? work.dbNameOrPattern : "?"; - REPL_STATE_LOG - .info("Repl Dump: Started Repl Dump for DB: {}, Dump Type: INCREMENTAL", dbName); + replLogger = new IncrementalDumpLogger(dbName, + evFetcher.getDbNotificationEventsCount(work.eventFrom, dbName)); + replLogger.startLog(); while (evIter.hasNext()) { NotificationEvent ev = evIter.next(); lastReplId = ev.getEventId(); @@ -136,7 +140,7 @@ private Long incrementalDump(Path dumpRoot, DumpMetaData dmd, Path cmRoot) throw dumpEvent(ev, evRoot, cmRoot); } - REPL_STATE_LOG.info("Repl Dump: Completed Repl Dump for DB: {}", dbName); + replLogger.endLog(dumpRoot.toString(), lastReplId.toString()); LOG.info("Done dumping events, preparing to return {},{}", dumpRoot.toUri(), lastReplId); Utils.writeOutput( @@ -159,10 +163,9 @@ private void dumpEvent(NotificationEvent ev, Path evRoot, Path cmRoot) throws Ex conf, getNewEventOnlyReplicationSpec(ev.getEventId()) ); - EventHandlerFactory.handlerFor(ev).handle(context); - REPL_STATE_LOG.info( - "Repl Dump: Dumped event with ID: {}, Type: {} and dumped metadata and data to path {}", - String.valueOf(ev.getEventId()), ev.getEventType(), evRoot.toUri().toString()); + EventHandler eventHandler = EventHandlerFactory.handlerFor(ev); + eventHandler.handle(context); + replLogger.eventLog(String.valueOf(ev.getEventId()), eventHandler.dumpType().toString()); } private ReplicationSpec getNewEventOnlyReplicationSpec(Long eventId) throws SemanticException { @@ -174,12 +177,13 @@ private ReplicationSpec getNewEventOnlyReplicationSpec(Long eventId) throws Sema private Long bootStrapDump(Path dumpRoot, DumpMetaData dmd, Path cmRoot) throws Exception { // bootstrap case Long bootDumpBeginReplId = getHive().getMSC().getCurrentNotificationEventId().getEventId(); + for (String dbName : Utils.matchesDb(getHive(), work.dbNameOrPattern)) { - REPL_STATE_LOG - .info("Repl Dump: Started analyzing Repl Dump for DB: {}, Dump Type: BOOTSTRAP", - dbName); LOG.debug("ReplicationSemanticAnalyzer: analyzeReplDump dumping db: " + dbName); - + replLogger = new BootstrapDumpLogger(dbName, + Utils.getAllTables(getHive(), dbName).size(), + getHive().getAllFunctions().size()); + replLogger.startLog(); Path dbRoot = dumpDbMetadata(dbName, dumpRoot); dumpFunctionMetadata(dbName, dumpRoot); for (String tblName : Utils.matchesTbl(getHive(), dbName, work.tableNameOrPattern)) { @@ -187,6 +191,7 @@ private Long bootStrapDump(Path dumpRoot, DumpMetaData dmd, Path cmRoot) throws "analyzeReplDump dumping table: " + tblName + " to db root " + dbRoot.toUri()); dumpTable(dbName, tblName, dbRoot); } + replLogger.endLog(dumpRoot.toString(), bootDumpBeginReplId.toString()); } Long bootDumpEndReplId = getHive().getMSC().getCurrentNotificationEventId().getEventId(); LOG.info("Bootstrap object dump phase took from {} to {}", bootDumpBeginReplId, @@ -228,7 +233,6 @@ private Path dumpDbMetadata(String dbName, Path dumpRoot) throws Exception { Path dumpPath = new Path(dbRoot, EximUtil.METADATA_NAME); HiveWrapper.Tuple database = new HiveWrapper(getHive(), dbName).database(); EximUtil.createDbExportDump(fs, dumpPath, database.object, database.replicationSpec); - REPL_STATE_LOG.info("Repl Dump: Dumped DB metadata"); return dbRoot; } @@ -240,9 +244,7 @@ private void dumpTable(String dbName, String tblName, Path dbRoot) throws Except new TableExport.Paths(work.astRepresentationForErrorMsg, dbRoot, tblName, conf); String distCpDoAsUser = conf.getVar(HiveConf.ConfVars.HIVE_DISTCP_DOAS_USER); new TableExport(exportPaths, ts, getNewReplicationSpec(), db, distCpDoAsUser, conf).write(); - REPL_STATE_LOG.info( - "Repl Dump: Analyzed dump for table/view: {}.{} and dumping metadata and data to path {}", - dbName, tblName, exportPaths.exportRootDir.toString()); + replLogger.tableLog(tblName, ts.tableHandle.getTableType()); } catch (InvalidTableException te) { // Bootstrap dump shouldn't fail if the table is dropped/renamed while dumping it. // Just log a debug message and skip it. @@ -295,7 +297,7 @@ private void dumpFunctionMetadata(String dbName, Path dumpRoot) throws Exception FunctionSerializer serializer = new FunctionSerializer(tuple.object, conf); serializer.writeTo(jsonWriter, tuple.replicationSpec); } - REPL_STATE_LOG.info("Repl Dump: Dumped metadata for function: {}", functionName); + replLogger.functionLog(functionName); } } @@ -303,8 +305,7 @@ private void dumpFunctionMetadata(String dbName, Path dumpRoot) throws Exception try { HiveWrapper.Tuple tuple = new HiveWrapper(getHive(), dbName).function(functionName); if (tuple.object.getResourceUris().isEmpty()) { - REPL_STATE_LOG.warn( - "Not replicating function: " + functionName + " as it seems to have been created " + LOG.warn("Not replicating function: " + functionName + " as it seems to have been created " + "without USING clause"); return null; } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplStateLogTask.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplStateLogTask.java new file mode 100644 index 0000000..614af54 --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplStateLogTask.java @@ -0,0 +1,51 @@ +/** + * 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.ql.exec.repl; + +import org.apache.hadoop.hive.ql.DriverContext; +import org.apache.hadoop.hive.ql.exec.Task; +import org.apache.hadoop.hive.ql.plan.api.StageType; + +import java.io.Serializable; + +/** + * ReplStateLogTask. + * + * Exists for the sole purpose of reducing the number of dependency edges in the task graph. + **/ +public class ReplStateLogTask extends Task implements Serializable { + + private static final long serialVersionUID = 1L; + + @Override + public int execute(DriverContext driverContext) { + work.replStateLog(); + return 0; + } + + @Override + public StageType getType() { + return StageType.REPL_STATE_LOG; + } + + @Override + public String getName() { + return "REPL_STATE_LOG"; + } +} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplStateLogWork.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplStateLogWork.java new file mode 100644 index 0000000..7e5cc1f --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplStateLogWork.java @@ -0,0 +1,102 @@ +/** + * 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.ql.exec.repl; + +import org.apache.hadoop.hive.metastore.TableType; +import org.apache.hadoop.hive.metastore.api.Database; +import org.apache.hadoop.hive.ql.parse.ReplicationSpec; +import org.apache.hadoop.hive.ql.parse.repl.log.logger.ReplLogger; +import org.apache.hadoop.hive.ql.plan.Explain; +import org.apache.hadoop.hive.ql.plan.Explain.Level; + +import java.io.Serializable; + + +/** + * ReplStateLogWork + * + */ +@Explain(displayName = "Repl State Log", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED }) +public class ReplStateLogWork implements Serializable { + private static final long serialVersionUID = 1L; + private final ReplLogger replLogger; + private final LOG_TYPE logType; + private String eventId; + private String eventType; + private String tableName; + private TableType tableType; + private String functionName; + private String dumpDir; + private String lastReplId; + + private enum LOG_TYPE { + TABLE, + FUNCTION, + EVENT, + END + } + + public ReplStateLogWork(ReplLogger replLogger, String eventId, String eventType) { + this.logType = LOG_TYPE.EVENT; + this.replLogger = replLogger; + this.eventId = eventId; + this.eventType = eventType; + } + + public ReplStateLogWork(ReplLogger replLogger, String tableName, TableType tableType) { + this.logType = LOG_TYPE.TABLE; + this.replLogger = replLogger; + this.tableName = tableName; + this.tableType = tableType; + } + + public ReplStateLogWork(ReplLogger replLogger, String functionName) { + this.logType = LOG_TYPE.FUNCTION; + this.replLogger = replLogger; + this.functionName = functionName; + } + + public ReplStateLogWork(ReplLogger replLogger, String dumpDir, Database db) { + this.logType = LOG_TYPE.END; + this.replLogger = replLogger; + this.dumpDir = dumpDir; + this.lastReplId = ReplicationSpec.getLastReplicatedStateFromParameters(db.getParameters()); + } + + public void replStateLog() { + switch (logType) { + case TABLE: { + replLogger.tableLog(tableName, tableType); + break; + } + case FUNCTION: { + replLogger.functionLog(functionName); + break; + } + case EVENT: { + replLogger.eventLog(eventId, eventType); + break; + } + case END: { + replLogger.endLog(dumpDir, lastReplId); + break; + } + } + } +} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/ReplLoadTask.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/ReplLoadTask.java index 6ea1754..bebbb12 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/ReplLoadTask.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/ReplLoadTask.java @@ -18,9 +18,12 @@ Licensed to the Apache Software Foundation (ASF) under one package org.apache.hadoop.hive.ql.exec.repl.bootstrap; import org.apache.hadoop.hive.conf.HiveConf; +import org.apache.hadoop.hive.metastore.api.Database; +import org.apache.hadoop.hive.metastore.TableType; import org.apache.hadoop.hive.ql.DriverContext; import org.apache.hadoop.hive.ql.exec.Task; import org.apache.hadoop.hive.ql.exec.TaskFactory; +import org.apache.hadoop.hive.ql.exec.repl.ReplStateLogWork; import org.apache.hadoop.hive.ql.exec.repl.bootstrap.events.BootstrapEvent; import org.apache.hadoop.hive.ql.exec.repl.bootstrap.events.DatabaseEvent; import org.apache.hadoop.hive.ql.exec.repl.bootstrap.events.FunctionEvent; @@ -35,6 +38,8 @@ Licensed to the Apache Software Foundation (ASF) under one import org.apache.hadoop.hive.ql.exec.repl.bootstrap.load.table.TableContext; import org.apache.hadoop.hive.ql.exec.repl.bootstrap.load.util.Context; import org.apache.hadoop.hive.ql.parse.SemanticException; +import org.apache.hadoop.hive.ql.parse.repl.log.logger.ReplLogger; +import org.apache.hadoop.hive.ql.plan.ImportTableDesc; import org.apache.hadoop.hive.ql.plan.api.StageType; import java.io.Serializable; @@ -131,6 +136,13 @@ a database ( directory ) partitionsTracker); tableTracker.debugLog("table"); partitionsTracker.debugLog("partitions for table"); + + if (!loadTaskTracker.hasReplicationState()) { + // Add ReplStateLogTask only if no pending table load tasks left for next cycle + ImportTableDesc tableDesc = loadPartitions.tableDesc(); + loadTaskTracker.update(createTableReplLogTask(tableTracker.tasks(), maxTasks, + iterator.replLogger(), tableDesc.getTableName(), tableDesc.tableType())); + } break; } case Partition: { @@ -153,6 +165,13 @@ a database ( directory ) partitionsPostProcessing(iterator, scope, loadTaskTracker, tableTracker, partitionsTracker); partitionsTracker.debugLog("partitions"); + + if (!loadTaskTracker.hasReplicationState()) { + // Add ReplStateLogTask only if no pending table load tasks left for next cycle + ImportTableDesc tableDesc = loadPartitions.tableDesc(); + loadTaskTracker.update(createTableReplLogTask(partitionsTracker.tasks(), maxTasks, + iterator.replLogger(), tableDesc.getTableName(), tableDesc.tableType())); + } break; } case Function: { @@ -166,14 +185,24 @@ a database ( directory ) } loadTaskTracker.update(functionsTracker); functionsTracker.debugLog("functions"); + + // Add ReplStateLogTask as function load tasks are always fully added in current cycle + loadTaskTracker.update(createFunctionReplLogTask(functionsTracker.tasks(), maxTasks, + iterator.replLogger(), loadFunction.functionName())); break; } } + + if (!iterator.currentDbHasNext()) { + loadTaskTracker.update(createEndReplLogTask(maxTasks, context, scope, + iterator.replLogger(), iterator.dumpDirectory())); + } } boolean addAnotherLoadTask = iterator.hasNext() || loadTaskTracker.hasReplicationState(); createBuilderTask(scope.rootTasks, addAnotherLoadTask); if (!iterator.hasNext()) { loadTaskTracker.update(updateDatabaseLastReplID(maxTasks, context, scope)); + work.updateDbEventState(null); } this.childTasks = scope.rootTasks; LOG.info("Root Tasks / Total Tasks : {} / {} ", childTasks.size(), loadTaskTracker.numberOfTasks()); @@ -186,6 +215,46 @@ a database ( directory ) return 0; } + private TaskTracker createTableReplLogTask(List> tableTasks, + int maxTasks, + ReplLogger replLogger, String tableName, TableType tableType) { + ReplStateLogWork replLogWork = new ReplStateLogWork(replLogger, tableName, tableType); + Task replLogTask = TaskFactory.get(replLogWork, conf); + dependency(tableTasks, replLogTask); + + TaskTracker tracker = new TaskTracker(maxTasks); + tracker.addTask(replLogTask); + return tracker; + } + + private TaskTracker createFunctionReplLogTask(List> functionTasks, + int maxTasks, + ReplLogger replLogger, String functionName) { + ReplStateLogWork replLogWork = new ReplStateLogWork(replLogger, functionName); + Task replLogTask = TaskFactory.get(replLogWork, conf); + dependency(functionTasks, replLogTask); + + TaskTracker tracker = new TaskTracker(maxTasks); + tracker.addTask(replLogTask); + return tracker; + } + + private TaskTracker createEndReplLogTask(int maxTasks, Context context, Scope scope, + ReplLogger replLogger, String dumpDir) throws SemanticException { + Database dbInMetadata = work.databaseEvent(context.hiveConf).dbInMetadata(work.dbNameToLoadIn); + ReplStateLogWork replLogWork = new ReplStateLogWork(replLogger, dumpDir, dbInMetadata); + Task replLogTask = TaskFactory.get(replLogWork, conf); + if (null == scope.rootTasks) { + scope.rootTasks.add(replLogTask); + } else { + dependency(scope.rootTasks, replLogTask); + } + + TaskTracker tracker = new TaskTracker(maxTasks); + tracker.addTask(replLogTask); + return tracker; + } + /** * There was a database update done before and we want to make sure we update the last repl * id on this database as we are now going to switch to processing a new database. @@ -243,18 +312,20 @@ private void createBuilderTask(List> rootTasks, /** * add the dependency to the leaf node */ - private boolean dependency(List> tasks, - Task loadTask) { + private boolean dependency(List> tasks, Task tailTask) { if (tasks == null || tasks.isEmpty()) { return true; } for (Task task : tasks) { - boolean dependency = dependency(task.getChildTasks(), loadTask); - if (dependency) { - task.addDependentTask(loadTask); + if (task == tailTask) { + continue; + } + boolean leafNode = dependency(task.getChildTasks(), tailTask); + if (leafNode) { + task.addDependentTask(tailTask); } } - return true; + return false; } @Override diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/ReplLoadWork.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/ReplLoadWork.java index eb18e5f..f51afe1 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/ReplLoadWork.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/ReplLoadWork.java @@ -38,7 +38,7 @@ Licensed to the Apache Software Foundation (ASF) under one public ReplLoadWork(HiveConf hiveConf, String dumpDirectory, String dbNameToLoadIn, String tableNameToLoadIn) throws IOException { this.tableNameToLoadIn = tableNameToLoadIn; - this.iterator = new BootstrapEventsIterator(dumpDirectory, hiveConf); + this.iterator = new BootstrapEventsIterator(dumpDirectory, dbNameToLoadIn, hiveConf); this.dbNameToLoadIn = dbNameToLoadIn; } @@ -61,7 +61,6 @@ void updateDbEventState(DatabaseEvent.State state) { DatabaseEvent databaseEvent(HiveConf hiveConf) { DatabaseEvent databaseEvent = state.toEvent(hiveConf); - state = null; return databaseEvent; } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/events/filesystem/BootstrapEventsIterator.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/events/filesystem/BootstrapEventsIterator.java index 4e635ad..dde72ae 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/events/filesystem/BootstrapEventsIterator.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/events/filesystem/BootstrapEventsIterator.java @@ -17,13 +17,15 @@ Licensed to the Apache Software Foundation (ASF) under one */ package org.apache.hadoop.hive.ql.exec.repl.bootstrap.events.filesystem; -import org.apache.hadoop.fs.FileStatus; -import org.apache.hadoop.fs.FileSystem; -import org.apache.hadoop.fs.Path; +import org.apache.commons.lang.StringUtils; +import org.apache.hadoop.fs.*; import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.ql.exec.repl.bootstrap.load.ReplicationState; import org.apache.hadoop.hive.ql.exec.repl.bootstrap.events.BootstrapEvent; import org.apache.hadoop.hive.ql.parse.EximUtil; +import org.apache.hadoop.hive.ql.parse.ReplicationSemanticAnalyzer; +import org.apache.hadoop.hive.ql.parse.repl.log.logger.BootstrapLoadLogger; +import org.apache.hadoop.hive.ql.parse.repl.log.logger.ReplLogger; import java.io.IOException; import java.util.Arrays; @@ -69,8 +71,13 @@ Licensed to the Apache Software Foundation (ASF) under one warehouse. */ private Iterator dbEventsIterator; + private final String dumpDirectory; + private final String dbNameToLoadIn; + private final HiveConf hiveConf; + private ReplLogger replLogger; - public BootstrapEventsIterator(String dumpDirectory, HiveConf hiveConf) throws IOException { + public BootstrapEventsIterator(String dumpDirectory, String dbNameToLoadIn, HiveConf hiveConf) + throws IOException { Path path = new Path(dumpDirectory); FileSystem fileSystem = path.getFileSystem(hiveConf); FileStatus[] fileStatuses = @@ -93,6 +100,9 @@ public BootstrapEventsIterator(String dumpDirectory, HiveConf hiveConf) throws I } }).collect(Collectors.toList()).iterator(); + this.dumpDirectory = dumpDirectory; + this.dbNameToLoadIn = dbNameToLoadIn; + this.hiveConf = hiveConf; } @Override @@ -101,6 +111,7 @@ public boolean hasNext() { if (currentDatabaseIterator == null) { if (dbEventsIterator.hasNext()) { currentDatabaseIterator = dbEventsIterator.next(); + initReplLogger(); } else { return false; } @@ -127,7 +138,48 @@ public void forEachRemaining(Consumer action) { throw new UnsupportedOperationException("This operation is not supported"); } + public boolean currentDbHasNext() { + return ((currentDatabaseIterator != null) && (currentDatabaseIterator.hasNext())); + } + public void setReplicationState(ReplicationState replicationState) { this.currentDatabaseIterator.replicationState = replicationState; } + + public ReplLogger replLogger() { + return replLogger; + } + + public String dumpDirectory() { + return dumpDirectory; + } + + private void initReplLogger() { + try { + Path dbDumpPath = currentDatabaseIterator.dbLevelPath(); + FileSystem fs = dbDumpPath.getFileSystem(hiveConf); + + long numTables = getSubDirs(fs, dbDumpPath).length; + long numFunctions = 0; + Path funcPath = new Path(dbDumpPath, ReplicationSemanticAnalyzer.FUNCTIONS_ROOT_DIR_NAME); + if (fs.exists(funcPath)) { + numFunctions = getSubDirs(fs, funcPath).length; + } + String dbName = StringUtils.isBlank(dbNameToLoadIn) ? dbDumpPath.getName() : dbNameToLoadIn; + replLogger = new BootstrapLoadLogger(dbName, dumpDirectory, numTables, numFunctions); + replLogger.startLog(); + } catch (IOException e) { + // Ignore the exception + } + } + + FileStatus[] getSubDirs(FileSystem fs, Path dirPath) throws IOException { + return fs.listStatus(dirPath, new PathFilter() { + @Override + public boolean accept(Path p) { + String name = p.getName(); + return !name.startsWith("_") && !name.startsWith("."); + } + }); + } } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/events/filesystem/DatabaseEventsIterator.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/events/filesystem/DatabaseEventsIterator.java index 3100875..dc0e192 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/events/filesystem/DatabaseEventsIterator.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/events/filesystem/DatabaseEventsIterator.java @@ -58,6 +58,10 @@ Licensed to the Apache Software Foundation (ASF) under one remoteIterator = fileSystem.listFiles(dbLevelPath, true); } + public Path dbLevelPath() { + return this.dbLevelPath; + } + @Override public boolean hasNext() { try { diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/load/LoadFunction.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/load/LoadFunction.java index e9b8711..94cbef4 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/load/LoadFunction.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/load/LoadFunction.java @@ -41,6 +41,7 @@ Licensed to the Apache Software Foundation (ASF) under one private Context context; private final FunctionEvent event; private final String dbNameToLoadIn; + private String functionName; private final TaskTracker tracker; public LoadFunction(Context context, FunctionEvent event, String dbNameToLoadIn, @@ -51,6 +52,10 @@ public LoadFunction(Context context, FunctionEvent event, String dbNameToLoadIn, this.tracker = new TaskTracker(existingTracker); } + public String functionName() { + return functionName; + } + public TaskTracker tasks() throws IOException, SemanticException { URI fromURI = EximUtil .getValidatedURI(context.hiveConf, stripQuotes(event.rootDir().toUri().toString())); @@ -63,6 +68,7 @@ public TaskTracker tasks() throws IOException, SemanticException { dbNameToLoadIn, null, fromPath.toString(), null, null, context.hiveConf, context.hiveDb, null, LOG) ); + this.functionName = handler.getFunctionName(); tasks.forEach(tracker::addTask); return tracker; } catch (Exception e) { 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 f088ba9..3be1bec 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 @@ -98,6 +98,10 @@ private String location() throws MetaException, HiveException { } } + public ImportTableDesc tableDesc() { + return tableDesc; + } + public TaskTracker tasks() throws SemanticException { try { /* @@ -149,9 +153,11 @@ private TaskTracker forNewTable() throws Exception { while (iterator.hasNext() && tracker.canAddMoreTasks()) { AddPartitionDesc addPartitionDesc = iterator.next(); tracker.addTask(addSinglePartition(table, addPartitionDesc)); - ReplicationState currentReplicationState = - new ReplicationState(new PartitionState(table.getTableName(), addPartitionDesc)); - updateReplicationState(currentReplicationState); + if (iterator.hasNext()) { + ReplicationState currentReplicationState = + new ReplicationState(new PartitionState(table.getTableName(), addPartitionDesc)); + updateReplicationState(currentReplicationState); + } } return tracker; } @@ -236,13 +242,16 @@ private TaskTracker forExistingTable(AddPartitionDesc lastPartitionReplicated) t boolean encounteredTheLastReplicatedPartition = (lastPartitionReplicated == null); ReplicationSpec replicationSpec = event.replicationSpec(); LOG.debug("table partitioned"); - for (AddPartitionDesc addPartitionDesc : event.partitionDescriptions(tableDesc)) { + + Iterator iterator = event.partitionDescriptions(tableDesc).iterator(); + while (iterator.hasNext()) { /* encounteredTheLastReplicatedPartition will be set, when we break creation of partition tasks for a table, as we have reached the limit of number of tasks we should create for execution. in this case on the next run we have to iterate over the partitions desc to reach the last replicated partition so that we can start replicating partitions after that. */ + AddPartitionDesc addPartitionDesc = iterator.next(); if (encounteredTheLastReplicatedPartition && tracker.canAddMoreTasks()) { Map partSpec = addPartitionDesc.getPartition(0).getPartSpec(); Partition ptn; @@ -257,7 +266,7 @@ private TaskTracker forExistingTable(AddPartitionDesc lastPartitionReplicated) t if (replicationSpec.allowReplacementInto(ptn.getParameters())) { if (replicationSpec.isMetadataOnly()) { tracker.addTask(alterSinglePartition(addPartitionDesc, replicationSpec, ptn)); - if (!tracker.canAddMoreTasks()) { + if (iterator.hasNext() && !tracker.canAddMoreTasks()) { tracker.setReplicationState( new ReplicationState(new PartitionState(table.getTableName(), addPartitionDesc) ) diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/ReplicationSemanticAnalyzer.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/ReplicationSemanticAnalyzer.java index 3e2c513..57aad17 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/ReplicationSemanticAnalyzer.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/ReplicationSemanticAnalyzer.java @@ -28,6 +28,7 @@ Licensed to the Apache Software Foundation (ASF) under one import org.apache.hadoop.hive.ql.exec.Task; import org.apache.hadoop.hive.ql.exec.TaskFactory; import org.apache.hadoop.hive.ql.exec.repl.ReplDumpWork; +import org.apache.hadoop.hive.ql.exec.repl.ReplStateLogWork; import org.apache.hadoop.hive.ql.exec.repl.bootstrap.ReplLoadWork; import org.apache.hadoop.hive.ql.hooks.ReadEntity; import org.apache.hadoop.hive.ql.metadata.HiveException; @@ -37,13 +38,13 @@ Licensed to the Apache Software Foundation (ASF) under one import org.apache.hadoop.hive.ql.parse.repl.load.EventDumpDirComparator; import org.apache.hadoop.hive.ql.parse.repl.load.UpdatedMetaDataTracker; import org.apache.hadoop.hive.ql.parse.repl.load.message.MessageHandler; +import org.apache.hadoop.hive.ql.parse.repl.log.logger.IncrementalLoadLogger; +import org.apache.hadoop.hive.ql.parse.repl.log.logger.ReplLogger; import org.apache.hadoop.hive.ql.plan.AlterDatabaseDesc; import org.apache.hadoop.hive.ql.plan.AlterTableDesc; import org.apache.hadoop.hive.ql.plan.DDLWork; import org.apache.hadoop.hive.ql.plan.DependencyCollectionWork; import org.apache.hadoop.hive.ql.plan.PlanUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import java.io.FileNotFoundException; import java.io.Serializable; @@ -76,7 +77,6 @@ Licensed to the Apache Software Foundation (ASF) under one private static final String dumpSchema = "dump_dir,last_repl_id#string,string"; public static final String FUNCTIONS_ROOT_DIR_NAME = "_functions"; - private final static Logger REPL_STATE_LOG = LoggerFactory.getLogger("ReplState"); ReplicationSemanticAnalyzer(QueryState queryState) throws SemanticException { super(queryState); @@ -329,12 +329,9 @@ private void analyzeReplLoad(ASTNode ast) throws SemanticException { Task evTaskRoot = TaskFactory.get(new DependencyCollectionWork(), conf); Task taskChainTail = evTaskRoot; - int evstage = 0; - int evIter = 0; - - REPL_STATE_LOG.info("Repl Load: Started analyzing Repl load for DB: {} from path {}, Dump Type: INCREMENTAL", - (null != dbNameOrPattern && !dbNameOrPattern.isEmpty()) ? dbNameOrPattern : "?", - loadPath.toUri().toString()); + ReplLogger replLogger = new IncrementalLoadLogger(dbNameOrPattern, + loadPath.toString(), dirsInLoadPath.length); + replLogger.startLog(); for (FileStatus dir : dirsInLoadPath){ LOG.debug("Loading event from {} to {}.{}", dir.getPath().toUri(), dbNameOrPattern, tblNameOrPattern); @@ -361,15 +358,12 @@ private void analyzeReplLoad(ASTNode ast) throws SemanticException { DumpMetaData eventDmd = new DumpMetaData(new Path(locn), conf); List> evTasks = analyzeEventLoad( dbNameOrPattern, tblNameOrPattern, locn, taskChainTail, eventDmd); - evIter++; - REPL_STATE_LOG.info("Repl Load: Analyzed load for event {}/{} " + - "with ID: {}, Type: {}, Path: {}", - evIter, dirsInLoadPath.length, - dir.getPath().getName(), eventDmd.getDumpType().toString(), locn); - LOG.debug("evstage#{} got {} tasks", evstage, evTasks!=null ? evTasks.size() : 0); if ((evTasks != null) && (!evTasks.isEmpty())){ - Task barrierTask = TaskFactory.get(new DependencyCollectionWork(), conf); + ReplStateLogWork replStateLogWork = new ReplStateLogWork(replLogger, + dir.getPath().getName(), + eventDmd.getDumpType().toString()); + Task barrierTask = TaskFactory.get(replStateLogWork, conf); for (Task t : evTasks){ t.addDependentTask(barrierTask); LOG.debug("Added {}:{} as a precursor of barrier task {}:{}", @@ -378,14 +372,9 @@ private void analyzeReplLoad(ASTNode ast) throws SemanticException { LOG.debug("Updated taskChainTail from {}{} to {}{}", taskChainTail.getClass(), taskChainTail.getId(), barrierTask.getClass(), barrierTask.getId()); taskChainTail = barrierTask; - evstage++; } } rootTasks.add(evTaskRoot); - REPL_STATE_LOG.info("Repl Load: Completed analyzing Repl load for DB: {} from path {} and created import " + - "(DDL/COPY/MOVE) tasks", - (null != dbNameOrPattern && !dbNameOrPattern.isEmpty()) ? dbNameOrPattern : "?", - loadPath.toUri().toString()); } } catch (Exception e) { diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/ReplicationSpec.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/ReplicationSpec.java index 1c54d29..235a44c 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/ReplicationSpec.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/ReplicationSpec.java @@ -207,13 +207,6 @@ public boolean apply(@Nullable Partition partition) { }; } - private static String getLastReplicatedStateFromParameters(Map m) { - if ((m != null) && (m.containsKey(KEY.CURR_STATE_ID.toString()))){ - return m.get(KEY.CURR_STATE_ID.toString()); - } - return null; - } - private void init(ASTNode node){ // -> ^(TOK_REPLICATION $replId $isMetadataOnly) isInReplicationScope = true; @@ -225,6 +218,13 @@ private void init(ASTNode node){ } } + public static String getLastReplicatedStateFromParameters(Map m) { + if ((m != null) && (m.containsKey(KEY.CURR_STATE_ID.toString()))){ + return m.get(KEY.CURR_STATE_ID.toString()); + } + return null; + } + /** * @return true if this statement is being run for the purposes of replication */ 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 f40c703..a48a17e 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 @@ -31,6 +31,7 @@ import java.io.DataOutputStream; import java.io.IOException; +import java.util.Collection; import java.util.List; public class Utils { @@ -64,14 +65,18 @@ public static void writeOutput(List values, Path outputFile, HiveConf hi public static Iterable matchesTbl(Hive db, String dbName, String tblPattern) throws HiveException { if (tblPattern == null) { - return Collections2.filter(db.getAllTables(dbName), - tableName -> { - assert tableName != null; - return !tableName.toLowerCase().startsWith( - SemanticAnalyzer.VALUES_TMP_TABLE_NAME_PREFIX.toLowerCase()); - }); + return getAllTables(db, dbName); } else { return db.getTablesByPattern(dbName, tblPattern); } } + + public static Collection getAllTables(Hive db, String dbName) throws HiveException { + return Collections2.filter(db.getAllTables(dbName), + tableName -> { + assert tableName != null; + return !tableName.toLowerCase().startsWith( + SemanticAnalyzer.VALUES_TMP_TABLE_NAME_PREFIX.toLowerCase()); + }); + } } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/CreateFunctionHandler.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/CreateFunctionHandler.java index 3f176aa..caf6f3f 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/CreateFunctionHandler.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/CreateFunctionHandler.java @@ -49,12 +49,20 @@ import static org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.toReadEntity; public class CreateFunctionHandler extends AbstractMessageHandler { + private String functionName; + + public String getFunctionName() { + return functionName; + } + @Override public List> handle(Context context) throws SemanticException { try { FunctionDescBuilder builder = new FunctionDescBuilder(context); CreateFunctionDesc descToLoad = builder.build(); + this.functionName = builder.metadata.function.getFunctionName(); + context.log.debug("Loading function desc : {}", descToLoad.toString()); Task createTask = TaskFactory.get( new FunctionWork(descToLoad), context.hiveConf diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/logger/BootstrapDumpLogger.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/logger/BootstrapDumpLogger.java new file mode 100644 index 0000000..d401d3e --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/logger/BootstrapDumpLogger.java @@ -0,0 +1,63 @@ +/** + * 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.ql.parse.repl.log.logger; + +import org.apache.hadoop.hive.metastore.TableType; +import org.apache.hadoop.hive.ql.parse.repl.log.message.*; + +public class BootstrapDumpLogger extends ReplLogger { + private String dbName; + private Long estimatedNumTables; + private Long estimatedNumFunctions; + private Long tableSeqNo; + private Long functionSeqNo; + + public BootstrapDumpLogger(String dbName, int estimatedNumTables, int estimatedNumFunctions) { + this.dbName = dbName; + this.estimatedNumTables = new Long(estimatedNumTables); + this.estimatedNumFunctions = new Long(estimatedNumFunctions); + this.tableSeqNo = new Long(0); + this.functionSeqNo = new Long(0); + } + + @Override + public void startLog() { + (new BootstrapDumpBeginLog(dbName, estimatedNumTables, estimatedNumFunctions)) + .log(LogTag.START); + } + + @Override + public void tableLog(String tableName, TableType tableType) { + tableSeqNo++; + (new BootstrapDumpTableLog(dbName, tableName, tableType, tableSeqNo, estimatedNumTables)) + .log(LogTag.TABLE_DUMP); + } + + @Override + public void functionLog(String funcName) { + functionSeqNo++; + (new BootstrapDumpFunctionLog(dbName, funcName, functionSeqNo, estimatedNumFunctions)) + .log(LogTag.FUNCTION_DUMP); + } + + @Override + public void endLog(String dumpDir, String lastReplId) { + (new BootstrapDumpEndLog(dbName, tableSeqNo, functionSeqNo, dumpDir, lastReplId)) + .log(LogTag.END); + } +} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/logger/BootstrapLoadLogger.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/logger/BootstrapLoadLogger.java new file mode 100644 index 0000000..7233e42 --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/logger/BootstrapLoadLogger.java @@ -0,0 +1,63 @@ +/** + * 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.ql.parse.repl.log.logger; + +import org.apache.hadoop.hive.metastore.TableType; +import org.apache.hadoop.hive.ql.parse.repl.log.message.*; + +public class BootstrapLoadLogger extends ReplLogger { + private String dbName; + private String dumpDir; + private Long numTables; + private Long numFunctions; + private Long tableSeqNo; + private Long functionSeqNo; + + public BootstrapLoadLogger(String dbName, String dumpDir, long numTables, long numFunctions) { + this.dbName = dbName; + this.dumpDir = dumpDir; + this.numTables = new Long(numTables); + this.numFunctions = new Long(numFunctions); + this.tableSeqNo = new Long(0); + this.functionSeqNo = new Long(0); + } + + @Override + public void startLog() { + (new BootstrapLoadBeginLog(dbName, dumpDir, numTables, numFunctions)).log(LogTag.START); + } + + @Override + public void tableLog(String tableName, TableType tableType) { + tableSeqNo++; + (new BootstrapLoadTableLog(dbName, tableName, tableType, tableSeqNo, numTables)) + .log(LogTag.TABLE_LOAD); + } + + @Override + public void functionLog(String funcName) { + functionSeqNo++; + (new BootstrapLoadFunctionLog(dbName, funcName, functionSeqNo, numFunctions)) + .log(LogTag.FUNCTION_LOAD); + } + + @Override + public void endLog(String dumpDir, String lastReplId) { + (new BootstrapLoadEndLog(dbName, numTables, numFunctions, dumpDir, lastReplId)).log(LogTag.END); + } +} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/logger/IncrementalDumpLogger.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/logger/IncrementalDumpLogger.java new file mode 100644 index 0000000..87810e6 --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/logger/IncrementalDumpLogger.java @@ -0,0 +1,52 @@ +/** + * 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.ql.parse.repl.log.logger; + +import org.apache.hadoop.hive.ql.parse.repl.log.message.IncrementalDumpBeginLog; +import org.apache.hadoop.hive.ql.parse.repl.log.message.IncrementalDumpEndLog; +import org.apache.hadoop.hive.ql.parse.repl.log.message.IncrementalDumpEventLog; +import org.apache.hadoop.hive.ql.parse.repl.log.message.LogTag; + +public class IncrementalDumpLogger extends ReplLogger { + private String dbName; + private Long estimatedNumEvents; + private Long eventSeqNo; + + public IncrementalDumpLogger(String dbName, long estimatedNumEvents) { + this.dbName = dbName; + this.estimatedNumEvents = new Long(estimatedNumEvents); + this.eventSeqNo = new Long(0); + } + + @Override + public void startLog() { + (new IncrementalDumpBeginLog(dbName, estimatedNumEvents)).log(LogTag.START); + } + + @Override + public void eventLog(String eventId, String eventType) { + eventSeqNo++; + (new IncrementalDumpEventLog(dbName, eventId, eventType, eventSeqNo, estimatedNumEvents)) + .log(LogTag.EVENT_DUMP); + } + + @Override + public void endLog(String dumpDir, String lastReplId) { + (new IncrementalDumpEndLog(dbName, eventSeqNo, dumpDir, lastReplId)).log(LogTag.END); + } +} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/logger/IncrementalLoadLogger.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/logger/IncrementalLoadLogger.java new file mode 100644 index 0000000..2ffc6d0 --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/logger/IncrementalLoadLogger.java @@ -0,0 +1,54 @@ +/** + * 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.ql.parse.repl.log.logger; + +import org.apache.hadoop.hive.ql.parse.repl.log.message.IncrementalLoadBeginLog; +import org.apache.hadoop.hive.ql.parse.repl.log.message.IncrementalLoadEndLog; +import org.apache.hadoop.hive.ql.parse.repl.log.message.IncrementalLoadEventLog; +import org.apache.hadoop.hive.ql.parse.repl.log.message.LogTag; + +public class IncrementalLoadLogger extends ReplLogger { + private String dbName; + private String dumpDir; + private Long numEvents; + private Long eventSeqNo; + + public IncrementalLoadLogger(String dbName, String dumpDir, int numEvents) { + this.dbName = dbName; + this.dumpDir = dumpDir; + this.numEvents = new Long(numEvents); + this.eventSeqNo = new Long(0); + } + + @Override + public void startLog() { + (new IncrementalLoadBeginLog(dbName, dumpDir, numEvents)).log(LogTag.START); + } + + @Override + public void eventLog(String eventId, String eventType) { + eventSeqNo++; + (new IncrementalLoadEventLog(dbName, eventId, eventType, eventSeqNo, numEvents)) + .log(LogTag.EVENT_LOAD); + } + + @Override + public void endLog(String dumpDir, String lastReplId) { + (new IncrementalLoadEndLog(dbName, numEvents, dumpDir, lastReplId)).log(LogTag.END); + } +} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/logger/ReplLogger.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/logger/ReplLogger.java new file mode 100644 index 0000000..d32ee6b --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/logger/ReplLogger.java @@ -0,0 +1,36 @@ +/** + * 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.ql.parse.repl.log.logger; + +import org.apache.hadoop.hive.metastore.TableType; + +public abstract class ReplLogger { + + ReplLogger() { + } + + public void tableLog(String tableName, TableType tableType) { + } + public void functionLog(String funcName){ + } + public void eventLog(String eventId, String eventType) { + } + + public abstract void startLog(); + public abstract void endLog(String dumpDir, String lastReplId); +} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/AbstractReplLog.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/AbstractReplLog.java new file mode 100644 index 0000000..3ccb7af --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/AbstractReplLog.java @@ -0,0 +1,44 @@ +/** + * 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.ql.parse.repl.log.message; + +import org.codehaus.jackson.map.DeserializationConfig; +import org.codehaus.jackson.map.ObjectMapper; +import org.codehaus.jackson.map.SerializationConfig; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +abstract class AbstractReplLog { + static final Logger REPL_LOG = LoggerFactory.getLogger("ReplState"); + static final ObjectMapper mapper = new ObjectMapper(); // Thread-safe. + + static { + mapper.configure(DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.configure(SerializationConfig.Feature.AUTO_DETECT_GETTERS, false); + mapper.configure(SerializationConfig.Feature.AUTO_DETECT_IS_GETTERS, false); + mapper.configure(SerializationConfig.Feature.AUTO_DETECT_FIELDS, false); + } + + public void log(LogTag tag) { + try { + REPL_LOG.info("{}: {}", tag.toString(), mapper.writeValueAsString(this)); + } catch (Exception exception) { + throw new IllegalArgumentException("Could not serialize: ", exception); + } + } +} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/BootstrapDumpBeginLog.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/BootstrapDumpBeginLog.java new file mode 100644 index 0000000..7c0e96e --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/BootstrapDumpBeginLog.java @@ -0,0 +1,46 @@ +/** + * 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.ql.parse.repl.log.message; + +import org.apache.hadoop.hive.ql.parse.repl.DumpType; +import org.codehaus.jackson.annotate.JsonProperty; + +public class BootstrapDumpBeginLog extends AbstractReplLog { + @JsonProperty + private String dbName; + + @JsonProperty + private DumpType dumpType; + + @JsonProperty + private Long estimatedNumTables; + + @JsonProperty + private Long estimatedNumFunctions; + + @JsonProperty + private Long dumpStartTime; + + public BootstrapDumpBeginLog(String dbName, Long estimatedNumTables, Long estimatedNumFunctions) { + this.dbName = dbName; + this.dumpType = DumpType.BOOTSTRAP; + this.estimatedNumTables = estimatedNumTables; + this.estimatedNumFunctions = estimatedNumFunctions; + this.dumpStartTime = System.currentTimeMillis() / 1000; + } +} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/BootstrapDumpEndLog.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/BootstrapDumpEndLog.java new file mode 100644 index 0000000..1eb7433 --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/BootstrapDumpEndLog.java @@ -0,0 +1,58 @@ +/** + * 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.ql.parse.repl.log.message; + +import org.apache.hadoop.hive.ql.parse.repl.DumpType; +import org.codehaus.jackson.annotate.JsonProperty; + +public class BootstrapDumpEndLog extends AbstractReplLog { + @JsonProperty + private String dbName; + + @JsonProperty + private DumpType dumpType; + + @JsonProperty + private Long actualNumTables; + + @JsonProperty + private Long actualNumFunctions; + + @JsonProperty + private Long dumpEndTime; + + @JsonProperty + private String dumpDir; + + @JsonProperty + private String lastReplId; + + public BootstrapDumpEndLog(String dbName, + Long actualNumTables, + Long actualNumFunctions, + String dumpDir, + String lastReplId) { + this.dbName = dbName; + this.dumpType = DumpType.BOOTSTRAP; + this.actualNumTables = actualNumTables; + this.actualNumFunctions = actualNumFunctions; + this.dumpEndTime = System.currentTimeMillis() / 1000; + this.dumpDir = dumpDir; + this.lastReplId = lastReplId; + } +} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/BootstrapDumpFunctionLog.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/BootstrapDumpFunctionLog.java new file mode 100644 index 0000000..0026156 --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/BootstrapDumpFunctionLog.java @@ -0,0 +1,43 @@ +/** + * 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.ql.parse.repl.log.message; + +import org.codehaus.jackson.annotate.JsonProperty; + +public class BootstrapDumpFunctionLog extends AbstractReplLog { + @JsonProperty + private String dbName; + + @JsonProperty + private String functionName; + + @JsonProperty + private String functionsDumpProgress; + + @JsonProperty + private Long dumpTime; + + public BootstrapDumpFunctionLog(String dbName, String funcName, + Long functionSeqNo, Long estimatedNumFunctions) { + this.dbName = dbName; + this.functionName = funcName; + this.functionsDumpProgress = new String(new StringBuilder() + .append(functionSeqNo).append("/").append(estimatedNumFunctions)); + this.dumpTime = System.currentTimeMillis() / 1000; + } +} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/BootstrapDumpTableLog.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/BootstrapDumpTableLog.java new file mode 100644 index 0000000..86593f1 --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/BootstrapDumpTableLog.java @@ -0,0 +1,51 @@ +/** + * 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.ql.parse.repl.log.message; + +import org.apache.hadoop.hive.metastore.TableType; +import org.codehaus.jackson.annotate.JsonProperty; + +public class BootstrapDumpTableLog extends AbstractReplLog { + @JsonProperty + private String dbName; + + @JsonProperty + private String tableName; + + @JsonProperty + private String tableType; + + @JsonProperty + private String tablesDumpProgress; + + @JsonProperty + private Long dumpTime; + + public BootstrapDumpTableLog(String dbName, + String tableName, + TableType tableType, + Long tableSeqNo, + Long estimatedNumTables) { + this.dbName = dbName; + this.tableName = tableName; + this.tableType = tableType.toString(); + this.tablesDumpProgress = new String(new StringBuilder() + .append(tableSeqNo).append("/").append(estimatedNumTables)); + this.dumpTime = System.currentTimeMillis() / 1000; + } +} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/BootstrapLoadBeginLog.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/BootstrapLoadBeginLog.java new file mode 100644 index 0000000..1a0ec6a --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/BootstrapLoadBeginLog.java @@ -0,0 +1,50 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.hadoop.hive.ql.parse.repl.log.message; + +import org.apache.hadoop.hive.ql.parse.repl.DumpType; +import org.codehaus.jackson.annotate.JsonProperty; + +public class BootstrapLoadBeginLog extends AbstractReplLog { + @JsonProperty + private String dbName; + + @JsonProperty + private String dumpDir; + + @JsonProperty + private DumpType loadType; + + @JsonProperty + private Long numTables; + + @JsonProperty + private Long numFunctions; + + @JsonProperty + private Long loadStartTime; + + public BootstrapLoadBeginLog(String dbName, String dumpDir, Long numTables, Long numFunctions) { + this.dbName = dbName; + this.dumpDir = dumpDir; + this.loadType = DumpType.BOOTSTRAP; + this.numTables = numTables; + this.numFunctions = numFunctions; + this.loadStartTime = System.currentTimeMillis() / 1000; + } +} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/BootstrapLoadEndLog.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/BootstrapLoadEndLog.java new file mode 100644 index 0000000..3221a46 --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/BootstrapLoadEndLog.java @@ -0,0 +1,58 @@ +/** + * 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.ql.parse.repl.log.message; + +import org.apache.hadoop.hive.ql.parse.repl.DumpType; +import org.codehaus.jackson.annotate.JsonProperty; + +public class BootstrapLoadEndLog extends AbstractReplLog { + @JsonProperty + private String dbName; + + @JsonProperty + private DumpType loadType; + + @JsonProperty + private Long numTables; + + @JsonProperty + private Long numFunctions; + + @JsonProperty + private Long loadEndTime; + + @JsonProperty + private String dumpDir; + + @JsonProperty + private String lastReplId; + + public BootstrapLoadEndLog(String dbName, + Long numTables, + Long numFunctions, + String dumpDir, + String lastReplId) { + this.dbName = dbName; + this.loadType = DumpType.BOOTSTRAP; + this.numTables = numTables; + this.numFunctions = numFunctions; + this.loadEndTime = System.currentTimeMillis() / 1000; + this.dumpDir = dumpDir; + this.lastReplId = lastReplId; + } +} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/BootstrapLoadFunctionLog.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/BootstrapLoadFunctionLog.java new file mode 100644 index 0000000..107676f --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/BootstrapLoadFunctionLog.java @@ -0,0 +1,43 @@ +/** + * 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.ql.parse.repl.log.message; + +import org.codehaus.jackson.annotate.JsonProperty; + +public class BootstrapLoadFunctionLog extends AbstractReplLog { + @JsonProperty + private String dbName; + + @JsonProperty + private String functionName; + + @JsonProperty + private String functionsLoadProgress; + + @JsonProperty + private Long loadTime; + + public BootstrapLoadFunctionLog(String dbName, String funcName, + Long functionSeqNo, Long numFunctions) { + this.dbName = dbName; + this.functionName = funcName; + this.functionsLoadProgress = new String(new StringBuilder() + .append(functionSeqNo).append("/").append(numFunctions)); + this.loadTime = System.currentTimeMillis() / 1000; + } +} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/BootstrapLoadTableLog.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/BootstrapLoadTableLog.java new file mode 100644 index 0000000..929ea19 --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/BootstrapLoadTableLog.java @@ -0,0 +1,51 @@ +/** + * 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.ql.parse.repl.log.message; + +import org.apache.hadoop.hive.metastore.TableType; +import org.codehaus.jackson.annotate.JsonProperty; + +public class BootstrapLoadTableLog extends AbstractReplLog { + @JsonProperty + private String dbName; + + @JsonProperty + private String tableName; + + @JsonProperty + private String tableType; + + @JsonProperty + private String tablesLoadProgress; + + @JsonProperty + private Long loadTime; + + public BootstrapLoadTableLog(String dbName, + String tableName, + TableType tableType, + Long tableSeqNo, + Long numTables) { + this.dbName = dbName; + this.tableName = tableName; + this.tableType = tableType.toString(); + this.tablesLoadProgress = new String(new StringBuilder() + .append(tableSeqNo).append("/").append(numTables)); + this.loadTime = System.currentTimeMillis() / 1000; + } +} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/IncrementalDumpBeginLog.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/IncrementalDumpBeginLog.java new file mode 100644 index 0000000..9ca592b --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/IncrementalDumpBeginLog.java @@ -0,0 +1,42 @@ +/** + * 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.ql.parse.repl.log.message; + +import org.apache.hadoop.hive.ql.parse.repl.DumpType; +import org.codehaus.jackson.annotate.JsonProperty; + +public class IncrementalDumpBeginLog extends AbstractReplLog { + @JsonProperty + private String dbName; + + @JsonProperty + private DumpType dumpType; + + @JsonProperty + private Long estimatedNumEvents; + + @JsonProperty + private Long dumpStartTime; + + public IncrementalDumpBeginLog(String dbName, Long estimatedNumEvents) { + this.dbName = dbName; + this.dumpType = DumpType.INCREMENTAL; + this.estimatedNumEvents = estimatedNumEvents; + this.dumpStartTime = System.currentTimeMillis() / 1000; + } +} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/IncrementalDumpEndLog.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/IncrementalDumpEndLog.java new file mode 100644 index 0000000..568fca3 --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/IncrementalDumpEndLog.java @@ -0,0 +1,53 @@ +/** + * 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.ql.parse.repl.log.message; + +import org.apache.hadoop.hive.ql.parse.repl.DumpType; +import org.codehaus.jackson.annotate.JsonProperty; + +public class IncrementalDumpEndLog extends AbstractReplLog { + @JsonProperty + private String dbName; + + @JsonProperty + private DumpType dumpType; + + @JsonProperty + private Long actualNumEvents; + + @JsonProperty + private Long dumpEndTime; + + @JsonProperty + private String dumpDir; + + @JsonProperty + private String lastReplId; + + public IncrementalDumpEndLog(String dbName, + Long actualNumEvents, + String dumpDir, + String lastReplId) { + this.dbName = dbName; + this.dumpType = DumpType.INCREMENTAL; + this.actualNumEvents = actualNumEvents; + this.dumpEndTime = System.currentTimeMillis() / 1000; + this.dumpDir = dumpDir; + this.lastReplId = lastReplId; + } +} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/IncrementalDumpEventLog.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/IncrementalDumpEventLog.java new file mode 100644 index 0000000..6a1ff0e --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/IncrementalDumpEventLog.java @@ -0,0 +1,50 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.hadoop.hive.ql.parse.repl.log.message; + +import org.codehaus.jackson.annotate.JsonProperty; + +public class IncrementalDumpEventLog extends AbstractReplLog { + @JsonProperty + private String dbName; + + @JsonProperty + private String eventId; + + @JsonProperty + private String eventType; + + @JsonProperty + private String eventsDumpProgress; + + @JsonProperty + private Long dumpTime; + + public IncrementalDumpEventLog(String dbName, + String eventId, + String eventType, + Long eventSeqNo, + Long estimatedNumEvents) { + this.dbName = dbName; + this.eventId = eventId; + this.eventType = eventType; + this.eventsDumpProgress = new String(new StringBuilder() + .append(eventSeqNo).append("/").append(estimatedNumEvents)); + this.dumpTime = System.currentTimeMillis() / 1000; + } +} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/IncrementalLoadBeginLog.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/IncrementalLoadBeginLog.java new file mode 100644 index 0000000..c1a2e26 --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/IncrementalLoadBeginLog.java @@ -0,0 +1,46 @@ +/** + * 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.ql.parse.repl.log.message; + +import org.apache.hadoop.hive.ql.parse.repl.DumpType; +import org.codehaus.jackson.annotate.JsonProperty; + +public class IncrementalLoadBeginLog extends AbstractReplLog { + @JsonProperty + private String dbName; + + @JsonProperty + private String dumpDir; + + @JsonProperty + private DumpType loadType; + + @JsonProperty + private Long numEvents; + + @JsonProperty + private Long loadStartTime; + + public IncrementalLoadBeginLog(String dbName, String dumpDir, Long numEvents) { + this.dbName = dbName; + this.dumpDir = dumpDir; + this.loadType = DumpType.INCREMENTAL; + this.numEvents = numEvents; + this.loadStartTime = System.currentTimeMillis() / 1000; + } +} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/IncrementalLoadEndLog.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/IncrementalLoadEndLog.java new file mode 100644 index 0000000..daf0057 --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/IncrementalLoadEndLog.java @@ -0,0 +1,53 @@ +/** + * 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.ql.parse.repl.log.message; + +import org.apache.hadoop.hive.ql.parse.repl.DumpType; +import org.codehaus.jackson.annotate.JsonProperty; + +public class IncrementalLoadEndLog extends AbstractReplLog { + @JsonProperty + private String dbName; + + @JsonProperty + private DumpType loadType; + + @JsonProperty + private Long numEvents; + + @JsonProperty + private Long loadEndTime; + + @JsonProperty + private String dumpDir; + + @JsonProperty + private String lastReplId; + + public IncrementalLoadEndLog(String dbName, + Long numEvents, + String dumpDir, + String lastReplId) { + this.dbName = dbName; + this.loadType = DumpType.INCREMENTAL; + this.numEvents = numEvents; + this.loadEndTime = System.currentTimeMillis() / 1000; + this.dumpDir = dumpDir; + this.lastReplId = lastReplId; + } +} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/IncrementalLoadEventLog.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/IncrementalLoadEventLog.java new file mode 100644 index 0000000..46a0ed3 --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/IncrementalLoadEventLog.java @@ -0,0 +1,50 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.hadoop.hive.ql.parse.repl.log.message; + +import org.codehaus.jackson.annotate.JsonProperty; + +public class IncrementalLoadEventLog extends AbstractReplLog { + @JsonProperty + private String dbName; + + @JsonProperty + private String eventId; + + @JsonProperty + private String eventType; + + @JsonProperty + private String eventsLoadProgress; + + @JsonProperty + private Long loadTime; + + public IncrementalLoadEventLog(String dbName, + String eventId, + String eventType, + Long eventSeqNo, + Long numEvents) { + this.dbName = dbName; + this.eventId = eventId; + this.eventType = eventType; + this.eventsLoadProgress = new String(new StringBuilder() + .append(eventSeqNo).append("/").append(numEvents)); + this.loadTime = System.currentTimeMillis() / 1000; + } +} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/LogTag.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/LogTag.java new file mode 100644 index 0000000..634b456 --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/log/message/LogTag.java @@ -0,0 +1,40 @@ +/** + * 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.ql.parse.repl.log.message; + +public enum LogTag { + START("REPL_START"), + TABLE_DUMP("TABLE_DUMP"), + FUNCTION_DUMP("FUNCTION_DUMP"), + EVENT_DUMP("EVENT_DUMP"), + TABLE_LOAD("TABLE_LOAD"), + FUNCTION_LOAD("FUNCTION_LOAD"), + EVENT_LOAD("EVENT_LOAD"), + END("REPL_END") + ; + + String tag = null; + LogTag(String tag) { + this.tag = tag; + } + + @Override + public String toString(){ + return tag; + } +} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/plan/ImportTableDesc.java b/ql/src/java/org/apache/hadoop/hive/ql/plan/ImportTableDesc.java index a4fb378..1770046 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/plan/ImportTableDesc.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/plan/ImportTableDesc.java @@ -24,6 +24,7 @@ import java.util.Map; import org.apache.hadoop.hive.conf.HiveConf; +import org.apache.hadoop.hive.metastore.TableType; import org.apache.hadoop.hive.metastore.api.FieldSchema; import org.apache.hadoop.hive.metastore.api.Order; import org.apache.hadoop.hive.ql.exec.Task; @@ -34,11 +35,8 @@ import org.apache.hadoop.hive.ql.metadata.HiveException; import org.apache.hadoop.hive.ql.metadata.Table; import org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer; -import org.apache.hadoop.hive.ql.parse.EximUtil; import org.apache.hadoop.hive.ql.parse.ReplicationSpec; import org.apache.hadoop.hive.ql.parse.SemanticException; -import org.apache.hadoop.hive.ql.plan.CreateTableDesc; -import org.apache.hadoop.hive.ql.plan.CreateViewDesc; /** * ImportTableDesc. @@ -56,7 +54,7 @@ public ImportTableDesc(String dbName, Table table) throws Exception { this.dbName = dbName; this.table = table; - switch (getTableType()) { + switch (getDescType()) { case TABLE: this.createTblDesc = new CreateTableDesc(dbName, table.getTableName(), @@ -122,7 +120,7 @@ public ImportTableDesc(String dbName, Table table) throws Exception { } } - public TYPE getTableType() { + public TYPE getDescType() { if (table.isView() || table.isMaterializedView()) { return TYPE.VIEW; } @@ -143,7 +141,7 @@ public void setViewAsReferenceText(String dbName, Table table) { } public void setReplicationSpec(ReplicationSpec replSpec) { - switch (getTableType()) { + switch (getDescType()) { case TABLE: createTblDesc.setReplicationSpec(replSpec); break; @@ -154,20 +152,20 @@ public void setReplicationSpec(ReplicationSpec replSpec) { } public void setExternal(boolean isExternal) { - if (TYPE.TABLE.equals(getTableType())) { + if (TYPE.TABLE.equals(getDescType())) { createTblDesc.setExternal(isExternal); } } public boolean isExternal() { - if (TYPE.TABLE.equals(getTableType())) { + if (TYPE.TABLE.equals(getDescType())) { return createTblDesc.isExternal(); } return false; } public void setLocation(String location) { - switch (getTableType()) { + switch (getDescType()) { case TABLE: createTblDesc.setLocation(location); break; @@ -178,7 +176,7 @@ public void setLocation(String location) { } public String getLocation() { - switch (getTableType()) { + switch (getDescType()) { case TABLE: return createTblDesc.getLocation(); case VIEW: @@ -188,7 +186,7 @@ public String getLocation() { } public void setTableName(String tableName) throws SemanticException { - switch (getTableType()) { + switch (getDescType()) { case TABLE: createTblDesc.setTableName(tableName); break; @@ -201,7 +199,7 @@ public void setTableName(String tableName) throws SemanticException { } public String getTableName() throws SemanticException { - switch (getTableType()) { + switch (getDescType()) { case TABLE: return createTblDesc.getTableName(); case VIEW: @@ -213,7 +211,7 @@ public String getTableName() throws SemanticException { } public List getPartCols() { - switch (getTableType()) { + switch (getDescType()) { case TABLE: return createTblDesc.getPartCols(); case VIEW: @@ -223,7 +221,7 @@ public String getTableName() throws SemanticException { } public List getCols() { - switch (getTableType()) { + switch (getDescType()) { case TABLE: return createTblDesc.getCols(); case VIEW: @@ -233,7 +231,7 @@ public String getTableName() throws SemanticException { } public Map getTblProps() { - switch (getTableType()) { + switch (getDescType()) { case TABLE: return createTblDesc.getTblProps(); case VIEW: @@ -243,7 +241,7 @@ public String getTableName() throws SemanticException { } public String getInputFormat() { - switch (getTableType()) { + switch (getDescType()) { case TABLE: return createTblDesc.getInputFormat(); case VIEW: @@ -253,7 +251,7 @@ public String getInputFormat() { } public String getOutputFormat() { - switch (getTableType()) { + switch (getDescType()) { case TABLE: return createTblDesc.getOutputFormat(); case VIEW: @@ -263,7 +261,7 @@ public String getOutputFormat() { } public String getSerName() { - switch (getTableType()) { + switch (getDescType()) { case TABLE: return createTblDesc.getSerName(); case VIEW: @@ -273,7 +271,7 @@ public String getSerName() { } public Map getSerdeProps() { - switch (getTableType()) { + switch (getDescType()) { case TABLE: return createTblDesc.getSerdeProps(); case VIEW: @@ -283,14 +281,14 @@ public String getSerName() { } public List getBucketCols() { - if (TYPE.TABLE.equals(getTableType())) { + if (TYPE.TABLE.equals(getDescType())) { return createTblDesc.getBucketCols(); } return null; } public List getSortCols() { - if (TYPE.TABLE.equals(getTableType())) { + if (TYPE.TABLE.equals(getDescType())) { return createTblDesc.getSortCols(); } return null; @@ -300,7 +298,7 @@ public String getSerName() { * @param replaceMode Determine if this CreateTable should behave like a replace-into alter instead */ public void setReplaceMode(boolean replaceMode) { - switch (getTableType()) { + switch (getDescType()) { case TABLE: createTblDesc.setReplaceMode(replaceMode); break; @@ -315,7 +313,7 @@ public String getDatabaseName() { public Task getCreateTableTask(HashSet inputs, HashSet outputs, HiveConf conf) { - switch (getTableType()) { + switch (getDescType()) { case TABLE: return TaskFactory.get(new DDLWork(inputs, outputs, createTblDesc), conf); case VIEW: @@ -332,4 +330,13 @@ public String getDatabaseName() { public boolean isMaterializedView() { return table.isMaterializedView(); } + + public TableType tableType() { + if (isView()) { + return TableType.VIRTUAL_VIEW; + } else if (isMaterializedView()) { + return TableType.MATERIALIZED_VIEW; + } + return TableType.MANAGED_TABLE; + } } diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp index f4cc70f..569bc45 100644 --- a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp +++ b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp @@ -1240,14 +1240,14 @@ uint32_t ThriftHiveMetastore_get_databases_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size861; - ::apache::thrift::protocol::TType _etype864; - xfer += iprot->readListBegin(_etype864, _size861); - this->success.resize(_size861); - uint32_t _i865; - for (_i865 = 0; _i865 < _size861; ++_i865) + uint32_t _size865; + ::apache::thrift::protocol::TType _etype868; + xfer += iprot->readListBegin(_etype868, _size865); + this->success.resize(_size865); + uint32_t _i869; + for (_i869 = 0; _i869 < _size865; ++_i869) { - xfer += iprot->readString(this->success[_i865]); + xfer += iprot->readString(this->success[_i869]); } xfer += iprot->readListEnd(); } @@ -1286,10 +1286,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 _iter866; - for (_iter866 = this->success.begin(); _iter866 != this->success.end(); ++_iter866) + std::vector ::const_iterator _iter870; + for (_iter870 = this->success.begin(); _iter870 != this->success.end(); ++_iter870) { - xfer += oprot->writeString((*_iter866)); + xfer += oprot->writeString((*_iter870)); } xfer += oprot->writeListEnd(); } @@ -1334,14 +1334,14 @@ uint32_t ThriftHiveMetastore_get_databases_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size867; - ::apache::thrift::protocol::TType _etype870; - xfer += iprot->readListBegin(_etype870, _size867); - (*(this->success)).resize(_size867); - uint32_t _i871; - for (_i871 = 0; _i871 < _size867; ++_i871) + uint32_t _size871; + ::apache::thrift::protocol::TType _etype874; + xfer += iprot->readListBegin(_etype874, _size871); + (*(this->success)).resize(_size871); + uint32_t _i875; + for (_i875 = 0; _i875 < _size871; ++_i875) { - xfer += iprot->readString((*(this->success))[_i871]); + xfer += iprot->readString((*(this->success))[_i875]); } xfer += iprot->readListEnd(); } @@ -1458,14 +1458,14 @@ uint32_t ThriftHiveMetastore_get_all_databases_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size872; - ::apache::thrift::protocol::TType _etype875; - xfer += iprot->readListBegin(_etype875, _size872); - this->success.resize(_size872); - uint32_t _i876; - for (_i876 = 0; _i876 < _size872; ++_i876) + uint32_t _size876; + ::apache::thrift::protocol::TType _etype879; + xfer += iprot->readListBegin(_etype879, _size876); + this->success.resize(_size876); + uint32_t _i880; + for (_i880 = 0; _i880 < _size876; ++_i880) { - xfer += iprot->readString(this->success[_i876]); + xfer += iprot->readString(this->success[_i880]); } xfer += iprot->readListEnd(); } @@ -1504,10 +1504,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 _iter877; - for (_iter877 = this->success.begin(); _iter877 != this->success.end(); ++_iter877) + std::vector ::const_iterator _iter881; + for (_iter881 = this->success.begin(); _iter881 != this->success.end(); ++_iter881) { - xfer += oprot->writeString((*_iter877)); + xfer += oprot->writeString((*_iter881)); } xfer += oprot->writeListEnd(); } @@ -1552,14 +1552,14 @@ uint32_t ThriftHiveMetastore_get_all_databases_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size878; - ::apache::thrift::protocol::TType _etype881; - xfer += iprot->readListBegin(_etype881, _size878); - (*(this->success)).resize(_size878); - uint32_t _i882; - for (_i882 = 0; _i882 < _size878; ++_i882) + uint32_t _size882; + ::apache::thrift::protocol::TType _etype885; + xfer += iprot->readListBegin(_etype885, _size882); + (*(this->success)).resize(_size882); + uint32_t _i886; + for (_i886 = 0; _i886 < _size882; ++_i886) { - xfer += iprot->readString((*(this->success))[_i882]); + xfer += iprot->readString((*(this->success))[_i886]); } xfer += iprot->readListEnd(); } @@ -2621,17 +2621,17 @@ uint32_t ThriftHiveMetastore_get_type_all_result::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size883; - ::apache::thrift::protocol::TType _ktype884; - ::apache::thrift::protocol::TType _vtype885; - xfer += iprot->readMapBegin(_ktype884, _vtype885, _size883); - uint32_t _i887; - for (_i887 = 0; _i887 < _size883; ++_i887) + uint32_t _size887; + ::apache::thrift::protocol::TType _ktype888; + ::apache::thrift::protocol::TType _vtype889; + xfer += iprot->readMapBegin(_ktype888, _vtype889, _size887); + uint32_t _i891; + for (_i891 = 0; _i891 < _size887; ++_i891) { - std::string _key888; - xfer += iprot->readString(_key888); - Type& _val889 = this->success[_key888]; - xfer += _val889.read(iprot); + std::string _key892; + xfer += iprot->readString(_key892); + Type& _val893 = this->success[_key892]; + xfer += _val893.read(iprot); } xfer += iprot->readMapEnd(); } @@ -2670,11 +2670,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 _iter890; - for (_iter890 = this->success.begin(); _iter890 != this->success.end(); ++_iter890) + std::map ::const_iterator _iter894; + for (_iter894 = this->success.begin(); _iter894 != this->success.end(); ++_iter894) { - xfer += oprot->writeString(_iter890->first); - xfer += _iter890->second.write(oprot); + xfer += oprot->writeString(_iter894->first); + xfer += _iter894->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -2719,17 +2719,17 @@ uint32_t ThriftHiveMetastore_get_type_all_presult::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size891; - ::apache::thrift::protocol::TType _ktype892; - ::apache::thrift::protocol::TType _vtype893; - xfer += iprot->readMapBegin(_ktype892, _vtype893, _size891); - uint32_t _i895; - for (_i895 = 0; _i895 < _size891; ++_i895) + uint32_t _size895; + ::apache::thrift::protocol::TType _ktype896; + ::apache::thrift::protocol::TType _vtype897; + xfer += iprot->readMapBegin(_ktype896, _vtype897, _size895); + uint32_t _i899; + for (_i899 = 0; _i899 < _size895; ++_i899) { - std::string _key896; - xfer += iprot->readString(_key896); - Type& _val897 = (*(this->success))[_key896]; - xfer += _val897.read(iprot); + std::string _key900; + xfer += iprot->readString(_key900); + Type& _val901 = (*(this->success))[_key900]; + xfer += _val901.read(iprot); } xfer += iprot->readMapEnd(); } @@ -2883,14 +2883,14 @@ uint32_t ThriftHiveMetastore_get_fields_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size898; - ::apache::thrift::protocol::TType _etype901; - xfer += iprot->readListBegin(_etype901, _size898); - this->success.resize(_size898); - uint32_t _i902; - for (_i902 = 0; _i902 < _size898; ++_i902) + uint32_t _size902; + ::apache::thrift::protocol::TType _etype905; + xfer += iprot->readListBegin(_etype905, _size902); + this->success.resize(_size902); + uint32_t _i906; + for (_i906 = 0; _i906 < _size902; ++_i906) { - xfer += this->success[_i902].read(iprot); + xfer += this->success[_i906].read(iprot); } xfer += iprot->readListEnd(); } @@ -2945,10 +2945,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 _iter903; - for (_iter903 = this->success.begin(); _iter903 != this->success.end(); ++_iter903) + std::vector ::const_iterator _iter907; + for (_iter907 = this->success.begin(); _iter907 != this->success.end(); ++_iter907) { - xfer += (*_iter903).write(oprot); + xfer += (*_iter907).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3001,14 +3001,14 @@ uint32_t ThriftHiveMetastore_get_fields_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size904; - ::apache::thrift::protocol::TType _etype907; - xfer += iprot->readListBegin(_etype907, _size904); - (*(this->success)).resize(_size904); - uint32_t _i908; - for (_i908 = 0; _i908 < _size904; ++_i908) + uint32_t _size908; + ::apache::thrift::protocol::TType _etype911; + xfer += iprot->readListBegin(_etype911, _size908); + (*(this->success)).resize(_size908); + uint32_t _i912; + for (_i912 = 0; _i912 < _size908; ++_i912) { - xfer += (*(this->success))[_i908].read(iprot); + xfer += (*(this->success))[_i912].read(iprot); } xfer += iprot->readListEnd(); } @@ -3194,14 +3194,14 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_result::read(:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size909; - ::apache::thrift::protocol::TType _etype912; - xfer += iprot->readListBegin(_etype912, _size909); - this->success.resize(_size909); - uint32_t _i913; - for (_i913 = 0; _i913 < _size909; ++_i913) + uint32_t _size913; + ::apache::thrift::protocol::TType _etype916; + xfer += iprot->readListBegin(_etype916, _size913); + this->success.resize(_size913); + uint32_t _i917; + for (_i917 = 0; _i917 < _size913; ++_i917) { - xfer += this->success[_i913].read(iprot); + xfer += this->success[_i917].read(iprot); } xfer += iprot->readListEnd(); } @@ -3256,10 +3256,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 _iter914; - for (_iter914 = this->success.begin(); _iter914 != this->success.end(); ++_iter914) + std::vector ::const_iterator _iter918; + for (_iter918 = this->success.begin(); _iter918 != this->success.end(); ++_iter918) { - xfer += (*_iter914).write(oprot); + xfer += (*_iter918).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3312,14 +3312,14 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_presult::read(: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size915; - ::apache::thrift::protocol::TType _etype918; - xfer += iprot->readListBegin(_etype918, _size915); - (*(this->success)).resize(_size915); - uint32_t _i919; - for (_i919 = 0; _i919 < _size915; ++_i919) + uint32_t _size919; + ::apache::thrift::protocol::TType _etype922; + xfer += iprot->readListBegin(_etype922, _size919); + (*(this->success)).resize(_size919); + uint32_t _i923; + for (_i923 = 0; _i923 < _size919; ++_i923) { - xfer += (*(this->success))[_i919].read(iprot); + xfer += (*(this->success))[_i923].read(iprot); } xfer += iprot->readListEnd(); } @@ -3489,14 +3489,14 @@ uint32_t ThriftHiveMetastore_get_schema_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size920; - ::apache::thrift::protocol::TType _etype923; - xfer += iprot->readListBegin(_etype923, _size920); - this->success.resize(_size920); - uint32_t _i924; - for (_i924 = 0; _i924 < _size920; ++_i924) + uint32_t _size924; + ::apache::thrift::protocol::TType _etype927; + xfer += iprot->readListBegin(_etype927, _size924); + this->success.resize(_size924); + uint32_t _i928; + for (_i928 = 0; _i928 < _size924; ++_i928) { - xfer += this->success[_i924].read(iprot); + xfer += this->success[_i928].read(iprot); } xfer += iprot->readListEnd(); } @@ -3551,10 +3551,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 _iter925; - for (_iter925 = this->success.begin(); _iter925 != this->success.end(); ++_iter925) + std::vector ::const_iterator _iter929; + for (_iter929 = this->success.begin(); _iter929 != this->success.end(); ++_iter929) { - xfer += (*_iter925).write(oprot); + xfer += (*_iter929).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3607,14 +3607,14 @@ uint32_t ThriftHiveMetastore_get_schema_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size926; - ::apache::thrift::protocol::TType _etype929; - xfer += iprot->readListBegin(_etype929, _size926); - (*(this->success)).resize(_size926); - uint32_t _i930; - for (_i930 = 0; _i930 < _size926; ++_i930) + uint32_t _size930; + ::apache::thrift::protocol::TType _etype933; + xfer += iprot->readListBegin(_etype933, _size930); + (*(this->success)).resize(_size930); + uint32_t _i934; + for (_i934 = 0; _i934 < _size930; ++_i934) { - xfer += (*(this->success))[_i930].read(iprot); + xfer += (*(this->success))[_i934].read(iprot); } xfer += iprot->readListEnd(); } @@ -3800,14 +3800,14 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_result::read(:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size931; - ::apache::thrift::protocol::TType _etype934; - xfer += iprot->readListBegin(_etype934, _size931); - this->success.resize(_size931); - uint32_t _i935; - for (_i935 = 0; _i935 < _size931; ++_i935) + uint32_t _size935; + ::apache::thrift::protocol::TType _etype938; + xfer += iprot->readListBegin(_etype938, _size935); + this->success.resize(_size935); + uint32_t _i939; + for (_i939 = 0; _i939 < _size935; ++_i939) { - xfer += this->success[_i935].read(iprot); + xfer += this->success[_i939].read(iprot); } xfer += iprot->readListEnd(); } @@ -3862,10 +3862,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 _iter936; - for (_iter936 = this->success.begin(); _iter936 != this->success.end(); ++_iter936) + std::vector ::const_iterator _iter940; + for (_iter940 = this->success.begin(); _iter940 != this->success.end(); ++_iter940) { - xfer += (*_iter936).write(oprot); + xfer += (*_iter940).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3918,14 +3918,14 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_presult::read(: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size937; - ::apache::thrift::protocol::TType _etype940; - xfer += iprot->readListBegin(_etype940, _size937); - (*(this->success)).resize(_size937); - uint32_t _i941; - for (_i941 = 0; _i941 < _size937; ++_i941) + uint32_t _size941; + ::apache::thrift::protocol::TType _etype944; + xfer += iprot->readListBegin(_etype944, _size941); + (*(this->success)).resize(_size941); + uint32_t _i945; + for (_i945 = 0; _i945 < _size941; ++_i945) { - xfer += (*(this->success))[_i941].read(iprot); + xfer += (*(this->success))[_i945].read(iprot); } xfer += iprot->readListEnd(); } @@ -4518,14 +4518,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->primaryKeys.clear(); - uint32_t _size942; - ::apache::thrift::protocol::TType _etype945; - xfer += iprot->readListBegin(_etype945, _size942); - this->primaryKeys.resize(_size942); - uint32_t _i946; - for (_i946 = 0; _i946 < _size942; ++_i946) + uint32_t _size946; + ::apache::thrift::protocol::TType _etype949; + xfer += iprot->readListBegin(_etype949, _size946); + this->primaryKeys.resize(_size946); + uint32_t _i950; + for (_i950 = 0; _i950 < _size946; ++_i950) { - xfer += this->primaryKeys[_i946].read(iprot); + xfer += this->primaryKeys[_i950].read(iprot); } xfer += iprot->readListEnd(); } @@ -4538,14 +4538,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->foreignKeys.clear(); - uint32_t _size947; - ::apache::thrift::protocol::TType _etype950; - xfer += iprot->readListBegin(_etype950, _size947); - this->foreignKeys.resize(_size947); - uint32_t _i951; - for (_i951 = 0; _i951 < _size947; ++_i951) + uint32_t _size951; + ::apache::thrift::protocol::TType _etype954; + xfer += iprot->readListBegin(_etype954, _size951); + this->foreignKeys.resize(_size951); + uint32_t _i955; + for (_i955 = 0; _i955 < _size951; ++_i955) { - xfer += this->foreignKeys[_i951].read(iprot); + xfer += this->foreignKeys[_i955].read(iprot); } xfer += iprot->readListEnd(); } @@ -4558,14 +4558,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->uniqueConstraints.clear(); - uint32_t _size952; - ::apache::thrift::protocol::TType _etype955; - xfer += iprot->readListBegin(_etype955, _size952); - this->uniqueConstraints.resize(_size952); - uint32_t _i956; - for (_i956 = 0; _i956 < _size952; ++_i956) + uint32_t _size956; + ::apache::thrift::protocol::TType _etype959; + xfer += iprot->readListBegin(_etype959, _size956); + this->uniqueConstraints.resize(_size956); + uint32_t _i960; + for (_i960 = 0; _i960 < _size956; ++_i960) { - xfer += this->uniqueConstraints[_i956].read(iprot); + xfer += this->uniqueConstraints[_i960].read(iprot); } xfer += iprot->readListEnd(); } @@ -4578,14 +4578,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->notNullConstraints.clear(); - uint32_t _size957; - ::apache::thrift::protocol::TType _etype960; - xfer += iprot->readListBegin(_etype960, _size957); - this->notNullConstraints.resize(_size957); - uint32_t _i961; - for (_i961 = 0; _i961 < _size957; ++_i961) + uint32_t _size961; + ::apache::thrift::protocol::TType _etype964; + xfer += iprot->readListBegin(_etype964, _size961); + this->notNullConstraints.resize(_size961); + uint32_t _i965; + for (_i965 = 0; _i965 < _size961; ++_i965) { - xfer += this->notNullConstraints[_i961].read(iprot); + xfer += this->notNullConstraints[_i965].read(iprot); } xfer += iprot->readListEnd(); } @@ -4618,10 +4618,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 _iter962; - for (_iter962 = this->primaryKeys.begin(); _iter962 != this->primaryKeys.end(); ++_iter962) + std::vector ::const_iterator _iter966; + for (_iter966 = this->primaryKeys.begin(); _iter966 != this->primaryKeys.end(); ++_iter966) { - xfer += (*_iter962).write(oprot); + xfer += (*_iter966).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4630,10 +4630,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 _iter963; - for (_iter963 = this->foreignKeys.begin(); _iter963 != this->foreignKeys.end(); ++_iter963) + std::vector ::const_iterator _iter967; + for (_iter967 = this->foreignKeys.begin(); _iter967 != this->foreignKeys.end(); ++_iter967) { - xfer += (*_iter963).write(oprot); + xfer += (*_iter967).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4642,10 +4642,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 _iter964; - for (_iter964 = this->uniqueConstraints.begin(); _iter964 != this->uniqueConstraints.end(); ++_iter964) + std::vector ::const_iterator _iter968; + for (_iter968 = this->uniqueConstraints.begin(); _iter968 != this->uniqueConstraints.end(); ++_iter968) { - xfer += (*_iter964).write(oprot); + xfer += (*_iter968).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4654,10 +4654,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 _iter965; - for (_iter965 = this->notNullConstraints.begin(); _iter965 != this->notNullConstraints.end(); ++_iter965) + std::vector ::const_iterator _iter969; + for (_iter969 = this->notNullConstraints.begin(); _iter969 != this->notNullConstraints.end(); ++_iter969) { - xfer += (*_iter965).write(oprot); + xfer += (*_iter969).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4685,10 +4685,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 _iter966; - for (_iter966 = (*(this->primaryKeys)).begin(); _iter966 != (*(this->primaryKeys)).end(); ++_iter966) + std::vector ::const_iterator _iter970; + for (_iter970 = (*(this->primaryKeys)).begin(); _iter970 != (*(this->primaryKeys)).end(); ++_iter970) { - xfer += (*_iter966).write(oprot); + xfer += (*_iter970).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4697,10 +4697,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 _iter967; - for (_iter967 = (*(this->foreignKeys)).begin(); _iter967 != (*(this->foreignKeys)).end(); ++_iter967) + std::vector ::const_iterator _iter971; + for (_iter971 = (*(this->foreignKeys)).begin(); _iter971 != (*(this->foreignKeys)).end(); ++_iter971) { - xfer += (*_iter967).write(oprot); + xfer += (*_iter971).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4709,10 +4709,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 _iter968; - for (_iter968 = (*(this->uniqueConstraints)).begin(); _iter968 != (*(this->uniqueConstraints)).end(); ++_iter968) + std::vector ::const_iterator _iter972; + for (_iter972 = (*(this->uniqueConstraints)).begin(); _iter972 != (*(this->uniqueConstraints)).end(); ++_iter972) { - xfer += (*_iter968).write(oprot); + xfer += (*_iter972).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4721,10 +4721,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 _iter969; - for (_iter969 = (*(this->notNullConstraints)).begin(); _iter969 != (*(this->notNullConstraints)).end(); ++_iter969) + std::vector ::const_iterator _iter973; + for (_iter973 = (*(this->notNullConstraints)).begin(); _iter973 != (*(this->notNullConstraints)).end(); ++_iter973) { - xfer += (*_iter969).write(oprot); + xfer += (*_iter973).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6478,14 +6478,14 @@ uint32_t ThriftHiveMetastore_truncate_table_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partNames.clear(); - uint32_t _size970; - ::apache::thrift::protocol::TType _etype973; - xfer += iprot->readListBegin(_etype973, _size970); - this->partNames.resize(_size970); - uint32_t _i974; - for (_i974 = 0; _i974 < _size970; ++_i974) + uint32_t _size974; + ::apache::thrift::protocol::TType _etype977; + xfer += iprot->readListBegin(_etype977, _size974); + this->partNames.resize(_size974); + uint32_t _i978; + for (_i978 = 0; _i978 < _size974; ++_i978) { - xfer += iprot->readString(this->partNames[_i974]); + xfer += iprot->readString(this->partNames[_i978]); } xfer += iprot->readListEnd(); } @@ -6522,10 +6522,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 _iter975; - for (_iter975 = this->partNames.begin(); _iter975 != this->partNames.end(); ++_iter975) + std::vector ::const_iterator _iter979; + for (_iter979 = this->partNames.begin(); _iter979 != this->partNames.end(); ++_iter979) { - xfer += oprot->writeString((*_iter975)); + xfer += oprot->writeString((*_iter979)); } xfer += oprot->writeListEnd(); } @@ -6557,10 +6557,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 _iter976; - for (_iter976 = (*(this->partNames)).begin(); _iter976 != (*(this->partNames)).end(); ++_iter976) + std::vector ::const_iterator _iter980; + for (_iter980 = (*(this->partNames)).begin(); _iter980 != (*(this->partNames)).end(); ++_iter980) { - xfer += oprot->writeString((*_iter976)); + xfer += oprot->writeString((*_iter980)); } xfer += oprot->writeListEnd(); } @@ -6804,14 +6804,14 @@ uint32_t ThriftHiveMetastore_get_tables_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size977; - ::apache::thrift::protocol::TType _etype980; - xfer += iprot->readListBegin(_etype980, _size977); - this->success.resize(_size977); - uint32_t _i981; - for (_i981 = 0; _i981 < _size977; ++_i981) + uint32_t _size981; + ::apache::thrift::protocol::TType _etype984; + xfer += iprot->readListBegin(_etype984, _size981); + this->success.resize(_size981); + uint32_t _i985; + for (_i985 = 0; _i985 < _size981; ++_i985) { - xfer += iprot->readString(this->success[_i981]); + xfer += iprot->readString(this->success[_i985]); } xfer += iprot->readListEnd(); } @@ -6850,10 +6850,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 _iter982; - for (_iter982 = this->success.begin(); _iter982 != this->success.end(); ++_iter982) + std::vector ::const_iterator _iter986; + for (_iter986 = this->success.begin(); _iter986 != this->success.end(); ++_iter986) { - xfer += oprot->writeString((*_iter982)); + xfer += oprot->writeString((*_iter986)); } xfer += oprot->writeListEnd(); } @@ -6898,14 +6898,14 @@ uint32_t ThriftHiveMetastore_get_tables_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size983; - ::apache::thrift::protocol::TType _etype986; - xfer += iprot->readListBegin(_etype986, _size983); - (*(this->success)).resize(_size983); - uint32_t _i987; - for (_i987 = 0; _i987 < _size983; ++_i987) + uint32_t _size987; + ::apache::thrift::protocol::TType _etype990; + xfer += iprot->readListBegin(_etype990, _size987); + (*(this->success)).resize(_size987); + uint32_t _i991; + for (_i991 = 0; _i991 < _size987; ++_i991) { - xfer += iprot->readString((*(this->success))[_i987]); + xfer += iprot->readString((*(this->success))[_i991]); } xfer += iprot->readListEnd(); } @@ -7075,14 +7075,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 _size988; - ::apache::thrift::protocol::TType _etype991; - xfer += iprot->readListBegin(_etype991, _size988); - this->success.resize(_size988); - uint32_t _i992; - for (_i992 = 0; _i992 < _size988; ++_i992) + uint32_t _size992; + ::apache::thrift::protocol::TType _etype995; + xfer += iprot->readListBegin(_etype995, _size992); + this->success.resize(_size992); + uint32_t _i996; + for (_i996 = 0; _i996 < _size992; ++_i996) { - xfer += iprot->readString(this->success[_i992]); + xfer += iprot->readString(this->success[_i996]); } xfer += iprot->readListEnd(); } @@ -7121,10 +7121,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 _iter993; - for (_iter993 = this->success.begin(); _iter993 != this->success.end(); ++_iter993) + std::vector ::const_iterator _iter997; + for (_iter997 = this->success.begin(); _iter997 != this->success.end(); ++_iter997) { - xfer += oprot->writeString((*_iter993)); + xfer += oprot->writeString((*_iter997)); } xfer += oprot->writeListEnd(); } @@ -7169,14 +7169,14 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_presult::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size994; - ::apache::thrift::protocol::TType _etype997; - xfer += iprot->readListBegin(_etype997, _size994); - (*(this->success)).resize(_size994); - uint32_t _i998; - for (_i998 = 0; _i998 < _size994; ++_i998) + uint32_t _size998; + ::apache::thrift::protocol::TType _etype1001; + xfer += iprot->readListBegin(_etype1001, _size998); + (*(this->success)).resize(_size998); + uint32_t _i1002; + for (_i1002 = 0; _i1002 < _size998; ++_i1002) { - xfer += iprot->readString((*(this->success))[_i998]); + xfer += iprot->readString((*(this->success))[_i1002]); } xfer += iprot->readListEnd(); } @@ -7251,14 +7251,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 _size999; - ::apache::thrift::protocol::TType _etype1002; - xfer += iprot->readListBegin(_etype1002, _size999); - this->tbl_types.resize(_size999); - uint32_t _i1003; - for (_i1003 = 0; _i1003 < _size999; ++_i1003) + uint32_t _size1003; + ::apache::thrift::protocol::TType _etype1006; + xfer += iprot->readListBegin(_etype1006, _size1003); + this->tbl_types.resize(_size1003); + uint32_t _i1007; + for (_i1007 = 0; _i1007 < _size1003; ++_i1007) { - xfer += iprot->readString(this->tbl_types[_i1003]); + xfer += iprot->readString(this->tbl_types[_i1007]); } xfer += iprot->readListEnd(); } @@ -7295,10 +7295,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 _iter1004; - for (_iter1004 = this->tbl_types.begin(); _iter1004 != this->tbl_types.end(); ++_iter1004) + std::vector ::const_iterator _iter1008; + for (_iter1008 = this->tbl_types.begin(); _iter1008 != this->tbl_types.end(); ++_iter1008) { - xfer += oprot->writeString((*_iter1004)); + xfer += oprot->writeString((*_iter1008)); } xfer += oprot->writeListEnd(); } @@ -7330,10 +7330,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 _iter1005; - for (_iter1005 = (*(this->tbl_types)).begin(); _iter1005 != (*(this->tbl_types)).end(); ++_iter1005) + std::vector ::const_iterator _iter1009; + for (_iter1009 = (*(this->tbl_types)).begin(); _iter1009 != (*(this->tbl_types)).end(); ++_iter1009) { - xfer += oprot->writeString((*_iter1005)); + xfer += oprot->writeString((*_iter1009)); } xfer += oprot->writeListEnd(); } @@ -7374,14 +7374,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1006; - ::apache::thrift::protocol::TType _etype1009; - xfer += iprot->readListBegin(_etype1009, _size1006); - this->success.resize(_size1006); - uint32_t _i1010; - for (_i1010 = 0; _i1010 < _size1006; ++_i1010) + uint32_t _size1010; + ::apache::thrift::protocol::TType _etype1013; + xfer += iprot->readListBegin(_etype1013, _size1010); + this->success.resize(_size1010); + uint32_t _i1014; + for (_i1014 = 0; _i1014 < _size1010; ++_i1014) { - xfer += this->success[_i1010].read(iprot); + xfer += this->success[_i1014].read(iprot); } xfer += iprot->readListEnd(); } @@ -7420,10 +7420,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 _iter1011; - for (_iter1011 = this->success.begin(); _iter1011 != this->success.end(); ++_iter1011) + std::vector ::const_iterator _iter1015; + for (_iter1015 = this->success.begin(); _iter1015 != this->success.end(); ++_iter1015) { - xfer += (*_iter1011).write(oprot); + xfer += (*_iter1015).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7468,14 +7468,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1012; - ::apache::thrift::protocol::TType _etype1015; - xfer += iprot->readListBegin(_etype1015, _size1012); - (*(this->success)).resize(_size1012); - uint32_t _i1016; - for (_i1016 = 0; _i1016 < _size1012; ++_i1016) + uint32_t _size1016; + ::apache::thrift::protocol::TType _etype1019; + xfer += iprot->readListBegin(_etype1019, _size1016); + (*(this->success)).resize(_size1016); + uint32_t _i1020; + for (_i1020 = 0; _i1020 < _size1016; ++_i1020) { - xfer += (*(this->success))[_i1016].read(iprot); + xfer += (*(this->success))[_i1020].read(iprot); } xfer += iprot->readListEnd(); } @@ -7613,14 +7613,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1017; - ::apache::thrift::protocol::TType _etype1020; - xfer += iprot->readListBegin(_etype1020, _size1017); - this->success.resize(_size1017); - uint32_t _i1021; - for (_i1021 = 0; _i1021 < _size1017; ++_i1021) + uint32_t _size1021; + ::apache::thrift::protocol::TType _etype1024; + xfer += iprot->readListBegin(_etype1024, _size1021); + this->success.resize(_size1021); + uint32_t _i1025; + for (_i1025 = 0; _i1025 < _size1021; ++_i1025) { - xfer += iprot->readString(this->success[_i1021]); + xfer += iprot->readString(this->success[_i1025]); } xfer += iprot->readListEnd(); } @@ -7659,10 +7659,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 _iter1022; - for (_iter1022 = this->success.begin(); _iter1022 != this->success.end(); ++_iter1022) + std::vector ::const_iterator _iter1026; + for (_iter1026 = this->success.begin(); _iter1026 != this->success.end(); ++_iter1026) { - xfer += oprot->writeString((*_iter1022)); + xfer += oprot->writeString((*_iter1026)); } xfer += oprot->writeListEnd(); } @@ -7707,14 +7707,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1023; - ::apache::thrift::protocol::TType _etype1026; - xfer += iprot->readListBegin(_etype1026, _size1023); - (*(this->success)).resize(_size1023); - uint32_t _i1027; - for (_i1027 = 0; _i1027 < _size1023; ++_i1027) + uint32_t _size1027; + ::apache::thrift::protocol::TType _etype1030; + xfer += iprot->readListBegin(_etype1030, _size1027); + (*(this->success)).resize(_size1027); + uint32_t _i1031; + for (_i1031 = 0; _i1031 < _size1027; ++_i1031) { - xfer += iprot->readString((*(this->success))[_i1027]); + xfer += iprot->readString((*(this->success))[_i1031]); } xfer += iprot->readListEnd(); } @@ -8024,14 +8024,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 _size1028; - ::apache::thrift::protocol::TType _etype1031; - xfer += iprot->readListBegin(_etype1031, _size1028); - this->tbl_names.resize(_size1028); - uint32_t _i1032; - for (_i1032 = 0; _i1032 < _size1028; ++_i1032) + uint32_t _size1032; + ::apache::thrift::protocol::TType _etype1035; + xfer += iprot->readListBegin(_etype1035, _size1032); + this->tbl_names.resize(_size1032); + uint32_t _i1036; + for (_i1036 = 0; _i1036 < _size1032; ++_i1036) { - xfer += iprot->readString(this->tbl_names[_i1032]); + xfer += iprot->readString(this->tbl_names[_i1036]); } xfer += iprot->readListEnd(); } @@ -8064,10 +8064,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 _iter1033; - for (_iter1033 = this->tbl_names.begin(); _iter1033 != this->tbl_names.end(); ++_iter1033) + std::vector ::const_iterator _iter1037; + for (_iter1037 = this->tbl_names.begin(); _iter1037 != this->tbl_names.end(); ++_iter1037) { - xfer += oprot->writeString((*_iter1033)); + xfer += oprot->writeString((*_iter1037)); } xfer += oprot->writeListEnd(); } @@ -8095,10 +8095,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 _iter1034; - for (_iter1034 = (*(this->tbl_names)).begin(); _iter1034 != (*(this->tbl_names)).end(); ++_iter1034) + std::vector ::const_iterator _iter1038; + for (_iter1038 = (*(this->tbl_names)).begin(); _iter1038 != (*(this->tbl_names)).end(); ++_iter1038) { - xfer += oprot->writeString((*_iter1034)); + xfer += oprot->writeString((*_iter1038)); } xfer += oprot->writeListEnd(); } @@ -8139,14 +8139,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 _size1035; - ::apache::thrift::protocol::TType _etype1038; - xfer += iprot->readListBegin(_etype1038, _size1035); - this->success.resize(_size1035); - uint32_t _i1039; - for (_i1039 = 0; _i1039 < _size1035; ++_i1039) + uint32_t _size1039; + ::apache::thrift::protocol::TType _etype1042; + xfer += iprot->readListBegin(_etype1042, _size1039); + this->success.resize(_size1039); + uint32_t _i1043; + for (_i1043 = 0; _i1043 < _size1039; ++_i1043) { - xfer += this->success[_i1039].read(iprot); + xfer += this->success[_i1043].read(iprot); } xfer += iprot->readListEnd(); } @@ -8177,10 +8177,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 _iter1040; - for (_iter1040 = this->success.begin(); _iter1040 != this->success.end(); ++_iter1040) + std::vector
::const_iterator _iter1044; + for (_iter1044 = this->success.begin(); _iter1044 != this->success.end(); ++_iter1044) { - xfer += (*_iter1040).write(oprot); + xfer += (*_iter1044).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8221,14 +8221,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 _size1041; - ::apache::thrift::protocol::TType _etype1044; - xfer += iprot->readListBegin(_etype1044, _size1041); - (*(this->success)).resize(_size1041); - uint32_t _i1045; - for (_i1045 = 0; _i1045 < _size1041; ++_i1045) + uint32_t _size1045; + ::apache::thrift::protocol::TType _etype1048; + xfer += iprot->readListBegin(_etype1048, _size1045); + (*(this->success)).resize(_size1045); + uint32_t _i1049; + for (_i1049 = 0; _i1049 < _size1045; ++_i1049) { - xfer += (*(this->success))[_i1045].read(iprot); + xfer += (*(this->success))[_i1049].read(iprot); } xfer += iprot->readListEnd(); } @@ -8864,14 +8864,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 _size1046; - ::apache::thrift::protocol::TType _etype1049; - xfer += iprot->readListBegin(_etype1049, _size1046); - this->success.resize(_size1046); - uint32_t _i1050; - for (_i1050 = 0; _i1050 < _size1046; ++_i1050) + uint32_t _size1050; + ::apache::thrift::protocol::TType _etype1053; + xfer += iprot->readListBegin(_etype1053, _size1050); + this->success.resize(_size1050); + uint32_t _i1054; + for (_i1054 = 0; _i1054 < _size1050; ++_i1054) { - xfer += iprot->readString(this->success[_i1050]); + xfer += iprot->readString(this->success[_i1054]); } xfer += iprot->readListEnd(); } @@ -8926,10 +8926,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 _iter1051; - for (_iter1051 = this->success.begin(); _iter1051 != this->success.end(); ++_iter1051) + std::vector ::const_iterator _iter1055; + for (_iter1055 = this->success.begin(); _iter1055 != this->success.end(); ++_iter1055) { - xfer += oprot->writeString((*_iter1051)); + xfer += oprot->writeString((*_iter1055)); } xfer += oprot->writeListEnd(); } @@ -8982,14 +8982,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 _size1052; - ::apache::thrift::protocol::TType _etype1055; - xfer += iprot->readListBegin(_etype1055, _size1052); - (*(this->success)).resize(_size1052); - uint32_t _i1056; - for (_i1056 = 0; _i1056 < _size1052; ++_i1056) + uint32_t _size1056; + ::apache::thrift::protocol::TType _etype1059; + xfer += iprot->readListBegin(_etype1059, _size1056); + (*(this->success)).resize(_size1056); + uint32_t _i1060; + for (_i1060 = 0; _i1060 < _size1056; ++_i1060) { - xfer += iprot->readString((*(this->success))[_i1056]); + xfer += iprot->readString((*(this->success))[_i1060]); } xfer += iprot->readListEnd(); } @@ -10323,14 +10323,14 @@ uint32_t ThriftHiveMetastore_add_partitions_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1057; - ::apache::thrift::protocol::TType _etype1060; - xfer += iprot->readListBegin(_etype1060, _size1057); - this->new_parts.resize(_size1057); - uint32_t _i1061; - for (_i1061 = 0; _i1061 < _size1057; ++_i1061) + uint32_t _size1061; + ::apache::thrift::protocol::TType _etype1064; + xfer += iprot->readListBegin(_etype1064, _size1061); + this->new_parts.resize(_size1061); + uint32_t _i1065; + for (_i1065 = 0; _i1065 < _size1061; ++_i1065) { - xfer += this->new_parts[_i1061].read(iprot); + xfer += this->new_parts[_i1065].read(iprot); } xfer += iprot->readListEnd(); } @@ -10359,10 +10359,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 _iter1062; - for (_iter1062 = this->new_parts.begin(); _iter1062 != this->new_parts.end(); ++_iter1062) + std::vector ::const_iterator _iter1066; + for (_iter1066 = this->new_parts.begin(); _iter1066 != this->new_parts.end(); ++_iter1066) { - xfer += (*_iter1062).write(oprot); + xfer += (*_iter1066).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10386,10 +10386,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 _iter1063; - for (_iter1063 = (*(this->new_parts)).begin(); _iter1063 != (*(this->new_parts)).end(); ++_iter1063) + std::vector ::const_iterator _iter1067; + for (_iter1067 = (*(this->new_parts)).begin(); _iter1067 != (*(this->new_parts)).end(); ++_iter1067) { - xfer += (*_iter1063).write(oprot); + xfer += (*_iter1067).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10598,14 +10598,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 _size1064; - ::apache::thrift::protocol::TType _etype1067; - xfer += iprot->readListBegin(_etype1067, _size1064); - this->new_parts.resize(_size1064); - uint32_t _i1068; - for (_i1068 = 0; _i1068 < _size1064; ++_i1068) + uint32_t _size1068; + ::apache::thrift::protocol::TType _etype1071; + xfer += iprot->readListBegin(_etype1071, _size1068); + this->new_parts.resize(_size1068); + uint32_t _i1072; + for (_i1072 = 0; _i1072 < _size1068; ++_i1072) { - xfer += this->new_parts[_i1068].read(iprot); + xfer += this->new_parts[_i1072].read(iprot); } xfer += iprot->readListEnd(); } @@ -10634,10 +10634,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 _iter1069; - for (_iter1069 = this->new_parts.begin(); _iter1069 != this->new_parts.end(); ++_iter1069) + std::vector ::const_iterator _iter1073; + for (_iter1073 = this->new_parts.begin(); _iter1073 != this->new_parts.end(); ++_iter1073) { - xfer += (*_iter1069).write(oprot); + xfer += (*_iter1073).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10661,10 +10661,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 _iter1070; - for (_iter1070 = (*(this->new_parts)).begin(); _iter1070 != (*(this->new_parts)).end(); ++_iter1070) + std::vector ::const_iterator _iter1074; + for (_iter1074 = (*(this->new_parts)).begin(); _iter1074 != (*(this->new_parts)).end(); ++_iter1074) { - xfer += (*_iter1070).write(oprot); + xfer += (*_iter1074).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10889,14 +10889,14 @@ uint32_t ThriftHiveMetastore_append_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1071; - ::apache::thrift::protocol::TType _etype1074; - xfer += iprot->readListBegin(_etype1074, _size1071); - this->part_vals.resize(_size1071); - uint32_t _i1075; - for (_i1075 = 0; _i1075 < _size1071; ++_i1075) + uint32_t _size1075; + ::apache::thrift::protocol::TType _etype1078; + xfer += iprot->readListBegin(_etype1078, _size1075); + this->part_vals.resize(_size1075); + uint32_t _i1079; + for (_i1079 = 0; _i1079 < _size1075; ++_i1079) { - xfer += iprot->readString(this->part_vals[_i1075]); + xfer += iprot->readString(this->part_vals[_i1079]); } xfer += iprot->readListEnd(); } @@ -10933,10 +10933,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 _iter1076; - for (_iter1076 = this->part_vals.begin(); _iter1076 != this->part_vals.end(); ++_iter1076) + std::vector ::const_iterator _iter1080; + for (_iter1080 = this->part_vals.begin(); _iter1080 != this->part_vals.end(); ++_iter1080) { - xfer += oprot->writeString((*_iter1076)); + xfer += oprot->writeString((*_iter1080)); } xfer += oprot->writeListEnd(); } @@ -10968,10 +10968,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 _iter1077; - for (_iter1077 = (*(this->part_vals)).begin(); _iter1077 != (*(this->part_vals)).end(); ++_iter1077) + std::vector ::const_iterator _iter1081; + for (_iter1081 = (*(this->part_vals)).begin(); _iter1081 != (*(this->part_vals)).end(); ++_iter1081) { - xfer += oprot->writeString((*_iter1077)); + xfer += oprot->writeString((*_iter1081)); } xfer += oprot->writeListEnd(); } @@ -11443,14 +11443,14 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::rea if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1078; - ::apache::thrift::protocol::TType _etype1081; - xfer += iprot->readListBegin(_etype1081, _size1078); - this->part_vals.resize(_size1078); - uint32_t _i1082; - for (_i1082 = 0; _i1082 < _size1078; ++_i1082) + uint32_t _size1082; + ::apache::thrift::protocol::TType _etype1085; + xfer += iprot->readListBegin(_etype1085, _size1082); + this->part_vals.resize(_size1082); + uint32_t _i1086; + for (_i1086 = 0; _i1086 < _size1082; ++_i1086) { - xfer += iprot->readString(this->part_vals[_i1082]); + xfer += iprot->readString(this->part_vals[_i1086]); } xfer += iprot->readListEnd(); } @@ -11495,10 +11495,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 _iter1083; - for (_iter1083 = this->part_vals.begin(); _iter1083 != this->part_vals.end(); ++_iter1083) + std::vector ::const_iterator _iter1087; + for (_iter1087 = this->part_vals.begin(); _iter1087 != this->part_vals.end(); ++_iter1087) { - xfer += oprot->writeString((*_iter1083)); + xfer += oprot->writeString((*_iter1087)); } xfer += oprot->writeListEnd(); } @@ -11534,10 +11534,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 _iter1084; - for (_iter1084 = (*(this->part_vals)).begin(); _iter1084 != (*(this->part_vals)).end(); ++_iter1084) + std::vector ::const_iterator _iter1088; + for (_iter1088 = (*(this->part_vals)).begin(); _iter1088 != (*(this->part_vals)).end(); ++_iter1088) { - xfer += oprot->writeString((*_iter1084)); + xfer += oprot->writeString((*_iter1088)); } xfer += oprot->writeListEnd(); } @@ -12340,14 +12340,14 @@ uint32_t ThriftHiveMetastore_drop_partition_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1085; - ::apache::thrift::protocol::TType _etype1088; - xfer += iprot->readListBegin(_etype1088, _size1085); - this->part_vals.resize(_size1085); - uint32_t _i1089; - for (_i1089 = 0; _i1089 < _size1085; ++_i1089) + uint32_t _size1089; + ::apache::thrift::protocol::TType _etype1092; + xfer += iprot->readListBegin(_etype1092, _size1089); + this->part_vals.resize(_size1089); + uint32_t _i1093; + for (_i1093 = 0; _i1093 < _size1089; ++_i1093) { - xfer += iprot->readString(this->part_vals[_i1089]); + xfer += iprot->readString(this->part_vals[_i1093]); } xfer += iprot->readListEnd(); } @@ -12392,10 +12392,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 _iter1090; - for (_iter1090 = this->part_vals.begin(); _iter1090 != this->part_vals.end(); ++_iter1090) + std::vector ::const_iterator _iter1094; + for (_iter1094 = this->part_vals.begin(); _iter1094 != this->part_vals.end(); ++_iter1094) { - xfer += oprot->writeString((*_iter1090)); + xfer += oprot->writeString((*_iter1094)); } xfer += oprot->writeListEnd(); } @@ -12431,10 +12431,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 _iter1091; - for (_iter1091 = (*(this->part_vals)).begin(); _iter1091 != (*(this->part_vals)).end(); ++_iter1091) + std::vector ::const_iterator _iter1095; + for (_iter1095 = (*(this->part_vals)).begin(); _iter1095 != (*(this->part_vals)).end(); ++_iter1095) { - xfer += oprot->writeString((*_iter1091)); + xfer += oprot->writeString((*_iter1095)); } xfer += oprot->writeListEnd(); } @@ -12643,14 +12643,14 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::read( if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1092; - ::apache::thrift::protocol::TType _etype1095; - xfer += iprot->readListBegin(_etype1095, _size1092); - this->part_vals.resize(_size1092); - uint32_t _i1096; - for (_i1096 = 0; _i1096 < _size1092; ++_i1096) + uint32_t _size1096; + ::apache::thrift::protocol::TType _etype1099; + xfer += iprot->readListBegin(_etype1099, _size1096); + this->part_vals.resize(_size1096); + uint32_t _i1100; + for (_i1100 = 0; _i1100 < _size1096; ++_i1100) { - xfer += iprot->readString(this->part_vals[_i1096]); + xfer += iprot->readString(this->part_vals[_i1100]); } xfer += iprot->readListEnd(); } @@ -12703,10 +12703,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 _iter1097; - for (_iter1097 = this->part_vals.begin(); _iter1097 != this->part_vals.end(); ++_iter1097) + std::vector ::const_iterator _iter1101; + for (_iter1101 = this->part_vals.begin(); _iter1101 != this->part_vals.end(); ++_iter1101) { - xfer += oprot->writeString((*_iter1097)); + xfer += oprot->writeString((*_iter1101)); } xfer += oprot->writeListEnd(); } @@ -12746,10 +12746,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 _iter1098; - for (_iter1098 = (*(this->part_vals)).begin(); _iter1098 != (*(this->part_vals)).end(); ++_iter1098) + std::vector ::const_iterator _iter1102; + for (_iter1102 = (*(this->part_vals)).begin(); _iter1102 != (*(this->part_vals)).end(); ++_iter1102) { - xfer += oprot->writeString((*_iter1098)); + xfer += oprot->writeString((*_iter1102)); } xfer += oprot->writeListEnd(); } @@ -13755,14 +13755,14 @@ uint32_t ThriftHiveMetastore_get_partition_args::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1099; - ::apache::thrift::protocol::TType _etype1102; - xfer += iprot->readListBegin(_etype1102, _size1099); - this->part_vals.resize(_size1099); - uint32_t _i1103; - for (_i1103 = 0; _i1103 < _size1099; ++_i1103) + uint32_t _size1103; + ::apache::thrift::protocol::TType _etype1106; + xfer += iprot->readListBegin(_etype1106, _size1103); + this->part_vals.resize(_size1103); + uint32_t _i1107; + for (_i1107 = 0; _i1107 < _size1103; ++_i1107) { - xfer += iprot->readString(this->part_vals[_i1103]); + xfer += iprot->readString(this->part_vals[_i1107]); } xfer += iprot->readListEnd(); } @@ -13799,10 +13799,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 _iter1104; - for (_iter1104 = this->part_vals.begin(); _iter1104 != this->part_vals.end(); ++_iter1104) + std::vector ::const_iterator _iter1108; + for (_iter1108 = this->part_vals.begin(); _iter1108 != this->part_vals.end(); ++_iter1108) { - xfer += oprot->writeString((*_iter1104)); + xfer += oprot->writeString((*_iter1108)); } xfer += oprot->writeListEnd(); } @@ -13834,10 +13834,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 _iter1105; - for (_iter1105 = (*(this->part_vals)).begin(); _iter1105 != (*(this->part_vals)).end(); ++_iter1105) + std::vector ::const_iterator _iter1109; + for (_iter1109 = (*(this->part_vals)).begin(); _iter1109 != (*(this->part_vals)).end(); ++_iter1109) { - xfer += oprot->writeString((*_iter1105)); + xfer += oprot->writeString((*_iter1109)); } xfer += oprot->writeListEnd(); } @@ -14026,17 +14026,17 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size1106; - ::apache::thrift::protocol::TType _ktype1107; - ::apache::thrift::protocol::TType _vtype1108; - xfer += iprot->readMapBegin(_ktype1107, _vtype1108, _size1106); - uint32_t _i1110; - for (_i1110 = 0; _i1110 < _size1106; ++_i1110) + uint32_t _size1110; + ::apache::thrift::protocol::TType _ktype1111; + ::apache::thrift::protocol::TType _vtype1112; + xfer += iprot->readMapBegin(_ktype1111, _vtype1112, _size1110); + uint32_t _i1114; + for (_i1114 = 0; _i1114 < _size1110; ++_i1114) { - std::string _key1111; - xfer += iprot->readString(_key1111); - std::string& _val1112 = this->partitionSpecs[_key1111]; - xfer += iprot->readString(_val1112); + std::string _key1115; + xfer += iprot->readString(_key1115); + std::string& _val1116 = this->partitionSpecs[_key1115]; + xfer += iprot->readString(_val1116); } xfer += iprot->readMapEnd(); } @@ -14097,11 +14097,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 _iter1113; - for (_iter1113 = this->partitionSpecs.begin(); _iter1113 != this->partitionSpecs.end(); ++_iter1113) + std::map ::const_iterator _iter1117; + for (_iter1117 = this->partitionSpecs.begin(); _iter1117 != this->partitionSpecs.end(); ++_iter1117) { - xfer += oprot->writeString(_iter1113->first); - xfer += oprot->writeString(_iter1113->second); + xfer += oprot->writeString(_iter1117->first); + xfer += oprot->writeString(_iter1117->second); } xfer += oprot->writeMapEnd(); } @@ -14141,11 +14141,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 _iter1114; - for (_iter1114 = (*(this->partitionSpecs)).begin(); _iter1114 != (*(this->partitionSpecs)).end(); ++_iter1114) + std::map ::const_iterator _iter1118; + for (_iter1118 = (*(this->partitionSpecs)).begin(); _iter1118 != (*(this->partitionSpecs)).end(); ++_iter1118) { - xfer += oprot->writeString(_iter1114->first); - xfer += oprot->writeString(_iter1114->second); + xfer += oprot->writeString(_iter1118->first); + xfer += oprot->writeString(_iter1118->second); } xfer += oprot->writeMapEnd(); } @@ -14390,17 +14390,17 @@ uint32_t ThriftHiveMetastore_exchange_partitions_args::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size1115; - ::apache::thrift::protocol::TType _ktype1116; - ::apache::thrift::protocol::TType _vtype1117; - xfer += iprot->readMapBegin(_ktype1116, _vtype1117, _size1115); - uint32_t _i1119; - for (_i1119 = 0; _i1119 < _size1115; ++_i1119) + uint32_t _size1119; + ::apache::thrift::protocol::TType _ktype1120; + ::apache::thrift::protocol::TType _vtype1121; + xfer += iprot->readMapBegin(_ktype1120, _vtype1121, _size1119); + uint32_t _i1123; + for (_i1123 = 0; _i1123 < _size1119; ++_i1123) { - std::string _key1120; - xfer += iprot->readString(_key1120); - std::string& _val1121 = this->partitionSpecs[_key1120]; - xfer += iprot->readString(_val1121); + std::string _key1124; + xfer += iprot->readString(_key1124); + std::string& _val1125 = this->partitionSpecs[_key1124]; + xfer += iprot->readString(_val1125); } xfer += iprot->readMapEnd(); } @@ -14461,11 +14461,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 _iter1122; - for (_iter1122 = this->partitionSpecs.begin(); _iter1122 != this->partitionSpecs.end(); ++_iter1122) + std::map ::const_iterator _iter1126; + for (_iter1126 = this->partitionSpecs.begin(); _iter1126 != this->partitionSpecs.end(); ++_iter1126) { - xfer += oprot->writeString(_iter1122->first); - xfer += oprot->writeString(_iter1122->second); + xfer += oprot->writeString(_iter1126->first); + xfer += oprot->writeString(_iter1126->second); } xfer += oprot->writeMapEnd(); } @@ -14505,11 +14505,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 _iter1123; - for (_iter1123 = (*(this->partitionSpecs)).begin(); _iter1123 != (*(this->partitionSpecs)).end(); ++_iter1123) + std::map ::const_iterator _iter1127; + for (_iter1127 = (*(this->partitionSpecs)).begin(); _iter1127 != (*(this->partitionSpecs)).end(); ++_iter1127) { - xfer += oprot->writeString(_iter1123->first); - xfer += oprot->writeString(_iter1123->second); + xfer += oprot->writeString(_iter1127->first); + xfer += oprot->writeString(_iter1127->second); } xfer += oprot->writeMapEnd(); } @@ -14566,14 +14566,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1124; - ::apache::thrift::protocol::TType _etype1127; - xfer += iprot->readListBegin(_etype1127, _size1124); - this->success.resize(_size1124); - uint32_t _i1128; - for (_i1128 = 0; _i1128 < _size1124; ++_i1128) + uint32_t _size1128; + ::apache::thrift::protocol::TType _etype1131; + xfer += iprot->readListBegin(_etype1131, _size1128); + this->success.resize(_size1128); + uint32_t _i1132; + for (_i1132 = 0; _i1132 < _size1128; ++_i1132) { - xfer += this->success[_i1128].read(iprot); + xfer += this->success[_i1132].read(iprot); } xfer += iprot->readListEnd(); } @@ -14636,10 +14636,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 _iter1129; - for (_iter1129 = this->success.begin(); _iter1129 != this->success.end(); ++_iter1129) + std::vector ::const_iterator _iter1133; + for (_iter1133 = this->success.begin(); _iter1133 != this->success.end(); ++_iter1133) { - xfer += (*_iter1129).write(oprot); + xfer += (*_iter1133).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14696,14 +14696,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1130; - ::apache::thrift::protocol::TType _etype1133; - xfer += iprot->readListBegin(_etype1133, _size1130); - (*(this->success)).resize(_size1130); - uint32_t _i1134; - for (_i1134 = 0; _i1134 < _size1130; ++_i1134) + uint32_t _size1134; + ::apache::thrift::protocol::TType _etype1137; + xfer += iprot->readListBegin(_etype1137, _size1134); + (*(this->success)).resize(_size1134); + uint32_t _i1138; + for (_i1138 = 0; _i1138 < _size1134; ++_i1138) { - xfer += (*(this->success))[_i1134].read(iprot); + xfer += (*(this->success))[_i1138].read(iprot); } xfer += iprot->readListEnd(); } @@ -14802,14 +14802,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 _size1135; - ::apache::thrift::protocol::TType _etype1138; - xfer += iprot->readListBegin(_etype1138, _size1135); - this->part_vals.resize(_size1135); - uint32_t _i1139; - for (_i1139 = 0; _i1139 < _size1135; ++_i1139) + uint32_t _size1139; + ::apache::thrift::protocol::TType _etype1142; + xfer += iprot->readListBegin(_etype1142, _size1139); + this->part_vals.resize(_size1139); + uint32_t _i1143; + for (_i1143 = 0; _i1143 < _size1139; ++_i1143) { - xfer += iprot->readString(this->part_vals[_i1139]); + xfer += iprot->readString(this->part_vals[_i1143]); } xfer += iprot->readListEnd(); } @@ -14830,14 +14830,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 _size1140; - ::apache::thrift::protocol::TType _etype1143; - xfer += iprot->readListBegin(_etype1143, _size1140); - this->group_names.resize(_size1140); - uint32_t _i1144; - for (_i1144 = 0; _i1144 < _size1140; ++_i1144) + uint32_t _size1144; + ::apache::thrift::protocol::TType _etype1147; + xfer += iprot->readListBegin(_etype1147, _size1144); + this->group_names.resize(_size1144); + uint32_t _i1148; + for (_i1148 = 0; _i1148 < _size1144; ++_i1148) { - xfer += iprot->readString(this->group_names[_i1144]); + xfer += iprot->readString(this->group_names[_i1148]); } xfer += iprot->readListEnd(); } @@ -14874,10 +14874,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 _iter1145; - for (_iter1145 = this->part_vals.begin(); _iter1145 != this->part_vals.end(); ++_iter1145) + std::vector ::const_iterator _iter1149; + for (_iter1149 = this->part_vals.begin(); _iter1149 != this->part_vals.end(); ++_iter1149) { - xfer += oprot->writeString((*_iter1145)); + xfer += oprot->writeString((*_iter1149)); } xfer += oprot->writeListEnd(); } @@ -14890,10 +14890,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 _iter1146; - for (_iter1146 = this->group_names.begin(); _iter1146 != this->group_names.end(); ++_iter1146) + std::vector ::const_iterator _iter1150; + for (_iter1150 = this->group_names.begin(); _iter1150 != this->group_names.end(); ++_iter1150) { - xfer += oprot->writeString((*_iter1146)); + xfer += oprot->writeString((*_iter1150)); } xfer += oprot->writeListEnd(); } @@ -14925,10 +14925,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 _iter1147; - for (_iter1147 = (*(this->part_vals)).begin(); _iter1147 != (*(this->part_vals)).end(); ++_iter1147) + std::vector ::const_iterator _iter1151; + for (_iter1151 = (*(this->part_vals)).begin(); _iter1151 != (*(this->part_vals)).end(); ++_iter1151) { - xfer += oprot->writeString((*_iter1147)); + xfer += oprot->writeString((*_iter1151)); } xfer += oprot->writeListEnd(); } @@ -14941,10 +14941,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 _iter1148; - for (_iter1148 = (*(this->group_names)).begin(); _iter1148 != (*(this->group_names)).end(); ++_iter1148) + std::vector ::const_iterator _iter1152; + for (_iter1152 = (*(this->group_names)).begin(); _iter1152 != (*(this->group_names)).end(); ++_iter1152) { - xfer += oprot->writeString((*_iter1148)); + xfer += oprot->writeString((*_iter1152)); } xfer += oprot->writeListEnd(); } @@ -15503,14 +15503,14 @@ uint32_t ThriftHiveMetastore_get_partitions_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1149; - ::apache::thrift::protocol::TType _etype1152; - xfer += iprot->readListBegin(_etype1152, _size1149); - this->success.resize(_size1149); - uint32_t _i1153; - for (_i1153 = 0; _i1153 < _size1149; ++_i1153) + uint32_t _size1153; + ::apache::thrift::protocol::TType _etype1156; + xfer += iprot->readListBegin(_etype1156, _size1153); + this->success.resize(_size1153); + uint32_t _i1157; + for (_i1157 = 0; _i1157 < _size1153; ++_i1157) { - xfer += this->success[_i1153].read(iprot); + xfer += this->success[_i1157].read(iprot); } xfer += iprot->readListEnd(); } @@ -15557,10 +15557,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 _iter1154; - for (_iter1154 = this->success.begin(); _iter1154 != this->success.end(); ++_iter1154) + std::vector ::const_iterator _iter1158; + for (_iter1158 = this->success.begin(); _iter1158 != this->success.end(); ++_iter1158) { - xfer += (*_iter1154).write(oprot); + xfer += (*_iter1158).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15609,14 +15609,14 @@ uint32_t ThriftHiveMetastore_get_partitions_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1155; - ::apache::thrift::protocol::TType _etype1158; - xfer += iprot->readListBegin(_etype1158, _size1155); - (*(this->success)).resize(_size1155); - uint32_t _i1159; - for (_i1159 = 0; _i1159 < _size1155; ++_i1159) + uint32_t _size1159; + ::apache::thrift::protocol::TType _etype1162; + xfer += iprot->readListBegin(_etype1162, _size1159); + (*(this->success)).resize(_size1159); + uint32_t _i1163; + for (_i1163 = 0; _i1163 < _size1159; ++_i1163) { - xfer += (*(this->success))[_i1159].read(iprot); + xfer += (*(this->success))[_i1163].read(iprot); } xfer += iprot->readListEnd(); } @@ -15715,14 +15715,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 _size1160; - ::apache::thrift::protocol::TType _etype1163; - xfer += iprot->readListBegin(_etype1163, _size1160); - this->group_names.resize(_size1160); - uint32_t _i1164; - for (_i1164 = 0; _i1164 < _size1160; ++_i1164) + uint32_t _size1164; + ::apache::thrift::protocol::TType _etype1167; + xfer += iprot->readListBegin(_etype1167, _size1164); + this->group_names.resize(_size1164); + uint32_t _i1168; + for (_i1168 = 0; _i1168 < _size1164; ++_i1168) { - xfer += iprot->readString(this->group_names[_i1164]); + xfer += iprot->readString(this->group_names[_i1168]); } xfer += iprot->readListEnd(); } @@ -15767,10 +15767,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 _iter1165; - for (_iter1165 = this->group_names.begin(); _iter1165 != this->group_names.end(); ++_iter1165) + std::vector ::const_iterator _iter1169; + for (_iter1169 = this->group_names.begin(); _iter1169 != this->group_names.end(); ++_iter1169) { - xfer += oprot->writeString((*_iter1165)); + xfer += oprot->writeString((*_iter1169)); } xfer += oprot->writeListEnd(); } @@ -15810,10 +15810,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 _iter1166; - for (_iter1166 = (*(this->group_names)).begin(); _iter1166 != (*(this->group_names)).end(); ++_iter1166) + std::vector ::const_iterator _iter1170; + for (_iter1170 = (*(this->group_names)).begin(); _iter1170 != (*(this->group_names)).end(); ++_iter1170) { - xfer += oprot->writeString((*_iter1166)); + xfer += oprot->writeString((*_iter1170)); } xfer += oprot->writeListEnd(); } @@ -15854,14 +15854,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1167; - ::apache::thrift::protocol::TType _etype1170; - xfer += iprot->readListBegin(_etype1170, _size1167); - this->success.resize(_size1167); - uint32_t _i1171; - for (_i1171 = 0; _i1171 < _size1167; ++_i1171) + uint32_t _size1171; + ::apache::thrift::protocol::TType _etype1174; + xfer += iprot->readListBegin(_etype1174, _size1171); + this->success.resize(_size1171); + uint32_t _i1175; + for (_i1175 = 0; _i1175 < _size1171; ++_i1175) { - xfer += this->success[_i1171].read(iprot); + xfer += this->success[_i1175].read(iprot); } xfer += iprot->readListEnd(); } @@ -15908,10 +15908,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 _iter1172; - for (_iter1172 = this->success.begin(); _iter1172 != this->success.end(); ++_iter1172) + std::vector ::const_iterator _iter1176; + for (_iter1176 = this->success.begin(); _iter1176 != this->success.end(); ++_iter1176) { - xfer += (*_iter1172).write(oprot); + xfer += (*_iter1176).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15960,14 +15960,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1173; - ::apache::thrift::protocol::TType _etype1176; - xfer += iprot->readListBegin(_etype1176, _size1173); - (*(this->success)).resize(_size1173); - uint32_t _i1177; - for (_i1177 = 0; _i1177 < _size1173; ++_i1177) + uint32_t _size1177; + ::apache::thrift::protocol::TType _etype1180; + xfer += iprot->readListBegin(_etype1180, _size1177); + (*(this->success)).resize(_size1177); + uint32_t _i1181; + for (_i1181 = 0; _i1181 < _size1177; ++_i1181) { - xfer += (*(this->success))[_i1177].read(iprot); + xfer += (*(this->success))[_i1181].read(iprot); } xfer += iprot->readListEnd(); } @@ -16145,14 +16145,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_result::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1178; - ::apache::thrift::protocol::TType _etype1181; - xfer += iprot->readListBegin(_etype1181, _size1178); - this->success.resize(_size1178); - uint32_t _i1182; - for (_i1182 = 0; _i1182 < _size1178; ++_i1182) + uint32_t _size1182; + ::apache::thrift::protocol::TType _etype1185; + xfer += iprot->readListBegin(_etype1185, _size1182); + this->success.resize(_size1182); + uint32_t _i1186; + for (_i1186 = 0; _i1186 < _size1182; ++_i1186) { - xfer += this->success[_i1182].read(iprot); + xfer += this->success[_i1186].read(iprot); } xfer += iprot->readListEnd(); } @@ -16199,10 +16199,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 _iter1183; - for (_iter1183 = this->success.begin(); _iter1183 != this->success.end(); ++_iter1183) + std::vector ::const_iterator _iter1187; + for (_iter1187 = this->success.begin(); _iter1187 != this->success.end(); ++_iter1187) { - xfer += (*_iter1183).write(oprot); + xfer += (*_iter1187).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16251,14 +16251,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_presult::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1184; - ::apache::thrift::protocol::TType _etype1187; - xfer += iprot->readListBegin(_etype1187, _size1184); - (*(this->success)).resize(_size1184); - uint32_t _i1188; - for (_i1188 = 0; _i1188 < _size1184; ++_i1188) + uint32_t _size1188; + ::apache::thrift::protocol::TType _etype1191; + xfer += iprot->readListBegin(_etype1191, _size1188); + (*(this->success)).resize(_size1188); + uint32_t _i1192; + for (_i1192 = 0; _i1192 < _size1188; ++_i1192) { - xfer += (*(this->success))[_i1188].read(iprot); + xfer += (*(this->success))[_i1192].read(iprot); } xfer += iprot->readListEnd(); } @@ -16436,14 +16436,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1189; - ::apache::thrift::protocol::TType _etype1192; - xfer += iprot->readListBegin(_etype1192, _size1189); - this->success.resize(_size1189); - uint32_t _i1193; - for (_i1193 = 0; _i1193 < _size1189; ++_i1193) + 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) { - xfer += iprot->readString(this->success[_i1193]); + xfer += iprot->readString(this->success[_i1197]); } xfer += iprot->readListEnd(); } @@ -16482,10 +16482,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 _iter1194; - for (_iter1194 = this->success.begin(); _iter1194 != this->success.end(); ++_iter1194) + std::vector ::const_iterator _iter1198; + for (_iter1198 = this->success.begin(); _iter1198 != this->success.end(); ++_iter1198) { - xfer += oprot->writeString((*_iter1194)); + xfer += oprot->writeString((*_iter1198)); } xfer += oprot->writeListEnd(); } @@ -16530,14 +16530,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1195; - ::apache::thrift::protocol::TType _etype1198; - xfer += iprot->readListBegin(_etype1198, _size1195); - (*(this->success)).resize(_size1195); - uint32_t _i1199; - for (_i1199 = 0; _i1199 < _size1195; ++_i1199) + uint32_t _size1199; + ::apache::thrift::protocol::TType _etype1202; + xfer += iprot->readListBegin(_etype1202, _size1199); + (*(this->success)).resize(_size1199); + uint32_t _i1203; + for (_i1203 = 0; _i1203 < _size1199; ++_i1203) { - xfer += iprot->readString((*(this->success))[_i1199]); + xfer += iprot->readString((*(this->success))[_i1203]); } xfer += iprot->readListEnd(); } @@ -16612,14 +16612,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 _size1200; - ::apache::thrift::protocol::TType _etype1203; - xfer += iprot->readListBegin(_etype1203, _size1200); - this->part_vals.resize(_size1200); - uint32_t _i1204; - for (_i1204 = 0; _i1204 < _size1200; ++_i1204) + uint32_t _size1204; + ::apache::thrift::protocol::TType _etype1207; + xfer += iprot->readListBegin(_etype1207, _size1204); + this->part_vals.resize(_size1204); + uint32_t _i1208; + for (_i1208 = 0; _i1208 < _size1204; ++_i1208) { - xfer += iprot->readString(this->part_vals[_i1204]); + xfer += iprot->readString(this->part_vals[_i1208]); } xfer += iprot->readListEnd(); } @@ -16664,10 +16664,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 _iter1205; - for (_iter1205 = this->part_vals.begin(); _iter1205 != this->part_vals.end(); ++_iter1205) + std::vector ::const_iterator _iter1209; + for (_iter1209 = this->part_vals.begin(); _iter1209 != this->part_vals.end(); ++_iter1209) { - xfer += oprot->writeString((*_iter1205)); + xfer += oprot->writeString((*_iter1209)); } xfer += oprot->writeListEnd(); } @@ -16703,10 +16703,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 _iter1206; - for (_iter1206 = (*(this->part_vals)).begin(); _iter1206 != (*(this->part_vals)).end(); ++_iter1206) + std::vector ::const_iterator _iter1210; + for (_iter1210 = (*(this->part_vals)).begin(); _iter1210 != (*(this->part_vals)).end(); ++_iter1210) { - xfer += oprot->writeString((*_iter1206)); + xfer += oprot->writeString((*_iter1210)); } xfer += oprot->writeListEnd(); } @@ -16751,14 +16751,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1207; - ::apache::thrift::protocol::TType _etype1210; - xfer += iprot->readListBegin(_etype1210, _size1207); - this->success.resize(_size1207); - uint32_t _i1211; - for (_i1211 = 0; _i1211 < _size1207; ++_i1211) + uint32_t _size1211; + ::apache::thrift::protocol::TType _etype1214; + xfer += iprot->readListBegin(_etype1214, _size1211); + this->success.resize(_size1211); + uint32_t _i1215; + for (_i1215 = 0; _i1215 < _size1211; ++_i1215) { - xfer += this->success[_i1211].read(iprot); + xfer += this->success[_i1215].read(iprot); } xfer += iprot->readListEnd(); } @@ -16805,10 +16805,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 _iter1212; - for (_iter1212 = this->success.begin(); _iter1212 != this->success.end(); ++_iter1212) + std::vector ::const_iterator _iter1216; + for (_iter1216 = this->success.begin(); _iter1216 != this->success.end(); ++_iter1216) { - xfer += (*_iter1212).write(oprot); + xfer += (*_iter1216).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16857,14 +16857,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1213; - ::apache::thrift::protocol::TType _etype1216; - xfer += iprot->readListBegin(_etype1216, _size1213); - (*(this->success)).resize(_size1213); - uint32_t _i1217; - for (_i1217 = 0; _i1217 < _size1213; ++_i1217) + uint32_t _size1217; + ::apache::thrift::protocol::TType _etype1220; + xfer += iprot->readListBegin(_etype1220, _size1217); + (*(this->success)).resize(_size1217); + uint32_t _i1221; + for (_i1221 = 0; _i1221 < _size1217; ++_i1221) { - xfer += (*(this->success))[_i1217].read(iprot); + xfer += (*(this->success))[_i1221].read(iprot); } xfer += iprot->readListEnd(); } @@ -16947,14 +16947,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 _size1218; - ::apache::thrift::protocol::TType _etype1221; - xfer += iprot->readListBegin(_etype1221, _size1218); - this->part_vals.resize(_size1218); - uint32_t _i1222; - for (_i1222 = 0; _i1222 < _size1218; ++_i1222) + uint32_t _size1222; + ::apache::thrift::protocol::TType _etype1225; + xfer += iprot->readListBegin(_etype1225, _size1222); + this->part_vals.resize(_size1222); + uint32_t _i1226; + for (_i1226 = 0; _i1226 < _size1222; ++_i1226) { - xfer += iprot->readString(this->part_vals[_i1222]); + xfer += iprot->readString(this->part_vals[_i1226]); } xfer += iprot->readListEnd(); } @@ -16983,14 +16983,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 _size1223; - ::apache::thrift::protocol::TType _etype1226; - xfer += iprot->readListBegin(_etype1226, _size1223); - this->group_names.resize(_size1223); - uint32_t _i1227; - for (_i1227 = 0; _i1227 < _size1223; ++_i1227) + uint32_t _size1227; + ::apache::thrift::protocol::TType _etype1230; + xfer += iprot->readListBegin(_etype1230, _size1227); + this->group_names.resize(_size1227); + uint32_t _i1231; + for (_i1231 = 0; _i1231 < _size1227; ++_i1231) { - xfer += iprot->readString(this->group_names[_i1227]); + xfer += iprot->readString(this->group_names[_i1231]); } xfer += iprot->readListEnd(); } @@ -17027,10 +17027,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 _iter1228; - for (_iter1228 = this->part_vals.begin(); _iter1228 != this->part_vals.end(); ++_iter1228) + std::vector ::const_iterator _iter1232; + for (_iter1232 = this->part_vals.begin(); _iter1232 != this->part_vals.end(); ++_iter1232) { - xfer += oprot->writeString((*_iter1228)); + xfer += oprot->writeString((*_iter1232)); } xfer += oprot->writeListEnd(); } @@ -17047,10 +17047,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 _iter1229; - for (_iter1229 = this->group_names.begin(); _iter1229 != this->group_names.end(); ++_iter1229) + std::vector ::const_iterator _iter1233; + for (_iter1233 = this->group_names.begin(); _iter1233 != this->group_names.end(); ++_iter1233) { - xfer += oprot->writeString((*_iter1229)); + xfer += oprot->writeString((*_iter1233)); } xfer += oprot->writeListEnd(); } @@ -17082,10 +17082,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 _iter1230; - for (_iter1230 = (*(this->part_vals)).begin(); _iter1230 != (*(this->part_vals)).end(); ++_iter1230) + std::vector ::const_iterator _iter1234; + for (_iter1234 = (*(this->part_vals)).begin(); _iter1234 != (*(this->part_vals)).end(); ++_iter1234) { - xfer += oprot->writeString((*_iter1230)); + xfer += oprot->writeString((*_iter1234)); } xfer += oprot->writeListEnd(); } @@ -17102,10 +17102,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 _iter1231; - for (_iter1231 = (*(this->group_names)).begin(); _iter1231 != (*(this->group_names)).end(); ++_iter1231) + std::vector ::const_iterator _iter1235; + for (_iter1235 = (*(this->group_names)).begin(); _iter1235 != (*(this->group_names)).end(); ++_iter1235) { - xfer += oprot->writeString((*_iter1231)); + xfer += oprot->writeString((*_iter1235)); } xfer += oprot->writeListEnd(); } @@ -17146,14 +17146,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1232; - ::apache::thrift::protocol::TType _etype1235; - xfer += iprot->readListBegin(_etype1235, _size1232); - this->success.resize(_size1232); - uint32_t _i1236; - for (_i1236 = 0; _i1236 < _size1232; ++_i1236) + uint32_t _size1236; + ::apache::thrift::protocol::TType _etype1239; + xfer += iprot->readListBegin(_etype1239, _size1236); + this->success.resize(_size1236); + uint32_t _i1240; + for (_i1240 = 0; _i1240 < _size1236; ++_i1240) { - xfer += this->success[_i1236].read(iprot); + xfer += this->success[_i1240].read(iprot); } xfer += iprot->readListEnd(); } @@ -17200,10 +17200,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 _iter1237; - for (_iter1237 = this->success.begin(); _iter1237 != this->success.end(); ++_iter1237) + std::vector ::const_iterator _iter1241; + for (_iter1241 = this->success.begin(); _iter1241 != this->success.end(); ++_iter1241) { - xfer += (*_iter1237).write(oprot); + xfer += (*_iter1241).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17252,14 +17252,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_presult::read(::apache: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1238; - ::apache::thrift::protocol::TType _etype1241; - xfer += iprot->readListBegin(_etype1241, _size1238); - (*(this->success)).resize(_size1238); - uint32_t _i1242; - for (_i1242 = 0; _i1242 < _size1238; ++_i1242) + uint32_t _size1242; + ::apache::thrift::protocol::TType _etype1245; + xfer += iprot->readListBegin(_etype1245, _size1242); + (*(this->success)).resize(_size1242); + uint32_t _i1246; + for (_i1246 = 0; _i1246 < _size1242; ++_i1246) { - xfer += (*(this->success))[_i1242].read(iprot); + xfer += (*(this->success))[_i1246].read(iprot); } xfer += iprot->readListEnd(); } @@ -17342,14 +17342,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 _size1243; - ::apache::thrift::protocol::TType _etype1246; - xfer += iprot->readListBegin(_etype1246, _size1243); - this->part_vals.resize(_size1243); - uint32_t _i1247; - for (_i1247 = 0; _i1247 < _size1243; ++_i1247) + uint32_t _size1247; + ::apache::thrift::protocol::TType _etype1250; + xfer += iprot->readListBegin(_etype1250, _size1247); + this->part_vals.resize(_size1247); + uint32_t _i1251; + for (_i1251 = 0; _i1251 < _size1247; ++_i1251) { - xfer += iprot->readString(this->part_vals[_i1247]); + xfer += iprot->readString(this->part_vals[_i1251]); } xfer += iprot->readListEnd(); } @@ -17394,10 +17394,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 _iter1248; - for (_iter1248 = this->part_vals.begin(); _iter1248 != this->part_vals.end(); ++_iter1248) + std::vector ::const_iterator _iter1252; + for (_iter1252 = this->part_vals.begin(); _iter1252 != this->part_vals.end(); ++_iter1252) { - xfer += oprot->writeString((*_iter1248)); + xfer += oprot->writeString((*_iter1252)); } xfer += oprot->writeListEnd(); } @@ -17433,10 +17433,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 _iter1249; - for (_iter1249 = (*(this->part_vals)).begin(); _iter1249 != (*(this->part_vals)).end(); ++_iter1249) + std::vector ::const_iterator _iter1253; + for (_iter1253 = (*(this->part_vals)).begin(); _iter1253 != (*(this->part_vals)).end(); ++_iter1253) { - xfer += oprot->writeString((*_iter1249)); + xfer += oprot->writeString((*_iter1253)); } xfer += oprot->writeListEnd(); } @@ -17481,14 +17481,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1250; - ::apache::thrift::protocol::TType _etype1253; - xfer += iprot->readListBegin(_etype1253, _size1250); - this->success.resize(_size1250); - uint32_t _i1254; - for (_i1254 = 0; _i1254 < _size1250; ++_i1254) + uint32_t _size1254; + ::apache::thrift::protocol::TType _etype1257; + xfer += iprot->readListBegin(_etype1257, _size1254); + this->success.resize(_size1254); + uint32_t _i1258; + for (_i1258 = 0; _i1258 < _size1254; ++_i1258) { - xfer += iprot->readString(this->success[_i1254]); + xfer += iprot->readString(this->success[_i1258]); } xfer += iprot->readListEnd(); } @@ -17535,10 +17535,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 _iter1255; - for (_iter1255 = this->success.begin(); _iter1255 != this->success.end(); ++_iter1255) + std::vector ::const_iterator _iter1259; + for (_iter1259 = this->success.begin(); _iter1259 != this->success.end(); ++_iter1259) { - xfer += oprot->writeString((*_iter1255)); + xfer += oprot->writeString((*_iter1259)); } xfer += oprot->writeListEnd(); } @@ -17587,14 +17587,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1256; - ::apache::thrift::protocol::TType _etype1259; - xfer += iprot->readListBegin(_etype1259, _size1256); - (*(this->success)).resize(_size1256); - uint32_t _i1260; - for (_i1260 = 0; _i1260 < _size1256; ++_i1260) + uint32_t _size1260; + ::apache::thrift::protocol::TType _etype1263; + xfer += iprot->readListBegin(_etype1263, _size1260); + (*(this->success)).resize(_size1260); + uint32_t _i1264; + for (_i1264 = 0; _i1264 < _size1260; ++_i1264) { - xfer += iprot->readString((*(this->success))[_i1260]); + xfer += iprot->readString((*(this->success))[_i1264]); } xfer += iprot->readListEnd(); } @@ -17788,14 +17788,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1261; - ::apache::thrift::protocol::TType _etype1264; - xfer += iprot->readListBegin(_etype1264, _size1261); - this->success.resize(_size1261); - uint32_t _i1265; - for (_i1265 = 0; _i1265 < _size1261; ++_i1265) + uint32_t _size1265; + ::apache::thrift::protocol::TType _etype1268; + xfer += iprot->readListBegin(_etype1268, _size1265); + this->success.resize(_size1265); + uint32_t _i1269; + for (_i1269 = 0; _i1269 < _size1265; ++_i1269) { - xfer += this->success[_i1265].read(iprot); + xfer += this->success[_i1269].read(iprot); } xfer += iprot->readListEnd(); } @@ -17842,10 +17842,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 _iter1266; - for (_iter1266 = this->success.begin(); _iter1266 != this->success.end(); ++_iter1266) + std::vector ::const_iterator _iter1270; + for (_iter1270 = this->success.begin(); _iter1270 != this->success.end(); ++_iter1270) { - xfer += (*_iter1266).write(oprot); + xfer += (*_iter1270).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17894,14 +17894,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1267; - ::apache::thrift::protocol::TType _etype1270; - xfer += iprot->readListBegin(_etype1270, _size1267); - (*(this->success)).resize(_size1267); - uint32_t _i1271; - for (_i1271 = 0; _i1271 < _size1267; ++_i1271) + uint32_t _size1271; + ::apache::thrift::protocol::TType _etype1274; + xfer += iprot->readListBegin(_etype1274, _size1271); + (*(this->success)).resize(_size1271); + uint32_t _i1275; + for (_i1275 = 0; _i1275 < _size1271; ++_i1275) { - xfer += (*(this->success))[_i1271].read(iprot); + xfer += (*(this->success))[_i1275].read(iprot); } xfer += iprot->readListEnd(); } @@ -18095,14 +18095,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 _size1272; - ::apache::thrift::protocol::TType _etype1275; - xfer += iprot->readListBegin(_etype1275, _size1272); - this->success.resize(_size1272); - uint32_t _i1276; - for (_i1276 = 0; _i1276 < _size1272; ++_i1276) + uint32_t _size1276; + ::apache::thrift::protocol::TType _etype1279; + xfer += iprot->readListBegin(_etype1279, _size1276); + this->success.resize(_size1276); + uint32_t _i1280; + for (_i1280 = 0; _i1280 < _size1276; ++_i1280) { - xfer += this->success[_i1276].read(iprot); + xfer += this->success[_i1280].read(iprot); } xfer += iprot->readListEnd(); } @@ -18149,10 +18149,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 _iter1277; - for (_iter1277 = this->success.begin(); _iter1277 != this->success.end(); ++_iter1277) + std::vector ::const_iterator _iter1281; + for (_iter1281 = this->success.begin(); _iter1281 != this->success.end(); ++_iter1281) { - xfer += (*_iter1277).write(oprot); + xfer += (*_iter1281).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18201,14 +18201,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 _size1278; - ::apache::thrift::protocol::TType _etype1281; - xfer += iprot->readListBegin(_etype1281, _size1278); - (*(this->success)).resize(_size1278); - uint32_t _i1282; - for (_i1282 = 0; _i1282 < _size1278; ++_i1282) + uint32_t _size1282; + ::apache::thrift::protocol::TType _etype1285; + xfer += iprot->readListBegin(_etype1285, _size1282); + (*(this->success)).resize(_size1282); + uint32_t _i1286; + for (_i1286 = 0; _i1286 < _size1282; ++_i1286) { - xfer += (*(this->success))[_i1282].read(iprot); + xfer += (*(this->success))[_i1286].read(iprot); } xfer += iprot->readListEnd(); } @@ -18777,14 +18777,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size1283; - ::apache::thrift::protocol::TType _etype1286; - xfer += iprot->readListBegin(_etype1286, _size1283); - this->names.resize(_size1283); - uint32_t _i1287; - for (_i1287 = 0; _i1287 < _size1283; ++_i1287) + uint32_t _size1287; + ::apache::thrift::protocol::TType _etype1290; + xfer += iprot->readListBegin(_etype1290, _size1287); + this->names.resize(_size1287); + uint32_t _i1291; + for (_i1291 = 0; _i1291 < _size1287; ++_i1291) { - xfer += iprot->readString(this->names[_i1287]); + xfer += iprot->readString(this->names[_i1291]); } xfer += iprot->readListEnd(); } @@ -18821,10 +18821,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 _iter1288; - for (_iter1288 = this->names.begin(); _iter1288 != this->names.end(); ++_iter1288) + std::vector ::const_iterator _iter1292; + for (_iter1292 = this->names.begin(); _iter1292 != this->names.end(); ++_iter1292) { - xfer += oprot->writeString((*_iter1288)); + xfer += oprot->writeString((*_iter1292)); } xfer += oprot->writeListEnd(); } @@ -18856,10 +18856,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 _iter1289; - for (_iter1289 = (*(this->names)).begin(); _iter1289 != (*(this->names)).end(); ++_iter1289) + std::vector ::const_iterator _iter1293; + for (_iter1293 = (*(this->names)).begin(); _iter1293 != (*(this->names)).end(); ++_iter1293) { - xfer += oprot->writeString((*_iter1289)); + xfer += oprot->writeString((*_iter1293)); } xfer += oprot->writeListEnd(); } @@ -18900,14 +18900,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1290; - ::apache::thrift::protocol::TType _etype1293; - xfer += iprot->readListBegin(_etype1293, _size1290); - this->success.resize(_size1290); - uint32_t _i1294; - for (_i1294 = 0; _i1294 < _size1290; ++_i1294) + uint32_t _size1294; + ::apache::thrift::protocol::TType _etype1297; + xfer += iprot->readListBegin(_etype1297, _size1294); + this->success.resize(_size1294); + uint32_t _i1298; + for (_i1298 = 0; _i1298 < _size1294; ++_i1298) { - xfer += this->success[_i1294].read(iprot); + xfer += this->success[_i1298].read(iprot); } xfer += iprot->readListEnd(); } @@ -18954,10 +18954,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 _iter1295; - for (_iter1295 = this->success.begin(); _iter1295 != this->success.end(); ++_iter1295) + std::vector ::const_iterator _iter1299; + for (_iter1299 = this->success.begin(); _iter1299 != this->success.end(); ++_iter1299) { - xfer += (*_iter1295).write(oprot); + xfer += (*_iter1299).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19006,14 +19006,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_presult::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1296; - ::apache::thrift::protocol::TType _etype1299; - xfer += iprot->readListBegin(_etype1299, _size1296); - (*(this->success)).resize(_size1296); - uint32_t _i1300; - for (_i1300 = 0; _i1300 < _size1296; ++_i1300) + uint32_t _size1300; + ::apache::thrift::protocol::TType _etype1303; + xfer += iprot->readListBegin(_etype1303, _size1300); + (*(this->success)).resize(_size1300); + uint32_t _i1304; + for (_i1304 = 0; _i1304 < _size1300; ++_i1304) { - xfer += (*(this->success))[_i1300].read(iprot); + xfer += (*(this->success))[_i1304].read(iprot); } xfer += iprot->readListEnd(); } @@ -19335,14 +19335,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1301; - ::apache::thrift::protocol::TType _etype1304; - xfer += iprot->readListBegin(_etype1304, _size1301); - this->new_parts.resize(_size1301); - uint32_t _i1305; - for (_i1305 = 0; _i1305 < _size1301; ++_i1305) + uint32_t _size1305; + ::apache::thrift::protocol::TType _etype1308; + xfer += iprot->readListBegin(_etype1308, _size1305); + this->new_parts.resize(_size1305); + uint32_t _i1309; + for (_i1309 = 0; _i1309 < _size1305; ++_i1309) { - xfer += this->new_parts[_i1305].read(iprot); + xfer += this->new_parts[_i1309].read(iprot); } xfer += iprot->readListEnd(); } @@ -19379,10 +19379,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 _iter1306; - for (_iter1306 = this->new_parts.begin(); _iter1306 != this->new_parts.end(); ++_iter1306) + std::vector ::const_iterator _iter1310; + for (_iter1310 = this->new_parts.begin(); _iter1310 != this->new_parts.end(); ++_iter1310) { - xfer += (*_iter1306).write(oprot); + xfer += (*_iter1310).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19414,10 +19414,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 _iter1307; - for (_iter1307 = (*(this->new_parts)).begin(); _iter1307 != (*(this->new_parts)).end(); ++_iter1307) + std::vector ::const_iterator _iter1311; + for (_iter1311 = (*(this->new_parts)).begin(); _iter1311 != (*(this->new_parts)).end(); ++_iter1311) { - xfer += (*_iter1307).write(oprot); + xfer += (*_iter1311).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19602,14 +19602,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_with_environment_context_args::rea if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1308; - ::apache::thrift::protocol::TType _etype1311; - xfer += iprot->readListBegin(_etype1311, _size1308); - this->new_parts.resize(_size1308); - uint32_t _i1312; - for (_i1312 = 0; _i1312 < _size1308; ++_i1312) + uint32_t _size1312; + ::apache::thrift::protocol::TType _etype1315; + xfer += iprot->readListBegin(_etype1315, _size1312); + this->new_parts.resize(_size1312); + uint32_t _i1316; + for (_i1316 = 0; _i1316 < _size1312; ++_i1316) { - xfer += this->new_parts[_i1312].read(iprot); + xfer += this->new_parts[_i1316].read(iprot); } xfer += iprot->readListEnd(); } @@ -19654,10 +19654,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 _iter1313; - for (_iter1313 = this->new_parts.begin(); _iter1313 != this->new_parts.end(); ++_iter1313) + std::vector ::const_iterator _iter1317; + for (_iter1317 = this->new_parts.begin(); _iter1317 != this->new_parts.end(); ++_iter1317) { - xfer += (*_iter1313).write(oprot); + xfer += (*_iter1317).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19693,10 +19693,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 _iter1314; - for (_iter1314 = (*(this->new_parts)).begin(); _iter1314 != (*(this->new_parts)).end(); ++_iter1314) + std::vector ::const_iterator _iter1318; + for (_iter1318 = (*(this->new_parts)).begin(); _iter1318 != (*(this->new_parts)).end(); ++_iter1318) { - xfer += (*_iter1314).write(oprot); + xfer += (*_iter1318).write(oprot); } xfer += oprot->writeListEnd(); } @@ -20140,14 +20140,14 @@ uint32_t ThriftHiveMetastore_rename_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1315; - ::apache::thrift::protocol::TType _etype1318; - xfer += iprot->readListBegin(_etype1318, _size1315); - this->part_vals.resize(_size1315); - uint32_t _i1319; - for (_i1319 = 0; _i1319 < _size1315; ++_i1319) + uint32_t _size1319; + ::apache::thrift::protocol::TType _etype1322; + xfer += iprot->readListBegin(_etype1322, _size1319); + this->part_vals.resize(_size1319); + uint32_t _i1323; + for (_i1323 = 0; _i1323 < _size1319; ++_i1323) { - xfer += iprot->readString(this->part_vals[_i1319]); + xfer += iprot->readString(this->part_vals[_i1323]); } xfer += iprot->readListEnd(); } @@ -20192,10 +20192,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 _iter1320; - for (_iter1320 = this->part_vals.begin(); _iter1320 != this->part_vals.end(); ++_iter1320) + std::vector ::const_iterator _iter1324; + for (_iter1324 = this->part_vals.begin(); _iter1324 != this->part_vals.end(); ++_iter1324) { - xfer += oprot->writeString((*_iter1320)); + xfer += oprot->writeString((*_iter1324)); } xfer += oprot->writeListEnd(); } @@ -20231,10 +20231,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 _iter1321; - for (_iter1321 = (*(this->part_vals)).begin(); _iter1321 != (*(this->part_vals)).end(); ++_iter1321) + std::vector ::const_iterator _iter1325; + for (_iter1325 = (*(this->part_vals)).begin(); _iter1325 != (*(this->part_vals)).end(); ++_iter1325) { - xfer += oprot->writeString((*_iter1321)); + xfer += oprot->writeString((*_iter1325)); } xfer += oprot->writeListEnd(); } @@ -20407,14 +20407,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 _size1322; - ::apache::thrift::protocol::TType _etype1325; - xfer += iprot->readListBegin(_etype1325, _size1322); - this->part_vals.resize(_size1322); - uint32_t _i1326; - for (_i1326 = 0; _i1326 < _size1322; ++_i1326) + uint32_t _size1326; + ::apache::thrift::protocol::TType _etype1329; + xfer += iprot->readListBegin(_etype1329, _size1326); + this->part_vals.resize(_size1326); + uint32_t _i1330; + for (_i1330 = 0; _i1330 < _size1326; ++_i1330) { - xfer += iprot->readString(this->part_vals[_i1326]); + xfer += iprot->readString(this->part_vals[_i1330]); } xfer += iprot->readListEnd(); } @@ -20451,10 +20451,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 _iter1327; - for (_iter1327 = this->part_vals.begin(); _iter1327 != this->part_vals.end(); ++_iter1327) + std::vector ::const_iterator _iter1331; + for (_iter1331 = this->part_vals.begin(); _iter1331 != this->part_vals.end(); ++_iter1331) { - xfer += oprot->writeString((*_iter1327)); + xfer += oprot->writeString((*_iter1331)); } xfer += oprot->writeListEnd(); } @@ -20482,10 +20482,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 _iter1328; - for (_iter1328 = (*(this->part_vals)).begin(); _iter1328 != (*(this->part_vals)).end(); ++_iter1328) + std::vector ::const_iterator _iter1332; + for (_iter1332 = (*(this->part_vals)).begin(); _iter1332 != (*(this->part_vals)).end(); ++_iter1332) { - xfer += oprot->writeString((*_iter1328)); + xfer += oprot->writeString((*_iter1332)); } xfer += oprot->writeListEnd(); } @@ -20960,14 +20960,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1329; - ::apache::thrift::protocol::TType _etype1332; - xfer += iprot->readListBegin(_etype1332, _size1329); - this->success.resize(_size1329); - uint32_t _i1333; - for (_i1333 = 0; _i1333 < _size1329; ++_i1333) + uint32_t _size1333; + ::apache::thrift::protocol::TType _etype1336; + xfer += iprot->readListBegin(_etype1336, _size1333); + this->success.resize(_size1333); + uint32_t _i1337; + for (_i1337 = 0; _i1337 < _size1333; ++_i1337) { - xfer += iprot->readString(this->success[_i1333]); + xfer += iprot->readString(this->success[_i1337]); } xfer += iprot->readListEnd(); } @@ -21006,10 +21006,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 _iter1334; - for (_iter1334 = this->success.begin(); _iter1334 != this->success.end(); ++_iter1334) + std::vector ::const_iterator _iter1338; + for (_iter1338 = this->success.begin(); _iter1338 != this->success.end(); ++_iter1338) { - xfer += oprot->writeString((*_iter1334)); + xfer += oprot->writeString((*_iter1338)); } xfer += oprot->writeListEnd(); } @@ -21054,14 +21054,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1335; - ::apache::thrift::protocol::TType _etype1338; - xfer += iprot->readListBegin(_etype1338, _size1335); - (*(this->success)).resize(_size1335); - uint32_t _i1339; - for (_i1339 = 0; _i1339 < _size1335; ++_i1339) + 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) { - xfer += iprot->readString((*(this->success))[_i1339]); + xfer += iprot->readString((*(this->success))[_i1343]); } xfer += iprot->readListEnd(); } @@ -21199,17 +21199,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size1340; - ::apache::thrift::protocol::TType _ktype1341; - ::apache::thrift::protocol::TType _vtype1342; - xfer += iprot->readMapBegin(_ktype1341, _vtype1342, _size1340); - uint32_t _i1344; - for (_i1344 = 0; _i1344 < _size1340; ++_i1344) + uint32_t _size1344; + ::apache::thrift::protocol::TType _ktype1345; + ::apache::thrift::protocol::TType _vtype1346; + xfer += iprot->readMapBegin(_ktype1345, _vtype1346, _size1344); + uint32_t _i1348; + for (_i1348 = 0; _i1348 < _size1344; ++_i1348) { - std::string _key1345; - xfer += iprot->readString(_key1345); - std::string& _val1346 = this->success[_key1345]; - xfer += iprot->readString(_val1346); + std::string _key1349; + xfer += iprot->readString(_key1349); + std::string& _val1350 = this->success[_key1349]; + xfer += iprot->readString(_val1350); } xfer += iprot->readMapEnd(); } @@ -21248,11 +21248,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 _iter1347; - for (_iter1347 = this->success.begin(); _iter1347 != this->success.end(); ++_iter1347) + std::map ::const_iterator _iter1351; + for (_iter1351 = this->success.begin(); _iter1351 != this->success.end(); ++_iter1351) { - xfer += oprot->writeString(_iter1347->first); - xfer += oprot->writeString(_iter1347->second); + xfer += oprot->writeString(_iter1351->first); + xfer += oprot->writeString(_iter1351->second); } xfer += oprot->writeMapEnd(); } @@ -21297,17 +21297,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size1348; - ::apache::thrift::protocol::TType _ktype1349; - ::apache::thrift::protocol::TType _vtype1350; - xfer += iprot->readMapBegin(_ktype1349, _vtype1350, _size1348); - uint32_t _i1352; - for (_i1352 = 0; _i1352 < _size1348; ++_i1352) + uint32_t _size1352; + ::apache::thrift::protocol::TType _ktype1353; + ::apache::thrift::protocol::TType _vtype1354; + xfer += iprot->readMapBegin(_ktype1353, _vtype1354, _size1352); + uint32_t _i1356; + for (_i1356 = 0; _i1356 < _size1352; ++_i1356) { - std::string _key1353; - xfer += iprot->readString(_key1353); - std::string& _val1354 = (*(this->success))[_key1353]; - xfer += iprot->readString(_val1354); + std::string _key1357; + xfer += iprot->readString(_key1357); + std::string& _val1358 = (*(this->success))[_key1357]; + xfer += iprot->readString(_val1358); } xfer += iprot->readMapEnd(); } @@ -21382,17 +21382,17 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1355; - ::apache::thrift::protocol::TType _ktype1356; - ::apache::thrift::protocol::TType _vtype1357; - xfer += iprot->readMapBegin(_ktype1356, _vtype1357, _size1355); - uint32_t _i1359; - for (_i1359 = 0; _i1359 < _size1355; ++_i1359) + uint32_t _size1359; + ::apache::thrift::protocol::TType _ktype1360; + ::apache::thrift::protocol::TType _vtype1361; + xfer += iprot->readMapBegin(_ktype1360, _vtype1361, _size1359); + uint32_t _i1363; + for (_i1363 = 0; _i1363 < _size1359; ++_i1363) { - std::string _key1360; - xfer += iprot->readString(_key1360); - std::string& _val1361 = this->part_vals[_key1360]; - xfer += iprot->readString(_val1361); + std::string _key1364; + xfer += iprot->readString(_key1364); + std::string& _val1365 = this->part_vals[_key1364]; + xfer += iprot->readString(_val1365); } xfer += iprot->readMapEnd(); } @@ -21403,9 +21403,9 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1362; - xfer += iprot->readI32(ecast1362); - this->eventType = (PartitionEventType::type)ecast1362; + int32_t ecast1366; + xfer += iprot->readI32(ecast1366); + this->eventType = (PartitionEventType::type)ecast1366; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -21439,11 +21439,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 _iter1363; - for (_iter1363 = this->part_vals.begin(); _iter1363 != this->part_vals.end(); ++_iter1363) + std::map ::const_iterator _iter1367; + for (_iter1367 = this->part_vals.begin(); _iter1367 != this->part_vals.end(); ++_iter1367) { - xfer += oprot->writeString(_iter1363->first); - xfer += oprot->writeString(_iter1363->second); + xfer += oprot->writeString(_iter1367->first); + xfer += oprot->writeString(_iter1367->second); } xfer += oprot->writeMapEnd(); } @@ -21479,11 +21479,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 _iter1364; - for (_iter1364 = (*(this->part_vals)).begin(); _iter1364 != (*(this->part_vals)).end(); ++_iter1364) + std::map ::const_iterator _iter1368; + for (_iter1368 = (*(this->part_vals)).begin(); _iter1368 != (*(this->part_vals)).end(); ++_iter1368) { - xfer += oprot->writeString(_iter1364->first); - xfer += oprot->writeString(_iter1364->second); + xfer += oprot->writeString(_iter1368->first); + xfer += oprot->writeString(_iter1368->second); } xfer += oprot->writeMapEnd(); } @@ -21752,17 +21752,17 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1365; - ::apache::thrift::protocol::TType _ktype1366; - ::apache::thrift::protocol::TType _vtype1367; - xfer += iprot->readMapBegin(_ktype1366, _vtype1367, _size1365); - uint32_t _i1369; - for (_i1369 = 0; _i1369 < _size1365; ++_i1369) + uint32_t _size1369; + ::apache::thrift::protocol::TType _ktype1370; + ::apache::thrift::protocol::TType _vtype1371; + xfer += iprot->readMapBegin(_ktype1370, _vtype1371, _size1369); + uint32_t _i1373; + for (_i1373 = 0; _i1373 < _size1369; ++_i1373) { - std::string _key1370; - xfer += iprot->readString(_key1370); - std::string& _val1371 = this->part_vals[_key1370]; - xfer += iprot->readString(_val1371); + std::string _key1374; + xfer += iprot->readString(_key1374); + std::string& _val1375 = this->part_vals[_key1374]; + xfer += iprot->readString(_val1375); } xfer += iprot->readMapEnd(); } @@ -21773,9 +21773,9 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1372; - xfer += iprot->readI32(ecast1372); - this->eventType = (PartitionEventType::type)ecast1372; + int32_t ecast1376; + xfer += iprot->readI32(ecast1376); + this->eventType = (PartitionEventType::type)ecast1376; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -21809,11 +21809,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 _iter1373; - for (_iter1373 = this->part_vals.begin(); _iter1373 != this->part_vals.end(); ++_iter1373) + std::map ::const_iterator _iter1377; + for (_iter1377 = this->part_vals.begin(); _iter1377 != this->part_vals.end(); ++_iter1377) { - xfer += oprot->writeString(_iter1373->first); - xfer += oprot->writeString(_iter1373->second); + xfer += oprot->writeString(_iter1377->first); + xfer += oprot->writeString(_iter1377->second); } xfer += oprot->writeMapEnd(); } @@ -21849,11 +21849,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 _iter1374; - for (_iter1374 = (*(this->part_vals)).begin(); _iter1374 != (*(this->part_vals)).end(); ++_iter1374) + std::map ::const_iterator _iter1378; + for (_iter1378 = (*(this->part_vals)).begin(); _iter1378 != (*(this->part_vals)).end(); ++_iter1378) { - xfer += oprot->writeString(_iter1374->first); - xfer += oprot->writeString(_iter1374->second); + xfer += oprot->writeString(_iter1378->first); + xfer += oprot->writeString(_iter1378->second); } xfer += oprot->writeMapEnd(); } @@ -23289,14 +23289,14 @@ uint32_t ThriftHiveMetastore_get_indexes_result::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1375; - ::apache::thrift::protocol::TType _etype1378; - xfer += iprot->readListBegin(_etype1378, _size1375); - this->success.resize(_size1375); - uint32_t _i1379; - for (_i1379 = 0; _i1379 < _size1375; ++_i1379) + uint32_t _size1379; + ::apache::thrift::protocol::TType _etype1382; + xfer += iprot->readListBegin(_etype1382, _size1379); + this->success.resize(_size1379); + uint32_t _i1383; + for (_i1383 = 0; _i1383 < _size1379; ++_i1383) { - xfer += this->success[_i1379].read(iprot); + xfer += this->success[_i1383].read(iprot); } xfer += iprot->readListEnd(); } @@ -23343,10 +23343,10 @@ uint32_t ThriftHiveMetastore_get_indexes_result::write(::apache::thrift::protoco 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 _iter1380; - for (_iter1380 = this->success.begin(); _iter1380 != this->success.end(); ++_iter1380) + std::vector ::const_iterator _iter1384; + for (_iter1384 = this->success.begin(); _iter1384 != this->success.end(); ++_iter1384) { - xfer += (*_iter1380).write(oprot); + xfer += (*_iter1384).write(oprot); } xfer += oprot->writeListEnd(); } @@ -23395,14 +23395,14 @@ uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1381; - ::apache::thrift::protocol::TType _etype1384; - xfer += iprot->readListBegin(_etype1384, _size1381); - (*(this->success)).resize(_size1381); - uint32_t _i1385; - for (_i1385 = 0; _i1385 < _size1381; ++_i1385) + uint32_t _size1385; + ::apache::thrift::protocol::TType _etype1388; + xfer += iprot->readListBegin(_etype1388, _size1385); + (*(this->success)).resize(_size1385); + uint32_t _i1389; + for (_i1389 = 0; _i1389 < _size1385; ++_i1389) { - xfer += (*(this->success))[_i1385].read(iprot); + xfer += (*(this->success))[_i1389].read(iprot); } xfer += iprot->readListEnd(); } @@ -23580,14 +23580,14 @@ uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::prot 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 _size1390; + ::apache::thrift::protocol::TType _etype1393; + xfer += iprot->readListBegin(_etype1393, _size1390); + this->success.resize(_size1390); + uint32_t _i1394; + for (_i1394 = 0; _i1394 < _size1390; ++_i1394) { - xfer += iprot->readString(this->success[_i1390]); + xfer += iprot->readString(this->success[_i1394]); } xfer += iprot->readListEnd(); } @@ -23626,10 +23626,10 @@ uint32_t ThriftHiveMetastore_get_index_names_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 _iter1391; - for (_iter1391 = this->success.begin(); _iter1391 != this->success.end(); ++_iter1391) + std::vector ::const_iterator _iter1395; + for (_iter1395 = this->success.begin(); _iter1395 != this->success.end(); ++_iter1395) { - xfer += oprot->writeString((*_iter1391)); + xfer += oprot->writeString((*_iter1395)); } xfer += oprot->writeListEnd(); } @@ -23674,14 +23674,14 @@ uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::pro 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 _size1396; + ::apache::thrift::protocol::TType _etype1399; + xfer += iprot->readListBegin(_etype1399, _size1396); + (*(this->success)).resize(_size1396); + uint32_t _i1400; + for (_i1400 = 0; _i1400 < _size1396; ++_i1400) { - xfer += iprot->readString((*(this->success))[_i1396]); + xfer += iprot->readString((*(this->success))[_i1400]); } xfer += iprot->readListEnd(); } @@ -28162,14 +28162,14 @@ uint32_t ThriftHiveMetastore_get_functions_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1397; - ::apache::thrift::protocol::TType _etype1400; - xfer += iprot->readListBegin(_etype1400, _size1397); - this->success.resize(_size1397); - uint32_t _i1401; - for (_i1401 = 0; _i1401 < _size1397; ++_i1401) + uint32_t _size1401; + ::apache::thrift::protocol::TType _etype1404; + xfer += iprot->readListBegin(_etype1404, _size1401); + this->success.resize(_size1401); + uint32_t _i1405; + for (_i1405 = 0; _i1405 < _size1401; ++_i1405) { - xfer += iprot->readString(this->success[_i1401]); + xfer += iprot->readString(this->success[_i1405]); } xfer += iprot->readListEnd(); } @@ -28208,10 +28208,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 _iter1402; - for (_iter1402 = this->success.begin(); _iter1402 != this->success.end(); ++_iter1402) + std::vector ::const_iterator _iter1406; + for (_iter1406 = this->success.begin(); _iter1406 != this->success.end(); ++_iter1406) { - xfer += oprot->writeString((*_iter1402)); + xfer += oprot->writeString((*_iter1406)); } xfer += oprot->writeListEnd(); } @@ -28256,14 +28256,14 @@ uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1403; - ::apache::thrift::protocol::TType _etype1406; - xfer += iprot->readListBegin(_etype1406, _size1403); - (*(this->success)).resize(_size1403); - uint32_t _i1407; - for (_i1407 = 0; _i1407 < _size1403; ++_i1407) + uint32_t _size1407; + ::apache::thrift::protocol::TType _etype1410; + xfer += iprot->readListBegin(_etype1410, _size1407); + (*(this->success)).resize(_size1407); + uint32_t _i1411; + for (_i1411 = 0; _i1411 < _size1407; ++_i1411) { - xfer += iprot->readString((*(this->success))[_i1407]); + xfer += iprot->readString((*(this->success))[_i1411]); } xfer += iprot->readListEnd(); } @@ -29223,14 +29223,14 @@ uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1408; - ::apache::thrift::protocol::TType _etype1411; - xfer += iprot->readListBegin(_etype1411, _size1408); - this->success.resize(_size1408); - uint32_t _i1412; - for (_i1412 = 0; _i1412 < _size1408; ++_i1412) + uint32_t _size1412; + ::apache::thrift::protocol::TType _etype1415; + xfer += iprot->readListBegin(_etype1415, _size1412); + this->success.resize(_size1412); + uint32_t _i1416; + for (_i1416 = 0; _i1416 < _size1412; ++_i1416) { - xfer += iprot->readString(this->success[_i1412]); + xfer += iprot->readString(this->success[_i1416]); } xfer += iprot->readListEnd(); } @@ -29269,10 +29269,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 _iter1413; - for (_iter1413 = this->success.begin(); _iter1413 != this->success.end(); ++_iter1413) + std::vector ::const_iterator _iter1417; + for (_iter1417 = this->success.begin(); _iter1417 != this->success.end(); ++_iter1417) { - xfer += oprot->writeString((*_iter1413)); + xfer += oprot->writeString((*_iter1417)); } xfer += oprot->writeListEnd(); } @@ -29317,14 +29317,14 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1414; - ::apache::thrift::protocol::TType _etype1417; - xfer += iprot->readListBegin(_etype1417, _size1414); - (*(this->success)).resize(_size1414); - uint32_t _i1418; - for (_i1418 = 0; _i1418 < _size1414; ++_i1418) + uint32_t _size1418; + ::apache::thrift::protocol::TType _etype1421; + xfer += iprot->readListBegin(_etype1421, _size1418); + (*(this->success)).resize(_size1418); + uint32_t _i1422; + for (_i1422 = 0; _i1422 < _size1418; ++_i1422) { - xfer += iprot->readString((*(this->success))[_i1418]); + xfer += iprot->readString((*(this->success))[_i1422]); } xfer += iprot->readListEnd(); } @@ -29397,9 +29397,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1419; - xfer += iprot->readI32(ecast1419); - this->principal_type = (PrincipalType::type)ecast1419; + int32_t ecast1423; + xfer += iprot->readI32(ecast1423); + this->principal_type = (PrincipalType::type)ecast1423; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -29415,9 +29415,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1420; - xfer += iprot->readI32(ecast1420); - this->grantorType = (PrincipalType::type)ecast1420; + int32_t ecast1424; + xfer += iprot->readI32(ecast1424); + this->grantorType = (PrincipalType::type)ecast1424; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -29688,9 +29688,9 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol:: break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1421; - xfer += iprot->readI32(ecast1421); - this->principal_type = (PrincipalType::type)ecast1421; + int32_t ecast1425; + xfer += iprot->readI32(ecast1425); + this->principal_type = (PrincipalType::type)ecast1425; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -29921,9 +29921,9 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1422; - xfer += iprot->readI32(ecast1422); - this->principal_type = (PrincipalType::type)ecast1422; + int32_t ecast1426; + xfer += iprot->readI32(ecast1426); + this->principal_type = (PrincipalType::type)ecast1426; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -30012,14 +30012,14 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1423; - ::apache::thrift::protocol::TType _etype1426; - xfer += iprot->readListBegin(_etype1426, _size1423); - this->success.resize(_size1423); - uint32_t _i1427; - for (_i1427 = 0; _i1427 < _size1423; ++_i1427) + uint32_t _size1427; + ::apache::thrift::protocol::TType _etype1430; + xfer += iprot->readListBegin(_etype1430, _size1427); + this->success.resize(_size1427); + uint32_t _i1431; + for (_i1431 = 0; _i1431 < _size1427; ++_i1431) { - xfer += this->success[_i1427].read(iprot); + xfer += this->success[_i1431].read(iprot); } xfer += iprot->readListEnd(); } @@ -30058,10 +30058,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 _iter1428; - for (_iter1428 = this->success.begin(); _iter1428 != this->success.end(); ++_iter1428) + std::vector ::const_iterator _iter1432; + for (_iter1432 = this->success.begin(); _iter1432 != this->success.end(); ++_iter1432) { - xfer += (*_iter1428).write(oprot); + xfer += (*_iter1432).write(oprot); } xfer += oprot->writeListEnd(); } @@ -30106,14 +30106,14 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1429; - ::apache::thrift::protocol::TType _etype1432; - xfer += iprot->readListBegin(_etype1432, _size1429); - (*(this->success)).resize(_size1429); - uint32_t _i1433; - for (_i1433 = 0; _i1433 < _size1429; ++_i1433) + uint32_t _size1433; + ::apache::thrift::protocol::TType _etype1436; + xfer += iprot->readListBegin(_etype1436, _size1433); + (*(this->success)).resize(_size1433); + uint32_t _i1437; + for (_i1437 = 0; _i1437 < _size1433; ++_i1437) { - xfer += (*(this->success))[_i1433].read(iprot); + xfer += (*(this->success))[_i1437].read(iprot); } xfer += iprot->readListEnd(); } @@ -30809,14 +30809,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 _size1434; - ::apache::thrift::protocol::TType _etype1437; - xfer += iprot->readListBegin(_etype1437, _size1434); - this->group_names.resize(_size1434); - uint32_t _i1438; - for (_i1438 = 0; _i1438 < _size1434; ++_i1438) + uint32_t _size1438; + ::apache::thrift::protocol::TType _etype1441; + xfer += iprot->readListBegin(_etype1441, _size1438); + this->group_names.resize(_size1438); + uint32_t _i1442; + for (_i1442 = 0; _i1442 < _size1438; ++_i1442) { - xfer += iprot->readString(this->group_names[_i1438]); + xfer += iprot->readString(this->group_names[_i1442]); } xfer += iprot->readListEnd(); } @@ -30853,10 +30853,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 _iter1439; - for (_iter1439 = this->group_names.begin(); _iter1439 != this->group_names.end(); ++_iter1439) + std::vector ::const_iterator _iter1443; + for (_iter1443 = this->group_names.begin(); _iter1443 != this->group_names.end(); ++_iter1443) { - xfer += oprot->writeString((*_iter1439)); + xfer += oprot->writeString((*_iter1443)); } xfer += oprot->writeListEnd(); } @@ -30888,10 +30888,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 _iter1440; - for (_iter1440 = (*(this->group_names)).begin(); _iter1440 != (*(this->group_names)).end(); ++_iter1440) + std::vector ::const_iterator _iter1444; + for (_iter1444 = (*(this->group_names)).begin(); _iter1444 != (*(this->group_names)).end(); ++_iter1444) { - xfer += oprot->writeString((*_iter1440)); + xfer += oprot->writeString((*_iter1444)); } xfer += oprot->writeListEnd(); } @@ -31066,9 +31066,9 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1441; - xfer += iprot->readI32(ecast1441); - this->principal_type = (PrincipalType::type)ecast1441; + int32_t ecast1445; + xfer += iprot->readI32(ecast1445); + this->principal_type = (PrincipalType::type)ecast1445; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -31173,14 +31173,14 @@ uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1442; - ::apache::thrift::protocol::TType _etype1445; - xfer += iprot->readListBegin(_etype1445, _size1442); - this->success.resize(_size1442); - uint32_t _i1446; - for (_i1446 = 0; _i1446 < _size1442; ++_i1446) + uint32_t _size1446; + ::apache::thrift::protocol::TType _etype1449; + xfer += iprot->readListBegin(_etype1449, _size1446); + this->success.resize(_size1446); + uint32_t _i1450; + for (_i1450 = 0; _i1450 < _size1446; ++_i1450) { - xfer += this->success[_i1446].read(iprot); + xfer += this->success[_i1450].read(iprot); } xfer += iprot->readListEnd(); } @@ -31219,10 +31219,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 _iter1447; - for (_iter1447 = this->success.begin(); _iter1447 != this->success.end(); ++_iter1447) + std::vector ::const_iterator _iter1451; + for (_iter1451 = this->success.begin(); _iter1451 != this->success.end(); ++_iter1451) { - xfer += (*_iter1447).write(oprot); + xfer += (*_iter1451).write(oprot); } xfer += oprot->writeListEnd(); } @@ -31267,14 +31267,14 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1448; - ::apache::thrift::protocol::TType _etype1451; - xfer += iprot->readListBegin(_etype1451, _size1448); - (*(this->success)).resize(_size1448); - uint32_t _i1452; - for (_i1452 = 0; _i1452 < _size1448; ++_i1452) + uint32_t _size1452; + ::apache::thrift::protocol::TType _etype1455; + xfer += iprot->readListBegin(_etype1455, _size1452); + (*(this->success)).resize(_size1452); + uint32_t _i1456; + for (_i1456 = 0; _i1456 < _size1452; ++_i1456) { - xfer += (*(this->success))[_i1452].read(iprot); + xfer += (*(this->success))[_i1456].read(iprot); } xfer += iprot->readListEnd(); } @@ -31962,14 +31962,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 _size1453; - ::apache::thrift::protocol::TType _etype1456; - xfer += iprot->readListBegin(_etype1456, _size1453); - this->group_names.resize(_size1453); - uint32_t _i1457; - for (_i1457 = 0; _i1457 < _size1453; ++_i1457) + uint32_t _size1457; + ::apache::thrift::protocol::TType _etype1460; + xfer += iprot->readListBegin(_etype1460, _size1457); + this->group_names.resize(_size1457); + uint32_t _i1461; + for (_i1461 = 0; _i1461 < _size1457; ++_i1461) { - xfer += iprot->readString(this->group_names[_i1457]); + xfer += iprot->readString(this->group_names[_i1461]); } xfer += iprot->readListEnd(); } @@ -32002,10 +32002,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 _iter1458; - for (_iter1458 = this->group_names.begin(); _iter1458 != this->group_names.end(); ++_iter1458) + std::vector ::const_iterator _iter1462; + for (_iter1462 = this->group_names.begin(); _iter1462 != this->group_names.end(); ++_iter1462) { - xfer += oprot->writeString((*_iter1458)); + xfer += oprot->writeString((*_iter1462)); } xfer += oprot->writeListEnd(); } @@ -32033,10 +32033,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 _iter1459; - for (_iter1459 = (*(this->group_names)).begin(); _iter1459 != (*(this->group_names)).end(); ++_iter1459) + std::vector ::const_iterator _iter1463; + for (_iter1463 = (*(this->group_names)).begin(); _iter1463 != (*(this->group_names)).end(); ++_iter1463) { - xfer += oprot->writeString((*_iter1459)); + xfer += oprot->writeString((*_iter1463)); } xfer += oprot->writeListEnd(); } @@ -32077,14 +32077,14 @@ uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TP if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1460; - ::apache::thrift::protocol::TType _etype1463; - xfer += iprot->readListBegin(_etype1463, _size1460); - this->success.resize(_size1460); - uint32_t _i1464; - for (_i1464 = 0; _i1464 < _size1460; ++_i1464) + uint32_t _size1464; + ::apache::thrift::protocol::TType _etype1467; + xfer += iprot->readListBegin(_etype1467, _size1464); + this->success.resize(_size1464); + uint32_t _i1468; + for (_i1468 = 0; _i1468 < _size1464; ++_i1468) { - xfer += iprot->readString(this->success[_i1464]); + xfer += iprot->readString(this->success[_i1468]); } xfer += iprot->readListEnd(); } @@ -32123,10 +32123,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 _iter1465; - for (_iter1465 = this->success.begin(); _iter1465 != this->success.end(); ++_iter1465) + std::vector ::const_iterator _iter1469; + for (_iter1469 = this->success.begin(); _iter1469 != this->success.end(); ++_iter1469) { - xfer += oprot->writeString((*_iter1465)); + xfer += oprot->writeString((*_iter1469)); } xfer += oprot->writeListEnd(); } @@ -32171,14 +32171,14 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1466; - ::apache::thrift::protocol::TType _etype1469; - xfer += iprot->readListBegin(_etype1469, _size1466); - (*(this->success)).resize(_size1466); - uint32_t _i1470; - for (_i1470 = 0; _i1470 < _size1466; ++_i1470) + 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))[_i1470]); + xfer += iprot->readString((*(this->success))[_i1474]); } xfer += iprot->readListEnd(); } @@ -33489,14 +33489,14 @@ uint32_t ThriftHiveMetastore_get_all_token_identifiers_result::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1471; - ::apache::thrift::protocol::TType _etype1474; - xfer += iprot->readListBegin(_etype1474, _size1471); - this->success.resize(_size1471); - uint32_t _i1475; - for (_i1475 = 0; _i1475 < _size1471; ++_i1475) + uint32_t _size1475; + ::apache::thrift::protocol::TType _etype1478; + xfer += iprot->readListBegin(_etype1478, _size1475); + this->success.resize(_size1475); + uint32_t _i1479; + for (_i1479 = 0; _i1479 < _size1475; ++_i1479) { - xfer += iprot->readString(this->success[_i1475]); + xfer += iprot->readString(this->success[_i1479]); } xfer += iprot->readListEnd(); } @@ -33527,10 +33527,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 _iter1476; - for (_iter1476 = this->success.begin(); _iter1476 != this->success.end(); ++_iter1476) + std::vector ::const_iterator _iter1480; + for (_iter1480 = this->success.begin(); _iter1480 != this->success.end(); ++_iter1480) { - xfer += oprot->writeString((*_iter1476)); + xfer += oprot->writeString((*_iter1480)); } xfer += oprot->writeListEnd(); } @@ -33571,14 +33571,14 @@ uint32_t ThriftHiveMetastore_get_all_token_identifiers_presult::read(::apache::t if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1477; - ::apache::thrift::protocol::TType _etype1480; - xfer += iprot->readListBegin(_etype1480, _size1477); - (*(this->success)).resize(_size1477); - uint32_t _i1481; - for (_i1481 = 0; _i1481 < _size1477; ++_i1481) + uint32_t _size1481; + ::apache::thrift::protocol::TType _etype1484; + xfer += iprot->readListBegin(_etype1484, _size1481); + (*(this->success)).resize(_size1481); + uint32_t _i1485; + for (_i1485 = 0; _i1485 < _size1481; ++_i1485) { - xfer += iprot->readString((*(this->success))[_i1481]); + xfer += iprot->readString((*(this->success))[_i1485]); } xfer += iprot->readListEnd(); } @@ -34304,14 +34304,14 @@ uint32_t ThriftHiveMetastore_get_master_keys_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1482; - ::apache::thrift::protocol::TType _etype1485; - xfer += iprot->readListBegin(_etype1485, _size1482); - this->success.resize(_size1482); - uint32_t _i1486; - for (_i1486 = 0; _i1486 < _size1482; ++_i1486) + uint32_t _size1486; + ::apache::thrift::protocol::TType _etype1489; + xfer += iprot->readListBegin(_etype1489, _size1486); + this->success.resize(_size1486); + uint32_t _i1490; + for (_i1490 = 0; _i1490 < _size1486; ++_i1490) { - xfer += iprot->readString(this->success[_i1486]); + xfer += iprot->readString(this->success[_i1490]); } xfer += iprot->readListEnd(); } @@ -34342,10 +34342,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 _iter1487; - for (_iter1487 = this->success.begin(); _iter1487 != this->success.end(); ++_iter1487) + std::vector ::const_iterator _iter1491; + for (_iter1491 = this->success.begin(); _iter1491 != this->success.end(); ++_iter1491) { - xfer += oprot->writeString((*_iter1487)); + xfer += oprot->writeString((*_iter1491)); } xfer += oprot->writeListEnd(); } @@ -34386,14 +34386,14 @@ uint32_t ThriftHiveMetastore_get_master_keys_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - 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) + uint32_t _size1492; + ::apache::thrift::protocol::TType _etype1495; + xfer += iprot->readListBegin(_etype1495, _size1492); + (*(this->success)).resize(_size1492); + uint32_t _i1496; + for (_i1496 = 0; _i1496 < _size1492; ++_i1496) { - xfer += iprot->readString((*(this->success))[_i1492]); + xfer += iprot->readString((*(this->success))[_i1496]); } xfer += iprot->readListEnd(); } @@ -37887,6 +37887,193 @@ uint32_t ThriftHiveMetastore_get_current_notificationEventId_presult::read(::apa } +ThriftHiveMetastore_get_notification_events_count_args::~ThriftHiveMetastore_get_notification_events_count_args() throw() { +} + + +uint32_t ThriftHiveMetastore_get_notification_events_count_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_get_notification_events_count_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_notification_events_count_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_get_notification_events_count_pargs::~ThriftHiveMetastore_get_notification_events_count_pargs() throw() { +} + + +uint32_t ThriftHiveMetastore_get_notification_events_count_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_notification_events_count_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_get_notification_events_count_result::~ThriftHiveMetastore_get_notification_events_count_result() throw() { +} + + +uint32_t ThriftHiveMetastore_get_notification_events_count_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_get_notification_events_count_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_notification_events_count_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_get_notification_events_count_presult::~ThriftHiveMetastore_get_notification_events_count_presult() throw() { +} + + +uint32_t ThriftHiveMetastore_get_notification_events_count_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_fire_listener_event_args::~ThriftHiveMetastore_fire_listener_event_args() throw() { } @@ -49129,6 +49316,64 @@ void ThriftHiveMetastoreClient::recv_get_current_notificationEventId(CurrentNoti throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_current_notificationEventId failed: unknown result"); } +void ThriftHiveMetastoreClient::get_notification_events_count(NotificationEventsCountResponse& _return, const NotificationEventsCountRequest& rqst) +{ + send_get_notification_events_count(rqst); + recv_get_notification_events_count(_return); +} + +void ThriftHiveMetastoreClient::send_get_notification_events_count(const NotificationEventsCountRequest& rqst) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("get_notification_events_count", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_notification_events_count_pargs args; + args.rqst = &rqst; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void ThriftHiveMetastoreClient::recv_get_notification_events_count(NotificationEventsCountResponse& _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("get_notification_events_count") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_get_notification_events_count_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, "get_notification_events_count failed: unknown result"); +} + void ThriftHiveMetastoreClient::fire_listener_event(FireEventResponse& _return, const FireEventRequest& rqst) { send_fire_listener_event(rqst); @@ -58629,6 +58874,60 @@ void ThriftHiveMetastoreProcessor::process_get_current_notificationEventId(int32 } } +void ThriftHiveMetastoreProcessor::process_get_notification_events_count(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.get_notification_events_count", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.get_notification_events_count"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_notification_events_count"); + } + + ThriftHiveMetastore_get_notification_events_count_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_notification_events_count", bytes); + } + + ThriftHiveMetastore_get_notification_events_count_result result; + try { + iface_->get_notification_events_count(result.success, args.rqst); + result.__isset.success = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_notification_events_count"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("get_notification_events_count", ::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.get_notification_events_count"); + } + + oprot->writeMessageBegin("get_notification_events_count", ::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.get_notification_events_count", bytes); + } +} + void ThriftHiveMetastoreProcessor::process_fire_listener_event(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; @@ -72893,6 +73192,90 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_current_notificationEventId(C } // end while(true) } +void ThriftHiveMetastoreConcurrentClient::get_notification_events_count(NotificationEventsCountResponse& _return, const NotificationEventsCountRequest& rqst) +{ + int32_t seqid = send_get_notification_events_count(rqst); + recv_get_notification_events_count(_return, seqid); +} + +int32_t ThriftHiveMetastoreConcurrentClient::send_get_notification_events_count(const NotificationEventsCountRequest& rqst) +{ + int32_t cseqid = this->sync_.generateSeqId(); + ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); + oprot_->writeMessageBegin("get_notification_events_count", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_notification_events_count_pargs args; + args.rqst = &rqst; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); + + sentry.commit(); + return cseqid; +} + +void ThriftHiveMetastoreConcurrentClient::recv_get_notification_events_count(NotificationEventsCountResponse& _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("get_notification_events_count") != 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_get_notification_events_count_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, "get_notification_events_count 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::fire_listener_event(FireEventResponse& _return, const FireEventRequest& rqst) { int32_t seqid = send_fire_listener_event(rqst); diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h index 8406b42..3094394 100644 --- a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h +++ b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h @@ -173,6 +173,7 @@ class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookService virtual void add_dynamic_partitions(const AddDynamicPartitions& rqst) = 0; virtual void get_next_notification(NotificationEventResponse& _return, const NotificationEventRequest& rqst) = 0; virtual void get_current_notificationEventId(CurrentNotificationEventId& _return) = 0; + 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 cm_recycle(CmRecycleResponse& _return, const CmRecycleRequest& request) = 0; @@ -692,6 +693,9 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p void get_current_notificationEventId(CurrentNotificationEventId& /* _return */) { return; } + void get_notification_events_count(NotificationEventsCountResponse& /* _return */, const NotificationEventsCountRequest& /* rqst */) { + return; + } void fire_listener_event(FireEventResponse& /* _return */, const FireEventRequest& /* rqst */) { return; } @@ -19527,6 +19531,110 @@ class ThriftHiveMetastore_get_current_notificationEventId_presult { }; +typedef struct _ThriftHiveMetastore_get_notification_events_count_args__isset { + _ThriftHiveMetastore_get_notification_events_count_args__isset() : rqst(false) {} + bool rqst :1; +} _ThriftHiveMetastore_get_notification_events_count_args__isset; + +class ThriftHiveMetastore_get_notification_events_count_args { + public: + + ThriftHiveMetastore_get_notification_events_count_args(const ThriftHiveMetastore_get_notification_events_count_args&); + ThriftHiveMetastore_get_notification_events_count_args& operator=(const ThriftHiveMetastore_get_notification_events_count_args&); + ThriftHiveMetastore_get_notification_events_count_args() { + } + + virtual ~ThriftHiveMetastore_get_notification_events_count_args() throw(); + NotificationEventsCountRequest rqst; + + _ThriftHiveMetastore_get_notification_events_count_args__isset __isset; + + void __set_rqst(const NotificationEventsCountRequest& val); + + bool operator == (const ThriftHiveMetastore_get_notification_events_count_args & rhs) const + { + if (!(rqst == rhs.rqst)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_notification_events_count_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_notification_events_count_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_get_notification_events_count_pargs { + public: + + + virtual ~ThriftHiveMetastore_get_notification_events_count_pargs() throw(); + const NotificationEventsCountRequest* rqst; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_notification_events_count_result__isset { + _ThriftHiveMetastore_get_notification_events_count_result__isset() : success(false) {} + bool success :1; +} _ThriftHiveMetastore_get_notification_events_count_result__isset; + +class ThriftHiveMetastore_get_notification_events_count_result { + public: + + ThriftHiveMetastore_get_notification_events_count_result(const ThriftHiveMetastore_get_notification_events_count_result&); + ThriftHiveMetastore_get_notification_events_count_result& operator=(const ThriftHiveMetastore_get_notification_events_count_result&); + ThriftHiveMetastore_get_notification_events_count_result() { + } + + virtual ~ThriftHiveMetastore_get_notification_events_count_result() throw(); + NotificationEventsCountResponse success; + + _ThriftHiveMetastore_get_notification_events_count_result__isset __isset; + + void __set_success(const NotificationEventsCountResponse& val); + + bool operator == (const ThriftHiveMetastore_get_notification_events_count_result & rhs) const + { + if (!(success == rhs.success)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_notification_events_count_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_notification_events_count_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_notification_events_count_presult__isset { + _ThriftHiveMetastore_get_notification_events_count_presult__isset() : success(false) {} + bool success :1; +} _ThriftHiveMetastore_get_notification_events_count_presult__isset; + +class ThriftHiveMetastore_get_notification_events_count_presult { + public: + + + virtual ~ThriftHiveMetastore_get_notification_events_count_presult() throw(); + NotificationEventsCountResponse* success; + + _ThriftHiveMetastore_get_notification_events_count_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + typedef struct _ThriftHiveMetastore_fire_listener_event_args__isset { _ThriftHiveMetastore_fire_listener_event_args__isset() : rqst(false) {} bool rqst :1; @@ -20901,6 +21009,9 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public void get_current_notificationEventId(CurrentNotificationEventId& _return); void send_get_current_notificationEventId(); void recv_get_current_notificationEventId(CurrentNotificationEventId& _return); + void get_notification_events_count(NotificationEventsCountResponse& _return, const NotificationEventsCountRequest& rqst); + void send_get_notification_events_count(const NotificationEventsCountRequest& rqst); + void recv_get_notification_events_count(NotificationEventsCountResponse& _return); void fire_listener_event(FireEventResponse& _return, const FireEventRequest& rqst); void send_fire_listener_event(const FireEventRequest& rqst); void recv_fire_listener_event(FireEventResponse& _return); @@ -21089,6 +21200,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP void process_add_dynamic_partitions(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_next_notification(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_current_notificationEventId(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + 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_cm_recycle(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); @@ -21253,6 +21365,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP processMap_["add_dynamic_partitions"] = &ThriftHiveMetastoreProcessor::process_add_dynamic_partitions; processMap_["get_next_notification"] = &ThriftHiveMetastoreProcessor::process_get_next_notification; processMap_["get_current_notificationEventId"] = &ThriftHiveMetastoreProcessor::process_get_current_notificationEventId; + 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_["cm_recycle"] = &ThriftHiveMetastoreProcessor::process_cm_recycle; @@ -22740,6 +22853,16 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi return; } + void get_notification_events_count(NotificationEventsCountResponse& _return, const NotificationEventsCountRequest& rqst) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->get_notification_events_count(_return, rqst); + } + ifaces_[i]->get_notification_events_count(_return, rqst); + return; + } + void fire_listener_event(FireEventResponse& _return, const FireEventRequest& rqst) { size_t sz = ifaces_.size(); size_t i = 0; @@ -23298,6 +23421,9 @@ class ThriftHiveMetastoreConcurrentClient : virtual public ThriftHiveMetastoreIf void get_current_notificationEventId(CurrentNotificationEventId& _return); int32_t send_get_current_notificationEventId(); void recv_get_current_notificationEventId(CurrentNotificationEventId& _return, const int32_t seqid); + void get_notification_events_count(NotificationEventsCountResponse& _return, const NotificationEventsCountRequest& rqst); + int32_t send_get_notification_events_count(const NotificationEventsCountRequest& rqst); + void recv_get_notification_events_count(NotificationEventsCountResponse& _return, const int32_t seqid); void fire_listener_event(FireEventResponse& _return, const FireEventRequest& rqst); int32_t send_fire_listener_event(const FireEventRequest& rqst); void recv_fire_listener_event(FireEventResponse& _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 ec2071a..c656d5f 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 @@ -777,6 +777,11 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("get_current_notificationEventId\n"); } + void get_notification_events_count(NotificationEventsCountResponse& _return, const NotificationEventsCountRequest& rqst) { + // Your implementation goes here + printf("get_notification_events_count\n"); + } + void fire_listener_event(FireEventResponse& _return, const FireEventRequest& rqst) { // Your implementation goes here printf("fire_listener_event\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 a4f72b6..5c09fdd 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 @@ -17218,6 +17218,201 @@ void CurrentNotificationEventId::printTo(std::ostream& out) const { } +NotificationEventsCountRequest::~NotificationEventsCountRequest() throw() { +} + + +void NotificationEventsCountRequest::__set_fromEventId(const int64_t val) { + this->fromEventId = val; +} + +void NotificationEventsCountRequest::__set_dbName(const std::string& val) { + this->dbName = val; +} + +uint32_t NotificationEventsCountRequest::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_fromEventId = false; + bool isset_dbName = 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->fromEventId); + isset_fromEventId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->dbName); + isset_dbName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_fromEventId) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_dbName) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t NotificationEventsCountRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("NotificationEventsCountRequest"); + + xfer += oprot->writeFieldBegin("fromEventId", ::apache::thrift::protocol::T_I64, 1); + xfer += oprot->writeI64(this->fromEventId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->dbName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(NotificationEventsCountRequest &a, NotificationEventsCountRequest &b) { + using ::std::swap; + swap(a.fromEventId, b.fromEventId); + swap(a.dbName, b.dbName); +} + +NotificationEventsCountRequest::NotificationEventsCountRequest(const NotificationEventsCountRequest& other690) { + fromEventId = other690.fromEventId; + dbName = other690.dbName; +} +NotificationEventsCountRequest& NotificationEventsCountRequest::operator=(const NotificationEventsCountRequest& other691) { + fromEventId = other691.fromEventId; + dbName = other691.dbName; + 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 << ")"; +} + + +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& other692) { + eventsCount = other692.eventsCount; +} +NotificationEventsCountResponse& NotificationEventsCountResponse::operator=(const NotificationEventsCountResponse& other693) { + eventsCount = other693.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() { } @@ -17270,14 +17465,14 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->filesAdded.clear(); - uint32_t _size690; - ::apache::thrift::protocol::TType _etype693; - xfer += iprot->readListBegin(_etype693, _size690); - this->filesAdded.resize(_size690); - uint32_t _i694; - for (_i694 = 0; _i694 < _size690; ++_i694) + uint32_t _size694; + ::apache::thrift::protocol::TType _etype697; + xfer += iprot->readListBegin(_etype697, _size694); + this->filesAdded.resize(_size694); + uint32_t _i698; + for (_i698 = 0; _i698 < _size694; ++_i698) { - xfer += iprot->readString(this->filesAdded[_i694]); + xfer += iprot->readString(this->filesAdded[_i698]); } xfer += iprot->readListEnd(); } @@ -17290,14 +17485,14 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->filesAddedChecksum.clear(); - uint32_t _size695; - ::apache::thrift::protocol::TType _etype698; - xfer += iprot->readListBegin(_etype698, _size695); - this->filesAddedChecksum.resize(_size695); - uint32_t _i699; - for (_i699 = 0; _i699 < _size695; ++_i699) + uint32_t _size699; + ::apache::thrift::protocol::TType _etype702; + xfer += iprot->readListBegin(_etype702, _size699); + this->filesAddedChecksum.resize(_size699); + uint32_t _i703; + for (_i703 = 0; _i703 < _size699; ++_i703) { - xfer += iprot->readString(this->filesAddedChecksum[_i699]); + xfer += iprot->readString(this->filesAddedChecksum[_i703]); } xfer += iprot->readListEnd(); } @@ -17333,10 +17528,10 @@ uint32_t InsertEventRequestData::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("filesAdded", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->filesAdded.size())); - std::vector ::const_iterator _iter700; - for (_iter700 = this->filesAdded.begin(); _iter700 != this->filesAdded.end(); ++_iter700) + std::vector ::const_iterator _iter704; + for (_iter704 = this->filesAdded.begin(); _iter704 != this->filesAdded.end(); ++_iter704) { - xfer += oprot->writeString((*_iter700)); + xfer += oprot->writeString((*_iter704)); } xfer += oprot->writeListEnd(); } @@ -17346,10 +17541,10 @@ uint32_t InsertEventRequestData::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("filesAddedChecksum", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->filesAddedChecksum.size())); - std::vector ::const_iterator _iter701; - for (_iter701 = this->filesAddedChecksum.begin(); _iter701 != this->filesAddedChecksum.end(); ++_iter701) + std::vector ::const_iterator _iter705; + for (_iter705 = this->filesAddedChecksum.begin(); _iter705 != this->filesAddedChecksum.end(); ++_iter705) { - xfer += oprot->writeString((*_iter701)); + xfer += oprot->writeString((*_iter705)); } xfer += oprot->writeListEnd(); } @@ -17368,17 +17563,17 @@ void swap(InsertEventRequestData &a, InsertEventRequestData &b) { swap(a.__isset, b.__isset); } -InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other702) { - replace = other702.replace; - filesAdded = other702.filesAdded; - filesAddedChecksum = other702.filesAddedChecksum; - __isset = other702.__isset; +InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other706) { + replace = other706.replace; + filesAdded = other706.filesAdded; + filesAddedChecksum = other706.filesAddedChecksum; + __isset = other706.__isset; } -InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other703) { - replace = other703.replace; - filesAdded = other703.filesAdded; - filesAddedChecksum = other703.filesAddedChecksum; - __isset = other703.__isset; +InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other707) { + replace = other707.replace; + filesAdded = other707.filesAdded; + filesAddedChecksum = other707.filesAddedChecksum; + __isset = other707.__isset; return *this; } void InsertEventRequestData::printTo(std::ostream& out) const { @@ -17460,13 +17655,13 @@ void swap(FireEventRequestData &a, FireEventRequestData &b) { swap(a.__isset, b.__isset); } -FireEventRequestData::FireEventRequestData(const FireEventRequestData& other704) { - insertData = other704.insertData; - __isset = other704.__isset; +FireEventRequestData::FireEventRequestData(const FireEventRequestData& other708) { + insertData = other708.insertData; + __isset = other708.__isset; } -FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other705) { - insertData = other705.insertData; - __isset = other705.__isset; +FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other709) { + insertData = other709.insertData; + __isset = other709.__isset; return *this; } void FireEventRequestData::printTo(std::ostream& out) const { @@ -17563,14 +17758,14 @@ uint32_t FireEventRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionVals.clear(); - uint32_t _size706; - ::apache::thrift::protocol::TType _etype709; - xfer += iprot->readListBegin(_etype709, _size706); - this->partitionVals.resize(_size706); - uint32_t _i710; - for (_i710 = 0; _i710 < _size706; ++_i710) + uint32_t _size710; + ::apache::thrift::protocol::TType _etype713; + xfer += iprot->readListBegin(_etype713, _size710); + this->partitionVals.resize(_size710); + uint32_t _i714; + for (_i714 = 0; _i714 < _size710; ++_i714) { - xfer += iprot->readString(this->partitionVals[_i710]); + xfer += iprot->readString(this->partitionVals[_i714]); } xfer += iprot->readListEnd(); } @@ -17622,10 +17817,10 @@ uint32_t FireEventRequest::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("partitionVals", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partitionVals.size())); - std::vector ::const_iterator _iter711; - for (_iter711 = this->partitionVals.begin(); _iter711 != this->partitionVals.end(); ++_iter711) + std::vector ::const_iterator _iter715; + for (_iter715 = this->partitionVals.begin(); _iter715 != this->partitionVals.end(); ++_iter715) { - xfer += oprot->writeString((*_iter711)); + xfer += oprot->writeString((*_iter715)); } xfer += oprot->writeListEnd(); } @@ -17646,21 +17841,21 @@ void swap(FireEventRequest &a, FireEventRequest &b) { swap(a.__isset, b.__isset); } -FireEventRequest::FireEventRequest(const FireEventRequest& other712) { - successful = other712.successful; - data = other712.data; - dbName = other712.dbName; - tableName = other712.tableName; - partitionVals = other712.partitionVals; - __isset = other712.__isset; -} -FireEventRequest& FireEventRequest::operator=(const FireEventRequest& other713) { - successful = other713.successful; - data = other713.data; - dbName = other713.dbName; - tableName = other713.tableName; - partitionVals = other713.partitionVals; - __isset = other713.__isset; +FireEventRequest::FireEventRequest(const FireEventRequest& other716) { + successful = other716.successful; + data = other716.data; + dbName = other716.dbName; + tableName = other716.tableName; + partitionVals = other716.partitionVals; + __isset = other716.__isset; +} +FireEventRequest& FireEventRequest::operator=(const FireEventRequest& other717) { + successful = other717.successful; + data = other717.data; + dbName = other717.dbName; + tableName = other717.tableName; + partitionVals = other717.partitionVals; + __isset = other717.__isset; return *this; } void FireEventRequest::printTo(std::ostream& out) const { @@ -17723,11 +17918,11 @@ void swap(FireEventResponse &a, FireEventResponse &b) { (void) b; } -FireEventResponse::FireEventResponse(const FireEventResponse& other714) { - (void) other714; +FireEventResponse::FireEventResponse(const FireEventResponse& other718) { + (void) other718; } -FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other715) { - (void) other715; +FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other719) { + (void) other719; return *this; } void FireEventResponse::printTo(std::ostream& out) const { @@ -17827,15 +18022,15 @@ void swap(MetadataPpdResult &a, MetadataPpdResult &b) { swap(a.__isset, b.__isset); } -MetadataPpdResult::MetadataPpdResult(const MetadataPpdResult& other716) { - metadata = other716.metadata; - includeBitset = other716.includeBitset; - __isset = other716.__isset; +MetadataPpdResult::MetadataPpdResult(const MetadataPpdResult& other720) { + metadata = other720.metadata; + includeBitset = other720.includeBitset; + __isset = other720.__isset; } -MetadataPpdResult& MetadataPpdResult::operator=(const MetadataPpdResult& other717) { - metadata = other717.metadata; - includeBitset = other717.includeBitset; - __isset = other717.__isset; +MetadataPpdResult& MetadataPpdResult::operator=(const MetadataPpdResult& other721) { + metadata = other721.metadata; + includeBitset = other721.includeBitset; + __isset = other721.__isset; return *this; } void MetadataPpdResult::printTo(std::ostream& out) const { @@ -17886,17 +18081,17 @@ uint32_t GetFileMetadataByExprResult::read(::apache::thrift::protocol::TProtocol if (ftype == ::apache::thrift::protocol::T_MAP) { { this->metadata.clear(); - uint32_t _size718; - ::apache::thrift::protocol::TType _ktype719; - ::apache::thrift::protocol::TType _vtype720; - xfer += iprot->readMapBegin(_ktype719, _vtype720, _size718); - uint32_t _i722; - for (_i722 = 0; _i722 < _size718; ++_i722) + uint32_t _size722; + ::apache::thrift::protocol::TType _ktype723; + ::apache::thrift::protocol::TType _vtype724; + xfer += iprot->readMapBegin(_ktype723, _vtype724, _size722); + uint32_t _i726; + for (_i726 = 0; _i726 < _size722; ++_i726) { - int64_t _key723; - xfer += iprot->readI64(_key723); - MetadataPpdResult& _val724 = this->metadata[_key723]; - xfer += _val724.read(iprot); + int64_t _key727; + xfer += iprot->readI64(_key727); + MetadataPpdResult& _val728 = this->metadata[_key727]; + xfer += _val728.read(iprot); } xfer += iprot->readMapEnd(); } @@ -17937,11 +18132,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 _iter725; - for (_iter725 = this->metadata.begin(); _iter725 != this->metadata.end(); ++_iter725) + std::map ::const_iterator _iter729; + for (_iter729 = this->metadata.begin(); _iter729 != this->metadata.end(); ++_iter729) { - xfer += oprot->writeI64(_iter725->first); - xfer += _iter725->second.write(oprot); + xfer += oprot->writeI64(_iter729->first); + xfer += _iter729->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -17962,13 +18157,13 @@ void swap(GetFileMetadataByExprResult &a, GetFileMetadataByExprResult &b) { swap(a.isSupported, b.isSupported); } -GetFileMetadataByExprResult::GetFileMetadataByExprResult(const GetFileMetadataByExprResult& other726) { - metadata = other726.metadata; - isSupported = other726.isSupported; +GetFileMetadataByExprResult::GetFileMetadataByExprResult(const GetFileMetadataByExprResult& other730) { + metadata = other730.metadata; + isSupported = other730.isSupported; } -GetFileMetadataByExprResult& GetFileMetadataByExprResult::operator=(const GetFileMetadataByExprResult& other727) { - metadata = other727.metadata; - isSupported = other727.isSupported; +GetFileMetadataByExprResult& GetFileMetadataByExprResult::operator=(const GetFileMetadataByExprResult& other731) { + metadata = other731.metadata; + isSupported = other731.isSupported; return *this; } void GetFileMetadataByExprResult::printTo(std::ostream& out) const { @@ -18029,14 +18224,14 @@ uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size728; - ::apache::thrift::protocol::TType _etype731; - xfer += iprot->readListBegin(_etype731, _size728); - this->fileIds.resize(_size728); - uint32_t _i732; - for (_i732 = 0; _i732 < _size728; ++_i732) + uint32_t _size732; + ::apache::thrift::protocol::TType _etype735; + xfer += iprot->readListBegin(_etype735, _size732); + this->fileIds.resize(_size732); + uint32_t _i736; + for (_i736 = 0; _i736 < _size732; ++_i736) { - xfer += iprot->readI64(this->fileIds[_i732]); + xfer += iprot->readI64(this->fileIds[_i736]); } xfer += iprot->readListEnd(); } @@ -18063,9 +18258,9 @@ uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtoco break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast733; - xfer += iprot->readI32(ecast733); - this->type = (FileMetadataExprType::type)ecast733; + int32_t ecast737; + xfer += iprot->readI32(ecast737); + this->type = (FileMetadataExprType::type)ecast737; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -18095,10 +18290,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 _iter734; - for (_iter734 = this->fileIds.begin(); _iter734 != this->fileIds.end(); ++_iter734) + std::vector ::const_iterator _iter738; + for (_iter738 = this->fileIds.begin(); _iter738 != this->fileIds.end(); ++_iter738) { - xfer += oprot->writeI64((*_iter734)); + xfer += oprot->writeI64((*_iter738)); } xfer += oprot->writeListEnd(); } @@ -18132,19 +18327,19 @@ void swap(GetFileMetadataByExprRequest &a, GetFileMetadataByExprRequest &b) { swap(a.__isset, b.__isset); } -GetFileMetadataByExprRequest::GetFileMetadataByExprRequest(const GetFileMetadataByExprRequest& other735) { - fileIds = other735.fileIds; - expr = other735.expr; - doGetFooters = other735.doGetFooters; - type = other735.type; - __isset = other735.__isset; +GetFileMetadataByExprRequest::GetFileMetadataByExprRequest(const GetFileMetadataByExprRequest& other739) { + fileIds = other739.fileIds; + expr = other739.expr; + doGetFooters = other739.doGetFooters; + type = other739.type; + __isset = other739.__isset; } -GetFileMetadataByExprRequest& GetFileMetadataByExprRequest::operator=(const GetFileMetadataByExprRequest& other736) { - fileIds = other736.fileIds; - expr = other736.expr; - doGetFooters = other736.doGetFooters; - type = other736.type; - __isset = other736.__isset; +GetFileMetadataByExprRequest& GetFileMetadataByExprRequest::operator=(const GetFileMetadataByExprRequest& other740) { + fileIds = other740.fileIds; + expr = other740.expr; + doGetFooters = other740.doGetFooters; + type = other740.type; + __isset = other740.__isset; return *this; } void GetFileMetadataByExprRequest::printTo(std::ostream& out) const { @@ -18197,17 +18392,17 @@ uint32_t GetFileMetadataResult::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->metadata.clear(); - uint32_t _size737; - ::apache::thrift::protocol::TType _ktype738; - ::apache::thrift::protocol::TType _vtype739; - xfer += iprot->readMapBegin(_ktype738, _vtype739, _size737); - uint32_t _i741; - for (_i741 = 0; _i741 < _size737; ++_i741) + uint32_t _size741; + ::apache::thrift::protocol::TType _ktype742; + ::apache::thrift::protocol::TType _vtype743; + xfer += iprot->readMapBegin(_ktype742, _vtype743, _size741); + uint32_t _i745; + for (_i745 = 0; _i745 < _size741; ++_i745) { - int64_t _key742; - xfer += iprot->readI64(_key742); - std::string& _val743 = this->metadata[_key742]; - xfer += iprot->readBinary(_val743); + int64_t _key746; + xfer += iprot->readI64(_key746); + std::string& _val747 = this->metadata[_key746]; + xfer += iprot->readBinary(_val747); } xfer += iprot->readMapEnd(); } @@ -18248,11 +18443,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 _iter744; - for (_iter744 = this->metadata.begin(); _iter744 != this->metadata.end(); ++_iter744) + std::map ::const_iterator _iter748; + for (_iter748 = this->metadata.begin(); _iter748 != this->metadata.end(); ++_iter748) { - xfer += oprot->writeI64(_iter744->first); - xfer += oprot->writeBinary(_iter744->second); + xfer += oprot->writeI64(_iter748->first); + xfer += oprot->writeBinary(_iter748->second); } xfer += oprot->writeMapEnd(); } @@ -18273,13 +18468,13 @@ void swap(GetFileMetadataResult &a, GetFileMetadataResult &b) { swap(a.isSupported, b.isSupported); } -GetFileMetadataResult::GetFileMetadataResult(const GetFileMetadataResult& other745) { - metadata = other745.metadata; - isSupported = other745.isSupported; +GetFileMetadataResult::GetFileMetadataResult(const GetFileMetadataResult& other749) { + metadata = other749.metadata; + isSupported = other749.isSupported; } -GetFileMetadataResult& GetFileMetadataResult::operator=(const GetFileMetadataResult& other746) { - metadata = other746.metadata; - isSupported = other746.isSupported; +GetFileMetadataResult& GetFileMetadataResult::operator=(const GetFileMetadataResult& other750) { + metadata = other750.metadata; + isSupported = other750.isSupported; return *this; } void GetFileMetadataResult::printTo(std::ostream& out) const { @@ -18325,14 +18520,14 @@ uint32_t GetFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size747; - ::apache::thrift::protocol::TType _etype750; - xfer += iprot->readListBegin(_etype750, _size747); - this->fileIds.resize(_size747); - uint32_t _i751; - for (_i751 = 0; _i751 < _size747; ++_i751) + uint32_t _size751; + ::apache::thrift::protocol::TType _etype754; + xfer += iprot->readListBegin(_etype754, _size751); + this->fileIds.resize(_size751); + uint32_t _i755; + for (_i755 = 0; _i755 < _size751; ++_i755) { - xfer += iprot->readI64(this->fileIds[_i751]); + xfer += iprot->readI64(this->fileIds[_i755]); } xfer += iprot->readListEnd(); } @@ -18363,10 +18558,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 _iter752; - for (_iter752 = this->fileIds.begin(); _iter752 != this->fileIds.end(); ++_iter752) + std::vector ::const_iterator _iter756; + for (_iter756 = this->fileIds.begin(); _iter756 != this->fileIds.end(); ++_iter756) { - xfer += oprot->writeI64((*_iter752)); + xfer += oprot->writeI64((*_iter756)); } xfer += oprot->writeListEnd(); } @@ -18382,11 +18577,11 @@ void swap(GetFileMetadataRequest &a, GetFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -GetFileMetadataRequest::GetFileMetadataRequest(const GetFileMetadataRequest& other753) { - fileIds = other753.fileIds; +GetFileMetadataRequest::GetFileMetadataRequest(const GetFileMetadataRequest& other757) { + fileIds = other757.fileIds; } -GetFileMetadataRequest& GetFileMetadataRequest::operator=(const GetFileMetadataRequest& other754) { - fileIds = other754.fileIds; +GetFileMetadataRequest& GetFileMetadataRequest::operator=(const GetFileMetadataRequest& other758) { + fileIds = other758.fileIds; return *this; } void GetFileMetadataRequest::printTo(std::ostream& out) const { @@ -18445,11 +18640,11 @@ void swap(PutFileMetadataResult &a, PutFileMetadataResult &b) { (void) b; } -PutFileMetadataResult::PutFileMetadataResult(const PutFileMetadataResult& other755) { - (void) other755; +PutFileMetadataResult::PutFileMetadataResult(const PutFileMetadataResult& other759) { + (void) other759; } -PutFileMetadataResult& PutFileMetadataResult::operator=(const PutFileMetadataResult& other756) { - (void) other756; +PutFileMetadataResult& PutFileMetadataResult::operator=(const PutFileMetadataResult& other760) { + (void) other760; return *this; } void PutFileMetadataResult::printTo(std::ostream& out) const { @@ -18503,14 +18698,14 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size757; - ::apache::thrift::protocol::TType _etype760; - xfer += iprot->readListBegin(_etype760, _size757); - this->fileIds.resize(_size757); - uint32_t _i761; - for (_i761 = 0; _i761 < _size757; ++_i761) + uint32_t _size761; + ::apache::thrift::protocol::TType _etype764; + xfer += iprot->readListBegin(_etype764, _size761); + this->fileIds.resize(_size761); + uint32_t _i765; + for (_i765 = 0; _i765 < _size761; ++_i765) { - xfer += iprot->readI64(this->fileIds[_i761]); + xfer += iprot->readI64(this->fileIds[_i765]); } xfer += iprot->readListEnd(); } @@ -18523,14 +18718,14 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->metadata.clear(); - uint32_t _size762; - ::apache::thrift::protocol::TType _etype765; - xfer += iprot->readListBegin(_etype765, _size762); - this->metadata.resize(_size762); - uint32_t _i766; - for (_i766 = 0; _i766 < _size762; ++_i766) + uint32_t _size766; + ::apache::thrift::protocol::TType _etype769; + xfer += iprot->readListBegin(_etype769, _size766); + this->metadata.resize(_size766); + uint32_t _i770; + for (_i770 = 0; _i770 < _size766; ++_i770) { - xfer += iprot->readBinary(this->metadata[_i766]); + xfer += iprot->readBinary(this->metadata[_i770]); } xfer += iprot->readListEnd(); } @@ -18541,9 +18736,9 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast767; - xfer += iprot->readI32(ecast767); - this->type = (FileMetadataExprType::type)ecast767; + int32_t ecast771; + xfer += iprot->readI32(ecast771); + this->type = (FileMetadataExprType::type)ecast771; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -18573,10 +18768,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 _iter768; - for (_iter768 = this->fileIds.begin(); _iter768 != this->fileIds.end(); ++_iter768) + std::vector ::const_iterator _iter772; + for (_iter772 = this->fileIds.begin(); _iter772 != this->fileIds.end(); ++_iter772) { - xfer += oprot->writeI64((*_iter768)); + xfer += oprot->writeI64((*_iter772)); } xfer += oprot->writeListEnd(); } @@ -18585,10 +18780,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 _iter769; - for (_iter769 = this->metadata.begin(); _iter769 != this->metadata.end(); ++_iter769) + std::vector ::const_iterator _iter773; + for (_iter773 = this->metadata.begin(); _iter773 != this->metadata.end(); ++_iter773) { - xfer += oprot->writeBinary((*_iter769)); + xfer += oprot->writeBinary((*_iter773)); } xfer += oprot->writeListEnd(); } @@ -18612,17 +18807,17 @@ void swap(PutFileMetadataRequest &a, PutFileMetadataRequest &b) { swap(a.__isset, b.__isset); } -PutFileMetadataRequest::PutFileMetadataRequest(const PutFileMetadataRequest& other770) { - fileIds = other770.fileIds; - metadata = other770.metadata; - type = other770.type; - __isset = other770.__isset; +PutFileMetadataRequest::PutFileMetadataRequest(const PutFileMetadataRequest& other774) { + fileIds = other774.fileIds; + metadata = other774.metadata; + type = other774.type; + __isset = other774.__isset; } -PutFileMetadataRequest& PutFileMetadataRequest::operator=(const PutFileMetadataRequest& other771) { - fileIds = other771.fileIds; - metadata = other771.metadata; - type = other771.type; - __isset = other771.__isset; +PutFileMetadataRequest& PutFileMetadataRequest::operator=(const PutFileMetadataRequest& other775) { + fileIds = other775.fileIds; + metadata = other775.metadata; + type = other775.type; + __isset = other775.__isset; return *this; } void PutFileMetadataRequest::printTo(std::ostream& out) const { @@ -18683,11 +18878,11 @@ void swap(ClearFileMetadataResult &a, ClearFileMetadataResult &b) { (void) b; } -ClearFileMetadataResult::ClearFileMetadataResult(const ClearFileMetadataResult& other772) { - (void) other772; +ClearFileMetadataResult::ClearFileMetadataResult(const ClearFileMetadataResult& other776) { + (void) other776; } -ClearFileMetadataResult& ClearFileMetadataResult::operator=(const ClearFileMetadataResult& other773) { - (void) other773; +ClearFileMetadataResult& ClearFileMetadataResult::operator=(const ClearFileMetadataResult& other777) { + (void) other777; return *this; } void ClearFileMetadataResult::printTo(std::ostream& out) const { @@ -18731,14 +18926,14 @@ uint32_t ClearFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* i if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size774; - ::apache::thrift::protocol::TType _etype777; - xfer += iprot->readListBegin(_etype777, _size774); - this->fileIds.resize(_size774); - uint32_t _i778; - for (_i778 = 0; _i778 < _size774; ++_i778) + uint32_t _size778; + ::apache::thrift::protocol::TType _etype781; + xfer += iprot->readListBegin(_etype781, _size778); + this->fileIds.resize(_size778); + uint32_t _i782; + for (_i782 = 0; _i782 < _size778; ++_i782) { - xfer += iprot->readI64(this->fileIds[_i778]); + xfer += iprot->readI64(this->fileIds[_i782]); } xfer += iprot->readListEnd(); } @@ -18769,10 +18964,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 _iter779; - for (_iter779 = this->fileIds.begin(); _iter779 != this->fileIds.end(); ++_iter779) + std::vector ::const_iterator _iter783; + for (_iter783 = this->fileIds.begin(); _iter783 != this->fileIds.end(); ++_iter783) { - xfer += oprot->writeI64((*_iter779)); + xfer += oprot->writeI64((*_iter783)); } xfer += oprot->writeListEnd(); } @@ -18788,11 +18983,11 @@ void swap(ClearFileMetadataRequest &a, ClearFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -ClearFileMetadataRequest::ClearFileMetadataRequest(const ClearFileMetadataRequest& other780) { - fileIds = other780.fileIds; +ClearFileMetadataRequest::ClearFileMetadataRequest(const ClearFileMetadataRequest& other784) { + fileIds = other784.fileIds; } -ClearFileMetadataRequest& ClearFileMetadataRequest::operator=(const ClearFileMetadataRequest& other781) { - fileIds = other781.fileIds; +ClearFileMetadataRequest& ClearFileMetadataRequest::operator=(const ClearFileMetadataRequest& other785) { + fileIds = other785.fileIds; return *this; } void ClearFileMetadataRequest::printTo(std::ostream& out) const { @@ -18874,11 +19069,11 @@ void swap(CacheFileMetadataResult &a, CacheFileMetadataResult &b) { swap(a.isSupported, b.isSupported); } -CacheFileMetadataResult::CacheFileMetadataResult(const CacheFileMetadataResult& other782) { - isSupported = other782.isSupported; +CacheFileMetadataResult::CacheFileMetadataResult(const CacheFileMetadataResult& other786) { + isSupported = other786.isSupported; } -CacheFileMetadataResult& CacheFileMetadataResult::operator=(const CacheFileMetadataResult& other783) { - isSupported = other783.isSupported; +CacheFileMetadataResult& CacheFileMetadataResult::operator=(const CacheFileMetadataResult& other787) { + isSupported = other787.isSupported; return *this; } void CacheFileMetadataResult::printTo(std::ostream& out) const { @@ -19019,19 +19214,19 @@ void swap(CacheFileMetadataRequest &a, CacheFileMetadataRequest &b) { swap(a.__isset, b.__isset); } -CacheFileMetadataRequest::CacheFileMetadataRequest(const CacheFileMetadataRequest& other784) { - dbName = other784.dbName; - tblName = other784.tblName; - partName = other784.partName; - isAllParts = other784.isAllParts; - __isset = other784.__isset; +CacheFileMetadataRequest::CacheFileMetadataRequest(const CacheFileMetadataRequest& other788) { + dbName = other788.dbName; + tblName = other788.tblName; + partName = other788.partName; + isAllParts = other788.isAllParts; + __isset = other788.__isset; } -CacheFileMetadataRequest& CacheFileMetadataRequest::operator=(const CacheFileMetadataRequest& other785) { - dbName = other785.dbName; - tblName = other785.tblName; - partName = other785.partName; - isAllParts = other785.isAllParts; - __isset = other785.__isset; +CacheFileMetadataRequest& CacheFileMetadataRequest::operator=(const CacheFileMetadataRequest& other789) { + dbName = other789.dbName; + tblName = other789.tblName; + partName = other789.partName; + isAllParts = other789.isAllParts; + __isset = other789.__isset; return *this; } void CacheFileMetadataRequest::printTo(std::ostream& out) const { @@ -19079,14 +19274,14 @@ uint32_t GetAllFunctionsResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->functions.clear(); - uint32_t _size786; - ::apache::thrift::protocol::TType _etype789; - xfer += iprot->readListBegin(_etype789, _size786); - this->functions.resize(_size786); - uint32_t _i790; - for (_i790 = 0; _i790 < _size786; ++_i790) + uint32_t _size790; + ::apache::thrift::protocol::TType _etype793; + xfer += iprot->readListBegin(_etype793, _size790); + this->functions.resize(_size790); + uint32_t _i794; + for (_i794 = 0; _i794 < _size790; ++_i794) { - xfer += this->functions[_i790].read(iprot); + xfer += this->functions[_i794].read(iprot); } xfer += iprot->readListEnd(); } @@ -19116,10 +19311,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 _iter791; - for (_iter791 = this->functions.begin(); _iter791 != this->functions.end(); ++_iter791) + std::vector ::const_iterator _iter795; + for (_iter795 = this->functions.begin(); _iter795 != this->functions.end(); ++_iter795) { - xfer += (*_iter791).write(oprot); + xfer += (*_iter795).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19136,13 +19331,13 @@ void swap(GetAllFunctionsResponse &a, GetAllFunctionsResponse &b) { swap(a.__isset, b.__isset); } -GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other792) { - functions = other792.functions; - __isset = other792.__isset; +GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other796) { + functions = other796.functions; + __isset = other796.__isset; } -GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other793) { - functions = other793.functions; - __isset = other793.__isset; +GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other797) { + functions = other797.functions; + __isset = other797.__isset; return *this; } void GetAllFunctionsResponse::printTo(std::ostream& out) const { @@ -19187,16 +19382,16 @@ uint32_t ClientCapabilities::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size794; - ::apache::thrift::protocol::TType _etype797; - xfer += iprot->readListBegin(_etype797, _size794); - this->values.resize(_size794); - uint32_t _i798; - for (_i798 = 0; _i798 < _size794; ++_i798) + uint32_t _size798; + ::apache::thrift::protocol::TType _etype801; + xfer += iprot->readListBegin(_etype801, _size798); + this->values.resize(_size798); + uint32_t _i802; + for (_i802 = 0; _i802 < _size798; ++_i802) { - int32_t ecast799; - xfer += iprot->readI32(ecast799); - this->values[_i798] = (ClientCapability::type)ecast799; + int32_t ecast803; + xfer += iprot->readI32(ecast803); + this->values[_i802] = (ClientCapability::type)ecast803; } xfer += iprot->readListEnd(); } @@ -19227,10 +19422,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 _iter800; - for (_iter800 = this->values.begin(); _iter800 != this->values.end(); ++_iter800) + std::vector ::const_iterator _iter804; + for (_iter804 = this->values.begin(); _iter804 != this->values.end(); ++_iter804) { - xfer += oprot->writeI32((int32_t)(*_iter800)); + xfer += oprot->writeI32((int32_t)(*_iter804)); } xfer += oprot->writeListEnd(); } @@ -19246,11 +19441,11 @@ void swap(ClientCapabilities &a, ClientCapabilities &b) { swap(a.values, b.values); } -ClientCapabilities::ClientCapabilities(const ClientCapabilities& other801) { - values = other801.values; +ClientCapabilities::ClientCapabilities(const ClientCapabilities& other805) { + values = other805.values; } -ClientCapabilities& ClientCapabilities::operator=(const ClientCapabilities& other802) { - values = other802.values; +ClientCapabilities& ClientCapabilities::operator=(const ClientCapabilities& other806) { + values = other806.values; return *this; } void ClientCapabilities::printTo(std::ostream& out) const { @@ -19372,17 +19567,17 @@ void swap(GetTableRequest &a, GetTableRequest &b) { swap(a.__isset, b.__isset); } -GetTableRequest::GetTableRequest(const GetTableRequest& other803) { - dbName = other803.dbName; - tblName = other803.tblName; - capabilities = other803.capabilities; - __isset = other803.__isset; +GetTableRequest::GetTableRequest(const GetTableRequest& other807) { + dbName = other807.dbName; + tblName = other807.tblName; + capabilities = other807.capabilities; + __isset = other807.__isset; } -GetTableRequest& GetTableRequest::operator=(const GetTableRequest& other804) { - dbName = other804.dbName; - tblName = other804.tblName; - capabilities = other804.capabilities; - __isset = other804.__isset; +GetTableRequest& GetTableRequest::operator=(const GetTableRequest& other808) { + dbName = other808.dbName; + tblName = other808.tblName; + capabilities = other808.capabilities; + __isset = other808.__isset; return *this; } void GetTableRequest::printTo(std::ostream& out) const { @@ -19466,11 +19661,11 @@ void swap(GetTableResult &a, GetTableResult &b) { swap(a.table, b.table); } -GetTableResult::GetTableResult(const GetTableResult& other805) { - table = other805.table; +GetTableResult::GetTableResult(const GetTableResult& other809) { + table = other809.table; } -GetTableResult& GetTableResult::operator=(const GetTableResult& other806) { - table = other806.table; +GetTableResult& GetTableResult::operator=(const GetTableResult& other810) { + table = other810.table; return *this; } void GetTableResult::printTo(std::ostream& out) const { @@ -19533,14 +19728,14 @@ uint32_t GetTablesRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tblNames.clear(); - uint32_t _size807; - ::apache::thrift::protocol::TType _etype810; - xfer += iprot->readListBegin(_etype810, _size807); - this->tblNames.resize(_size807); - uint32_t _i811; - for (_i811 = 0; _i811 < _size807; ++_i811) + uint32_t _size811; + ::apache::thrift::protocol::TType _etype814; + xfer += iprot->readListBegin(_etype814, _size811); + this->tblNames.resize(_size811); + uint32_t _i815; + for (_i815 = 0; _i815 < _size811; ++_i815) { - xfer += iprot->readString(this->tblNames[_i811]); + xfer += iprot->readString(this->tblNames[_i815]); } xfer += iprot->readListEnd(); } @@ -19584,10 +19779,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 _iter812; - for (_iter812 = this->tblNames.begin(); _iter812 != this->tblNames.end(); ++_iter812) + std::vector ::const_iterator _iter816; + for (_iter816 = this->tblNames.begin(); _iter816 != this->tblNames.end(); ++_iter816) { - xfer += oprot->writeString((*_iter812)); + xfer += oprot->writeString((*_iter816)); } xfer += oprot->writeListEnd(); } @@ -19611,17 +19806,17 @@ void swap(GetTablesRequest &a, GetTablesRequest &b) { swap(a.__isset, b.__isset); } -GetTablesRequest::GetTablesRequest(const GetTablesRequest& other813) { - dbName = other813.dbName; - tblNames = other813.tblNames; - capabilities = other813.capabilities; - __isset = other813.__isset; +GetTablesRequest::GetTablesRequest(const GetTablesRequest& other817) { + dbName = other817.dbName; + tblNames = other817.tblNames; + capabilities = other817.capabilities; + __isset = other817.__isset; } -GetTablesRequest& GetTablesRequest::operator=(const GetTablesRequest& other814) { - dbName = other814.dbName; - tblNames = other814.tblNames; - capabilities = other814.capabilities; - __isset = other814.__isset; +GetTablesRequest& GetTablesRequest::operator=(const GetTablesRequest& other818) { + dbName = other818.dbName; + tblNames = other818.tblNames; + capabilities = other818.capabilities; + __isset = other818.__isset; return *this; } void GetTablesRequest::printTo(std::ostream& out) const { @@ -19668,14 +19863,14 @@ uint32_t GetTablesResult::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tables.clear(); - uint32_t _size815; - ::apache::thrift::protocol::TType _etype818; - xfer += iprot->readListBegin(_etype818, _size815); - this->tables.resize(_size815); - uint32_t _i819; - for (_i819 = 0; _i819 < _size815; ++_i819) + uint32_t _size819; + ::apache::thrift::protocol::TType _etype822; + xfer += iprot->readListBegin(_etype822, _size819); + this->tables.resize(_size819); + uint32_t _i823; + for (_i823 = 0; _i823 < _size819; ++_i823) { - xfer += this->tables[_i819].read(iprot); + xfer += this->tables[_i823].read(iprot); } xfer += iprot->readListEnd(); } @@ -19706,10 +19901,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 _iter820; - for (_iter820 = this->tables.begin(); _iter820 != this->tables.end(); ++_iter820) + std::vector
::const_iterator _iter824; + for (_iter824 = this->tables.begin(); _iter824 != this->tables.end(); ++_iter824) { - xfer += (*_iter820).write(oprot); + xfer += (*_iter824).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19725,11 +19920,11 @@ void swap(GetTablesResult &a, GetTablesResult &b) { swap(a.tables, b.tables); } -GetTablesResult::GetTablesResult(const GetTablesResult& other821) { - tables = other821.tables; +GetTablesResult::GetTablesResult(const GetTablesResult& other825) { + tables = other825.tables; } -GetTablesResult& GetTablesResult::operator=(const GetTablesResult& other822) { - tables = other822.tables; +GetTablesResult& GetTablesResult::operator=(const GetTablesResult& other826) { + tables = other826.tables; return *this; } void GetTablesResult::printTo(std::ostream& out) const { @@ -19831,13 +20026,13 @@ void swap(CmRecycleRequest &a, CmRecycleRequest &b) { swap(a.purge, b.purge); } -CmRecycleRequest::CmRecycleRequest(const CmRecycleRequest& other823) { - dataPath = other823.dataPath; - purge = other823.purge; +CmRecycleRequest::CmRecycleRequest(const CmRecycleRequest& other827) { + dataPath = other827.dataPath; + purge = other827.purge; } -CmRecycleRequest& CmRecycleRequest::operator=(const CmRecycleRequest& other824) { - dataPath = other824.dataPath; - purge = other824.purge; +CmRecycleRequest& CmRecycleRequest::operator=(const CmRecycleRequest& other828) { + dataPath = other828.dataPath; + purge = other828.purge; return *this; } void CmRecycleRequest::printTo(std::ostream& out) const { @@ -19897,11 +20092,11 @@ void swap(CmRecycleResponse &a, CmRecycleResponse &b) { (void) b; } -CmRecycleResponse::CmRecycleResponse(const CmRecycleResponse& other825) { - (void) other825; +CmRecycleResponse::CmRecycleResponse(const CmRecycleResponse& other829) { + (void) other829; } -CmRecycleResponse& CmRecycleResponse::operator=(const CmRecycleResponse& other826) { - (void) other826; +CmRecycleResponse& CmRecycleResponse::operator=(const CmRecycleResponse& other830) { + (void) other830; return *this; } void CmRecycleResponse::printTo(std::ostream& out) const { @@ -20042,19 +20237,19 @@ void swap(TableMeta &a, TableMeta &b) { swap(a.__isset, b.__isset); } -TableMeta::TableMeta(const TableMeta& other827) { - dbName = other827.dbName; - tableName = other827.tableName; - tableType = other827.tableType; - comments = other827.comments; - __isset = other827.__isset; +TableMeta::TableMeta(const TableMeta& other831) { + dbName = other831.dbName; + tableName = other831.tableName; + tableType = other831.tableType; + comments = other831.comments; + __isset = other831.__isset; } -TableMeta& TableMeta::operator=(const TableMeta& other828) { - dbName = other828.dbName; - tableName = other828.tableName; - tableType = other828.tableType; - comments = other828.comments; - __isset = other828.__isset; +TableMeta& TableMeta::operator=(const TableMeta& other832) { + dbName = other832.dbName; + tableName = other832.tableName; + tableType = other832.tableType; + comments = other832.comments; + __isset = other832.__isset; return *this; } void TableMeta::printTo(std::ostream& out) const { @@ -20137,13 +20332,13 @@ void swap(MetaException &a, MetaException &b) { swap(a.__isset, b.__isset); } -MetaException::MetaException(const MetaException& other829) : TException() { - message = other829.message; - __isset = other829.__isset; +MetaException::MetaException(const MetaException& other833) : TException() { + message = other833.message; + __isset = other833.__isset; } -MetaException& MetaException::operator=(const MetaException& other830) { - message = other830.message; - __isset = other830.__isset; +MetaException& MetaException::operator=(const MetaException& other834) { + message = other834.message; + __isset = other834.__isset; return *this; } void MetaException::printTo(std::ostream& out) const { @@ -20234,13 +20429,13 @@ void swap(UnknownTableException &a, UnknownTableException &b) { swap(a.__isset, b.__isset); } -UnknownTableException::UnknownTableException(const UnknownTableException& other831) : TException() { - message = other831.message; - __isset = other831.__isset; +UnknownTableException::UnknownTableException(const UnknownTableException& other835) : TException() { + message = other835.message; + __isset = other835.__isset; } -UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other832) { - message = other832.message; - __isset = other832.__isset; +UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other836) { + message = other836.message; + __isset = other836.__isset; return *this; } void UnknownTableException::printTo(std::ostream& out) const { @@ -20331,13 +20526,13 @@ void swap(UnknownDBException &a, UnknownDBException &b) { swap(a.__isset, b.__isset); } -UnknownDBException::UnknownDBException(const UnknownDBException& other833) : TException() { - message = other833.message; - __isset = other833.__isset; +UnknownDBException::UnknownDBException(const UnknownDBException& other837) : TException() { + message = other837.message; + __isset = other837.__isset; } -UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other834) { - message = other834.message; - __isset = other834.__isset; +UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other838) { + message = other838.message; + __isset = other838.__isset; return *this; } void UnknownDBException::printTo(std::ostream& out) const { @@ -20428,13 +20623,13 @@ void swap(AlreadyExistsException &a, AlreadyExistsException &b) { swap(a.__isset, b.__isset); } -AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other835) : TException() { - message = other835.message; - __isset = other835.__isset; +AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other839) : TException() { + message = other839.message; + __isset = other839.__isset; } -AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other836) { - message = other836.message; - __isset = other836.__isset; +AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other840) { + message = other840.message; + __isset = other840.__isset; return *this; } void AlreadyExistsException::printTo(std::ostream& out) const { @@ -20525,13 +20720,13 @@ void swap(InvalidPartitionException &a, InvalidPartitionException &b) { swap(a.__isset, b.__isset); } -InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other837) : TException() { - message = other837.message; - __isset = other837.__isset; +InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other841) : TException() { + message = other841.message; + __isset = other841.__isset; } -InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other838) { - message = other838.message; - __isset = other838.__isset; +InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other842) { + message = other842.message; + __isset = other842.__isset; return *this; } void InvalidPartitionException::printTo(std::ostream& out) const { @@ -20622,13 +20817,13 @@ void swap(UnknownPartitionException &a, UnknownPartitionException &b) { swap(a.__isset, b.__isset); } -UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other839) : TException() { - message = other839.message; - __isset = other839.__isset; +UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other843) : TException() { + message = other843.message; + __isset = other843.__isset; } -UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other840) { - message = other840.message; - __isset = other840.__isset; +UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other844) { + message = other844.message; + __isset = other844.__isset; return *this; } void UnknownPartitionException::printTo(std::ostream& out) const { @@ -20719,13 +20914,13 @@ void swap(InvalidObjectException &a, InvalidObjectException &b) { swap(a.__isset, b.__isset); } -InvalidObjectException::InvalidObjectException(const InvalidObjectException& other841) : TException() { - message = other841.message; - __isset = other841.__isset; +InvalidObjectException::InvalidObjectException(const InvalidObjectException& other845) : TException() { + message = other845.message; + __isset = other845.__isset; } -InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other842) { - message = other842.message; - __isset = other842.__isset; +InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other846) { + message = other846.message; + __isset = other846.__isset; return *this; } void InvalidObjectException::printTo(std::ostream& out) const { @@ -20816,13 +21011,13 @@ void swap(NoSuchObjectException &a, NoSuchObjectException &b) { swap(a.__isset, b.__isset); } -NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other843) : TException() { - message = other843.message; - __isset = other843.__isset; +NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other847) : TException() { + message = other847.message; + __isset = other847.__isset; } -NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other844) { - message = other844.message; - __isset = other844.__isset; +NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other848) { + message = other848.message; + __isset = other848.__isset; return *this; } void NoSuchObjectException::printTo(std::ostream& out) const { @@ -20913,13 +21108,13 @@ void swap(IndexAlreadyExistsException &a, IndexAlreadyExistsException &b) { swap(a.__isset, b.__isset); } -IndexAlreadyExistsException::IndexAlreadyExistsException(const IndexAlreadyExistsException& other845) : TException() { - message = other845.message; - __isset = other845.__isset; +IndexAlreadyExistsException::IndexAlreadyExistsException(const IndexAlreadyExistsException& other849) : TException() { + message = other849.message; + __isset = other849.__isset; } -IndexAlreadyExistsException& IndexAlreadyExistsException::operator=(const IndexAlreadyExistsException& other846) { - message = other846.message; - __isset = other846.__isset; +IndexAlreadyExistsException& IndexAlreadyExistsException::operator=(const IndexAlreadyExistsException& other850) { + message = other850.message; + __isset = other850.__isset; return *this; } void IndexAlreadyExistsException::printTo(std::ostream& out) const { @@ -21010,13 +21205,13 @@ void swap(InvalidOperationException &a, InvalidOperationException &b) { swap(a.__isset, b.__isset); } -InvalidOperationException::InvalidOperationException(const InvalidOperationException& other847) : TException() { - message = other847.message; - __isset = other847.__isset; +InvalidOperationException::InvalidOperationException(const InvalidOperationException& other851) : TException() { + message = other851.message; + __isset = other851.__isset; } -InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other848) { - message = other848.message; - __isset = other848.__isset; +InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other852) { + message = other852.message; + __isset = other852.__isset; return *this; } void InvalidOperationException::printTo(std::ostream& out) const { @@ -21107,13 +21302,13 @@ void swap(ConfigValSecurityException &a, ConfigValSecurityException &b) { swap(a.__isset, b.__isset); } -ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other849) : TException() { - message = other849.message; - __isset = other849.__isset; +ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other853) : TException() { + message = other853.message; + __isset = other853.__isset; } -ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other850) { - message = other850.message; - __isset = other850.__isset; +ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other854) { + message = other854.message; + __isset = other854.__isset; return *this; } void ConfigValSecurityException::printTo(std::ostream& out) const { @@ -21204,13 +21399,13 @@ void swap(InvalidInputException &a, InvalidInputException &b) { swap(a.__isset, b.__isset); } -InvalidInputException::InvalidInputException(const InvalidInputException& other851) : TException() { - message = other851.message; - __isset = other851.__isset; +InvalidInputException::InvalidInputException(const InvalidInputException& other855) : TException() { + message = other855.message; + __isset = other855.__isset; } -InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other852) { - message = other852.message; - __isset = other852.__isset; +InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other856) { + message = other856.message; + __isset = other856.__isset; return *this; } void InvalidInputException::printTo(std::ostream& out) const { @@ -21301,13 +21496,13 @@ void swap(NoSuchTxnException &a, NoSuchTxnException &b) { swap(a.__isset, b.__isset); } -NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other853) : TException() { - message = other853.message; - __isset = other853.__isset; +NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other857) : TException() { + message = other857.message; + __isset = other857.__isset; } -NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other854) { - message = other854.message; - __isset = other854.__isset; +NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other858) { + message = other858.message; + __isset = other858.__isset; return *this; } void NoSuchTxnException::printTo(std::ostream& out) const { @@ -21398,13 +21593,13 @@ void swap(TxnAbortedException &a, TxnAbortedException &b) { swap(a.__isset, b.__isset); } -TxnAbortedException::TxnAbortedException(const TxnAbortedException& other855) : TException() { - message = other855.message; - __isset = other855.__isset; +TxnAbortedException::TxnAbortedException(const TxnAbortedException& other859) : TException() { + message = other859.message; + __isset = other859.__isset; } -TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other856) { - message = other856.message; - __isset = other856.__isset; +TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other860) { + message = other860.message; + __isset = other860.__isset; return *this; } void TxnAbortedException::printTo(std::ostream& out) const { @@ -21495,13 +21690,13 @@ void swap(TxnOpenException &a, TxnOpenException &b) { swap(a.__isset, b.__isset); } -TxnOpenException::TxnOpenException(const TxnOpenException& other857) : TException() { - message = other857.message; - __isset = other857.__isset; +TxnOpenException::TxnOpenException(const TxnOpenException& other861) : TException() { + message = other861.message; + __isset = other861.__isset; } -TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other858) { - message = other858.message; - __isset = other858.__isset; +TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other862) { + message = other862.message; + __isset = other862.__isset; return *this; } void TxnOpenException::printTo(std::ostream& out) const { @@ -21592,13 +21787,13 @@ void swap(NoSuchLockException &a, NoSuchLockException &b) { swap(a.__isset, b.__isset); } -NoSuchLockException::NoSuchLockException(const NoSuchLockException& other859) : TException() { - message = other859.message; - __isset = other859.__isset; +NoSuchLockException::NoSuchLockException(const NoSuchLockException& other863) : TException() { + message = other863.message; + __isset = other863.__isset; } -NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other860) { - message = other860.message; - __isset = other860.__isset; +NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other864) { + message = other864.message; + __isset = other864.__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 2bba534..d5963f3 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 @@ -380,6 +380,10 @@ class NotificationEventResponse; class CurrentNotificationEventId; +class NotificationEventsCountRequest; + +class NotificationEventsCountResponse; + class InsertEventRequestData; class FireEventRequestData; @@ -6999,6 +7003,91 @@ inline std::ostream& operator<<(std::ostream& out, const CurrentNotificationEven return out; } + +class NotificationEventsCountRequest { + public: + + NotificationEventsCountRequest(const NotificationEventsCountRequest&); + NotificationEventsCountRequest& operator=(const NotificationEventsCountRequest&); + NotificationEventsCountRequest() : fromEventId(0), dbName() { + } + + virtual ~NotificationEventsCountRequest() throw(); + int64_t fromEventId; + std::string dbName; + + void __set_fromEventId(const int64_t val); + + void __set_dbName(const std::string& val); + + bool operator == (const NotificationEventsCountRequest & rhs) const + { + if (!(fromEventId == rhs.fromEventId)) + return false; + if (!(dbName == rhs.dbName)) + return false; + return true; + } + bool operator != (const NotificationEventsCountRequest &rhs) const { + return !(*this == rhs); + } + + bool operator < (const NotificationEventsCountRequest & ) 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(NotificationEventsCountRequest &a, NotificationEventsCountRequest &b); + +inline std::ostream& operator<<(std::ostream& out, const NotificationEventsCountRequest& obj) +{ + obj.printTo(out); + return out; +} + + +class NotificationEventsCountResponse { + public: + + NotificationEventsCountResponse(const NotificationEventsCountResponse&); + NotificationEventsCountResponse& operator=(const NotificationEventsCountResponse&); + NotificationEventsCountResponse() : eventsCount(0) { + } + + virtual ~NotificationEventsCountResponse() throw(); + int64_t eventsCount; + + void __set_eventsCount(const int64_t val); + + bool operator == (const NotificationEventsCountResponse & rhs) const + { + if (!(eventsCount == rhs.eventsCount)) + return false; + return true; + } + bool operator != (const NotificationEventsCountResponse &rhs) const { + return !(*this == rhs); + } + + bool operator < (const NotificationEventsCountResponse & ) 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(NotificationEventsCountResponse &a, NotificationEventsCountResponse &b); + +inline std::ostream& operator<<(std::ostream& out, const NotificationEventsCountResponse& obj) +{ + obj.printTo(out); + return out; +} + typedef struct _InsertEventRequestData__isset { _InsertEventRequestData__isset() : replace(false), filesAddedChecksum(false) {} bool replace :1; diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventsCountRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventsCountRequest.java new file mode 100644 index 0000000..3644d6c --- /dev/null +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventsCountRequest.java @@ -0,0 +1,488 @@ +/** + * 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)") +public class NotificationEventsCountRequest 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("NotificationEventsCountRequest"); + + private static final org.apache.thrift.protocol.TField FROM_EVENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fromEventId", org.apache.thrift.protocol.TType.I64, (short)1); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new NotificationEventsCountRequestStandardSchemeFactory()); + schemes.put(TupleScheme.class, new NotificationEventsCountRequestTupleSchemeFactory()); + } + + private long fromEventId; // required + private String dbName; // 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 { + FROM_EVENT_ID((short)1, "fromEventId"), + DB_NAME((short)2, "dbName"); + + 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: // FROM_EVENT_ID + return FROM_EVENT_ID; + case 2: // DB_NAME + return DB_NAME; + 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 __FROMEVENTID_ISSET_ID = 0; + private byte __isset_bitfield = 0; + 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.FROM_EVENT_ID, new org.apache.thrift.meta_data.FieldMetaData("fromEventId", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("dbName", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(NotificationEventsCountRequest.class, metaDataMap); + } + + public NotificationEventsCountRequest() { + } + + public NotificationEventsCountRequest( + long fromEventId, + String dbName) + { + this(); + this.fromEventId = fromEventId; + setFromEventIdIsSet(true); + this.dbName = dbName; + } + + /** + * Performs a deep copy on other. + */ + public NotificationEventsCountRequest(NotificationEventsCountRequest other) { + __isset_bitfield = other.__isset_bitfield; + this.fromEventId = other.fromEventId; + if (other.isSetDbName()) { + this.dbName = other.dbName; + } + } + + public NotificationEventsCountRequest deepCopy() { + return new NotificationEventsCountRequest(this); + } + + @Override + public void clear() { + setFromEventIdIsSet(false); + this.fromEventId = 0; + this.dbName = null; + } + + public long getFromEventId() { + return this.fromEventId; + } + + public void setFromEventId(long fromEventId) { + this.fromEventId = fromEventId; + setFromEventIdIsSet(true); + } + + public void unsetFromEventId() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FROMEVENTID_ISSET_ID); + } + + /** Returns true if field fromEventId is set (has been assigned a value) and false otherwise */ + public boolean isSetFromEventId() { + return EncodingUtils.testBit(__isset_bitfield, __FROMEVENTID_ISSET_ID); + } + + public void setFromEventIdIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FROMEVENTID_ISSET_ID, value); + } + + public String getDbName() { + return this.dbName; + } + + public void setDbName(String dbName) { + this.dbName = dbName; + } + + public void unsetDbName() { + this.dbName = null; + } + + /** Returns true if field dbName is set (has been assigned a value) and false otherwise */ + public boolean isSetDbName() { + return this.dbName != null; + } + + public void setDbNameIsSet(boolean value) { + if (!value) { + this.dbName = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case FROM_EVENT_ID: + if (value == null) { + unsetFromEventId(); + } else { + setFromEventId((Long)value); + } + break; + + case DB_NAME: + if (value == null) { + unsetDbName(); + } else { + setDbName((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case FROM_EVENT_ID: + return getFromEventId(); + + case DB_NAME: + return getDbName(); + + } + 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 FROM_EVENT_ID: + return isSetFromEventId(); + case DB_NAME: + return isSetDbName(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof NotificationEventsCountRequest) + return this.equals((NotificationEventsCountRequest)that); + return false; + } + + public boolean equals(NotificationEventsCountRequest that) { + if (that == null) + return false; + + boolean this_present_fromEventId = true; + boolean that_present_fromEventId = true; + if (this_present_fromEventId || that_present_fromEventId) { + if (!(this_present_fromEventId && that_present_fromEventId)) + return false; + if (this.fromEventId != that.fromEventId) + return false; + } + + boolean this_present_dbName = true && this.isSetDbName(); + boolean that_present_dbName = true && that.isSetDbName(); + if (this_present_dbName || that_present_dbName) { + if (!(this_present_dbName && that_present_dbName)) + return false; + if (!this.dbName.equals(that.dbName)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_fromEventId = true; + list.add(present_fromEventId); + if (present_fromEventId) + list.add(fromEventId); + + boolean present_dbName = true && (isSetDbName()); + list.add(present_dbName); + if (present_dbName) + list.add(dbName); + + return list.hashCode(); + } + + @Override + public int compareTo(NotificationEventsCountRequest other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetFromEventId()).compareTo(other.isSetFromEventId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFromEventId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromEventId, other.fromEventId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDbName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + 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("NotificationEventsCountRequest("); + boolean first = true; + + sb.append("fromEventId:"); + sb.append(this.fromEventId); + first = false; + if (!first) sb.append(", "); + sb.append("dbName:"); + if (this.dbName == null) { + sb.append("null"); + } else { + sb.append(this.dbName); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetFromEventId()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'fromEventId' is unset! Struct:" + toString()); + } + + if (!isSetDbName()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbName' 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 NotificationEventsCountRequestStandardSchemeFactory implements SchemeFactory { + public NotificationEventsCountRequestStandardScheme getScheme() { + return new NotificationEventsCountRequestStandardScheme(); + } + } + + private static class NotificationEventsCountRequestStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, NotificationEventsCountRequest 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: // FROM_EVENT_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.fromEventId = iprot.readI64(); + struct.setFromEventIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // DB_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dbName = iprot.readString(); + struct.setDbNameIsSet(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, NotificationEventsCountRequest struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldBegin(FROM_EVENT_ID_FIELD_DESC); + oprot.writeI64(struct.fromEventId); + oprot.writeFieldEnd(); + if (struct.dbName != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.dbName); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class NotificationEventsCountRequestTupleSchemeFactory implements SchemeFactory { + public NotificationEventsCountRequestTupleScheme getScheme() { + return new NotificationEventsCountRequestTupleScheme(); + } + } + + private static class NotificationEventsCountRequestTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, NotificationEventsCountRequest struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeI64(struct.fromEventId); + oprot.writeString(struct.dbName); + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, NotificationEventsCountRequest struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.fromEventId = iprot.readI64(); + struct.setFromEventIdIsSet(true); + struct.dbName = iprot.readString(); + struct.setDbNameIsSet(true); + } + } + +} + diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventsCountResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventsCountResponse.java new file mode 100644 index 0000000..1ddee44 --- /dev/null +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventsCountResponse.java @@ -0,0 +1,387 @@ +/** + * 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)") +public class NotificationEventsCountResponse 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("NotificationEventsCountResponse"); + + private static final org.apache.thrift.protocol.TField EVENTS_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("eventsCount", org.apache.thrift.protocol.TType.I64, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new NotificationEventsCountResponseStandardSchemeFactory()); + schemes.put(TupleScheme.class, new NotificationEventsCountResponseTupleSchemeFactory()); + } + + private long eventsCount; // 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 { + EVENTS_COUNT((short)1, "eventsCount"); + + 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: // EVENTS_COUNT + return EVENTS_COUNT; + 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 __EVENTSCOUNT_ISSET_ID = 0; + private byte __isset_bitfield = 0; + 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.EVENTS_COUNT, new org.apache.thrift.meta_data.FieldMetaData("eventsCount", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(NotificationEventsCountResponse.class, metaDataMap); + } + + public NotificationEventsCountResponse() { + } + + public NotificationEventsCountResponse( + long eventsCount) + { + this(); + this.eventsCount = eventsCount; + setEventsCountIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public NotificationEventsCountResponse(NotificationEventsCountResponse other) { + __isset_bitfield = other.__isset_bitfield; + this.eventsCount = other.eventsCount; + } + + public NotificationEventsCountResponse deepCopy() { + return new NotificationEventsCountResponse(this); + } + + @Override + public void clear() { + setEventsCountIsSet(false); + this.eventsCount = 0; + } + + public long getEventsCount() { + return this.eventsCount; + } + + public void setEventsCount(long eventsCount) { + this.eventsCount = eventsCount; + setEventsCountIsSet(true); + } + + public void unsetEventsCount() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __EVENTSCOUNT_ISSET_ID); + } + + /** Returns true if field eventsCount is set (has been assigned a value) and false otherwise */ + public boolean isSetEventsCount() { + return EncodingUtils.testBit(__isset_bitfield, __EVENTSCOUNT_ISSET_ID); + } + + public void setEventsCountIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __EVENTSCOUNT_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case EVENTS_COUNT: + if (value == null) { + unsetEventsCount(); + } else { + setEventsCount((Long)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case EVENTS_COUNT: + return getEventsCount(); + + } + 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 EVENTS_COUNT: + return isSetEventsCount(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof NotificationEventsCountResponse) + return this.equals((NotificationEventsCountResponse)that); + return false; + } + + public boolean equals(NotificationEventsCountResponse that) { + if (that == null) + return false; + + boolean this_present_eventsCount = true; + boolean that_present_eventsCount = true; + if (this_present_eventsCount || that_present_eventsCount) { + if (!(this_present_eventsCount && that_present_eventsCount)) + return false; + if (this.eventsCount != that.eventsCount) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_eventsCount = true; + list.add(present_eventsCount); + if (present_eventsCount) + list.add(eventsCount); + + return list.hashCode(); + } + + @Override + public int compareTo(NotificationEventsCountResponse other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetEventsCount()).compareTo(other.isSetEventsCount()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEventsCount()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventsCount, other.eventsCount); + 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("NotificationEventsCountResponse("); + boolean first = true; + + sb.append("eventsCount:"); + sb.append(this.eventsCount); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetEventsCount()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'eventsCount' 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 NotificationEventsCountResponseStandardSchemeFactory implements SchemeFactory { + public NotificationEventsCountResponseStandardScheme getScheme() { + return new NotificationEventsCountResponseStandardScheme(); + } + } + + private static class NotificationEventsCountResponseStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, NotificationEventsCountResponse 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: // EVENTS_COUNT + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.eventsCount = iprot.readI64(); + struct.setEventsCountIsSet(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, NotificationEventsCountResponse struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldBegin(EVENTS_COUNT_FIELD_DESC); + oprot.writeI64(struct.eventsCount); + oprot.writeFieldEnd(); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class NotificationEventsCountResponseTupleSchemeFactory implements SchemeFactory { + public NotificationEventsCountResponseTupleScheme getScheme() { + return new NotificationEventsCountResponseTupleScheme(); + } + } + + private static class NotificationEventsCountResponseTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, NotificationEventsCountResponse struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeI64(struct.eventsCount); + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, NotificationEventsCountResponse struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.eventsCount = iprot.readI64(); + struct.setEventsCountIsSet(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 541cbb9..47335b4 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 @@ -344,6 +344,8 @@ public CurrentNotificationEventId get_current_notificationEventId() throws org.apache.thrift.TException; + public NotificationEventsCountResponse get_notification_events_count(NotificationEventsCountRequest rqst) throws org.apache.thrift.TException; + public FireEventResponse fire_listener_event(FireEventRequest rqst) throws org.apache.thrift.TException; public void flushCache() throws org.apache.thrift.TException; @@ -668,6 +670,8 @@ public void get_current_notificationEventId(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_notification_events_count(NotificationEventsCountRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void fire_listener_event(FireEventRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void flushCache(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -5090,6 +5094,29 @@ public CurrentNotificationEventId recv_get_current_notificationEventId() throws throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_current_notificationEventId failed: unknown result"); } + public NotificationEventsCountResponse get_notification_events_count(NotificationEventsCountRequest rqst) throws org.apache.thrift.TException + { + send_get_notification_events_count(rqst); + return recv_get_notification_events_count(); + } + + public void send_get_notification_events_count(NotificationEventsCountRequest rqst) throws org.apache.thrift.TException + { + get_notification_events_count_args args = new get_notification_events_count_args(); + args.setRqst(rqst); + sendBase("get_notification_events_count", args); + } + + public NotificationEventsCountResponse recv_get_notification_events_count() throws org.apache.thrift.TException + { + get_notification_events_count_result result = new get_notification_events_count_result(); + receiveBase(result, "get_notification_events_count"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_notification_events_count failed: unknown result"); + } + public FireEventResponse fire_listener_event(FireEventRequest rqst) throws org.apache.thrift.TException { send_fire_listener_event(rqst); @@ -10652,6 +10679,38 @@ public CurrentNotificationEventId getResult() throws org.apache.thrift.TExceptio } } + public void get_notification_events_count(NotificationEventsCountRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + get_notification_events_count_call method_call = new get_notification_events_count_call(rqst, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class get_notification_events_count_call extends org.apache.thrift.async.TAsyncMethodCall { + private NotificationEventsCountRequest rqst; + public get_notification_events_count_call(NotificationEventsCountRequest 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("get_notification_events_count", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_notification_events_count_args args = new get_notification_events_count_args(); + args.setRqst(rqst); + args.write(prot); + prot.writeMessageEnd(); + } + + public NotificationEventsCountResponse 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_get_notification_events_count(); + } + } + public void fire_listener_event(FireEventRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); fire_listener_event_call method_call = new fire_listener_event_call(rqst, resultHandler, this, ___protocolFactory, ___transport); @@ -11098,6 +11157,7 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { + public get_notification_events_count() { + super("get_notification_events_count"); + } + + public get_notification_events_count_args getEmptyArgsInstance() { + return new get_notification_events_count_args(); + } + + protected boolean isOneway() { + return false; + } + + public get_notification_events_count_result getResult(I iface, get_notification_events_count_args args) throws org.apache.thrift.TException { + get_notification_events_count_result result = new get_notification_events_count_result(); + result.success = iface.get_notification_events_count(args.rqst); + return result; + } + } + public static class fire_listener_event extends org.apache.thrift.ProcessFunction { public fire_listener_event() { super("fire_listener_event"); @@ -15346,6 +15426,7 @@ protected AsyncProcessor(I iface, Map extends org.apache.thrift.AsyncProcessFunction { + public get_notification_events_count() { + super("get_notification_events_count"); + } + + public get_notification_events_count_args getEmptyArgsInstance() { + return new get_notification_events_count_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(NotificationEventsCountResponse o) { + get_notification_events_count_result result = new get_notification_events_count_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_notification_events_count_result result = new get_notification_events_count_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_notification_events_count_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get_notification_events_count(args.rqst,resultHandler); + } + } + public static class fire_listener_event extends org.apache.thrift.AsyncProcessFunction { public fire_listener_event() { super("fire_listener_event"); @@ -180954,6 +181086,732 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_current_notifica } + public static class get_notification_events_count_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_notification_events_count_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 get_notification_events_count_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_notification_events_count_argsTupleSchemeFactory()); + } + + private NotificationEventsCountRequest 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, NotificationEventsCountRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_notification_events_count_args.class, metaDataMap); + } + + public get_notification_events_count_args() { + } + + public get_notification_events_count_args( + NotificationEventsCountRequest rqst) + { + this(); + this.rqst = rqst; + } + + /** + * Performs a deep copy on other. + */ + public get_notification_events_count_args(get_notification_events_count_args other) { + if (other.isSetRqst()) { + this.rqst = new NotificationEventsCountRequest(other.rqst); + } + } + + public get_notification_events_count_args deepCopy() { + return new get_notification_events_count_args(this); + } + + @Override + public void clear() { + this.rqst = null; + } + + public NotificationEventsCountRequest getRqst() { + return this.rqst; + } + + public void setRqst(NotificationEventsCountRequest 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((NotificationEventsCountRequest)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 get_notification_events_count_args) + return this.equals((get_notification_events_count_args)that); + return false; + } + + public boolean equals(get_notification_events_count_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(get_notification_events_count_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("get_notification_events_count_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 get_notification_events_count_argsStandardSchemeFactory implements SchemeFactory { + public get_notification_events_count_argsStandardScheme getScheme() { + return new get_notification_events_count_argsStandardScheme(); + } + } + + private static class get_notification_events_count_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_notification_events_count_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 NotificationEventsCountRequest(); + 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, get_notification_events_count_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 get_notification_events_count_argsTupleSchemeFactory implements SchemeFactory { + public get_notification_events_count_argsTupleScheme getScheme() { + return new get_notification_events_count_argsTupleScheme(); + } + } + + private static class get_notification_events_count_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, get_notification_events_count_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, get_notification_events_count_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.rqst = new NotificationEventsCountRequest(); + struct.rqst.read(iprot); + struct.setRqstIsSet(true); + } + } + } + + } + + public static class get_notification_events_count_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_notification_events_count_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 get_notification_events_count_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_notification_events_count_resultTupleSchemeFactory()); + } + + private NotificationEventsCountResponse 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, NotificationEventsCountResponse.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_notification_events_count_result.class, metaDataMap); + } + + public get_notification_events_count_result() { + } + + public get_notification_events_count_result( + NotificationEventsCountResponse success) + { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public get_notification_events_count_result(get_notification_events_count_result other) { + if (other.isSetSuccess()) { + this.success = new NotificationEventsCountResponse(other.success); + } + } + + public get_notification_events_count_result deepCopy() { + return new get_notification_events_count_result(this); + } + + @Override + public void clear() { + this.success = null; + } + + public NotificationEventsCountResponse getSuccess() { + return this.success; + } + + public void setSuccess(NotificationEventsCountResponse 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((NotificationEventsCountResponse)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 get_notification_events_count_result) + return this.equals((get_notification_events_count_result)that); + return false; + } + + public boolean equals(get_notification_events_count_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(get_notification_events_count_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("get_notification_events_count_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 get_notification_events_count_resultStandardSchemeFactory implements SchemeFactory { + public get_notification_events_count_resultStandardScheme getScheme() { + return new get_notification_events_count_resultStandardScheme(); + } + } + + private static class get_notification_events_count_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_notification_events_count_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 NotificationEventsCountResponse(); + 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, get_notification_events_count_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 get_notification_events_count_resultTupleSchemeFactory implements SchemeFactory { + public get_notification_events_count_resultTupleScheme getScheme() { + return new get_notification_events_count_resultTupleScheme(); + } + } + + private static class get_notification_events_count_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, get_notification_events_count_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, get_notification_events_count_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = new NotificationEventsCountResponse(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + } + } + + } + public static class fire_listener_event_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("fire_listener_event_args"); 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 cc5e120..644def0 100644 --- a/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ b/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -1191,6 +1191,11 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { */ public function get_current_notificationEventId(); /** + * @param \metastore\NotificationEventsCountRequest $rqst + * @return \metastore\NotificationEventsCountResponse + */ + public function get_notification_events_count(\metastore\NotificationEventsCountRequest $rqst); + /** * @param \metastore\FireEventRequest $rqst * @return \metastore\FireEventResponse */ @@ -9851,6 +9856,57 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_current_notificationEventId failed: unknown result"); } + public function get_notification_events_count(\metastore\NotificationEventsCountRequest $rqst) + { + $this->send_get_notification_events_count($rqst); + return $this->recv_get_notification_events_count(); + } + + public function send_get_notification_events_count(\metastore\NotificationEventsCountRequest $rqst) + { + $args = new \metastore\ThriftHiveMetastore_get_notification_events_count_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_, 'get_notification_events_count', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_notification_events_count', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_notification_events_count() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_notification_events_count_result', $this->input_->isStrictRead()); + else + { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new \metastore\ThriftHiveMetastore_get_notification_events_count_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + throw new \Exception("get_notification_events_count failed: unknown result"); + } + public function fire_listener_event(\metastore\FireEventRequest $rqst) { $this->send_fire_listener_event($rqst); @@ -45514,6 +45570,166 @@ class ThriftHiveMetastore_get_current_notificationEventId_result { } +class ThriftHiveMetastore_get_notification_events_count_args { + static $_TSPEC; + + /** + * @var \metastore\NotificationEventsCountRequest + */ + public $rqst = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + -1 => array( + 'var' => 'rqst', + 'type' => TType::STRUCT, + 'class' => '\metastore\NotificationEventsCountRequest', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['rqst'])) { + $this->rqst = $vals['rqst']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_notification_events_count_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\NotificationEventsCountRequest(); + $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_get_notification_events_count_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_get_notification_events_count_result { + static $_TSPEC; + + /** + * @var \metastore\NotificationEventsCountResponse + */ + public $success = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::STRUCT, + 'class' => '\metastore\NotificationEventsCountResponse', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_notification_events_count_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\NotificationEventsCountResponse(); + $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_get_notification_events_count_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_fire_listener_event_args { static $_TSPEC; 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 aff783e..f0f0a57 100644 --- a/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php +++ b/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php @@ -17075,6 +17075,179 @@ class CurrentNotificationEventId { } +class NotificationEventsCountRequest { + static $_TSPEC; + + /** + * @var int + */ + public $fromEventId = null; + /** + * @var string + */ + public $dbName = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'fromEventId', + 'type' => TType::I64, + ), + 2 => array( + 'var' => 'dbName', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['fromEventId'])) { + $this->fromEventId = $vals['fromEventId']; + } + if (isset($vals['dbName'])) { + $this->dbName = $vals['dbName']; + } + } + } + + public function getName() { + return 'NotificationEventsCountRequest'; + } + + 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->fromEventId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->dbName); + } 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('NotificationEventsCountRequest'); + if ($this->fromEventId !== null) { + $xfer += $output->writeFieldBegin('fromEventId', TType::I64, 1); + $xfer += $output->writeI64($this->fromEventId); + $xfer += $output->writeFieldEnd(); + } + if ($this->dbName !== null) { + $xfer += $output->writeFieldBegin('dbName', TType::STRING, 2); + $xfer += $output->writeString($this->dbName); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class NotificationEventsCountResponse { + static $_TSPEC; + + /** + * @var int + */ + public $eventsCount = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'eventsCount', + 'type' => TType::I64, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['eventsCount'])) { + $this->eventsCount = $vals['eventsCount']; + } + } + } + + public function getName() { + return 'NotificationEventsCountResponse'; + } + + 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->eventsCount); + } 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('NotificationEventsCountResponse'); + if ($this->eventsCount !== null) { + $xfer += $output->writeFieldBegin('eventsCount', TType::I64, 1); + $xfer += $output->writeI64($this->eventsCount); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class InsertEventRequestData { static $_TSPEC; 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 46dcac9..14527e6 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 @@ -175,6 +175,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' void add_dynamic_partitions(AddDynamicPartitions rqst)') print(' NotificationEventResponse get_next_notification(NotificationEventRequest rqst)') print(' CurrentNotificationEventId get_current_notificationEventId()') + print(' NotificationEventsCountResponse get_notification_events_count(NotificationEventsCountRequest rqst)') print(' FireEventResponse fire_listener_event(FireEventRequest rqst)') print(' void flushCache()') print(' CmRecycleResponse cm_recycle(CmRecycleRequest request)') @@ -1159,6 +1160,12 @@ elif cmd == 'get_current_notificationEventId': sys.exit(1) pp.pprint(client.get_current_notificationEventId()) +elif cmd == 'get_notification_events_count': + if len(args) != 1: + print('get_notification_events_count requires 1 args') + sys.exit(1) + pp.pprint(client.get_notification_events_count(eval(args[0]),)) + elif cmd == 'fire_listener_event': if len(args) != 1: print('fire_listener_event 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 2ecf555..4b45c3a 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 @@ -1224,6 +1224,13 @@ def get_next_notification(self, rqst): def get_current_notificationEventId(self): pass + def get_notification_events_count(self, rqst): + """ + Parameters: + - rqst + """ + pass + def fire_listener_event(self, rqst): """ Parameters: @@ -6774,6 +6781,37 @@ def recv_get_current_notificationEventId(self): return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "get_current_notificationEventId failed: unknown result") + def get_notification_events_count(self, rqst): + """ + Parameters: + - rqst + """ + self.send_get_notification_events_count(rqst) + return self.recv_get_notification_events_count() + + def send_get_notification_events_count(self, rqst): + self._oprot.writeMessageBegin('get_notification_events_count', TMessageType.CALL, self._seqid) + args = get_notification_events_count_args() + args.rqst = rqst + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_notification_events_count(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = get_notification_events_count_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_notification_events_count failed: unknown result") + def fire_listener_event(self, rqst): """ Parameters: @@ -7200,6 +7238,7 @@ def __init__(self, handler): self._processMap["add_dynamic_partitions"] = Processor.process_add_dynamic_partitions self._processMap["get_next_notification"] = Processor.process_get_next_notification self._processMap["get_current_notificationEventId"] = Processor.process_get_current_notificationEventId + 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["cm_recycle"] = Processor.process_cm_recycle @@ -10946,6 +10985,25 @@ def process_get_current_notificationEventId(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_get_notification_events_count(self, seqid, iprot, oprot): + args = get_notification_events_count_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_notification_events_count_result() + try: + result.success = self._handler.get_notification_events_count(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("get_notification_events_count", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_fire_listener_event(self, seqid, iprot, oprot): args = fire_listener_event_args() args.read(iprot) @@ -36964,6 +37022,133 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class get_notification_events_count_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 = NotificationEventsCountRequest() + 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('get_notification_events_count_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 get_notification_events_count_result: + """ + Attributes: + - success + """ + + thrift_spec = ( + (0, TType.STRUCT, 'success', (NotificationEventsCountResponse, NotificationEventsCountResponse.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 = NotificationEventsCountResponse() + 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('get_notification_events_count_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 fire_listener_event_args: """ Attributes: 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 53671e3..7570895 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 @@ -11935,6 +11935,155 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class NotificationEventsCountRequest: + """ + Attributes: + - fromEventId + - dbName + """ + + thrift_spec = ( + None, # 0 + (1, TType.I64, 'fromEventId', None, None, ), # 1 + (2, TType.STRING, 'dbName', None, None, ), # 2 + ) + + def __init__(self, fromEventId=None, dbName=None,): + self.fromEventId = fromEventId + self.dbName = dbName + + 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.fromEventId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.dbName = iprot.readString() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('NotificationEventsCountRequest') + if self.fromEventId is not None: + oprot.writeFieldBegin('fromEventId', TType.I64, 1) + oprot.writeI64(self.fromEventId) + oprot.writeFieldEnd() + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.fromEventId is None: + raise TProtocol.TProtocolException(message='Required field fromEventId is unset!') + if self.dbName is None: + raise TProtocol.TProtocolException(message='Required field dbName is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.fromEventId) + value = (value * 31) ^ hash(self.dbName) + 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 NotificationEventsCountResponse: + """ + Attributes: + - eventsCount + """ + + thrift_spec = ( + None, # 0 + (1, TType.I64, 'eventsCount', None, None, ), # 1 + ) + + def __init__(self, eventsCount=None,): + self.eventsCount = eventsCount + + 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.eventsCount = iprot.readI64() + 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('NotificationEventsCountResponse') + if self.eventsCount is not None: + oprot.writeFieldBegin('eventsCount', TType.I64, 1) + oprot.writeI64(self.eventsCount) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.eventsCount is None: + raise TProtocol.TProtocolException(message='Required field eventsCount is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.eventsCount) + 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 InsertEventRequestData: """ Attributes: 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 c67f3b0..ea73b34 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 @@ -2670,6 +2670,43 @@ class CurrentNotificationEventId ::Thrift::Struct.generate_accessors self end +class NotificationEventsCountRequest + include ::Thrift::Struct, ::Thrift::Struct_Union + FROMEVENTID = 1 + DBNAME = 2 + + FIELDS = { + FROMEVENTID => {:type => ::Thrift::Types::I64, :name => 'fromEventId'}, + DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field fromEventId is unset!') unless @fromEventId + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field dbName is unset!') unless @dbName + end + + ::Thrift::Struct.generate_accessors self +end + +class NotificationEventsCountResponse + include ::Thrift::Struct, ::Thrift::Struct_Union + EVENTSCOUNT = 1 + + FIELDS = { + EVENTSCOUNT => {:type => ::Thrift::Types::I64, :name => 'eventsCount'} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field eventsCount is unset!') unless @eventsCount + end + + ::Thrift::Struct.generate_accessors self +end + class InsertEventRequestData include ::Thrift::Struct, ::Thrift::Struct_Union REPLACE = 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 cfe08f6..54b3dfb 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 @@ -2524,6 +2524,21 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_current_notificationEventId failed: unknown result') end + def get_notification_events_count(rqst) + send_get_notification_events_count(rqst) + return recv_get_notification_events_count() + end + + def send_get_notification_events_count(rqst) + send_message('get_notification_events_count', Get_notification_events_count_args, :rqst => rqst) + end + + def recv_get_notification_events_count() + result = receive_message(Get_notification_events_count_result) + return result.success unless result.success.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_notification_events_count failed: unknown result') + end + def fire_listener_event(rqst) send_fire_listener_event(rqst) return recv_fire_listener_event() @@ -4558,6 +4573,13 @@ module ThriftHiveMetastore write_result(result, oprot, 'get_current_notificationEventId', seqid) end + def process_get_notification_events_count(seqid, iprot, oprot) + args = read_args(iprot, Get_notification_events_count_args) + result = Get_notification_events_count_result.new() + result.success = @handler.get_notification_events_count(args.rqst) + write_result(result, oprot, 'get_notification_events_count', seqid) + end + def process_fire_listener_event(seqid, iprot, oprot) args = read_args(iprot, Fire_listener_event_args) result = Fire_listener_event_result.new() @@ -10325,6 +10347,38 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Get_notification_events_count_args + include ::Thrift::Struct, ::Thrift::Struct_Union + RQST = -1 + + FIELDS = { + RQST => {:type => ::Thrift::Types::STRUCT, :name => 'rqst', :class => ::NotificationEventsCountRequest} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_notification_events_count_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::NotificationEventsCountResponse} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class Fire_listener_event_args include ::Thrift::Struct, ::Thrift::Struct_Union RQST = 1 diff --git a/standalone-metastore/src/main/thrift/hive_metastore.thrift b/standalone-metastore/src/main/thrift/hive_metastore.thrift index 9b0a846..7268d53 100644 --- a/standalone-metastore/src/main/thrift/hive_metastore.thrift +++ b/standalone-metastore/src/main/thrift/hive_metastore.thrift @@ -859,6 +859,15 @@ struct CurrentNotificationEventId { 1: required i64 eventId, } +struct NotificationEventsCountRequest { + 1: required i64 fromEventId, + 2: required string dbName, +} + +struct NotificationEventsCountResponse { + 1: required i64 eventsCount, +} + struct InsertEventRequestData { 1: optional bool replace, 2: required list filesAdded, @@ -1546,6 +1555,7 @@ service ThriftHiveMetastore extends fb303.FacebookService // Notification logging calls NotificationEventResponse get_next_notification(1:NotificationEventRequest rqst) CurrentNotificationEventId get_current_notificationEventId() + NotificationEventsCountResponse get_notification_events_count(NotificationEventsCountRequest rqst) FireEventResponse fire_listener_event(1:FireEventRequest rqst) void flushCache()