diff --git common/src/java/org/apache/hadoop/hive/common/JavaUtils.java common/src/java/org/apache/hadoop/hive/common/JavaUtils.java index 3916fe3..28490e2 100644 --- common/src/java/org/apache/hadoop/hive/common/JavaUtils.java +++ common/src/java/org/apache/hadoop/hive/common/JavaUtils.java @@ -28,6 +28,8 @@ import java.util.Arrays; import java.util.List; +import org.apache.hadoop.fs.Path; +import org.apache.hadoop.fs.PathFilter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -37,6 +39,10 @@ */ public final class JavaUtils { + public static final String DELTA_PREFIX = "delta"; + public static final String DELTA_DIGITS = "%07d"; + public static final int DELTA_DIGITS_LEN = 7; + public static final String STATEMENT_DIGITS = "%04d"; private static final Logger LOG = LoggerFactory.getLogger(JavaUtils.class); private static final Method SUN_MISC_UTIL_RELEASE; @@ -158,4 +164,65 @@ public static String txnIdsToString(List txnIds) { private JavaUtils() { // prevent instantiation } + + public static Long extractTxnId(Path file) { + String fileName = file.getName(); + String[] parts = fileName.split("_", 4); // e.g. delta_0000001_0000001_0000 + if (parts.length < 4 || !DELTA_PREFIX.equals(parts[0])) { + LOG.debug("Cannot extract transaction ID for a MM table: " + file + + " (" + Arrays.toString(parts) + ")"); + return null; + } + long writeId = -1; + try { + writeId = Long.parseLong(parts[1]); + } catch (NumberFormatException ex) { + LOG.debug("Cannot extract transaction ID for a MM table: " + file + + "; parsing " + parts[1] + " got " + ex.getMessage()); + return null; + } + return writeId; + } + + public static class IdPathFilter implements PathFilter { + private final String mmDirName; + private final boolean isMatch, isIgnoreTemp; + public IdPathFilter(long writeId, int stmtId, boolean isMatch) { + this(writeId, stmtId, isMatch, false); + } + public IdPathFilter(long writeId, int stmtId, boolean isMatch, boolean isIgnoreTemp) { + this.mmDirName = DELTA_PREFIX + "_" + String.format(DELTA_DIGITS, writeId) + "_" + + String.format(DELTA_DIGITS, writeId) + "_" + String.format(STATEMENT_DIGITS, stmtId); + this.isMatch = isMatch; + this.isIgnoreTemp = isIgnoreTemp; + } + + @Override + public boolean accept(Path path) { + String name = path.getName(); + if (name.equals(mmDirName)) { + return isMatch; + } + if (isIgnoreTemp && name.length() > 0) { + char c = name.charAt(0); + if (c == '.' || c == '_') return false; // Regardless of isMatch, ignore this. + } + return !isMatch; + } + } + + public static class AnyIdDirFilter implements PathFilter { + @Override + public boolean accept(Path path) { + String name = path.getName(); + if (!name.startsWith(DELTA_PREFIX + "_")) return false; + String idStr = name.substring(DELTA_PREFIX.length() + 1, DELTA_PREFIX.length() + 1 + DELTA_DIGITS_LEN); + try { + Long.parseLong(idStr); + } catch (NumberFormatException ex) { + return false; + } + return true; + } + } } diff --git common/src/java/org/apache/hadoop/hive/common/ValidWriteIds.java common/src/java/org/apache/hadoop/hive/common/ValidWriteIds.java deleted file mode 100644 index 4cbeb89..0000000 --- common/src/java/org/apache/hadoop/hive/common/ValidWriteIds.java +++ /dev/null @@ -1,218 +0,0 @@ -/** - * 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.common; - -import java.util.Arrays; -import java.util.HashSet; - -import org.apache.hadoop.conf.Configuration; -import org.apache.hadoop.fs.Path; -import org.apache.hadoop.fs.PathFilter; -import org.apache.hadoop.hive.conf.HiveConf; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public class ValidWriteIds { - public static final ValidWriteIds NO_WRITE_IDS = new ValidWriteIds(-1, -1, false, null); - - public static final String MM_PREFIX = "mm"; - private static final String CURRENT_SUFFIX = ".current"; - - private final static Logger LOG = LoggerFactory.getLogger(ValidWriteIds.class); - - private static final String VALID_WRITEIDS_PREFIX = "hive.valid.write.ids."; - private final long lowWatermark, highWatermark; - private final boolean areIdsValid; - private final HashSet ids; - private String source = null; - - public ValidWriteIds( - long lowWatermark, long highWatermark, boolean areIdsValid, HashSet ids) { - this.lowWatermark = lowWatermark; - this.highWatermark = highWatermark; - this.areIdsValid = areIdsValid; - this.ids = ids; - } - - public static ValidWriteIds createFromConf(Configuration conf, String dbName, String tblName) { - return createFromConf(conf, dbName + "." + tblName); - } - - public static ValidWriteIds createFromConf(Configuration conf, String fullTblName) { - String key = createConfKey(fullTblName); - String idStr = conf.get(key, null); - String current = conf.get(key + CURRENT_SUFFIX, null); - if (idStr == null || idStr.isEmpty()) return null; - return new ValidWriteIds(idStr, current); - } - - private static String createConfKey(String dbName, String tblName) { - return createConfKey(dbName + "." + tblName); - } - - private static String createConfKey(String fullName) { - return VALID_WRITEIDS_PREFIX + fullName; - } - - private ValidWriteIds(String src, String current) { - // TODO: lifted from ACID config implementation... optimize if needed? e.g. ranges, base64 - String[] values = src.split(":"); - highWatermark = Long.parseLong(values[0]); - lowWatermark = Long.parseLong(values[1]); - if (values.length > 2) { - areIdsValid = Long.parseLong(values[2]) > 0; - ids = new HashSet(); - for(int i = 3; i < values.length; ++i) { - ids.add(Long.parseLong(values[i])); - } - if (current != null) { - long currentId = Long.parseLong(current); - if (areIdsValid) { - ids.add(currentId); - } else { - ids.remove(currentId); - } - } - } else if (current != null) { - long currentId = Long.parseLong(current); - areIdsValid = true; - ids = new HashSet(); - ids.add(currentId); - } else { - areIdsValid = false; - ids = null; - } - } - - public static void addCurrentToConf( - Configuration conf, String dbName, String tblName, long mmWriteId) { - String key = createConfKey(dbName, tblName) + CURRENT_SUFFIX; - if (LOG.isDebugEnabled()) { - LOG.debug("Setting " + key + " => " + mmWriteId); - } - conf.set(key, Long.toString(mmWriteId)); - } - - public void addToConf(Configuration conf, String dbName, String tblName) { - if (source == null) { - source = toString(); - } - String key = createConfKey(dbName, tblName); - if (LOG.isDebugEnabled()) { - LOG.debug("Setting " + key + " => " + source - + " (old value was " + conf.get(key, null) + ")"); - } - conf.set(key, source); - } - - public static void clearConf(Configuration conf, String dbName, String tblName) { - if (LOG.isDebugEnabled()) { - LOG.debug("Unsetting " + createConfKey(dbName, tblName)); - } - conf.unset(createConfKey(dbName, tblName)); - } - - public String toString() { - // TODO: lifted from ACID config implementation... optimize if needed? e.g. ranges, base64 - StringBuilder buf = new StringBuilder(); - buf.append(highWatermark); - buf.append(':'); - buf.append(lowWatermark); - if (ids != null) { - buf.append(':'); - buf.append(areIdsValid ? 1 : 0); - for (long id : ids) { - buf.append(':'); - buf.append(id); - } - } - return buf.toString(); - } - - public boolean isValid(long writeId) { - if (writeId < 0) throw new RuntimeException("Incorrect write ID " + writeId); - if (writeId <= lowWatermark) return true; - if (writeId >= highWatermark) return false; - return ids != null && (areIdsValid == ids.contains(writeId)); - } - - public static String getMmFilePrefix(long mmWriteId) { - return MM_PREFIX + "_" + mmWriteId; - } - - - public static class IdPathFilter implements PathFilter { - private final String mmDirName; - private final boolean isMatch, isIgnoreTemp; - public IdPathFilter(long writeId, boolean isMatch) { - this(writeId, isMatch, false); - } - public IdPathFilter(long writeId, boolean isMatch, boolean isIgnoreTemp) { - this.mmDirName = ValidWriteIds.getMmFilePrefix(writeId); - this.isMatch = isMatch; - this.isIgnoreTemp = isIgnoreTemp; - } - - @Override - public boolean accept(Path path) { - String name = path.getName(); - if (name.equals(mmDirName)) { - return isMatch; - } - if (isIgnoreTemp && name.length() > 0) { - char c = name.charAt(0); - if (c == '.' || c == '_') return false; // Regardless of isMatch, ignore this. - } - return !isMatch; - } - } - - public static class AnyIdDirFilter implements PathFilter { - @Override - public boolean accept(Path path) { - String name = path.getName(); - if (!name.startsWith(MM_PREFIX + "_")) return false; - String idStr = name.substring(MM_PREFIX.length() + 1); - try { - Long.parseLong(idStr); - } catch (NumberFormatException ex) { - return false; - } - return true; - } - } - public static Long extractWriteId(Path file) { - String fileName = file.getName(); - String[] parts = fileName.split("_", 3); - if (parts.length < 2 || !MM_PREFIX.equals(parts[0])) { - LOG.info("Cannot extract write ID for a MM table: " + file - + " (" + Arrays.toString(parts) + ")"); - return null; - } - long writeId = -1; - try { - writeId = Long.parseLong(parts[1]); - } catch (NumberFormatException ex) { - LOG.info("Cannot extract write ID for a MM table: " + file - + "; parsing " + parts[1] + " got " + ex.getMessage()); - return null; - } - return writeId; - } - -} \ No newline at end of file diff --git common/src/java/org/apache/hadoop/hive/conf/HiveConf.java common/src/java/org/apache/hadoop/hive/conf/HiveConf.java index d32f1e5..a49f667 100644 --- common/src/java/org/apache/hadoop/hive/conf/HiveConf.java +++ common/src/java/org/apache/hadoop/hive/conf/HiveConf.java @@ -300,10 +300,7 @@ private static URL checkConfigFile(File f) { HiveConf.ConfVars.METASTORE_HBASE_AGGR_STATS_MEMORY_TTL, HiveConf.ConfVars.METASTORE_HBASE_AGGR_STATS_INVALIDATOR_FREQUENCY, HiveConf.ConfVars.METASTORE_HBASE_AGGR_STATS_HBASE_TTL, - HiveConf.ConfVars.METASTORE_HBASE_FILE_METADATA_THREADS, - HiveConf.ConfVars.HIVE_METASTORE_MM_THREAD_SCAN_INTERVAL, - HiveConf.ConfVars.HIVE_METASTORE_MM_HEARTBEAT_TIMEOUT, - HiveConf.ConfVars.HIVE_METASTORE_MM_ABSOLUTE_TIMEOUT + HiveConf.ConfVars.METASTORE_HBASE_FILE_METADATA_THREADS }; /** @@ -3385,24 +3382,6 @@ private static void populateLlapDaemonVarsSet(Set llapDaemonVarsSetLocal "Log tracing id that can be used by upstream clients for tracking respective logs. " + "Truncated to " + LOG_PREFIX_LENGTH + " characters. Defaults to use auto-generated session id."), - HIVE_METASTORE_MM_THREAD_SCAN_INTERVAL("hive.metastore.mm.thread.scan.interval", "900s", - new TimeValidator(TimeUnit.SECONDS), - "MM table housekeeping thread interval in this metastore instance. 0 to disable."), - - HIVE_METASTORE_MM_HEARTBEAT_TIMEOUT("hive.metastore.mm.heartbeat.timeout", "1800s", - new TimeValidator(TimeUnit.SECONDS), - "MM write ID times out after this long if a heartbeat is not send. Currently disabled."), - - HIVE_METASTORE_MM_ABSOLUTE_TIMEOUT("hive.metastore.mm.absolute.timeout", "7d", - new TimeValidator(TimeUnit.SECONDS), - "MM write ID cannot be outstanding for more than this long."), - - HIVE_METASTORE_MM_ABORTED_GRACE_PERIOD("hive.metastore.mm.aborted.grace.period", "1d", - new TimeValidator(TimeUnit.SECONDS), - "MM write ID will not be removed up for that long after it has been aborted;\n" + - "this is to work around potential races e.g. with FS visibility, when deleting files."), - - HIVE_MM_AVOID_GLOBSTATUS_ON_S3("hive.mm.avoid.s3.globstatus", true, "Whether to use listFiles (optimized on S3) instead of globStatus when on S3."), diff --git itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java index 93ff498..309dbac 100644 --- itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java +++ itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java @@ -63,7 +63,6 @@ import org.apache.hadoop.hive.metastore.api.UnknownDBException; import org.apache.hadoop.hive.metastore.api.UnknownPartitionException; import org.apache.hadoop.hive.metastore.api.UnknownTableException; -import org.apache.hadoop.hive.metastore.model.MTableWrite; import org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy; import org.apache.thrift.TException; @@ -920,51 +919,4 @@ public void addForeignKeys(List fks) String tableName) throws MetaException, NoSuchObjectException { return objectStore.getAggrColStatsForTablePartitions(dbName, tableName); } - - @Override - @CanNotRetry - public Boolean commitTransactionExpectDeadlock() { - return null; - } - - @Override - public void createTableWrite(Table arg0, long arg1, char arg2, long arg3) { - } - - @Override - public void deleteTableWrites(String arg0, String arg1, long arg2, long arg3) - throws MetaException { - } - - @Override - public List getAllMmTablesForCleanup() throws MetaException { - return null; - } - - @Override - public Collection getAllPartitionLocations(String arg0, String arg1) { - return null; - } - - @Override - public MTableWrite getTableWrite(String arg0, String arg1, long arg2) - throws MetaException { - return null; - } - - @Override - public List getTableWriteIds(String arg0, String arg1, long arg2, - long arg3, char arg4) throws MetaException { - return null; - } - - @Override - public List getTableWrites(String arg0, String arg1, long arg2, - long arg3) throws MetaException { - return null; - } - - @Override - public void updateTableWrite(MTableWrite arg0) { - } } \ No newline at end of file diff --git itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/history/TestHiveHistory.java itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/history/TestHiveHistory.java index 0c51a68..c70925a 100644 --- itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/history/TestHiveHistory.java +++ itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/history/TestHiveHistory.java @@ -103,7 +103,7 @@ protected void setUp() { db.dropTable(MetaStoreUtils.DEFAULT_DATABASE_NAME, src, true, true); db.createTable(src, cols, null, TextInputFormat.class, IgnoreKeyTextOutputFormat.class); - db.loadTable(hadoopDataFile[i], src, false, false, false, false, false, null); + db.loadTable(hadoopDataFile[i], src, false, false, false, false, false, null, 0); i++; } diff --git metastore/if/hive_metastore.thrift metastore/if/hive_metastore.thrift index 2800e23..64c782e 100755 --- metastore/if/hive_metastore.thrift +++ metastore/if/hive_metastore.thrift @@ -306,8 +306,6 @@ struct Table { 13: optional PrincipalPrivilegeSet privileges, 14: optional bool temporary=false, 15: optional bool rewriteEnabled, // rewrite enabled or not - 16: optional i64 mmNextWriteId, - 17: optional i64 mmWatermarkWriteId } struct Partition { @@ -907,44 +905,6 @@ struct CacheFileMetadataRequest { 4: optional bool isAllParts } - -struct GetNextWriteIdRequest { - 1: required string dbName, - 2: required string tblName -} -struct GetNextWriteIdResult { - 1: required i64 writeId -} - -struct FinalizeWriteIdRequest { - 1: required string dbName, - 2: required string tblName, - 3: required i64 writeId, - 4: required bool commit -} -struct FinalizeWriteIdResult { -} - -struct HeartbeatWriteIdRequest { - 1: required string dbName, - 2: required string tblName, - 3: required i64 writeId -} -struct HeartbeatWriteIdResult { -} - -struct GetValidWriteIdsRequest { - 1: required string dbName, - 2: required string tblName -} -struct GetValidWriteIdsResult { - 1: required i64 lowWatermarkId, - 2: required i64 highWatermarkId, - 3: optional bool areIdsValid, - 4: optional list ids -} - - struct GetAllFunctionsResponse { 1: optional list functions } @@ -1532,10 +1492,6 @@ service ThriftHiveMetastore extends fb303.FacebookService ClearFileMetadataResult clear_file_metadata(1:ClearFileMetadataRequest req) CacheFileMetadataResult cache_file_metadata(1:CacheFileMetadataRequest req) - GetNextWriteIdResult get_next_write_id(1:GetNextWriteIdRequest req) - FinalizeWriteIdResult finalize_write_id(1:FinalizeWriteIdRequest req) - HeartbeatWriteIdResult heartbeat_write_id(1:HeartbeatWriteIdRequest req) - GetValidWriteIdsResult get_valid_write_ids(1:GetValidWriteIdsRequest req) } // * Note about the DDL_TIME: When creating or altering a table or a partition, diff --git metastore/scripts/upgrade/derby/038-HIVE-14637.derby.sql metastore/scripts/upgrade/derby/038-HIVE-14637.derby.sql deleted file mode 100644 index cb6e5f6..0000000 --- metastore/scripts/upgrade/derby/038-HIVE-14637.derby.sql +++ /dev/null @@ -1,6 +0,0 @@ -ALTER TABLE "TBLS" ADD "MM_WATERMARK_WRITE_ID" BIGINT DEFAULT -1; -ALTER TABLE "TBLS" ADD "MM_NEXT_WRITE_ID" BIGINT DEFAULT 0; -CREATE TABLE "APP"."TBL_WRITES" ("TW_ID" BIGINT NOT NULL, "TBL_ID" BIGINT NOT NULL, "WRITE_ID" BIGINT NOT NULL, "STATE" CHAR(1) NOT NULL, "CREATED" BIGINT NOT NULL, "LAST_HEARTBEAT" BIGINT NOT NULL); -ALTER TABLE "APP"."TBL_WRITES" ADD CONSTRAINT "TBL_WRITES_PK" PRIMARY KEY ("TW_ID"); -ALTER TABLE "APP"."TBL_WRITES" ADD CONSTRAINT "TBL_WRITES_FK1" FOREIGN KEY ("TBL_ID") REFERENCES "APP"."TBLS" ("TBL_ID") ON DELETE NO ACTION ON UPDATE NO ACTION; -CREATE UNIQUE INDEX "APP"."UNIQUEWRITE" ON "APP"."TBL_WRITES" ("TBL_ID", "WRITE_ID"); diff --git metastore/scripts/upgrade/derby/hive-schema-2.2.0.derby.sql metastore/scripts/upgrade/derby/hive-schema-2.2.0.derby.sql index a4977b6..6dd3dee 100644 --- metastore/scripts/upgrade/derby/hive-schema-2.2.0.derby.sql +++ metastore/scripts/upgrade/derby/hive-schema-2.2.0.derby.sql @@ -60,7 +60,7 @@ CREATE TABLE "APP"."COLUMNS" ("SD_ID" BIGINT NOT NULL, "COMMENT" VARCHAR(256), " CREATE TABLE "APP"."ROLES" ("ROLE_ID" BIGINT NOT NULL, "CREATE_TIME" INTEGER NOT NULL, "OWNER_NAME" VARCHAR(128), "ROLE_NAME" VARCHAR(128)); -CREATE TABLE "APP"."TBLS" ("TBL_ID" BIGINT NOT NULL, "CREATE_TIME" INTEGER NOT NULL, "DB_ID" BIGINT, "LAST_ACCESS_TIME" INTEGER NOT NULL, "OWNER" VARCHAR(767), "RETENTION" INTEGER NOT NULL, "SD_ID" BIGINT, "TBL_NAME" VARCHAR(256), "TBL_TYPE" VARCHAR(128), "VIEW_EXPANDED_TEXT" LONG VARCHAR, "VIEW_ORIGINAL_TEXT" LONG VARCHAR, "IS_REWRITE_ENABLED" CHAR(1) NOT NULL, "MM_WATERMARK_WRITE_ID" BIGINT DEFAULT -1, "MM_NEXT_WRITE_ID" BIGINT DEFAULT 0); +CREATE TABLE "APP"."TBLS" ("TBL_ID" BIGINT NOT NULL, "CREATE_TIME" INTEGER NOT NULL, "DB_ID" BIGINT, "LAST_ACCESS_TIME" INTEGER NOT NULL, "OWNER" VARCHAR(767), "RETENTION" INTEGER NOT NULL, "SD_ID" BIGINT, "TBL_NAME" VARCHAR(256), "TBL_TYPE" VARCHAR(128), "VIEW_EXPANDED_TEXT" LONG VARCHAR, "VIEW_ORIGINAL_TEXT" LONG VARCHAR, "IS_REWRITE_ENABLED" CHAR(1) NOT NULL); CREATE TABLE "APP"."PARTITION_KEYS" ("TBL_ID" BIGINT NOT NULL, "PKEY_COMMENT" VARCHAR(4000), "PKEY_NAME" VARCHAR(128) NOT NULL, "PKEY_TYPE" VARCHAR(767) NOT NULL, "INTEGER_IDX" INTEGER NOT NULL); @@ -112,15 +112,6 @@ ALTER TABLE "APP"."KEY_CONSTRAINTS" ADD CONSTRAINT "CONSTRAINTS_PK" PRIMARY KEY CREATE INDEX "APP"."CONSTRAINTS_PARENT_TBL_ID_INDEX" ON "APP"."KEY_CONSTRAINTS"("PARENT_TBL_ID"); -CREATE TABLE "APP"."TBL_WRITES" ("TW_ID" BIGINT NOT NULL, "TBL_ID" BIGINT NOT NULL, "WRITE_ID" BIGINT NOT NULL, "STATE" CHAR(1) NOT NULL, "CREATED" BIGINT NOT NULL, "LAST_HEARTBEAT" BIGINT NOT NULL); - -ALTER TABLE "APP"."TBL_WRITES" ADD CONSTRAINT "TBL_WRITES_PK" PRIMARY KEY ("TW_ID"); - -ALTER TABLE "APP"."TBL_WRITES" ADD CONSTRAINT "TBL_WRITES_FK1" FOREIGN KEY ("TBL_ID") REFERENCES "APP"."TBLS" ("TBL_ID") ON DELETE NO ACTION ON UPDATE NO ACTION; - -CREATE UNIQUE INDEX "APP"."UNIQUEWRITE" ON "APP"."TBL_WRITES" ("TBL_ID", "WRITE_ID"); - - -- ---------------------------------------------- -- DDL Statements for indexes diff --git metastore/scripts/upgrade/derby/upgrade-2.1.0-to-2.2.0.derby.sql metastore/scripts/upgrade/derby/upgrade-2.1.0-to-2.2.0.derby.sql index 3e87091..b05942f 100644 --- metastore/scripts/upgrade/derby/upgrade-2.1.0-to-2.2.0.derby.sql +++ metastore/scripts/upgrade/derby/upgrade-2.1.0-to-2.2.0.derby.sql @@ -3,6 +3,4 @@ RUN '037-HIVE-14496.derby.sql'; RUN '038-HIVE-10562.derby.sql'; RUN '039-HIVE-12274.derby.sql'; -RUN '037-HIVE-14637.derby.sql'; - UPDATE "APP".VERSION SET SCHEMA_VERSION='2.2.0', VERSION_COMMENT='Hive release version 2.2.0' where VER_ID=1; diff --git metastore/scripts/upgrade/mssql/023-HIVE-14637.mssql.sql metastore/scripts/upgrade/mssql/023-HIVE-14637.mssql.sql deleted file mode 100644 index 9666d2b..0000000 --- metastore/scripts/upgrade/mssql/023-HIVE-14637.mssql.sql +++ /dev/null @@ -1,15 +0,0 @@ -ALTER TABLE TBLS ADD MM_WATERMARK_WRITE_ID BIGINT DEFAULT -1; -ALTER TABLE TBLS ADD MM_NEXT_WRITE_ID BIGINT DEFAULT 0; - -CREATE TABLE TBL_WRITES -( - TW_ID BIGINT NOT NULL, - TBL_ID BIGINT NOT NULL, - WRITE_ID BIGINT NOT NULL, - STATE CHAR(1) NOT NULL, - CREATED BIGINT NOT NULL, - LAST_HEARTBEAT BIGINT NOT NULL -); -ALTER TABLE TBL_WRITES ADD CONSTRAINT TBL_WRITES_PK PRIMARY KEY (TW_ID); -ALTER TABLE TBL_WRITES ADD CONSTRAINT TBL_WRITES_FK1 FOREIGN KEY (TBL_ID) REFERENCES TBLS (TBL_ID) ; -CREATE UNIQUE INDEX UNIQUEWRITE ON TBL_WRITES (TBL_ID, WRITE_ID); diff --git metastore/scripts/upgrade/mssql/hive-schema-2.2.0.mssql.sql metastore/scripts/upgrade/mssql/hive-schema-2.2.0.mssql.sql index 3621ef6..b6fdc7b 100644 --- metastore/scripts/upgrade/mssql/hive-schema-2.2.0.mssql.sql +++ metastore/scripts/upgrade/mssql/hive-schema-2.2.0.mssql.sql @@ -359,9 +359,7 @@ CREATE TABLE TBLS TBL_TYPE nvarchar(128) NULL, VIEW_EXPANDED_TEXT text NULL, VIEW_ORIGINAL_TEXT text NULL, - IS_REWRITE_ENABLED bit NOT NULL, - MM_WATERMARK_WRITE_ID BIGINT NULL DEFAULT -1, - MM_NEXT_WRITE_ID BIGINT NULL DEFAULT 0 + IS_REWRITE_ENABLED bit NOT NULL ); ALTER TABLE TBLS ADD CONSTRAINT TBLS_PK PRIMARY KEY (TBL_ID); @@ -596,23 +594,6 @@ CREATE TABLE NOTIFICATION_SEQUENCE ALTER TABLE NOTIFICATION_SEQUENCE ADD CONSTRAINT NOTIFICATION_SEQUENCE_PK PRIMARY KEY (NNI_ID); -CREATE TABLE TBL_WRITES -( - TW_ID BIGINT NOT NULL, - TBL_ID BIGINT NOT NULL, - WRITE_ID BIGINT NOT NULL, - STATE CHAR(1) NOT NULL, - CREATED BIGINT NOT NULL, - LAST_HEARTBEAT BIGINT NOT NULL -); - -ALTER TABLE TBL_WRITES ADD CONSTRAINT TBL_WRITES_PK PRIMARY KEY (TW_ID); - -ALTER TABLE TBL_WRITES ADD CONSTRAINT TBL_WRITES_FK1 FOREIGN KEY (TBL_ID) REFERENCES TBLS (TBL_ID) ; - -CREATE UNIQUE INDEX UNIQUEWRITE ON TBL_WRITES (TBL_ID, WRITE_ID); - - -- Constraints for table MASTER_KEYS for class(es) [org.apache.hadoop.hive.metastore.model.MMasterKey] -- Constraints for table IDXS for class(es) [org.apache.hadoop.hive.metastore.model.MIndex] diff --git metastore/scripts/upgrade/mssql/upgrade-2.1.0-to-2.2.0.mssql.sql metastore/scripts/upgrade/mssql/upgrade-2.1.0-to-2.2.0.mssql.sql index b786b16..4995349 100644 --- metastore/scripts/upgrade/mssql/upgrade-2.1.0-to-2.2.0.mssql.sql +++ metastore/scripts/upgrade/mssql/upgrade-2.1.0-to-2.2.0.mssql.sql @@ -1,7 +1,6 @@ SELECT 'Upgrading MetaStore schema from 2.1.0 to 2.2.0' AS MESSAGE; :r 022-HIVE-14496.mssql.sql -:r 023-HIVE-14637.mssql.sql :r 023-HIVE-10562.mssql.sql :r 024-HIVE-12274.mssql.sql diff --git metastore/scripts/upgrade/mysql/038-HIVE-14637.mysql.sql metastore/scripts/upgrade/mysql/038-HIVE-14637.mysql.sql deleted file mode 100644 index 9e34db2..0000000 --- metastore/scripts/upgrade/mysql/038-HIVE-14637.mysql.sql +++ /dev/null @@ -1,15 +0,0 @@ -alter table `TBLS` ADD COLUMN `MM_WATERMARK_WRITE_ID` bigint(20) DEFAULT -1; -alter table `TBLS` ADD COLUMN `MM_NEXT_WRITE_ID` bigint(20) DEFAULT 0; - -CREATE TABLE IF NOT EXISTS `TBL_WRITES` -( - `TW_ID` BIGINT NOT NULL, - `TBL_ID` BIGINT NOT NULL, - `WRITE_ID` BIGINT NOT NULL, - `STATE` CHAR(1) NOT NULL, - `CREATED` BIGINT NOT NULL, - `LAST_HEARTBEAT` BIGINT NOT NULL, - PRIMARY KEY (`TW_ID`), - UNIQUE KEY `UNIQUEWRITE` (`TBL_ID`,`WRITE_ID`), - CONSTRAINT `TBL_WRITES_FK1` FOREIGN KEY (`TBL_ID`) REFERENCES `TBLS` (`TBL_ID`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; diff --git metastore/scripts/upgrade/mysql/hive-schema-2.2.0.mysql.sql metastore/scripts/upgrade/mysql/hive-schema-2.2.0.mysql.sql index 20cfbc4..d1852df 100644 --- metastore/scripts/upgrade/mysql/hive-schema-2.2.0.mysql.sql +++ metastore/scripts/upgrade/mysql/hive-schema-2.2.0.mysql.sql @@ -588,8 +588,6 @@ CREATE TABLE IF NOT EXISTS `TBLS` ( `VIEW_EXPANDED_TEXT` mediumtext, `VIEW_ORIGINAL_TEXT` mediumtext, `IS_REWRITE_ENABLED` bit(1) NOT NULL, - `MM_WATERMARK_WRITE_ID` bigint(20) DEFAULT -1, - `MM_NEXT_WRITE_ID` bigint(20) DEFAULT 0, PRIMARY KEY (`TBL_ID`), UNIQUE KEY `UNIQUETABLE` (`TBL_NAME`,`DB_ID`), KEY `TBLS_N50` (`SD_ID`), @@ -831,20 +829,6 @@ CREATE TABLE IF NOT EXISTS `KEY_CONSTRAINTS` CREATE INDEX `CONSTRAINTS_PARENT_TABLE_ID_INDEX` ON KEY_CONSTRAINTS (`PARENT_TBL_ID`) USING BTREE; -CREATE TABLE IF NOT EXISTS `TBL_WRITES` -( - `TW_ID` BIGINT NOT NULL, - `TBL_ID` BIGINT NOT NULL, - `WRITE_ID` BIGINT NOT NULL, - `STATE` CHAR(1) NOT NULL, - `CREATED` BIGINT NOT NULL, - `LAST_HEARTBEAT` BIGINT NOT NULL, - PRIMARY KEY (`TW_ID`), - UNIQUE KEY `UNIQUEWRITE` (`TBL_ID`,`WRITE_ID`), - CONSTRAINT `TBL_WRITES_FK1` FOREIGN KEY (`TBL_ID`) REFERENCES `TBLS` (`TBL_ID`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - - -- ---------------------------- -- Transaction and Lock Tables -- ---------------------------- diff --git metastore/scripts/upgrade/mysql/upgrade-2.1.0-to-2.2.0.mysql.sql metastore/scripts/upgrade/mysql/upgrade-2.1.0-to-2.2.0.mysql.sql index f4c69a5..e221439 100644 --- metastore/scripts/upgrade/mysql/upgrade-2.1.0-to-2.2.0.mysql.sql +++ metastore/scripts/upgrade/mysql/upgrade-2.1.0-to-2.2.0.mysql.sql @@ -1,7 +1,6 @@ SELECT 'Upgrading MetaStore schema from 2.1.0 to 2.2.0' AS ' '; SOURCE 037-HIVE-14496.mysql.sql; -SOURCE 038-HIVE-14637.mysql.sql; SOURCE 038-HIVE-10562.mysql.sql; SOURCE 039-HIVE-12274.mysql.sql; diff --git metastore/scripts/upgrade/oracle/038-HIVE-14637.oracle.sql metastore/scripts/upgrade/oracle/038-HIVE-14637.oracle.sql deleted file mode 100644 index 218eefe..0000000 --- metastore/scripts/upgrade/oracle/038-HIVE-14637.oracle.sql +++ /dev/null @@ -1,15 +0,0 @@ -ALTER TABLE TBLS ADD MM_WATERMARK_WRITE_ID NUMBER DEFAULT -1; -ALTER TABLE TBLS ADD MM_NEXT_WRITE_ID NUMBER DEFAULT 0; - -CREATE TABLE TBL_WRITES -( - TW_ID NUMBER NOT NULL, - TBL_ID NUMBER NOT NULL, - WRITE_ID NUMBER NOT NULL, - STATE CHAR(1) NOT NULL, - CREATED NUMBER NOT NULL, - LAST_HEARTBEAT NUMBER NOT NULL -); -ALTER TABLE TBL_WRITES ADD CONSTRAINT TBL_WRITES_PK PRIMARY KEY (TW_ID); -ALTER TABLE TBL_WRITES ADD CONSTRAINT TBL_WRITES_FK1 FOREIGN KEY (TBL_ID) REFERENCES TBLS (TBL_ID) INITIALLY DEFERRED ; -CREATE UNIQUE INDEX UNIQUEWRITE ON TBL_WRITES (TBL_ID, WRITE_ID); diff --git metastore/scripts/upgrade/oracle/hive-schema-2.2.0.oracle.sql metastore/scripts/upgrade/oracle/hive-schema-2.2.0.oracle.sql index c9b1aeb..4aaa5e7 100644 --- metastore/scripts/upgrade/oracle/hive-schema-2.2.0.oracle.sql +++ metastore/scripts/upgrade/oracle/hive-schema-2.2.0.oracle.sql @@ -376,9 +376,7 @@ CREATE TABLE TBLS TBL_TYPE VARCHAR2(128) NULL, VIEW_EXPANDED_TEXT CLOB NULL, VIEW_ORIGINAL_TEXT CLOB NULL, - IS_REWRITE_ENABLED NUMBER(1) NOT NULL CHECK (IS_REWRITE_ENABLED IN (1,0)), - MM_WATERMARK_WRITE_ID NUMBER DEFAULT -1, - MM_NEXT_WRITE_ID NUMBER DEFAULT 0 + IS_REWRITE_ENABLED NUMBER(1) NOT NULL CHECK (IS_REWRITE_ENABLED IN (1,0)) ); ALTER TABLE TBLS ADD CONSTRAINT TBLS_PK PRIMARY KEY (TBL_ID); @@ -801,22 +799,6 @@ ALTER TABLE KEY_CONSTRAINTS ADD CONSTRAINT CONSTRAINTS_PK PRIMARY KEY (CONSTRAIN CREATE INDEX CONSTRAINTS_PT_INDEX ON KEY_CONSTRAINTS(PARENT_TBL_ID); -CREATE TABLE TBL_WRITES -( - TW_ID NUMBER NOT NULL, - TBL_ID NUMBER NOT NULL, - WRITE_ID NUMBER NOT NULL, - STATE CHAR(1) NOT NULL, - CREATED NUMBER NOT NULL, - LAST_HEARTBEAT NUMBER NOT NULL -); - -ALTER TABLE TBL_WRITES ADD CONSTRAINT TBL_WRITES_PK PRIMARY KEY (TW_ID); - -ALTER TABLE TBL_WRITES ADD CONSTRAINT TBL_WRITES_FK1 FOREIGN KEY (TBL_ID) REFERENCES TBLS (TBL_ID) INITIALLY DEFERRED ; - -CREATE UNIQUE INDEX UNIQUEWRITE ON TBL_WRITES (TBL_ID, WRITE_ID); - ------------------------------ -- Transaction and lock tables ------------------------------ diff --git metastore/scripts/upgrade/oracle/upgrade-2.1.0-to-2.2.0.oracle.sql metastore/scripts/upgrade/oracle/upgrade-2.1.0-to-2.2.0.oracle.sql index b2f35de..53ec681 100644 --- metastore/scripts/upgrade/oracle/upgrade-2.1.0-to-2.2.0.oracle.sql +++ metastore/scripts/upgrade/oracle/upgrade-2.1.0-to-2.2.0.oracle.sql @@ -1,7 +1,6 @@ SELECT 'Upgrading MetaStore schema from 2.1.0 to 2.2.0' AS Status from dual; @037-HIVE-14496.oracle.sql; -@038-HIVE-14637.oracle.sql; @038-HIVE-10562.oracle.sql; @039-HIVE-12274.oracle.sql; diff --git metastore/scripts/upgrade/postgres/037-HIVE-14637.postgres.sql metastore/scripts/upgrade/postgres/037-HIVE-14637.postgres.sql deleted file mode 100644 index 310f51e..0000000 --- metastore/scripts/upgrade/postgres/037-HIVE-14637.postgres.sql +++ /dev/null @@ -1,16 +0,0 @@ - -ALTER TABLE "TBLS" ADD COLUMN "MM_WATERMARK_WRITE_ID" bigint DEFAULT -1; -ALTER TABLE "TBLS" ADD COLUMN "MM_NEXT_WRITE_ID" bigint DEFAULT 0; - -CREATE TABLE "TBL_WRITES" -( - "TW_ID" BIGINT NOT NULL, - "TBL_ID" BIGINT NOT NULL, - "WRITE_ID" BIGINT NOT NULL, - "STATE" CHAR(1) NOT NULL, - "CREATED" BIGINT NOT NULL, - "LAST_HEARTBEAT" BIGINT NOT NULL -); -ALTER TABLE ONLY "TBL_WRITES" ADD CONSTRAINT "TBL_WRITES_PK" PRIMARY KEY ("TW_ID"); -ALTER TABLE ONLY "TBL_WRITES" ADD CONSTRAINT "TBL_WRITES_FK1" FOREIGN KEY ("TBL_ID") REFERENCES "TBLS" ("TBL_ID") DEFERRABLE; -ALTER TABLE ONLY "TBL_WRITES" ADD CONSTRAINT "UNIQUEWRITE" UNIQUE ("TBL_ID", "WRITE_ID"); diff --git metastore/scripts/upgrade/postgres/hive-schema-2.2.0.postgres.sql metastore/scripts/upgrade/postgres/hive-schema-2.2.0.postgres.sql index 424c6a1..5feab4e 100644 --- metastore/scripts/upgrade/postgres/hive-schema-2.2.0.postgres.sql +++ metastore/scripts/upgrade/postgres/hive-schema-2.2.0.postgres.sql @@ -373,9 +373,7 @@ CREATE TABLE "TBLS" ( "TBL_TYPE" character varying(128) DEFAULT NULL::character varying, "VIEW_EXPANDED_TEXT" text, "VIEW_ORIGINAL_TEXT" text, - "IS_REWRITE_ENABLED" boolean NOT NULL, - "MM_WATERMARK_WRITE_ID" bigint DEFAULT -1, - "MM_NEXT_WRITE_ID" bigint DEFAULT 0 + "IS_REWRITE_ENABLED" boolean NOT NULL ); @@ -609,24 +607,6 @@ CREATE TABLE "KEY_CONSTRAINTS" CREATE INDEX "CONSTRAINTS_PARENT_TBLID_INDEX" ON "KEY_CONSTRAINTS" USING BTREE ("PARENT_TBL_ID"); - -CREATE TABLE "TBL_WRITES" -( - "TW_ID" BIGINT NOT NULL, - "TBL_ID" BIGINT NOT NULL, - "WRITE_ID" BIGINT NOT NULL, - "STATE" CHAR(1) NOT NULL, - "CREATED" BIGINT NOT NULL, - "LAST_HEARTBEAT" BIGINT NOT NULL -); - -ALTER TABLE ONLY "TBL_WRITES" ADD CONSTRAINT "TBL_WRITES_PK" PRIMARY KEY ("TW_ID"); - -ALTER TABLE ONLY "TBL_WRITES" ADD CONSTRAINT "TBL_WRITES_FK1" FOREIGN KEY ("TBL_ID") REFERENCES "TBLS" ("TBL_ID") DEFERRABLE; - -ALTER TABLE ONLY "TBL_WRITES" ADD CONSTRAINT "UNIQUEWRITE" UNIQUE ("TBL_ID", "WRITE_ID"); - - -- -- Name: BUCKETING_COLS_pkey; Type: CONSTRAINT; Schema: public; Owner: hiveuser; Tablespace: -- diff --git metastore/scripts/upgrade/postgres/upgrade-2.1.0-to-2.2.0.postgres.sql metastore/scripts/upgrade/postgres/upgrade-2.1.0-to-2.2.0.postgres.sql index e6daeca..732e184 100644 --- metastore/scripts/upgrade/postgres/upgrade-2.1.0-to-2.2.0.postgres.sql +++ metastore/scripts/upgrade/postgres/upgrade-2.1.0-to-2.2.0.postgres.sql @@ -1,7 +1,6 @@ SELECT 'Upgrading MetaStore schema from 2.1.0 to 2.2.0'; \i 036-HIVE-14496.postgres.sql; -\i 037-HIVE-14637.postgres.sql; \i 037-HIVE-10562.postgres.sql; \i 038-HIVE-12274.postgres.sql; diff --git metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp index 4e3b2af..9042cdb 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp +++ 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 _size839; - ::apache::thrift::protocol::TType _etype842; - xfer += iprot->readListBegin(_etype842, _size839); - this->success.resize(_size839); - uint32_t _i843; - for (_i843 = 0; _i843 < _size839; ++_i843) + uint32_t _size817; + ::apache::thrift::protocol::TType _etype820; + xfer += iprot->readListBegin(_etype820, _size817); + this->success.resize(_size817); + uint32_t _i821; + for (_i821 = 0; _i821 < _size817; ++_i821) { - xfer += iprot->readString(this->success[_i843]); + xfer += iprot->readString(this->success[_i821]); } 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 _iter844; - for (_iter844 = this->success.begin(); _iter844 != this->success.end(); ++_iter844) + std::vector ::const_iterator _iter822; + for (_iter822 = this->success.begin(); _iter822 != this->success.end(); ++_iter822) { - xfer += oprot->writeString((*_iter844)); + xfer += oprot->writeString((*_iter822)); } 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 _size845; - ::apache::thrift::protocol::TType _etype848; - xfer += iprot->readListBegin(_etype848, _size845); - (*(this->success)).resize(_size845); - uint32_t _i849; - for (_i849 = 0; _i849 < _size845; ++_i849) + uint32_t _size823; + ::apache::thrift::protocol::TType _etype826; + xfer += iprot->readListBegin(_etype826, _size823); + (*(this->success)).resize(_size823); + uint32_t _i827; + for (_i827 = 0; _i827 < _size823; ++_i827) { - xfer += iprot->readString((*(this->success))[_i849]); + xfer += iprot->readString((*(this->success))[_i827]); } 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 _size850; - ::apache::thrift::protocol::TType _etype853; - xfer += iprot->readListBegin(_etype853, _size850); - this->success.resize(_size850); - uint32_t _i854; - for (_i854 = 0; _i854 < _size850; ++_i854) + uint32_t _size828; + ::apache::thrift::protocol::TType _etype831; + xfer += iprot->readListBegin(_etype831, _size828); + this->success.resize(_size828); + uint32_t _i832; + for (_i832 = 0; _i832 < _size828; ++_i832) { - xfer += iprot->readString(this->success[_i854]); + xfer += iprot->readString(this->success[_i832]); } 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 _iter855; - for (_iter855 = this->success.begin(); _iter855 != this->success.end(); ++_iter855) + std::vector ::const_iterator _iter833; + for (_iter833 = this->success.begin(); _iter833 != this->success.end(); ++_iter833) { - xfer += oprot->writeString((*_iter855)); + xfer += oprot->writeString((*_iter833)); } 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 _size856; - ::apache::thrift::protocol::TType _etype859; - xfer += iprot->readListBegin(_etype859, _size856); - (*(this->success)).resize(_size856); - uint32_t _i860; - for (_i860 = 0; _i860 < _size856; ++_i860) + uint32_t _size834; + ::apache::thrift::protocol::TType _etype837; + xfer += iprot->readListBegin(_etype837, _size834); + (*(this->success)).resize(_size834); + uint32_t _i838; + for (_i838 = 0; _i838 < _size834; ++_i838) { - xfer += iprot->readString((*(this->success))[_i860]); + xfer += iprot->readString((*(this->success))[_i838]); } 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 _size861; - ::apache::thrift::protocol::TType _ktype862; - ::apache::thrift::protocol::TType _vtype863; - xfer += iprot->readMapBegin(_ktype862, _vtype863, _size861); - uint32_t _i865; - for (_i865 = 0; _i865 < _size861; ++_i865) + uint32_t _size839; + ::apache::thrift::protocol::TType _ktype840; + ::apache::thrift::protocol::TType _vtype841; + xfer += iprot->readMapBegin(_ktype840, _vtype841, _size839); + uint32_t _i843; + for (_i843 = 0; _i843 < _size839; ++_i843) { - std::string _key866; - xfer += iprot->readString(_key866); - Type& _val867 = this->success[_key866]; - xfer += _val867.read(iprot); + std::string _key844; + xfer += iprot->readString(_key844); + Type& _val845 = this->success[_key844]; + xfer += _val845.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 _iter868; - for (_iter868 = this->success.begin(); _iter868 != this->success.end(); ++_iter868) + std::map ::const_iterator _iter846; + for (_iter846 = this->success.begin(); _iter846 != this->success.end(); ++_iter846) { - xfer += oprot->writeString(_iter868->first); - xfer += _iter868->second.write(oprot); + xfer += oprot->writeString(_iter846->first); + xfer += _iter846->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 _size869; - ::apache::thrift::protocol::TType _ktype870; - ::apache::thrift::protocol::TType _vtype871; - xfer += iprot->readMapBegin(_ktype870, _vtype871, _size869); - uint32_t _i873; - for (_i873 = 0; _i873 < _size869; ++_i873) + uint32_t _size847; + ::apache::thrift::protocol::TType _ktype848; + ::apache::thrift::protocol::TType _vtype849; + xfer += iprot->readMapBegin(_ktype848, _vtype849, _size847); + uint32_t _i851; + for (_i851 = 0; _i851 < _size847; ++_i851) { - std::string _key874; - xfer += iprot->readString(_key874); - Type& _val875 = (*(this->success))[_key874]; - xfer += _val875.read(iprot); + std::string _key852; + xfer += iprot->readString(_key852); + Type& _val853 = (*(this->success))[_key852]; + xfer += _val853.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 _size876; - ::apache::thrift::protocol::TType _etype879; - xfer += iprot->readListBegin(_etype879, _size876); - this->success.resize(_size876); - uint32_t _i880; - for (_i880 = 0; _i880 < _size876; ++_i880) + uint32_t _size854; + ::apache::thrift::protocol::TType _etype857; + xfer += iprot->readListBegin(_etype857, _size854); + this->success.resize(_size854); + uint32_t _i858; + for (_i858 = 0; _i858 < _size854; ++_i858) { - xfer += this->success[_i880].read(iprot); + xfer += this->success[_i858].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 _iter881; - for (_iter881 = this->success.begin(); _iter881 != this->success.end(); ++_iter881) + std::vector ::const_iterator _iter859; + for (_iter859 = this->success.begin(); _iter859 != this->success.end(); ++_iter859) { - xfer += (*_iter881).write(oprot); + xfer += (*_iter859).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 _size882; - ::apache::thrift::protocol::TType _etype885; - xfer += iprot->readListBegin(_etype885, _size882); - (*(this->success)).resize(_size882); - uint32_t _i886; - for (_i886 = 0; _i886 < _size882; ++_i886) + uint32_t _size860; + ::apache::thrift::protocol::TType _etype863; + xfer += iprot->readListBegin(_etype863, _size860); + (*(this->success)).resize(_size860); + uint32_t _i864; + for (_i864 = 0; _i864 < _size860; ++_i864) { - xfer += (*(this->success))[_i886].read(iprot); + xfer += (*(this->success))[_i864].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 _size887; - ::apache::thrift::protocol::TType _etype890; - xfer += iprot->readListBegin(_etype890, _size887); - this->success.resize(_size887); - uint32_t _i891; - for (_i891 = 0; _i891 < _size887; ++_i891) + 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 += this->success[_i891].read(iprot); + xfer += this->success[_i869].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 _iter892; - for (_iter892 = this->success.begin(); _iter892 != this->success.end(); ++_iter892) + std::vector ::const_iterator _iter870; + for (_iter870 = this->success.begin(); _iter870 != this->success.end(); ++_iter870) { - xfer += (*_iter892).write(oprot); + xfer += (*_iter870).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 _size893; - ::apache::thrift::protocol::TType _etype896; - xfer += iprot->readListBegin(_etype896, _size893); - (*(this->success)).resize(_size893); - uint32_t _i897; - for (_i897 = 0; _i897 < _size893; ++_i897) + 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 += (*(this->success))[_i897].read(iprot); + xfer += (*(this->success))[_i875].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 _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 _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 += this->success[_i902].read(iprot); + xfer += this->success[_i880].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 _iter903; - for (_iter903 = this->success.begin(); _iter903 != this->success.end(); ++_iter903) + std::vector ::const_iterator _iter881; + for (_iter881 = this->success.begin(); _iter881 != this->success.end(); ++_iter881) { - xfer += (*_iter903).write(oprot); + xfer += (*_iter881).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 _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 _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 += (*(this->success))[_i908].read(iprot); + xfer += (*(this->success))[_i886].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 _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 _size887; + ::apache::thrift::protocol::TType _etype890; + xfer += iprot->readListBegin(_etype890, _size887); + this->success.resize(_size887); + uint32_t _i891; + for (_i891 = 0; _i891 < _size887; ++_i891) { - xfer += this->success[_i913].read(iprot); + xfer += this->success[_i891].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 _iter914; - for (_iter914 = this->success.begin(); _iter914 != this->success.end(); ++_iter914) + std::vector ::const_iterator _iter892; + for (_iter892 = this->success.begin(); _iter892 != this->success.end(); ++_iter892) { - xfer += (*_iter914).write(oprot); + xfer += (*_iter892).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 _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 _size893; + ::apache::thrift::protocol::TType _etype896; + xfer += iprot->readListBegin(_etype896, _size893); + (*(this->success)).resize(_size893); + uint32_t _i897; + for (_i897 = 0; _i897 < _size893; ++_i897) { - xfer += (*(this->success))[_i919].read(iprot); + xfer += (*(this->success))[_i897].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 _size920; - ::apache::thrift::protocol::TType _etype923; - xfer += iprot->readListBegin(_etype923, _size920); - this->primaryKeys.resize(_size920); - uint32_t _i924; - for (_i924 = 0; _i924 < _size920; ++_i924) + uint32_t _size898; + ::apache::thrift::protocol::TType _etype901; + xfer += iprot->readListBegin(_etype901, _size898); + this->primaryKeys.resize(_size898); + uint32_t _i902; + for (_i902 = 0; _i902 < _size898; ++_i902) { - xfer += this->primaryKeys[_i924].read(iprot); + xfer += this->primaryKeys[_i902].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 _size925; - ::apache::thrift::protocol::TType _etype928; - xfer += iprot->readListBegin(_etype928, _size925); - this->foreignKeys.resize(_size925); - uint32_t _i929; - for (_i929 = 0; _i929 < _size925; ++_i929) + uint32_t _size903; + ::apache::thrift::protocol::TType _etype906; + xfer += iprot->readListBegin(_etype906, _size903); + this->foreignKeys.resize(_size903); + uint32_t _i907; + for (_i907 = 0; _i907 < _size903; ++_i907) { - xfer += this->foreignKeys[_i929].read(iprot); + xfer += this->foreignKeys[_i907].read(iprot); } xfer += iprot->readListEnd(); } @@ -4578,10 +4578,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 _iter930; - for (_iter930 = this->primaryKeys.begin(); _iter930 != this->primaryKeys.end(); ++_iter930) + std::vector ::const_iterator _iter908; + for (_iter908 = this->primaryKeys.begin(); _iter908 != this->primaryKeys.end(); ++_iter908) { - xfer += (*_iter930).write(oprot); + xfer += (*_iter908).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4590,10 +4590,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 _iter931; - for (_iter931 = this->foreignKeys.begin(); _iter931 != this->foreignKeys.end(); ++_iter931) + std::vector ::const_iterator _iter909; + for (_iter909 = this->foreignKeys.begin(); _iter909 != this->foreignKeys.end(); ++_iter909) { - xfer += (*_iter931).write(oprot); + xfer += (*_iter909).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4621,10 +4621,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 _iter932; - for (_iter932 = (*(this->primaryKeys)).begin(); _iter932 != (*(this->primaryKeys)).end(); ++_iter932) + std::vector ::const_iterator _iter910; + for (_iter910 = (*(this->primaryKeys)).begin(); _iter910 != (*(this->primaryKeys)).end(); ++_iter910) { - xfer += (*_iter932).write(oprot); + xfer += (*_iter910).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4633,10 +4633,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 _iter933; - for (_iter933 = (*(this->foreignKeys)).begin(); _iter933 != (*(this->foreignKeys)).end(); ++_iter933) + std::vector ::const_iterator _iter911; + for (_iter911 = (*(this->foreignKeys)).begin(); _iter911 != (*(this->foreignKeys)).end(); ++_iter911) { - xfer += (*_iter933).write(oprot); + xfer += (*_iter911).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5976,14 +5976,14 @@ uint32_t ThriftHiveMetastore_truncate_table_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partNames.clear(); - uint32_t _size934; - ::apache::thrift::protocol::TType _etype937; - xfer += iprot->readListBegin(_etype937, _size934); - this->partNames.resize(_size934); - uint32_t _i938; - for (_i938 = 0; _i938 < _size934; ++_i938) + uint32_t _size912; + ::apache::thrift::protocol::TType _etype915; + xfer += iprot->readListBegin(_etype915, _size912); + this->partNames.resize(_size912); + uint32_t _i916; + for (_i916 = 0; _i916 < _size912; ++_i916) { - xfer += iprot->readString(this->partNames[_i938]); + xfer += iprot->readString(this->partNames[_i916]); } xfer += iprot->readListEnd(); } @@ -6020,10 +6020,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 _iter939; - for (_iter939 = this->partNames.begin(); _iter939 != this->partNames.end(); ++_iter939) + std::vector ::const_iterator _iter917; + for (_iter917 = this->partNames.begin(); _iter917 != this->partNames.end(); ++_iter917) { - xfer += oprot->writeString((*_iter939)); + xfer += oprot->writeString((*_iter917)); } xfer += oprot->writeListEnd(); } @@ -6055,10 +6055,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 _iter940; - for (_iter940 = (*(this->partNames)).begin(); _iter940 != (*(this->partNames)).end(); ++_iter940) + std::vector ::const_iterator _iter918; + for (_iter918 = (*(this->partNames)).begin(); _iter918 != (*(this->partNames)).end(); ++_iter918) { - xfer += oprot->writeString((*_iter940)); + xfer += oprot->writeString((*_iter918)); } xfer += oprot->writeListEnd(); } @@ -6302,14 +6302,14 @@ uint32_t ThriftHiveMetastore_get_tables_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - 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) + 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 += iprot->readString(this->success[_i945]); + xfer += iprot->readString(this->success[_i923]); } xfer += iprot->readListEnd(); } @@ -6348,10 +6348,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 _iter946; - for (_iter946 = this->success.begin(); _iter946 != this->success.end(); ++_iter946) + std::vector ::const_iterator _iter924; + for (_iter924 = this->success.begin(); _iter924 != this->success.end(); ++_iter924) { - xfer += oprot->writeString((*_iter946)); + xfer += oprot->writeString((*_iter924)); } xfer += oprot->writeListEnd(); } @@ -6396,14 +6396,14 @@ uint32_t ThriftHiveMetastore_get_tables_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size947; - ::apache::thrift::protocol::TType _etype950; - xfer += iprot->readListBegin(_etype950, _size947); - (*(this->success)).resize(_size947); - uint32_t _i951; - for (_i951 = 0; _i951 < _size947; ++_i951) + uint32_t _size925; + ::apache::thrift::protocol::TType _etype928; + xfer += iprot->readListBegin(_etype928, _size925); + (*(this->success)).resize(_size925); + uint32_t _i929; + for (_i929 = 0; _i929 < _size925; ++_i929) { - xfer += iprot->readString((*(this->success))[_i951]); + xfer += iprot->readString((*(this->success))[_i929]); } xfer += iprot->readListEnd(); } @@ -6573,14 +6573,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 _size952; - ::apache::thrift::protocol::TType _etype955; - xfer += iprot->readListBegin(_etype955, _size952); - this->success.resize(_size952); - uint32_t _i956; - for (_i956 = 0; _i956 < _size952; ++_i956) + 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 += iprot->readString(this->success[_i956]); + xfer += iprot->readString(this->success[_i934]); } xfer += iprot->readListEnd(); } @@ -6619,10 +6619,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 _iter957; - for (_iter957 = this->success.begin(); _iter957 != this->success.end(); ++_iter957) + std::vector ::const_iterator _iter935; + for (_iter935 = this->success.begin(); _iter935 != this->success.end(); ++_iter935) { - xfer += oprot->writeString((*_iter957)); + xfer += oprot->writeString((*_iter935)); } xfer += oprot->writeListEnd(); } @@ -6667,14 +6667,14 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_presult::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size958; - ::apache::thrift::protocol::TType _etype961; - xfer += iprot->readListBegin(_etype961, _size958); - (*(this->success)).resize(_size958); - uint32_t _i962; - for (_i962 = 0; _i962 < _size958; ++_i962) + uint32_t _size936; + ::apache::thrift::protocol::TType _etype939; + xfer += iprot->readListBegin(_etype939, _size936); + (*(this->success)).resize(_size936); + uint32_t _i940; + for (_i940 = 0; _i940 < _size936; ++_i940) { - xfer += iprot->readString((*(this->success))[_i962]); + xfer += iprot->readString((*(this->success))[_i940]); } xfer += iprot->readListEnd(); } @@ -6749,14 +6749,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 _size963; - ::apache::thrift::protocol::TType _etype966; - xfer += iprot->readListBegin(_etype966, _size963); - this->tbl_types.resize(_size963); - uint32_t _i967; - for (_i967 = 0; _i967 < _size963; ++_i967) + uint32_t _size941; + ::apache::thrift::protocol::TType _etype944; + xfer += iprot->readListBegin(_etype944, _size941); + this->tbl_types.resize(_size941); + uint32_t _i945; + for (_i945 = 0; _i945 < _size941; ++_i945) { - xfer += iprot->readString(this->tbl_types[_i967]); + xfer += iprot->readString(this->tbl_types[_i945]); } xfer += iprot->readListEnd(); } @@ -6793,10 +6793,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 _iter968; - for (_iter968 = this->tbl_types.begin(); _iter968 != this->tbl_types.end(); ++_iter968) + std::vector ::const_iterator _iter946; + for (_iter946 = this->tbl_types.begin(); _iter946 != this->tbl_types.end(); ++_iter946) { - xfer += oprot->writeString((*_iter968)); + xfer += oprot->writeString((*_iter946)); } xfer += oprot->writeListEnd(); } @@ -6828,10 +6828,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 _iter969; - for (_iter969 = (*(this->tbl_types)).begin(); _iter969 != (*(this->tbl_types)).end(); ++_iter969) + std::vector ::const_iterator _iter947; + for (_iter947 = (*(this->tbl_types)).begin(); _iter947 != (*(this->tbl_types)).end(); ++_iter947) { - xfer += oprot->writeString((*_iter969)); + xfer += oprot->writeString((*_iter947)); } xfer += oprot->writeListEnd(); } @@ -6872,14 +6872,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size970; - ::apache::thrift::protocol::TType _etype973; - xfer += iprot->readListBegin(_etype973, _size970); - this->success.resize(_size970); - uint32_t _i974; - for (_i974 = 0; _i974 < _size970; ++_i974) + uint32_t _size948; + ::apache::thrift::protocol::TType _etype951; + xfer += iprot->readListBegin(_etype951, _size948); + this->success.resize(_size948); + uint32_t _i952; + for (_i952 = 0; _i952 < _size948; ++_i952) { - xfer += this->success[_i974].read(iprot); + xfer += this->success[_i952].read(iprot); } xfer += iprot->readListEnd(); } @@ -6918,10 +6918,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 _iter975; - for (_iter975 = this->success.begin(); _iter975 != this->success.end(); ++_iter975) + std::vector ::const_iterator _iter953; + for (_iter953 = this->success.begin(); _iter953 != this->success.end(); ++_iter953) { - xfer += (*_iter975).write(oprot); + xfer += (*_iter953).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6966,14 +6966,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size976; - ::apache::thrift::protocol::TType _etype979; - xfer += iprot->readListBegin(_etype979, _size976); - (*(this->success)).resize(_size976); - uint32_t _i980; - for (_i980 = 0; _i980 < _size976; ++_i980) + uint32_t _size954; + ::apache::thrift::protocol::TType _etype957; + xfer += iprot->readListBegin(_etype957, _size954); + (*(this->success)).resize(_size954); + uint32_t _i958; + for (_i958 = 0; _i958 < _size954; ++_i958) { - xfer += (*(this->success))[_i980].read(iprot); + xfer += (*(this->success))[_i958].read(iprot); } xfer += iprot->readListEnd(); } @@ -7111,14 +7111,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - 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) + uint32_t _size959; + ::apache::thrift::protocol::TType _etype962; + xfer += iprot->readListBegin(_etype962, _size959); + this->success.resize(_size959); + uint32_t _i963; + for (_i963 = 0; _i963 < _size959; ++_i963) { - xfer += iprot->readString(this->success[_i985]); + xfer += iprot->readString(this->success[_i963]); } xfer += iprot->readListEnd(); } @@ -7157,10 +7157,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 _iter986; - for (_iter986 = this->success.begin(); _iter986 != this->success.end(); ++_iter986) + std::vector ::const_iterator _iter964; + for (_iter964 = this->success.begin(); _iter964 != this->success.end(); ++_iter964) { - xfer += oprot->writeString((*_iter986)); + xfer += oprot->writeString((*_iter964)); } xfer += oprot->writeListEnd(); } @@ -7205,14 +7205,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - 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) + uint32_t _size965; + ::apache::thrift::protocol::TType _etype968; + xfer += iprot->readListBegin(_etype968, _size965); + (*(this->success)).resize(_size965); + uint32_t _i969; + for (_i969 = 0; _i969 < _size965; ++_i969) { - xfer += iprot->readString((*(this->success))[_i991]); + xfer += iprot->readString((*(this->success))[_i969]); } xfer += iprot->readListEnd(); } @@ -7522,14 +7522,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 _size992; - ::apache::thrift::protocol::TType _etype995; - xfer += iprot->readListBegin(_etype995, _size992); - this->tbl_names.resize(_size992); - uint32_t _i996; - for (_i996 = 0; _i996 < _size992; ++_i996) + uint32_t _size970; + ::apache::thrift::protocol::TType _etype973; + xfer += iprot->readListBegin(_etype973, _size970); + this->tbl_names.resize(_size970); + uint32_t _i974; + for (_i974 = 0; _i974 < _size970; ++_i974) { - xfer += iprot->readString(this->tbl_names[_i996]); + xfer += iprot->readString(this->tbl_names[_i974]); } xfer += iprot->readListEnd(); } @@ -7562,10 +7562,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 _iter997; - for (_iter997 = this->tbl_names.begin(); _iter997 != this->tbl_names.end(); ++_iter997) + std::vector ::const_iterator _iter975; + for (_iter975 = this->tbl_names.begin(); _iter975 != this->tbl_names.end(); ++_iter975) { - xfer += oprot->writeString((*_iter997)); + xfer += oprot->writeString((*_iter975)); } xfer += oprot->writeListEnd(); } @@ -7593,10 +7593,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 _iter998; - for (_iter998 = (*(this->tbl_names)).begin(); _iter998 != (*(this->tbl_names)).end(); ++_iter998) + std::vector ::const_iterator _iter976; + for (_iter976 = (*(this->tbl_names)).begin(); _iter976 != (*(this->tbl_names)).end(); ++_iter976) { - xfer += oprot->writeString((*_iter998)); + xfer += oprot->writeString((*_iter976)); } xfer += oprot->writeListEnd(); } @@ -7637,14 +7637,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 _size999; - ::apache::thrift::protocol::TType _etype1002; - xfer += iprot->readListBegin(_etype1002, _size999); - this->success.resize(_size999); - uint32_t _i1003; - for (_i1003 = 0; _i1003 < _size999; ++_i1003) + 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) { - xfer += this->success[_i1003].read(iprot); + xfer += this->success[_i981].read(iprot); } xfer += iprot->readListEnd(); } @@ -7675,10 +7675,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 _iter1004; - for (_iter1004 = this->success.begin(); _iter1004 != this->success.end(); ++_iter1004) + std::vector
::const_iterator _iter982; + for (_iter982 = this->success.begin(); _iter982 != this->success.end(); ++_iter982) { - xfer += (*_iter1004).write(oprot); + xfer += (*_iter982).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7719,14 +7719,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 _size1005; - ::apache::thrift::protocol::TType _etype1008; - xfer += iprot->readListBegin(_etype1008, _size1005); - (*(this->success)).resize(_size1005); - uint32_t _i1009; - for (_i1009 = 0; _i1009 < _size1005; ++_i1009) + 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) { - xfer += (*(this->success))[_i1009].read(iprot); + xfer += (*(this->success))[_i987].read(iprot); } xfer += iprot->readListEnd(); } @@ -8362,14 +8362,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 _size1010; - ::apache::thrift::protocol::TType _etype1013; - xfer += iprot->readListBegin(_etype1013, _size1010); - this->success.resize(_size1010); - uint32_t _i1014; - for (_i1014 = 0; _i1014 < _size1010; ++_i1014) + 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) { - xfer += iprot->readString(this->success[_i1014]); + xfer += iprot->readString(this->success[_i992]); } xfer += iprot->readListEnd(); } @@ -8424,10 +8424,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 _iter1015; - for (_iter1015 = this->success.begin(); _iter1015 != this->success.end(); ++_iter1015) + std::vector ::const_iterator _iter993; + for (_iter993 = this->success.begin(); _iter993 != this->success.end(); ++_iter993) { - xfer += oprot->writeString((*_iter1015)); + xfer += oprot->writeString((*_iter993)); } xfer += oprot->writeListEnd(); } @@ -8480,14 +8480,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 _size1016; - ::apache::thrift::protocol::TType _etype1019; - xfer += iprot->readListBegin(_etype1019, _size1016); - (*(this->success)).resize(_size1016); - uint32_t _i1020; - for (_i1020 = 0; _i1020 < _size1016; ++_i1020) + 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) { - xfer += iprot->readString((*(this->success))[_i1020]); + xfer += iprot->readString((*(this->success))[_i998]); } xfer += iprot->readListEnd(); } @@ -9821,14 +9821,14 @@ uint32_t ThriftHiveMetastore_add_partitions_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1021; - ::apache::thrift::protocol::TType _etype1024; - xfer += iprot->readListBegin(_etype1024, _size1021); - this->new_parts.resize(_size1021); - uint32_t _i1025; - for (_i1025 = 0; _i1025 < _size1021; ++_i1025) + uint32_t _size999; + ::apache::thrift::protocol::TType _etype1002; + xfer += iprot->readListBegin(_etype1002, _size999); + this->new_parts.resize(_size999); + uint32_t _i1003; + for (_i1003 = 0; _i1003 < _size999; ++_i1003) { - xfer += this->new_parts[_i1025].read(iprot); + xfer += this->new_parts[_i1003].read(iprot); } xfer += iprot->readListEnd(); } @@ -9857,10 +9857,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 _iter1026; - for (_iter1026 = this->new_parts.begin(); _iter1026 != this->new_parts.end(); ++_iter1026) + std::vector ::const_iterator _iter1004; + for (_iter1004 = this->new_parts.begin(); _iter1004 != this->new_parts.end(); ++_iter1004) { - xfer += (*_iter1026).write(oprot); + xfer += (*_iter1004).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9884,10 +9884,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 _iter1027; - for (_iter1027 = (*(this->new_parts)).begin(); _iter1027 != (*(this->new_parts)).end(); ++_iter1027) + std::vector ::const_iterator _iter1005; + for (_iter1005 = (*(this->new_parts)).begin(); _iter1005 != (*(this->new_parts)).end(); ++_iter1005) { - xfer += (*_iter1027).write(oprot); + xfer += (*_iter1005).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10096,14 +10096,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 _size1028; - ::apache::thrift::protocol::TType _etype1031; - xfer += iprot->readListBegin(_etype1031, _size1028); - this->new_parts.resize(_size1028); - uint32_t _i1032; - for (_i1032 = 0; _i1032 < _size1028; ++_i1032) + uint32_t _size1006; + ::apache::thrift::protocol::TType _etype1009; + xfer += iprot->readListBegin(_etype1009, _size1006); + this->new_parts.resize(_size1006); + uint32_t _i1010; + for (_i1010 = 0; _i1010 < _size1006; ++_i1010) { - xfer += this->new_parts[_i1032].read(iprot); + xfer += this->new_parts[_i1010].read(iprot); } xfer += iprot->readListEnd(); } @@ -10132,10 +10132,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 _iter1033; - for (_iter1033 = this->new_parts.begin(); _iter1033 != this->new_parts.end(); ++_iter1033) + std::vector ::const_iterator _iter1011; + for (_iter1011 = this->new_parts.begin(); _iter1011 != this->new_parts.end(); ++_iter1011) { - xfer += (*_iter1033).write(oprot); + xfer += (*_iter1011).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10159,10 +10159,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 _iter1034; - for (_iter1034 = (*(this->new_parts)).begin(); _iter1034 != (*(this->new_parts)).end(); ++_iter1034) + std::vector ::const_iterator _iter1012; + for (_iter1012 = (*(this->new_parts)).begin(); _iter1012 != (*(this->new_parts)).end(); ++_iter1012) { - xfer += (*_iter1034).write(oprot); + xfer += (*_iter1012).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10387,14 +10387,14 @@ uint32_t ThriftHiveMetastore_append_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1035; - ::apache::thrift::protocol::TType _etype1038; - xfer += iprot->readListBegin(_etype1038, _size1035); - this->part_vals.resize(_size1035); - uint32_t _i1039; - for (_i1039 = 0; _i1039 < _size1035; ++_i1039) + uint32_t _size1013; + ::apache::thrift::protocol::TType _etype1016; + xfer += iprot->readListBegin(_etype1016, _size1013); + this->part_vals.resize(_size1013); + uint32_t _i1017; + for (_i1017 = 0; _i1017 < _size1013; ++_i1017) { - xfer += iprot->readString(this->part_vals[_i1039]); + xfer += iprot->readString(this->part_vals[_i1017]); } xfer += iprot->readListEnd(); } @@ -10431,10 +10431,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 _iter1040; - for (_iter1040 = this->part_vals.begin(); _iter1040 != this->part_vals.end(); ++_iter1040) + std::vector ::const_iterator _iter1018; + for (_iter1018 = this->part_vals.begin(); _iter1018 != this->part_vals.end(); ++_iter1018) { - xfer += oprot->writeString((*_iter1040)); + xfer += oprot->writeString((*_iter1018)); } xfer += oprot->writeListEnd(); } @@ -10466,10 +10466,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 _iter1041; - for (_iter1041 = (*(this->part_vals)).begin(); _iter1041 != (*(this->part_vals)).end(); ++_iter1041) + std::vector ::const_iterator _iter1019; + for (_iter1019 = (*(this->part_vals)).begin(); _iter1019 != (*(this->part_vals)).end(); ++_iter1019) { - xfer += oprot->writeString((*_iter1041)); + xfer += oprot->writeString((*_iter1019)); } xfer += oprot->writeListEnd(); } @@ -10941,14 +10941,14 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::rea if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1042; - ::apache::thrift::protocol::TType _etype1045; - xfer += iprot->readListBegin(_etype1045, _size1042); - this->part_vals.resize(_size1042); - uint32_t _i1046; - for (_i1046 = 0; _i1046 < _size1042; ++_i1046) + uint32_t _size1020; + ::apache::thrift::protocol::TType _etype1023; + xfer += iprot->readListBegin(_etype1023, _size1020); + this->part_vals.resize(_size1020); + uint32_t _i1024; + for (_i1024 = 0; _i1024 < _size1020; ++_i1024) { - xfer += iprot->readString(this->part_vals[_i1046]); + xfer += iprot->readString(this->part_vals[_i1024]); } xfer += iprot->readListEnd(); } @@ -10993,10 +10993,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 _iter1047; - for (_iter1047 = this->part_vals.begin(); _iter1047 != this->part_vals.end(); ++_iter1047) + std::vector ::const_iterator _iter1025; + for (_iter1025 = this->part_vals.begin(); _iter1025 != this->part_vals.end(); ++_iter1025) { - xfer += oprot->writeString((*_iter1047)); + xfer += oprot->writeString((*_iter1025)); } xfer += oprot->writeListEnd(); } @@ -11032,10 +11032,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 _iter1048; - for (_iter1048 = (*(this->part_vals)).begin(); _iter1048 != (*(this->part_vals)).end(); ++_iter1048) + std::vector ::const_iterator _iter1026; + for (_iter1026 = (*(this->part_vals)).begin(); _iter1026 != (*(this->part_vals)).end(); ++_iter1026) { - xfer += oprot->writeString((*_iter1048)); + xfer += oprot->writeString((*_iter1026)); } xfer += oprot->writeListEnd(); } @@ -11838,14 +11838,14 @@ uint32_t ThriftHiveMetastore_drop_partition_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1049; - ::apache::thrift::protocol::TType _etype1052; - xfer += iprot->readListBegin(_etype1052, _size1049); - this->part_vals.resize(_size1049); - uint32_t _i1053; - for (_i1053 = 0; _i1053 < _size1049; ++_i1053) + uint32_t _size1027; + ::apache::thrift::protocol::TType _etype1030; + xfer += iprot->readListBegin(_etype1030, _size1027); + this->part_vals.resize(_size1027); + uint32_t _i1031; + for (_i1031 = 0; _i1031 < _size1027; ++_i1031) { - xfer += iprot->readString(this->part_vals[_i1053]); + xfer += iprot->readString(this->part_vals[_i1031]); } xfer += iprot->readListEnd(); } @@ -11890,10 +11890,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 _iter1054; - for (_iter1054 = this->part_vals.begin(); _iter1054 != this->part_vals.end(); ++_iter1054) + std::vector ::const_iterator _iter1032; + for (_iter1032 = this->part_vals.begin(); _iter1032 != this->part_vals.end(); ++_iter1032) { - xfer += oprot->writeString((*_iter1054)); + xfer += oprot->writeString((*_iter1032)); } xfer += oprot->writeListEnd(); } @@ -11929,10 +11929,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 _iter1055; - for (_iter1055 = (*(this->part_vals)).begin(); _iter1055 != (*(this->part_vals)).end(); ++_iter1055) + std::vector ::const_iterator _iter1033; + for (_iter1033 = (*(this->part_vals)).begin(); _iter1033 != (*(this->part_vals)).end(); ++_iter1033) { - xfer += oprot->writeString((*_iter1055)); + xfer += oprot->writeString((*_iter1033)); } xfer += oprot->writeListEnd(); } @@ -12141,14 +12141,14 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::read( if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1056; - ::apache::thrift::protocol::TType _etype1059; - xfer += iprot->readListBegin(_etype1059, _size1056); - this->part_vals.resize(_size1056); - uint32_t _i1060; - for (_i1060 = 0; _i1060 < _size1056; ++_i1060) + uint32_t _size1034; + ::apache::thrift::protocol::TType _etype1037; + xfer += iprot->readListBegin(_etype1037, _size1034); + this->part_vals.resize(_size1034); + uint32_t _i1038; + for (_i1038 = 0; _i1038 < _size1034; ++_i1038) { - xfer += iprot->readString(this->part_vals[_i1060]); + xfer += iprot->readString(this->part_vals[_i1038]); } xfer += iprot->readListEnd(); } @@ -12201,10 +12201,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 _iter1061; - for (_iter1061 = this->part_vals.begin(); _iter1061 != this->part_vals.end(); ++_iter1061) + std::vector ::const_iterator _iter1039; + for (_iter1039 = this->part_vals.begin(); _iter1039 != this->part_vals.end(); ++_iter1039) { - xfer += oprot->writeString((*_iter1061)); + xfer += oprot->writeString((*_iter1039)); } xfer += oprot->writeListEnd(); } @@ -12244,10 +12244,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 _iter1062; - for (_iter1062 = (*(this->part_vals)).begin(); _iter1062 != (*(this->part_vals)).end(); ++_iter1062) + std::vector ::const_iterator _iter1040; + for (_iter1040 = (*(this->part_vals)).begin(); _iter1040 != (*(this->part_vals)).end(); ++_iter1040) { - xfer += oprot->writeString((*_iter1062)); + xfer += oprot->writeString((*_iter1040)); } xfer += oprot->writeListEnd(); } @@ -13253,14 +13253,14 @@ uint32_t ThriftHiveMetastore_get_partition_args::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1063; - ::apache::thrift::protocol::TType _etype1066; - xfer += iprot->readListBegin(_etype1066, _size1063); - this->part_vals.resize(_size1063); - uint32_t _i1067; - for (_i1067 = 0; _i1067 < _size1063; ++_i1067) + uint32_t _size1041; + ::apache::thrift::protocol::TType _etype1044; + xfer += iprot->readListBegin(_etype1044, _size1041); + this->part_vals.resize(_size1041); + uint32_t _i1045; + for (_i1045 = 0; _i1045 < _size1041; ++_i1045) { - xfer += iprot->readString(this->part_vals[_i1067]); + xfer += iprot->readString(this->part_vals[_i1045]); } xfer += iprot->readListEnd(); } @@ -13297,10 +13297,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 _iter1068; - for (_iter1068 = this->part_vals.begin(); _iter1068 != this->part_vals.end(); ++_iter1068) + std::vector ::const_iterator _iter1046; + for (_iter1046 = this->part_vals.begin(); _iter1046 != this->part_vals.end(); ++_iter1046) { - xfer += oprot->writeString((*_iter1068)); + xfer += oprot->writeString((*_iter1046)); } xfer += oprot->writeListEnd(); } @@ -13332,10 +13332,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 _iter1069; - for (_iter1069 = (*(this->part_vals)).begin(); _iter1069 != (*(this->part_vals)).end(); ++_iter1069) + std::vector ::const_iterator _iter1047; + for (_iter1047 = (*(this->part_vals)).begin(); _iter1047 != (*(this->part_vals)).end(); ++_iter1047) { - xfer += oprot->writeString((*_iter1069)); + xfer += oprot->writeString((*_iter1047)); } xfer += oprot->writeListEnd(); } @@ -13524,17 +13524,17 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size1070; - ::apache::thrift::protocol::TType _ktype1071; - ::apache::thrift::protocol::TType _vtype1072; - xfer += iprot->readMapBegin(_ktype1071, _vtype1072, _size1070); - uint32_t _i1074; - for (_i1074 = 0; _i1074 < _size1070; ++_i1074) + uint32_t _size1048; + ::apache::thrift::protocol::TType _ktype1049; + ::apache::thrift::protocol::TType _vtype1050; + xfer += iprot->readMapBegin(_ktype1049, _vtype1050, _size1048); + uint32_t _i1052; + for (_i1052 = 0; _i1052 < _size1048; ++_i1052) { - std::string _key1075; - xfer += iprot->readString(_key1075); - std::string& _val1076 = this->partitionSpecs[_key1075]; - xfer += iprot->readString(_val1076); + std::string _key1053; + xfer += iprot->readString(_key1053); + std::string& _val1054 = this->partitionSpecs[_key1053]; + xfer += iprot->readString(_val1054); } xfer += iprot->readMapEnd(); } @@ -13595,11 +13595,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 _iter1077; - for (_iter1077 = this->partitionSpecs.begin(); _iter1077 != this->partitionSpecs.end(); ++_iter1077) + std::map ::const_iterator _iter1055; + for (_iter1055 = this->partitionSpecs.begin(); _iter1055 != this->partitionSpecs.end(); ++_iter1055) { - xfer += oprot->writeString(_iter1077->first); - xfer += oprot->writeString(_iter1077->second); + xfer += oprot->writeString(_iter1055->first); + xfer += oprot->writeString(_iter1055->second); } xfer += oprot->writeMapEnd(); } @@ -13639,11 +13639,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 _iter1078; - for (_iter1078 = (*(this->partitionSpecs)).begin(); _iter1078 != (*(this->partitionSpecs)).end(); ++_iter1078) + std::map ::const_iterator _iter1056; + for (_iter1056 = (*(this->partitionSpecs)).begin(); _iter1056 != (*(this->partitionSpecs)).end(); ++_iter1056) { - xfer += oprot->writeString(_iter1078->first); - xfer += oprot->writeString(_iter1078->second); + xfer += oprot->writeString(_iter1056->first); + xfer += oprot->writeString(_iter1056->second); } xfer += oprot->writeMapEnd(); } @@ -13888,17 +13888,17 @@ uint32_t ThriftHiveMetastore_exchange_partitions_args::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size1079; - ::apache::thrift::protocol::TType _ktype1080; - ::apache::thrift::protocol::TType _vtype1081; - xfer += iprot->readMapBegin(_ktype1080, _vtype1081, _size1079); - uint32_t _i1083; - for (_i1083 = 0; _i1083 < _size1079; ++_i1083) + uint32_t _size1057; + ::apache::thrift::protocol::TType _ktype1058; + ::apache::thrift::protocol::TType _vtype1059; + xfer += iprot->readMapBegin(_ktype1058, _vtype1059, _size1057); + uint32_t _i1061; + for (_i1061 = 0; _i1061 < _size1057; ++_i1061) { - std::string _key1084; - xfer += iprot->readString(_key1084); - std::string& _val1085 = this->partitionSpecs[_key1084]; - xfer += iprot->readString(_val1085); + std::string _key1062; + xfer += iprot->readString(_key1062); + std::string& _val1063 = this->partitionSpecs[_key1062]; + xfer += iprot->readString(_val1063); } xfer += iprot->readMapEnd(); } @@ -13959,11 +13959,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 _iter1086; - for (_iter1086 = this->partitionSpecs.begin(); _iter1086 != this->partitionSpecs.end(); ++_iter1086) + std::map ::const_iterator _iter1064; + for (_iter1064 = this->partitionSpecs.begin(); _iter1064 != this->partitionSpecs.end(); ++_iter1064) { - xfer += oprot->writeString(_iter1086->first); - xfer += oprot->writeString(_iter1086->second); + xfer += oprot->writeString(_iter1064->first); + xfer += oprot->writeString(_iter1064->second); } xfer += oprot->writeMapEnd(); } @@ -14003,11 +14003,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 _iter1087; - for (_iter1087 = (*(this->partitionSpecs)).begin(); _iter1087 != (*(this->partitionSpecs)).end(); ++_iter1087) + std::map ::const_iterator _iter1065; + for (_iter1065 = (*(this->partitionSpecs)).begin(); _iter1065 != (*(this->partitionSpecs)).end(); ++_iter1065) { - xfer += oprot->writeString(_iter1087->first); - xfer += oprot->writeString(_iter1087->second); + xfer += oprot->writeString(_iter1065->first); + xfer += oprot->writeString(_iter1065->second); } xfer += oprot->writeMapEnd(); } @@ -14064,14 +14064,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1088; - ::apache::thrift::protocol::TType _etype1091; - xfer += iprot->readListBegin(_etype1091, _size1088); - this->success.resize(_size1088); - uint32_t _i1092; - for (_i1092 = 0; _i1092 < _size1088; ++_i1092) + uint32_t _size1066; + ::apache::thrift::protocol::TType _etype1069; + xfer += iprot->readListBegin(_etype1069, _size1066); + this->success.resize(_size1066); + uint32_t _i1070; + for (_i1070 = 0; _i1070 < _size1066; ++_i1070) { - xfer += this->success[_i1092].read(iprot); + xfer += this->success[_i1070].read(iprot); } xfer += iprot->readListEnd(); } @@ -14134,10 +14134,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 _iter1093; - for (_iter1093 = this->success.begin(); _iter1093 != this->success.end(); ++_iter1093) + std::vector ::const_iterator _iter1071; + for (_iter1071 = this->success.begin(); _iter1071 != this->success.end(); ++_iter1071) { - xfer += (*_iter1093).write(oprot); + xfer += (*_iter1071).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14194,14 +14194,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1094; - ::apache::thrift::protocol::TType _etype1097; - xfer += iprot->readListBegin(_etype1097, _size1094); - (*(this->success)).resize(_size1094); - uint32_t _i1098; - for (_i1098 = 0; _i1098 < _size1094; ++_i1098) + uint32_t _size1072; + ::apache::thrift::protocol::TType _etype1075; + xfer += iprot->readListBegin(_etype1075, _size1072); + (*(this->success)).resize(_size1072); + uint32_t _i1076; + for (_i1076 = 0; _i1076 < _size1072; ++_i1076) { - xfer += (*(this->success))[_i1098].read(iprot); + xfer += (*(this->success))[_i1076].read(iprot); } xfer += iprot->readListEnd(); } @@ -14300,14 +14300,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 _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 _size1077; + ::apache::thrift::protocol::TType _etype1080; + xfer += iprot->readListBegin(_etype1080, _size1077); + this->part_vals.resize(_size1077); + uint32_t _i1081; + for (_i1081 = 0; _i1081 < _size1077; ++_i1081) { - xfer += iprot->readString(this->part_vals[_i1103]); + xfer += iprot->readString(this->part_vals[_i1081]); } xfer += iprot->readListEnd(); } @@ -14328,14 +14328,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 _size1104; - ::apache::thrift::protocol::TType _etype1107; - xfer += iprot->readListBegin(_etype1107, _size1104); - this->group_names.resize(_size1104); - uint32_t _i1108; - for (_i1108 = 0; _i1108 < _size1104; ++_i1108) + uint32_t _size1082; + ::apache::thrift::protocol::TType _etype1085; + xfer += iprot->readListBegin(_etype1085, _size1082); + this->group_names.resize(_size1082); + uint32_t _i1086; + for (_i1086 = 0; _i1086 < _size1082; ++_i1086) { - xfer += iprot->readString(this->group_names[_i1108]); + xfer += iprot->readString(this->group_names[_i1086]); } xfer += iprot->readListEnd(); } @@ -14372,10 +14372,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 _iter1109; - for (_iter1109 = this->part_vals.begin(); _iter1109 != this->part_vals.end(); ++_iter1109) + std::vector ::const_iterator _iter1087; + for (_iter1087 = this->part_vals.begin(); _iter1087 != this->part_vals.end(); ++_iter1087) { - xfer += oprot->writeString((*_iter1109)); + xfer += oprot->writeString((*_iter1087)); } xfer += oprot->writeListEnd(); } @@ -14388,10 +14388,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 _iter1110; - for (_iter1110 = this->group_names.begin(); _iter1110 != this->group_names.end(); ++_iter1110) + std::vector ::const_iterator _iter1088; + for (_iter1088 = this->group_names.begin(); _iter1088 != this->group_names.end(); ++_iter1088) { - xfer += oprot->writeString((*_iter1110)); + xfer += oprot->writeString((*_iter1088)); } xfer += oprot->writeListEnd(); } @@ -14423,10 +14423,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 _iter1111; - for (_iter1111 = (*(this->part_vals)).begin(); _iter1111 != (*(this->part_vals)).end(); ++_iter1111) + std::vector ::const_iterator _iter1089; + for (_iter1089 = (*(this->part_vals)).begin(); _iter1089 != (*(this->part_vals)).end(); ++_iter1089) { - xfer += oprot->writeString((*_iter1111)); + xfer += oprot->writeString((*_iter1089)); } xfer += oprot->writeListEnd(); } @@ -14439,10 +14439,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 _iter1112; - for (_iter1112 = (*(this->group_names)).begin(); _iter1112 != (*(this->group_names)).end(); ++_iter1112) + std::vector ::const_iterator _iter1090; + for (_iter1090 = (*(this->group_names)).begin(); _iter1090 != (*(this->group_names)).end(); ++_iter1090) { - xfer += oprot->writeString((*_iter1112)); + xfer += oprot->writeString((*_iter1090)); } xfer += oprot->writeListEnd(); } @@ -15001,14 +15001,14 @@ uint32_t ThriftHiveMetastore_get_partitions_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1113; - ::apache::thrift::protocol::TType _etype1116; - xfer += iprot->readListBegin(_etype1116, _size1113); - this->success.resize(_size1113); - uint32_t _i1117; - for (_i1117 = 0; _i1117 < _size1113; ++_i1117) + uint32_t _size1091; + ::apache::thrift::protocol::TType _etype1094; + xfer += iprot->readListBegin(_etype1094, _size1091); + this->success.resize(_size1091); + uint32_t _i1095; + for (_i1095 = 0; _i1095 < _size1091; ++_i1095) { - xfer += this->success[_i1117].read(iprot); + xfer += this->success[_i1095].read(iprot); } xfer += iprot->readListEnd(); } @@ -15055,10 +15055,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 _iter1118; - for (_iter1118 = this->success.begin(); _iter1118 != this->success.end(); ++_iter1118) + std::vector ::const_iterator _iter1096; + for (_iter1096 = this->success.begin(); _iter1096 != this->success.end(); ++_iter1096) { - xfer += (*_iter1118).write(oprot); + xfer += (*_iter1096).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15107,14 +15107,14 @@ uint32_t ThriftHiveMetastore_get_partitions_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1119; - ::apache::thrift::protocol::TType _etype1122; - xfer += iprot->readListBegin(_etype1122, _size1119); - (*(this->success)).resize(_size1119); - uint32_t _i1123; - for (_i1123 = 0; _i1123 < _size1119; ++_i1123) + uint32_t _size1097; + ::apache::thrift::protocol::TType _etype1100; + xfer += iprot->readListBegin(_etype1100, _size1097); + (*(this->success)).resize(_size1097); + uint32_t _i1101; + for (_i1101 = 0; _i1101 < _size1097; ++_i1101) { - xfer += (*(this->success))[_i1123].read(iprot); + xfer += (*(this->success))[_i1101].read(iprot); } xfer += iprot->readListEnd(); } @@ -15213,14 +15213,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 _size1124; - ::apache::thrift::protocol::TType _etype1127; - xfer += iprot->readListBegin(_etype1127, _size1124); - this->group_names.resize(_size1124); - uint32_t _i1128; - for (_i1128 = 0; _i1128 < _size1124; ++_i1128) + uint32_t _size1102; + ::apache::thrift::protocol::TType _etype1105; + xfer += iprot->readListBegin(_etype1105, _size1102); + this->group_names.resize(_size1102); + uint32_t _i1106; + for (_i1106 = 0; _i1106 < _size1102; ++_i1106) { - xfer += iprot->readString(this->group_names[_i1128]); + xfer += iprot->readString(this->group_names[_i1106]); } xfer += iprot->readListEnd(); } @@ -15265,10 +15265,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 _iter1129; - for (_iter1129 = this->group_names.begin(); _iter1129 != this->group_names.end(); ++_iter1129) + std::vector ::const_iterator _iter1107; + for (_iter1107 = this->group_names.begin(); _iter1107 != this->group_names.end(); ++_iter1107) { - xfer += oprot->writeString((*_iter1129)); + xfer += oprot->writeString((*_iter1107)); } xfer += oprot->writeListEnd(); } @@ -15308,10 +15308,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 _iter1130; - for (_iter1130 = (*(this->group_names)).begin(); _iter1130 != (*(this->group_names)).end(); ++_iter1130) + std::vector ::const_iterator _iter1108; + for (_iter1108 = (*(this->group_names)).begin(); _iter1108 != (*(this->group_names)).end(); ++_iter1108) { - xfer += oprot->writeString((*_iter1130)); + xfer += oprot->writeString((*_iter1108)); } xfer += oprot->writeListEnd(); } @@ -15352,14 +15352,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1131; - ::apache::thrift::protocol::TType _etype1134; - xfer += iprot->readListBegin(_etype1134, _size1131); - this->success.resize(_size1131); - uint32_t _i1135; - for (_i1135 = 0; _i1135 < _size1131; ++_i1135) + uint32_t _size1109; + ::apache::thrift::protocol::TType _etype1112; + xfer += iprot->readListBegin(_etype1112, _size1109); + this->success.resize(_size1109); + uint32_t _i1113; + for (_i1113 = 0; _i1113 < _size1109; ++_i1113) { - xfer += this->success[_i1135].read(iprot); + xfer += this->success[_i1113].read(iprot); } xfer += iprot->readListEnd(); } @@ -15406,10 +15406,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 _iter1136; - for (_iter1136 = this->success.begin(); _iter1136 != this->success.end(); ++_iter1136) + std::vector ::const_iterator _iter1114; + for (_iter1114 = this->success.begin(); _iter1114 != this->success.end(); ++_iter1114) { - xfer += (*_iter1136).write(oprot); + xfer += (*_iter1114).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15458,14 +15458,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1137; - ::apache::thrift::protocol::TType _etype1140; - xfer += iprot->readListBegin(_etype1140, _size1137); - (*(this->success)).resize(_size1137); - uint32_t _i1141; - for (_i1141 = 0; _i1141 < _size1137; ++_i1141) + uint32_t _size1115; + ::apache::thrift::protocol::TType _etype1118; + xfer += iprot->readListBegin(_etype1118, _size1115); + (*(this->success)).resize(_size1115); + uint32_t _i1119; + for (_i1119 = 0; _i1119 < _size1115; ++_i1119) { - xfer += (*(this->success))[_i1141].read(iprot); + xfer += (*(this->success))[_i1119].read(iprot); } xfer += iprot->readListEnd(); } @@ -15643,14 +15643,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_result::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1142; - ::apache::thrift::protocol::TType _etype1145; - xfer += iprot->readListBegin(_etype1145, _size1142); - this->success.resize(_size1142); - uint32_t _i1146; - for (_i1146 = 0; _i1146 < _size1142; ++_i1146) + uint32_t _size1120; + ::apache::thrift::protocol::TType _etype1123; + xfer += iprot->readListBegin(_etype1123, _size1120); + this->success.resize(_size1120); + uint32_t _i1124; + for (_i1124 = 0; _i1124 < _size1120; ++_i1124) { - xfer += this->success[_i1146].read(iprot); + xfer += this->success[_i1124].read(iprot); } xfer += iprot->readListEnd(); } @@ -15697,10 +15697,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 _iter1147; - for (_iter1147 = this->success.begin(); _iter1147 != this->success.end(); ++_iter1147) + std::vector ::const_iterator _iter1125; + for (_iter1125 = this->success.begin(); _iter1125 != this->success.end(); ++_iter1125) { - xfer += (*_iter1147).write(oprot); + xfer += (*_iter1125).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15749,14 +15749,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_presult::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1148; - ::apache::thrift::protocol::TType _etype1151; - xfer += iprot->readListBegin(_etype1151, _size1148); - (*(this->success)).resize(_size1148); - uint32_t _i1152; - for (_i1152 = 0; _i1152 < _size1148; ++_i1152) + uint32_t _size1126; + ::apache::thrift::protocol::TType _etype1129; + xfer += iprot->readListBegin(_etype1129, _size1126); + (*(this->success)).resize(_size1126); + uint32_t _i1130; + for (_i1130 = 0; _i1130 < _size1126; ++_i1130) { - xfer += (*(this->success))[_i1152].read(iprot); + xfer += (*(this->success))[_i1130].read(iprot); } xfer += iprot->readListEnd(); } @@ -15934,14 +15934,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - 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) + uint32_t _size1131; + ::apache::thrift::protocol::TType _etype1134; + xfer += iprot->readListBegin(_etype1134, _size1131); + this->success.resize(_size1131); + uint32_t _i1135; + for (_i1135 = 0; _i1135 < _size1131; ++_i1135) { - xfer += iprot->readString(this->success[_i1157]); + xfer += iprot->readString(this->success[_i1135]); } xfer += iprot->readListEnd(); } @@ -15980,10 +15980,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 _iter1158; - for (_iter1158 = this->success.begin(); _iter1158 != this->success.end(); ++_iter1158) + std::vector ::const_iterator _iter1136; + for (_iter1136 = this->success.begin(); _iter1136 != this->success.end(); ++_iter1136) { - xfer += oprot->writeString((*_iter1158)); + xfer += oprot->writeString((*_iter1136)); } xfer += oprot->writeListEnd(); } @@ -16028,14 +16028,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - 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) + uint32_t _size1137; + ::apache::thrift::protocol::TType _etype1140; + xfer += iprot->readListBegin(_etype1140, _size1137); + (*(this->success)).resize(_size1137); + uint32_t _i1141; + for (_i1141 = 0; _i1141 < _size1137; ++_i1141) { - xfer += iprot->readString((*(this->success))[_i1163]); + xfer += iprot->readString((*(this->success))[_i1141]); } xfer += iprot->readListEnd(); } @@ -16110,14 +16110,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 _size1164; - ::apache::thrift::protocol::TType _etype1167; - xfer += iprot->readListBegin(_etype1167, _size1164); - this->part_vals.resize(_size1164); - uint32_t _i1168; - for (_i1168 = 0; _i1168 < _size1164; ++_i1168) + uint32_t _size1142; + ::apache::thrift::protocol::TType _etype1145; + xfer += iprot->readListBegin(_etype1145, _size1142); + this->part_vals.resize(_size1142); + uint32_t _i1146; + for (_i1146 = 0; _i1146 < _size1142; ++_i1146) { - xfer += iprot->readString(this->part_vals[_i1168]); + xfer += iprot->readString(this->part_vals[_i1146]); } xfer += iprot->readListEnd(); } @@ -16162,10 +16162,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 _iter1169; - for (_iter1169 = this->part_vals.begin(); _iter1169 != this->part_vals.end(); ++_iter1169) + std::vector ::const_iterator _iter1147; + for (_iter1147 = this->part_vals.begin(); _iter1147 != this->part_vals.end(); ++_iter1147) { - xfer += oprot->writeString((*_iter1169)); + xfer += oprot->writeString((*_iter1147)); } xfer += oprot->writeListEnd(); } @@ -16201,10 +16201,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 _iter1170; - for (_iter1170 = (*(this->part_vals)).begin(); _iter1170 != (*(this->part_vals)).end(); ++_iter1170) + std::vector ::const_iterator _iter1148; + for (_iter1148 = (*(this->part_vals)).begin(); _iter1148 != (*(this->part_vals)).end(); ++_iter1148) { - xfer += oprot->writeString((*_iter1170)); + xfer += oprot->writeString((*_iter1148)); } xfer += oprot->writeListEnd(); } @@ -16249,14 +16249,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - 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) + 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) { - xfer += this->success[_i1175].read(iprot); + xfer += this->success[_i1153].read(iprot); } xfer += iprot->readListEnd(); } @@ -16303,10 +16303,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 _iter1176; - for (_iter1176 = this->success.begin(); _iter1176 != this->success.end(); ++_iter1176) + std::vector ::const_iterator _iter1154; + for (_iter1154 = this->success.begin(); _iter1154 != this->success.end(); ++_iter1154) { - xfer += (*_iter1176).write(oprot); + xfer += (*_iter1154).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16355,14 +16355,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - 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) + 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) { - xfer += (*(this->success))[_i1181].read(iprot); + xfer += (*(this->success))[_i1159].read(iprot); } xfer += iprot->readListEnd(); } @@ -16445,14 +16445,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 _size1182; - ::apache::thrift::protocol::TType _etype1185; - xfer += iprot->readListBegin(_etype1185, _size1182); - this->part_vals.resize(_size1182); - uint32_t _i1186; - for (_i1186 = 0; _i1186 < _size1182; ++_i1186) + uint32_t _size1160; + ::apache::thrift::protocol::TType _etype1163; + xfer += iprot->readListBegin(_etype1163, _size1160); + this->part_vals.resize(_size1160); + uint32_t _i1164; + for (_i1164 = 0; _i1164 < _size1160; ++_i1164) { - xfer += iprot->readString(this->part_vals[_i1186]); + xfer += iprot->readString(this->part_vals[_i1164]); } xfer += iprot->readListEnd(); } @@ -16481,14 +16481,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 _size1187; - ::apache::thrift::protocol::TType _etype1190; - xfer += iprot->readListBegin(_etype1190, _size1187); - this->group_names.resize(_size1187); - uint32_t _i1191; - for (_i1191 = 0; _i1191 < _size1187; ++_i1191) + uint32_t _size1165; + ::apache::thrift::protocol::TType _etype1168; + xfer += iprot->readListBegin(_etype1168, _size1165); + this->group_names.resize(_size1165); + uint32_t _i1169; + for (_i1169 = 0; _i1169 < _size1165; ++_i1169) { - xfer += iprot->readString(this->group_names[_i1191]); + xfer += iprot->readString(this->group_names[_i1169]); } xfer += iprot->readListEnd(); } @@ -16525,10 +16525,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 _iter1192; - for (_iter1192 = this->part_vals.begin(); _iter1192 != this->part_vals.end(); ++_iter1192) + std::vector ::const_iterator _iter1170; + for (_iter1170 = this->part_vals.begin(); _iter1170 != this->part_vals.end(); ++_iter1170) { - xfer += oprot->writeString((*_iter1192)); + xfer += oprot->writeString((*_iter1170)); } xfer += oprot->writeListEnd(); } @@ -16545,10 +16545,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 _iter1193; - for (_iter1193 = this->group_names.begin(); _iter1193 != this->group_names.end(); ++_iter1193) + std::vector ::const_iterator _iter1171; + for (_iter1171 = this->group_names.begin(); _iter1171 != this->group_names.end(); ++_iter1171) { - xfer += oprot->writeString((*_iter1193)); + xfer += oprot->writeString((*_iter1171)); } xfer += oprot->writeListEnd(); } @@ -16580,10 +16580,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 _iter1194; - for (_iter1194 = (*(this->part_vals)).begin(); _iter1194 != (*(this->part_vals)).end(); ++_iter1194) + std::vector ::const_iterator _iter1172; + for (_iter1172 = (*(this->part_vals)).begin(); _iter1172 != (*(this->part_vals)).end(); ++_iter1172) { - xfer += oprot->writeString((*_iter1194)); + xfer += oprot->writeString((*_iter1172)); } xfer += oprot->writeListEnd(); } @@ -16600,10 +16600,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 _iter1195; - for (_iter1195 = (*(this->group_names)).begin(); _iter1195 != (*(this->group_names)).end(); ++_iter1195) + std::vector ::const_iterator _iter1173; + for (_iter1173 = (*(this->group_names)).begin(); _iter1173 != (*(this->group_names)).end(); ++_iter1173) { - xfer += oprot->writeString((*_iter1195)); + xfer += oprot->writeString((*_iter1173)); } xfer += oprot->writeListEnd(); } @@ -16644,14 +16644,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1196; - ::apache::thrift::protocol::TType _etype1199; - xfer += iprot->readListBegin(_etype1199, _size1196); - this->success.resize(_size1196); - uint32_t _i1200; - for (_i1200 = 0; _i1200 < _size1196; ++_i1200) + uint32_t _size1174; + ::apache::thrift::protocol::TType _etype1177; + xfer += iprot->readListBegin(_etype1177, _size1174); + this->success.resize(_size1174); + uint32_t _i1178; + for (_i1178 = 0; _i1178 < _size1174; ++_i1178) { - xfer += this->success[_i1200].read(iprot); + xfer += this->success[_i1178].read(iprot); } xfer += iprot->readListEnd(); } @@ -16698,10 +16698,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 _iter1201; - for (_iter1201 = this->success.begin(); _iter1201 != this->success.end(); ++_iter1201) + std::vector ::const_iterator _iter1179; + for (_iter1179 = this->success.begin(); _iter1179 != this->success.end(); ++_iter1179) { - xfer += (*_iter1201).write(oprot); + xfer += (*_iter1179).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16750,14 +16750,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_presult::read(::apache: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1202; - ::apache::thrift::protocol::TType _etype1205; - xfer += iprot->readListBegin(_etype1205, _size1202); - (*(this->success)).resize(_size1202); - uint32_t _i1206; - for (_i1206 = 0; _i1206 < _size1202; ++_i1206) + uint32_t _size1180; + ::apache::thrift::protocol::TType _etype1183; + xfer += iprot->readListBegin(_etype1183, _size1180); + (*(this->success)).resize(_size1180); + uint32_t _i1184; + for (_i1184 = 0; _i1184 < _size1180; ++_i1184) { - xfer += (*(this->success))[_i1206].read(iprot); + xfer += (*(this->success))[_i1184].read(iprot); } xfer += iprot->readListEnd(); } @@ -16840,14 +16840,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 _size1207; - ::apache::thrift::protocol::TType _etype1210; - xfer += iprot->readListBegin(_etype1210, _size1207); - this->part_vals.resize(_size1207); - uint32_t _i1211; - for (_i1211 = 0; _i1211 < _size1207; ++_i1211) + uint32_t _size1185; + ::apache::thrift::protocol::TType _etype1188; + xfer += iprot->readListBegin(_etype1188, _size1185); + this->part_vals.resize(_size1185); + uint32_t _i1189; + for (_i1189 = 0; _i1189 < _size1185; ++_i1189) { - xfer += iprot->readString(this->part_vals[_i1211]); + xfer += iprot->readString(this->part_vals[_i1189]); } xfer += iprot->readListEnd(); } @@ -16892,10 +16892,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 _iter1212; - for (_iter1212 = this->part_vals.begin(); _iter1212 != this->part_vals.end(); ++_iter1212) + std::vector ::const_iterator _iter1190; + for (_iter1190 = this->part_vals.begin(); _iter1190 != this->part_vals.end(); ++_iter1190) { - xfer += oprot->writeString((*_iter1212)); + xfer += oprot->writeString((*_iter1190)); } xfer += oprot->writeListEnd(); } @@ -16931,10 +16931,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 _iter1213; - for (_iter1213 = (*(this->part_vals)).begin(); _iter1213 != (*(this->part_vals)).end(); ++_iter1213) + std::vector ::const_iterator _iter1191; + for (_iter1191 = (*(this->part_vals)).begin(); _iter1191 != (*(this->part_vals)).end(); ++_iter1191) { - xfer += oprot->writeString((*_iter1213)); + xfer += oprot->writeString((*_iter1191)); } xfer += oprot->writeListEnd(); } @@ -16979,14 +16979,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1214; - ::apache::thrift::protocol::TType _etype1217; - xfer += iprot->readListBegin(_etype1217, _size1214); - this->success.resize(_size1214); - uint32_t _i1218; - for (_i1218 = 0; _i1218 < _size1214; ++_i1218) + uint32_t _size1192; + ::apache::thrift::protocol::TType _etype1195; + xfer += iprot->readListBegin(_etype1195, _size1192); + this->success.resize(_size1192); + uint32_t _i1196; + for (_i1196 = 0; _i1196 < _size1192; ++_i1196) { - xfer += iprot->readString(this->success[_i1218]); + xfer += iprot->readString(this->success[_i1196]); } xfer += iprot->readListEnd(); } @@ -17033,10 +17033,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 _iter1219; - for (_iter1219 = this->success.begin(); _iter1219 != this->success.end(); ++_iter1219) + std::vector ::const_iterator _iter1197; + for (_iter1197 = this->success.begin(); _iter1197 != this->success.end(); ++_iter1197) { - xfer += oprot->writeString((*_iter1219)); + xfer += oprot->writeString((*_iter1197)); } xfer += oprot->writeListEnd(); } @@ -17085,14 +17085,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1220; - ::apache::thrift::protocol::TType _etype1223; - xfer += iprot->readListBegin(_etype1223, _size1220); - (*(this->success)).resize(_size1220); - uint32_t _i1224; - for (_i1224 = 0; _i1224 < _size1220; ++_i1224) + uint32_t _size1198; + ::apache::thrift::protocol::TType _etype1201; + xfer += iprot->readListBegin(_etype1201, _size1198); + (*(this->success)).resize(_size1198); + uint32_t _i1202; + for (_i1202 = 0; _i1202 < _size1198; ++_i1202) { - xfer += iprot->readString((*(this->success))[_i1224]); + xfer += iprot->readString((*(this->success))[_i1202]); } xfer += iprot->readListEnd(); } @@ -17286,14 +17286,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1225; - ::apache::thrift::protocol::TType _etype1228; - xfer += iprot->readListBegin(_etype1228, _size1225); - this->success.resize(_size1225); - uint32_t _i1229; - for (_i1229 = 0; _i1229 < _size1225; ++_i1229) + uint32_t _size1203; + ::apache::thrift::protocol::TType _etype1206; + xfer += iprot->readListBegin(_etype1206, _size1203); + this->success.resize(_size1203); + uint32_t _i1207; + for (_i1207 = 0; _i1207 < _size1203; ++_i1207) { - xfer += this->success[_i1229].read(iprot); + xfer += this->success[_i1207].read(iprot); } xfer += iprot->readListEnd(); } @@ -17340,10 +17340,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 _iter1230; - for (_iter1230 = this->success.begin(); _iter1230 != this->success.end(); ++_iter1230) + std::vector ::const_iterator _iter1208; + for (_iter1208 = this->success.begin(); _iter1208 != this->success.end(); ++_iter1208) { - xfer += (*_iter1230).write(oprot); + xfer += (*_iter1208).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17392,14 +17392,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1231; - ::apache::thrift::protocol::TType _etype1234; - xfer += iprot->readListBegin(_etype1234, _size1231); - (*(this->success)).resize(_size1231); - uint32_t _i1235; - for (_i1235 = 0; _i1235 < _size1231; ++_i1235) + uint32_t _size1209; + ::apache::thrift::protocol::TType _etype1212; + xfer += iprot->readListBegin(_etype1212, _size1209); + (*(this->success)).resize(_size1209); + uint32_t _i1213; + for (_i1213 = 0; _i1213 < _size1209; ++_i1213) { - xfer += (*(this->success))[_i1235].read(iprot); + xfer += (*(this->success))[_i1213].read(iprot); } xfer += iprot->readListEnd(); } @@ -17593,14 +17593,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 _size1236; - ::apache::thrift::protocol::TType _etype1239; - xfer += iprot->readListBegin(_etype1239, _size1236); - this->success.resize(_size1236); - uint32_t _i1240; - for (_i1240 = 0; _i1240 < _size1236; ++_i1240) + uint32_t _size1214; + ::apache::thrift::protocol::TType _etype1217; + xfer += iprot->readListBegin(_etype1217, _size1214); + this->success.resize(_size1214); + uint32_t _i1218; + for (_i1218 = 0; _i1218 < _size1214; ++_i1218) { - xfer += this->success[_i1240].read(iprot); + xfer += this->success[_i1218].read(iprot); } xfer += iprot->readListEnd(); } @@ -17647,10 +17647,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 _iter1241; - for (_iter1241 = this->success.begin(); _iter1241 != this->success.end(); ++_iter1241) + std::vector ::const_iterator _iter1219; + for (_iter1219 = this->success.begin(); _iter1219 != this->success.end(); ++_iter1219) { - xfer += (*_iter1241).write(oprot); + xfer += (*_iter1219).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17699,14 +17699,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 _size1242; - ::apache::thrift::protocol::TType _etype1245; - xfer += iprot->readListBegin(_etype1245, _size1242); - (*(this->success)).resize(_size1242); - uint32_t _i1246; - for (_i1246 = 0; _i1246 < _size1242; ++_i1246) + uint32_t _size1220; + ::apache::thrift::protocol::TType _etype1223; + xfer += iprot->readListBegin(_etype1223, _size1220); + (*(this->success)).resize(_size1220); + uint32_t _i1224; + for (_i1224 = 0; _i1224 < _size1220; ++_i1224) { - xfer += (*(this->success))[_i1246].read(iprot); + xfer += (*(this->success))[_i1224].read(iprot); } xfer += iprot->readListEnd(); } @@ -18275,14 +18275,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size1247; - ::apache::thrift::protocol::TType _etype1250; - xfer += iprot->readListBegin(_etype1250, _size1247); - this->names.resize(_size1247); - uint32_t _i1251; - for (_i1251 = 0; _i1251 < _size1247; ++_i1251) + uint32_t _size1225; + ::apache::thrift::protocol::TType _etype1228; + xfer += iprot->readListBegin(_etype1228, _size1225); + this->names.resize(_size1225); + uint32_t _i1229; + for (_i1229 = 0; _i1229 < _size1225; ++_i1229) { - xfer += iprot->readString(this->names[_i1251]); + xfer += iprot->readString(this->names[_i1229]); } xfer += iprot->readListEnd(); } @@ -18319,10 +18319,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 _iter1252; - for (_iter1252 = this->names.begin(); _iter1252 != this->names.end(); ++_iter1252) + std::vector ::const_iterator _iter1230; + for (_iter1230 = this->names.begin(); _iter1230 != this->names.end(); ++_iter1230) { - xfer += oprot->writeString((*_iter1252)); + xfer += oprot->writeString((*_iter1230)); } xfer += oprot->writeListEnd(); } @@ -18354,10 +18354,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 _iter1253; - for (_iter1253 = (*(this->names)).begin(); _iter1253 != (*(this->names)).end(); ++_iter1253) + std::vector ::const_iterator _iter1231; + for (_iter1231 = (*(this->names)).begin(); _iter1231 != (*(this->names)).end(); ++_iter1231) { - xfer += oprot->writeString((*_iter1253)); + xfer += oprot->writeString((*_iter1231)); } xfer += oprot->writeListEnd(); } @@ -18398,14 +18398,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1254; - ::apache::thrift::protocol::TType _etype1257; - xfer += iprot->readListBegin(_etype1257, _size1254); - this->success.resize(_size1254); - uint32_t _i1258; - for (_i1258 = 0; _i1258 < _size1254; ++_i1258) + uint32_t _size1232; + ::apache::thrift::protocol::TType _etype1235; + xfer += iprot->readListBegin(_etype1235, _size1232); + this->success.resize(_size1232); + uint32_t _i1236; + for (_i1236 = 0; _i1236 < _size1232; ++_i1236) { - xfer += this->success[_i1258].read(iprot); + xfer += this->success[_i1236].read(iprot); } xfer += iprot->readListEnd(); } @@ -18452,10 +18452,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 _iter1259; - for (_iter1259 = this->success.begin(); _iter1259 != this->success.end(); ++_iter1259) + std::vector ::const_iterator _iter1237; + for (_iter1237 = this->success.begin(); _iter1237 != this->success.end(); ++_iter1237) { - xfer += (*_iter1259).write(oprot); + xfer += (*_iter1237).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18504,14 +18504,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_presult::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - 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) + 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) { - xfer += (*(this->success))[_i1264].read(iprot); + xfer += (*(this->success))[_i1242].read(iprot); } xfer += iprot->readListEnd(); } @@ -18833,14 +18833,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1265; - ::apache::thrift::protocol::TType _etype1268; - xfer += iprot->readListBegin(_etype1268, _size1265); - this->new_parts.resize(_size1265); - uint32_t _i1269; - for (_i1269 = 0; _i1269 < _size1265; ++_i1269) + uint32_t _size1243; + ::apache::thrift::protocol::TType _etype1246; + xfer += iprot->readListBegin(_etype1246, _size1243); + this->new_parts.resize(_size1243); + uint32_t _i1247; + for (_i1247 = 0; _i1247 < _size1243; ++_i1247) { - xfer += this->new_parts[_i1269].read(iprot); + xfer += this->new_parts[_i1247].read(iprot); } xfer += iprot->readListEnd(); } @@ -18877,10 +18877,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 _iter1270; - for (_iter1270 = this->new_parts.begin(); _iter1270 != this->new_parts.end(); ++_iter1270) + std::vector ::const_iterator _iter1248; + for (_iter1248 = this->new_parts.begin(); _iter1248 != this->new_parts.end(); ++_iter1248) { - xfer += (*_iter1270).write(oprot); + xfer += (*_iter1248).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18912,10 +18912,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 _iter1271; - for (_iter1271 = (*(this->new_parts)).begin(); _iter1271 != (*(this->new_parts)).end(); ++_iter1271) + std::vector ::const_iterator _iter1249; + for (_iter1249 = (*(this->new_parts)).begin(); _iter1249 != (*(this->new_parts)).end(); ++_iter1249) { - xfer += (*_iter1271).write(oprot); + xfer += (*_iter1249).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19100,14 +19100,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_with_environment_context_args::rea if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1272; - ::apache::thrift::protocol::TType _etype1275; - xfer += iprot->readListBegin(_etype1275, _size1272); - this->new_parts.resize(_size1272); - uint32_t _i1276; - for (_i1276 = 0; _i1276 < _size1272; ++_i1276) + uint32_t _size1250; + ::apache::thrift::protocol::TType _etype1253; + xfer += iprot->readListBegin(_etype1253, _size1250); + this->new_parts.resize(_size1250); + uint32_t _i1254; + for (_i1254 = 0; _i1254 < _size1250; ++_i1254) { - xfer += this->new_parts[_i1276].read(iprot); + xfer += this->new_parts[_i1254].read(iprot); } xfer += iprot->readListEnd(); } @@ -19152,10 +19152,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 _iter1277; - for (_iter1277 = this->new_parts.begin(); _iter1277 != this->new_parts.end(); ++_iter1277) + std::vector ::const_iterator _iter1255; + for (_iter1255 = this->new_parts.begin(); _iter1255 != this->new_parts.end(); ++_iter1255) { - xfer += (*_iter1277).write(oprot); + xfer += (*_iter1255).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19191,10 +19191,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 _iter1278; - for (_iter1278 = (*(this->new_parts)).begin(); _iter1278 != (*(this->new_parts)).end(); ++_iter1278) + std::vector ::const_iterator _iter1256; + for (_iter1256 = (*(this->new_parts)).begin(); _iter1256 != (*(this->new_parts)).end(); ++_iter1256) { - xfer += (*_iter1278).write(oprot); + xfer += (*_iter1256).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19638,14 +19638,14 @@ uint32_t ThriftHiveMetastore_rename_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1279; - ::apache::thrift::protocol::TType _etype1282; - xfer += iprot->readListBegin(_etype1282, _size1279); - this->part_vals.resize(_size1279); - uint32_t _i1283; - for (_i1283 = 0; _i1283 < _size1279; ++_i1283) + uint32_t _size1257; + ::apache::thrift::protocol::TType _etype1260; + xfer += iprot->readListBegin(_etype1260, _size1257); + this->part_vals.resize(_size1257); + uint32_t _i1261; + for (_i1261 = 0; _i1261 < _size1257; ++_i1261) { - xfer += iprot->readString(this->part_vals[_i1283]); + xfer += iprot->readString(this->part_vals[_i1261]); } xfer += iprot->readListEnd(); } @@ -19690,10 +19690,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 _iter1284; - for (_iter1284 = this->part_vals.begin(); _iter1284 != this->part_vals.end(); ++_iter1284) + std::vector ::const_iterator _iter1262; + for (_iter1262 = this->part_vals.begin(); _iter1262 != this->part_vals.end(); ++_iter1262) { - xfer += oprot->writeString((*_iter1284)); + xfer += oprot->writeString((*_iter1262)); } xfer += oprot->writeListEnd(); } @@ -19729,10 +19729,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 _iter1285; - for (_iter1285 = (*(this->part_vals)).begin(); _iter1285 != (*(this->part_vals)).end(); ++_iter1285) + std::vector ::const_iterator _iter1263; + for (_iter1263 = (*(this->part_vals)).begin(); _iter1263 != (*(this->part_vals)).end(); ++_iter1263) { - xfer += oprot->writeString((*_iter1285)); + xfer += oprot->writeString((*_iter1263)); } xfer += oprot->writeListEnd(); } @@ -19905,14 +19905,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 _size1286; - ::apache::thrift::protocol::TType _etype1289; - xfer += iprot->readListBegin(_etype1289, _size1286); - this->part_vals.resize(_size1286); - uint32_t _i1290; - for (_i1290 = 0; _i1290 < _size1286; ++_i1290) + uint32_t _size1264; + ::apache::thrift::protocol::TType _etype1267; + xfer += iprot->readListBegin(_etype1267, _size1264); + this->part_vals.resize(_size1264); + uint32_t _i1268; + for (_i1268 = 0; _i1268 < _size1264; ++_i1268) { - xfer += iprot->readString(this->part_vals[_i1290]); + xfer += iprot->readString(this->part_vals[_i1268]); } xfer += iprot->readListEnd(); } @@ -19949,10 +19949,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 _iter1291; - for (_iter1291 = this->part_vals.begin(); _iter1291 != this->part_vals.end(); ++_iter1291) + std::vector ::const_iterator _iter1269; + for (_iter1269 = this->part_vals.begin(); _iter1269 != this->part_vals.end(); ++_iter1269) { - xfer += oprot->writeString((*_iter1291)); + xfer += oprot->writeString((*_iter1269)); } xfer += oprot->writeListEnd(); } @@ -19980,10 +19980,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 _iter1292; - for (_iter1292 = (*(this->part_vals)).begin(); _iter1292 != (*(this->part_vals)).end(); ++_iter1292) + std::vector ::const_iterator _iter1270; + for (_iter1270 = (*(this->part_vals)).begin(); _iter1270 != (*(this->part_vals)).end(); ++_iter1270) { - xfer += oprot->writeString((*_iter1292)); + xfer += oprot->writeString((*_iter1270)); } xfer += oprot->writeListEnd(); } @@ -20458,14 +20458,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1293; - ::apache::thrift::protocol::TType _etype1296; - xfer += iprot->readListBegin(_etype1296, _size1293); - this->success.resize(_size1293); - uint32_t _i1297; - for (_i1297 = 0; _i1297 < _size1293; ++_i1297) + 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 += iprot->readString(this->success[_i1297]); + xfer += iprot->readString(this->success[_i1275]); } xfer += iprot->readListEnd(); } @@ -20504,10 +20504,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 _iter1298; - for (_iter1298 = this->success.begin(); _iter1298 != this->success.end(); ++_iter1298) + std::vector ::const_iterator _iter1276; + for (_iter1276 = this->success.begin(); _iter1276 != this->success.end(); ++_iter1276) { - xfer += oprot->writeString((*_iter1298)); + xfer += oprot->writeString((*_iter1276)); } xfer += oprot->writeListEnd(); } @@ -20552,14 +20552,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1299; - ::apache::thrift::protocol::TType _etype1302; - xfer += iprot->readListBegin(_etype1302, _size1299); - (*(this->success)).resize(_size1299); - uint32_t _i1303; - for (_i1303 = 0; _i1303 < _size1299; ++_i1303) + uint32_t _size1277; + ::apache::thrift::protocol::TType _etype1280; + xfer += iprot->readListBegin(_etype1280, _size1277); + (*(this->success)).resize(_size1277); + uint32_t _i1281; + for (_i1281 = 0; _i1281 < _size1277; ++_i1281) { - xfer += iprot->readString((*(this->success))[_i1303]); + xfer += iprot->readString((*(this->success))[_i1281]); } xfer += iprot->readListEnd(); } @@ -20697,17 +20697,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size1304; - ::apache::thrift::protocol::TType _ktype1305; - ::apache::thrift::protocol::TType _vtype1306; - xfer += iprot->readMapBegin(_ktype1305, _vtype1306, _size1304); - uint32_t _i1308; - for (_i1308 = 0; _i1308 < _size1304; ++_i1308) + uint32_t _size1282; + ::apache::thrift::protocol::TType _ktype1283; + ::apache::thrift::protocol::TType _vtype1284; + xfer += iprot->readMapBegin(_ktype1283, _vtype1284, _size1282); + uint32_t _i1286; + for (_i1286 = 0; _i1286 < _size1282; ++_i1286) { - std::string _key1309; - xfer += iprot->readString(_key1309); - std::string& _val1310 = this->success[_key1309]; - xfer += iprot->readString(_val1310); + std::string _key1287; + xfer += iprot->readString(_key1287); + std::string& _val1288 = this->success[_key1287]; + xfer += iprot->readString(_val1288); } xfer += iprot->readMapEnd(); } @@ -20746,11 +20746,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 _iter1311; - for (_iter1311 = this->success.begin(); _iter1311 != this->success.end(); ++_iter1311) + std::map ::const_iterator _iter1289; + for (_iter1289 = this->success.begin(); _iter1289 != this->success.end(); ++_iter1289) { - xfer += oprot->writeString(_iter1311->first); - xfer += oprot->writeString(_iter1311->second); + xfer += oprot->writeString(_iter1289->first); + xfer += oprot->writeString(_iter1289->second); } xfer += oprot->writeMapEnd(); } @@ -20795,17 +20795,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size1312; - ::apache::thrift::protocol::TType _ktype1313; - ::apache::thrift::protocol::TType _vtype1314; - xfer += iprot->readMapBegin(_ktype1313, _vtype1314, _size1312); - uint32_t _i1316; - for (_i1316 = 0; _i1316 < _size1312; ++_i1316) + uint32_t _size1290; + ::apache::thrift::protocol::TType _ktype1291; + ::apache::thrift::protocol::TType _vtype1292; + xfer += iprot->readMapBegin(_ktype1291, _vtype1292, _size1290); + uint32_t _i1294; + for (_i1294 = 0; _i1294 < _size1290; ++_i1294) { - std::string _key1317; - xfer += iprot->readString(_key1317); - std::string& _val1318 = (*(this->success))[_key1317]; - xfer += iprot->readString(_val1318); + std::string _key1295; + xfer += iprot->readString(_key1295); + std::string& _val1296 = (*(this->success))[_key1295]; + xfer += iprot->readString(_val1296); } xfer += iprot->readMapEnd(); } @@ -20880,17 +20880,17 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1319; - ::apache::thrift::protocol::TType _ktype1320; - ::apache::thrift::protocol::TType _vtype1321; - xfer += iprot->readMapBegin(_ktype1320, _vtype1321, _size1319); - uint32_t _i1323; - for (_i1323 = 0; _i1323 < _size1319; ++_i1323) + uint32_t _size1297; + ::apache::thrift::protocol::TType _ktype1298; + ::apache::thrift::protocol::TType _vtype1299; + xfer += iprot->readMapBegin(_ktype1298, _vtype1299, _size1297); + uint32_t _i1301; + for (_i1301 = 0; _i1301 < _size1297; ++_i1301) { - std::string _key1324; - xfer += iprot->readString(_key1324); - std::string& _val1325 = this->part_vals[_key1324]; - xfer += iprot->readString(_val1325); + std::string _key1302; + xfer += iprot->readString(_key1302); + std::string& _val1303 = this->part_vals[_key1302]; + xfer += iprot->readString(_val1303); } xfer += iprot->readMapEnd(); } @@ -20901,9 +20901,9 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1326; - xfer += iprot->readI32(ecast1326); - this->eventType = (PartitionEventType::type)ecast1326; + int32_t ecast1304; + xfer += iprot->readI32(ecast1304); + this->eventType = (PartitionEventType::type)ecast1304; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -20937,11 +20937,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 _iter1327; - for (_iter1327 = this->part_vals.begin(); _iter1327 != this->part_vals.end(); ++_iter1327) + std::map ::const_iterator _iter1305; + for (_iter1305 = this->part_vals.begin(); _iter1305 != this->part_vals.end(); ++_iter1305) { - xfer += oprot->writeString(_iter1327->first); - xfer += oprot->writeString(_iter1327->second); + xfer += oprot->writeString(_iter1305->first); + xfer += oprot->writeString(_iter1305->second); } xfer += oprot->writeMapEnd(); } @@ -20977,11 +20977,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 _iter1328; - for (_iter1328 = (*(this->part_vals)).begin(); _iter1328 != (*(this->part_vals)).end(); ++_iter1328) + std::map ::const_iterator _iter1306; + for (_iter1306 = (*(this->part_vals)).begin(); _iter1306 != (*(this->part_vals)).end(); ++_iter1306) { - xfer += oprot->writeString(_iter1328->first); - xfer += oprot->writeString(_iter1328->second); + xfer += oprot->writeString(_iter1306->first); + xfer += oprot->writeString(_iter1306->second); } xfer += oprot->writeMapEnd(); } @@ -21250,17 +21250,17 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1329; - ::apache::thrift::protocol::TType _ktype1330; - ::apache::thrift::protocol::TType _vtype1331; - xfer += iprot->readMapBegin(_ktype1330, _vtype1331, _size1329); - uint32_t _i1333; - for (_i1333 = 0; _i1333 < _size1329; ++_i1333) + uint32_t _size1307; + ::apache::thrift::protocol::TType _ktype1308; + ::apache::thrift::protocol::TType _vtype1309; + xfer += iprot->readMapBegin(_ktype1308, _vtype1309, _size1307); + uint32_t _i1311; + for (_i1311 = 0; _i1311 < _size1307; ++_i1311) { - std::string _key1334; - xfer += iprot->readString(_key1334); - std::string& _val1335 = this->part_vals[_key1334]; - xfer += iprot->readString(_val1335); + std::string _key1312; + xfer += iprot->readString(_key1312); + std::string& _val1313 = this->part_vals[_key1312]; + xfer += iprot->readString(_val1313); } xfer += iprot->readMapEnd(); } @@ -21271,9 +21271,9 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1336; - xfer += iprot->readI32(ecast1336); - this->eventType = (PartitionEventType::type)ecast1336; + int32_t ecast1314; + xfer += iprot->readI32(ecast1314); + this->eventType = (PartitionEventType::type)ecast1314; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -21307,11 +21307,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 _iter1337; - for (_iter1337 = this->part_vals.begin(); _iter1337 != this->part_vals.end(); ++_iter1337) + std::map ::const_iterator _iter1315; + for (_iter1315 = this->part_vals.begin(); _iter1315 != this->part_vals.end(); ++_iter1315) { - xfer += oprot->writeString(_iter1337->first); - xfer += oprot->writeString(_iter1337->second); + xfer += oprot->writeString(_iter1315->first); + xfer += oprot->writeString(_iter1315->second); } xfer += oprot->writeMapEnd(); } @@ -21347,11 +21347,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 _iter1338; - for (_iter1338 = (*(this->part_vals)).begin(); _iter1338 != (*(this->part_vals)).end(); ++_iter1338) + std::map ::const_iterator _iter1316; + for (_iter1316 = (*(this->part_vals)).begin(); _iter1316 != (*(this->part_vals)).end(); ++_iter1316) { - xfer += oprot->writeString(_iter1338->first); - xfer += oprot->writeString(_iter1338->second); + xfer += oprot->writeString(_iter1316->first); + xfer += oprot->writeString(_iter1316->second); } xfer += oprot->writeMapEnd(); } @@ -22787,14 +22787,14 @@ uint32_t ThriftHiveMetastore_get_indexes_result::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1339; - ::apache::thrift::protocol::TType _etype1342; - xfer += iprot->readListBegin(_etype1342, _size1339); - this->success.resize(_size1339); - uint32_t _i1343; - for (_i1343 = 0; _i1343 < _size1339; ++_i1343) + uint32_t _size1317; + ::apache::thrift::protocol::TType _etype1320; + xfer += iprot->readListBegin(_etype1320, _size1317); + this->success.resize(_size1317); + uint32_t _i1321; + for (_i1321 = 0; _i1321 < _size1317; ++_i1321) { - xfer += this->success[_i1343].read(iprot); + xfer += this->success[_i1321].read(iprot); } xfer += iprot->readListEnd(); } @@ -22841,10 +22841,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 _iter1344; - for (_iter1344 = this->success.begin(); _iter1344 != this->success.end(); ++_iter1344) + std::vector ::const_iterator _iter1322; + for (_iter1322 = this->success.begin(); _iter1322 != this->success.end(); ++_iter1322) { - xfer += (*_iter1344).write(oprot); + xfer += (*_iter1322).write(oprot); } xfer += oprot->writeListEnd(); } @@ -22893,14 +22893,14 @@ uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1345; - ::apache::thrift::protocol::TType _etype1348; - xfer += iprot->readListBegin(_etype1348, _size1345); - (*(this->success)).resize(_size1345); - uint32_t _i1349; - for (_i1349 = 0; _i1349 < _size1345; ++_i1349) + uint32_t _size1323; + ::apache::thrift::protocol::TType _etype1326; + xfer += iprot->readListBegin(_etype1326, _size1323); + (*(this->success)).resize(_size1323); + uint32_t _i1327; + for (_i1327 = 0; _i1327 < _size1323; ++_i1327) { - xfer += (*(this->success))[_i1349].read(iprot); + xfer += (*(this->success))[_i1327].read(iprot); } xfer += iprot->readListEnd(); } @@ -23078,14 +23078,14 @@ uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1350; - ::apache::thrift::protocol::TType _etype1353; - xfer += iprot->readListBegin(_etype1353, _size1350); - this->success.resize(_size1350); - uint32_t _i1354; - for (_i1354 = 0; _i1354 < _size1350; ++_i1354) + uint32_t _size1328; + ::apache::thrift::protocol::TType _etype1331; + xfer += iprot->readListBegin(_etype1331, _size1328); + this->success.resize(_size1328); + uint32_t _i1332; + for (_i1332 = 0; _i1332 < _size1328; ++_i1332) { - xfer += iprot->readString(this->success[_i1354]); + xfer += iprot->readString(this->success[_i1332]); } xfer += iprot->readListEnd(); } @@ -23124,10 +23124,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 _iter1355; - for (_iter1355 = this->success.begin(); _iter1355 != this->success.end(); ++_iter1355) + std::vector ::const_iterator _iter1333; + for (_iter1333 = this->success.begin(); _iter1333 != this->success.end(); ++_iter1333) { - xfer += oprot->writeString((*_iter1355)); + xfer += oprot->writeString((*_iter1333)); } xfer += oprot->writeListEnd(); } @@ -23172,14 +23172,14 @@ uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1356; - ::apache::thrift::protocol::TType _etype1359; - xfer += iprot->readListBegin(_etype1359, _size1356); - (*(this->success)).resize(_size1356); - uint32_t _i1360; - for (_i1360 = 0; _i1360 < _size1356; ++_i1360) + uint32_t _size1334; + ::apache::thrift::protocol::TType _etype1337; + xfer += iprot->readListBegin(_etype1337, _size1334); + (*(this->success)).resize(_size1334); + uint32_t _i1338; + for (_i1338 = 0; _i1338 < _size1334; ++_i1338) { - xfer += iprot->readString((*(this->success))[_i1360]); + xfer += iprot->readString((*(this->success))[_i1338]); } xfer += iprot->readListEnd(); } @@ -27206,14 +27206,14 @@ uint32_t ThriftHiveMetastore_get_functions_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1361; - ::apache::thrift::protocol::TType _etype1364; - xfer += iprot->readListBegin(_etype1364, _size1361); - this->success.resize(_size1361); - uint32_t _i1365; - for (_i1365 = 0; _i1365 < _size1361; ++_i1365) + uint32_t _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[_i1365]); + xfer += iprot->readString(this->success[_i1343]); } xfer += iprot->readListEnd(); } @@ -27252,10 +27252,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 _iter1366; - for (_iter1366 = this->success.begin(); _iter1366 != this->success.end(); ++_iter1366) + std::vector ::const_iterator _iter1344; + for (_iter1344 = this->success.begin(); _iter1344 != this->success.end(); ++_iter1344) { - xfer += oprot->writeString((*_iter1366)); + xfer += oprot->writeString((*_iter1344)); } xfer += oprot->writeListEnd(); } @@ -27300,14 +27300,14 @@ uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1367; - ::apache::thrift::protocol::TType _etype1370; - xfer += iprot->readListBegin(_etype1370, _size1367); - (*(this->success)).resize(_size1367); - uint32_t _i1371; - for (_i1371 = 0; _i1371 < _size1367; ++_i1371) + uint32_t _size1345; + ::apache::thrift::protocol::TType _etype1348; + xfer += iprot->readListBegin(_etype1348, _size1345); + (*(this->success)).resize(_size1345); + uint32_t _i1349; + for (_i1349 = 0; _i1349 < _size1345; ++_i1349) { - xfer += iprot->readString((*(this->success))[_i1371]); + xfer += iprot->readString((*(this->success))[_i1349]); } xfer += iprot->readListEnd(); } @@ -28267,14 +28267,14 @@ uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1372; - ::apache::thrift::protocol::TType _etype1375; - xfer += iprot->readListBegin(_etype1375, _size1372); - this->success.resize(_size1372); - uint32_t _i1376; - for (_i1376 = 0; _i1376 < _size1372; ++_i1376) + uint32_t _size1350; + ::apache::thrift::protocol::TType _etype1353; + xfer += iprot->readListBegin(_etype1353, _size1350); + this->success.resize(_size1350); + uint32_t _i1354; + for (_i1354 = 0; _i1354 < _size1350; ++_i1354) { - xfer += iprot->readString(this->success[_i1376]); + xfer += iprot->readString(this->success[_i1354]); } xfer += iprot->readListEnd(); } @@ -28313,10 +28313,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 _iter1377; - for (_iter1377 = this->success.begin(); _iter1377 != this->success.end(); ++_iter1377) + std::vector ::const_iterator _iter1355; + for (_iter1355 = this->success.begin(); _iter1355 != this->success.end(); ++_iter1355) { - xfer += oprot->writeString((*_iter1377)); + xfer += oprot->writeString((*_iter1355)); } xfer += oprot->writeListEnd(); } @@ -28361,14 +28361,14 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1378; - ::apache::thrift::protocol::TType _etype1381; - xfer += iprot->readListBegin(_etype1381, _size1378); - (*(this->success)).resize(_size1378); - uint32_t _i1382; - for (_i1382 = 0; _i1382 < _size1378; ++_i1382) + uint32_t _size1356; + ::apache::thrift::protocol::TType _etype1359; + xfer += iprot->readListBegin(_etype1359, _size1356); + (*(this->success)).resize(_size1356); + uint32_t _i1360; + for (_i1360 = 0; _i1360 < _size1356; ++_i1360) { - xfer += iprot->readString((*(this->success))[_i1382]); + xfer += iprot->readString((*(this->success))[_i1360]); } xfer += iprot->readListEnd(); } @@ -28441,9 +28441,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1383; - xfer += iprot->readI32(ecast1383); - this->principal_type = (PrincipalType::type)ecast1383; + int32_t ecast1361; + xfer += iprot->readI32(ecast1361); + this->principal_type = (PrincipalType::type)ecast1361; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -28459,9 +28459,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1384; - xfer += iprot->readI32(ecast1384); - this->grantorType = (PrincipalType::type)ecast1384; + int32_t ecast1362; + xfer += iprot->readI32(ecast1362); + this->grantorType = (PrincipalType::type)ecast1362; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -28732,9 +28732,9 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol:: break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1385; - xfer += iprot->readI32(ecast1385); - this->principal_type = (PrincipalType::type)ecast1385; + int32_t ecast1363; + xfer += iprot->readI32(ecast1363); + this->principal_type = (PrincipalType::type)ecast1363; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -28965,9 +28965,9 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1386; - xfer += iprot->readI32(ecast1386); - this->principal_type = (PrincipalType::type)ecast1386; + int32_t ecast1364; + xfer += iprot->readI32(ecast1364); + this->principal_type = (PrincipalType::type)ecast1364; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -29056,14 +29056,14 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1387; - ::apache::thrift::protocol::TType _etype1390; - xfer += iprot->readListBegin(_etype1390, _size1387); - this->success.resize(_size1387); - uint32_t _i1391; - for (_i1391 = 0; _i1391 < _size1387; ++_i1391) + uint32_t _size1365; + ::apache::thrift::protocol::TType _etype1368; + xfer += iprot->readListBegin(_etype1368, _size1365); + this->success.resize(_size1365); + uint32_t _i1369; + for (_i1369 = 0; _i1369 < _size1365; ++_i1369) { - xfer += this->success[_i1391].read(iprot); + xfer += this->success[_i1369].read(iprot); } xfer += iprot->readListEnd(); } @@ -29102,10 +29102,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 _iter1392; - for (_iter1392 = this->success.begin(); _iter1392 != this->success.end(); ++_iter1392) + std::vector ::const_iterator _iter1370; + for (_iter1370 = this->success.begin(); _iter1370 != this->success.end(); ++_iter1370) { - xfer += (*_iter1392).write(oprot); + xfer += (*_iter1370).write(oprot); } xfer += oprot->writeListEnd(); } @@ -29150,14 +29150,14 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1393; - ::apache::thrift::protocol::TType _etype1396; - xfer += iprot->readListBegin(_etype1396, _size1393); - (*(this->success)).resize(_size1393); - uint32_t _i1397; - for (_i1397 = 0; _i1397 < _size1393; ++_i1397) + uint32_t _size1371; + ::apache::thrift::protocol::TType _etype1374; + xfer += iprot->readListBegin(_etype1374, _size1371); + (*(this->success)).resize(_size1371); + uint32_t _i1375; + for (_i1375 = 0; _i1375 < _size1371; ++_i1375) { - xfer += (*(this->success))[_i1397].read(iprot); + xfer += (*(this->success))[_i1375].read(iprot); } xfer += iprot->readListEnd(); } @@ -29853,14 +29853,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 _size1398; - ::apache::thrift::protocol::TType _etype1401; - xfer += iprot->readListBegin(_etype1401, _size1398); - this->group_names.resize(_size1398); - uint32_t _i1402; - for (_i1402 = 0; _i1402 < _size1398; ++_i1402) + uint32_t _size1376; + ::apache::thrift::protocol::TType _etype1379; + xfer += iprot->readListBegin(_etype1379, _size1376); + this->group_names.resize(_size1376); + uint32_t _i1380; + for (_i1380 = 0; _i1380 < _size1376; ++_i1380) { - xfer += iprot->readString(this->group_names[_i1402]); + xfer += iprot->readString(this->group_names[_i1380]); } xfer += iprot->readListEnd(); } @@ -29897,10 +29897,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 _iter1403; - for (_iter1403 = this->group_names.begin(); _iter1403 != this->group_names.end(); ++_iter1403) + std::vector ::const_iterator _iter1381; + for (_iter1381 = this->group_names.begin(); _iter1381 != this->group_names.end(); ++_iter1381) { - xfer += oprot->writeString((*_iter1403)); + xfer += oprot->writeString((*_iter1381)); } xfer += oprot->writeListEnd(); } @@ -29932,10 +29932,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 _iter1404; - for (_iter1404 = (*(this->group_names)).begin(); _iter1404 != (*(this->group_names)).end(); ++_iter1404) + std::vector ::const_iterator _iter1382; + for (_iter1382 = (*(this->group_names)).begin(); _iter1382 != (*(this->group_names)).end(); ++_iter1382) { - xfer += oprot->writeString((*_iter1404)); + xfer += oprot->writeString((*_iter1382)); } xfer += oprot->writeListEnd(); } @@ -30110,9 +30110,9 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1405; - xfer += iprot->readI32(ecast1405); - this->principal_type = (PrincipalType::type)ecast1405; + int32_t ecast1383; + xfer += iprot->readI32(ecast1383); + this->principal_type = (PrincipalType::type)ecast1383; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -30217,14 +30217,14 @@ uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1406; - ::apache::thrift::protocol::TType _etype1409; - xfer += iprot->readListBegin(_etype1409, _size1406); - this->success.resize(_size1406); - uint32_t _i1410; - for (_i1410 = 0; _i1410 < _size1406; ++_i1410) + uint32_t _size1384; + ::apache::thrift::protocol::TType _etype1387; + xfer += iprot->readListBegin(_etype1387, _size1384); + this->success.resize(_size1384); + uint32_t _i1388; + for (_i1388 = 0; _i1388 < _size1384; ++_i1388) { - xfer += this->success[_i1410].read(iprot); + xfer += this->success[_i1388].read(iprot); } xfer += iprot->readListEnd(); } @@ -30263,10 +30263,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 _iter1411; - for (_iter1411 = this->success.begin(); _iter1411 != this->success.end(); ++_iter1411) + std::vector ::const_iterator _iter1389; + for (_iter1389 = this->success.begin(); _iter1389 != this->success.end(); ++_iter1389) { - xfer += (*_iter1411).write(oprot); + xfer += (*_iter1389).write(oprot); } xfer += oprot->writeListEnd(); } @@ -30311,14 +30311,14 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - 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) + 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 += (*(this->success))[_i1416].read(iprot); + xfer += (*(this->success))[_i1394].read(iprot); } xfer += iprot->readListEnd(); } @@ -31006,14 +31006,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 _size1417; - ::apache::thrift::protocol::TType _etype1420; - xfer += iprot->readListBegin(_etype1420, _size1417); - this->group_names.resize(_size1417); - uint32_t _i1421; - for (_i1421 = 0; _i1421 < _size1417; ++_i1421) + uint32_t _size1395; + ::apache::thrift::protocol::TType _etype1398; + xfer += iprot->readListBegin(_etype1398, _size1395); + this->group_names.resize(_size1395); + uint32_t _i1399; + for (_i1399 = 0; _i1399 < _size1395; ++_i1399) { - xfer += iprot->readString(this->group_names[_i1421]); + xfer += iprot->readString(this->group_names[_i1399]); } xfer += iprot->readListEnd(); } @@ -31046,10 +31046,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 _iter1422; - for (_iter1422 = this->group_names.begin(); _iter1422 != this->group_names.end(); ++_iter1422) + std::vector ::const_iterator _iter1400; + for (_iter1400 = this->group_names.begin(); _iter1400 != this->group_names.end(); ++_iter1400) { - xfer += oprot->writeString((*_iter1422)); + xfer += oprot->writeString((*_iter1400)); } xfer += oprot->writeListEnd(); } @@ -31077,10 +31077,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 _iter1423; - for (_iter1423 = (*(this->group_names)).begin(); _iter1423 != (*(this->group_names)).end(); ++_iter1423) + std::vector ::const_iterator _iter1401; + for (_iter1401 = (*(this->group_names)).begin(); _iter1401 != (*(this->group_names)).end(); ++_iter1401) { - xfer += oprot->writeString((*_iter1423)); + xfer += oprot->writeString((*_iter1401)); } xfer += oprot->writeListEnd(); } @@ -31121,14 +31121,14 @@ uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TP if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1424; - ::apache::thrift::protocol::TType _etype1427; - xfer += iprot->readListBegin(_etype1427, _size1424); - this->success.resize(_size1424); - uint32_t _i1428; - for (_i1428 = 0; _i1428 < _size1424; ++_i1428) + uint32_t _size1402; + ::apache::thrift::protocol::TType _etype1405; + xfer += iprot->readListBegin(_etype1405, _size1402); + this->success.resize(_size1402); + uint32_t _i1406; + for (_i1406 = 0; _i1406 < _size1402; ++_i1406) { - xfer += iprot->readString(this->success[_i1428]); + xfer += iprot->readString(this->success[_i1406]); } xfer += iprot->readListEnd(); } @@ -31167,10 +31167,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 _iter1429; - for (_iter1429 = this->success.begin(); _iter1429 != this->success.end(); ++_iter1429) + std::vector ::const_iterator _iter1407; + for (_iter1407 = this->success.begin(); _iter1407 != this->success.end(); ++_iter1407) { - xfer += oprot->writeString((*_iter1429)); + xfer += oprot->writeString((*_iter1407)); } xfer += oprot->writeListEnd(); } @@ -31215,14 +31215,14 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1430; - ::apache::thrift::protocol::TType _etype1433; - xfer += iprot->readListBegin(_etype1433, _size1430); - (*(this->success)).resize(_size1430); - uint32_t _i1434; - for (_i1434 = 0; _i1434 < _size1430; ++_i1434) + 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) { - xfer += iprot->readString((*(this->success))[_i1434]); + xfer += iprot->readString((*(this->success))[_i1412]); } xfer += iprot->readListEnd(); } @@ -32533,14 +32533,14 @@ uint32_t ThriftHiveMetastore_get_all_token_identifiers_result::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1435; - ::apache::thrift::protocol::TType _etype1438; - xfer += iprot->readListBegin(_etype1438, _size1435); - this->success.resize(_size1435); - uint32_t _i1439; - for (_i1439 = 0; _i1439 < _size1435; ++_i1439) + uint32_t _size1413; + ::apache::thrift::protocol::TType _etype1416; + xfer += iprot->readListBegin(_etype1416, _size1413); + this->success.resize(_size1413); + uint32_t _i1417; + for (_i1417 = 0; _i1417 < _size1413; ++_i1417) { - xfer += iprot->readString(this->success[_i1439]); + xfer += iprot->readString(this->success[_i1417]); } xfer += iprot->readListEnd(); } @@ -32571,10 +32571,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 _iter1440; - for (_iter1440 = this->success.begin(); _iter1440 != this->success.end(); ++_iter1440) + std::vector ::const_iterator _iter1418; + for (_iter1418 = this->success.begin(); _iter1418 != this->success.end(); ++_iter1418) { - xfer += oprot->writeString((*_iter1440)); + xfer += oprot->writeString((*_iter1418)); } xfer += oprot->writeListEnd(); } @@ -32615,14 +32615,14 @@ uint32_t ThriftHiveMetastore_get_all_token_identifiers_presult::read(::apache::t if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1441; - ::apache::thrift::protocol::TType _etype1444; - xfer += iprot->readListBegin(_etype1444, _size1441); - (*(this->success)).resize(_size1441); - uint32_t _i1445; - for (_i1445 = 0; _i1445 < _size1441; ++_i1445) + uint32_t _size1419; + ::apache::thrift::protocol::TType _etype1422; + xfer += iprot->readListBegin(_etype1422, _size1419); + (*(this->success)).resize(_size1419); + uint32_t _i1423; + for (_i1423 = 0; _i1423 < _size1419; ++_i1423) { - xfer += iprot->readString((*(this->success))[_i1445]); + xfer += iprot->readString((*(this->success))[_i1423]); } xfer += iprot->readListEnd(); } @@ -33348,14 +33348,14 @@ uint32_t ThriftHiveMetastore_get_master_keys_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - 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) + uint32_t _size1424; + ::apache::thrift::protocol::TType _etype1427; + xfer += iprot->readListBegin(_etype1427, _size1424); + this->success.resize(_size1424); + uint32_t _i1428; + for (_i1428 = 0; _i1428 < _size1424; ++_i1428) { - xfer += iprot->readString(this->success[_i1450]); + xfer += iprot->readString(this->success[_i1428]); } xfer += iprot->readListEnd(); } @@ -33386,10 +33386,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 _iter1451; - for (_iter1451 = this->success.begin(); _iter1451 != this->success.end(); ++_iter1451) + std::vector ::const_iterator _iter1429; + for (_iter1429 = this->success.begin(); _iter1429 != this->success.end(); ++_iter1429) { - xfer += oprot->writeString((*_iter1451)); + xfer += oprot->writeString((*_iter1429)); } xfer += oprot->writeListEnd(); } @@ -33430,14 +33430,14 @@ uint32_t ThriftHiveMetastore_get_master_keys_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - 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) + uint32_t _size1430; + ::apache::thrift::protocol::TType _etype1433; + xfer += iprot->readListBegin(_etype1433, _size1430); + (*(this->success)).resize(_size1430); + uint32_t _i1434; + for (_i1434 = 0; _i1434 < _size1430; ++_i1434) { - xfer += iprot->readString((*(this->success))[_i1456]); + xfer += iprot->readString((*(this->success))[_i1434]); } xfer += iprot->readListEnd(); } @@ -33604,737 +33604,10 @@ uint32_t ThriftHiveMetastore_get_open_txns_presult::read(::apache::thrift::proto } 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_get_open_txns_info_args::~ThriftHiveMetastore_get_open_txns_info_args() throw() { -} - - -uint32_t ThriftHiveMetastore_get_open_txns_info_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; - } - xfer += iprot->skip(ftype); - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t ThriftHiveMetastore_get_open_txns_info_args::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_open_txns_info_args"); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -ThriftHiveMetastore_get_open_txns_info_pargs::~ThriftHiveMetastore_get_open_txns_info_pargs() throw() { -} - - -uint32_t ThriftHiveMetastore_get_open_txns_info_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_open_txns_info_pargs"); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -ThriftHiveMetastore_get_open_txns_info_result::~ThriftHiveMetastore_get_open_txns_info_result() throw() { -} - - -uint32_t ThriftHiveMetastore_get_open_txns_info_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_open_txns_info_result::write(::apache::thrift::protocol::TProtocol* oprot) const { - - uint32_t xfer = 0; - - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_open_txns_info_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_open_txns_info_presult::~ThriftHiveMetastore_get_open_txns_info_presult() throw() { -} - - -uint32_t ThriftHiveMetastore_get_open_txns_info_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_open_txns_args::~ThriftHiveMetastore_open_txns_args() throw() { -} - - -uint32_t ThriftHiveMetastore_open_txns_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_open_txns_args::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_open_txns_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_open_txns_pargs::~ThriftHiveMetastore_open_txns_pargs() throw() { -} - - -uint32_t ThriftHiveMetastore_open_txns_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_open_txns_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_open_txns_result::~ThriftHiveMetastore_open_txns_result() throw() { -} - - -uint32_t ThriftHiveMetastore_open_txns_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_open_txns_result::write(::apache::thrift::protocol::TProtocol* oprot) const { - - uint32_t xfer = 0; - - xfer += oprot->writeStructBegin("ThriftHiveMetastore_open_txns_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_open_txns_presult::~ThriftHiveMetastore_open_txns_presult() throw() { -} - - -uint32_t ThriftHiveMetastore_open_txns_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_abort_txn_args::~ThriftHiveMetastore_abort_txn_args() throw() { -} - - -uint32_t ThriftHiveMetastore_abort_txn_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_abort_txn_args::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_abort_txn_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_abort_txn_pargs::~ThriftHiveMetastore_abort_txn_pargs() throw() { -} - - -uint32_t ThriftHiveMetastore_abort_txn_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_abort_txn_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_abort_txn_result::~ThriftHiveMetastore_abort_txn_result() throw() { -} - - -uint32_t ThriftHiveMetastore_abort_txn_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 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o1.read(iprot); - this->__isset.o1 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t ThriftHiveMetastore_abort_txn_result::write(::apache::thrift::protocol::TProtocol* oprot) const { - - uint32_t xfer = 0; - - xfer += oprot->writeStructBegin("ThriftHiveMetastore_abort_txn_result"); - - if (this->__isset.o1) { - xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->o1.write(oprot); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -ThriftHiveMetastore_abort_txn_presult::~ThriftHiveMetastore_abort_txn_presult() throw() { -} - - -uint32_t ThriftHiveMetastore_abort_txn_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 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o1.read(iprot); - this->__isset.o1 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - - -ThriftHiveMetastore_abort_txns_args::~ThriftHiveMetastore_abort_txns_args() throw() { -} - - -uint32_t ThriftHiveMetastore_abort_txns_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_abort_txns_args::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_abort_txns_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_abort_txns_pargs::~ThriftHiveMetastore_abort_txns_pargs() throw() { -} - - -uint32_t ThriftHiveMetastore_abort_txns_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_abort_txns_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_abort_txns_result::~ThriftHiveMetastore_abort_txns_result() throw() { -} - - -uint32_t ThriftHiveMetastore_abort_txns_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 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o1.read(iprot); - this->__isset.o1 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t ThriftHiveMetastore_abort_txns_result::write(::apache::thrift::protocol::TProtocol* oprot) const { - - uint32_t xfer = 0; - - xfer += oprot->writeStructBegin("ThriftHiveMetastore_abort_txns_result"); - - if (this->__isset.o1) { - xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->o1.write(oprot); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -ThriftHiveMetastore_abort_txns_presult::~ThriftHiveMetastore_abort_txns_presult() throw() { -} - - -uint32_t ThriftHiveMetastore_abort_txns_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 1: + case 0: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o1.read(iprot); - this->__isset.o1 = true; + xfer += (*(this->success)).read(iprot); + this->__isset.success = true; } else { xfer += iprot->skip(ftype); } @@ -34352,11 +33625,11 @@ uint32_t ThriftHiveMetastore_abort_txns_presult::read(::apache::thrift::protocol } -ThriftHiveMetastore_commit_txn_args::~ThriftHiveMetastore_commit_txn_args() throw() { +ThriftHiveMetastore_get_open_txns_info_args::~ThriftHiveMetastore_get_open_txns_info_args() throw() { } -uint32_t ThriftHiveMetastore_commit_txn_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_open_txns_info_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -34375,20 +33648,7 @@ uint32_t ThriftHiveMetastore_commit_txn_args::read(::apache::thrift::protocol::T 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->skip(ftype); xfer += iprot->readFieldEnd(); } @@ -34397,14 +33657,10 @@ uint32_t ThriftHiveMetastore_commit_txn_args::read(::apache::thrift::protocol::T return xfer; } -uint32_t ThriftHiveMetastore_commit_txn_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_open_txns_info_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_commit_txn_args"); - - xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->rqst.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_open_txns_info_args"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -34412,18 +33668,14 @@ uint32_t ThriftHiveMetastore_commit_txn_args::write(::apache::thrift::protocol:: } -ThriftHiveMetastore_commit_txn_pargs::~ThriftHiveMetastore_commit_txn_pargs() throw() { +ThriftHiveMetastore_get_open_txns_info_pargs::~ThriftHiveMetastore_get_open_txns_info_pargs() throw() { } -uint32_t ThriftHiveMetastore_commit_txn_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_open_txns_info_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_commit_txn_pargs"); - - xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->rqst)).write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_open_txns_info_pargs"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -34431,11 +33683,11 @@ uint32_t ThriftHiveMetastore_commit_txn_pargs::write(::apache::thrift::protocol: } -ThriftHiveMetastore_commit_txn_result::~ThriftHiveMetastore_commit_txn_result() throw() { +ThriftHiveMetastore_get_open_txns_info_result::~ThriftHiveMetastore_get_open_txns_info_result() throw() { } -uint32_t ThriftHiveMetastore_commit_txn_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_open_txns_info_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -34456,18 +33708,10 @@ uint32_t ThriftHiveMetastore_commit_txn_result::read(::apache::thrift::protocol: } switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o1.read(iprot); - this->__isset.o1 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: + case 0: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o2.read(iprot); - this->__isset.o2 = true; + xfer += this->success.read(iprot); + this->__isset.success = true; } else { xfer += iprot->skip(ftype); } @@ -34484,19 +33728,15 @@ uint32_t ThriftHiveMetastore_commit_txn_result::read(::apache::thrift::protocol: return xfer; } -uint32_t ThriftHiveMetastore_commit_txn_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_open_txns_info_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_commit_txn_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_open_txns_info_result"); - if (this->__isset.o1) { - xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->o1.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o2) { - xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->o2.write(oprot); + 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(); @@ -34505,11 +33745,11 @@ uint32_t ThriftHiveMetastore_commit_txn_result::write(::apache::thrift::protocol } -ThriftHiveMetastore_commit_txn_presult::~ThriftHiveMetastore_commit_txn_presult() throw() { +ThriftHiveMetastore_get_open_txns_info_presult::~ThriftHiveMetastore_get_open_txns_info_presult() throw() { } -uint32_t ThriftHiveMetastore_commit_txn_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_open_txns_info_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -34530,18 +33770,10 @@ uint32_t ThriftHiveMetastore_commit_txn_presult::read(::apache::thrift::protocol } switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o1.read(iprot); - this->__isset.o1 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: + case 0: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o2.read(iprot); - this->__isset.o2 = true; + xfer += (*(this->success)).read(iprot); + this->__isset.success = true; } else { xfer += iprot->skip(ftype); } @@ -34559,11 +33791,11 @@ uint32_t ThriftHiveMetastore_commit_txn_presult::read(::apache::thrift::protocol } -ThriftHiveMetastore_lock_args::~ThriftHiveMetastore_lock_args() throw() { +ThriftHiveMetastore_open_txns_args::~ThriftHiveMetastore_open_txns_args() throw() { } -uint32_t ThriftHiveMetastore_lock_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_open_txns_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -34604,10 +33836,10 @@ uint32_t ThriftHiveMetastore_lock_args::read(::apache::thrift::protocol::TProtoc return xfer; } -uint32_t ThriftHiveMetastore_lock_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_open_txns_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_lock_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_open_txns_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->rqst.write(oprot); @@ -34619,14 +33851,14 @@ uint32_t ThriftHiveMetastore_lock_args::write(::apache::thrift::protocol::TProto } -ThriftHiveMetastore_lock_pargs::~ThriftHiveMetastore_lock_pargs() throw() { +ThriftHiveMetastore_open_txns_pargs::~ThriftHiveMetastore_open_txns_pargs() throw() { } -uint32_t ThriftHiveMetastore_lock_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_open_txns_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_lock_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_open_txns_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->rqst)).write(oprot); @@ -34638,11 +33870,11 @@ uint32_t ThriftHiveMetastore_lock_pargs::write(::apache::thrift::protocol::TProt } -ThriftHiveMetastore_lock_result::~ThriftHiveMetastore_lock_result() throw() { +ThriftHiveMetastore_open_txns_result::~ThriftHiveMetastore_open_txns_result() throw() { } -uint32_t ThriftHiveMetastore_lock_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_open_txns_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -34671,22 +33903,6 @@ uint32_t ThriftHiveMetastore_lock_result::read(::apache::thrift::protocol::TProt xfer += iprot->skip(ftype); } break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o1.read(iprot); - this->__isset.o1 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o2.read(iprot); - this->__isset.o2 = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -34699,24 +33915,16 @@ uint32_t ThriftHiveMetastore_lock_result::read(::apache::thrift::protocol::TProt return xfer; } -uint32_t ThriftHiveMetastore_lock_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_open_txns_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_lock_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_open_txns_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); xfer += this->success.write(oprot); xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o1) { - xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->o1.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o2) { - xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->o2.write(oprot); - xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -34724,11 +33932,11 @@ uint32_t ThriftHiveMetastore_lock_result::write(::apache::thrift::protocol::TPro } -ThriftHiveMetastore_lock_presult::~ThriftHiveMetastore_lock_presult() throw() { +ThriftHiveMetastore_open_txns_presult::~ThriftHiveMetastore_open_txns_presult() throw() { } -uint32_t ThriftHiveMetastore_lock_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_open_txns_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -34757,22 +33965,6 @@ uint32_t ThriftHiveMetastore_lock_presult::read(::apache::thrift::protocol::TPro xfer += iprot->skip(ftype); } break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o1.read(iprot); - this->__isset.o1 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o2.read(iprot); - this->__isset.o2 = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -34786,11 +33978,11 @@ uint32_t ThriftHiveMetastore_lock_presult::read(::apache::thrift::protocol::TPro } -ThriftHiveMetastore_check_lock_args::~ThriftHiveMetastore_check_lock_args() throw() { +ThriftHiveMetastore_abort_txn_args::~ThriftHiveMetastore_abort_txn_args() throw() { } -uint32_t ThriftHiveMetastore_check_lock_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_abort_txn_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -34831,10 +34023,10 @@ uint32_t ThriftHiveMetastore_check_lock_args::read(::apache::thrift::protocol::T return xfer; } -uint32_t ThriftHiveMetastore_check_lock_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_abort_txn_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_check_lock_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_abort_txn_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->rqst.write(oprot); @@ -34846,14 +34038,14 @@ uint32_t ThriftHiveMetastore_check_lock_args::write(::apache::thrift::protocol:: } -ThriftHiveMetastore_check_lock_pargs::~ThriftHiveMetastore_check_lock_pargs() throw() { +ThriftHiveMetastore_abort_txn_pargs::~ThriftHiveMetastore_abort_txn_pargs() throw() { } -uint32_t ThriftHiveMetastore_check_lock_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_abort_txn_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_check_lock_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_abort_txn_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->rqst)).write(oprot); @@ -34865,11 +34057,11 @@ uint32_t ThriftHiveMetastore_check_lock_pargs::write(::apache::thrift::protocol: } -ThriftHiveMetastore_check_lock_result::~ThriftHiveMetastore_check_lock_result() throw() { +ThriftHiveMetastore_abort_txn_result::~ThriftHiveMetastore_abort_txn_result() throw() { } -uint32_t ThriftHiveMetastore_check_lock_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_abort_txn_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -34890,14 +34082,6 @@ uint32_t ThriftHiveMetastore_check_lock_result::read(::apache::thrift::protocol: } 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; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->o1.read(iprot); @@ -34906,22 +34090,6 @@ uint32_t ThriftHiveMetastore_check_lock_result::read(::apache::thrift::protocol: xfer += iprot->skip(ftype); } break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o2.read(iprot); - this->__isset.o2 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o3.read(iprot); - this->__isset.o3 = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -34934,28 +34102,16 @@ uint32_t ThriftHiveMetastore_check_lock_result::read(::apache::thrift::protocol: return xfer; } -uint32_t ThriftHiveMetastore_check_lock_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_abort_txn_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_check_lock_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_abort_txn_result"); - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o1) { + if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->o1.write(oprot); xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o2) { - xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->o2.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o3) { - xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->o3.write(oprot); - xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -34963,11 +34119,11 @@ uint32_t ThriftHiveMetastore_check_lock_result::write(::apache::thrift::protocol } -ThriftHiveMetastore_check_lock_presult::~ThriftHiveMetastore_check_lock_presult() throw() { +ThriftHiveMetastore_abort_txn_presult::~ThriftHiveMetastore_abort_txn_presult() throw() { } -uint32_t ThriftHiveMetastore_check_lock_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_abort_txn_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -34988,14 +34144,6 @@ uint32_t ThriftHiveMetastore_check_lock_presult::read(::apache::thrift::protocol } 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; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->o1.read(iprot); @@ -35004,22 +34152,6 @@ uint32_t ThriftHiveMetastore_check_lock_presult::read(::apache::thrift::protocol xfer += iprot->skip(ftype); } break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o2.read(iprot); - this->__isset.o2 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o3.read(iprot); - this->__isset.o3 = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -35033,11 +34165,11 @@ uint32_t ThriftHiveMetastore_check_lock_presult::read(::apache::thrift::protocol } -ThriftHiveMetastore_unlock_args::~ThriftHiveMetastore_unlock_args() throw() { +ThriftHiveMetastore_abort_txns_args::~ThriftHiveMetastore_abort_txns_args() throw() { } -uint32_t ThriftHiveMetastore_unlock_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_abort_txns_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -35078,10 +34210,10 @@ uint32_t ThriftHiveMetastore_unlock_args::read(::apache::thrift::protocol::TProt return xfer; } -uint32_t ThriftHiveMetastore_unlock_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_abort_txns_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_unlock_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_abort_txns_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->rqst.write(oprot); @@ -35093,14 +34225,14 @@ uint32_t ThriftHiveMetastore_unlock_args::write(::apache::thrift::protocol::TPro } -ThriftHiveMetastore_unlock_pargs::~ThriftHiveMetastore_unlock_pargs() throw() { +ThriftHiveMetastore_abort_txns_pargs::~ThriftHiveMetastore_abort_txns_pargs() throw() { } -uint32_t ThriftHiveMetastore_unlock_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_abort_txns_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_unlock_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_abort_txns_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->rqst)).write(oprot); @@ -35112,11 +34244,11 @@ uint32_t ThriftHiveMetastore_unlock_pargs::write(::apache::thrift::protocol::TPr } -ThriftHiveMetastore_unlock_result::~ThriftHiveMetastore_unlock_result() throw() { +ThriftHiveMetastore_abort_txns_result::~ThriftHiveMetastore_abort_txns_result() throw() { } -uint32_t ThriftHiveMetastore_unlock_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_abort_txns_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -35145,14 +34277,6 @@ uint32_t ThriftHiveMetastore_unlock_result::read(::apache::thrift::protocol::TPr xfer += iprot->skip(ftype); } break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o2.read(iprot); - this->__isset.o2 = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -35165,20 +34289,16 @@ uint32_t ThriftHiveMetastore_unlock_result::read(::apache::thrift::protocol::TPr return xfer; } -uint32_t ThriftHiveMetastore_unlock_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_abort_txns_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_unlock_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_abort_txns_result"); if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->o1.write(oprot); xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o2) { - xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->o2.write(oprot); - xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -35186,11 +34306,11 @@ uint32_t ThriftHiveMetastore_unlock_result::write(::apache::thrift::protocol::TP } -ThriftHiveMetastore_unlock_presult::~ThriftHiveMetastore_unlock_presult() throw() { +ThriftHiveMetastore_abort_txns_presult::~ThriftHiveMetastore_abort_txns_presult() throw() { } -uint32_t ThriftHiveMetastore_unlock_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_abort_txns_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -35219,14 +34339,6 @@ uint32_t ThriftHiveMetastore_unlock_presult::read(::apache::thrift::protocol::TP xfer += iprot->skip(ftype); } break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o2.read(iprot); - this->__isset.o2 = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -35240,11 +34352,11 @@ uint32_t ThriftHiveMetastore_unlock_presult::read(::apache::thrift::protocol::TP } -ThriftHiveMetastore_show_locks_args::~ThriftHiveMetastore_show_locks_args() throw() { +ThriftHiveMetastore_commit_txn_args::~ThriftHiveMetastore_commit_txn_args() throw() { } -uint32_t ThriftHiveMetastore_show_locks_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_commit_txn_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -35285,10 +34397,10 @@ uint32_t ThriftHiveMetastore_show_locks_args::read(::apache::thrift::protocol::T return xfer; } -uint32_t ThriftHiveMetastore_show_locks_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_commit_txn_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_show_locks_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_commit_txn_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->rqst.write(oprot); @@ -35300,14 +34412,14 @@ uint32_t ThriftHiveMetastore_show_locks_args::write(::apache::thrift::protocol:: } -ThriftHiveMetastore_show_locks_pargs::~ThriftHiveMetastore_show_locks_pargs() throw() { +ThriftHiveMetastore_commit_txn_pargs::~ThriftHiveMetastore_commit_txn_pargs() throw() { } -uint32_t ThriftHiveMetastore_show_locks_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_commit_txn_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_show_locks_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_commit_txn_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->rqst)).write(oprot); @@ -35319,11 +34431,11 @@ uint32_t ThriftHiveMetastore_show_locks_pargs::write(::apache::thrift::protocol: } -ThriftHiveMetastore_show_locks_result::~ThriftHiveMetastore_show_locks_result() throw() { +ThriftHiveMetastore_commit_txn_result::~ThriftHiveMetastore_commit_txn_result() throw() { } -uint32_t ThriftHiveMetastore_show_locks_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_commit_txn_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -35344,10 +34456,18 @@ uint32_t ThriftHiveMetastore_show_locks_result::read(::apache::thrift::protocol: } switch (fid) { - case 0: + case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); - this->__isset.success = true; + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; } else { xfer += iprot->skip(ftype); } @@ -35364,15 +34484,19 @@ uint32_t ThriftHiveMetastore_show_locks_result::read(::apache::thrift::protocol: return xfer; } -uint32_t ThriftHiveMetastore_show_locks_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_commit_txn_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_show_locks_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_commit_txn_result"); - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); + if (this->__isset.o1) { + xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->o1.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o2) { + xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->o2.write(oprot); xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); @@ -35381,11 +34505,11 @@ uint32_t ThriftHiveMetastore_show_locks_result::write(::apache::thrift::protocol } -ThriftHiveMetastore_show_locks_presult::~ThriftHiveMetastore_show_locks_presult() throw() { +ThriftHiveMetastore_commit_txn_presult::~ThriftHiveMetastore_commit_txn_presult() throw() { } -uint32_t ThriftHiveMetastore_show_locks_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_commit_txn_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -35406,10 +34530,18 @@ uint32_t ThriftHiveMetastore_show_locks_presult::read(::apache::thrift::protocol } switch (fid) { - case 0: + case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); - this->__isset.success = true; + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; } else { xfer += iprot->skip(ftype); } @@ -35427,11 +34559,11 @@ uint32_t ThriftHiveMetastore_show_locks_presult::read(::apache::thrift::protocol } -ThriftHiveMetastore_heartbeat_args::~ThriftHiveMetastore_heartbeat_args() throw() { +ThriftHiveMetastore_lock_args::~ThriftHiveMetastore_lock_args() throw() { } -uint32_t ThriftHiveMetastore_heartbeat_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_lock_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -35454,8 +34586,8 @@ uint32_t ThriftHiveMetastore_heartbeat_args::read(::apache::thrift::protocol::TP { case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ids.read(iprot); - this->__isset.ids = true; + xfer += this->rqst.read(iprot); + this->__isset.rqst = true; } else { xfer += iprot->skip(ftype); } @@ -35472,13 +34604,13 @@ uint32_t ThriftHiveMetastore_heartbeat_args::read(::apache::thrift::protocol::TP return xfer; } -uint32_t ThriftHiveMetastore_heartbeat_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_lock_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_heartbeat_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_lock_args"); - xfer += oprot->writeFieldBegin("ids", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->ids.write(oprot); + xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->rqst.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -35487,17 +34619,17 @@ uint32_t ThriftHiveMetastore_heartbeat_args::write(::apache::thrift::protocol::T } -ThriftHiveMetastore_heartbeat_pargs::~ThriftHiveMetastore_heartbeat_pargs() throw() { +ThriftHiveMetastore_lock_pargs::~ThriftHiveMetastore_lock_pargs() throw() { } -uint32_t ThriftHiveMetastore_heartbeat_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_lock_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_heartbeat_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_lock_pargs"); - xfer += oprot->writeFieldBegin("ids", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->ids)).write(oprot); + xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->rqst)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -35506,11 +34638,11 @@ uint32_t ThriftHiveMetastore_heartbeat_pargs::write(::apache::thrift::protocol:: } -ThriftHiveMetastore_heartbeat_result::~ThriftHiveMetastore_heartbeat_result() throw() { +ThriftHiveMetastore_lock_result::~ThriftHiveMetastore_lock_result() throw() { } -uint32_t ThriftHiveMetastore_heartbeat_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_lock_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -35531,6 +34663,14 @@ uint32_t ThriftHiveMetastore_heartbeat_result::read(::apache::thrift::protocol:: } 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; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->o1.read(iprot); @@ -35547,14 +34687,6 @@ uint32_t ThriftHiveMetastore_heartbeat_result::read(::apache::thrift::protocol:: xfer += iprot->skip(ftype); } break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o3.read(iprot); - this->__isset.o3 = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -35567,13 +34699,17 @@ uint32_t ThriftHiveMetastore_heartbeat_result::read(::apache::thrift::protocol:: return xfer; } -uint32_t ThriftHiveMetastore_heartbeat_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_lock_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_heartbeat_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_lock_result"); - if (this->__isset.o1) { + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->o1.write(oprot); xfer += oprot->writeFieldEnd(); @@ -35581,10 +34717,6 @@ uint32_t ThriftHiveMetastore_heartbeat_result::write(::apache::thrift::protocol: xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); xfer += this->o2.write(oprot); xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o3) { - xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->o3.write(oprot); - xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -35592,11 +34724,11 @@ uint32_t ThriftHiveMetastore_heartbeat_result::write(::apache::thrift::protocol: } -ThriftHiveMetastore_heartbeat_presult::~ThriftHiveMetastore_heartbeat_presult() throw() { +ThriftHiveMetastore_lock_presult::~ThriftHiveMetastore_lock_presult() throw() { } -uint32_t ThriftHiveMetastore_heartbeat_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_lock_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -35617,6 +34749,14 @@ uint32_t ThriftHiveMetastore_heartbeat_presult::read(::apache::thrift::protocol: } 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; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->o1.read(iprot); @@ -35633,14 +34773,6 @@ uint32_t ThriftHiveMetastore_heartbeat_presult::read(::apache::thrift::protocol: xfer += iprot->skip(ftype); } break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o3.read(iprot); - this->__isset.o3 = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -35654,11 +34786,11 @@ uint32_t ThriftHiveMetastore_heartbeat_presult::read(::apache::thrift::protocol: } -ThriftHiveMetastore_heartbeat_txn_range_args::~ThriftHiveMetastore_heartbeat_txn_range_args() throw() { +ThriftHiveMetastore_check_lock_args::~ThriftHiveMetastore_check_lock_args() throw() { } -uint32_t ThriftHiveMetastore_heartbeat_txn_range_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_check_lock_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -35681,8 +34813,8 @@ uint32_t ThriftHiveMetastore_heartbeat_txn_range_args::read(::apache::thrift::pr { case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->txns.read(iprot); - this->__isset.txns = true; + xfer += this->rqst.read(iprot); + this->__isset.rqst = true; } else { xfer += iprot->skip(ftype); } @@ -35699,13 +34831,13 @@ uint32_t ThriftHiveMetastore_heartbeat_txn_range_args::read(::apache::thrift::pr return xfer; } -uint32_t ThriftHiveMetastore_heartbeat_txn_range_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_check_lock_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_heartbeat_txn_range_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_check_lock_args"); - xfer += oprot->writeFieldBegin("txns", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->txns.write(oprot); + xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->rqst.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -35714,17 +34846,17 @@ uint32_t ThriftHiveMetastore_heartbeat_txn_range_args::write(::apache::thrift::p } -ThriftHiveMetastore_heartbeat_txn_range_pargs::~ThriftHiveMetastore_heartbeat_txn_range_pargs() throw() { +ThriftHiveMetastore_check_lock_pargs::~ThriftHiveMetastore_check_lock_pargs() throw() { } -uint32_t ThriftHiveMetastore_heartbeat_txn_range_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_check_lock_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_heartbeat_txn_range_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_check_lock_pargs"); - xfer += oprot->writeFieldBegin("txns", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->txns)).write(oprot); + xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->rqst)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -35733,11 +34865,11 @@ uint32_t ThriftHiveMetastore_heartbeat_txn_range_pargs::write(::apache::thrift:: } -ThriftHiveMetastore_heartbeat_txn_range_result::~ThriftHiveMetastore_heartbeat_txn_range_result() throw() { +ThriftHiveMetastore_check_lock_result::~ThriftHiveMetastore_check_lock_result() throw() { } -uint32_t ThriftHiveMetastore_heartbeat_txn_range_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_check_lock_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -35766,6 +34898,30 @@ uint32_t ThriftHiveMetastore_heartbeat_txn_range_result::read(::apache::thrift:: xfer += iprot->skip(ftype); } break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o3.read(iprot); + this->__isset.o3 = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -35778,16 +34934,28 @@ uint32_t ThriftHiveMetastore_heartbeat_txn_range_result::read(::apache::thrift:: return xfer; } -uint32_t ThriftHiveMetastore_heartbeat_txn_range_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_check_lock_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_heartbeat_txn_range_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_check_lock_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); xfer += this->success.write(oprot); xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o1) { + xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->o1.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o2) { + xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->o2.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o3) { + xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->o3.write(oprot); + xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -35795,11 +34963,11 @@ uint32_t ThriftHiveMetastore_heartbeat_txn_range_result::write(::apache::thrift: } -ThriftHiveMetastore_heartbeat_txn_range_presult::~ThriftHiveMetastore_heartbeat_txn_range_presult() throw() { +ThriftHiveMetastore_check_lock_presult::~ThriftHiveMetastore_check_lock_presult() throw() { } -uint32_t ThriftHiveMetastore_heartbeat_txn_range_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_check_lock_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -35828,6 +34996,30 @@ uint32_t ThriftHiveMetastore_heartbeat_txn_range_presult::read(::apache::thrift: xfer += iprot->skip(ftype); } break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o3.read(iprot); + this->__isset.o3 = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -35841,11 +35033,11 @@ uint32_t ThriftHiveMetastore_heartbeat_txn_range_presult::read(::apache::thrift: } -ThriftHiveMetastore_compact_args::~ThriftHiveMetastore_compact_args() throw() { +ThriftHiveMetastore_unlock_args::~ThriftHiveMetastore_unlock_args() throw() { } -uint32_t ThriftHiveMetastore_compact_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_unlock_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -35886,10 +35078,10 @@ uint32_t ThriftHiveMetastore_compact_args::read(::apache::thrift::protocol::TPro return xfer; } -uint32_t ThriftHiveMetastore_compact_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_unlock_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_compact_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_unlock_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->rqst.write(oprot); @@ -35901,14 +35093,14 @@ uint32_t ThriftHiveMetastore_compact_args::write(::apache::thrift::protocol::TPr } -ThriftHiveMetastore_compact_pargs::~ThriftHiveMetastore_compact_pargs() throw() { +ThriftHiveMetastore_unlock_pargs::~ThriftHiveMetastore_unlock_pargs() throw() { } -uint32_t ThriftHiveMetastore_compact_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_unlock_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_compact_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_unlock_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->rqst)).write(oprot); @@ -35920,11 +35112,11 @@ uint32_t ThriftHiveMetastore_compact_pargs::write(::apache::thrift::protocol::TP } -ThriftHiveMetastore_compact_result::~ThriftHiveMetastore_compact_result() throw() { +ThriftHiveMetastore_unlock_result::~ThriftHiveMetastore_unlock_result() throw() { } -uint32_t ThriftHiveMetastore_compact_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_unlock_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -35943,7 +35135,28 @@ uint32_t ThriftHiveMetastore_compact_result::read(::apache::thrift::protocol::TP if (ftype == ::apache::thrift::protocol::T_STOP) { break; } - xfer += iprot->skip(ftype); + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } xfer += iprot->readFieldEnd(); } @@ -35952,23 +35165,32 @@ uint32_t ThriftHiveMetastore_compact_result::read(::apache::thrift::protocol::TP return xfer; } -uint32_t ThriftHiveMetastore_compact_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_unlock_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_compact_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_unlock_result"); + if (this->__isset.o1) { + xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->o1.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o2) { + xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->o2.write(oprot); + xfer += oprot->writeFieldEnd(); + } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -ThriftHiveMetastore_compact_presult::~ThriftHiveMetastore_compact_presult() throw() { +ThriftHiveMetastore_unlock_presult::~ThriftHiveMetastore_unlock_presult() throw() { } -uint32_t ThriftHiveMetastore_compact_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_unlock_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -35987,7 +35209,28 @@ uint32_t ThriftHiveMetastore_compact_presult::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_STOP) { break; } - xfer += iprot->skip(ftype); + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } xfer += iprot->readFieldEnd(); } @@ -35997,11 +35240,11 @@ uint32_t ThriftHiveMetastore_compact_presult::read(::apache::thrift::protocol::T } -ThriftHiveMetastore_compact2_args::~ThriftHiveMetastore_compact2_args() throw() { +ThriftHiveMetastore_show_locks_args::~ThriftHiveMetastore_show_locks_args() throw() { } -uint32_t ThriftHiveMetastore_compact2_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_show_locks_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -36042,10 +35285,10 @@ uint32_t ThriftHiveMetastore_compact2_args::read(::apache::thrift::protocol::TPr return xfer; } -uint32_t ThriftHiveMetastore_compact2_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_show_locks_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_compact2_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_show_locks_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->rqst.write(oprot); @@ -36057,14 +35300,14 @@ uint32_t ThriftHiveMetastore_compact2_args::write(::apache::thrift::protocol::TP } -ThriftHiveMetastore_compact2_pargs::~ThriftHiveMetastore_compact2_pargs() throw() { +ThriftHiveMetastore_show_locks_pargs::~ThriftHiveMetastore_show_locks_pargs() throw() { } -uint32_t ThriftHiveMetastore_compact2_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_show_locks_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_compact2_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_show_locks_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->rqst)).write(oprot); @@ -36076,11 +35319,11 @@ uint32_t ThriftHiveMetastore_compact2_pargs::write(::apache::thrift::protocol::T } -ThriftHiveMetastore_compact2_result::~ThriftHiveMetastore_compact2_result() throw() { +ThriftHiveMetastore_show_locks_result::~ThriftHiveMetastore_show_locks_result() throw() { } -uint32_t ThriftHiveMetastore_compact2_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_show_locks_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -36121,11 +35364,11 @@ uint32_t ThriftHiveMetastore_compact2_result::read(::apache::thrift::protocol::T return xfer; } -uint32_t ThriftHiveMetastore_compact2_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_show_locks_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_compact2_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_show_locks_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); @@ -36138,11 +35381,11 @@ uint32_t ThriftHiveMetastore_compact2_result::write(::apache::thrift::protocol:: } -ThriftHiveMetastore_compact2_presult::~ThriftHiveMetastore_compact2_presult() throw() { +ThriftHiveMetastore_show_locks_presult::~ThriftHiveMetastore_show_locks_presult() throw() { } -uint32_t ThriftHiveMetastore_compact2_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_show_locks_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -36184,11 +35427,11 @@ uint32_t ThriftHiveMetastore_compact2_presult::read(::apache::thrift::protocol:: } -ThriftHiveMetastore_show_compact_args::~ThriftHiveMetastore_show_compact_args() throw() { +ThriftHiveMetastore_heartbeat_args::~ThriftHiveMetastore_heartbeat_args() throw() { } -uint32_t ThriftHiveMetastore_show_compact_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_heartbeat_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -36211,8 +35454,8 @@ uint32_t ThriftHiveMetastore_show_compact_args::read(::apache::thrift::protocol: { case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->rqst.read(iprot); - this->__isset.rqst = true; + xfer += this->ids.read(iprot); + this->__isset.ids = true; } else { xfer += iprot->skip(ftype); } @@ -36229,13 +35472,13 @@ uint32_t ThriftHiveMetastore_show_compact_args::read(::apache::thrift::protocol: return xfer; } -uint32_t ThriftHiveMetastore_show_compact_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_heartbeat_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_show_compact_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_heartbeat_args"); - xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->rqst.write(oprot); + xfer += oprot->writeFieldBegin("ids", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->ids.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -36244,17 +35487,17 @@ uint32_t ThriftHiveMetastore_show_compact_args::write(::apache::thrift::protocol } -ThriftHiveMetastore_show_compact_pargs::~ThriftHiveMetastore_show_compact_pargs() throw() { +ThriftHiveMetastore_heartbeat_pargs::~ThriftHiveMetastore_heartbeat_pargs() throw() { } -uint32_t ThriftHiveMetastore_show_compact_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_heartbeat_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_show_compact_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_heartbeat_pargs"); - xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->rqst)).write(oprot); + xfer += oprot->writeFieldBegin("ids", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->ids)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -36263,11 +35506,11 @@ uint32_t ThriftHiveMetastore_show_compact_pargs::write(::apache::thrift::protoco } -ThriftHiveMetastore_show_compact_result::~ThriftHiveMetastore_show_compact_result() throw() { +ThriftHiveMetastore_heartbeat_result::~ThriftHiveMetastore_heartbeat_result() throw() { } -uint32_t ThriftHiveMetastore_show_compact_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_heartbeat_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -36288,10 +35531,26 @@ uint32_t ThriftHiveMetastore_show_compact_result::read(::apache::thrift::protoco } switch (fid) { - case 0: + case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); - this->__isset.success = true; + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o3.read(iprot); + this->__isset.o3 = true; } else { xfer += iprot->skip(ftype); } @@ -36308,15 +35567,23 @@ uint32_t ThriftHiveMetastore_show_compact_result::read(::apache::thrift::protoco return xfer; } -uint32_t ThriftHiveMetastore_show_compact_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_heartbeat_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_show_compact_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_heartbeat_result"); - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); + if (this->__isset.o1) { + xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->o1.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o2) { + xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->o2.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o3) { + xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->o3.write(oprot); xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); @@ -36325,11 +35592,11 @@ uint32_t ThriftHiveMetastore_show_compact_result::write(::apache::thrift::protoc } -ThriftHiveMetastore_show_compact_presult::~ThriftHiveMetastore_show_compact_presult() throw() { +ThriftHiveMetastore_heartbeat_presult::~ThriftHiveMetastore_heartbeat_presult() throw() { } -uint32_t ThriftHiveMetastore_show_compact_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_heartbeat_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -36350,10 +35617,26 @@ uint32_t ThriftHiveMetastore_show_compact_presult::read(::apache::thrift::protoc } switch (fid) { - case 0: + case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); - this->__isset.success = true; + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o3.read(iprot); + this->__isset.o3 = true; } else { xfer += iprot->skip(ftype); } @@ -36371,11 +35654,11 @@ uint32_t ThriftHiveMetastore_show_compact_presult::read(::apache::thrift::protoc } -ThriftHiveMetastore_add_dynamic_partitions_args::~ThriftHiveMetastore_add_dynamic_partitions_args() throw() { +ThriftHiveMetastore_heartbeat_txn_range_args::~ThriftHiveMetastore_heartbeat_txn_range_args() throw() { } -uint32_t ThriftHiveMetastore_add_dynamic_partitions_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_heartbeat_txn_range_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -36398,8 +35681,8 @@ uint32_t ThriftHiveMetastore_add_dynamic_partitions_args::read(::apache::thrift: { case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->rqst.read(iprot); - this->__isset.rqst = true; + xfer += this->txns.read(iprot); + this->__isset.txns = true; } else { xfer += iprot->skip(ftype); } @@ -36416,13 +35699,13 @@ uint32_t ThriftHiveMetastore_add_dynamic_partitions_args::read(::apache::thrift: return xfer; } -uint32_t ThriftHiveMetastore_add_dynamic_partitions_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_heartbeat_txn_range_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_dynamic_partitions_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_heartbeat_txn_range_args"); - xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->rqst.write(oprot); + xfer += oprot->writeFieldBegin("txns", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->txns.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -36431,17 +35714,17 @@ uint32_t ThriftHiveMetastore_add_dynamic_partitions_args::write(::apache::thrift } -ThriftHiveMetastore_add_dynamic_partitions_pargs::~ThriftHiveMetastore_add_dynamic_partitions_pargs() throw() { +ThriftHiveMetastore_heartbeat_txn_range_pargs::~ThriftHiveMetastore_heartbeat_txn_range_pargs() throw() { } -uint32_t ThriftHiveMetastore_add_dynamic_partitions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_heartbeat_txn_range_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_dynamic_partitions_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_heartbeat_txn_range_pargs"); - xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->rqst)).write(oprot); + xfer += oprot->writeFieldBegin("txns", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->txns)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -36450,11 +35733,11 @@ uint32_t ThriftHiveMetastore_add_dynamic_partitions_pargs::write(::apache::thrif } -ThriftHiveMetastore_add_dynamic_partitions_result::~ThriftHiveMetastore_add_dynamic_partitions_result() throw() { +ThriftHiveMetastore_heartbeat_txn_range_result::~ThriftHiveMetastore_heartbeat_txn_range_result() throw() { } -uint32_t ThriftHiveMetastore_add_dynamic_partitions_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_heartbeat_txn_range_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -36475,18 +35758,10 @@ uint32_t ThriftHiveMetastore_add_dynamic_partitions_result::read(::apache::thrif } switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o1.read(iprot); - this->__isset.o1 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: + case 0: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o2.read(iprot); - this->__isset.o2 = true; + xfer += this->success.read(iprot); + this->__isset.success = true; } else { xfer += iprot->skip(ftype); } @@ -36503,19 +35778,15 @@ uint32_t ThriftHiveMetastore_add_dynamic_partitions_result::read(::apache::thrif return xfer; } -uint32_t ThriftHiveMetastore_add_dynamic_partitions_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_heartbeat_txn_range_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_dynamic_partitions_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_heartbeat_txn_range_result"); - if (this->__isset.o1) { - xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->o1.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o2) { - xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->o2.write(oprot); + 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(); @@ -36524,11 +35795,11 @@ uint32_t ThriftHiveMetastore_add_dynamic_partitions_result::write(::apache::thri } -ThriftHiveMetastore_add_dynamic_partitions_presult::~ThriftHiveMetastore_add_dynamic_partitions_presult() throw() { +ThriftHiveMetastore_heartbeat_txn_range_presult::~ThriftHiveMetastore_heartbeat_txn_range_presult() throw() { } -uint32_t ThriftHiveMetastore_add_dynamic_partitions_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_heartbeat_txn_range_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -36549,18 +35820,10 @@ uint32_t ThriftHiveMetastore_add_dynamic_partitions_presult::read(::apache::thri } switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o1.read(iprot); - this->__isset.o1 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: + case 0: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o2.read(iprot); - this->__isset.o2 = true; + xfer += (*(this->success)).read(iprot); + this->__isset.success = true; } else { xfer += iprot->skip(ftype); } @@ -36578,11 +35841,11 @@ uint32_t ThriftHiveMetastore_add_dynamic_partitions_presult::read(::apache::thri } -ThriftHiveMetastore_get_next_notification_args::~ThriftHiveMetastore_get_next_notification_args() throw() { +ThriftHiveMetastore_compact_args::~ThriftHiveMetastore_compact_args() throw() { } -uint32_t ThriftHiveMetastore_get_next_notification_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_compact_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -36623,10 +35886,10 @@ uint32_t ThriftHiveMetastore_get_next_notification_args::read(::apache::thrift:: return xfer; } -uint32_t ThriftHiveMetastore_get_next_notification_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_compact_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_next_notification_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_compact_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->rqst.write(oprot); @@ -36638,14 +35901,14 @@ uint32_t ThriftHiveMetastore_get_next_notification_args::write(::apache::thrift: } -ThriftHiveMetastore_get_next_notification_pargs::~ThriftHiveMetastore_get_next_notification_pargs() throw() { +ThriftHiveMetastore_compact_pargs::~ThriftHiveMetastore_compact_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_next_notification_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_compact_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_next_notification_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_compact_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->rqst)).write(oprot); @@ -36657,11 +35920,11 @@ uint32_t ThriftHiveMetastore_get_next_notification_pargs::write(::apache::thrift } -ThriftHiveMetastore_get_next_notification_result::~ThriftHiveMetastore_get_next_notification_result() throw() { +ThriftHiveMetastore_compact_result::~ThriftHiveMetastore_compact_result() throw() { } -uint32_t ThriftHiveMetastore_get_next_notification_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_compact_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -36680,20 +35943,7 @@ uint32_t ThriftHiveMetastore_get_next_notification_result::read(::apache::thrift 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->skip(ftype); xfer += iprot->readFieldEnd(); } @@ -36702,28 +35952,23 @@ uint32_t ThriftHiveMetastore_get_next_notification_result::read(::apache::thrift return xfer; } -uint32_t ThriftHiveMetastore_get_next_notification_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_compact_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_next_notification_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_compact_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_next_notification_presult::~ThriftHiveMetastore_get_next_notification_presult() throw() { +ThriftHiveMetastore_compact_presult::~ThriftHiveMetastore_compact_presult() throw() { } -uint32_t ThriftHiveMetastore_get_next_notification_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_compact_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -36742,20 +35987,7 @@ uint32_t ThriftHiveMetastore_get_next_notification_presult::read(::apache::thrif 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->skip(ftype); xfer += iprot->readFieldEnd(); } @@ -36765,11 +35997,11 @@ uint32_t ThriftHiveMetastore_get_next_notification_presult::read(::apache::thrif } -ThriftHiveMetastore_get_current_notificationEventId_args::~ThriftHiveMetastore_get_current_notificationEventId_args() throw() { +ThriftHiveMetastore_compact2_args::~ThriftHiveMetastore_compact2_args() throw() { } -uint32_t ThriftHiveMetastore_get_current_notificationEventId_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_compact2_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -36788,7 +36020,20 @@ uint32_t ThriftHiveMetastore_get_current_notificationEventId_args::read(::apache if (ftype == ::apache::thrift::protocol::T_STOP) { break; } - xfer += iprot->skip(ftype); + 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(); } @@ -36797,10 +36042,14 @@ uint32_t ThriftHiveMetastore_get_current_notificationEventId_args::read(::apache return xfer; } -uint32_t ThriftHiveMetastore_get_current_notificationEventId_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_compact2_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_current_notificationEventId_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_compact2_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(); @@ -36808,14 +36057,18 @@ uint32_t ThriftHiveMetastore_get_current_notificationEventId_args::write(::apach } -ThriftHiveMetastore_get_current_notificationEventId_pargs::~ThriftHiveMetastore_get_current_notificationEventId_pargs() throw() { +ThriftHiveMetastore_compact2_pargs::~ThriftHiveMetastore_compact2_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_current_notificationEventId_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_compact2_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_current_notificationEventId_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_compact2_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(); @@ -36823,11 +36076,11 @@ uint32_t ThriftHiveMetastore_get_current_notificationEventId_pargs::write(::apac } -ThriftHiveMetastore_get_current_notificationEventId_result::~ThriftHiveMetastore_get_current_notificationEventId_result() throw() { +ThriftHiveMetastore_compact2_result::~ThriftHiveMetastore_compact2_result() throw() { } -uint32_t ThriftHiveMetastore_get_current_notificationEventId_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_compact2_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -36868,11 +36121,11 @@ uint32_t ThriftHiveMetastore_get_current_notificationEventId_result::read(::apac return xfer; } -uint32_t ThriftHiveMetastore_get_current_notificationEventId_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_compact2_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_current_notificationEventId_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_compact2_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); @@ -36885,11 +36138,11 @@ uint32_t ThriftHiveMetastore_get_current_notificationEventId_result::write(::apa } -ThriftHiveMetastore_get_current_notificationEventId_presult::~ThriftHiveMetastore_get_current_notificationEventId_presult() throw() { +ThriftHiveMetastore_compact2_presult::~ThriftHiveMetastore_compact2_presult() throw() { } -uint32_t ThriftHiveMetastore_get_current_notificationEventId_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_compact2_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -36931,11 +36184,11 @@ uint32_t ThriftHiveMetastore_get_current_notificationEventId_presult::read(::apa } -ThriftHiveMetastore_fire_listener_event_args::~ThriftHiveMetastore_fire_listener_event_args() throw() { +ThriftHiveMetastore_show_compact_args::~ThriftHiveMetastore_show_compact_args() throw() { } -uint32_t ThriftHiveMetastore_fire_listener_event_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_show_compact_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -36976,10 +36229,10 @@ uint32_t ThriftHiveMetastore_fire_listener_event_args::read(::apache::thrift::pr return xfer; } -uint32_t ThriftHiveMetastore_fire_listener_event_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_show_compact_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_fire_listener_event_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_show_compact_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->rqst.write(oprot); @@ -36991,14 +36244,14 @@ uint32_t ThriftHiveMetastore_fire_listener_event_args::write(::apache::thrift::p } -ThriftHiveMetastore_fire_listener_event_pargs::~ThriftHiveMetastore_fire_listener_event_pargs() throw() { +ThriftHiveMetastore_show_compact_pargs::~ThriftHiveMetastore_show_compact_pargs() throw() { } -uint32_t ThriftHiveMetastore_fire_listener_event_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_show_compact_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_fire_listener_event_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_show_compact_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->rqst)).write(oprot); @@ -37010,11 +36263,11 @@ uint32_t ThriftHiveMetastore_fire_listener_event_pargs::write(::apache::thrift:: } -ThriftHiveMetastore_fire_listener_event_result::~ThriftHiveMetastore_fire_listener_event_result() throw() { +ThriftHiveMetastore_show_compact_result::~ThriftHiveMetastore_show_compact_result() throw() { } -uint32_t ThriftHiveMetastore_fire_listener_event_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_show_compact_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -37055,11 +36308,11 @@ uint32_t ThriftHiveMetastore_fire_listener_event_result::read(::apache::thrift:: return xfer; } -uint32_t ThriftHiveMetastore_fire_listener_event_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_show_compact_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_fire_listener_event_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_show_compact_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); @@ -37072,11 +36325,11 @@ uint32_t ThriftHiveMetastore_fire_listener_event_result::write(::apache::thrift: } -ThriftHiveMetastore_fire_listener_event_presult::~ThriftHiveMetastore_fire_listener_event_presult() throw() { +ThriftHiveMetastore_show_compact_presult::~ThriftHiveMetastore_show_compact_presult() throw() { } -uint32_t ThriftHiveMetastore_fire_listener_event_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_show_compact_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -37118,11 +36371,11 @@ uint32_t ThriftHiveMetastore_fire_listener_event_presult::read(::apache::thrift: } -ThriftHiveMetastore_flushCache_args::~ThriftHiveMetastore_flushCache_args() throw() { +ThriftHiveMetastore_add_dynamic_partitions_args::~ThriftHiveMetastore_add_dynamic_partitions_args() throw() { } -uint32_t ThriftHiveMetastore_flushCache_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_add_dynamic_partitions_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -37141,7 +36394,20 @@ uint32_t ThriftHiveMetastore_flushCache_args::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_STOP) { break; } - xfer += iprot->skip(ftype); + 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(); } @@ -37150,10 +36416,14 @@ uint32_t ThriftHiveMetastore_flushCache_args::read(::apache::thrift::protocol::T return xfer; } -uint32_t ThriftHiveMetastore_flushCache_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_add_dynamic_partitions_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_flushCache_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_dynamic_partitions_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(); @@ -37161,14 +36431,18 @@ uint32_t ThriftHiveMetastore_flushCache_args::write(::apache::thrift::protocol:: } -ThriftHiveMetastore_flushCache_pargs::~ThriftHiveMetastore_flushCache_pargs() throw() { +ThriftHiveMetastore_add_dynamic_partitions_pargs::~ThriftHiveMetastore_add_dynamic_partitions_pargs() throw() { } -uint32_t ThriftHiveMetastore_flushCache_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_add_dynamic_partitions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_flushCache_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_dynamic_partitions_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(); @@ -37176,11 +36450,11 @@ uint32_t ThriftHiveMetastore_flushCache_pargs::write(::apache::thrift::protocol: } -ThriftHiveMetastore_flushCache_result::~ThriftHiveMetastore_flushCache_result() throw() { +ThriftHiveMetastore_add_dynamic_partitions_result::~ThriftHiveMetastore_add_dynamic_partitions_result() throw() { } -uint32_t ThriftHiveMetastore_flushCache_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_add_dynamic_partitions_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -37199,7 +36473,28 @@ uint32_t ThriftHiveMetastore_flushCache_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_STOP) { break; } - xfer += iprot->skip(ftype); + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } xfer += iprot->readFieldEnd(); } @@ -37208,23 +36503,32 @@ uint32_t ThriftHiveMetastore_flushCache_result::read(::apache::thrift::protocol: return xfer; } -uint32_t ThriftHiveMetastore_flushCache_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_add_dynamic_partitions_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_flushCache_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_dynamic_partitions_result"); + if (this->__isset.o1) { + xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->o1.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o2) { + xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->o2.write(oprot); + xfer += oprot->writeFieldEnd(); + } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -ThriftHiveMetastore_flushCache_presult::~ThriftHiveMetastore_flushCache_presult() throw() { +ThriftHiveMetastore_add_dynamic_partitions_presult::~ThriftHiveMetastore_add_dynamic_partitions_presult() throw() { } -uint32_t ThriftHiveMetastore_flushCache_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_add_dynamic_partitions_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -37243,7 +36547,28 @@ uint32_t ThriftHiveMetastore_flushCache_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_STOP) { break; } - xfer += iprot->skip(ftype); + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } xfer += iprot->readFieldEnd(); } @@ -37253,11 +36578,11 @@ uint32_t ThriftHiveMetastore_flushCache_presult::read(::apache::thrift::protocol } -ThriftHiveMetastore_get_file_metadata_by_expr_args::~ThriftHiveMetastore_get_file_metadata_by_expr_args() throw() { +ThriftHiveMetastore_get_next_notification_args::~ThriftHiveMetastore_get_next_notification_args() throw() { } -uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_next_notification_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -37280,8 +36605,8 @@ uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_args::read(::apache::thri { case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->req.read(iprot); - this->__isset.req = true; + xfer += this->rqst.read(iprot); + this->__isset.rqst = true; } else { xfer += iprot->skip(ftype); } @@ -37298,13 +36623,13 @@ uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_args::read(::apache::thri return xfer; } -uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_next_notification_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_file_metadata_by_expr_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_next_notification_args"); - xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->req.write(oprot); + xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->rqst.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -37313,17 +36638,17 @@ uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_args::write(::apache::thr } -ThriftHiveMetastore_get_file_metadata_by_expr_pargs::~ThriftHiveMetastore_get_file_metadata_by_expr_pargs() throw() { +ThriftHiveMetastore_get_next_notification_pargs::~ThriftHiveMetastore_get_next_notification_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_next_notification_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_file_metadata_by_expr_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_next_notification_pargs"); - xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->req)).write(oprot); + xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->rqst)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -37332,11 +36657,11 @@ uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_pargs::write(::apache::th } -ThriftHiveMetastore_get_file_metadata_by_expr_result::~ThriftHiveMetastore_get_file_metadata_by_expr_result() throw() { +ThriftHiveMetastore_get_next_notification_result::~ThriftHiveMetastore_get_next_notification_result() throw() { } -uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_next_notification_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -37377,11 +36702,11 @@ uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_result::read(::apache::th return xfer; } -uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_next_notification_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_file_metadata_by_expr_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_next_notification_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); @@ -37394,11 +36719,11 @@ uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_result::write(::apache::t } -ThriftHiveMetastore_get_file_metadata_by_expr_presult::~ThriftHiveMetastore_get_file_metadata_by_expr_presult() throw() { +ThriftHiveMetastore_get_next_notification_presult::~ThriftHiveMetastore_get_next_notification_presult() throw() { } -uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_next_notification_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -37440,11 +36765,11 @@ uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_presult::read(::apache::t } -ThriftHiveMetastore_get_file_metadata_args::~ThriftHiveMetastore_get_file_metadata_args() throw() { +ThriftHiveMetastore_get_current_notificationEventId_args::~ThriftHiveMetastore_get_current_notificationEventId_args() throw() { } -uint32_t ThriftHiveMetastore_get_file_metadata_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_current_notificationEventId_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -37463,20 +36788,7 @@ uint32_t ThriftHiveMetastore_get_file_metadata_args::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_STOP) { break; } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->req.read(iprot); - this->__isset.req = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } + xfer += iprot->skip(ftype); xfer += iprot->readFieldEnd(); } @@ -37485,14 +36797,10 @@ uint32_t ThriftHiveMetastore_get_file_metadata_args::read(::apache::thrift::prot return xfer; } -uint32_t ThriftHiveMetastore_get_file_metadata_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_current_notificationEventId_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_file_metadata_args"); - - xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->req.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_current_notificationEventId_args"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -37500,18 +36808,14 @@ uint32_t ThriftHiveMetastore_get_file_metadata_args::write(::apache::thrift::pro } -ThriftHiveMetastore_get_file_metadata_pargs::~ThriftHiveMetastore_get_file_metadata_pargs() throw() { +ThriftHiveMetastore_get_current_notificationEventId_pargs::~ThriftHiveMetastore_get_current_notificationEventId_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_file_metadata_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_current_notificationEventId_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_file_metadata_pargs"); - - xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->req)).write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_current_notificationEventId_pargs"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -37519,11 +36823,11 @@ uint32_t ThriftHiveMetastore_get_file_metadata_pargs::write(::apache::thrift::pr } -ThriftHiveMetastore_get_file_metadata_result::~ThriftHiveMetastore_get_file_metadata_result() throw() { +ThriftHiveMetastore_get_current_notificationEventId_result::~ThriftHiveMetastore_get_current_notificationEventId_result() throw() { } -uint32_t ThriftHiveMetastore_get_file_metadata_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_current_notificationEventId_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -37564,11 +36868,11 @@ uint32_t ThriftHiveMetastore_get_file_metadata_result::read(::apache::thrift::pr return xfer; } -uint32_t ThriftHiveMetastore_get_file_metadata_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_current_notificationEventId_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_file_metadata_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_current_notificationEventId_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); @@ -37581,11 +36885,11 @@ uint32_t ThriftHiveMetastore_get_file_metadata_result::write(::apache::thrift::p } -ThriftHiveMetastore_get_file_metadata_presult::~ThriftHiveMetastore_get_file_metadata_presult() throw() { +ThriftHiveMetastore_get_current_notificationEventId_presult::~ThriftHiveMetastore_get_current_notificationEventId_presult() throw() { } -uint32_t ThriftHiveMetastore_get_file_metadata_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_current_notificationEventId_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -37627,11 +36931,11 @@ uint32_t ThriftHiveMetastore_get_file_metadata_presult::read(::apache::thrift::p } -ThriftHiveMetastore_put_file_metadata_args::~ThriftHiveMetastore_put_file_metadata_args() throw() { +ThriftHiveMetastore_fire_listener_event_args::~ThriftHiveMetastore_fire_listener_event_args() throw() { } -uint32_t ThriftHiveMetastore_put_file_metadata_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_fire_listener_event_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -37654,8 +36958,8 @@ uint32_t ThriftHiveMetastore_put_file_metadata_args::read(::apache::thrift::prot { case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->req.read(iprot); - this->__isset.req = true; + xfer += this->rqst.read(iprot); + this->__isset.rqst = true; } else { xfer += iprot->skip(ftype); } @@ -37672,13 +36976,13 @@ uint32_t ThriftHiveMetastore_put_file_metadata_args::read(::apache::thrift::prot return xfer; } -uint32_t ThriftHiveMetastore_put_file_metadata_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_fire_listener_event_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_put_file_metadata_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_fire_listener_event_args"); - xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->req.write(oprot); + xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->rqst.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -37687,17 +36991,17 @@ uint32_t ThriftHiveMetastore_put_file_metadata_args::write(::apache::thrift::pro } -ThriftHiveMetastore_put_file_metadata_pargs::~ThriftHiveMetastore_put_file_metadata_pargs() throw() { +ThriftHiveMetastore_fire_listener_event_pargs::~ThriftHiveMetastore_fire_listener_event_pargs() throw() { } -uint32_t ThriftHiveMetastore_put_file_metadata_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_fire_listener_event_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_put_file_metadata_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_fire_listener_event_pargs"); - xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->req)).write(oprot); + xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->rqst)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -37706,11 +37010,11 @@ uint32_t ThriftHiveMetastore_put_file_metadata_pargs::write(::apache::thrift::pr } -ThriftHiveMetastore_put_file_metadata_result::~ThriftHiveMetastore_put_file_metadata_result() throw() { +ThriftHiveMetastore_fire_listener_event_result::~ThriftHiveMetastore_fire_listener_event_result() throw() { } -uint32_t ThriftHiveMetastore_put_file_metadata_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_fire_listener_event_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -37751,11 +37055,11 @@ uint32_t ThriftHiveMetastore_put_file_metadata_result::read(::apache::thrift::pr return xfer; } -uint32_t ThriftHiveMetastore_put_file_metadata_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_fire_listener_event_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_put_file_metadata_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_fire_listener_event_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); @@ -37768,11 +37072,11 @@ uint32_t ThriftHiveMetastore_put_file_metadata_result::write(::apache::thrift::p } -ThriftHiveMetastore_put_file_metadata_presult::~ThriftHiveMetastore_put_file_metadata_presult() throw() { +ThriftHiveMetastore_fire_listener_event_presult::~ThriftHiveMetastore_fire_listener_event_presult() throw() { } -uint32_t ThriftHiveMetastore_put_file_metadata_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_fire_listener_event_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -37814,11 +37118,11 @@ uint32_t ThriftHiveMetastore_put_file_metadata_presult::read(::apache::thrift::p } -ThriftHiveMetastore_clear_file_metadata_args::~ThriftHiveMetastore_clear_file_metadata_args() throw() { +ThriftHiveMetastore_flushCache_args::~ThriftHiveMetastore_flushCache_args() throw() { } -uint32_t ThriftHiveMetastore_clear_file_metadata_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_flushCache_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -37837,20 +37141,7 @@ uint32_t ThriftHiveMetastore_clear_file_metadata_args::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_STOP) { break; } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->req.read(iprot); - this->__isset.req = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } + xfer += iprot->skip(ftype); xfer += iprot->readFieldEnd(); } @@ -37859,14 +37150,10 @@ uint32_t ThriftHiveMetastore_clear_file_metadata_args::read(::apache::thrift::pr return xfer; } -uint32_t ThriftHiveMetastore_clear_file_metadata_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_flushCache_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_clear_file_metadata_args"); - - xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->req.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_flushCache_args"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -37874,18 +37161,14 @@ uint32_t ThriftHiveMetastore_clear_file_metadata_args::write(::apache::thrift::p } -ThriftHiveMetastore_clear_file_metadata_pargs::~ThriftHiveMetastore_clear_file_metadata_pargs() throw() { +ThriftHiveMetastore_flushCache_pargs::~ThriftHiveMetastore_flushCache_pargs() throw() { } -uint32_t ThriftHiveMetastore_clear_file_metadata_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_flushCache_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_clear_file_metadata_pargs"); - - xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->req)).write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_flushCache_pargs"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -37893,11 +37176,11 @@ uint32_t ThriftHiveMetastore_clear_file_metadata_pargs::write(::apache::thrift:: } -ThriftHiveMetastore_clear_file_metadata_result::~ThriftHiveMetastore_clear_file_metadata_result() throw() { +ThriftHiveMetastore_flushCache_result::~ThriftHiveMetastore_flushCache_result() throw() { } -uint32_t ThriftHiveMetastore_clear_file_metadata_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_flushCache_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -37916,20 +37199,7 @@ uint32_t ThriftHiveMetastore_clear_file_metadata_result::read(::apache::thrift:: 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->skip(ftype); xfer += iprot->readFieldEnd(); } @@ -37938,28 +37208,23 @@ uint32_t ThriftHiveMetastore_clear_file_metadata_result::read(::apache::thrift:: return xfer; } -uint32_t ThriftHiveMetastore_clear_file_metadata_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_flushCache_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_clear_file_metadata_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_flushCache_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_clear_file_metadata_presult::~ThriftHiveMetastore_clear_file_metadata_presult() throw() { +ThriftHiveMetastore_flushCache_presult::~ThriftHiveMetastore_flushCache_presult() throw() { } -uint32_t ThriftHiveMetastore_clear_file_metadata_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_flushCache_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -37978,20 +37243,7 @@ uint32_t ThriftHiveMetastore_clear_file_metadata_presult::read(::apache::thrift: 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->skip(ftype); xfer += iprot->readFieldEnd(); } @@ -38001,11 +37253,11 @@ uint32_t ThriftHiveMetastore_clear_file_metadata_presult::read(::apache::thrift: } -ThriftHiveMetastore_cache_file_metadata_args::~ThriftHiveMetastore_cache_file_metadata_args() throw() { +ThriftHiveMetastore_get_file_metadata_by_expr_args::~ThriftHiveMetastore_get_file_metadata_by_expr_args() throw() { } -uint32_t ThriftHiveMetastore_cache_file_metadata_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -38046,10 +37298,10 @@ uint32_t ThriftHiveMetastore_cache_file_metadata_args::read(::apache::thrift::pr return xfer; } -uint32_t ThriftHiveMetastore_cache_file_metadata_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_cache_file_metadata_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_file_metadata_by_expr_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->req.write(oprot); @@ -38061,14 +37313,14 @@ uint32_t ThriftHiveMetastore_cache_file_metadata_args::write(::apache::thrift::p } -ThriftHiveMetastore_cache_file_metadata_pargs::~ThriftHiveMetastore_cache_file_metadata_pargs() throw() { +ThriftHiveMetastore_get_file_metadata_by_expr_pargs::~ThriftHiveMetastore_get_file_metadata_by_expr_pargs() throw() { } -uint32_t ThriftHiveMetastore_cache_file_metadata_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_cache_file_metadata_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_file_metadata_by_expr_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->req)).write(oprot); @@ -38080,11 +37332,11 @@ uint32_t ThriftHiveMetastore_cache_file_metadata_pargs::write(::apache::thrift:: } -ThriftHiveMetastore_cache_file_metadata_result::~ThriftHiveMetastore_cache_file_metadata_result() throw() { +ThriftHiveMetastore_get_file_metadata_by_expr_result::~ThriftHiveMetastore_get_file_metadata_by_expr_result() throw() { } -uint32_t ThriftHiveMetastore_cache_file_metadata_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -38125,11 +37377,11 @@ uint32_t ThriftHiveMetastore_cache_file_metadata_result::read(::apache::thrift:: return xfer; } -uint32_t ThriftHiveMetastore_cache_file_metadata_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_cache_file_metadata_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_file_metadata_by_expr_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); @@ -38142,11 +37394,11 @@ uint32_t ThriftHiveMetastore_cache_file_metadata_result::write(::apache::thrift: } -ThriftHiveMetastore_cache_file_metadata_presult::~ThriftHiveMetastore_cache_file_metadata_presult() throw() { +ThriftHiveMetastore_get_file_metadata_by_expr_presult::~ThriftHiveMetastore_get_file_metadata_by_expr_presult() throw() { } -uint32_t ThriftHiveMetastore_cache_file_metadata_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -38188,11 +37440,11 @@ uint32_t ThriftHiveMetastore_cache_file_metadata_presult::read(::apache::thrift: } -ThriftHiveMetastore_get_next_write_id_args::~ThriftHiveMetastore_get_next_write_id_args() throw() { +ThriftHiveMetastore_get_file_metadata_args::~ThriftHiveMetastore_get_file_metadata_args() throw() { } -uint32_t ThriftHiveMetastore_get_next_write_id_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_file_metadata_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -38233,10 +37485,10 @@ uint32_t ThriftHiveMetastore_get_next_write_id_args::read(::apache::thrift::prot return xfer; } -uint32_t ThriftHiveMetastore_get_next_write_id_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_file_metadata_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_next_write_id_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_file_metadata_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->req.write(oprot); @@ -38248,14 +37500,14 @@ uint32_t ThriftHiveMetastore_get_next_write_id_args::write(::apache::thrift::pro } -ThriftHiveMetastore_get_next_write_id_pargs::~ThriftHiveMetastore_get_next_write_id_pargs() throw() { +ThriftHiveMetastore_get_file_metadata_pargs::~ThriftHiveMetastore_get_file_metadata_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_next_write_id_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_file_metadata_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_next_write_id_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_file_metadata_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->req)).write(oprot); @@ -38267,11 +37519,11 @@ uint32_t ThriftHiveMetastore_get_next_write_id_pargs::write(::apache::thrift::pr } -ThriftHiveMetastore_get_next_write_id_result::~ThriftHiveMetastore_get_next_write_id_result() throw() { +ThriftHiveMetastore_get_file_metadata_result::~ThriftHiveMetastore_get_file_metadata_result() throw() { } -uint32_t ThriftHiveMetastore_get_next_write_id_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_file_metadata_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -38312,11 +37564,11 @@ uint32_t ThriftHiveMetastore_get_next_write_id_result::read(::apache::thrift::pr return xfer; } -uint32_t ThriftHiveMetastore_get_next_write_id_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_file_metadata_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_next_write_id_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_file_metadata_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); @@ -38329,11 +37581,11 @@ uint32_t ThriftHiveMetastore_get_next_write_id_result::write(::apache::thrift::p } -ThriftHiveMetastore_get_next_write_id_presult::~ThriftHiveMetastore_get_next_write_id_presult() throw() { +ThriftHiveMetastore_get_file_metadata_presult::~ThriftHiveMetastore_get_file_metadata_presult() throw() { } -uint32_t ThriftHiveMetastore_get_next_write_id_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_file_metadata_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -38375,11 +37627,11 @@ uint32_t ThriftHiveMetastore_get_next_write_id_presult::read(::apache::thrift::p } -ThriftHiveMetastore_finalize_write_id_args::~ThriftHiveMetastore_finalize_write_id_args() throw() { +ThriftHiveMetastore_put_file_metadata_args::~ThriftHiveMetastore_put_file_metadata_args() throw() { } -uint32_t ThriftHiveMetastore_finalize_write_id_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_put_file_metadata_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -38420,10 +37672,10 @@ uint32_t ThriftHiveMetastore_finalize_write_id_args::read(::apache::thrift::prot return xfer; } -uint32_t ThriftHiveMetastore_finalize_write_id_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_put_file_metadata_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_finalize_write_id_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_put_file_metadata_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->req.write(oprot); @@ -38435,14 +37687,14 @@ uint32_t ThriftHiveMetastore_finalize_write_id_args::write(::apache::thrift::pro } -ThriftHiveMetastore_finalize_write_id_pargs::~ThriftHiveMetastore_finalize_write_id_pargs() throw() { +ThriftHiveMetastore_put_file_metadata_pargs::~ThriftHiveMetastore_put_file_metadata_pargs() throw() { } -uint32_t ThriftHiveMetastore_finalize_write_id_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_put_file_metadata_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_finalize_write_id_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_put_file_metadata_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->req)).write(oprot); @@ -38454,11 +37706,11 @@ uint32_t ThriftHiveMetastore_finalize_write_id_pargs::write(::apache::thrift::pr } -ThriftHiveMetastore_finalize_write_id_result::~ThriftHiveMetastore_finalize_write_id_result() throw() { +ThriftHiveMetastore_put_file_metadata_result::~ThriftHiveMetastore_put_file_metadata_result() throw() { } -uint32_t ThriftHiveMetastore_finalize_write_id_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_put_file_metadata_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -38499,11 +37751,11 @@ uint32_t ThriftHiveMetastore_finalize_write_id_result::read(::apache::thrift::pr return xfer; } -uint32_t ThriftHiveMetastore_finalize_write_id_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_put_file_metadata_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_finalize_write_id_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_put_file_metadata_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); @@ -38516,11 +37768,11 @@ uint32_t ThriftHiveMetastore_finalize_write_id_result::write(::apache::thrift::p } -ThriftHiveMetastore_finalize_write_id_presult::~ThriftHiveMetastore_finalize_write_id_presult() throw() { +ThriftHiveMetastore_put_file_metadata_presult::~ThriftHiveMetastore_put_file_metadata_presult() throw() { } -uint32_t ThriftHiveMetastore_finalize_write_id_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_put_file_metadata_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -38562,11 +37814,11 @@ uint32_t ThriftHiveMetastore_finalize_write_id_presult::read(::apache::thrift::p } -ThriftHiveMetastore_heartbeat_write_id_args::~ThriftHiveMetastore_heartbeat_write_id_args() throw() { +ThriftHiveMetastore_clear_file_metadata_args::~ThriftHiveMetastore_clear_file_metadata_args() throw() { } -uint32_t ThriftHiveMetastore_heartbeat_write_id_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_clear_file_metadata_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -38607,10 +37859,10 @@ uint32_t ThriftHiveMetastore_heartbeat_write_id_args::read(::apache::thrift::pro return xfer; } -uint32_t ThriftHiveMetastore_heartbeat_write_id_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_clear_file_metadata_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_heartbeat_write_id_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_clear_file_metadata_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->req.write(oprot); @@ -38622,14 +37874,14 @@ uint32_t ThriftHiveMetastore_heartbeat_write_id_args::write(::apache::thrift::pr } -ThriftHiveMetastore_heartbeat_write_id_pargs::~ThriftHiveMetastore_heartbeat_write_id_pargs() throw() { +ThriftHiveMetastore_clear_file_metadata_pargs::~ThriftHiveMetastore_clear_file_metadata_pargs() throw() { } -uint32_t ThriftHiveMetastore_heartbeat_write_id_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_clear_file_metadata_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_heartbeat_write_id_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_clear_file_metadata_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->req)).write(oprot); @@ -38641,11 +37893,11 @@ uint32_t ThriftHiveMetastore_heartbeat_write_id_pargs::write(::apache::thrift::p } -ThriftHiveMetastore_heartbeat_write_id_result::~ThriftHiveMetastore_heartbeat_write_id_result() throw() { +ThriftHiveMetastore_clear_file_metadata_result::~ThriftHiveMetastore_clear_file_metadata_result() throw() { } -uint32_t ThriftHiveMetastore_heartbeat_write_id_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_clear_file_metadata_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -38686,11 +37938,11 @@ uint32_t ThriftHiveMetastore_heartbeat_write_id_result::read(::apache::thrift::p return xfer; } -uint32_t ThriftHiveMetastore_heartbeat_write_id_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_clear_file_metadata_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_heartbeat_write_id_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_clear_file_metadata_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); @@ -38703,11 +37955,11 @@ uint32_t ThriftHiveMetastore_heartbeat_write_id_result::write(::apache::thrift:: } -ThriftHiveMetastore_heartbeat_write_id_presult::~ThriftHiveMetastore_heartbeat_write_id_presult() throw() { +ThriftHiveMetastore_clear_file_metadata_presult::~ThriftHiveMetastore_clear_file_metadata_presult() throw() { } -uint32_t ThriftHiveMetastore_heartbeat_write_id_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_clear_file_metadata_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -38749,11 +38001,11 @@ uint32_t ThriftHiveMetastore_heartbeat_write_id_presult::read(::apache::thrift:: } -ThriftHiveMetastore_get_valid_write_ids_args::~ThriftHiveMetastore_get_valid_write_ids_args() throw() { +ThriftHiveMetastore_cache_file_metadata_args::~ThriftHiveMetastore_cache_file_metadata_args() throw() { } -uint32_t ThriftHiveMetastore_get_valid_write_ids_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_cache_file_metadata_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -38794,10 +38046,10 @@ uint32_t ThriftHiveMetastore_get_valid_write_ids_args::read(::apache::thrift::pr return xfer; } -uint32_t ThriftHiveMetastore_get_valid_write_ids_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_cache_file_metadata_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_valid_write_ids_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_cache_file_metadata_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->req.write(oprot); @@ -38809,14 +38061,14 @@ uint32_t ThriftHiveMetastore_get_valid_write_ids_args::write(::apache::thrift::p } -ThriftHiveMetastore_get_valid_write_ids_pargs::~ThriftHiveMetastore_get_valid_write_ids_pargs() throw() { +ThriftHiveMetastore_cache_file_metadata_pargs::~ThriftHiveMetastore_cache_file_metadata_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_valid_write_ids_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_cache_file_metadata_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_valid_write_ids_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_cache_file_metadata_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->req)).write(oprot); @@ -38828,11 +38080,11 @@ uint32_t ThriftHiveMetastore_get_valid_write_ids_pargs::write(::apache::thrift:: } -ThriftHiveMetastore_get_valid_write_ids_result::~ThriftHiveMetastore_get_valid_write_ids_result() throw() { +ThriftHiveMetastore_cache_file_metadata_result::~ThriftHiveMetastore_cache_file_metadata_result() throw() { } -uint32_t ThriftHiveMetastore_get_valid_write_ids_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_cache_file_metadata_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -38873,11 +38125,11 @@ uint32_t ThriftHiveMetastore_get_valid_write_ids_result::read(::apache::thrift:: return xfer; } -uint32_t ThriftHiveMetastore_get_valid_write_ids_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_cache_file_metadata_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_valid_write_ids_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_cache_file_metadata_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); @@ -38890,11 +38142,11 @@ uint32_t ThriftHiveMetastore_get_valid_write_ids_result::write(::apache::thrift: } -ThriftHiveMetastore_get_valid_write_ids_presult::~ThriftHiveMetastore_get_valid_write_ids_presult() throw() { +ThriftHiveMetastore_cache_file_metadata_presult::~ThriftHiveMetastore_cache_file_metadata_presult() throw() { } -uint32_t ThriftHiveMetastore_get_valid_write_ids_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_cache_file_metadata_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -48680,238 +47932,6 @@ void ThriftHiveMetastoreClient::recv_cache_file_metadata(CacheFileMetadataResult throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "cache_file_metadata failed: unknown result"); } -void ThriftHiveMetastoreClient::get_next_write_id(GetNextWriteIdResult& _return, const GetNextWriteIdRequest& req) -{ - send_get_next_write_id(req); - recv_get_next_write_id(_return); -} - -void ThriftHiveMetastoreClient::send_get_next_write_id(const GetNextWriteIdRequest& req) -{ - int32_t cseqid = 0; - oprot_->writeMessageBegin("get_next_write_id", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_next_write_id_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); -} - -void ThriftHiveMetastoreClient::recv_get_next_write_id(GetNextWriteIdResult& _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_next_write_id") != 0) { - iprot_->skip(::apache::thrift::protocol::T_STRUCT); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - } - ThriftHiveMetastore_get_next_write_id_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_next_write_id failed: unknown result"); -} - -void ThriftHiveMetastoreClient::finalize_write_id(FinalizeWriteIdResult& _return, const FinalizeWriteIdRequest& req) -{ - send_finalize_write_id(req); - recv_finalize_write_id(_return); -} - -void ThriftHiveMetastoreClient::send_finalize_write_id(const FinalizeWriteIdRequest& req) -{ - int32_t cseqid = 0; - oprot_->writeMessageBegin("finalize_write_id", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_finalize_write_id_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); -} - -void ThriftHiveMetastoreClient::recv_finalize_write_id(FinalizeWriteIdResult& _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("finalize_write_id") != 0) { - iprot_->skip(::apache::thrift::protocol::T_STRUCT); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - } - ThriftHiveMetastore_finalize_write_id_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, "finalize_write_id failed: unknown result"); -} - -void ThriftHiveMetastoreClient::heartbeat_write_id(HeartbeatWriteIdResult& _return, const HeartbeatWriteIdRequest& req) -{ - send_heartbeat_write_id(req); - recv_heartbeat_write_id(_return); -} - -void ThriftHiveMetastoreClient::send_heartbeat_write_id(const HeartbeatWriteIdRequest& req) -{ - int32_t cseqid = 0; - oprot_->writeMessageBegin("heartbeat_write_id", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_heartbeat_write_id_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); -} - -void ThriftHiveMetastoreClient::recv_heartbeat_write_id(HeartbeatWriteIdResult& _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("heartbeat_write_id") != 0) { - iprot_->skip(::apache::thrift::protocol::T_STRUCT); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - } - ThriftHiveMetastore_heartbeat_write_id_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, "heartbeat_write_id failed: unknown result"); -} - -void ThriftHiveMetastoreClient::get_valid_write_ids(GetValidWriteIdsResult& _return, const GetValidWriteIdsRequest& req) -{ - send_get_valid_write_ids(req); - recv_get_valid_write_ids(_return); -} - -void ThriftHiveMetastoreClient::send_get_valid_write_ids(const GetValidWriteIdsRequest& req) -{ - int32_t cseqid = 0; - oprot_->writeMessageBegin("get_valid_write_ids", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_valid_write_ids_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); -} - -void ThriftHiveMetastoreClient::recv_get_valid_write_ids(GetValidWriteIdsResult& _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_valid_write_ids") != 0) { - iprot_->skip(::apache::thrift::protocol::T_STRUCT); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - } - ThriftHiveMetastore_get_valid_write_ids_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_valid_write_ids failed: unknown result"); -} - bool ThriftHiveMetastoreProcessor::dispatchCall(::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, const std::string& fname, int32_t seqid, void* callContext) { ProcessMap::iterator pfn; pfn = processMap_.find(fname); @@ -58030,222 +57050,6 @@ void ThriftHiveMetastoreProcessor::process_cache_file_metadata(int32_t seqid, :: } } -void ThriftHiveMetastoreProcessor::process_get_next_write_id(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_next_write_id", callContext); - } - ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.get_next_write_id"); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_next_write_id"); - } - - ThriftHiveMetastore_get_next_write_id_args args; - args.read(iprot); - iprot->readMessageEnd(); - uint32_t bytes = iprot->getTransport()->readEnd(); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_next_write_id", bytes); - } - - ThriftHiveMetastore_get_next_write_id_result result; - try { - iface_->get_next_write_id(result.success, args.req); - result.__isset.success = true; - } catch (const std::exception& e) { - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_next_write_id"); - } - - ::apache::thrift::TApplicationException x(e.what()); - oprot->writeMessageBegin("get_next_write_id", ::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_next_write_id"); - } - - oprot->writeMessageBegin("get_next_write_id", ::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_next_write_id", bytes); - } -} - -void ThriftHiveMetastoreProcessor::process_finalize_write_id(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.finalize_write_id", callContext); - } - ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.finalize_write_id"); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.finalize_write_id"); - } - - ThriftHiveMetastore_finalize_write_id_args args; - args.read(iprot); - iprot->readMessageEnd(); - uint32_t bytes = iprot->getTransport()->readEnd(); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.finalize_write_id", bytes); - } - - ThriftHiveMetastore_finalize_write_id_result result; - try { - iface_->finalize_write_id(result.success, args.req); - result.__isset.success = true; - } catch (const std::exception& e) { - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->handlerError(ctx, "ThriftHiveMetastore.finalize_write_id"); - } - - ::apache::thrift::TApplicationException x(e.what()); - oprot->writeMessageBegin("finalize_write_id", ::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.finalize_write_id"); - } - - oprot->writeMessageBegin("finalize_write_id", ::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.finalize_write_id", bytes); - } -} - -void ThriftHiveMetastoreProcessor::process_heartbeat_write_id(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.heartbeat_write_id", callContext); - } - ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.heartbeat_write_id"); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.heartbeat_write_id"); - } - - ThriftHiveMetastore_heartbeat_write_id_args args; - args.read(iprot); - iprot->readMessageEnd(); - uint32_t bytes = iprot->getTransport()->readEnd(); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.heartbeat_write_id", bytes); - } - - ThriftHiveMetastore_heartbeat_write_id_result result; - try { - iface_->heartbeat_write_id(result.success, args.req); - result.__isset.success = true; - } catch (const std::exception& e) { - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->handlerError(ctx, "ThriftHiveMetastore.heartbeat_write_id"); - } - - ::apache::thrift::TApplicationException x(e.what()); - oprot->writeMessageBegin("heartbeat_write_id", ::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.heartbeat_write_id"); - } - - oprot->writeMessageBegin("heartbeat_write_id", ::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.heartbeat_write_id", bytes); - } -} - -void ThriftHiveMetastoreProcessor::process_get_valid_write_ids(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_valid_write_ids", callContext); - } - ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.get_valid_write_ids"); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_valid_write_ids"); - } - - ThriftHiveMetastore_get_valid_write_ids_args args; - args.read(iprot); - iprot->readMessageEnd(); - uint32_t bytes = iprot->getTransport()->readEnd(); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_valid_write_ids", bytes); - } - - ThriftHiveMetastore_get_valid_write_ids_result result; - try { - iface_->get_valid_write_ids(result.success, args.req); - result.__isset.success = true; - } catch (const std::exception& e) { - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_valid_write_ids"); - } - - ::apache::thrift::TApplicationException x(e.what()); - oprot->writeMessageBegin("get_valid_write_ids", ::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_valid_write_ids"); - } - - oprot->writeMessageBegin("get_valid_write_ids", ::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_valid_write_ids", bytes); - } -} - ::boost::shared_ptr< ::apache::thrift::TProcessor > ThriftHiveMetastoreProcessorFactory::getProcessor(const ::apache::thrift::TConnectionInfo& connInfo) { ::apache::thrift::ReleaseHandler< ThriftHiveMetastoreIfFactory > cleanup(handlerFactory_); ::boost::shared_ptr< ThriftHiveMetastoreIf > handler(handlerFactory_->getHandler(connInfo), cleanup); @@ -68537,95 +67341,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_principals_in_role(GetPrincip iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_principals_in_role") != 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_principals_in_role_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; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_principals_in_role 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::get_role_grants_for_principal(GetRoleGrantsForPrincipalResponse& _return, const GetRoleGrantsForPrincipalRequest& request) -{ - int32_t seqid = send_get_role_grants_for_principal(request); - recv_get_role_grants_for_principal(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_role_grants_for_principal(const GetRoleGrantsForPrincipalRequest& request) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_role_grants_for_principal", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_role_grants_for_principal_pargs args; - args.request = &request; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_role_grants_for_principal(GetRoleGrantsForPrincipalResponse& _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_role_grants_for_principal") != 0) { + if (fname.compare("get_principals_in_role") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -68634,7 +67350,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_role_grants_for_principal(Get using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_role_grants_for_principal_presult result; + ThriftHiveMetastore_get_principals_in_role_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -68650,7 +67366,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_role_grants_for_principal(Get throw result.o1; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_role_grants_for_principal failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_principals_in_role failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -68660,22 +67376,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_role_grants_for_principal(Get } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_privilege_set(PrincipalPrivilegeSet& _return, const HiveObjectRef& hiveObject, const std::string& user_name, const std::vector & group_names) +void ThriftHiveMetastoreConcurrentClient::get_role_grants_for_principal(GetRoleGrantsForPrincipalResponse& _return, const GetRoleGrantsForPrincipalRequest& request) { - int32_t seqid = send_get_privilege_set(hiveObject, user_name, group_names); - recv_get_privilege_set(_return, seqid); + int32_t seqid = send_get_role_grants_for_principal(request); + recv_get_role_grants_for_principal(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_privilege_set(const HiveObjectRef& hiveObject, const std::string& user_name, const std::vector & group_names) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_role_grants_for_principal(const GetRoleGrantsForPrincipalRequest& request) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_privilege_set", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_role_grants_for_principal", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_privilege_set_pargs args; - args.hiveObject = &hiveObject; - args.user_name = &user_name; - args.group_names = &group_names; + ThriftHiveMetastore_get_role_grants_for_principal_pargs args; + args.request = &request; args.write(oprot_); oprot_->writeMessageEnd(); @@ -68686,7 +67400,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_privilege_set(const HiveOb return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_privilege_set(PrincipalPrivilegeSet& _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_role_grants_for_principal(GetRoleGrantsForPrincipalResponse& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -68715,7 +67429,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_privilege_set(PrincipalPrivil iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_privilege_set") != 0) { + if (fname.compare("get_role_grants_for_principal") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -68724,7 +67438,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_privilege_set(PrincipalPrivil using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_privilege_set_presult result; + ThriftHiveMetastore_get_role_grants_for_principal_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -68740,7 +67454,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_privilege_set(PrincipalPrivil throw result.o1; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_privilege_set failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_role_grants_for_principal failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -68750,22 +67464,22 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_privilege_set(PrincipalPrivil } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::list_privileges(std::vector & _return, const std::string& principal_name, const PrincipalType::type principal_type, const HiveObjectRef& hiveObject) +void ThriftHiveMetastoreConcurrentClient::get_privilege_set(PrincipalPrivilegeSet& _return, const HiveObjectRef& hiveObject, const std::string& user_name, const std::vector & group_names) { - int32_t seqid = send_list_privileges(principal_name, principal_type, hiveObject); - recv_list_privileges(_return, seqid); + int32_t seqid = send_get_privilege_set(hiveObject, user_name, group_names); + recv_get_privilege_set(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_list_privileges(const std::string& principal_name, const PrincipalType::type principal_type, const HiveObjectRef& hiveObject) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_privilege_set(const HiveObjectRef& hiveObject, const std::string& user_name, const std::vector & group_names) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("list_privileges", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_privilege_set", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_list_privileges_pargs args; - args.principal_name = &principal_name; - args.principal_type = &principal_type; + ThriftHiveMetastore_get_privilege_set_pargs args; args.hiveObject = &hiveObject; + args.user_name = &user_name; + args.group_names = &group_names; args.write(oprot_); oprot_->writeMessageEnd(); @@ -68776,7 +67490,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_list_privileges(const std::str return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_list_privileges(std::vector & _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_privilege_set(PrincipalPrivilegeSet& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -68805,7 +67519,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_list_privileges(std::vectorreadMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("list_privileges") != 0) { + if (fname.compare("get_privilege_set") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -68814,7 +67528,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_list_privileges(std::vectorreadMessageEnd(); @@ -68830,7 +67544,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_list_privileges(std::vectorsync_.updatePending(fname, mtype, rseqid); @@ -68840,20 +67554,22 @@ void ThriftHiveMetastoreConcurrentClient::recv_list_privileges(std::vector & _return, const std::string& principal_name, const PrincipalType::type principal_type, const HiveObjectRef& hiveObject) { - int32_t seqid = send_grant_privileges(privileges); - return recv_grant_privileges(seqid); + int32_t seqid = send_list_privileges(principal_name, principal_type, hiveObject); + recv_list_privileges(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_grant_privileges(const PrivilegeBag& privileges) +int32_t ThriftHiveMetastoreConcurrentClient::send_list_privileges(const std::string& principal_name, const PrincipalType::type principal_type, const HiveObjectRef& hiveObject) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("grant_privileges", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("list_privileges", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_grant_privileges_pargs args; - args.privileges = &privileges; + ThriftHiveMetastore_list_privileges_pargs args; + args.principal_name = &principal_name; + args.principal_type = &principal_type; + args.hiveObject = &hiveObject; args.write(oprot_); oprot_->writeMessageEnd(); @@ -68864,7 +67580,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_grant_privileges(const Privile return cseqid; } -bool ThriftHiveMetastoreConcurrentClient::recv_grant_privileges(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_list_privileges(std::vector & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -68893,7 +67609,7 @@ bool ThriftHiveMetastoreConcurrentClient::recv_grant_privileges(const int32_t se iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("grant_privileges") != 0) { + if (fname.compare("list_privileges") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -68902,23 +67618,23 @@ bool ThriftHiveMetastoreConcurrentClient::recv_grant_privileges(const int32_t se using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - bool _return; - ThriftHiveMetastore_grant_privileges_presult result; + ThriftHiveMetastore_list_privileges_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 _return; + return; } if (result.__isset.o1) { sentry.commit(); throw result.o1; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "grant_privileges failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "list_privileges failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -68928,19 +67644,19 @@ bool ThriftHiveMetastoreConcurrentClient::recv_grant_privileges(const int32_t se } // end while(true) } -bool ThriftHiveMetastoreConcurrentClient::revoke_privileges(const PrivilegeBag& privileges) +bool ThriftHiveMetastoreConcurrentClient::grant_privileges(const PrivilegeBag& privileges) { - int32_t seqid = send_revoke_privileges(privileges); - return recv_revoke_privileges(seqid); + int32_t seqid = send_grant_privileges(privileges); + return recv_grant_privileges(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_revoke_privileges(const PrivilegeBag& privileges) +int32_t ThriftHiveMetastoreConcurrentClient::send_grant_privileges(const PrivilegeBag& privileges) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("revoke_privileges", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("grant_privileges", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_revoke_privileges_pargs args; + ThriftHiveMetastore_grant_privileges_pargs args; args.privileges = &privileges; args.write(oprot_); @@ -68952,7 +67668,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_revoke_privileges(const Privil return cseqid; } -bool ThriftHiveMetastoreConcurrentClient::recv_revoke_privileges(const int32_t seqid) +bool ThriftHiveMetastoreConcurrentClient::recv_grant_privileges(const int32_t seqid) { int32_t rseqid = 0; @@ -68981,7 +67697,7 @@ bool ThriftHiveMetastoreConcurrentClient::recv_revoke_privileges(const int32_t s iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("revoke_privileges") != 0) { + if (fname.compare("grant_privileges") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -68991,7 +67707,7 @@ bool ThriftHiveMetastoreConcurrentClient::recv_revoke_privileges(const int32_t s throw TProtocolException(TProtocolException::INVALID_DATA); } bool _return; - ThriftHiveMetastore_revoke_privileges_presult result; + ThriftHiveMetastore_grant_privileges_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -69006,95 +67722,7 @@ bool ThriftHiveMetastoreConcurrentClient::recv_revoke_privileges(const int32_t s throw result.o1; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "revoke_privileges 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::grant_revoke_privileges(GrantRevokePrivilegeResponse& _return, const GrantRevokePrivilegeRequest& request) -{ - int32_t seqid = send_grant_revoke_privileges(request); - recv_grant_revoke_privileges(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_grant_revoke_privileges(const GrantRevokePrivilegeRequest& request) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("grant_revoke_privileges", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_grant_revoke_privileges_pargs args; - args.request = &request; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_grant_revoke_privileges(GrantRevokePrivilegeResponse& _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("grant_revoke_privileges") != 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_grant_revoke_privileges_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; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "grant_revoke_privileges failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "grant_privileges failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -69104,21 +67732,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_grant_revoke_privileges(GrantRevo } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::set_ugi(std::vector & _return, const std::string& user_name, const std::vector & group_names) +bool ThriftHiveMetastoreConcurrentClient::revoke_privileges(const PrivilegeBag& privileges) { - int32_t seqid = send_set_ugi(user_name, group_names); - recv_set_ugi(_return, seqid); + int32_t seqid = send_revoke_privileges(privileges); + return recv_revoke_privileges(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_set_ugi(const std::string& user_name, const std::vector & group_names) +int32_t ThriftHiveMetastoreConcurrentClient::send_revoke_privileges(const PrivilegeBag& privileges) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("set_ugi", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("revoke_privileges", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_set_ugi_pargs args; - args.user_name = &user_name; - args.group_names = &group_names; + ThriftHiveMetastore_revoke_privileges_pargs args; + args.privileges = &privileges; args.write(oprot_); oprot_->writeMessageEnd(); @@ -69129,7 +67756,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_set_ugi(const std::string& use return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_set_ugi(std::vector & _return, const int32_t seqid) +bool ThriftHiveMetastoreConcurrentClient::recv_revoke_privileges(const int32_t seqid) { int32_t rseqid = 0; @@ -69158,7 +67785,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_set_ugi(std::vector iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("set_ugi") != 0) { + if (fname.compare("revoke_privileges") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -69167,23 +67794,23 @@ void ThriftHiveMetastoreConcurrentClient::recv_set_ugi(std::vector using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_set_ugi_presult result; + bool _return; + ThriftHiveMetastore_revoke_privileges_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; + return _return; } if (result.__isset.o1) { sentry.commit(); throw result.o1; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "set_ugi failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "revoke_privileges failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -69193,21 +67820,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_set_ugi(std::vector } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_delegation_token(std::string& _return, const std::string& token_owner, const std::string& renewer_kerberos_principal_name) +void ThriftHiveMetastoreConcurrentClient::grant_revoke_privileges(GrantRevokePrivilegeResponse& _return, const GrantRevokePrivilegeRequest& request) { - int32_t seqid = send_get_delegation_token(token_owner, renewer_kerberos_principal_name); - recv_get_delegation_token(_return, seqid); + int32_t seqid = send_grant_revoke_privileges(request); + recv_grant_revoke_privileges(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_delegation_token(const std::string& token_owner, const std::string& renewer_kerberos_principal_name) +int32_t ThriftHiveMetastoreConcurrentClient::send_grant_revoke_privileges(const GrantRevokePrivilegeRequest& request) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_delegation_token", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("grant_revoke_privileges", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_delegation_token_pargs args; - args.token_owner = &token_owner; - args.renewer_kerberos_principal_name = &renewer_kerberos_principal_name; + ThriftHiveMetastore_grant_revoke_privileges_pargs args; + args.request = &request; args.write(oprot_); oprot_->writeMessageEnd(); @@ -69218,7 +67844,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_delegation_token(const std return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_delegation_token(std::string& _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_grant_revoke_privileges(GrantRevokePrivilegeResponse& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -69247,7 +67873,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_delegation_token(std::string& iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_delegation_token") != 0) { + if (fname.compare("grant_revoke_privileges") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -69256,7 +67882,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_delegation_token(std::string& using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_delegation_token_presult result; + ThriftHiveMetastore_grant_revoke_privileges_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -69272,7 +67898,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_delegation_token(std::string& throw result.o1; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_delegation_token failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "grant_revoke_privileges failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -69282,20 +67908,21 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_delegation_token(std::string& } // end while(true) } -int64_t ThriftHiveMetastoreConcurrentClient::renew_delegation_token(const std::string& token_str_form) +void ThriftHiveMetastoreConcurrentClient::set_ugi(std::vector & _return, const std::string& user_name, const std::vector & group_names) { - int32_t seqid = send_renew_delegation_token(token_str_form); - return recv_renew_delegation_token(seqid); + int32_t seqid = send_set_ugi(user_name, group_names); + recv_set_ugi(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_renew_delegation_token(const std::string& token_str_form) +int32_t ThriftHiveMetastoreConcurrentClient::send_set_ugi(const std::string& user_name, const std::vector & group_names) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("renew_delegation_token", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("set_ugi", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_renew_delegation_token_pargs args; - args.token_str_form = &token_str_form; + ThriftHiveMetastore_set_ugi_pargs args; + args.user_name = &user_name; + args.group_names = &group_names; args.write(oprot_); oprot_->writeMessageEnd(); @@ -69306,7 +67933,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_renew_delegation_token(const s return cseqid; } -int64_t ThriftHiveMetastoreConcurrentClient::recv_renew_delegation_token(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_set_ugi(std::vector & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -69335,7 +67962,7 @@ int64_t ThriftHiveMetastoreConcurrentClient::recv_renew_delegation_token(const i iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("renew_delegation_token") != 0) { + if (fname.compare("set_ugi") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -69344,23 +67971,23 @@ int64_t ThriftHiveMetastoreConcurrentClient::recv_renew_delegation_token(const i using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - int64_t _return; - ThriftHiveMetastore_renew_delegation_token_presult result; + ThriftHiveMetastore_set_ugi_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 _return; + return; } if (result.__isset.o1) { sentry.commit(); throw result.o1; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "renew_delegation_token failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "set_ugi failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -69370,20 +67997,21 @@ int64_t ThriftHiveMetastoreConcurrentClient::recv_renew_delegation_token(const i } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::cancel_delegation_token(const std::string& token_str_form) +void ThriftHiveMetastoreConcurrentClient::get_delegation_token(std::string& _return, const std::string& token_owner, const std::string& renewer_kerberos_principal_name) { - int32_t seqid = send_cancel_delegation_token(token_str_form); - recv_cancel_delegation_token(seqid); + int32_t seqid = send_get_delegation_token(token_owner, renewer_kerberos_principal_name); + recv_get_delegation_token(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_cancel_delegation_token(const std::string& token_str_form) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_delegation_token(const std::string& token_owner, const std::string& renewer_kerberos_principal_name) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("cancel_delegation_token", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_delegation_token", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_cancel_delegation_token_pargs args; - args.token_str_form = &token_str_form; + ThriftHiveMetastore_get_delegation_token_pargs args; + args.token_owner = &token_owner; + args.renewer_kerberos_principal_name = &renewer_kerberos_principal_name; args.write(oprot_); oprot_->writeMessageEnd(); @@ -69394,7 +68022,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_cancel_delegation_token(const return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_cancel_delegation_token(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_delegation_token(std::string& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -69423,7 +68051,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_cancel_delegation_token(const int iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("cancel_delegation_token") != 0) { + if (fname.compare("get_delegation_token") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -69432,17 +68060,23 @@ void ThriftHiveMetastoreConcurrentClient::recv_cancel_delegation_token(const int using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_cancel_delegation_token_presult result; + ThriftHiveMetastore_get_delegation_token_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; + } if (result.__isset.o1) { sentry.commit(); throw result.o1; } - sentry.commit(); - return; + // in a bad state, don't commit + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_delegation_token failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -69452,21 +68086,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_cancel_delegation_token(const int } // end while(true) } -bool ThriftHiveMetastoreConcurrentClient::add_token(const std::string& token_identifier, const std::string& delegation_token) +int64_t ThriftHiveMetastoreConcurrentClient::renew_delegation_token(const std::string& token_str_form) { - int32_t seqid = send_add_token(token_identifier, delegation_token); - return recv_add_token(seqid); + int32_t seqid = send_renew_delegation_token(token_str_form); + return recv_renew_delegation_token(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_add_token(const std::string& token_identifier, const std::string& delegation_token) +int32_t ThriftHiveMetastoreConcurrentClient::send_renew_delegation_token(const std::string& token_str_form) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("add_token", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("renew_delegation_token", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_add_token_pargs args; - args.token_identifier = &token_identifier; - args.delegation_token = &delegation_token; + ThriftHiveMetastore_renew_delegation_token_pargs args; + args.token_str_form = &token_str_form; args.write(oprot_); oprot_->writeMessageEnd(); @@ -69477,7 +68110,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_add_token(const std::string& t return cseqid; } -bool ThriftHiveMetastoreConcurrentClient::recv_add_token(const int32_t seqid) +int64_t ThriftHiveMetastoreConcurrentClient::recv_renew_delegation_token(const int32_t seqid) { int32_t rseqid = 0; @@ -69506,7 +68139,7 @@ bool ThriftHiveMetastoreConcurrentClient::recv_add_token(const int32_t seqid) iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("add_token") != 0) { + if (fname.compare("renew_delegation_token") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -69515,8 +68148,8 @@ bool ThriftHiveMetastoreConcurrentClient::recv_add_token(const int32_t seqid) using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - bool _return; - ThriftHiveMetastore_add_token_presult result; + int64_t _return; + ThriftHiveMetastore_renew_delegation_token_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -69526,8 +68159,12 @@ bool ThriftHiveMetastoreConcurrentClient::recv_add_token(const int32_t seqid) sentry.commit(); return _return; } + if (result.__isset.o1) { + sentry.commit(); + throw result.o1; + } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "add_token failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "renew_delegation_token failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -69537,20 +68174,20 @@ bool ThriftHiveMetastoreConcurrentClient::recv_add_token(const int32_t seqid) } // end while(true) } -bool ThriftHiveMetastoreConcurrentClient::remove_token(const std::string& token_identifier) +void ThriftHiveMetastoreConcurrentClient::cancel_delegation_token(const std::string& token_str_form) { - int32_t seqid = send_remove_token(token_identifier); - return recv_remove_token(seqid); + int32_t seqid = send_cancel_delegation_token(token_str_form); + recv_cancel_delegation_token(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_remove_token(const std::string& token_identifier) +int32_t ThriftHiveMetastoreConcurrentClient::send_cancel_delegation_token(const std::string& token_str_form) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("remove_token", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("cancel_delegation_token", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_remove_token_pargs args; - args.token_identifier = &token_identifier; + ThriftHiveMetastore_cancel_delegation_token_pargs args; + args.token_str_form = &token_str_form; args.write(oprot_); oprot_->writeMessageEnd(); @@ -69561,7 +68198,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_remove_token(const std::string return cseqid; } -bool ThriftHiveMetastoreConcurrentClient::recv_remove_token(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_cancel_delegation_token(const int32_t seqid) { int32_t rseqid = 0; @@ -69590,7 +68227,7 @@ bool ThriftHiveMetastoreConcurrentClient::recv_remove_token(const int32_t seqid) iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("remove_token") != 0) { + if (fname.compare("cancel_delegation_token") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -69599,19 +68236,17 @@ bool ThriftHiveMetastoreConcurrentClient::recv_remove_token(const int32_t seqid) using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - bool _return; - ThriftHiveMetastore_remove_token_presult result; - result.success = &_return; + ThriftHiveMetastore_cancel_delegation_token_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - if (result.__isset.success) { + if (result.__isset.o1) { sentry.commit(); - return _return; + throw result.o1; } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "remove_token failed: unknown result"); + sentry.commit(); + return; } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -69621,20 +68256,21 @@ bool ThriftHiveMetastoreConcurrentClient::recv_remove_token(const int32_t seqid) } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_token(std::string& _return, const std::string& token_identifier) +bool ThriftHiveMetastoreConcurrentClient::add_token(const std::string& token_identifier, const std::string& delegation_token) { - int32_t seqid = send_get_token(token_identifier); - recv_get_token(_return, seqid); + int32_t seqid = send_add_token(token_identifier, delegation_token); + return recv_add_token(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_token(const std::string& token_identifier) +int32_t ThriftHiveMetastoreConcurrentClient::send_add_token(const std::string& token_identifier, const std::string& delegation_token) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_token", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("add_token", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_token_pargs args; + ThriftHiveMetastore_add_token_pargs args; args.token_identifier = &token_identifier; + args.delegation_token = &delegation_token; args.write(oprot_); oprot_->writeMessageEnd(); @@ -69645,7 +68281,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_token(const std::string& t return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_token(std::string& _return, const int32_t seqid) +bool ThriftHiveMetastoreConcurrentClient::recv_add_token(const int32_t seqid) { int32_t rseqid = 0; @@ -69674,7 +68310,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_token(std::string& _return, c iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_token") != 0) { + if (fname.compare("add_token") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -69683,19 +68319,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_token(std::string& _return, c using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_token_presult result; + bool _return; + ThriftHiveMetastore_add_token_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; + return _return; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_token failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "add_token failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -69705,19 +68341,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_token(std::string& _return, c } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_all_token_identifiers(std::vector & _return) +bool ThriftHiveMetastoreConcurrentClient::remove_token(const std::string& token_identifier) { - int32_t seqid = send_get_all_token_identifiers(); - recv_get_all_token_identifiers(_return, seqid); + int32_t seqid = send_remove_token(token_identifier); + return recv_remove_token(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_all_token_identifiers() +int32_t ThriftHiveMetastoreConcurrentClient::send_remove_token(const std::string& token_identifier) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_all_token_identifiers", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("remove_token", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_all_token_identifiers_pargs args; + ThriftHiveMetastore_remove_token_pargs args; + args.token_identifier = &token_identifier; args.write(oprot_); oprot_->writeMessageEnd(); @@ -69728,7 +68365,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_all_token_identifiers() return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_all_token_identifiers(std::vector & _return, const int32_t seqid) +bool ThriftHiveMetastoreConcurrentClient::recv_remove_token(const int32_t seqid) { int32_t rseqid = 0; @@ -69757,7 +68394,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_all_token_identifiers(std::ve iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_all_token_identifiers") != 0) { + if (fname.compare("remove_token") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -69766,19 +68403,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_all_token_identifiers(std::ve using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_all_token_identifiers_presult result; + bool _return; + ThriftHiveMetastore_remove_token_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; + return _return; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_all_token_identifiers failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "remove_token failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -69788,20 +68425,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_all_token_identifiers(std::ve } // end while(true) } -int32_t ThriftHiveMetastoreConcurrentClient::add_master_key(const std::string& key) +void ThriftHiveMetastoreConcurrentClient::get_token(std::string& _return, const std::string& token_identifier) { - int32_t seqid = send_add_master_key(key); - return recv_add_master_key(seqid); + int32_t seqid = send_get_token(token_identifier); + recv_get_token(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_add_master_key(const std::string& key) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_token(const std::string& token_identifier) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("add_master_key", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_token", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_add_master_key_pargs args; - args.key = &key; + ThriftHiveMetastore_get_token_pargs args; + args.token_identifier = &token_identifier; args.write(oprot_); oprot_->writeMessageEnd(); @@ -69812,7 +68449,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_add_master_key(const std::stri return cseqid; } -int32_t ThriftHiveMetastoreConcurrentClient::recv_add_master_key(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_token(std::string& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -69841,7 +68478,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::recv_add_master_key(const int32_t s iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("add_master_key") != 0) { + if (fname.compare("get_token") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -69850,23 +68487,19 @@ int32_t ThriftHiveMetastoreConcurrentClient::recv_add_master_key(const int32_t s using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - int32_t _return; - ThriftHiveMetastore_add_master_key_presult result; + ThriftHiveMetastore_get_token_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 _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; + return; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "add_master_key failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_token failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -69876,21 +68509,19 @@ int32_t ThriftHiveMetastoreConcurrentClient::recv_add_master_key(const int32_t s } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::update_master_key(const int32_t seq_number, const std::string& key) +void ThriftHiveMetastoreConcurrentClient::get_all_token_identifiers(std::vector & _return) { - int32_t seqid = send_update_master_key(seq_number, key); - recv_update_master_key(seqid); + int32_t seqid = send_get_all_token_identifiers(); + recv_get_all_token_identifiers(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_update_master_key(const int32_t seq_number, const std::string& key) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_all_token_identifiers() { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("update_master_key", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_all_token_identifiers", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_update_master_key_pargs args; - args.seq_number = &seq_number; - args.key = &key; + ThriftHiveMetastore_get_all_token_identifiers_pargs args; args.write(oprot_); oprot_->writeMessageEnd(); @@ -69901,7 +68532,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_update_master_key(const int32_ return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_update_master_key(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_all_token_identifiers(std::vector & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -69930,7 +68561,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_update_master_key(const int32_t s iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("update_master_key") != 0) { + if (fname.compare("get_all_token_identifiers") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -69939,21 +68570,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_update_master_key(const int32_t s using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_update_master_key_presult result; + ThriftHiveMetastore_get_all_token_identifiers_presult result; + result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { + if (result.__isset.success) { + // _return pointer has now been filled sentry.commit(); - throw result.o2; + return; } - sentry.commit(); - return; + // in a bad state, don't commit + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_all_token_identifiers failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -69963,20 +68592,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_update_master_key(const int32_t s } // end while(true) } -bool ThriftHiveMetastoreConcurrentClient::remove_master_key(const int32_t key_seq) +int32_t ThriftHiveMetastoreConcurrentClient::add_master_key(const std::string& key) { - int32_t seqid = send_remove_master_key(key_seq); - return recv_remove_master_key(seqid); + int32_t seqid = send_add_master_key(key); + return recv_add_master_key(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_remove_master_key(const int32_t key_seq) +int32_t ThriftHiveMetastoreConcurrentClient::send_add_master_key(const std::string& key) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("remove_master_key", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("add_master_key", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_remove_master_key_pargs args; - args.key_seq = &key_seq; + ThriftHiveMetastore_add_master_key_pargs args; + args.key = &key; args.write(oprot_); oprot_->writeMessageEnd(); @@ -69987,7 +68616,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_remove_master_key(const int32_ return cseqid; } -bool ThriftHiveMetastoreConcurrentClient::recv_remove_master_key(const int32_t seqid) +int32_t ThriftHiveMetastoreConcurrentClient::recv_add_master_key(const int32_t seqid) { int32_t rseqid = 0; @@ -70016,7 +68645,7 @@ bool ThriftHiveMetastoreConcurrentClient::recv_remove_master_key(const int32_t s iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("remove_master_key") != 0) { + if (fname.compare("add_master_key") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -70025,8 +68654,8 @@ bool ThriftHiveMetastoreConcurrentClient::recv_remove_master_key(const int32_t s using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - bool _return; - ThriftHiveMetastore_remove_master_key_presult result; + int32_t _return; + ThriftHiveMetastore_add_master_key_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -70036,8 +68665,12 @@ bool ThriftHiveMetastoreConcurrentClient::recv_remove_master_key(const int32_t s sentry.commit(); return _return; } + if (result.__isset.o1) { + sentry.commit(); + throw result.o1; + } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "remove_master_key failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "add_master_key failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -70047,19 +68680,21 @@ bool ThriftHiveMetastoreConcurrentClient::recv_remove_master_key(const int32_t s } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_master_keys(std::vector & _return) +void ThriftHiveMetastoreConcurrentClient::update_master_key(const int32_t seq_number, const std::string& key) { - int32_t seqid = send_get_master_keys(); - recv_get_master_keys(_return, seqid); + int32_t seqid = send_update_master_key(seq_number, key); + recv_update_master_key(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_master_keys() +int32_t ThriftHiveMetastoreConcurrentClient::send_update_master_key(const int32_t seq_number, const std::string& key) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_master_keys", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("update_master_key", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_master_keys_pargs args; + ThriftHiveMetastore_update_master_key_pargs args; + args.seq_number = &seq_number; + args.key = &key; args.write(oprot_); oprot_->writeMessageEnd(); @@ -70070,7 +68705,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_master_keys() return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_master_keys(std::vector & _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_update_master_key(const int32_t seqid) { int32_t rseqid = 0; @@ -70099,7 +68734,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_master_keys(std::vectorreadMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_master_keys") != 0) { + if (fname.compare("update_master_key") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -70108,19 +68743,21 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_master_keys(std::vectorreadMessageEnd(); iprot_->getTransport()->readEnd(); - if (result.__isset.success) { - // _return pointer has now been filled + if (result.__isset.o1) { sentry.commit(); - return; + throw result.o1; } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_master_keys failed: unknown result"); + if (result.__isset.o2) { + sentry.commit(); + throw result.o2; + } + sentry.commit(); + return; } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -70130,19 +68767,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_master_keys(std::vectorsync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_open_txns", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("remove_master_key", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_open_txns_pargs args; + ThriftHiveMetastore_remove_master_key_pargs args; + args.key_seq = &key_seq; args.write(oprot_); oprot_->writeMessageEnd(); @@ -70153,7 +68791,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_open_txns() return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_open_txns(GetOpenTxnsResponse& _return, const int32_t seqid) +bool ThriftHiveMetastoreConcurrentClient::recv_remove_master_key(const int32_t seqid) { int32_t rseqid = 0; @@ -70182,7 +68820,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_open_txns(GetOpenTxnsResponse iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_open_txns") != 0) { + if (fname.compare("remove_master_key") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -70191,19 +68829,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_open_txns(GetOpenTxnsResponse using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_open_txns_presult result; + bool _return; + ThriftHiveMetastore_remove_master_key_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; + return _return; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_open_txns failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "remove_master_key failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -70213,19 +68851,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_open_txns(GetOpenTxnsResponse } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_open_txns_info(GetOpenTxnsInfoResponse& _return) +void ThriftHiveMetastoreConcurrentClient::get_master_keys(std::vector & _return) { - int32_t seqid = send_get_open_txns_info(); - recv_get_open_txns_info(_return, seqid); + int32_t seqid = send_get_master_keys(); + recv_get_master_keys(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_open_txns_info() +int32_t ThriftHiveMetastoreConcurrentClient::send_get_master_keys() { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_open_txns_info", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_master_keys", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_open_txns_info_pargs args; + ThriftHiveMetastore_get_master_keys_pargs args; args.write(oprot_); oprot_->writeMessageEnd(); @@ -70236,7 +68874,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_open_txns_info() return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_open_txns_info(GetOpenTxnsInfoResponse& _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_master_keys(std::vector & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -70265,7 +68903,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_open_txns_info(GetOpenTxnsInf iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_open_txns_info") != 0) { + if (fname.compare("get_master_keys") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -70274,7 +68912,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_open_txns_info(GetOpenTxnsInf using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_open_txns_info_presult result; + ThriftHiveMetastore_get_master_keys_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -70286,7 +68924,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_open_txns_info(GetOpenTxnsInf return; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_open_txns_info failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_master_keys failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -70296,20 +68934,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_open_txns_info(GetOpenTxnsInf } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::open_txns(OpenTxnsResponse& _return, const OpenTxnRequest& rqst) +void ThriftHiveMetastoreConcurrentClient::get_open_txns(GetOpenTxnsResponse& _return) { - int32_t seqid = send_open_txns(rqst); - recv_open_txns(_return, seqid); + int32_t seqid = send_get_open_txns(); + recv_get_open_txns(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_open_txns(const OpenTxnRequest& rqst) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_open_txns() { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("open_txns", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_open_txns", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_open_txns_pargs args; - args.rqst = &rqst; + ThriftHiveMetastore_get_open_txns_pargs args; args.write(oprot_); oprot_->writeMessageEnd(); @@ -70320,7 +68957,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_open_txns(const OpenTxnRequest return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_open_txns(OpenTxnsResponse& _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_open_txns(GetOpenTxnsResponse& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -70349,7 +68986,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_open_txns(OpenTxnsResponse& _retu iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("open_txns") != 0) { + if (fname.compare("get_open_txns") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -70358,7 +68995,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_open_txns(OpenTxnsResponse& _retu using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_open_txns_presult result; + ThriftHiveMetastore_get_open_txns_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -70370,7 +69007,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_open_txns(OpenTxnsResponse& _retu return; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "open_txns failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_open_txns failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -70380,20 +69017,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_open_txns(OpenTxnsResponse& _retu } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::abort_txn(const AbortTxnRequest& rqst) +void ThriftHiveMetastoreConcurrentClient::get_open_txns_info(GetOpenTxnsInfoResponse& _return) { - int32_t seqid = send_abort_txn(rqst); - recv_abort_txn(seqid); + int32_t seqid = send_get_open_txns_info(); + recv_get_open_txns_info(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_abort_txn(const AbortTxnRequest& rqst) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_open_txns_info() { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("abort_txn", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_open_txns_info", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_abort_txn_pargs args; - args.rqst = &rqst; + ThriftHiveMetastore_get_open_txns_info_pargs args; args.write(oprot_); oprot_->writeMessageEnd(); @@ -70404,7 +69040,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_abort_txn(const AbortTxnReques return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_abort_txn(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_open_txns_info(GetOpenTxnsInfoResponse& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -70433,7 +69069,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_abort_txn(const int32_t seqid) iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("abort_txn") != 0) { + if (fname.compare("get_open_txns_info") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -70442,17 +69078,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_abort_txn(const int32_t seqid) using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_abort_txn_presult result; + ThriftHiveMetastore_get_open_txns_info_presult result; + result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - if (result.__isset.o1) { + if (result.__isset.success) { + // _return pointer has now been filled sentry.commit(); - throw result.o1; + return; } - sentry.commit(); - return; + // in a bad state, don't commit + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_open_txns_info failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -70462,19 +69100,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_abort_txn(const int32_t seqid) } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::abort_txns(const AbortTxnsRequest& rqst) +void ThriftHiveMetastoreConcurrentClient::open_txns(OpenTxnsResponse& _return, const OpenTxnRequest& rqst) { - int32_t seqid = send_abort_txns(rqst); - recv_abort_txns(seqid); + int32_t seqid = send_open_txns(rqst); + recv_open_txns(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_abort_txns(const AbortTxnsRequest& rqst) +int32_t ThriftHiveMetastoreConcurrentClient::send_open_txns(const OpenTxnRequest& rqst) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("abort_txns", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("open_txns", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_abort_txns_pargs args; + ThriftHiveMetastore_open_txns_pargs args; args.rqst = &rqst; args.write(oprot_); @@ -70486,7 +69124,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_abort_txns(const AbortTxnsRequ return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_abort_txns(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_open_txns(OpenTxnsResponse& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -70515,7 +69153,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_abort_txns(const int32_t seqid) iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("abort_txns") != 0) { + if (fname.compare("open_txns") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -70524,17 +69162,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_abort_txns(const int32_t seqid) using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_abort_txns_presult result; + ThriftHiveMetastore_open_txns_presult result; + result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - if (result.__isset.o1) { + if (result.__isset.success) { + // _return pointer has now been filled sentry.commit(); - throw result.o1; + return; } - sentry.commit(); - return; + // in a bad state, don't commit + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "open_txns failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -70544,19 +69184,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_abort_txns(const int32_t seqid) } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::commit_txn(const CommitTxnRequest& rqst) +void ThriftHiveMetastoreConcurrentClient::abort_txn(const AbortTxnRequest& rqst) { - int32_t seqid = send_commit_txn(rqst); - recv_commit_txn(seqid); + int32_t seqid = send_abort_txn(rqst); + recv_abort_txn(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_commit_txn(const CommitTxnRequest& rqst) +int32_t ThriftHiveMetastoreConcurrentClient::send_abort_txn(const AbortTxnRequest& rqst) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("commit_txn", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("abort_txn", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_commit_txn_pargs args; + ThriftHiveMetastore_abort_txn_pargs args; args.rqst = &rqst; args.write(oprot_); @@ -70568,7 +69208,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_commit_txn(const CommitTxnRequ return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_commit_txn(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_abort_txn(const int32_t seqid) { int32_t rseqid = 0; @@ -70597,7 +69237,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_commit_txn(const int32_t seqid) iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("commit_txn") != 0) { + if (fname.compare("abort_txn") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -70606,7 +69246,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_commit_txn(const int32_t seqid) using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_commit_txn_presult result; + ThriftHiveMetastore_abort_txn_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -70615,10 +69255,6 @@ void ThriftHiveMetastoreConcurrentClient::recv_commit_txn(const int32_t seqid) sentry.commit(); throw result.o1; } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } sentry.commit(); return; } @@ -70630,19 +69266,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_commit_txn(const int32_t seqid) } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::lock(LockResponse& _return, const LockRequest& rqst) +void ThriftHiveMetastoreConcurrentClient::abort_txns(const AbortTxnsRequest& rqst) { - int32_t seqid = send_lock(rqst); - recv_lock(_return, seqid); + int32_t seqid = send_abort_txns(rqst); + recv_abort_txns(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_lock(const LockRequest& rqst) +int32_t ThriftHiveMetastoreConcurrentClient::send_abort_txns(const AbortTxnsRequest& rqst) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("lock", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("abort_txns", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_lock_pargs args; + ThriftHiveMetastore_abort_txns_pargs args; args.rqst = &rqst; args.write(oprot_); @@ -70654,7 +69290,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_lock(const LockRequest& rqst) return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_lock(LockResponse& _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_abort_txns(const int32_t seqid) { int32_t rseqid = 0; @@ -70683,7 +69319,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_lock(LockResponse& _return, const iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("lock") != 0) { + if (fname.compare("abort_txns") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -70692,27 +69328,17 @@ void ThriftHiveMetastoreConcurrentClient::recv_lock(LockResponse& _return, const using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_lock_presult result; - result.success = &_return; + ThriftHiveMetastore_abort_txns_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } if (result.__isset.o1) { sentry.commit(); throw result.o1; } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "lock failed: unknown result"); + sentry.commit(); + return; } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -70722,19 +69348,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_lock(LockResponse& _return, const } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::check_lock(LockResponse& _return, const CheckLockRequest& rqst) +void ThriftHiveMetastoreConcurrentClient::commit_txn(const CommitTxnRequest& rqst) { - int32_t seqid = send_check_lock(rqst); - recv_check_lock(_return, seqid); + int32_t seqid = send_commit_txn(rqst); + recv_commit_txn(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_check_lock(const CheckLockRequest& rqst) +int32_t ThriftHiveMetastoreConcurrentClient::send_commit_txn(const CommitTxnRequest& rqst) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("check_lock", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("commit_txn", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_check_lock_pargs args; + ThriftHiveMetastore_commit_txn_pargs args; args.rqst = &rqst; args.write(oprot_); @@ -70746,7 +69372,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_check_lock(const CheckLockRequ return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_check_lock(LockResponse& _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_commit_txn(const int32_t seqid) { int32_t rseqid = 0; @@ -70775,7 +69401,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_check_lock(LockResponse& _return, iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("check_lock") != 0) { + if (fname.compare("commit_txn") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -70784,17 +69410,11 @@ void ThriftHiveMetastoreConcurrentClient::recv_check_lock(LockResponse& _return, using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_check_lock_presult result; - result.success = &_return; + ThriftHiveMetastore_commit_txn_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } if (result.__isset.o1) { sentry.commit(); throw result.o1; @@ -70803,12 +69423,8 @@ void ThriftHiveMetastoreConcurrentClient::recv_check_lock(LockResponse& _return, sentry.commit(); throw result.o2; } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "check_lock failed: unknown result"); + sentry.commit(); + return; } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -70818,19 +69434,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_check_lock(LockResponse& _return, } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::unlock(const UnlockRequest& rqst) +void ThriftHiveMetastoreConcurrentClient::lock(LockResponse& _return, const LockRequest& rqst) { - int32_t seqid = send_unlock(rqst); - recv_unlock(seqid); + int32_t seqid = send_lock(rqst); + recv_lock(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_unlock(const UnlockRequest& rqst) +int32_t ThriftHiveMetastoreConcurrentClient::send_lock(const LockRequest& rqst) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("unlock", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("lock", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_unlock_pargs args; + ThriftHiveMetastore_lock_pargs args; args.rqst = &rqst; args.write(oprot_); @@ -70842,7 +69458,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_unlock(const UnlockRequest& rq return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_unlock(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_lock(LockResponse& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -70871,7 +69487,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_unlock(const int32_t seqid) iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("unlock") != 0) { + if (fname.compare("lock") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -70880,11 +69496,17 @@ void ThriftHiveMetastoreConcurrentClient::recv_unlock(const int32_t seqid) using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_unlock_presult result; + ThriftHiveMetastore_lock_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; + } if (result.__isset.o1) { sentry.commit(); throw result.o1; @@ -70893,8 +69515,8 @@ void ThriftHiveMetastoreConcurrentClient::recv_unlock(const int32_t seqid) sentry.commit(); throw result.o2; } - sentry.commit(); - return; + // in a bad state, don't commit + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "lock failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -70904,19 +69526,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_unlock(const int32_t seqid) } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::show_locks(ShowLocksResponse& _return, const ShowLocksRequest& rqst) +void ThriftHiveMetastoreConcurrentClient::check_lock(LockResponse& _return, const CheckLockRequest& rqst) { - int32_t seqid = send_show_locks(rqst); - recv_show_locks(_return, seqid); + int32_t seqid = send_check_lock(rqst); + recv_check_lock(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_show_locks(const ShowLocksRequest& rqst) +int32_t ThriftHiveMetastoreConcurrentClient::send_check_lock(const CheckLockRequest& rqst) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("show_locks", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("check_lock", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_show_locks_pargs args; + ThriftHiveMetastore_check_lock_pargs args; args.rqst = &rqst; args.write(oprot_); @@ -70928,7 +69550,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_show_locks(const ShowLocksRequ return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_show_locks(ShowLocksResponse& _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_check_lock(LockResponse& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -70957,7 +69579,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_show_locks(ShowLocksResponse& _re iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("show_locks") != 0) { + if (fname.compare("check_lock") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -70966,7 +69588,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_show_locks(ShowLocksResponse& _re using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_show_locks_presult result; + ThriftHiveMetastore_check_lock_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -70977,8 +69599,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_show_locks(ShowLocksResponse& _re sentry.commit(); return; } + if (result.__isset.o1) { + sentry.commit(); + throw result.o1; + } + if (result.__isset.o2) { + sentry.commit(); + throw result.o2; + } + if (result.__isset.o3) { + sentry.commit(); + throw result.o3; + } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "show_locks failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "check_lock failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -70988,20 +69622,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_show_locks(ShowLocksResponse& _re } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::heartbeat(const HeartbeatRequest& ids) +void ThriftHiveMetastoreConcurrentClient::unlock(const UnlockRequest& rqst) { - int32_t seqid = send_heartbeat(ids); - recv_heartbeat(seqid); + int32_t seqid = send_unlock(rqst); + recv_unlock(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_heartbeat(const HeartbeatRequest& ids) +int32_t ThriftHiveMetastoreConcurrentClient::send_unlock(const UnlockRequest& rqst) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("heartbeat", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("unlock", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_heartbeat_pargs args; - args.ids = &ids; + ThriftHiveMetastore_unlock_pargs args; + args.rqst = &rqst; args.write(oprot_); oprot_->writeMessageEnd(); @@ -71012,7 +69646,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_heartbeat(const HeartbeatReque return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_heartbeat(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_unlock(const int32_t seqid) { int32_t rseqid = 0; @@ -71041,7 +69675,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_heartbeat(const int32_t seqid) iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("heartbeat") != 0) { + if (fname.compare("unlock") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -71050,7 +69684,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_heartbeat(const int32_t seqid) using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_heartbeat_presult result; + ThriftHiveMetastore_unlock_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -71063,10 +69697,6 @@ void ThriftHiveMetastoreConcurrentClient::recv_heartbeat(const int32_t seqid) sentry.commit(); throw result.o2; } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } sentry.commit(); return; } @@ -71078,20 +69708,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_heartbeat(const int32_t seqid) } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::heartbeat_txn_range(HeartbeatTxnRangeResponse& _return, const HeartbeatTxnRangeRequest& txns) +void ThriftHiveMetastoreConcurrentClient::show_locks(ShowLocksResponse& _return, const ShowLocksRequest& rqst) { - int32_t seqid = send_heartbeat_txn_range(txns); - recv_heartbeat_txn_range(_return, seqid); + int32_t seqid = send_show_locks(rqst); + recv_show_locks(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_heartbeat_txn_range(const HeartbeatTxnRangeRequest& txns) +int32_t ThriftHiveMetastoreConcurrentClient::send_show_locks(const ShowLocksRequest& rqst) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("heartbeat_txn_range", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("show_locks", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_heartbeat_txn_range_pargs args; - args.txns = &txns; + ThriftHiveMetastore_show_locks_pargs args; + args.rqst = &rqst; args.write(oprot_); oprot_->writeMessageEnd(); @@ -71102,7 +69732,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_heartbeat_txn_range(const Hear return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_heartbeat_txn_range(HeartbeatTxnRangeResponse& _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_show_locks(ShowLocksResponse& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -71131,7 +69761,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_heartbeat_txn_range(HeartbeatTxnR iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("heartbeat_txn_range") != 0) { + if (fname.compare("show_locks") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -71140,7 +69770,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_heartbeat_txn_range(HeartbeatTxnR using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_heartbeat_txn_range_presult result; + ThriftHiveMetastore_show_locks_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -71152,7 +69782,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_heartbeat_txn_range(HeartbeatTxnR return; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "heartbeat_txn_range failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "show_locks failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -71162,20 +69792,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_heartbeat_txn_range(HeartbeatTxnR } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::compact(const CompactionRequest& rqst) +void ThriftHiveMetastoreConcurrentClient::heartbeat(const HeartbeatRequest& ids) { - int32_t seqid = send_compact(rqst); - recv_compact(seqid); + int32_t seqid = send_heartbeat(ids); + recv_heartbeat(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_compact(const CompactionRequest& rqst) +int32_t ThriftHiveMetastoreConcurrentClient::send_heartbeat(const HeartbeatRequest& ids) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("compact", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("heartbeat", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_compact_pargs args; - args.rqst = &rqst; + ThriftHiveMetastore_heartbeat_pargs args; + args.ids = &ids; args.write(oprot_); oprot_->writeMessageEnd(); @@ -71186,7 +69816,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_compact(const CompactionReques return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_compact(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_heartbeat(const int32_t seqid) { int32_t rseqid = 0; @@ -71215,7 +69845,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_compact(const int32_t seqid) iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("compact") != 0) { + if (fname.compare("heartbeat") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -71224,97 +69854,25 @@ void ThriftHiveMetastoreConcurrentClient::recv_compact(const int32_t seqid) using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_compact_presult result; + ThriftHiveMetastore_heartbeat_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - sentry.commit(); - return; - } - // 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::compact2(CompactionResponse& _return, const CompactionRequest& rqst) -{ - int32_t seqid = send_compact2(rqst); - recv_compact2(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_compact2(const CompactionRequest& rqst) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("compact2", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_compact2_pargs args; - args.rqst = &rqst; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_compact2(CompactionResponse& _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(); + if (result.__isset.o1) { sentry.commit(); - throw x; - } - if (mtype != ::apache::thrift::protocol::T_REPLY) { - iprot_->skip(::apache::thrift::protocol::T_STRUCT); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); + throw result.o1; } - if (fname.compare("compact2") != 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); + if (result.__isset.o2) { + sentry.commit(); + throw result.o2; } - ThriftHiveMetastore_compact2_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled + if (result.__isset.o3) { sentry.commit(); - return; + throw result.o3; } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "compact2 failed: unknown result"); + sentry.commit(); + return; } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -71324,20 +69882,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_compact2(CompactionResponse& _ret } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::show_compact(ShowCompactResponse& _return, const ShowCompactRequest& rqst) +void ThriftHiveMetastoreConcurrentClient::heartbeat_txn_range(HeartbeatTxnRangeResponse& _return, const HeartbeatTxnRangeRequest& txns) { - int32_t seqid = send_show_compact(rqst); - recv_show_compact(_return, seqid); + int32_t seqid = send_heartbeat_txn_range(txns); + recv_heartbeat_txn_range(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_show_compact(const ShowCompactRequest& rqst) +int32_t ThriftHiveMetastoreConcurrentClient::send_heartbeat_txn_range(const HeartbeatTxnRangeRequest& txns) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("show_compact", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("heartbeat_txn_range", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_show_compact_pargs args; - args.rqst = &rqst; + ThriftHiveMetastore_heartbeat_txn_range_pargs args; + args.txns = &txns; args.write(oprot_); oprot_->writeMessageEnd(); @@ -71348,7 +69906,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_show_compact(const ShowCompact return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_show_compact(ShowCompactResponse& _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_heartbeat_txn_range(HeartbeatTxnRangeResponse& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -71377,7 +69935,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_show_compact(ShowCompactResponse& iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("show_compact") != 0) { + if (fname.compare("heartbeat_txn_range") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -71386,7 +69944,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_show_compact(ShowCompactResponse& using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_show_compact_presult result; + ThriftHiveMetastore_heartbeat_txn_range_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -71398,7 +69956,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_show_compact(ShowCompactResponse& return; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "show_compact failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "heartbeat_txn_range failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -71408,19 +69966,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_show_compact(ShowCompactResponse& } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::add_dynamic_partitions(const AddDynamicPartitions& rqst) +void ThriftHiveMetastoreConcurrentClient::compact(const CompactionRequest& rqst) { - int32_t seqid = send_add_dynamic_partitions(rqst); - recv_add_dynamic_partitions(seqid); + int32_t seqid = send_compact(rqst); + recv_compact(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_add_dynamic_partitions(const AddDynamicPartitions& rqst) +int32_t ThriftHiveMetastoreConcurrentClient::send_compact(const CompactionRequest& rqst) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("add_dynamic_partitions", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("compact", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_add_dynamic_partitions_pargs args; + ThriftHiveMetastore_compact_pargs args; args.rqst = &rqst; args.write(oprot_); @@ -71432,7 +69990,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_add_dynamic_partitions(const A return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_add_dynamic_partitions(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_compact(const int32_t seqid) { int32_t rseqid = 0; @@ -71461,7 +70019,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_add_dynamic_partitions(const int3 iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("add_dynamic_partitions") != 0) { + if (fname.compare("compact") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -71470,19 +70028,11 @@ void ThriftHiveMetastoreConcurrentClient::recv_add_dynamic_partitions(const int3 using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_add_dynamic_partitions_presult result; + ThriftHiveMetastore_compact_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } sentry.commit(); return; } @@ -71494,19 +70044,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_add_dynamic_partitions(const int3 } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_next_notification(NotificationEventResponse& _return, const NotificationEventRequest& rqst) +void ThriftHiveMetastoreConcurrentClient::compact2(CompactionResponse& _return, const CompactionRequest& rqst) { - int32_t seqid = send_get_next_notification(rqst); - recv_get_next_notification(_return, seqid); + int32_t seqid = send_compact2(rqst); + recv_compact2(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_next_notification(const NotificationEventRequest& rqst) +int32_t ThriftHiveMetastoreConcurrentClient::send_compact2(const CompactionRequest& rqst) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_next_notification", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("compact2", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_next_notification_pargs args; + ThriftHiveMetastore_compact2_pargs args; args.rqst = &rqst; args.write(oprot_); @@ -71518,7 +70068,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_next_notification(const No return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_next_notification(NotificationEventResponse& _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_compact2(CompactionResponse& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -71547,7 +70097,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_next_notification(Notificatio iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_next_notification") != 0) { + if (fname.compare("compact2") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -71556,7 +70106,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_next_notification(Notificatio using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_next_notification_presult result; + ThriftHiveMetastore_compact2_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -71568,7 +70118,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_next_notification(Notificatio return; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_next_notification failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "compact2 failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -71578,19 +70128,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_next_notification(Notificatio } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_current_notificationEventId(CurrentNotificationEventId& _return) +void ThriftHiveMetastoreConcurrentClient::show_compact(ShowCompactResponse& _return, const ShowCompactRequest& rqst) { - int32_t seqid = send_get_current_notificationEventId(); - recv_get_current_notificationEventId(_return, seqid); + int32_t seqid = send_show_compact(rqst); + recv_show_compact(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_current_notificationEventId() +int32_t ThriftHiveMetastoreConcurrentClient::send_show_compact(const ShowCompactRequest& rqst) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_current_notificationEventId", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("show_compact", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_current_notificationEventId_pargs args; + ThriftHiveMetastore_show_compact_pargs args; + args.rqst = &rqst; args.write(oprot_); oprot_->writeMessageEnd(); @@ -71601,7 +70152,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_current_notificationEventI return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_current_notificationEventId(CurrentNotificationEventId& _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_show_compact(ShowCompactResponse& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -71630,7 +70181,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_current_notificationEventId(C iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_current_notificationEventId") != 0) { + if (fname.compare("show_compact") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -71639,7 +70190,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_current_notificationEventId(C using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_current_notificationEventId_presult result; + ThriftHiveMetastore_show_compact_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -71651,7 +70202,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_current_notificationEventId(C return; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_current_notificationEventId failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "show_compact failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -71661,19 +70212,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_current_notificationEventId(C } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::fire_listener_event(FireEventResponse& _return, const FireEventRequest& rqst) +void ThriftHiveMetastoreConcurrentClient::add_dynamic_partitions(const AddDynamicPartitions& rqst) { - int32_t seqid = send_fire_listener_event(rqst); - recv_fire_listener_event(_return, seqid); + int32_t seqid = send_add_dynamic_partitions(rqst); + recv_add_dynamic_partitions(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_fire_listener_event(const FireEventRequest& rqst) +int32_t ThriftHiveMetastoreConcurrentClient::send_add_dynamic_partitions(const AddDynamicPartitions& rqst) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("fire_listener_event", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("add_dynamic_partitions", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_fire_listener_event_pargs args; + ThriftHiveMetastore_add_dynamic_partitions_pargs args; args.rqst = &rqst; args.write(oprot_); @@ -71685,7 +70236,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_fire_listener_event(const Fire return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_fire_listener_event(FireEventResponse& _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_add_dynamic_partitions(const int32_t seqid) { int32_t rseqid = 0; @@ -71714,7 +70265,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_fire_listener_event(FireEventResp iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("fire_listener_event") != 0) { + if (fname.compare("add_dynamic_partitions") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -71723,94 +70274,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_fire_listener_event(FireEventResp using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_fire_listener_event_presult result; - result.success = &_return; + ThriftHiveMetastore_add_dynamic_partitions_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - if (result.__isset.success) { - // _return pointer has now been filled + if (result.__isset.o1) { sentry.commit(); - return; + throw result.o1; } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "fire_listener_event 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::flushCache() -{ - int32_t seqid = send_flushCache(); - recv_flushCache(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_flushCache() -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("flushCache", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_flushCache_pargs args; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_flushCache(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(); + if (result.__isset.o2) { 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("flushCache") != 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); + throw result.o2; } - ThriftHiveMetastore_flushCache_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - sentry.commit(); return; } @@ -71822,20 +70298,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_flushCache(const int32_t seqid) } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_file_metadata_by_expr(GetFileMetadataByExprResult& _return, const GetFileMetadataByExprRequest& req) +void ThriftHiveMetastoreConcurrentClient::get_next_notification(NotificationEventResponse& _return, const NotificationEventRequest& rqst) { - int32_t seqid = send_get_file_metadata_by_expr(req); - recv_get_file_metadata_by_expr(_return, seqid); + int32_t seqid = send_get_next_notification(rqst); + recv_get_next_notification(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_file_metadata_by_expr(const GetFileMetadataByExprRequest& req) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_next_notification(const NotificationEventRequest& rqst) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_file_metadata_by_expr", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_next_notification", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_file_metadata_by_expr_pargs args; - args.req = &req; + ThriftHiveMetastore_get_next_notification_pargs args; + args.rqst = &rqst; args.write(oprot_); oprot_->writeMessageEnd(); @@ -71846,7 +70322,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_file_metadata_by_expr(cons return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_file_metadata_by_expr(GetFileMetadataByExprResult& _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_next_notification(NotificationEventResponse& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -71875,7 +70351,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_file_metadata_by_expr(GetFile iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_file_metadata_by_expr") != 0) { + if (fname.compare("get_next_notification") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -71884,7 +70360,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_file_metadata_by_expr(GetFile using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_file_metadata_by_expr_presult result; + ThriftHiveMetastore_get_next_notification_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -71896,7 +70372,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_file_metadata_by_expr(GetFile return; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_file_metadata_by_expr failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_next_notification failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -71906,20 +70382,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_file_metadata_by_expr(GetFile } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_file_metadata(GetFileMetadataResult& _return, const GetFileMetadataRequest& req) +void ThriftHiveMetastoreConcurrentClient::get_current_notificationEventId(CurrentNotificationEventId& _return) { - int32_t seqid = send_get_file_metadata(req); - recv_get_file_metadata(_return, seqid); + int32_t seqid = send_get_current_notificationEventId(); + recv_get_current_notificationEventId(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_file_metadata(const GetFileMetadataRequest& req) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_current_notificationEventId() { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_file_metadata", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_current_notificationEventId", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_file_metadata_pargs args; - args.req = &req; + ThriftHiveMetastore_get_current_notificationEventId_pargs args; args.write(oprot_); oprot_->writeMessageEnd(); @@ -71930,7 +70405,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_file_metadata(const GetFil return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_file_metadata(GetFileMetadataResult& _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_current_notificationEventId(CurrentNotificationEventId& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -71959,7 +70434,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_file_metadata(GetFileMetadata iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_file_metadata") != 0) { + if (fname.compare("get_current_notificationEventId") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -71968,7 +70443,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_file_metadata(GetFileMetadata using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_file_metadata_presult result; + ThriftHiveMetastore_get_current_notificationEventId_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -71980,7 +70455,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_file_metadata(GetFileMetadata return; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_file_metadata failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_current_notificationEventId failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -71990,20 +70465,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_file_metadata(GetFileMetadata } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::put_file_metadata(PutFileMetadataResult& _return, const PutFileMetadataRequest& req) +void ThriftHiveMetastoreConcurrentClient::fire_listener_event(FireEventResponse& _return, const FireEventRequest& rqst) { - int32_t seqid = send_put_file_metadata(req); - recv_put_file_metadata(_return, seqid); + int32_t seqid = send_fire_listener_event(rqst); + recv_fire_listener_event(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_put_file_metadata(const PutFileMetadataRequest& req) +int32_t ThriftHiveMetastoreConcurrentClient::send_fire_listener_event(const FireEventRequest& rqst) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("put_file_metadata", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("fire_listener_event", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_put_file_metadata_pargs args; - args.req = &req; + ThriftHiveMetastore_fire_listener_event_pargs args; + args.rqst = &rqst; args.write(oprot_); oprot_->writeMessageEnd(); @@ -72014,7 +70489,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_put_file_metadata(const PutFil return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_put_file_metadata(PutFileMetadataResult& _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_fire_listener_event(FireEventResponse& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -72043,7 +70518,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_put_file_metadata(PutFileMetadata iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("put_file_metadata") != 0) { + if (fname.compare("fire_listener_event") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -72052,7 +70527,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_put_file_metadata(PutFileMetadata using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_put_file_metadata_presult result; + ThriftHiveMetastore_fire_listener_event_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -72064,7 +70539,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_put_file_metadata(PutFileMetadata return; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "put_file_metadata failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "fire_listener_event failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -72074,20 +70549,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_put_file_metadata(PutFileMetadata } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::clear_file_metadata(ClearFileMetadataResult& _return, const ClearFileMetadataRequest& req) +void ThriftHiveMetastoreConcurrentClient::flushCache() { - int32_t seqid = send_clear_file_metadata(req); - recv_clear_file_metadata(_return, seqid); + int32_t seqid = send_flushCache(); + recv_flushCache(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_clear_file_metadata(const ClearFileMetadataRequest& req) +int32_t ThriftHiveMetastoreConcurrentClient::send_flushCache() { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("clear_file_metadata", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("flushCache", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_clear_file_metadata_pargs args; - args.req = &req; + ThriftHiveMetastore_flushCache_pargs args; args.write(oprot_); oprot_->writeMessageEnd(); @@ -72098,7 +70572,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_clear_file_metadata(const Clea return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_clear_file_metadata(ClearFileMetadataResult& _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_flushCache(const int32_t seqid) { int32_t rseqid = 0; @@ -72127,7 +70601,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_clear_file_metadata(ClearFileMeta iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("clear_file_metadata") != 0) { + if (fname.compare("flushCache") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -72136,19 +70610,13 @@ void ThriftHiveMetastoreConcurrentClient::recv_clear_file_metadata(ClearFileMeta using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_clear_file_metadata_presult result; - result.success = &_return; + ThriftHiveMetastore_flushCache_presult result; 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, "clear_file_metadata failed: unknown result"); + sentry.commit(); + return; } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -72158,19 +70626,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_clear_file_metadata(ClearFileMeta } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::cache_file_metadata(CacheFileMetadataResult& _return, const CacheFileMetadataRequest& req) +void ThriftHiveMetastoreConcurrentClient::get_file_metadata_by_expr(GetFileMetadataByExprResult& _return, const GetFileMetadataByExprRequest& req) { - int32_t seqid = send_cache_file_metadata(req); - recv_cache_file_metadata(_return, seqid); + int32_t seqid = send_get_file_metadata_by_expr(req); + recv_get_file_metadata_by_expr(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_cache_file_metadata(const CacheFileMetadataRequest& req) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_file_metadata_by_expr(const GetFileMetadataByExprRequest& req) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("cache_file_metadata", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_file_metadata_by_expr", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_cache_file_metadata_pargs args; + ThriftHiveMetastore_get_file_metadata_by_expr_pargs args; args.req = &req; args.write(oprot_); @@ -72182,7 +70650,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_cache_file_metadata(const Cach return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_cache_file_metadata(CacheFileMetadataResult& _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_file_metadata_by_expr(GetFileMetadataByExprResult& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -72211,7 +70679,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_cache_file_metadata(CacheFileMeta iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("cache_file_metadata") != 0) { + if (fname.compare("get_file_metadata_by_expr") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -72220,7 +70688,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_cache_file_metadata(CacheFileMeta using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_cache_file_metadata_presult result; + ThriftHiveMetastore_get_file_metadata_by_expr_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -72232,7 +70700,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_cache_file_metadata(CacheFileMeta return; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "cache_file_metadata failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_file_metadata_by_expr failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -72242,19 +70710,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_cache_file_metadata(CacheFileMeta } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_next_write_id(GetNextWriteIdResult& _return, const GetNextWriteIdRequest& req) +void ThriftHiveMetastoreConcurrentClient::get_file_metadata(GetFileMetadataResult& _return, const GetFileMetadataRequest& req) { - int32_t seqid = send_get_next_write_id(req); - recv_get_next_write_id(_return, seqid); + int32_t seqid = send_get_file_metadata(req); + recv_get_file_metadata(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_next_write_id(const GetNextWriteIdRequest& req) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_file_metadata(const GetFileMetadataRequest& req) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_next_write_id", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_file_metadata", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_next_write_id_pargs args; + ThriftHiveMetastore_get_file_metadata_pargs args; args.req = &req; args.write(oprot_); @@ -72266,7 +70734,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_next_write_id(const GetNex return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_next_write_id(GetNextWriteIdResult& _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_file_metadata(GetFileMetadataResult& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -72295,7 +70763,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_next_write_id(GetNextWriteIdR iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_next_write_id") != 0) { + if (fname.compare("get_file_metadata") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -72304,7 +70772,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_next_write_id(GetNextWriteIdR using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_next_write_id_presult result; + ThriftHiveMetastore_get_file_metadata_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -72316,7 +70784,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_next_write_id(GetNextWriteIdR return; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_next_write_id failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_file_metadata failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -72326,19 +70794,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_next_write_id(GetNextWriteIdR } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::finalize_write_id(FinalizeWriteIdResult& _return, const FinalizeWriteIdRequest& req) +void ThriftHiveMetastoreConcurrentClient::put_file_metadata(PutFileMetadataResult& _return, const PutFileMetadataRequest& req) { - int32_t seqid = send_finalize_write_id(req); - recv_finalize_write_id(_return, seqid); + int32_t seqid = send_put_file_metadata(req); + recv_put_file_metadata(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_finalize_write_id(const FinalizeWriteIdRequest& req) +int32_t ThriftHiveMetastoreConcurrentClient::send_put_file_metadata(const PutFileMetadataRequest& req) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("finalize_write_id", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("put_file_metadata", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_finalize_write_id_pargs args; + ThriftHiveMetastore_put_file_metadata_pargs args; args.req = &req; args.write(oprot_); @@ -72350,7 +70818,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_finalize_write_id(const Finali return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_finalize_write_id(FinalizeWriteIdResult& _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_put_file_metadata(PutFileMetadataResult& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -72379,7 +70847,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_finalize_write_id(FinalizeWriteId iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("finalize_write_id") != 0) { + if (fname.compare("put_file_metadata") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -72388,7 +70856,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_finalize_write_id(FinalizeWriteId using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_finalize_write_id_presult result; + ThriftHiveMetastore_put_file_metadata_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -72400,7 +70868,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_finalize_write_id(FinalizeWriteId return; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "finalize_write_id failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "put_file_metadata failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -72410,19 +70878,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_finalize_write_id(FinalizeWriteId } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::heartbeat_write_id(HeartbeatWriteIdResult& _return, const HeartbeatWriteIdRequest& req) +void ThriftHiveMetastoreConcurrentClient::clear_file_metadata(ClearFileMetadataResult& _return, const ClearFileMetadataRequest& req) { - int32_t seqid = send_heartbeat_write_id(req); - recv_heartbeat_write_id(_return, seqid); + int32_t seqid = send_clear_file_metadata(req); + recv_clear_file_metadata(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_heartbeat_write_id(const HeartbeatWriteIdRequest& req) +int32_t ThriftHiveMetastoreConcurrentClient::send_clear_file_metadata(const ClearFileMetadataRequest& req) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("heartbeat_write_id", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("clear_file_metadata", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_heartbeat_write_id_pargs args; + ThriftHiveMetastore_clear_file_metadata_pargs args; args.req = &req; args.write(oprot_); @@ -72434,7 +70902,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_heartbeat_write_id(const Heart return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_heartbeat_write_id(HeartbeatWriteIdResult& _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_clear_file_metadata(ClearFileMetadataResult& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -72463,7 +70931,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_heartbeat_write_id(HeartbeatWrite iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("heartbeat_write_id") != 0) { + if (fname.compare("clear_file_metadata") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -72472,7 +70940,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_heartbeat_write_id(HeartbeatWrite using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_heartbeat_write_id_presult result; + ThriftHiveMetastore_clear_file_metadata_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -72484,7 +70952,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_heartbeat_write_id(HeartbeatWrite return; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "heartbeat_write_id failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "clear_file_metadata failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -72494,19 +70962,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_heartbeat_write_id(HeartbeatWrite } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_valid_write_ids(GetValidWriteIdsResult& _return, const GetValidWriteIdsRequest& req) +void ThriftHiveMetastoreConcurrentClient::cache_file_metadata(CacheFileMetadataResult& _return, const CacheFileMetadataRequest& req) { - int32_t seqid = send_get_valid_write_ids(req); - recv_get_valid_write_ids(_return, seqid); + int32_t seqid = send_cache_file_metadata(req); + recv_cache_file_metadata(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_valid_write_ids(const GetValidWriteIdsRequest& req) +int32_t ThriftHiveMetastoreConcurrentClient::send_cache_file_metadata(const CacheFileMetadataRequest& req) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_valid_write_ids", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("cache_file_metadata", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_valid_write_ids_pargs args; + ThriftHiveMetastore_cache_file_metadata_pargs args; args.req = &req; args.write(oprot_); @@ -72518,7 +70986,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_valid_write_ids(const GetV return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_valid_write_ids(GetValidWriteIdsResult& _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_cache_file_metadata(CacheFileMetadataResult& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -72547,7 +71015,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_valid_write_ids(GetValidWrite iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_valid_write_ids") != 0) { + if (fname.compare("cache_file_metadata") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -72556,7 +71024,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_valid_write_ids(GetValidWrite using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_valid_write_ids_presult result; + ThriftHiveMetastore_cache_file_metadata_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -72568,7 +71036,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_valid_write_ids(GetValidWrite return; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_valid_write_ids failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "cache_file_metadata failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); diff --git metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h index 843f4b3..ca71711 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h @@ -176,10 +176,6 @@ class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookService virtual void put_file_metadata(PutFileMetadataResult& _return, const PutFileMetadataRequest& req) = 0; virtual void clear_file_metadata(ClearFileMetadataResult& _return, const ClearFileMetadataRequest& req) = 0; virtual void cache_file_metadata(CacheFileMetadataResult& _return, const CacheFileMetadataRequest& req) = 0; - virtual void get_next_write_id(GetNextWriteIdResult& _return, const GetNextWriteIdRequest& req) = 0; - virtual void finalize_write_id(FinalizeWriteIdResult& _return, const FinalizeWriteIdRequest& req) = 0; - virtual void heartbeat_write_id(HeartbeatWriteIdResult& _return, const HeartbeatWriteIdRequest& req) = 0; - virtual void get_valid_write_ids(GetValidWriteIdsResult& _return, const GetValidWriteIdsRequest& req) = 0; }; class ThriftHiveMetastoreIfFactory : virtual public ::facebook::fb303::FacebookServiceIfFactory { @@ -699,18 +695,6 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p void cache_file_metadata(CacheFileMetadataResult& /* _return */, const CacheFileMetadataRequest& /* req */) { return; } - void get_next_write_id(GetNextWriteIdResult& /* _return */, const GetNextWriteIdRequest& /* req */) { - return; - } - void finalize_write_id(FinalizeWriteIdResult& /* _return */, const FinalizeWriteIdRequest& /* req */) { - return; - } - void heartbeat_write_id(HeartbeatWriteIdResult& /* _return */, const HeartbeatWriteIdRequest& /* req */) { - return; - } - void get_valid_write_ids(GetValidWriteIdsResult& /* _return */, const GetValidWriteIdsRequest& /* req */) { - return; - } }; typedef struct _ThriftHiveMetastore_getMetaConf_args__isset { @@ -19739,422 +19723,6 @@ class ThriftHiveMetastore_cache_file_metadata_presult { }; -typedef struct _ThriftHiveMetastore_get_next_write_id_args__isset { - _ThriftHiveMetastore_get_next_write_id_args__isset() : req(false) {} - bool req :1; -} _ThriftHiveMetastore_get_next_write_id_args__isset; - -class ThriftHiveMetastore_get_next_write_id_args { - public: - - ThriftHiveMetastore_get_next_write_id_args(const ThriftHiveMetastore_get_next_write_id_args&); - ThriftHiveMetastore_get_next_write_id_args& operator=(const ThriftHiveMetastore_get_next_write_id_args&); - ThriftHiveMetastore_get_next_write_id_args() { - } - - virtual ~ThriftHiveMetastore_get_next_write_id_args() throw(); - GetNextWriteIdRequest req; - - _ThriftHiveMetastore_get_next_write_id_args__isset __isset; - - void __set_req(const GetNextWriteIdRequest& val); - - bool operator == (const ThriftHiveMetastore_get_next_write_id_args & rhs) const - { - if (!(req == rhs.req)) - return false; - return true; - } - bool operator != (const ThriftHiveMetastore_get_next_write_id_args &rhs) const { - return !(*this == rhs); - } - - bool operator < (const ThriftHiveMetastore_get_next_write_id_args & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - - -class ThriftHiveMetastore_get_next_write_id_pargs { - public: - - - virtual ~ThriftHiveMetastore_get_next_write_id_pargs() throw(); - const GetNextWriteIdRequest* req; - - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -typedef struct _ThriftHiveMetastore_get_next_write_id_result__isset { - _ThriftHiveMetastore_get_next_write_id_result__isset() : success(false) {} - bool success :1; -} _ThriftHiveMetastore_get_next_write_id_result__isset; - -class ThriftHiveMetastore_get_next_write_id_result { - public: - - ThriftHiveMetastore_get_next_write_id_result(const ThriftHiveMetastore_get_next_write_id_result&); - ThriftHiveMetastore_get_next_write_id_result& operator=(const ThriftHiveMetastore_get_next_write_id_result&); - ThriftHiveMetastore_get_next_write_id_result() { - } - - virtual ~ThriftHiveMetastore_get_next_write_id_result() throw(); - GetNextWriteIdResult success; - - _ThriftHiveMetastore_get_next_write_id_result__isset __isset; - - void __set_success(const GetNextWriteIdResult& val); - - bool operator == (const ThriftHiveMetastore_get_next_write_id_result & rhs) const - { - if (!(success == rhs.success)) - return false; - return true; - } - bool operator != (const ThriftHiveMetastore_get_next_write_id_result &rhs) const { - return !(*this == rhs); - } - - bool operator < (const ThriftHiveMetastore_get_next_write_id_result & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -typedef struct _ThriftHiveMetastore_get_next_write_id_presult__isset { - _ThriftHiveMetastore_get_next_write_id_presult__isset() : success(false) {} - bool success :1; -} _ThriftHiveMetastore_get_next_write_id_presult__isset; - -class ThriftHiveMetastore_get_next_write_id_presult { - public: - - - virtual ~ThriftHiveMetastore_get_next_write_id_presult() throw(); - GetNextWriteIdResult* success; - - _ThriftHiveMetastore_get_next_write_id_presult__isset __isset; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - -}; - -typedef struct _ThriftHiveMetastore_finalize_write_id_args__isset { - _ThriftHiveMetastore_finalize_write_id_args__isset() : req(false) {} - bool req :1; -} _ThriftHiveMetastore_finalize_write_id_args__isset; - -class ThriftHiveMetastore_finalize_write_id_args { - public: - - ThriftHiveMetastore_finalize_write_id_args(const ThriftHiveMetastore_finalize_write_id_args&); - ThriftHiveMetastore_finalize_write_id_args& operator=(const ThriftHiveMetastore_finalize_write_id_args&); - ThriftHiveMetastore_finalize_write_id_args() { - } - - virtual ~ThriftHiveMetastore_finalize_write_id_args() throw(); - FinalizeWriteIdRequest req; - - _ThriftHiveMetastore_finalize_write_id_args__isset __isset; - - void __set_req(const FinalizeWriteIdRequest& val); - - bool operator == (const ThriftHiveMetastore_finalize_write_id_args & rhs) const - { - if (!(req == rhs.req)) - return false; - return true; - } - bool operator != (const ThriftHiveMetastore_finalize_write_id_args &rhs) const { - return !(*this == rhs); - } - - bool operator < (const ThriftHiveMetastore_finalize_write_id_args & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - - -class ThriftHiveMetastore_finalize_write_id_pargs { - public: - - - virtual ~ThriftHiveMetastore_finalize_write_id_pargs() throw(); - const FinalizeWriteIdRequest* req; - - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -typedef struct _ThriftHiveMetastore_finalize_write_id_result__isset { - _ThriftHiveMetastore_finalize_write_id_result__isset() : success(false) {} - bool success :1; -} _ThriftHiveMetastore_finalize_write_id_result__isset; - -class ThriftHiveMetastore_finalize_write_id_result { - public: - - ThriftHiveMetastore_finalize_write_id_result(const ThriftHiveMetastore_finalize_write_id_result&); - ThriftHiveMetastore_finalize_write_id_result& operator=(const ThriftHiveMetastore_finalize_write_id_result&); - ThriftHiveMetastore_finalize_write_id_result() { - } - - virtual ~ThriftHiveMetastore_finalize_write_id_result() throw(); - FinalizeWriteIdResult success; - - _ThriftHiveMetastore_finalize_write_id_result__isset __isset; - - void __set_success(const FinalizeWriteIdResult& val); - - bool operator == (const ThriftHiveMetastore_finalize_write_id_result & rhs) const - { - if (!(success == rhs.success)) - return false; - return true; - } - bool operator != (const ThriftHiveMetastore_finalize_write_id_result &rhs) const { - return !(*this == rhs); - } - - bool operator < (const ThriftHiveMetastore_finalize_write_id_result & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -typedef struct _ThriftHiveMetastore_finalize_write_id_presult__isset { - _ThriftHiveMetastore_finalize_write_id_presult__isset() : success(false) {} - bool success :1; -} _ThriftHiveMetastore_finalize_write_id_presult__isset; - -class ThriftHiveMetastore_finalize_write_id_presult { - public: - - - virtual ~ThriftHiveMetastore_finalize_write_id_presult() throw(); - FinalizeWriteIdResult* success; - - _ThriftHiveMetastore_finalize_write_id_presult__isset __isset; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - -}; - -typedef struct _ThriftHiveMetastore_heartbeat_write_id_args__isset { - _ThriftHiveMetastore_heartbeat_write_id_args__isset() : req(false) {} - bool req :1; -} _ThriftHiveMetastore_heartbeat_write_id_args__isset; - -class ThriftHiveMetastore_heartbeat_write_id_args { - public: - - ThriftHiveMetastore_heartbeat_write_id_args(const ThriftHiveMetastore_heartbeat_write_id_args&); - ThriftHiveMetastore_heartbeat_write_id_args& operator=(const ThriftHiveMetastore_heartbeat_write_id_args&); - ThriftHiveMetastore_heartbeat_write_id_args() { - } - - virtual ~ThriftHiveMetastore_heartbeat_write_id_args() throw(); - HeartbeatWriteIdRequest req; - - _ThriftHiveMetastore_heartbeat_write_id_args__isset __isset; - - void __set_req(const HeartbeatWriteIdRequest& val); - - bool operator == (const ThriftHiveMetastore_heartbeat_write_id_args & rhs) const - { - if (!(req == rhs.req)) - return false; - return true; - } - bool operator != (const ThriftHiveMetastore_heartbeat_write_id_args &rhs) const { - return !(*this == rhs); - } - - bool operator < (const ThriftHiveMetastore_heartbeat_write_id_args & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - - -class ThriftHiveMetastore_heartbeat_write_id_pargs { - public: - - - virtual ~ThriftHiveMetastore_heartbeat_write_id_pargs() throw(); - const HeartbeatWriteIdRequest* req; - - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -typedef struct _ThriftHiveMetastore_heartbeat_write_id_result__isset { - _ThriftHiveMetastore_heartbeat_write_id_result__isset() : success(false) {} - bool success :1; -} _ThriftHiveMetastore_heartbeat_write_id_result__isset; - -class ThriftHiveMetastore_heartbeat_write_id_result { - public: - - ThriftHiveMetastore_heartbeat_write_id_result(const ThriftHiveMetastore_heartbeat_write_id_result&); - ThriftHiveMetastore_heartbeat_write_id_result& operator=(const ThriftHiveMetastore_heartbeat_write_id_result&); - ThriftHiveMetastore_heartbeat_write_id_result() { - } - - virtual ~ThriftHiveMetastore_heartbeat_write_id_result() throw(); - HeartbeatWriteIdResult success; - - _ThriftHiveMetastore_heartbeat_write_id_result__isset __isset; - - void __set_success(const HeartbeatWriteIdResult& val); - - bool operator == (const ThriftHiveMetastore_heartbeat_write_id_result & rhs) const - { - if (!(success == rhs.success)) - return false; - return true; - } - bool operator != (const ThriftHiveMetastore_heartbeat_write_id_result &rhs) const { - return !(*this == rhs); - } - - bool operator < (const ThriftHiveMetastore_heartbeat_write_id_result & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -typedef struct _ThriftHiveMetastore_heartbeat_write_id_presult__isset { - _ThriftHiveMetastore_heartbeat_write_id_presult__isset() : success(false) {} - bool success :1; -} _ThriftHiveMetastore_heartbeat_write_id_presult__isset; - -class ThriftHiveMetastore_heartbeat_write_id_presult { - public: - - - virtual ~ThriftHiveMetastore_heartbeat_write_id_presult() throw(); - HeartbeatWriteIdResult* success; - - _ThriftHiveMetastore_heartbeat_write_id_presult__isset __isset; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - -}; - -typedef struct _ThriftHiveMetastore_get_valid_write_ids_args__isset { - _ThriftHiveMetastore_get_valid_write_ids_args__isset() : req(false) {} - bool req :1; -} _ThriftHiveMetastore_get_valid_write_ids_args__isset; - -class ThriftHiveMetastore_get_valid_write_ids_args { - public: - - ThriftHiveMetastore_get_valid_write_ids_args(const ThriftHiveMetastore_get_valid_write_ids_args&); - ThriftHiveMetastore_get_valid_write_ids_args& operator=(const ThriftHiveMetastore_get_valid_write_ids_args&); - ThriftHiveMetastore_get_valid_write_ids_args() { - } - - virtual ~ThriftHiveMetastore_get_valid_write_ids_args() throw(); - GetValidWriteIdsRequest req; - - _ThriftHiveMetastore_get_valid_write_ids_args__isset __isset; - - void __set_req(const GetValidWriteIdsRequest& val); - - bool operator == (const ThriftHiveMetastore_get_valid_write_ids_args & rhs) const - { - if (!(req == rhs.req)) - return false; - return true; - } - bool operator != (const ThriftHiveMetastore_get_valid_write_ids_args &rhs) const { - return !(*this == rhs); - } - - bool operator < (const ThriftHiveMetastore_get_valid_write_ids_args & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - - -class ThriftHiveMetastore_get_valid_write_ids_pargs { - public: - - - virtual ~ThriftHiveMetastore_get_valid_write_ids_pargs() throw(); - const GetValidWriteIdsRequest* req; - - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -typedef struct _ThriftHiveMetastore_get_valid_write_ids_result__isset { - _ThriftHiveMetastore_get_valid_write_ids_result__isset() : success(false) {} - bool success :1; -} _ThriftHiveMetastore_get_valid_write_ids_result__isset; - -class ThriftHiveMetastore_get_valid_write_ids_result { - public: - - ThriftHiveMetastore_get_valid_write_ids_result(const ThriftHiveMetastore_get_valid_write_ids_result&); - ThriftHiveMetastore_get_valid_write_ids_result& operator=(const ThriftHiveMetastore_get_valid_write_ids_result&); - ThriftHiveMetastore_get_valid_write_ids_result() { - } - - virtual ~ThriftHiveMetastore_get_valid_write_ids_result() throw(); - GetValidWriteIdsResult success; - - _ThriftHiveMetastore_get_valid_write_ids_result__isset __isset; - - void __set_success(const GetValidWriteIdsResult& val); - - bool operator == (const ThriftHiveMetastore_get_valid_write_ids_result & rhs) const - { - if (!(success == rhs.success)) - return false; - return true; - } - bool operator != (const ThriftHiveMetastore_get_valid_write_ids_result &rhs) const { - return !(*this == rhs); - } - - bool operator < (const ThriftHiveMetastore_get_valid_write_ids_result & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -typedef struct _ThriftHiveMetastore_get_valid_write_ids_presult__isset { - _ThriftHiveMetastore_get_valid_write_ids_presult__isset() : success(false) {} - bool success :1; -} _ThriftHiveMetastore_get_valid_write_ids_presult__isset; - -class ThriftHiveMetastore_get_valid_write_ids_presult { - public: - - - virtual ~ThriftHiveMetastore_get_valid_write_ids_presult() throw(); - GetValidWriteIdsResult* success; - - _ThriftHiveMetastore_get_valid_write_ids_presult__isset __isset; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - -}; - class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public ::facebook::fb303::FacebookServiceClient { public: ThriftHiveMetastoreClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) : @@ -20628,18 +20196,6 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public void cache_file_metadata(CacheFileMetadataResult& _return, const CacheFileMetadataRequest& req); void send_cache_file_metadata(const CacheFileMetadataRequest& req); void recv_cache_file_metadata(CacheFileMetadataResult& _return); - void get_next_write_id(GetNextWriteIdResult& _return, const GetNextWriteIdRequest& req); - void send_get_next_write_id(const GetNextWriteIdRequest& req); - void recv_get_next_write_id(GetNextWriteIdResult& _return); - void finalize_write_id(FinalizeWriteIdResult& _return, const FinalizeWriteIdRequest& req); - void send_finalize_write_id(const FinalizeWriteIdRequest& req); - void recv_finalize_write_id(FinalizeWriteIdResult& _return); - void heartbeat_write_id(HeartbeatWriteIdResult& _return, const HeartbeatWriteIdRequest& req); - void send_heartbeat_write_id(const HeartbeatWriteIdRequest& req); - void recv_heartbeat_write_id(HeartbeatWriteIdResult& _return); - void get_valid_write_ids(GetValidWriteIdsResult& _return, const GetValidWriteIdsRequest& req); - void send_get_valid_write_ids(const GetValidWriteIdsRequest& req); - void recv_get_valid_write_ids(GetValidWriteIdsResult& _return); }; class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceProcessor { @@ -20804,10 +20360,6 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP void process_put_file_metadata(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_clear_file_metadata(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_cache_file_metadata(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); - void process_get_next_write_id(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); - void process_finalize_write_id(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); - void process_heartbeat_write_id(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); - void process_get_valid_write_ids(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); public: ThriftHiveMetastoreProcessor(boost::shared_ptr iface) : ::facebook::fb303::FacebookServiceProcessor(iface), @@ -20966,10 +20518,6 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP processMap_["put_file_metadata"] = &ThriftHiveMetastoreProcessor::process_put_file_metadata; processMap_["clear_file_metadata"] = &ThriftHiveMetastoreProcessor::process_clear_file_metadata; processMap_["cache_file_metadata"] = &ThriftHiveMetastoreProcessor::process_cache_file_metadata; - processMap_["get_next_write_id"] = &ThriftHiveMetastoreProcessor::process_get_next_write_id; - processMap_["finalize_write_id"] = &ThriftHiveMetastoreProcessor::process_finalize_write_id; - processMap_["heartbeat_write_id"] = &ThriftHiveMetastoreProcessor::process_heartbeat_write_id; - processMap_["get_valid_write_ids"] = &ThriftHiveMetastoreProcessor::process_get_valid_write_ids; } virtual ~ThriftHiveMetastoreProcessor() {} @@ -22479,46 +22027,6 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi return; } - void get_next_write_id(GetNextWriteIdResult& _return, const GetNextWriteIdRequest& req) { - size_t sz = ifaces_.size(); - size_t i = 0; - for (; i < (sz - 1); ++i) { - ifaces_[i]->get_next_write_id(_return, req); - } - ifaces_[i]->get_next_write_id(_return, req); - return; - } - - void finalize_write_id(FinalizeWriteIdResult& _return, const FinalizeWriteIdRequest& req) { - size_t sz = ifaces_.size(); - size_t i = 0; - for (; i < (sz - 1); ++i) { - ifaces_[i]->finalize_write_id(_return, req); - } - ifaces_[i]->finalize_write_id(_return, req); - return; - } - - void heartbeat_write_id(HeartbeatWriteIdResult& _return, const HeartbeatWriteIdRequest& req) { - size_t sz = ifaces_.size(); - size_t i = 0; - for (; i < (sz - 1); ++i) { - ifaces_[i]->heartbeat_write_id(_return, req); - } - ifaces_[i]->heartbeat_write_id(_return, req); - return; - } - - void get_valid_write_ids(GetValidWriteIdsResult& _return, const GetValidWriteIdsRequest& req) { - size_t sz = ifaces_.size(); - size_t i = 0; - for (; i < (sz - 1); ++i) { - ifaces_[i]->get_valid_write_ids(_return, req); - } - ifaces_[i]->get_valid_write_ids(_return, req); - return; - } - }; // The 'concurrent' client is a thread safe client that correctly handles @@ -22997,18 +22505,6 @@ class ThriftHiveMetastoreConcurrentClient : virtual public ThriftHiveMetastoreIf void cache_file_metadata(CacheFileMetadataResult& _return, const CacheFileMetadataRequest& req); int32_t send_cache_file_metadata(const CacheFileMetadataRequest& req); void recv_cache_file_metadata(CacheFileMetadataResult& _return, const int32_t seqid); - void get_next_write_id(GetNextWriteIdResult& _return, const GetNextWriteIdRequest& req); - int32_t send_get_next_write_id(const GetNextWriteIdRequest& req); - void recv_get_next_write_id(GetNextWriteIdResult& _return, const int32_t seqid); - void finalize_write_id(FinalizeWriteIdResult& _return, const FinalizeWriteIdRequest& req); - int32_t send_finalize_write_id(const FinalizeWriteIdRequest& req); - void recv_finalize_write_id(FinalizeWriteIdResult& _return, const int32_t seqid); - void heartbeat_write_id(HeartbeatWriteIdResult& _return, const HeartbeatWriteIdRequest& req); - int32_t send_heartbeat_write_id(const HeartbeatWriteIdRequest& req); - void recv_heartbeat_write_id(HeartbeatWriteIdResult& _return, const int32_t seqid); - void get_valid_write_ids(GetValidWriteIdsResult& _return, const GetValidWriteIdsRequest& req); - int32_t send_get_valid_write_ids(const GetValidWriteIdsRequest& req); - void recv_get_valid_write_ids(GetValidWriteIdsResult& _return, const int32_t seqid); }; #ifdef _WIN32 diff --git metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp index 34c37e9..b4a2a92 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp @@ -792,26 +792,6 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("cache_file_metadata\n"); } - void get_next_write_id(GetNextWriteIdResult& _return, const GetNextWriteIdRequest& req) { - // Your implementation goes here - printf("get_next_write_id\n"); - } - - void finalize_write_id(FinalizeWriteIdResult& _return, const FinalizeWriteIdRequest& req) { - // Your implementation goes here - printf("finalize_write_id\n"); - } - - void heartbeat_write_id(HeartbeatWriteIdResult& _return, const HeartbeatWriteIdRequest& req) { - // Your implementation goes here - printf("heartbeat_write_id\n"); - } - - void get_valid_write_ids(GetValidWriteIdsResult& _return, const GetValidWriteIdsRequest& req) { - // Your implementation goes here - printf("get_valid_write_ids\n"); - } - }; int main(int argc, char **argv) { diff --git metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp index cfa2e49..fd2bdde 100644 --- metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp +++ metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp @@ -4486,16 +4486,6 @@ void Table::__set_rewriteEnabled(const bool val) { __isset.rewriteEnabled = true; } -void Table::__set_mmNextWriteId(const int64_t val) { - this->mmNextWriteId = val; -__isset.mmNextWriteId = true; -} - -void Table::__set_mmWatermarkWriteId(const int64_t val) { - this->mmWatermarkWriteId = val; -__isset.mmWatermarkWriteId = true; -} - uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); @@ -4664,22 +4654,6 @@ uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) { xfer += iprot->skip(ftype); } break; - case 16: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->mmNextWriteId); - this->__isset.mmNextWriteId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 17: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->mmWatermarkWriteId); - this->__isset.mmWatermarkWriteId = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -4777,16 +4751,6 @@ uint32_t Table::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeBool(this->rewriteEnabled); xfer += oprot->writeFieldEnd(); } - if (this->__isset.mmNextWriteId) { - xfer += oprot->writeFieldBegin("mmNextWriteId", ::apache::thrift::protocol::T_I64, 16); - xfer += oprot->writeI64(this->mmNextWriteId); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.mmWatermarkWriteId) { - xfer += oprot->writeFieldBegin("mmWatermarkWriteId", ::apache::thrift::protocol::T_I64, 17); - xfer += oprot->writeI64(this->mmWatermarkWriteId); - xfer += oprot->writeFieldEnd(); - } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -4809,8 +4773,6 @@ void swap(Table &a, Table &b) { swap(a.privileges, b.privileges); swap(a.temporary, b.temporary); swap(a.rewriteEnabled, b.rewriteEnabled); - swap(a.mmNextWriteId, b.mmNextWriteId); - swap(a.mmWatermarkWriteId, b.mmWatermarkWriteId); swap(a.__isset, b.__isset); } @@ -4830,8 +4792,6 @@ Table::Table(const Table& other221) { privileges = other221.privileges; temporary = other221.temporary; rewriteEnabled = other221.rewriteEnabled; - mmNextWriteId = other221.mmNextWriteId; - mmWatermarkWriteId = other221.mmWatermarkWriteId; __isset = other221.__isset; } Table& Table::operator=(const Table& other222) { @@ -4850,8 +4810,6 @@ Table& Table::operator=(const Table& other222) { privileges = other222.privileges; temporary = other222.temporary; rewriteEnabled = other222.rewriteEnabled; - mmNextWriteId = other222.mmNextWriteId; - mmWatermarkWriteId = other222.mmWatermarkWriteId; __isset = other222.__isset; return *this; } @@ -4873,8 +4831,6 @@ void Table::printTo(std::ostream& out) const { out << ", " << "privileges="; (__isset.privileges ? (out << to_string(privileges)) : (out << "")); out << ", " << "temporary="; (__isset.temporary ? (out << to_string(temporary)) : (out << "")); out << ", " << "rewriteEnabled="; (__isset.rewriteEnabled ? (out << to_string(rewriteEnabled)) : (out << "")); - out << ", " << "mmNextWriteId="; (__isset.mmNextWriteId ? (out << to_string(mmNextWriteId)) : (out << "")); - out << ", " << "mmWatermarkWriteId="; (__isset.mmWatermarkWriteId ? (out << to_string(mmWatermarkWriteId)) : (out << "")); out << ")"; } @@ -18017,19 +17973,16 @@ void CacheFileMetadataRequest::printTo(std::ostream& out) const { } -GetNextWriteIdRequest::~GetNextWriteIdRequest() throw() { +GetAllFunctionsResponse::~GetAllFunctionsResponse() throw() { } -void GetNextWriteIdRequest::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void GetNextWriteIdRequest::__set_tblName(const std::string& val) { - this->tblName = val; +void GetAllFunctionsResponse::__set_functions(const std::vector & val) { + this->functions = val; +__isset.functions = true; } -uint32_t GetNextWriteIdRequest::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t GetAllFunctionsResponse::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -18041,8 +17994,6 @@ uint32_t GetNextWriteIdRequest::read(::apache::thrift::protocol::TProtocol* ipro using ::apache::thrift::protocol::TProtocolException; - bool isset_dbName = false; - bool isset_tblName = false; while (true) { @@ -18053,17 +18004,21 @@ uint32_t GetNextWriteIdRequest::read(::apache::thrift::protocol::TProtocol* ipro switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->dbName); - isset_dbName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->tblName); - isset_tblName = true; + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->functions.clear(); + uint32_t _size746; + ::apache::thrift::protocol::TType _etype749; + xfer += iprot->readListBegin(_etype749, _size746); + this->functions.resize(_size746); + uint32_t _i750; + for (_i750 = 0; _i750 < _size746; ++_i750) + { + xfer += this->functions[_i750].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.functions = true; } else { xfer += iprot->skip(ftype); } @@ -18077,64 +18032,64 @@ uint32_t GetNextWriteIdRequest::read(::apache::thrift::protocol::TProtocol* ipro xfer += iprot->readStructEnd(); - if (!isset_dbName) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_tblName) - throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t GetNextWriteIdRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t GetAllFunctionsResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("GetNextWriteIdRequest"); - - xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->dbName); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("tblName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->tblName); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("GetAllFunctionsResponse"); + if (this->__isset.functions) { + 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 _iter751; + for (_iter751 = this->functions.begin(); _iter751 != this->functions.end(); ++_iter751) + { + xfer += (*_iter751).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -void swap(GetNextWriteIdRequest &a, GetNextWriteIdRequest &b) { +void swap(GetAllFunctionsResponse &a, GetAllFunctionsResponse &b) { using ::std::swap; - swap(a.dbName, b.dbName); - swap(a.tblName, b.tblName); + swap(a.functions, b.functions); + swap(a.__isset, b.__isset); } -GetNextWriteIdRequest::GetNextWriteIdRequest(const GetNextWriteIdRequest& other746) { - dbName = other746.dbName; - tblName = other746.tblName; +GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other752) { + functions = other752.functions; + __isset = other752.__isset; } -GetNextWriteIdRequest& GetNextWriteIdRequest::operator=(const GetNextWriteIdRequest& other747) { - dbName = other747.dbName; - tblName = other747.tblName; +GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other753) { + functions = other753.functions; + __isset = other753.__isset; return *this; } -void GetNextWriteIdRequest::printTo(std::ostream& out) const { +void GetAllFunctionsResponse::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "GetNextWriteIdRequest("; - out << "dbName=" << to_string(dbName); - out << ", " << "tblName=" << to_string(tblName); + out << "GetAllFunctionsResponse("; + out << "functions="; (__isset.functions ? (out << to_string(functions)) : (out << "")); out << ")"; } -GetNextWriteIdResult::~GetNextWriteIdResult() throw() { +ClientCapabilities::~ClientCapabilities() throw() { } -void GetNextWriteIdResult::__set_writeId(const int64_t val) { - this->writeId = val; +void ClientCapabilities::__set_values(const std::vector & val) { + this->values = val; } -uint32_t GetNextWriteIdResult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ClientCapabilities::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -18146,7 +18101,7 @@ uint32_t GetNextWriteIdResult::read(::apache::thrift::protocol::TProtocol* iprot using ::apache::thrift::protocol::TProtocolException; - bool isset_writeId = false; + bool isset_values = false; while (true) { @@ -18157,9 +18112,23 @@ uint32_t GetNextWriteIdResult::read(::apache::thrift::protocol::TProtocol* iprot switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->writeId); - isset_writeId = true; + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->values.clear(); + uint32_t _size754; + ::apache::thrift::protocol::TType _etype757; + xfer += iprot->readListBegin(_etype757, _size754); + this->values.resize(_size754); + uint32_t _i758; + for (_i758 = 0; _i758 < _size754; ++_i758) + { + int32_t ecast759; + xfer += iprot->readI32(ecast759); + this->values[_i758] = (ClientCapability::type)ecast759; + } + xfer += iprot->readListEnd(); + } + isset_values = true; } else { xfer += iprot->skip(ftype); } @@ -18173,18 +18142,26 @@ uint32_t GetNextWriteIdResult::read(::apache::thrift::protocol::TProtocol* iprot xfer += iprot->readStructEnd(); - if (!isset_writeId) + if (!isset_values) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t GetNextWriteIdResult::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ClientCapabilities::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("GetNextWriteIdResult"); + xfer += oprot->writeStructBegin("ClientCapabilities"); - xfer += oprot->writeFieldBegin("writeId", ::apache::thrift::protocol::T_I64, 1); - xfer += oprot->writeI64(this->writeId); + 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 _iter760; + for (_iter760 = this->values.begin(); _iter760 != this->values.end(); ++_iter760) + { + xfer += oprot->writeI32((int32_t)(*_iter760)); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -18192,47 +18169,44 @@ uint32_t GetNextWriteIdResult::write(::apache::thrift::protocol::TProtocol* opro return xfer; } -void swap(GetNextWriteIdResult &a, GetNextWriteIdResult &b) { +void swap(ClientCapabilities &a, ClientCapabilities &b) { using ::std::swap; - swap(a.writeId, b.writeId); + swap(a.values, b.values); } -GetNextWriteIdResult::GetNextWriteIdResult(const GetNextWriteIdResult& other748) { - writeId = other748.writeId; +ClientCapabilities::ClientCapabilities(const ClientCapabilities& other761) { + values = other761.values; } -GetNextWriteIdResult& GetNextWriteIdResult::operator=(const GetNextWriteIdResult& other749) { - writeId = other749.writeId; +ClientCapabilities& ClientCapabilities::operator=(const ClientCapabilities& other762) { + values = other762.values; return *this; } -void GetNextWriteIdResult::printTo(std::ostream& out) const { +void ClientCapabilities::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "GetNextWriteIdResult("; - out << "writeId=" << to_string(writeId); + out << "ClientCapabilities("; + out << "values=" << to_string(values); out << ")"; } -FinalizeWriteIdRequest::~FinalizeWriteIdRequest() throw() { +GetTableRequest::~GetTableRequest() throw() { } -void FinalizeWriteIdRequest::__set_dbName(const std::string& val) { +void GetTableRequest::__set_dbName(const std::string& val) { this->dbName = val; } -void FinalizeWriteIdRequest::__set_tblName(const std::string& val) { +void GetTableRequest::__set_tblName(const std::string& val) { this->tblName = val; } -void FinalizeWriteIdRequest::__set_writeId(const int64_t val) { - this->writeId = val; -} - -void FinalizeWriteIdRequest::__set_commit(const bool val) { - this->commit = val; +void GetTableRequest::__set_capabilities(const ClientCapabilities& val) { + this->capabilities = val; +__isset.capabilities = true; } -uint32_t FinalizeWriteIdRequest::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t GetTableRequest::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -18246,8 +18220,6 @@ uint32_t FinalizeWriteIdRequest::read(::apache::thrift::protocol::TProtocol* ipr bool isset_dbName = false; bool isset_tblName = false; - bool isset_writeId = false; - bool isset_commit = false; while (true) { @@ -18274,17 +18246,9 @@ uint32_t FinalizeWriteIdRequest::read(::apache::thrift::protocol::TProtocol* ipr } break; case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->writeId); - isset_writeId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->commit); - isset_commit = true; + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->capabilities.read(iprot); + this->__isset.capabilities = true; } else { xfer += iprot->skip(ftype); } @@ -18302,17 +18266,13 @@ uint32_t FinalizeWriteIdRequest::read(::apache::thrift::protocol::TProtocol* ipr throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_tblName) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_writeId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_commit) - throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t FinalizeWriteIdRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t GetTableRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("FinalizeWriteIdRequest"); + xfer += oprot->writeStructBegin("GetTableRequest"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->dbName); @@ -18322,56 +18282,56 @@ uint32_t FinalizeWriteIdRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeString(this->tblName); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("writeId", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->writeId); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("commit", ::apache::thrift::protocol::T_BOOL, 4); - xfer += oprot->writeBool(this->commit); - xfer += oprot->writeFieldEnd(); - + if (this->__isset.capabilities) { + xfer += oprot->writeFieldBegin("capabilities", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->capabilities.write(oprot); + xfer += oprot->writeFieldEnd(); + } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -void swap(FinalizeWriteIdRequest &a, FinalizeWriteIdRequest &b) { +void swap(GetTableRequest &a, GetTableRequest &b) { using ::std::swap; swap(a.dbName, b.dbName); swap(a.tblName, b.tblName); - swap(a.writeId, b.writeId); - swap(a.commit, b.commit); + swap(a.capabilities, b.capabilities); + swap(a.__isset, b.__isset); } -FinalizeWriteIdRequest::FinalizeWriteIdRequest(const FinalizeWriteIdRequest& other750) { - dbName = other750.dbName; - tblName = other750.tblName; - writeId = other750.writeId; - commit = other750.commit; +GetTableRequest::GetTableRequest(const GetTableRequest& other763) { + dbName = other763.dbName; + tblName = other763.tblName; + capabilities = other763.capabilities; + __isset = other763.__isset; } -FinalizeWriteIdRequest& FinalizeWriteIdRequest::operator=(const FinalizeWriteIdRequest& other751) { - dbName = other751.dbName; - tblName = other751.tblName; - writeId = other751.writeId; - commit = other751.commit; +GetTableRequest& GetTableRequest::operator=(const GetTableRequest& other764) { + dbName = other764.dbName; + tblName = other764.tblName; + capabilities = other764.capabilities; + __isset = other764.__isset; return *this; } -void FinalizeWriteIdRequest::printTo(std::ostream& out) const { +void GetTableRequest::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "FinalizeWriteIdRequest("; + out << "GetTableRequest("; out << "dbName=" << to_string(dbName); out << ", " << "tblName=" << to_string(tblName); - out << ", " << "writeId=" << to_string(writeId); - out << ", " << "commit=" << to_string(commit); + out << ", " << "capabilities="; (__isset.capabilities ? (out << to_string(capabilities)) : (out << "")); out << ")"; } -FinalizeWriteIdResult::~FinalizeWriteIdResult() throw() { +GetTableResult::~GetTableResult() throw() { } -uint32_t FinalizeWriteIdResult::read(::apache::thrift::protocol::TProtocol* iprot) { +void GetTableResult::__set_table(const Table& val) { + this->table = val; +} + +uint32_t GetTableResult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -18383,6 +18343,7 @@ uint32_t FinalizeWriteIdResult::read(::apache::thrift::protocol::TProtocol* ipro using ::apache::thrift::protocol::TProtocolException; + bool isset_table = false; while (true) { @@ -18390,62 +18351,83 @@ uint32_t FinalizeWriteIdResult::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_STOP) { break; } - xfer += iprot->skip(ftype); + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->table.read(iprot); + isset_table = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } xfer += iprot->readFieldEnd(); } xfer += iprot->readStructEnd(); + if (!isset_table) + throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t FinalizeWriteIdResult::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t GetTableResult::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("FinalizeWriteIdResult"); + xfer += oprot->writeStructBegin("GetTableResult"); + + xfer += oprot->writeFieldBegin("table", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->table.write(oprot); + xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -void swap(FinalizeWriteIdResult &a, FinalizeWriteIdResult &b) { +void swap(GetTableResult &a, GetTableResult &b) { using ::std::swap; - (void) a; - (void) b; + swap(a.table, b.table); } -FinalizeWriteIdResult::FinalizeWriteIdResult(const FinalizeWriteIdResult& other752) { - (void) other752; +GetTableResult::GetTableResult(const GetTableResult& other765) { + table = other765.table; } -FinalizeWriteIdResult& FinalizeWriteIdResult::operator=(const FinalizeWriteIdResult& other753) { - (void) other753; +GetTableResult& GetTableResult::operator=(const GetTableResult& other766) { + table = other766.table; return *this; } -void FinalizeWriteIdResult::printTo(std::ostream& out) const { +void GetTableResult::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "FinalizeWriteIdResult("; + out << "GetTableResult("; + out << "table=" << to_string(table); out << ")"; } -HeartbeatWriteIdRequest::~HeartbeatWriteIdRequest() throw() { +GetTablesRequest::~GetTablesRequest() throw() { } -void HeartbeatWriteIdRequest::__set_dbName(const std::string& val) { +void GetTablesRequest::__set_dbName(const std::string& val) { this->dbName = val; } -void HeartbeatWriteIdRequest::__set_tblName(const std::string& val) { - this->tblName = val; +void GetTablesRequest::__set_tblNames(const std::vector & val) { + this->tblNames = val; +__isset.tblNames = true; } -void HeartbeatWriteIdRequest::__set_writeId(const int64_t val) { - this->writeId = val; +void GetTablesRequest::__set_capabilities(const ClientCapabilities& val) { + this->capabilities = val; +__isset.capabilities = true; } -uint32_t HeartbeatWriteIdRequest::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t GetTablesRequest::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -18458,8 +18440,6 @@ uint32_t HeartbeatWriteIdRequest::read(::apache::thrift::protocol::TProtocol* ip using ::apache::thrift::protocol::TProtocolException; bool isset_dbName = false; - bool isset_tblName = false; - bool isset_writeId = false; while (true) { @@ -18478,17 +18458,29 @@ uint32_t HeartbeatWriteIdRequest::read(::apache::thrift::protocol::TProtocol* ip } break; case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->tblName); - isset_tblName = true; + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->tblNames.clear(); + uint32_t _size767; + ::apache::thrift::protocol::TType _etype770; + xfer += iprot->readListBegin(_etype770, _size767); + this->tblNames.resize(_size767); + uint32_t _i771; + for (_i771 = 0; _i771 < _size767; ++_i771) + { + xfer += iprot->readString(this->tblNames[_i771]); + } + xfer += iprot->readListEnd(); + } + this->__isset.tblNames = true; } else { xfer += iprot->skip(ftype); } break; case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->writeId); - isset_writeId = true; + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->capabilities.read(iprot); + this->__isset.capabilities = true; } else { xfer += iprot->skip(ftype); } @@ -18504,1008 +18496,81 @@ uint32_t HeartbeatWriteIdRequest::read(::apache::thrift::protocol::TProtocol* ip if (!isset_dbName) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_tblName) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_writeId) - throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t HeartbeatWriteIdRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t GetTablesRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("HeartbeatWriteIdRequest"); + xfer += oprot->writeStructBegin("GetTablesRequest"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->dbName); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("tblName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->tblName); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("writeId", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->writeId); - xfer += oprot->writeFieldEnd(); - + if (this->__isset.tblNames) { + 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 _iter772; + for (_iter772 = this->tblNames.begin(); _iter772 != this->tblNames.end(); ++_iter772) + { + xfer += oprot->writeString((*_iter772)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.capabilities) { + xfer += oprot->writeFieldBegin("capabilities", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->capabilities.write(oprot); + xfer += oprot->writeFieldEnd(); + } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -void swap(HeartbeatWriteIdRequest &a, HeartbeatWriteIdRequest &b) { +void swap(GetTablesRequest &a, GetTablesRequest &b) { using ::std::swap; swap(a.dbName, b.dbName); - swap(a.tblName, b.tblName); - swap(a.writeId, b.writeId); + swap(a.tblNames, b.tblNames); + swap(a.capabilities, b.capabilities); + swap(a.__isset, b.__isset); } -HeartbeatWriteIdRequest::HeartbeatWriteIdRequest(const HeartbeatWriteIdRequest& other754) { - dbName = other754.dbName; - tblName = other754.tblName; - writeId = other754.writeId; +GetTablesRequest::GetTablesRequest(const GetTablesRequest& other773) { + dbName = other773.dbName; + tblNames = other773.tblNames; + capabilities = other773.capabilities; + __isset = other773.__isset; } -HeartbeatWriteIdRequest& HeartbeatWriteIdRequest::operator=(const HeartbeatWriteIdRequest& other755) { - dbName = other755.dbName; - tblName = other755.tblName; - writeId = other755.writeId; +GetTablesRequest& GetTablesRequest::operator=(const GetTablesRequest& other774) { + dbName = other774.dbName; + tblNames = other774.tblNames; + capabilities = other774.capabilities; + __isset = other774.__isset; return *this; } -void HeartbeatWriteIdRequest::printTo(std::ostream& out) const { +void GetTablesRequest::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "HeartbeatWriteIdRequest("; + out << "GetTablesRequest("; out << "dbName=" << to_string(dbName); - out << ", " << "tblName=" << to_string(tblName); - out << ", " << "writeId=" << to_string(writeId); + out << ", " << "tblNames="; (__isset.tblNames ? (out << to_string(tblNames)) : (out << "")); + out << ", " << "capabilities="; (__isset.capabilities ? (out << to_string(capabilities)) : (out << "")); out << ")"; } -HeartbeatWriteIdResult::~HeartbeatWriteIdResult() throw() { +GetTablesResult::~GetTablesResult() throw() { } -uint32_t HeartbeatWriteIdResult::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - xfer += iprot->skip(ftype); - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t HeartbeatWriteIdResult::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("HeartbeatWriteIdResult"); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(HeartbeatWriteIdResult &a, HeartbeatWriteIdResult &b) { - using ::std::swap; - (void) a; - (void) b; -} - -HeartbeatWriteIdResult::HeartbeatWriteIdResult(const HeartbeatWriteIdResult& other756) { - (void) other756; -} -HeartbeatWriteIdResult& HeartbeatWriteIdResult::operator=(const HeartbeatWriteIdResult& other757) { - (void) other757; - return *this; -} -void HeartbeatWriteIdResult::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "HeartbeatWriteIdResult("; - out << ")"; -} - - -GetValidWriteIdsRequest::~GetValidWriteIdsRequest() throw() { -} - - -void GetValidWriteIdsRequest::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void GetValidWriteIdsRequest::__set_tblName(const std::string& val) { - this->tblName = val; -} - -uint32_t GetValidWriteIdsRequest::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_dbName = false; - bool isset_tblName = 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_STRING) { - xfer += iprot->readString(this->dbName); - isset_dbName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->tblName); - isset_tblName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_dbName) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_tblName) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t GetValidWriteIdsRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("GetValidWriteIdsRequest"); - - xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->dbName); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("tblName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->tblName); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(GetValidWriteIdsRequest &a, GetValidWriteIdsRequest &b) { - using ::std::swap; - swap(a.dbName, b.dbName); - swap(a.tblName, b.tblName); -} - -GetValidWriteIdsRequest::GetValidWriteIdsRequest(const GetValidWriteIdsRequest& other758) { - dbName = other758.dbName; - tblName = other758.tblName; -} -GetValidWriteIdsRequest& GetValidWriteIdsRequest::operator=(const GetValidWriteIdsRequest& other759) { - dbName = other759.dbName; - tblName = other759.tblName; - return *this; -} -void GetValidWriteIdsRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "GetValidWriteIdsRequest("; - out << "dbName=" << to_string(dbName); - out << ", " << "tblName=" << to_string(tblName); - out << ")"; -} - - -GetValidWriteIdsResult::~GetValidWriteIdsResult() throw() { -} - - -void GetValidWriteIdsResult::__set_lowWatermarkId(const int64_t val) { - this->lowWatermarkId = val; -} - -void GetValidWriteIdsResult::__set_highWatermarkId(const int64_t val) { - this->highWatermarkId = val; -} - -void GetValidWriteIdsResult::__set_areIdsValid(const bool val) { - this->areIdsValid = val; -__isset.areIdsValid = true; -} - -void GetValidWriteIdsResult::__set_ids(const std::vector & val) { - this->ids = val; -__isset.ids = true; -} - -uint32_t GetValidWriteIdsResult::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_lowWatermarkId = false; - bool isset_highWatermarkId = 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->lowWatermarkId); - isset_lowWatermarkId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->highWatermarkId); - isset_highWatermarkId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->areIdsValid); - this->__isset.areIdsValid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->ids.clear(); - uint32_t _size760; - ::apache::thrift::protocol::TType _etype763; - xfer += iprot->readListBegin(_etype763, _size760); - this->ids.resize(_size760); - uint32_t _i764; - for (_i764 = 0; _i764 < _size760; ++_i764) - { - xfer += iprot->readI64(this->ids[_i764]); - } - xfer += iprot->readListEnd(); - } - this->__isset.ids = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_lowWatermarkId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_highWatermarkId) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t GetValidWriteIdsResult::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("GetValidWriteIdsResult"); - - xfer += oprot->writeFieldBegin("lowWatermarkId", ::apache::thrift::protocol::T_I64, 1); - xfer += oprot->writeI64(this->lowWatermarkId); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("highWatermarkId", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->highWatermarkId); - xfer += oprot->writeFieldEnd(); - - if (this->__isset.areIdsValid) { - xfer += oprot->writeFieldBegin("areIdsValid", ::apache::thrift::protocol::T_BOOL, 3); - xfer += oprot->writeBool(this->areIdsValid); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.ids) { - xfer += oprot->writeFieldBegin("ids", ::apache::thrift::protocol::T_LIST, 4); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->ids.size())); - std::vector ::const_iterator _iter765; - for (_iter765 = this->ids.begin(); _iter765 != this->ids.end(); ++_iter765) - { - xfer += oprot->writeI64((*_iter765)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(GetValidWriteIdsResult &a, GetValidWriteIdsResult &b) { - using ::std::swap; - swap(a.lowWatermarkId, b.lowWatermarkId); - swap(a.highWatermarkId, b.highWatermarkId); - swap(a.areIdsValid, b.areIdsValid); - swap(a.ids, b.ids); - swap(a.__isset, b.__isset); -} - -GetValidWriteIdsResult::GetValidWriteIdsResult(const GetValidWriteIdsResult& other766) { - lowWatermarkId = other766.lowWatermarkId; - highWatermarkId = other766.highWatermarkId; - areIdsValid = other766.areIdsValid; - ids = other766.ids; - __isset = other766.__isset; -} -GetValidWriteIdsResult& GetValidWriteIdsResult::operator=(const GetValidWriteIdsResult& other767) { - lowWatermarkId = other767.lowWatermarkId; - highWatermarkId = other767.highWatermarkId; - areIdsValid = other767.areIdsValid; - ids = other767.ids; - __isset = other767.__isset; - return *this; -} -void GetValidWriteIdsResult::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "GetValidWriteIdsResult("; - out << "lowWatermarkId=" << to_string(lowWatermarkId); - out << ", " << "highWatermarkId=" << to_string(highWatermarkId); - out << ", " << "areIdsValid="; (__isset.areIdsValid ? (out << to_string(areIdsValid)) : (out << "")); - out << ", " << "ids="; (__isset.ids ? (out << to_string(ids)) : (out << "")); - out << ")"; -} - - -GetAllFunctionsResponse::~GetAllFunctionsResponse() throw() { -} - - -void GetAllFunctionsResponse::__set_functions(const std::vector & val) { - this->functions = val; -__isset.functions = true; -} - -uint32_t GetAllFunctionsResponse::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_LIST) { - { - this->functions.clear(); - uint32_t _size768; - ::apache::thrift::protocol::TType _etype771; - xfer += iprot->readListBegin(_etype771, _size768); - this->functions.resize(_size768); - uint32_t _i772; - for (_i772 = 0; _i772 < _size768; ++_i772) - { - xfer += this->functions[_i772].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.functions = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t GetAllFunctionsResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("GetAllFunctionsResponse"); - - if (this->__isset.functions) { - 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 _iter773; - for (_iter773 = this->functions.begin(); _iter773 != this->functions.end(); ++_iter773) - { - xfer += (*_iter773).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(GetAllFunctionsResponse &a, GetAllFunctionsResponse &b) { - using ::std::swap; - swap(a.functions, b.functions); - swap(a.__isset, b.__isset); -} - -GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other774) { - functions = other774.functions; - __isset = other774.__isset; -} -GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other775) { - functions = other775.functions; - __isset = other775.__isset; - return *this; -} -void GetAllFunctionsResponse::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "GetAllFunctionsResponse("; - out << "functions="; (__isset.functions ? (out << to_string(functions)) : (out << "")); - out << ")"; -} - - -ClientCapabilities::~ClientCapabilities() throw() { -} - - -void ClientCapabilities::__set_values(const std::vector & val) { - this->values = val; -} - -uint32_t ClientCapabilities::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_values = 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_LIST) { - { - this->values.clear(); - uint32_t _size776; - ::apache::thrift::protocol::TType _etype779; - xfer += iprot->readListBegin(_etype779, _size776); - this->values.resize(_size776); - uint32_t _i780; - for (_i780 = 0; _i780 < _size776; ++_i780) - { - int32_t ecast781; - xfer += iprot->readI32(ecast781); - this->values[_i780] = (ClientCapability::type)ecast781; - } - xfer += iprot->readListEnd(); - } - isset_values = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_values) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t ClientCapabilities::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ClientCapabilities"); - - 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 _iter782; - for (_iter782 = this->values.begin(); _iter782 != this->values.end(); ++_iter782) - { - xfer += oprot->writeI32((int32_t)(*_iter782)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(ClientCapabilities &a, ClientCapabilities &b) { - using ::std::swap; - swap(a.values, b.values); -} - -ClientCapabilities::ClientCapabilities(const ClientCapabilities& other783) { - values = other783.values; -} -ClientCapabilities& ClientCapabilities::operator=(const ClientCapabilities& other784) { - values = other784.values; - return *this; -} -void ClientCapabilities::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "ClientCapabilities("; - out << "values=" << to_string(values); - out << ")"; -} - - -GetTableRequest::~GetTableRequest() throw() { -} - - -void GetTableRequest::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void GetTableRequest::__set_tblName(const std::string& val) { - this->tblName = val; -} - -void GetTableRequest::__set_capabilities(const ClientCapabilities& val) { - this->capabilities = val; -__isset.capabilities = true; -} - -uint32_t GetTableRequest::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_dbName = false; - bool isset_tblName = 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_STRING) { - xfer += iprot->readString(this->dbName); - isset_dbName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->tblName); - isset_tblName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->capabilities.read(iprot); - this->__isset.capabilities = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_dbName) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_tblName) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t GetTableRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("GetTableRequest"); - - xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->dbName); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("tblName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->tblName); - xfer += oprot->writeFieldEnd(); - - if (this->__isset.capabilities) { - xfer += oprot->writeFieldBegin("capabilities", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->capabilities.write(oprot); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(GetTableRequest &a, GetTableRequest &b) { - using ::std::swap; - swap(a.dbName, b.dbName); - swap(a.tblName, b.tblName); - swap(a.capabilities, b.capabilities); - swap(a.__isset, b.__isset); -} - -GetTableRequest::GetTableRequest(const GetTableRequest& other785) { - dbName = other785.dbName; - tblName = other785.tblName; - capabilities = other785.capabilities; - __isset = other785.__isset; -} -GetTableRequest& GetTableRequest::operator=(const GetTableRequest& other786) { - dbName = other786.dbName; - tblName = other786.tblName; - capabilities = other786.capabilities; - __isset = other786.__isset; - return *this; -} -void GetTableRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "GetTableRequest("; - out << "dbName=" << to_string(dbName); - out << ", " << "tblName=" << to_string(tblName); - out << ", " << "capabilities="; (__isset.capabilities ? (out << to_string(capabilities)) : (out << "")); - out << ")"; -} - - -GetTableResult::~GetTableResult() throw() { -} - - -void GetTableResult::__set_table(const Table& val) { - this->table = val; -} - -uint32_t GetTableResult::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_table = 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_STRUCT) { - xfer += this->table.read(iprot); - isset_table = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_table) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t GetTableResult::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("GetTableResult"); - - xfer += oprot->writeFieldBegin("table", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->table.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(GetTableResult &a, GetTableResult &b) { - using ::std::swap; - swap(a.table, b.table); -} - -GetTableResult::GetTableResult(const GetTableResult& other787) { - table = other787.table; -} -GetTableResult& GetTableResult::operator=(const GetTableResult& other788) { - table = other788.table; - return *this; -} -void GetTableResult::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "GetTableResult("; - out << "table=" << to_string(table); - out << ")"; -} - - -GetTablesRequest::~GetTablesRequest() throw() { -} - - -void GetTablesRequest::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void GetTablesRequest::__set_tblNames(const std::vector & val) { - this->tblNames = val; -__isset.tblNames = true; -} - -void GetTablesRequest::__set_capabilities(const ClientCapabilities& val) { - this->capabilities = val; -__isset.capabilities = true; -} - -uint32_t GetTablesRequest::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_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_STRING) { - xfer += iprot->readString(this->dbName); - isset_dbName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->tblNames.clear(); - uint32_t _size789; - ::apache::thrift::protocol::TType _etype792; - xfer += iprot->readListBegin(_etype792, _size789); - this->tblNames.resize(_size789); - uint32_t _i793; - for (_i793 = 0; _i793 < _size789; ++_i793) - { - xfer += iprot->readString(this->tblNames[_i793]); - } - xfer += iprot->readListEnd(); - } - this->__isset.tblNames = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->capabilities.read(iprot); - this->__isset.capabilities = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_dbName) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t GetTablesRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("GetTablesRequest"); - - xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->dbName); - xfer += oprot->writeFieldEnd(); - - if (this->__isset.tblNames) { - 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 _iter794; - for (_iter794 = this->tblNames.begin(); _iter794 != this->tblNames.end(); ++_iter794) - { - xfer += oprot->writeString((*_iter794)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.capabilities) { - xfer += oprot->writeFieldBegin("capabilities", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->capabilities.write(oprot); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(GetTablesRequest &a, GetTablesRequest &b) { - using ::std::swap; - swap(a.dbName, b.dbName); - swap(a.tblNames, b.tblNames); - swap(a.capabilities, b.capabilities); - swap(a.__isset, b.__isset); -} - -GetTablesRequest::GetTablesRequest(const GetTablesRequest& other795) { - dbName = other795.dbName; - tblNames = other795.tblNames; - capabilities = other795.capabilities; - __isset = other795.__isset; -} -GetTablesRequest& GetTablesRequest::operator=(const GetTablesRequest& other796) { - dbName = other796.dbName; - tblNames = other796.tblNames; - capabilities = other796.capabilities; - __isset = other796.__isset; - return *this; -} -void GetTablesRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "GetTablesRequest("; - out << "dbName=" << to_string(dbName); - out << ", " << "tblNames="; (__isset.tblNames ? (out << to_string(tblNames)) : (out << "")); - out << ", " << "capabilities="; (__isset.capabilities ? (out << to_string(capabilities)) : (out << "")); - out << ")"; -} - - -GetTablesResult::~GetTablesResult() throw() { -} - - -void GetTablesResult::__set_tables(const std::vector
& val) { - this->tables = val; -} - -uint32_t GetTablesResult::read(::apache::thrift::protocol::TProtocol* iprot) { +void GetTablesResult::__set_tables(const std::vector
& val) { + this->tables = val; +} + +uint32_t GetTablesResult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -19531,14 +18596,14 @@ uint32_t GetTablesResult::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tables.clear(); - uint32_t _size797; - ::apache::thrift::protocol::TType _etype800; - xfer += iprot->readListBegin(_etype800, _size797); - this->tables.resize(_size797); - uint32_t _i801; - for (_i801 = 0; _i801 < _size797; ++_i801) + uint32_t _size775; + ::apache::thrift::protocol::TType _etype778; + xfer += iprot->readListBegin(_etype778, _size775); + this->tables.resize(_size775); + uint32_t _i779; + for (_i779 = 0; _i779 < _size775; ++_i779) { - xfer += this->tables[_i801].read(iprot); + xfer += this->tables[_i779].read(iprot); } xfer += iprot->readListEnd(); } @@ -19569,10 +18634,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 _iter802; - for (_iter802 = this->tables.begin(); _iter802 != this->tables.end(); ++_iter802) + std::vector
::const_iterator _iter780; + for (_iter780 = this->tables.begin(); _iter780 != this->tables.end(); ++_iter780) { - xfer += (*_iter802).write(oprot); + xfer += (*_iter780).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19588,11 +18653,11 @@ void swap(GetTablesResult &a, GetTablesResult &b) { swap(a.tables, b.tables); } -GetTablesResult::GetTablesResult(const GetTablesResult& other803) { - tables = other803.tables; +GetTablesResult::GetTablesResult(const GetTablesResult& other781) { + tables = other781.tables; } -GetTablesResult& GetTablesResult::operator=(const GetTablesResult& other804) { - tables = other804.tables; +GetTablesResult& GetTablesResult::operator=(const GetTablesResult& other782) { + tables = other782.tables; return *this; } void GetTablesResult::printTo(std::ostream& out) const { @@ -19734,19 +18799,19 @@ void swap(TableMeta &a, TableMeta &b) { swap(a.__isset, b.__isset); } -TableMeta::TableMeta(const TableMeta& other805) { - dbName = other805.dbName; - tableName = other805.tableName; - tableType = other805.tableType; - comments = other805.comments; - __isset = other805.__isset; +TableMeta::TableMeta(const TableMeta& other783) { + dbName = other783.dbName; + tableName = other783.tableName; + tableType = other783.tableType; + comments = other783.comments; + __isset = other783.__isset; } -TableMeta& TableMeta::operator=(const TableMeta& other806) { - dbName = other806.dbName; - tableName = other806.tableName; - tableType = other806.tableType; - comments = other806.comments; - __isset = other806.__isset; +TableMeta& TableMeta::operator=(const TableMeta& other784) { + dbName = other784.dbName; + tableName = other784.tableName; + tableType = other784.tableType; + comments = other784.comments; + __isset = other784.__isset; return *this; } void TableMeta::printTo(std::ostream& out) const { @@ -19829,13 +18894,13 @@ void swap(MetaException &a, MetaException &b) { swap(a.__isset, b.__isset); } -MetaException::MetaException(const MetaException& other807) : TException() { - message = other807.message; - __isset = other807.__isset; +MetaException::MetaException(const MetaException& other785) : TException() { + message = other785.message; + __isset = other785.__isset; } -MetaException& MetaException::operator=(const MetaException& other808) { - message = other808.message; - __isset = other808.__isset; +MetaException& MetaException::operator=(const MetaException& other786) { + message = other786.message; + __isset = other786.__isset; return *this; } void MetaException::printTo(std::ostream& out) const { @@ -19926,13 +18991,13 @@ void swap(UnknownTableException &a, UnknownTableException &b) { swap(a.__isset, b.__isset); } -UnknownTableException::UnknownTableException(const UnknownTableException& other809) : TException() { - message = other809.message; - __isset = other809.__isset; +UnknownTableException::UnknownTableException(const UnknownTableException& other787) : TException() { + message = other787.message; + __isset = other787.__isset; } -UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other810) { - message = other810.message; - __isset = other810.__isset; +UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other788) { + message = other788.message; + __isset = other788.__isset; return *this; } void UnknownTableException::printTo(std::ostream& out) const { @@ -20023,13 +19088,13 @@ void swap(UnknownDBException &a, UnknownDBException &b) { swap(a.__isset, b.__isset); } -UnknownDBException::UnknownDBException(const UnknownDBException& other811) : TException() { - message = other811.message; - __isset = other811.__isset; +UnknownDBException::UnknownDBException(const UnknownDBException& other789) : TException() { + message = other789.message; + __isset = other789.__isset; } -UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other812) { - message = other812.message; - __isset = other812.__isset; +UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other790) { + message = other790.message; + __isset = other790.__isset; return *this; } void UnknownDBException::printTo(std::ostream& out) const { @@ -20120,13 +19185,13 @@ void swap(AlreadyExistsException &a, AlreadyExistsException &b) { swap(a.__isset, b.__isset); } -AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other813) : TException() { - message = other813.message; - __isset = other813.__isset; +AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other791) : TException() { + message = other791.message; + __isset = other791.__isset; } -AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other814) { - message = other814.message; - __isset = other814.__isset; +AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other792) { + message = other792.message; + __isset = other792.__isset; return *this; } void AlreadyExistsException::printTo(std::ostream& out) const { @@ -20217,13 +19282,13 @@ void swap(InvalidPartitionException &a, InvalidPartitionException &b) { swap(a.__isset, b.__isset); } -InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other815) : TException() { - message = other815.message; - __isset = other815.__isset; +InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other793) : TException() { + message = other793.message; + __isset = other793.__isset; } -InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other816) { - message = other816.message; - __isset = other816.__isset; +InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other794) { + message = other794.message; + __isset = other794.__isset; return *this; } void InvalidPartitionException::printTo(std::ostream& out) const { @@ -20314,13 +19379,13 @@ void swap(UnknownPartitionException &a, UnknownPartitionException &b) { swap(a.__isset, b.__isset); } -UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other817) : TException() { - message = other817.message; - __isset = other817.__isset; +UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other795) : TException() { + message = other795.message; + __isset = other795.__isset; } -UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other818) { - message = other818.message; - __isset = other818.__isset; +UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other796) { + message = other796.message; + __isset = other796.__isset; return *this; } void UnknownPartitionException::printTo(std::ostream& out) const { @@ -20411,13 +19476,13 @@ void swap(InvalidObjectException &a, InvalidObjectException &b) { swap(a.__isset, b.__isset); } -InvalidObjectException::InvalidObjectException(const InvalidObjectException& other819) : TException() { - message = other819.message; - __isset = other819.__isset; +InvalidObjectException::InvalidObjectException(const InvalidObjectException& other797) : TException() { + message = other797.message; + __isset = other797.__isset; } -InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other820) { - message = other820.message; - __isset = other820.__isset; +InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other798) { + message = other798.message; + __isset = other798.__isset; return *this; } void InvalidObjectException::printTo(std::ostream& out) const { @@ -20508,13 +19573,13 @@ void swap(NoSuchObjectException &a, NoSuchObjectException &b) { swap(a.__isset, b.__isset); } -NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other821) : TException() { - message = other821.message; - __isset = other821.__isset; +NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other799) : TException() { + message = other799.message; + __isset = other799.__isset; } -NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other822) { - message = other822.message; - __isset = other822.__isset; +NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other800) { + message = other800.message; + __isset = other800.__isset; return *this; } void NoSuchObjectException::printTo(std::ostream& out) const { @@ -20605,13 +19670,13 @@ void swap(IndexAlreadyExistsException &a, IndexAlreadyExistsException &b) { swap(a.__isset, b.__isset); } -IndexAlreadyExistsException::IndexAlreadyExistsException(const IndexAlreadyExistsException& other823) : TException() { - message = other823.message; - __isset = other823.__isset; +IndexAlreadyExistsException::IndexAlreadyExistsException(const IndexAlreadyExistsException& other801) : TException() { + message = other801.message; + __isset = other801.__isset; } -IndexAlreadyExistsException& IndexAlreadyExistsException::operator=(const IndexAlreadyExistsException& other824) { - message = other824.message; - __isset = other824.__isset; +IndexAlreadyExistsException& IndexAlreadyExistsException::operator=(const IndexAlreadyExistsException& other802) { + message = other802.message; + __isset = other802.__isset; return *this; } void IndexAlreadyExistsException::printTo(std::ostream& out) const { @@ -20702,13 +19767,13 @@ void swap(InvalidOperationException &a, InvalidOperationException &b) { swap(a.__isset, b.__isset); } -InvalidOperationException::InvalidOperationException(const InvalidOperationException& other825) : TException() { - message = other825.message; - __isset = other825.__isset; +InvalidOperationException::InvalidOperationException(const InvalidOperationException& other803) : TException() { + message = other803.message; + __isset = other803.__isset; } -InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other826) { - message = other826.message; - __isset = other826.__isset; +InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other804) { + message = other804.message; + __isset = other804.__isset; return *this; } void InvalidOperationException::printTo(std::ostream& out) const { @@ -20799,13 +19864,13 @@ void swap(ConfigValSecurityException &a, ConfigValSecurityException &b) { swap(a.__isset, b.__isset); } -ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other827) : TException() { - message = other827.message; - __isset = other827.__isset; +ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other805) : TException() { + message = other805.message; + __isset = other805.__isset; } -ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other828) { - message = other828.message; - __isset = other828.__isset; +ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other806) { + message = other806.message; + __isset = other806.__isset; return *this; } void ConfigValSecurityException::printTo(std::ostream& out) const { @@ -20896,13 +19961,13 @@ void swap(InvalidInputException &a, InvalidInputException &b) { swap(a.__isset, b.__isset); } -InvalidInputException::InvalidInputException(const InvalidInputException& other829) : TException() { - message = other829.message; - __isset = other829.__isset; +InvalidInputException::InvalidInputException(const InvalidInputException& other807) : TException() { + message = other807.message; + __isset = other807.__isset; } -InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other830) { - message = other830.message; - __isset = other830.__isset; +InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other808) { + message = other808.message; + __isset = other808.__isset; return *this; } void InvalidInputException::printTo(std::ostream& out) const { @@ -20993,13 +20058,13 @@ void swap(NoSuchTxnException &a, NoSuchTxnException &b) { swap(a.__isset, b.__isset); } -NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other831) : TException() { - message = other831.message; - __isset = other831.__isset; +NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other809) : TException() { + message = other809.message; + __isset = other809.__isset; } -NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other832) { - message = other832.message; - __isset = other832.__isset; +NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other810) { + message = other810.message; + __isset = other810.__isset; return *this; } void NoSuchTxnException::printTo(std::ostream& out) const { @@ -21090,13 +20155,13 @@ void swap(TxnAbortedException &a, TxnAbortedException &b) { swap(a.__isset, b.__isset); } -TxnAbortedException::TxnAbortedException(const TxnAbortedException& other833) : TException() { - message = other833.message; - __isset = other833.__isset; +TxnAbortedException::TxnAbortedException(const TxnAbortedException& other811) : TException() { + message = other811.message; + __isset = other811.__isset; } -TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other834) { - message = other834.message; - __isset = other834.__isset; +TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other812) { + message = other812.message; + __isset = other812.__isset; return *this; } void TxnAbortedException::printTo(std::ostream& out) const { @@ -21187,13 +20252,13 @@ void swap(TxnOpenException &a, TxnOpenException &b) { swap(a.__isset, b.__isset); } -TxnOpenException::TxnOpenException(const TxnOpenException& other835) : TException() { - message = other835.message; - __isset = other835.__isset; +TxnOpenException::TxnOpenException(const TxnOpenException& other813) : TException() { + message = other813.message; + __isset = other813.__isset; } -TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other836) { - message = other836.message; - __isset = other836.__isset; +TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other814) { + message = other814.message; + __isset = other814.__isset; return *this; } void TxnOpenException::printTo(std::ostream& out) const { @@ -21284,13 +20349,13 @@ void swap(NoSuchLockException &a, NoSuchLockException &b) { swap(a.__isset, b.__isset); } -NoSuchLockException::NoSuchLockException(const NoSuchLockException& other837) : TException() { - message = other837.message; - __isset = other837.__isset; +NoSuchLockException::NoSuchLockException(const NoSuchLockException& other815) : TException() { + message = other815.message; + __isset = other815.__isset; } -NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other838) { - message = other838.message; - __isset = other838.__isset; +NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other816) { + message = other816.message; + __isset = other816.__isset; return *this; } void NoSuchLockException::printTo(std::ostream& out) const { diff --git metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h index d6a90cc..5f83781 100644 --- metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h +++ metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h @@ -395,22 +395,6 @@ class CacheFileMetadataResult; class CacheFileMetadataRequest; -class GetNextWriteIdRequest; - -class GetNextWriteIdResult; - -class FinalizeWriteIdRequest; - -class FinalizeWriteIdResult; - -class HeartbeatWriteIdRequest; - -class HeartbeatWriteIdResult; - -class GetValidWriteIdsRequest; - -class GetValidWriteIdsResult; - class GetAllFunctionsResponse; class ClientCapabilities; @@ -2079,7 +2063,7 @@ inline std::ostream& operator<<(std::ostream& out, const StorageDescriptor& obj) } typedef struct _Table__isset { - _Table__isset() : tableName(false), dbName(false), owner(false), createTime(false), lastAccessTime(false), retention(false), sd(false), partitionKeys(false), parameters(false), viewOriginalText(false), viewExpandedText(false), tableType(false), privileges(false), temporary(true), rewriteEnabled(false), mmNextWriteId(false), mmWatermarkWriteId(false) {} + _Table__isset() : tableName(false), dbName(false), owner(false), createTime(false), lastAccessTime(false), retention(false), sd(false), partitionKeys(false), parameters(false), viewOriginalText(false), viewExpandedText(false), tableType(false), privileges(false), temporary(true), rewriteEnabled(false) {} bool tableName :1; bool dbName :1; bool owner :1; @@ -2095,8 +2079,6 @@ typedef struct _Table__isset { bool privileges :1; bool temporary :1; bool rewriteEnabled :1; - bool mmNextWriteId :1; - bool mmWatermarkWriteId :1; } _Table__isset; class Table { @@ -2104,7 +2086,7 @@ class Table { Table(const Table&); Table& operator=(const Table&); - Table() : tableName(), dbName(), owner(), createTime(0), lastAccessTime(0), retention(0), viewOriginalText(), viewExpandedText(), tableType(), temporary(false), rewriteEnabled(0), mmNextWriteId(0), mmWatermarkWriteId(0) { + Table() : tableName(), dbName(), owner(), createTime(0), lastAccessTime(0), retention(0), viewOriginalText(), viewExpandedText(), tableType(), temporary(false), rewriteEnabled(0) { } virtual ~Table() throw(); @@ -2123,8 +2105,6 @@ class Table { PrincipalPrivilegeSet privileges; bool temporary; bool rewriteEnabled; - int64_t mmNextWriteId; - int64_t mmWatermarkWriteId; _Table__isset __isset; @@ -2158,10 +2138,6 @@ class Table { void __set_rewriteEnabled(const bool val); - void __set_mmNextWriteId(const int64_t val); - - void __set_mmWatermarkWriteId(const int64_t val); - bool operator == (const Table & rhs) const { if (!(tableName == rhs.tableName)) @@ -2200,14 +2176,6 @@ class Table { return false; else if (__isset.rewriteEnabled && !(rewriteEnabled == rhs.rewriteEnabled)) return false; - if (__isset.mmNextWriteId != rhs.__isset.mmNextWriteId) - return false; - else if (__isset.mmNextWriteId && !(mmNextWriteId == rhs.mmNextWriteId)) - return false; - if (__isset.mmWatermarkWriteId != rhs.__isset.mmWatermarkWriteId) - return false; - else if (__isset.mmWatermarkWriteId && !(mmWatermarkWriteId == rhs.mmWatermarkWriteId)) - return false; return true; } bool operator != (const Table &rhs) const { @@ -7334,377 +7302,6 @@ inline std::ostream& operator<<(std::ostream& out, const CacheFileMetadataReques return out; } - -class GetNextWriteIdRequest { - public: - - GetNextWriteIdRequest(const GetNextWriteIdRequest&); - GetNextWriteIdRequest& operator=(const GetNextWriteIdRequest&); - GetNextWriteIdRequest() : dbName(), tblName() { - } - - virtual ~GetNextWriteIdRequest() throw(); - std::string dbName; - std::string tblName; - - void __set_dbName(const std::string& val); - - void __set_tblName(const std::string& val); - - bool operator == (const GetNextWriteIdRequest & rhs) const - { - if (!(dbName == rhs.dbName)) - return false; - if (!(tblName == rhs.tblName)) - return false; - return true; - } - bool operator != (const GetNextWriteIdRequest &rhs) const { - return !(*this == rhs); - } - - bool operator < (const GetNextWriteIdRequest & ) 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(GetNextWriteIdRequest &a, GetNextWriteIdRequest &b); - -inline std::ostream& operator<<(std::ostream& out, const GetNextWriteIdRequest& obj) -{ - obj.printTo(out); - return out; -} - - -class GetNextWriteIdResult { - public: - - GetNextWriteIdResult(const GetNextWriteIdResult&); - GetNextWriteIdResult& operator=(const GetNextWriteIdResult&); - GetNextWriteIdResult() : writeId(0) { - } - - virtual ~GetNextWriteIdResult() throw(); - int64_t writeId; - - void __set_writeId(const int64_t val); - - bool operator == (const GetNextWriteIdResult & rhs) const - { - if (!(writeId == rhs.writeId)) - return false; - return true; - } - bool operator != (const GetNextWriteIdResult &rhs) const { - return !(*this == rhs); - } - - bool operator < (const GetNextWriteIdResult & ) 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(GetNextWriteIdResult &a, GetNextWriteIdResult &b); - -inline std::ostream& operator<<(std::ostream& out, const GetNextWriteIdResult& obj) -{ - obj.printTo(out); - return out; -} - - -class FinalizeWriteIdRequest { - public: - - FinalizeWriteIdRequest(const FinalizeWriteIdRequest&); - FinalizeWriteIdRequest& operator=(const FinalizeWriteIdRequest&); - FinalizeWriteIdRequest() : dbName(), tblName(), writeId(0), commit(0) { - } - - virtual ~FinalizeWriteIdRequest() throw(); - std::string dbName; - std::string tblName; - int64_t writeId; - bool commit; - - void __set_dbName(const std::string& val); - - void __set_tblName(const std::string& val); - - void __set_writeId(const int64_t val); - - void __set_commit(const bool val); - - bool operator == (const FinalizeWriteIdRequest & rhs) const - { - if (!(dbName == rhs.dbName)) - return false; - if (!(tblName == rhs.tblName)) - return false; - if (!(writeId == rhs.writeId)) - return false; - if (!(commit == rhs.commit)) - return false; - return true; - } - bool operator != (const FinalizeWriteIdRequest &rhs) const { - return !(*this == rhs); - } - - bool operator < (const FinalizeWriteIdRequest & ) 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(FinalizeWriteIdRequest &a, FinalizeWriteIdRequest &b); - -inline std::ostream& operator<<(std::ostream& out, const FinalizeWriteIdRequest& obj) -{ - obj.printTo(out); - return out; -} - - -class FinalizeWriteIdResult { - public: - - FinalizeWriteIdResult(const FinalizeWriteIdResult&); - FinalizeWriteIdResult& operator=(const FinalizeWriteIdResult&); - FinalizeWriteIdResult() { - } - - virtual ~FinalizeWriteIdResult() throw(); - - bool operator == (const FinalizeWriteIdResult & /* rhs */) const - { - return true; - } - bool operator != (const FinalizeWriteIdResult &rhs) const { - return !(*this == rhs); - } - - bool operator < (const FinalizeWriteIdResult & ) 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(FinalizeWriteIdResult &a, FinalizeWriteIdResult &b); - -inline std::ostream& operator<<(std::ostream& out, const FinalizeWriteIdResult& obj) -{ - obj.printTo(out); - return out; -} - - -class HeartbeatWriteIdRequest { - public: - - HeartbeatWriteIdRequest(const HeartbeatWriteIdRequest&); - HeartbeatWriteIdRequest& operator=(const HeartbeatWriteIdRequest&); - HeartbeatWriteIdRequest() : dbName(), tblName(), writeId(0) { - } - - virtual ~HeartbeatWriteIdRequest() throw(); - std::string dbName; - std::string tblName; - int64_t writeId; - - void __set_dbName(const std::string& val); - - void __set_tblName(const std::string& val); - - void __set_writeId(const int64_t val); - - bool operator == (const HeartbeatWriteIdRequest & rhs) const - { - if (!(dbName == rhs.dbName)) - return false; - if (!(tblName == rhs.tblName)) - return false; - if (!(writeId == rhs.writeId)) - return false; - return true; - } - bool operator != (const HeartbeatWriteIdRequest &rhs) const { - return !(*this == rhs); - } - - bool operator < (const HeartbeatWriteIdRequest & ) 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(HeartbeatWriteIdRequest &a, HeartbeatWriteIdRequest &b); - -inline std::ostream& operator<<(std::ostream& out, const HeartbeatWriteIdRequest& obj) -{ - obj.printTo(out); - return out; -} - - -class HeartbeatWriteIdResult { - public: - - HeartbeatWriteIdResult(const HeartbeatWriteIdResult&); - HeartbeatWriteIdResult& operator=(const HeartbeatWriteIdResult&); - HeartbeatWriteIdResult() { - } - - virtual ~HeartbeatWriteIdResult() throw(); - - bool operator == (const HeartbeatWriteIdResult & /* rhs */) const - { - return true; - } - bool operator != (const HeartbeatWriteIdResult &rhs) const { - return !(*this == rhs); - } - - bool operator < (const HeartbeatWriteIdResult & ) 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(HeartbeatWriteIdResult &a, HeartbeatWriteIdResult &b); - -inline std::ostream& operator<<(std::ostream& out, const HeartbeatWriteIdResult& obj) -{ - obj.printTo(out); - return out; -} - - -class GetValidWriteIdsRequest { - public: - - GetValidWriteIdsRequest(const GetValidWriteIdsRequest&); - GetValidWriteIdsRequest& operator=(const GetValidWriteIdsRequest&); - GetValidWriteIdsRequest() : dbName(), tblName() { - } - - virtual ~GetValidWriteIdsRequest() throw(); - std::string dbName; - std::string tblName; - - void __set_dbName(const std::string& val); - - void __set_tblName(const std::string& val); - - bool operator == (const GetValidWriteIdsRequest & rhs) const - { - if (!(dbName == rhs.dbName)) - return false; - if (!(tblName == rhs.tblName)) - return false; - return true; - } - bool operator != (const GetValidWriteIdsRequest &rhs) const { - return !(*this == rhs); - } - - bool operator < (const GetValidWriteIdsRequest & ) 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(GetValidWriteIdsRequest &a, GetValidWriteIdsRequest &b); - -inline std::ostream& operator<<(std::ostream& out, const GetValidWriteIdsRequest& obj) -{ - obj.printTo(out); - return out; -} - -typedef struct _GetValidWriteIdsResult__isset { - _GetValidWriteIdsResult__isset() : areIdsValid(false), ids(false) {} - bool areIdsValid :1; - bool ids :1; -} _GetValidWriteIdsResult__isset; - -class GetValidWriteIdsResult { - public: - - GetValidWriteIdsResult(const GetValidWriteIdsResult&); - GetValidWriteIdsResult& operator=(const GetValidWriteIdsResult&); - GetValidWriteIdsResult() : lowWatermarkId(0), highWatermarkId(0), areIdsValid(0) { - } - - virtual ~GetValidWriteIdsResult() throw(); - int64_t lowWatermarkId; - int64_t highWatermarkId; - bool areIdsValid; - std::vector ids; - - _GetValidWriteIdsResult__isset __isset; - - void __set_lowWatermarkId(const int64_t val); - - void __set_highWatermarkId(const int64_t val); - - void __set_areIdsValid(const bool val); - - void __set_ids(const std::vector & val); - - bool operator == (const GetValidWriteIdsResult & rhs) const - { - if (!(lowWatermarkId == rhs.lowWatermarkId)) - return false; - if (!(highWatermarkId == rhs.highWatermarkId)) - return false; - if (__isset.areIdsValid != rhs.__isset.areIdsValid) - return false; - else if (__isset.areIdsValid && !(areIdsValid == rhs.areIdsValid)) - return false; - if (__isset.ids != rhs.__isset.ids) - return false; - else if (__isset.ids && !(ids == rhs.ids)) - return false; - return true; - } - bool operator != (const GetValidWriteIdsResult &rhs) const { - return !(*this == rhs); - } - - bool operator < (const GetValidWriteIdsResult & ) 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(GetValidWriteIdsResult &a, GetValidWriteIdsResult &b); - -inline std::ostream& operator<<(std::ostream& out, const GetValidWriteIdsResult& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _GetAllFunctionsResponse__isset { _GetAllFunctionsResponse__isset() : functions(false) {} bool functions :1; diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java index d7ab0cf..81534fe 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java @@ -354,13 +354,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ClientCapabilities case 1: // VALUES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list658 = iprot.readListBegin(); - struct.values = new ArrayList(_list658.size); - ClientCapability _elem659; - for (int _i660 = 0; _i660 < _list658.size; ++_i660) + org.apache.thrift.protocol.TList _list650 = iprot.readListBegin(); + struct.values = new ArrayList(_list650.size); + ClientCapability _elem651; + for (int _i652 = 0; _i652 < _list650.size; ++_i652) { - _elem659 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem659); + _elem651 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem651); } iprot.readListEnd(); } @@ -386,9 +386,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ClientCapabilities oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.values.size())); - for (ClientCapability _iter661 : struct.values) + for (ClientCapability _iter653 : struct.values) { - oprot.writeI32(_iter661.getValue()); + oprot.writeI32(_iter653.getValue()); } oprot.writeListEnd(); } @@ -413,9 +413,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ClientCapabilities TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.values.size()); - for (ClientCapability _iter662 : struct.values) + for (ClientCapability _iter654 : struct.values) { - oprot.writeI32(_iter662.getValue()); + oprot.writeI32(_iter654.getValue()); } } } @@ -424,13 +424,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ClientCapabilities public void read(org.apache.thrift.protocol.TProtocol prot, ClientCapabilities struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list663 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.values = new ArrayList(_list663.size); - ClientCapability _elem664; - for (int _i665 = 0; _i665 < _list663.size; ++_i665) + org.apache.thrift.protocol.TList _list655 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.values = new ArrayList(_list655.size); + ClientCapability _elem656; + for (int _i657 = 0; _i657 < _list655.size; ++_i657) { - _elem664 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem664); + _elem656 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem656); } } struct.setValuesIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FinalizeWriteIdRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FinalizeWriteIdRequest.java deleted file mode 100644 index f474602..0000000 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FinalizeWriteIdRequest.java +++ /dev/null @@ -1,684 +0,0 @@ -/** - * 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 FinalizeWriteIdRequest 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("FinalizeWriteIdRequest"); - - 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)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tblName", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField WRITE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("writeId", org.apache.thrift.protocol.TType.I64, (short)3); - private static final org.apache.thrift.protocol.TField COMMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("commit", org.apache.thrift.protocol.TType.BOOL, (short)4); - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new FinalizeWriteIdRequestStandardSchemeFactory()); - schemes.put(TupleScheme.class, new FinalizeWriteIdRequestTupleSchemeFactory()); - } - - private String dbName; // required - private String tblName; // required - private long writeId; // required - private boolean commit; // 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 { - DB_NAME((short)1, "dbName"), - TBL_NAME((short)2, "tblName"), - WRITE_ID((short)3, "writeId"), - COMMIT((short)4, "commit"); - - 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: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // WRITE_ID - return WRITE_ID; - case 4: // COMMIT - return COMMIT; - default: - return null; - } - } - - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } - - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - private static final int __WRITEID_ISSET_ID = 0; - private static final int __COMMIT_ISSET_ID = 1; - 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.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))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tblName", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.WRITE_ID, new org.apache.thrift.meta_data.FieldMetaData("writeId", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - tmpMap.put(_Fields.COMMIT, new org.apache.thrift.meta_data.FieldMetaData("commit", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(FinalizeWriteIdRequest.class, metaDataMap); - } - - public FinalizeWriteIdRequest() { - } - - public FinalizeWriteIdRequest( - String dbName, - String tblName, - long writeId, - boolean commit) - { - this(); - this.dbName = dbName; - this.tblName = tblName; - this.writeId = writeId; - setWriteIdIsSet(true); - this.commit = commit; - setCommitIsSet(true); - } - - /** - * Performs a deep copy on other. - */ - public FinalizeWriteIdRequest(FinalizeWriteIdRequest other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetDbName()) { - this.dbName = other.dbName; - } - if (other.isSetTblName()) { - this.tblName = other.tblName; - } - this.writeId = other.writeId; - this.commit = other.commit; - } - - public FinalizeWriteIdRequest deepCopy() { - return new FinalizeWriteIdRequest(this); - } - - @Override - public void clear() { - this.dbName = null; - this.tblName = null; - setWriteIdIsSet(false); - this.writeId = 0; - setCommitIsSet(false); - this.commit = false; - } - - 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 String getTblName() { - return this.tblName; - } - - public void setTblName(String tblName) { - this.tblName = tblName; - } - - public void unsetTblName() { - this.tblName = null; - } - - /** Returns true if field tblName is set (has been assigned a value) and false otherwise */ - public boolean isSetTblName() { - return this.tblName != null; - } - - public void setTblNameIsSet(boolean value) { - if (!value) { - this.tblName = null; - } - } - - public long getWriteId() { - return this.writeId; - } - - public void setWriteId(long writeId) { - this.writeId = writeId; - setWriteIdIsSet(true); - } - - public void unsetWriteId() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WRITEID_ISSET_ID); - } - - /** Returns true if field writeId is set (has been assigned a value) and false otherwise */ - public boolean isSetWriteId() { - return EncodingUtils.testBit(__isset_bitfield, __WRITEID_ISSET_ID); - } - - public void setWriteIdIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WRITEID_ISSET_ID, value); - } - - public boolean isCommit() { - return this.commit; - } - - public void setCommit(boolean commit) { - this.commit = commit; - setCommitIsSet(true); - } - - public void unsetCommit() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __COMMIT_ISSET_ID); - } - - /** Returns true if field commit is set (has been assigned a value) and false otherwise */ - public boolean isSetCommit() { - return EncodingUtils.testBit(__isset_bitfield, __COMMIT_ISSET_ID); - } - - public void setCommitIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __COMMIT_ISSET_ID, value); - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case DB_NAME: - if (value == null) { - unsetDbName(); - } else { - setDbName((String)value); - } - break; - - case TBL_NAME: - if (value == null) { - unsetTblName(); - } else { - setTblName((String)value); - } - break; - - case WRITE_ID: - if (value == null) { - unsetWriteId(); - } else { - setWriteId((Long)value); - } - break; - - case COMMIT: - if (value == null) { - unsetCommit(); - } else { - setCommit((Boolean)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case DB_NAME: - return getDbName(); - - case TBL_NAME: - return getTblName(); - - case WRITE_ID: - return getWriteId(); - - case COMMIT: - return isCommit(); - - } - 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 DB_NAME: - return isSetDbName(); - case TBL_NAME: - return isSetTblName(); - case WRITE_ID: - return isSetWriteId(); - case COMMIT: - return isSetCommit(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof FinalizeWriteIdRequest) - return this.equals((FinalizeWriteIdRequest)that); - return false; - } - - public boolean equals(FinalizeWriteIdRequest that) { - if (that == null) - 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; - } - - boolean this_present_tblName = true && this.isSetTblName(); - boolean that_present_tblName = true && that.isSetTblName(); - if (this_present_tblName || that_present_tblName) { - if (!(this_present_tblName && that_present_tblName)) - return false; - if (!this.tblName.equals(that.tblName)) - return false; - } - - boolean this_present_writeId = true; - boolean that_present_writeId = true; - if (this_present_writeId || that_present_writeId) { - if (!(this_present_writeId && that_present_writeId)) - return false; - if (this.writeId != that.writeId) - return false; - } - - boolean this_present_commit = true; - boolean that_present_commit = true; - if (this_present_commit || that_present_commit) { - if (!(this_present_commit && that_present_commit)) - return false; - if (this.commit != that.commit) - return false; - } - - return true; - } - - @Override - public int hashCode() { - List list = new ArrayList(); - - boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); - if (present_dbName) - list.add(dbName); - - boolean present_tblName = true && (isSetTblName()); - list.add(present_tblName); - if (present_tblName) - list.add(tblName); - - boolean present_writeId = true; - list.add(present_writeId); - if (present_writeId) - list.add(writeId); - - boolean present_commit = true; - list.add(present_commit); - if (present_commit) - list.add(commit); - - return list.hashCode(); - } - - @Override - public int compareTo(FinalizeWriteIdRequest other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - 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; - } - } - lastComparison = Boolean.valueOf(isSetTblName()).compareTo(other.isSetTblName()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTblName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, other.tblName); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetWriteId()).compareTo(other.isSetWriteId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetWriteId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.writeId, other.writeId); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetCommit()).compareTo(other.isSetCommit()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetCommit()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.commit, other.commit); - 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("FinalizeWriteIdRequest("); - boolean first = true; - - sb.append("dbName:"); - if (this.dbName == null) { - sb.append("null"); - } else { - sb.append(this.dbName); - } - first = false; - if (!first) sb.append(", "); - sb.append("tblName:"); - if (this.tblName == null) { - sb.append("null"); - } else { - sb.append(this.tblName); - } - first = false; - if (!first) sb.append(", "); - sb.append("writeId:"); - sb.append(this.writeId); - first = false; - if (!first) sb.append(", "); - sb.append("commit:"); - sb.append(this.commit); - first = false; - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - if (!isSetDbName()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbName' is unset! Struct:" + toString()); - } - - if (!isSetTblName()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'tblName' is unset! Struct:" + toString()); - } - - if (!isSetWriteId()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'writeId' is unset! Struct:" + toString()); - } - - if (!isSetCommit()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'commit' 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 FinalizeWriteIdRequestStandardSchemeFactory implements SchemeFactory { - public FinalizeWriteIdRequestStandardScheme getScheme() { - return new FinalizeWriteIdRequestStandardScheme(); - } - } - - private static class FinalizeWriteIdRequestStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, FinalizeWriteIdRequest 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: // 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; - case 2: // TBL_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tblName = iprot.readString(); - struct.setTblNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // WRITE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.writeId = iprot.readI64(); - struct.setWriteIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // COMMIT - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.commit = iprot.readBool(); - struct.setCommitIsSet(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, FinalizeWriteIdRequest struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.dbName != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.dbName); - oprot.writeFieldEnd(); - } - if (struct.tblName != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tblName); - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(WRITE_ID_FIELD_DESC); - oprot.writeI64(struct.writeId); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(COMMIT_FIELD_DESC); - oprot.writeBool(struct.commit); - oprot.writeFieldEnd(); - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class FinalizeWriteIdRequestTupleSchemeFactory implements SchemeFactory { - public FinalizeWriteIdRequestTupleScheme getScheme() { - return new FinalizeWriteIdRequestTupleScheme(); - } - } - - private static class FinalizeWriteIdRequestTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, FinalizeWriteIdRequest struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - oprot.writeString(struct.dbName); - oprot.writeString(struct.tblName); - oprot.writeI64(struct.writeId); - oprot.writeBool(struct.commit); - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, FinalizeWriteIdRequest struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - struct.dbName = iprot.readString(); - struct.setDbNameIsSet(true); - struct.tblName = iprot.readString(); - struct.setTblNameIsSet(true); - struct.writeId = iprot.readI64(); - struct.setWriteIdIsSet(true); - struct.commit = iprot.readBool(); - struct.setCommitIsSet(true); - } - } - -} - diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FinalizeWriteIdResult.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FinalizeWriteIdResult.java deleted file mode 100644 index 8e8b504..0000000 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FinalizeWriteIdResult.java +++ /dev/null @@ -1,283 +0,0 @@ -/** - * 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 FinalizeWriteIdResult 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("FinalizeWriteIdResult"); - - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new FinalizeWriteIdResultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new FinalizeWriteIdResultTupleSchemeFactory()); - } - - - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { -; - - private static final Map byName = new HashMap(); - - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } - } - - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - default: - return null; - } - } - - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } - - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(FinalizeWriteIdResult.class, metaDataMap); - } - - public FinalizeWriteIdResult() { - } - - /** - * Performs a deep copy on other. - */ - public FinalizeWriteIdResult(FinalizeWriteIdResult other) { - } - - public FinalizeWriteIdResult deepCopy() { - return new FinalizeWriteIdResult(this); - } - - @Override - public void clear() { - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - } - throw new IllegalStateException(); - } - - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); - } - - switch (field) { - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof FinalizeWriteIdResult) - return this.equals((FinalizeWriteIdResult)that); - return false; - } - - public boolean equals(FinalizeWriteIdResult that) { - if (that == null) - return false; - - return true; - } - - @Override - public int hashCode() { - List list = new ArrayList(); - - return list.hashCode(); - } - - @Override - public int compareTo(FinalizeWriteIdResult other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - return 0; - } - - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); - } - - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("FinalizeWriteIdResult("); - boolean first = true; - - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - // check for sub-struct validity - } - - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { - try { - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { - try { - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private static class FinalizeWriteIdResultStandardSchemeFactory implements SchemeFactory { - public FinalizeWriteIdResultStandardScheme getScheme() { - return new FinalizeWriteIdResultStandardScheme(); - } - } - - private static class FinalizeWriteIdResultStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, FinalizeWriteIdResult struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, FinalizeWriteIdResult struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class FinalizeWriteIdResultTupleSchemeFactory implements SchemeFactory { - public FinalizeWriteIdResultTupleScheme getScheme() { - return new FinalizeWriteIdResultTupleScheme(); - } - } - - private static class FinalizeWriteIdResultTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, FinalizeWriteIdResult struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, FinalizeWriteIdResult struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - } - } - -} - diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java index 2551870..49a1be2 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java @@ -346,14 +346,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetAllFunctionsResp case 1: // FUNCTIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list650 = iprot.readListBegin(); - struct.functions = new ArrayList(_list650.size); - Function _elem651; - for (int _i652 = 0; _i652 < _list650.size; ++_i652) + org.apache.thrift.protocol.TList _list642 = iprot.readListBegin(); + struct.functions = new ArrayList(_list642.size); + Function _elem643; + for (int _i644 = 0; _i644 < _list642.size; ++_i644) { - _elem651 = new Function(); - _elem651.read(iprot); - struct.functions.add(_elem651); + _elem643 = new Function(); + _elem643.read(iprot); + struct.functions.add(_elem643); } iprot.readListEnd(); } @@ -380,9 +380,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetAllFunctionsRes oprot.writeFieldBegin(FUNCTIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.functions.size())); - for (Function _iter653 : struct.functions) + for (Function _iter645 : struct.functions) { - _iter653.write(oprot); + _iter645.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetAllFunctionsResp if (struct.isSetFunctions()) { { oprot.writeI32(struct.functions.size()); - for (Function _iter654 : struct.functions) + for (Function _iter646 : struct.functions) { - _iter654.write(oprot); + _iter646.write(oprot); } } } @@ -428,14 +428,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetAllFunctionsRespo BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list655 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.functions = new ArrayList(_list655.size); - Function _elem656; - for (int _i657 = 0; _i657 < _list655.size; ++_i657) + org.apache.thrift.protocol.TList _list647 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.functions = new ArrayList(_list647.size); + Function _elem648; + for (int _i649 = 0; _i649 < _list647.size; ++_i649) { - _elem656 = new Function(); - _elem656.read(iprot); - struct.functions.add(_elem656); + _elem648 = new Function(); + _elem648.read(iprot); + struct.functions.add(_elem648); } } struct.setFunctionsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetNextWriteIdRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetNextWriteIdRequest.java deleted file mode 100644 index dab13fd..0000000 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetNextWriteIdRequest.java +++ /dev/null @@ -1,490 +0,0 @@ -/** - * 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 GetNextWriteIdRequest 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("GetNextWriteIdRequest"); - - 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)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tblName", org.apache.thrift.protocol.TType.STRING, (short)2); - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new GetNextWriteIdRequestStandardSchemeFactory()); - schemes.put(TupleScheme.class, new GetNextWriteIdRequestTupleSchemeFactory()); - } - - private String dbName; // required - private String tblName; // 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 { - DB_NAME((short)1, "dbName"), - TBL_NAME((short)2, "tblName"); - - 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: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_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 - 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.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))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tblName", 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(GetNextWriteIdRequest.class, metaDataMap); - } - - public GetNextWriteIdRequest() { - } - - public GetNextWriteIdRequest( - String dbName, - String tblName) - { - this(); - this.dbName = dbName; - this.tblName = tblName; - } - - /** - * Performs a deep copy on other. - */ - public GetNextWriteIdRequest(GetNextWriteIdRequest other) { - if (other.isSetDbName()) { - this.dbName = other.dbName; - } - if (other.isSetTblName()) { - this.tblName = other.tblName; - } - } - - public GetNextWriteIdRequest deepCopy() { - return new GetNextWriteIdRequest(this); - } - - @Override - public void clear() { - this.dbName = null; - this.tblName = null; - } - - 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 String getTblName() { - return this.tblName; - } - - public void setTblName(String tblName) { - this.tblName = tblName; - } - - public void unsetTblName() { - this.tblName = null; - } - - /** Returns true if field tblName is set (has been assigned a value) and false otherwise */ - public boolean isSetTblName() { - return this.tblName != null; - } - - public void setTblNameIsSet(boolean value) { - if (!value) { - this.tblName = null; - } - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case DB_NAME: - if (value == null) { - unsetDbName(); - } else { - setDbName((String)value); - } - break; - - case TBL_NAME: - if (value == null) { - unsetTblName(); - } else { - setTblName((String)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case DB_NAME: - return getDbName(); - - case TBL_NAME: - return getTblName(); - - } - 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 DB_NAME: - return isSetDbName(); - case TBL_NAME: - return isSetTblName(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof GetNextWriteIdRequest) - return this.equals((GetNextWriteIdRequest)that); - return false; - } - - public boolean equals(GetNextWriteIdRequest that) { - if (that == null) - 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; - } - - boolean this_present_tblName = true && this.isSetTblName(); - boolean that_present_tblName = true && that.isSetTblName(); - if (this_present_tblName || that_present_tblName) { - if (!(this_present_tblName && that_present_tblName)) - return false; - if (!this.tblName.equals(that.tblName)) - return false; - } - - return true; - } - - @Override - public int hashCode() { - List list = new ArrayList(); - - boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); - if (present_dbName) - list.add(dbName); - - boolean present_tblName = true && (isSetTblName()); - list.add(present_tblName); - if (present_tblName) - list.add(tblName); - - return list.hashCode(); - } - - @Override - public int compareTo(GetNextWriteIdRequest other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - 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; - } - } - lastComparison = Boolean.valueOf(isSetTblName()).compareTo(other.isSetTblName()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTblName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, other.tblName); - 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("GetNextWriteIdRequest("); - boolean first = true; - - sb.append("dbName:"); - if (this.dbName == null) { - sb.append("null"); - } else { - sb.append(this.dbName); - } - first = false; - if (!first) sb.append(", "); - sb.append("tblName:"); - if (this.tblName == null) { - sb.append("null"); - } else { - sb.append(this.tblName); - } - first = false; - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - if (!isSetDbName()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbName' is unset! Struct:" + toString()); - } - - if (!isSetTblName()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'tblName' 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 { - 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 GetNextWriteIdRequestStandardSchemeFactory implements SchemeFactory { - public GetNextWriteIdRequestStandardScheme getScheme() { - return new GetNextWriteIdRequestStandardScheme(); - } - } - - private static class GetNextWriteIdRequestStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, GetNextWriteIdRequest 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: // 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; - case 2: // TBL_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tblName = iprot.readString(); - struct.setTblNameIsSet(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, GetNextWriteIdRequest struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.dbName != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.dbName); - oprot.writeFieldEnd(); - } - if (struct.tblName != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tblName); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class GetNextWriteIdRequestTupleSchemeFactory implements SchemeFactory { - public GetNextWriteIdRequestTupleScheme getScheme() { - return new GetNextWriteIdRequestTupleScheme(); - } - } - - private static class GetNextWriteIdRequestTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, GetNextWriteIdRequest struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - oprot.writeString(struct.dbName); - oprot.writeString(struct.tblName); - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, GetNextWriteIdRequest struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - struct.dbName = iprot.readString(); - struct.setDbNameIsSet(true); - struct.tblName = iprot.readString(); - struct.setTblNameIsSet(true); - } - } - -} - diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetNextWriteIdResult.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetNextWriteIdResult.java deleted file mode 100644 index 97ad284..0000000 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetNextWriteIdResult.java +++ /dev/null @@ -1,387 +0,0 @@ -/** - * 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 GetNextWriteIdResult 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("GetNextWriteIdResult"); - - private static final org.apache.thrift.protocol.TField WRITE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("writeId", org.apache.thrift.protocol.TType.I64, (short)1); - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new GetNextWriteIdResultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new GetNextWriteIdResultTupleSchemeFactory()); - } - - private long writeId; // 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 { - WRITE_ID((short)1, "writeId"); - - private static final Map byName = new HashMap(); - - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } - } - - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - case 1: // WRITE_ID - return WRITE_ID; - default: - return null; - } - } - - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } - - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - private static final int __WRITEID_ISSET_ID = 0; - private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.WRITE_ID, new org.apache.thrift.meta_data.FieldMetaData("writeId", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetNextWriteIdResult.class, metaDataMap); - } - - public GetNextWriteIdResult() { - } - - public GetNextWriteIdResult( - long writeId) - { - this(); - this.writeId = writeId; - setWriteIdIsSet(true); - } - - /** - * Performs a deep copy on other. - */ - public GetNextWriteIdResult(GetNextWriteIdResult other) { - __isset_bitfield = other.__isset_bitfield; - this.writeId = other.writeId; - } - - public GetNextWriteIdResult deepCopy() { - return new GetNextWriteIdResult(this); - } - - @Override - public void clear() { - setWriteIdIsSet(false); - this.writeId = 0; - } - - public long getWriteId() { - return this.writeId; - } - - public void setWriteId(long writeId) { - this.writeId = writeId; - setWriteIdIsSet(true); - } - - public void unsetWriteId() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WRITEID_ISSET_ID); - } - - /** Returns true if field writeId is set (has been assigned a value) and false otherwise */ - public boolean isSetWriteId() { - return EncodingUtils.testBit(__isset_bitfield, __WRITEID_ISSET_ID); - } - - public void setWriteIdIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WRITEID_ISSET_ID, value); - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case WRITE_ID: - if (value == null) { - unsetWriteId(); - } else { - setWriteId((Long)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case WRITE_ID: - return getWriteId(); - - } - throw new IllegalStateException(); - } - - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); - } - - switch (field) { - case WRITE_ID: - return isSetWriteId(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof GetNextWriteIdResult) - return this.equals((GetNextWriteIdResult)that); - return false; - } - - public boolean equals(GetNextWriteIdResult that) { - if (that == null) - return false; - - boolean this_present_writeId = true; - boolean that_present_writeId = true; - if (this_present_writeId || that_present_writeId) { - if (!(this_present_writeId && that_present_writeId)) - return false; - if (this.writeId != that.writeId) - return false; - } - - return true; - } - - @Override - public int hashCode() { - List list = new ArrayList(); - - boolean present_writeId = true; - list.add(present_writeId); - if (present_writeId) - list.add(writeId); - - return list.hashCode(); - } - - @Override - public int compareTo(GetNextWriteIdResult other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetWriteId()).compareTo(other.isSetWriteId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetWriteId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.writeId, other.writeId); - if (lastComparison != 0) { - return lastComparison; - } - } - 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("GetNextWriteIdResult("); - boolean first = true; - - sb.append("writeId:"); - sb.append(this.writeId); - first = false; - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - if (!isSetWriteId()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'writeId' is unset! Struct:" + toString()); - } - - // 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 GetNextWriteIdResultStandardSchemeFactory implements SchemeFactory { - public GetNextWriteIdResultStandardScheme getScheme() { - return new GetNextWriteIdResultStandardScheme(); - } - } - - private static class GetNextWriteIdResultStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, GetNextWriteIdResult struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // WRITE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.writeId = iprot.readI64(); - struct.setWriteIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - 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, GetNextWriteIdResult struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - oprot.writeFieldBegin(WRITE_ID_FIELD_DESC); - oprot.writeI64(struct.writeId); - oprot.writeFieldEnd(); - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class GetNextWriteIdResultTupleSchemeFactory implements SchemeFactory { - public GetNextWriteIdResultTupleScheme getScheme() { - return new GetNextWriteIdResultTupleScheme(); - } - } - - private static class GetNextWriteIdResultTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, GetNextWriteIdResult struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - oprot.writeI64(struct.writeId); - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, GetNextWriteIdResult struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - struct.writeId = iprot.readI64(); - struct.setWriteIdIsSet(true); - } - } - -} - diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java index 00ee22b..225fda9 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java @@ -525,13 +525,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetTablesRequest st case 2: // TBL_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list666 = iprot.readListBegin(); - struct.tblNames = new ArrayList(_list666.size); - String _elem667; - for (int _i668 = 0; _i668 < _list666.size; ++_i668) + org.apache.thrift.protocol.TList _list658 = iprot.readListBegin(); + struct.tblNames = new ArrayList(_list658.size); + String _elem659; + for (int _i660 = 0; _i660 < _list658.size; ++_i660) { - _elem667 = iprot.readString(); - struct.tblNames.add(_elem667); + _elem659 = iprot.readString(); + struct.tblNames.add(_elem659); } iprot.readListEnd(); } @@ -572,9 +572,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetTablesRequest s oprot.writeFieldBegin(TBL_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tblNames.size())); - for (String _iter669 : struct.tblNames) + for (String _iter661 : struct.tblNames) { - oprot.writeString(_iter669); + oprot.writeString(_iter661); } oprot.writeListEnd(); } @@ -617,9 +617,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetTablesRequest st if (struct.isSetTblNames()) { { oprot.writeI32(struct.tblNames.size()); - for (String _iter670 : struct.tblNames) + for (String _iter662 : struct.tblNames) { - oprot.writeString(_iter670); + oprot.writeString(_iter662); } } } @@ -636,13 +636,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTablesRequest str BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list671 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tblNames = new ArrayList(_list671.size); - String _elem672; - for (int _i673 = 0; _i673 < _list671.size; ++_i673) + org.apache.thrift.protocol.TList _list663 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tblNames = new ArrayList(_list663.size); + String _elem664; + for (int _i665 = 0; _i665 < _list663.size; ++_i665) { - _elem672 = iprot.readString(); - struct.tblNames.add(_elem672); + _elem664 = iprot.readString(); + struct.tblNames.add(_elem664); } } struct.setTblNamesIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java index d91fd62..91cb198 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetTablesResult str case 1: // TABLES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list674 = iprot.readListBegin(); - struct.tables = new ArrayList
(_list674.size); - Table _elem675; - for (int _i676 = 0; _i676 < _list674.size; ++_i676) + org.apache.thrift.protocol.TList _list666 = iprot.readListBegin(); + struct.tables = new ArrayList
(_list666.size); + Table _elem667; + for (int _i668 = 0; _i668 < _list666.size; ++_i668) { - _elem675 = new Table(); - _elem675.read(iprot); - struct.tables.add(_elem675); + _elem667 = new Table(); + _elem667.read(iprot); + struct.tables.add(_elem667); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetTablesResult st oprot.writeFieldBegin(TABLES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tables.size())); - for (Table _iter677 : struct.tables) + for (Table _iter669 : struct.tables) { - _iter677.write(oprot); + _iter669.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetTablesResult str TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.tables.size()); - for (Table _iter678 : struct.tables) + for (Table _iter670 : struct.tables) { - _iter678.write(oprot); + _iter670.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetTablesResult str public void read(org.apache.thrift.protocol.TProtocol prot, GetTablesResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list679 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tables = new ArrayList
(_list679.size); - Table _elem680; - for (int _i681 = 0; _i681 < _list679.size; ++_i681) + org.apache.thrift.protocol.TList _list671 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tables = new ArrayList
(_list671.size); + Table _elem672; + for (int _i673 = 0; _i673 < _list671.size; ++_i673) { - _elem680 = new Table(); - _elem680.read(iprot); - struct.tables.add(_elem680); + _elem672 = new Table(); + _elem672.read(iprot); + struct.tables.add(_elem672); } } struct.setTablesIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsRequest.java deleted file mode 100644 index 90f103a..0000000 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsRequest.java +++ /dev/null @@ -1,490 +0,0 @@ -/** - * 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 GetValidWriteIdsRequest 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("GetValidWriteIdsRequest"); - - 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)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tblName", org.apache.thrift.protocol.TType.STRING, (short)2); - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new GetValidWriteIdsRequestStandardSchemeFactory()); - schemes.put(TupleScheme.class, new GetValidWriteIdsRequestTupleSchemeFactory()); - } - - private String dbName; // required - private String tblName; // 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 { - DB_NAME((short)1, "dbName"), - TBL_NAME((short)2, "tblName"); - - 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: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_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 - 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.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))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tblName", 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(GetValidWriteIdsRequest.class, metaDataMap); - } - - public GetValidWriteIdsRequest() { - } - - public GetValidWriteIdsRequest( - String dbName, - String tblName) - { - this(); - this.dbName = dbName; - this.tblName = tblName; - } - - /** - * Performs a deep copy on other. - */ - public GetValidWriteIdsRequest(GetValidWriteIdsRequest other) { - if (other.isSetDbName()) { - this.dbName = other.dbName; - } - if (other.isSetTblName()) { - this.tblName = other.tblName; - } - } - - public GetValidWriteIdsRequest deepCopy() { - return new GetValidWriteIdsRequest(this); - } - - @Override - public void clear() { - this.dbName = null; - this.tblName = null; - } - - 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 String getTblName() { - return this.tblName; - } - - public void setTblName(String tblName) { - this.tblName = tblName; - } - - public void unsetTblName() { - this.tblName = null; - } - - /** Returns true if field tblName is set (has been assigned a value) and false otherwise */ - public boolean isSetTblName() { - return this.tblName != null; - } - - public void setTblNameIsSet(boolean value) { - if (!value) { - this.tblName = null; - } - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case DB_NAME: - if (value == null) { - unsetDbName(); - } else { - setDbName((String)value); - } - break; - - case TBL_NAME: - if (value == null) { - unsetTblName(); - } else { - setTblName((String)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case DB_NAME: - return getDbName(); - - case TBL_NAME: - return getTblName(); - - } - 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 DB_NAME: - return isSetDbName(); - case TBL_NAME: - return isSetTblName(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof GetValidWriteIdsRequest) - return this.equals((GetValidWriteIdsRequest)that); - return false; - } - - public boolean equals(GetValidWriteIdsRequest that) { - if (that == null) - 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; - } - - boolean this_present_tblName = true && this.isSetTblName(); - boolean that_present_tblName = true && that.isSetTblName(); - if (this_present_tblName || that_present_tblName) { - if (!(this_present_tblName && that_present_tblName)) - return false; - if (!this.tblName.equals(that.tblName)) - return false; - } - - return true; - } - - @Override - public int hashCode() { - List list = new ArrayList(); - - boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); - if (present_dbName) - list.add(dbName); - - boolean present_tblName = true && (isSetTblName()); - list.add(present_tblName); - if (present_tblName) - list.add(tblName); - - return list.hashCode(); - } - - @Override - public int compareTo(GetValidWriteIdsRequest other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - 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; - } - } - lastComparison = Boolean.valueOf(isSetTblName()).compareTo(other.isSetTblName()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTblName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, other.tblName); - 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("GetValidWriteIdsRequest("); - boolean first = true; - - sb.append("dbName:"); - if (this.dbName == null) { - sb.append("null"); - } else { - sb.append(this.dbName); - } - first = false; - if (!first) sb.append(", "); - sb.append("tblName:"); - if (this.tblName == null) { - sb.append("null"); - } else { - sb.append(this.tblName); - } - first = false; - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - if (!isSetDbName()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbName' is unset! Struct:" + toString()); - } - - if (!isSetTblName()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'tblName' 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 { - 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 GetValidWriteIdsRequestStandardSchemeFactory implements SchemeFactory { - public GetValidWriteIdsRequestStandardScheme getScheme() { - return new GetValidWriteIdsRequestStandardScheme(); - } - } - - private static class GetValidWriteIdsRequestStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, GetValidWriteIdsRequest 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: // 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; - case 2: // TBL_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tblName = iprot.readString(); - struct.setTblNameIsSet(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, GetValidWriteIdsRequest struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.dbName != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.dbName); - oprot.writeFieldEnd(); - } - if (struct.tblName != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tblName); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class GetValidWriteIdsRequestTupleSchemeFactory implements SchemeFactory { - public GetValidWriteIdsRequestTupleScheme getScheme() { - return new GetValidWriteIdsRequestTupleScheme(); - } - } - - private static class GetValidWriteIdsRequestTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, GetValidWriteIdsRequest struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - oprot.writeString(struct.dbName); - oprot.writeString(struct.tblName); - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, GetValidWriteIdsRequest struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - struct.dbName = iprot.readString(); - struct.setDbNameIsSet(true); - struct.tblName = iprot.readString(); - struct.setTblNameIsSet(true); - } - } - -} - diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsResult.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsResult.java deleted file mode 100644 index 4a42e1a..0000000 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsResult.java +++ /dev/null @@ -1,740 +0,0 @@ -/** - * 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 GetValidWriteIdsResult 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("GetValidWriteIdsResult"); - - private static final org.apache.thrift.protocol.TField LOW_WATERMARK_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lowWatermarkId", org.apache.thrift.protocol.TType.I64, (short)1); - private static final org.apache.thrift.protocol.TField HIGH_WATERMARK_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("highWatermarkId", org.apache.thrift.protocol.TType.I64, (short)2); - private static final org.apache.thrift.protocol.TField ARE_IDS_VALID_FIELD_DESC = new org.apache.thrift.protocol.TField("areIdsValid", org.apache.thrift.protocol.TType.BOOL, (short)3); - private static final org.apache.thrift.protocol.TField IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("ids", org.apache.thrift.protocol.TType.LIST, (short)4); - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new GetValidWriteIdsResultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new GetValidWriteIdsResultTupleSchemeFactory()); - } - - private long lowWatermarkId; // required - private long highWatermarkId; // required - private boolean areIdsValid; // optional - private List ids; // optional - - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { - LOW_WATERMARK_ID((short)1, "lowWatermarkId"), - HIGH_WATERMARK_ID((short)2, "highWatermarkId"), - ARE_IDS_VALID((short)3, "areIdsValid"), - IDS((short)4, "ids"); - - 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: // LOW_WATERMARK_ID - return LOW_WATERMARK_ID; - case 2: // HIGH_WATERMARK_ID - return HIGH_WATERMARK_ID; - case 3: // ARE_IDS_VALID - return ARE_IDS_VALID; - case 4: // IDS - return IDS; - 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 __LOWWATERMARKID_ISSET_ID = 0; - private static final int __HIGHWATERMARKID_ISSET_ID = 1; - private static final int __AREIDSVALID_ISSET_ID = 2; - private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.ARE_IDS_VALID,_Fields.IDS}; - 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.LOW_WATERMARK_ID, new org.apache.thrift.meta_data.FieldMetaData("lowWatermarkId", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - tmpMap.put(_Fields.HIGH_WATERMARK_ID, new org.apache.thrift.meta_data.FieldMetaData("highWatermarkId", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - tmpMap.put(_Fields.ARE_IDS_VALID, new org.apache.thrift.meta_data.FieldMetaData("areIdsValid", org.apache.thrift.TFieldRequirementType.OPTIONAL, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.IDS, new org.apache.thrift.meta_data.FieldMetaData("ids", org.apache.thrift.TFieldRequirementType.OPTIONAL, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetValidWriteIdsResult.class, metaDataMap); - } - - public GetValidWriteIdsResult() { - } - - public GetValidWriteIdsResult( - long lowWatermarkId, - long highWatermarkId) - { - this(); - this.lowWatermarkId = lowWatermarkId; - setLowWatermarkIdIsSet(true); - this.highWatermarkId = highWatermarkId; - setHighWatermarkIdIsSet(true); - } - - /** - * Performs a deep copy on other. - */ - public GetValidWriteIdsResult(GetValidWriteIdsResult other) { - __isset_bitfield = other.__isset_bitfield; - this.lowWatermarkId = other.lowWatermarkId; - this.highWatermarkId = other.highWatermarkId; - this.areIdsValid = other.areIdsValid; - if (other.isSetIds()) { - List __this__ids = new ArrayList(other.ids); - this.ids = __this__ids; - } - } - - public GetValidWriteIdsResult deepCopy() { - return new GetValidWriteIdsResult(this); - } - - @Override - public void clear() { - setLowWatermarkIdIsSet(false); - this.lowWatermarkId = 0; - setHighWatermarkIdIsSet(false); - this.highWatermarkId = 0; - setAreIdsValidIsSet(false); - this.areIdsValid = false; - this.ids = null; - } - - public long getLowWatermarkId() { - return this.lowWatermarkId; - } - - public void setLowWatermarkId(long lowWatermarkId) { - this.lowWatermarkId = lowWatermarkId; - setLowWatermarkIdIsSet(true); - } - - public void unsetLowWatermarkId() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LOWWATERMARKID_ISSET_ID); - } - - /** Returns true if field lowWatermarkId is set (has been assigned a value) and false otherwise */ - public boolean isSetLowWatermarkId() { - return EncodingUtils.testBit(__isset_bitfield, __LOWWATERMARKID_ISSET_ID); - } - - public void setLowWatermarkIdIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LOWWATERMARKID_ISSET_ID, value); - } - - public long getHighWatermarkId() { - return this.highWatermarkId; - } - - public void setHighWatermarkId(long highWatermarkId) { - this.highWatermarkId = highWatermarkId; - setHighWatermarkIdIsSet(true); - } - - public void unsetHighWatermarkId() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __HIGHWATERMARKID_ISSET_ID); - } - - /** Returns true if field highWatermarkId is set (has been assigned a value) and false otherwise */ - public boolean isSetHighWatermarkId() { - return EncodingUtils.testBit(__isset_bitfield, __HIGHWATERMARKID_ISSET_ID); - } - - public void setHighWatermarkIdIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __HIGHWATERMARKID_ISSET_ID, value); - } - - public boolean isAreIdsValid() { - return this.areIdsValid; - } - - public void setAreIdsValid(boolean areIdsValid) { - this.areIdsValid = areIdsValid; - setAreIdsValidIsSet(true); - } - - public void unsetAreIdsValid() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __AREIDSVALID_ISSET_ID); - } - - /** Returns true if field areIdsValid is set (has been assigned a value) and false otherwise */ - public boolean isSetAreIdsValid() { - return EncodingUtils.testBit(__isset_bitfield, __AREIDSVALID_ISSET_ID); - } - - public void setAreIdsValidIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __AREIDSVALID_ISSET_ID, value); - } - - public int getIdsSize() { - return (this.ids == null) ? 0 : this.ids.size(); - } - - public java.util.Iterator getIdsIterator() { - return (this.ids == null) ? null : this.ids.iterator(); - } - - public void addToIds(long elem) { - if (this.ids == null) { - this.ids = new ArrayList(); - } - this.ids.add(elem); - } - - public List getIds() { - return this.ids; - } - - public void setIds(List ids) { - this.ids = ids; - } - - public void unsetIds() { - this.ids = null; - } - - /** Returns true if field ids is set (has been assigned a value) and false otherwise */ - public boolean isSetIds() { - return this.ids != null; - } - - public void setIdsIsSet(boolean value) { - if (!value) { - this.ids = null; - } - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case LOW_WATERMARK_ID: - if (value == null) { - unsetLowWatermarkId(); - } else { - setLowWatermarkId((Long)value); - } - break; - - case HIGH_WATERMARK_ID: - if (value == null) { - unsetHighWatermarkId(); - } else { - setHighWatermarkId((Long)value); - } - break; - - case ARE_IDS_VALID: - if (value == null) { - unsetAreIdsValid(); - } else { - setAreIdsValid((Boolean)value); - } - break; - - case IDS: - if (value == null) { - unsetIds(); - } else { - setIds((List)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case LOW_WATERMARK_ID: - return getLowWatermarkId(); - - case HIGH_WATERMARK_ID: - return getHighWatermarkId(); - - case ARE_IDS_VALID: - return isAreIdsValid(); - - case IDS: - return getIds(); - - } - 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 LOW_WATERMARK_ID: - return isSetLowWatermarkId(); - case HIGH_WATERMARK_ID: - return isSetHighWatermarkId(); - case ARE_IDS_VALID: - return isSetAreIdsValid(); - case IDS: - return isSetIds(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof GetValidWriteIdsResult) - return this.equals((GetValidWriteIdsResult)that); - return false; - } - - public boolean equals(GetValidWriteIdsResult that) { - if (that == null) - return false; - - boolean this_present_lowWatermarkId = true; - boolean that_present_lowWatermarkId = true; - if (this_present_lowWatermarkId || that_present_lowWatermarkId) { - if (!(this_present_lowWatermarkId && that_present_lowWatermarkId)) - return false; - if (this.lowWatermarkId != that.lowWatermarkId) - return false; - } - - boolean this_present_highWatermarkId = true; - boolean that_present_highWatermarkId = true; - if (this_present_highWatermarkId || that_present_highWatermarkId) { - if (!(this_present_highWatermarkId && that_present_highWatermarkId)) - return false; - if (this.highWatermarkId != that.highWatermarkId) - return false; - } - - boolean this_present_areIdsValid = true && this.isSetAreIdsValid(); - boolean that_present_areIdsValid = true && that.isSetAreIdsValid(); - if (this_present_areIdsValid || that_present_areIdsValid) { - if (!(this_present_areIdsValid && that_present_areIdsValid)) - return false; - if (this.areIdsValid != that.areIdsValid) - return false; - } - - boolean this_present_ids = true && this.isSetIds(); - boolean that_present_ids = true && that.isSetIds(); - if (this_present_ids || that_present_ids) { - if (!(this_present_ids && that_present_ids)) - return false; - if (!this.ids.equals(that.ids)) - return false; - } - - return true; - } - - @Override - public int hashCode() { - List list = new ArrayList(); - - boolean present_lowWatermarkId = true; - list.add(present_lowWatermarkId); - if (present_lowWatermarkId) - list.add(lowWatermarkId); - - boolean present_highWatermarkId = true; - list.add(present_highWatermarkId); - if (present_highWatermarkId) - list.add(highWatermarkId); - - boolean present_areIdsValid = true && (isSetAreIdsValid()); - list.add(present_areIdsValid); - if (present_areIdsValid) - list.add(areIdsValid); - - boolean present_ids = true && (isSetIds()); - list.add(present_ids); - if (present_ids) - list.add(ids); - - return list.hashCode(); - } - - @Override - public int compareTo(GetValidWriteIdsResult other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetLowWatermarkId()).compareTo(other.isSetLowWatermarkId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetLowWatermarkId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowWatermarkId, other.lowWatermarkId); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetHighWatermarkId()).compareTo(other.isSetHighWatermarkId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetHighWatermarkId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highWatermarkId, other.highWatermarkId); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetAreIdsValid()).compareTo(other.isSetAreIdsValid()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetAreIdsValid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.areIdsValid, other.areIdsValid); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetIds()).compareTo(other.isSetIds()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetIds()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ids, other.ids); - 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("GetValidWriteIdsResult("); - boolean first = true; - - sb.append("lowWatermarkId:"); - sb.append(this.lowWatermarkId); - first = false; - if (!first) sb.append(", "); - sb.append("highWatermarkId:"); - sb.append(this.highWatermarkId); - first = false; - if (isSetAreIdsValid()) { - if (!first) sb.append(", "); - sb.append("areIdsValid:"); - sb.append(this.areIdsValid); - first = false; - } - if (isSetIds()) { - if (!first) sb.append(", "); - sb.append("ids:"); - if (this.ids == null) { - sb.append("null"); - } else { - sb.append(this.ids); - } - first = false; - } - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - if (!isSetLowWatermarkId()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'lowWatermarkId' is unset! Struct:" + toString()); - } - - if (!isSetHighWatermarkId()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'highWatermarkId' 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 GetValidWriteIdsResultStandardSchemeFactory implements SchemeFactory { - public GetValidWriteIdsResultStandardScheme getScheme() { - return new GetValidWriteIdsResultStandardScheme(); - } - } - - private static class GetValidWriteIdsResultStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, GetValidWriteIdsResult 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: // LOW_WATERMARK_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.lowWatermarkId = iprot.readI64(); - struct.setLowWatermarkIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // HIGH_WATERMARK_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.highWatermarkId = iprot.readI64(); - struct.setHighWatermarkIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // ARE_IDS_VALID - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.areIdsValid = iprot.readBool(); - struct.setAreIdsValidIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // IDS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list642 = iprot.readListBegin(); - struct.ids = new ArrayList(_list642.size); - long _elem643; - for (int _i644 = 0; _i644 < _list642.size; ++_i644) - { - _elem643 = iprot.readI64(); - struct.ids.add(_elem643); - } - iprot.readListEnd(); - } - struct.setIdsIsSet(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, GetValidWriteIdsResult struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - oprot.writeFieldBegin(LOW_WATERMARK_ID_FIELD_DESC); - oprot.writeI64(struct.lowWatermarkId); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(HIGH_WATERMARK_ID_FIELD_DESC); - oprot.writeI64(struct.highWatermarkId); - oprot.writeFieldEnd(); - if (struct.isSetAreIdsValid()) { - oprot.writeFieldBegin(ARE_IDS_VALID_FIELD_DESC); - oprot.writeBool(struct.areIdsValid); - oprot.writeFieldEnd(); - } - if (struct.ids != null) { - if (struct.isSetIds()) { - oprot.writeFieldBegin(IDS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.ids.size())); - for (long _iter645 : struct.ids) - { - oprot.writeI64(_iter645); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class GetValidWriteIdsResultTupleSchemeFactory implements SchemeFactory { - public GetValidWriteIdsResultTupleScheme getScheme() { - return new GetValidWriteIdsResultTupleScheme(); - } - } - - private static class GetValidWriteIdsResultTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, GetValidWriteIdsResult struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - oprot.writeI64(struct.lowWatermarkId); - oprot.writeI64(struct.highWatermarkId); - BitSet optionals = new BitSet(); - if (struct.isSetAreIdsValid()) { - optionals.set(0); - } - if (struct.isSetIds()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetAreIdsValid()) { - oprot.writeBool(struct.areIdsValid); - } - if (struct.isSetIds()) { - { - oprot.writeI32(struct.ids.size()); - for (long _iter646 : struct.ids) - { - oprot.writeI64(_iter646); - } - } - } - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, GetValidWriteIdsResult struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - struct.lowWatermarkId = iprot.readI64(); - struct.setLowWatermarkIdIsSet(true); - struct.highWatermarkId = iprot.readI64(); - struct.setHighWatermarkIdIsSet(true); - BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.areIdsValid = iprot.readBool(); - struct.setAreIdsValidIsSet(true); - } - if (incoming.get(1)) { - { - org.apache.thrift.protocol.TList _list647 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.ids = new ArrayList(_list647.size); - long _elem648; - for (int _i649 = 0; _i649 < _list647.size; ++_i649) - { - _elem648 = iprot.readI64(); - struct.ids.add(_elem648); - } - } - struct.setIdsIsSet(true); - } - } - } - -} - diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatWriteIdRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatWriteIdRequest.java deleted file mode 100644 index 0c1849c..0000000 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatWriteIdRequest.java +++ /dev/null @@ -1,589 +0,0 @@ -/** - * 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 HeartbeatWriteIdRequest 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("HeartbeatWriteIdRequest"); - - 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)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tblName", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField WRITE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("writeId", org.apache.thrift.protocol.TType.I64, (short)3); - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new HeartbeatWriteIdRequestStandardSchemeFactory()); - schemes.put(TupleScheme.class, new HeartbeatWriteIdRequestTupleSchemeFactory()); - } - - private String dbName; // required - private String tblName; // required - private long writeId; // 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 { - DB_NAME((short)1, "dbName"), - TBL_NAME((short)2, "tblName"), - WRITE_ID((short)3, "writeId"); - - 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: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // WRITE_ID - return WRITE_ID; - default: - return null; - } - } - - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } - - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - private static final int __WRITEID_ISSET_ID = 0; - private byte __isset_bitfield = 0; - 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.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))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tblName", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.WRITE_ID, new org.apache.thrift.meta_data.FieldMetaData("writeId", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(HeartbeatWriteIdRequest.class, metaDataMap); - } - - public HeartbeatWriteIdRequest() { - } - - public HeartbeatWriteIdRequest( - String dbName, - String tblName, - long writeId) - { - this(); - this.dbName = dbName; - this.tblName = tblName; - this.writeId = writeId; - setWriteIdIsSet(true); - } - - /** - * Performs a deep copy on other. - */ - public HeartbeatWriteIdRequest(HeartbeatWriteIdRequest other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetDbName()) { - this.dbName = other.dbName; - } - if (other.isSetTblName()) { - this.tblName = other.tblName; - } - this.writeId = other.writeId; - } - - public HeartbeatWriteIdRequest deepCopy() { - return new HeartbeatWriteIdRequest(this); - } - - @Override - public void clear() { - this.dbName = null; - this.tblName = null; - setWriteIdIsSet(false); - this.writeId = 0; - } - - 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 String getTblName() { - return this.tblName; - } - - public void setTblName(String tblName) { - this.tblName = tblName; - } - - public void unsetTblName() { - this.tblName = null; - } - - /** Returns true if field tblName is set (has been assigned a value) and false otherwise */ - public boolean isSetTblName() { - return this.tblName != null; - } - - public void setTblNameIsSet(boolean value) { - if (!value) { - this.tblName = null; - } - } - - public long getWriteId() { - return this.writeId; - } - - public void setWriteId(long writeId) { - this.writeId = writeId; - setWriteIdIsSet(true); - } - - public void unsetWriteId() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WRITEID_ISSET_ID); - } - - /** Returns true if field writeId is set (has been assigned a value) and false otherwise */ - public boolean isSetWriteId() { - return EncodingUtils.testBit(__isset_bitfield, __WRITEID_ISSET_ID); - } - - public void setWriteIdIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WRITEID_ISSET_ID, value); - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case DB_NAME: - if (value == null) { - unsetDbName(); - } else { - setDbName((String)value); - } - break; - - case TBL_NAME: - if (value == null) { - unsetTblName(); - } else { - setTblName((String)value); - } - break; - - case WRITE_ID: - if (value == null) { - unsetWriteId(); - } else { - setWriteId((Long)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case DB_NAME: - return getDbName(); - - case TBL_NAME: - return getTblName(); - - case WRITE_ID: - return getWriteId(); - - } - 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 DB_NAME: - return isSetDbName(); - case TBL_NAME: - return isSetTblName(); - case WRITE_ID: - return isSetWriteId(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof HeartbeatWriteIdRequest) - return this.equals((HeartbeatWriteIdRequest)that); - return false; - } - - public boolean equals(HeartbeatWriteIdRequest that) { - if (that == null) - 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; - } - - boolean this_present_tblName = true && this.isSetTblName(); - boolean that_present_tblName = true && that.isSetTblName(); - if (this_present_tblName || that_present_tblName) { - if (!(this_present_tblName && that_present_tblName)) - return false; - if (!this.tblName.equals(that.tblName)) - return false; - } - - boolean this_present_writeId = true; - boolean that_present_writeId = true; - if (this_present_writeId || that_present_writeId) { - if (!(this_present_writeId && that_present_writeId)) - return false; - if (this.writeId != that.writeId) - return false; - } - - return true; - } - - @Override - public int hashCode() { - List list = new ArrayList(); - - boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); - if (present_dbName) - list.add(dbName); - - boolean present_tblName = true && (isSetTblName()); - list.add(present_tblName); - if (present_tblName) - list.add(tblName); - - boolean present_writeId = true; - list.add(present_writeId); - if (present_writeId) - list.add(writeId); - - return list.hashCode(); - } - - @Override - public int compareTo(HeartbeatWriteIdRequest other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - 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; - } - } - lastComparison = Boolean.valueOf(isSetTblName()).compareTo(other.isSetTblName()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTblName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, other.tblName); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetWriteId()).compareTo(other.isSetWriteId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetWriteId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.writeId, other.writeId); - if (lastComparison != 0) { - return lastComparison; - } - } - 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("HeartbeatWriteIdRequest("); - boolean first = true; - - sb.append("dbName:"); - if (this.dbName == null) { - sb.append("null"); - } else { - sb.append(this.dbName); - } - first = false; - if (!first) sb.append(", "); - sb.append("tblName:"); - if (this.tblName == null) { - sb.append("null"); - } else { - sb.append(this.tblName); - } - first = false; - if (!first) sb.append(", "); - sb.append("writeId:"); - sb.append(this.writeId); - first = false; - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - if (!isSetDbName()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbName' is unset! Struct:" + toString()); - } - - if (!isSetTblName()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'tblName' is unset! Struct:" + toString()); - } - - if (!isSetWriteId()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'writeId' 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 HeartbeatWriteIdRequestStandardSchemeFactory implements SchemeFactory { - public HeartbeatWriteIdRequestStandardScheme getScheme() { - return new HeartbeatWriteIdRequestStandardScheme(); - } - } - - private static class HeartbeatWriteIdRequestStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, HeartbeatWriteIdRequest 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: // 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; - case 2: // TBL_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tblName = iprot.readString(); - struct.setTblNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // WRITE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.writeId = iprot.readI64(); - struct.setWriteIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - 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, HeartbeatWriteIdRequest struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.dbName != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.dbName); - oprot.writeFieldEnd(); - } - if (struct.tblName != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tblName); - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(WRITE_ID_FIELD_DESC); - oprot.writeI64(struct.writeId); - oprot.writeFieldEnd(); - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class HeartbeatWriteIdRequestTupleSchemeFactory implements SchemeFactory { - public HeartbeatWriteIdRequestTupleScheme getScheme() { - return new HeartbeatWriteIdRequestTupleScheme(); - } - } - - private static class HeartbeatWriteIdRequestTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, HeartbeatWriteIdRequest struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - oprot.writeString(struct.dbName); - oprot.writeString(struct.tblName); - oprot.writeI64(struct.writeId); - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, HeartbeatWriteIdRequest struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - struct.dbName = iprot.readString(); - struct.setDbNameIsSet(true); - struct.tblName = iprot.readString(); - struct.setTblNameIsSet(true); - struct.writeId = iprot.readI64(); - struct.setWriteIdIsSet(true); - } - } - -} - diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatWriteIdResult.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatWriteIdResult.java deleted file mode 100644 index ae6f25e..0000000 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatWriteIdResult.java +++ /dev/null @@ -1,283 +0,0 @@ -/** - * 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 HeartbeatWriteIdResult 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("HeartbeatWriteIdResult"); - - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new HeartbeatWriteIdResultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new HeartbeatWriteIdResultTupleSchemeFactory()); - } - - - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { -; - - private static final Map byName = new HashMap(); - - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } - } - - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - default: - return null; - } - } - - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } - - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(HeartbeatWriteIdResult.class, metaDataMap); - } - - public HeartbeatWriteIdResult() { - } - - /** - * Performs a deep copy on other. - */ - public HeartbeatWriteIdResult(HeartbeatWriteIdResult other) { - } - - public HeartbeatWriteIdResult deepCopy() { - return new HeartbeatWriteIdResult(this); - } - - @Override - public void clear() { - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - } - throw new IllegalStateException(); - } - - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); - } - - switch (field) { - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof HeartbeatWriteIdResult) - return this.equals((HeartbeatWriteIdResult)that); - return false; - } - - public boolean equals(HeartbeatWriteIdResult that) { - if (that == null) - return false; - - return true; - } - - @Override - public int hashCode() { - List list = new ArrayList(); - - return list.hashCode(); - } - - @Override - public int compareTo(HeartbeatWriteIdResult other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - return 0; - } - - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); - } - - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("HeartbeatWriteIdResult("); - boolean first = true; - - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - // check for sub-struct validity - } - - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { - try { - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { - try { - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private static class HeartbeatWriteIdResultStandardSchemeFactory implements SchemeFactory { - public HeartbeatWriteIdResultStandardScheme getScheme() { - return new HeartbeatWriteIdResultStandardScheme(); - } - } - - private static class HeartbeatWriteIdResultStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, HeartbeatWriteIdResult struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, HeartbeatWriteIdResult struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class HeartbeatWriteIdResultTupleSchemeFactory implements SchemeFactory { - public HeartbeatWriteIdResultTupleScheme getScheme() { - return new HeartbeatWriteIdResultTupleScheme(); - } - } - - private static class HeartbeatWriteIdResultTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, HeartbeatWriteIdResult struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, HeartbeatWriteIdResult struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - } - } - -} - diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java index dc6a5ad..800219f 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java @@ -53,8 +53,6 @@ private static final org.apache.thrift.protocol.TField PRIVILEGES_FIELD_DESC = new org.apache.thrift.protocol.TField("privileges", org.apache.thrift.protocol.TType.STRUCT, (short)13); private static final org.apache.thrift.protocol.TField TEMPORARY_FIELD_DESC = new org.apache.thrift.protocol.TField("temporary", org.apache.thrift.protocol.TType.BOOL, (short)14); private static final org.apache.thrift.protocol.TField REWRITE_ENABLED_FIELD_DESC = new org.apache.thrift.protocol.TField("rewriteEnabled", org.apache.thrift.protocol.TType.BOOL, (short)15); - private static final org.apache.thrift.protocol.TField MM_NEXT_WRITE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("mmNextWriteId", org.apache.thrift.protocol.TType.I64, (short)16); - private static final org.apache.thrift.protocol.TField MM_WATERMARK_WRITE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("mmWatermarkWriteId", org.apache.thrift.protocol.TType.I64, (short)17); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -77,8 +75,6 @@ private PrincipalPrivilegeSet privileges; // optional private boolean temporary; // optional private boolean rewriteEnabled; // optional - private long mmNextWriteId; // optional - private long mmWatermarkWriteId; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -96,9 +92,7 @@ TABLE_TYPE((short)12, "tableType"), PRIVILEGES((short)13, "privileges"), TEMPORARY((short)14, "temporary"), - REWRITE_ENABLED((short)15, "rewriteEnabled"), - MM_NEXT_WRITE_ID((short)16, "mmNextWriteId"), - MM_WATERMARK_WRITE_ID((short)17, "mmWatermarkWriteId"); + REWRITE_ENABLED((short)15, "rewriteEnabled"); private static final Map byName = new HashMap(); @@ -143,10 +137,6 @@ public static _Fields findByThriftId(int fieldId) { return TEMPORARY; case 15: // REWRITE_ENABLED return REWRITE_ENABLED; - case 16: // MM_NEXT_WRITE_ID - return MM_NEXT_WRITE_ID; - case 17: // MM_WATERMARK_WRITE_ID - return MM_WATERMARK_WRITE_ID; default: return null; } @@ -192,10 +182,8 @@ public String getFieldName() { private static final int __RETENTION_ISSET_ID = 2; private static final int __TEMPORARY_ISSET_ID = 3; private static final int __REWRITEENABLED_ISSET_ID = 4; - private static final int __MMNEXTWRITEID_ISSET_ID = 5; - private static final int __MMWATERMARKWRITEID_ISSET_ID = 6; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.PRIVILEGES,_Fields.TEMPORARY,_Fields.REWRITE_ENABLED,_Fields.MM_NEXT_WRITE_ID,_Fields.MM_WATERMARK_WRITE_ID}; + private static final _Fields optionals[] = {_Fields.PRIVILEGES,_Fields.TEMPORARY,_Fields.REWRITE_ENABLED}; 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); @@ -232,10 +220,6 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.REWRITE_ENABLED, new org.apache.thrift.meta_data.FieldMetaData("rewriteEnabled", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.MM_NEXT_WRITE_ID, new org.apache.thrift.meta_data.FieldMetaData("mmNextWriteId", org.apache.thrift.TFieldRequirementType.OPTIONAL, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - tmpMap.put(_Fields.MM_WATERMARK_WRITE_ID, new org.apache.thrift.meta_data.FieldMetaData("mmWatermarkWriteId", org.apache.thrift.TFieldRequirementType.OPTIONAL, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Table.class, metaDataMap); } @@ -322,8 +306,6 @@ public Table(Table other) { } this.temporary = other.temporary; this.rewriteEnabled = other.rewriteEnabled; - this.mmNextWriteId = other.mmNextWriteId; - this.mmWatermarkWriteId = other.mmWatermarkWriteId; } public Table deepCopy() { @@ -352,10 +334,6 @@ public void clear() { setRewriteEnabledIsSet(false); this.rewriteEnabled = false; - setMmNextWriteIdIsSet(false); - this.mmNextWriteId = 0; - setMmWatermarkWriteIdIsSet(false); - this.mmWatermarkWriteId = 0; } public String getTableName() { @@ -724,50 +702,6 @@ public void setRewriteEnabledIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __REWRITEENABLED_ISSET_ID, value); } - public long getMmNextWriteId() { - return this.mmNextWriteId; - } - - public void setMmNextWriteId(long mmNextWriteId) { - this.mmNextWriteId = mmNextWriteId; - setMmNextWriteIdIsSet(true); - } - - public void unsetMmNextWriteId() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MMNEXTWRITEID_ISSET_ID); - } - - /** Returns true if field mmNextWriteId is set (has been assigned a value) and false otherwise */ - public boolean isSetMmNextWriteId() { - return EncodingUtils.testBit(__isset_bitfield, __MMNEXTWRITEID_ISSET_ID); - } - - public void setMmNextWriteIdIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MMNEXTWRITEID_ISSET_ID, value); - } - - public long getMmWatermarkWriteId() { - return this.mmWatermarkWriteId; - } - - public void setMmWatermarkWriteId(long mmWatermarkWriteId) { - this.mmWatermarkWriteId = mmWatermarkWriteId; - setMmWatermarkWriteIdIsSet(true); - } - - public void unsetMmWatermarkWriteId() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MMWATERMARKWRITEID_ISSET_ID); - } - - /** Returns true if field mmWatermarkWriteId is set (has been assigned a value) and false otherwise */ - public boolean isSetMmWatermarkWriteId() { - return EncodingUtils.testBit(__isset_bitfield, __MMWATERMARKWRITEID_ISSET_ID); - } - - public void setMmWatermarkWriteIdIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MMWATERMARKWRITEID_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case TABLE_NAME: @@ -890,22 +824,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case MM_NEXT_WRITE_ID: - if (value == null) { - unsetMmNextWriteId(); - } else { - setMmNextWriteId((Long)value); - } - break; - - case MM_WATERMARK_WRITE_ID: - if (value == null) { - unsetMmWatermarkWriteId(); - } else { - setMmWatermarkWriteId((Long)value); - } - break; - } } @@ -956,12 +874,6 @@ public Object getFieldValue(_Fields field) { case REWRITE_ENABLED: return isRewriteEnabled(); - case MM_NEXT_WRITE_ID: - return getMmNextWriteId(); - - case MM_WATERMARK_WRITE_ID: - return getMmWatermarkWriteId(); - } throw new IllegalStateException(); } @@ -1003,10 +915,6 @@ public boolean isSet(_Fields field) { return isSetTemporary(); case REWRITE_ENABLED: return isSetRewriteEnabled(); - case MM_NEXT_WRITE_ID: - return isSetMmNextWriteId(); - case MM_WATERMARK_WRITE_ID: - return isSetMmWatermarkWriteId(); } throw new IllegalStateException(); } @@ -1159,24 +1067,6 @@ public boolean equals(Table that) { return false; } - boolean this_present_mmNextWriteId = true && this.isSetMmNextWriteId(); - boolean that_present_mmNextWriteId = true && that.isSetMmNextWriteId(); - if (this_present_mmNextWriteId || that_present_mmNextWriteId) { - if (!(this_present_mmNextWriteId && that_present_mmNextWriteId)) - return false; - if (this.mmNextWriteId != that.mmNextWriteId) - return false; - } - - boolean this_present_mmWatermarkWriteId = true && this.isSetMmWatermarkWriteId(); - boolean that_present_mmWatermarkWriteId = true && that.isSetMmWatermarkWriteId(); - if (this_present_mmWatermarkWriteId || that_present_mmWatermarkWriteId) { - if (!(this_present_mmWatermarkWriteId && that_present_mmWatermarkWriteId)) - return false; - if (this.mmWatermarkWriteId != that.mmWatermarkWriteId) - return false; - } - return true; } @@ -1259,16 +1149,6 @@ public int hashCode() { if (present_rewriteEnabled) list.add(rewriteEnabled); - boolean present_mmNextWriteId = true && (isSetMmNextWriteId()); - list.add(present_mmNextWriteId); - if (present_mmNextWriteId) - list.add(mmNextWriteId); - - boolean present_mmWatermarkWriteId = true && (isSetMmWatermarkWriteId()); - list.add(present_mmWatermarkWriteId); - if (present_mmWatermarkWriteId) - list.add(mmWatermarkWriteId); - return list.hashCode(); } @@ -1430,26 +1310,6 @@ public int compareTo(Table other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMmNextWriteId()).compareTo(other.isSetMmNextWriteId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetMmNextWriteId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mmNextWriteId, other.mmNextWriteId); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetMmWatermarkWriteId()).compareTo(other.isSetMmWatermarkWriteId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetMmWatermarkWriteId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mmWatermarkWriteId, other.mmWatermarkWriteId); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -1575,18 +1435,6 @@ public String toString() { sb.append(this.rewriteEnabled); first = false; } - if (isSetMmNextWriteId()) { - if (!first) sb.append(", "); - sb.append("mmNextWriteId:"); - sb.append(this.mmNextWriteId); - first = false; - } - if (isSetMmWatermarkWriteId()) { - if (!first) sb.append(", "); - sb.append("mmWatermarkWriteId:"); - sb.append(this.mmWatermarkWriteId); - first = false; - } sb.append(")"); return sb.toString(); } @@ -1783,22 +1631,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Table struct) throw org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 16: // MM_NEXT_WRITE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.mmNextWriteId = iprot.readI64(); - struct.setMmNextWriteIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 17: // MM_WATERMARK_WRITE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.mmWatermarkWriteId = iprot.readI64(); - struct.setMmWatermarkWriteIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -1898,16 +1730,6 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Table struct) thro oprot.writeBool(struct.rewriteEnabled); oprot.writeFieldEnd(); } - if (struct.isSetMmNextWriteId()) { - oprot.writeFieldBegin(MM_NEXT_WRITE_ID_FIELD_DESC); - oprot.writeI64(struct.mmNextWriteId); - oprot.writeFieldEnd(); - } - if (struct.isSetMmWatermarkWriteId()) { - oprot.writeFieldBegin(MM_WATERMARK_WRITE_ID_FIELD_DESC); - oprot.writeI64(struct.mmWatermarkWriteId); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -1971,13 +1793,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Table struct) throw if (struct.isSetRewriteEnabled()) { optionals.set(14); } - if (struct.isSetMmNextWriteId()) { - optionals.set(15); - } - if (struct.isSetMmWatermarkWriteId()) { - optionals.set(16); - } - oprot.writeBitSet(optionals, 17); + oprot.writeBitSet(optionals, 15); if (struct.isSetTableName()) { oprot.writeString(struct.tableName); } @@ -2036,18 +1852,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Table struct) throw if (struct.isSetRewriteEnabled()) { oprot.writeBool(struct.rewriteEnabled); } - if (struct.isSetMmNextWriteId()) { - oprot.writeI64(struct.mmNextWriteId); - } - if (struct.isSetMmWatermarkWriteId()) { - oprot.writeI64(struct.mmWatermarkWriteId); - } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, Table struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(17); + BitSet incoming = iprot.readBitSet(15); if (incoming.get(0)) { struct.tableName = iprot.readString(); struct.setTableNameIsSet(true); @@ -2131,14 +1941,6 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Table struct) throws struct.rewriteEnabled = iprot.readBool(); struct.setRewriteEnabledIsSet(true); } - if (incoming.get(15)) { - struct.mmNextWriteId = iprot.readI64(); - struct.setMmNextWriteIdIsSet(true); - } - if (incoming.get(16)) { - struct.mmWatermarkWriteId = iprot.readI64(); - struct.setMmWatermarkWriteIdIsSet(true); - } } } diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java index cb1bd59..1915150 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java @@ -350,14 +350,6 @@ public CacheFileMetadataResult cache_file_metadata(CacheFileMetadataRequest req) throws org.apache.thrift.TException; - public GetNextWriteIdResult get_next_write_id(GetNextWriteIdRequest req) throws org.apache.thrift.TException; - - public FinalizeWriteIdResult finalize_write_id(FinalizeWriteIdRequest req) throws org.apache.thrift.TException; - - public HeartbeatWriteIdResult heartbeat_write_id(HeartbeatWriteIdRequest req) throws org.apache.thrift.TException; - - public GetValidWriteIdsResult get_valid_write_ids(GetValidWriteIdsRequest req) throws org.apache.thrift.TException; - } public interface AsyncIface extends com.facebook.fb303.FacebookService .AsyncIface { @@ -670,14 +662,6 @@ public void cache_file_metadata(CacheFileMetadataRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_next_write_id(GetNextWriteIdRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - - public void finalize_write_id(FinalizeWriteIdRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - - public void heartbeat_write_id(HeartbeatWriteIdRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - - public void get_valid_write_ids(GetValidWriteIdsRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - } public static class Client extends com.facebook.fb303.FacebookService.Client implements Iface { @@ -5127,98 +5111,6 @@ public CacheFileMetadataResult recv_cache_file_metadata() throws org.apache.thri throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "cache_file_metadata failed: unknown result"); } - public GetNextWriteIdResult get_next_write_id(GetNextWriteIdRequest req) throws org.apache.thrift.TException - { - send_get_next_write_id(req); - return recv_get_next_write_id(); - } - - public void send_get_next_write_id(GetNextWriteIdRequest req) throws org.apache.thrift.TException - { - get_next_write_id_args args = new get_next_write_id_args(); - args.setReq(req); - sendBase("get_next_write_id", args); - } - - public GetNextWriteIdResult recv_get_next_write_id() throws org.apache.thrift.TException - { - get_next_write_id_result result = new get_next_write_id_result(); - receiveBase(result, "get_next_write_id"); - if (result.isSetSuccess()) { - return result.success; - } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_next_write_id failed: unknown result"); - } - - public FinalizeWriteIdResult finalize_write_id(FinalizeWriteIdRequest req) throws org.apache.thrift.TException - { - send_finalize_write_id(req); - return recv_finalize_write_id(); - } - - public void send_finalize_write_id(FinalizeWriteIdRequest req) throws org.apache.thrift.TException - { - finalize_write_id_args args = new finalize_write_id_args(); - args.setReq(req); - sendBase("finalize_write_id", args); - } - - public FinalizeWriteIdResult recv_finalize_write_id() throws org.apache.thrift.TException - { - finalize_write_id_result result = new finalize_write_id_result(); - receiveBase(result, "finalize_write_id"); - if (result.isSetSuccess()) { - return result.success; - } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "finalize_write_id failed: unknown result"); - } - - public HeartbeatWriteIdResult heartbeat_write_id(HeartbeatWriteIdRequest req) throws org.apache.thrift.TException - { - send_heartbeat_write_id(req); - return recv_heartbeat_write_id(); - } - - public void send_heartbeat_write_id(HeartbeatWriteIdRequest req) throws org.apache.thrift.TException - { - heartbeat_write_id_args args = new heartbeat_write_id_args(); - args.setReq(req); - sendBase("heartbeat_write_id", args); - } - - public HeartbeatWriteIdResult recv_heartbeat_write_id() throws org.apache.thrift.TException - { - heartbeat_write_id_result result = new heartbeat_write_id_result(); - receiveBase(result, "heartbeat_write_id"); - if (result.isSetSuccess()) { - return result.success; - } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "heartbeat_write_id failed: unknown result"); - } - - public GetValidWriteIdsResult get_valid_write_ids(GetValidWriteIdsRequest req) throws org.apache.thrift.TException - { - send_get_valid_write_ids(req); - return recv_get_valid_write_ids(); - } - - public void send_get_valid_write_ids(GetValidWriteIdsRequest req) throws org.apache.thrift.TException - { - get_valid_write_ids_args args = new get_valid_write_ids_args(); - args.setReq(req); - sendBase("get_valid_write_ids", args); - } - - public GetValidWriteIdsResult recv_get_valid_write_ids() throws org.apache.thrift.TException - { - get_valid_write_ids_result result = new get_valid_write_ids_result(); - receiveBase(result, "get_valid_write_ids"); - if (result.isSetSuccess()) { - return result.success; - } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_valid_write_ids failed: unknown result"); - } - } public static class AsyncClient extends com.facebook.fb303.FacebookService.AsyncClient implements AsyncIface { public static class Factory implements org.apache.thrift.async.TAsyncClientFactory { @@ -10660,134 +10552,6 @@ public CacheFileMetadataResult getResult() throws org.apache.thrift.TException { } } - public void get_next_write_id(GetNextWriteIdRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { - checkReady(); - get_next_write_id_call method_call = new get_next_write_id_call(req, resultHandler, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class get_next_write_id_call extends org.apache.thrift.async.TAsyncMethodCall { - private GetNextWriteIdRequest req; - public get_next_write_id_call(GetNextWriteIdRequest req, 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.req = req; - } - - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_next_write_id", org.apache.thrift.protocol.TMessageType.CALL, 0)); - get_next_write_id_args args = new get_next_write_id_args(); - args.setReq(req); - args.write(prot); - prot.writeMessageEnd(); - } - - public GetNextWriteIdResult 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_next_write_id(); - } - } - - public void finalize_write_id(FinalizeWriteIdRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { - checkReady(); - finalize_write_id_call method_call = new finalize_write_id_call(req, resultHandler, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class finalize_write_id_call extends org.apache.thrift.async.TAsyncMethodCall { - private FinalizeWriteIdRequest req; - public finalize_write_id_call(FinalizeWriteIdRequest req, 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.req = req; - } - - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("finalize_write_id", org.apache.thrift.protocol.TMessageType.CALL, 0)); - finalize_write_id_args args = new finalize_write_id_args(); - args.setReq(req); - args.write(prot); - prot.writeMessageEnd(); - } - - public FinalizeWriteIdResult 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_finalize_write_id(); - } - } - - public void heartbeat_write_id(HeartbeatWriteIdRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { - checkReady(); - heartbeat_write_id_call method_call = new heartbeat_write_id_call(req, resultHandler, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class heartbeat_write_id_call extends org.apache.thrift.async.TAsyncMethodCall { - private HeartbeatWriteIdRequest req; - public heartbeat_write_id_call(HeartbeatWriteIdRequest req, 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.req = req; - } - - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("heartbeat_write_id", org.apache.thrift.protocol.TMessageType.CALL, 0)); - heartbeat_write_id_args args = new heartbeat_write_id_args(); - args.setReq(req); - args.write(prot); - prot.writeMessageEnd(); - } - - public HeartbeatWriteIdResult 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_heartbeat_write_id(); - } - } - - public void get_valid_write_ids(GetValidWriteIdsRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { - checkReady(); - get_valid_write_ids_call method_call = new get_valid_write_ids_call(req, resultHandler, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class get_valid_write_ids_call extends org.apache.thrift.async.TAsyncMethodCall { - private GetValidWriteIdsRequest req; - public get_valid_write_ids_call(GetValidWriteIdsRequest req, 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.req = req; - } - - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_valid_write_ids", org.apache.thrift.protocol.TMessageType.CALL, 0)); - get_valid_write_ids_args args = new get_valid_write_ids_args(); - args.setReq(req); - args.write(prot); - prot.writeMessageEnd(); - } - - public GetValidWriteIdsResult 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_valid_write_ids(); - } - } - } public static class Processor extends com.facebook.fb303.FacebookService.Processor implements org.apache.thrift.TProcessor { @@ -10955,10 +10719,6 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { - public get_next_write_id() { - super("get_next_write_id"); - } - - public get_next_write_id_args getEmptyArgsInstance() { - return new get_next_write_id_args(); - } - - protected boolean isOneway() { - return false; - } - - public get_next_write_id_result getResult(I iface, get_next_write_id_args args) throws org.apache.thrift.TException { - get_next_write_id_result result = new get_next_write_id_result(); - result.success = iface.get_next_write_id(args.req); - return result; - } - } - - public static class finalize_write_id extends org.apache.thrift.ProcessFunction { - public finalize_write_id() { - super("finalize_write_id"); - } - - public finalize_write_id_args getEmptyArgsInstance() { - return new finalize_write_id_args(); - } - - protected boolean isOneway() { - return false; - } - - public finalize_write_id_result getResult(I iface, finalize_write_id_args args) throws org.apache.thrift.TException { - finalize_write_id_result result = new finalize_write_id_result(); - result.success = iface.finalize_write_id(args.req); - return result; - } - } - - public static class heartbeat_write_id extends org.apache.thrift.ProcessFunction { - public heartbeat_write_id() { - super("heartbeat_write_id"); - } - - public heartbeat_write_id_args getEmptyArgsInstance() { - return new heartbeat_write_id_args(); - } - - protected boolean isOneway() { - return false; - } - - public heartbeat_write_id_result getResult(I iface, heartbeat_write_id_args args) throws org.apache.thrift.TException { - heartbeat_write_id_result result = new heartbeat_write_id_result(); - result.success = iface.heartbeat_write_id(args.req); - return result; - } - } - - public static class get_valid_write_ids extends org.apache.thrift.ProcessFunction { - public get_valid_write_ids() { - super("get_valid_write_ids"); - } - - public get_valid_write_ids_args getEmptyArgsInstance() { - return new get_valid_write_ids_args(); - } - - protected boolean isOneway() { - return false; - } - - public get_valid_write_ids_result getResult(I iface, get_valid_write_ids_args args) throws org.apache.thrift.TException { - get_valid_write_ids_result result = new get_valid_write_ids_result(); - result.success = iface.get_valid_write_ids(args.req); - return result; - } - } - } public static class AsyncProcessor extends com.facebook.fb303.FacebookService.AsyncProcessor { @@ -15129,10 +14809,6 @@ protected AsyncProcessor(I iface, Map extends org.apache.thrift.AsyncProcessFunction { - public get_next_write_id() { - super("get_next_write_id"); - } - - public get_next_write_id_args getEmptyArgsInstance() { - return new get_next_write_id_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(GetNextWriteIdResult o) { - get_next_write_id_result result = new get_next_write_id_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_next_write_id_result result = new get_next_write_id_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_next_write_id_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_next_write_id(args.req,resultHandler); - } - } - - public static class finalize_write_id extends org.apache.thrift.AsyncProcessFunction { - public finalize_write_id() { - super("finalize_write_id"); - } - - public finalize_write_id_args getEmptyArgsInstance() { - return new finalize_write_id_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(FinalizeWriteIdResult o) { - finalize_write_id_result result = new finalize_write_id_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; - finalize_write_id_result result = new finalize_write_id_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, finalize_write_id_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.finalize_write_id(args.req,resultHandler); - } - } - - public static class heartbeat_write_id extends org.apache.thrift.AsyncProcessFunction { - public heartbeat_write_id() { - super("heartbeat_write_id"); - } - - public heartbeat_write_id_args getEmptyArgsInstance() { - return new heartbeat_write_id_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(HeartbeatWriteIdResult o) { - heartbeat_write_id_result result = new heartbeat_write_id_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; - heartbeat_write_id_result result = new heartbeat_write_id_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, heartbeat_write_id_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.heartbeat_write_id(args.req,resultHandler); - } - } - - public static class get_valid_write_ids extends org.apache.thrift.AsyncProcessFunction { - public get_valid_write_ids() { - super("get_valid_write_ids"); - } - - public get_valid_write_ids_args getEmptyArgsInstance() { - return new get_valid_write_ids_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(GetValidWriteIdsResult o) { - get_valid_write_ids_result result = new get_valid_write_ids_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_valid_write_ids_result result = new get_valid_write_ids_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_valid_write_ids_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_valid_write_ids(args.req,resultHandler); - } - } - } public static class getMetaConf_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -30091,13 +29563,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_databases_resul case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list682 = iprot.readListBegin(); - struct.success = new ArrayList(_list682.size); - String _elem683; - for (int _i684 = 0; _i684 < _list682.size; ++_i684) + org.apache.thrift.protocol.TList _list674 = iprot.readListBegin(); + struct.success = new ArrayList(_list674.size); + String _elem675; + for (int _i676 = 0; _i676 < _list674.size; ++_i676) { - _elem683 = iprot.readString(); - struct.success.add(_elem683); + _elem675 = iprot.readString(); + struct.success.add(_elem675); } iprot.readListEnd(); } @@ -30132,9 +29604,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_databases_resu oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter685 : struct.success) + for (String _iter677 : struct.success) { - oprot.writeString(_iter685); + oprot.writeString(_iter677); } oprot.writeListEnd(); } @@ -30173,9 +29645,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_databases_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter686 : struct.success) + for (String _iter678 : struct.success) { - oprot.writeString(_iter686); + oprot.writeString(_iter678); } } } @@ -30190,13 +29662,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_databases_result BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list687 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list687.size); - String _elem688; - for (int _i689 = 0; _i689 < _list687.size; ++_i689) + org.apache.thrift.protocol.TList _list679 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list679.size); + String _elem680; + for (int _i681 = 0; _i681 < _list679.size; ++_i681) { - _elem688 = iprot.readString(); - struct.success.add(_elem688); + _elem680 = iprot.readString(); + struct.success.add(_elem680); } } struct.setSuccessIsSet(true); @@ -30850,13 +30322,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_databases_r case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list690 = iprot.readListBegin(); - struct.success = new ArrayList(_list690.size); - String _elem691; - for (int _i692 = 0; _i692 < _list690.size; ++_i692) + org.apache.thrift.protocol.TList _list682 = iprot.readListBegin(); + struct.success = new ArrayList(_list682.size); + String _elem683; + for (int _i684 = 0; _i684 < _list682.size; ++_i684) { - _elem691 = iprot.readString(); - struct.success.add(_elem691); + _elem683 = iprot.readString(); + struct.success.add(_elem683); } iprot.readListEnd(); } @@ -30891,9 +30363,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_databases_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter693 : struct.success) + for (String _iter685 : struct.success) { - oprot.writeString(_iter693); + oprot.writeString(_iter685); } oprot.writeListEnd(); } @@ -30932,9 +30404,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_databases_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter694 : struct.success) + for (String _iter686 : struct.success) { - oprot.writeString(_iter694); + oprot.writeString(_iter686); } } } @@ -30949,13 +30421,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_databases_re BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list695 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list695.size); - String _elem696; - for (int _i697 = 0; _i697 < _list695.size; ++_i697) + org.apache.thrift.protocol.TList _list687 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list687.size); + String _elem688; + for (int _i689 = 0; _i689 < _list687.size; ++_i689) { - _elem696 = iprot.readString(); - struct.success.add(_elem696); + _elem688 = iprot.readString(); + struct.success.add(_elem688); } } struct.setSuccessIsSet(true); @@ -35562,16 +35034,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_all_result case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map698 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map698.size); - String _key699; - Type _val700; - for (int _i701 = 0; _i701 < _map698.size; ++_i701) + org.apache.thrift.protocol.TMap _map690 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map690.size); + String _key691; + Type _val692; + for (int _i693 = 0; _i693 < _map690.size; ++_i693) { - _key699 = iprot.readString(); - _val700 = new Type(); - _val700.read(iprot); - struct.success.put(_key699, _val700); + _key691 = iprot.readString(); + _val692 = new Type(); + _val692.read(iprot); + struct.success.put(_key691, _val692); } iprot.readMapEnd(); } @@ -35606,10 +35078,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_type_all_resul oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Map.Entry _iter702 : struct.success.entrySet()) + for (Map.Entry _iter694 : struct.success.entrySet()) { - oprot.writeString(_iter702.getKey()); - _iter702.getValue().write(oprot); + oprot.writeString(_iter694.getKey()); + _iter694.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -35648,10 +35120,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_type_all_result if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter703 : struct.success.entrySet()) + for (Map.Entry _iter695 : struct.success.entrySet()) { - oprot.writeString(_iter703.getKey()); - _iter703.getValue().write(oprot); + oprot.writeString(_iter695.getKey()); + _iter695.getValue().write(oprot); } } } @@ -35666,16 +35138,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_type_all_result BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map704 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new HashMap(2*_map704.size); - String _key705; - Type _val706; - for (int _i707 = 0; _i707 < _map704.size; ++_i707) + org.apache.thrift.protocol.TMap _map696 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new HashMap(2*_map696.size); + String _key697; + Type _val698; + for (int _i699 = 0; _i699 < _map696.size; ++_i699) { - _key705 = iprot.readString(); - _val706 = new Type(); - _val706.read(iprot); - struct.success.put(_key705, _val706); + _key697 = iprot.readString(); + _val698 = new Type(); + _val698.read(iprot); + struct.success.put(_key697, _val698); } } struct.setSuccessIsSet(true); @@ -36710,14 +36182,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list708 = iprot.readListBegin(); - struct.success = new ArrayList(_list708.size); - FieldSchema _elem709; - for (int _i710 = 0; _i710 < _list708.size; ++_i710) + org.apache.thrift.protocol.TList _list700 = iprot.readListBegin(); + struct.success = new ArrayList(_list700.size); + FieldSchema _elem701; + for (int _i702 = 0; _i702 < _list700.size; ++_i702) { - _elem709 = new FieldSchema(); - _elem709.read(iprot); - struct.success.add(_elem709); + _elem701 = new FieldSchema(); + _elem701.read(iprot); + struct.success.add(_elem701); } iprot.readListEnd(); } @@ -36770,9 +36242,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter711 : struct.success) + for (FieldSchema _iter703 : struct.success) { - _iter711.write(oprot); + _iter703.write(oprot); } oprot.writeListEnd(); } @@ -36827,9 +36299,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter712 : struct.success) + for (FieldSchema _iter704 : struct.success) { - _iter712.write(oprot); + _iter704.write(oprot); } } } @@ -36850,14 +36322,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_result st BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list713 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list713.size); - FieldSchema _elem714; - for (int _i715 = 0; _i715 < _list713.size; ++_i715) + org.apache.thrift.protocol.TList _list705 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list705.size); + FieldSchema _elem706; + for (int _i707 = 0; _i707 < _list705.size; ++_i707) { - _elem714 = new FieldSchema(); - _elem714.read(iprot); - struct.success.add(_elem714); + _elem706 = new FieldSchema(); + _elem706.read(iprot); + struct.success.add(_elem706); } } struct.setSuccessIsSet(true); @@ -38011,14 +37483,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_with_env case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list716 = iprot.readListBegin(); - struct.success = new ArrayList(_list716.size); - FieldSchema _elem717; - for (int _i718 = 0; _i718 < _list716.size; ++_i718) + org.apache.thrift.protocol.TList _list708 = iprot.readListBegin(); + struct.success = new ArrayList(_list708.size); + FieldSchema _elem709; + for (int _i710 = 0; _i710 < _list708.size; ++_i710) { - _elem717 = new FieldSchema(); - _elem717.read(iprot); - struct.success.add(_elem717); + _elem709 = new FieldSchema(); + _elem709.read(iprot); + struct.success.add(_elem709); } iprot.readListEnd(); } @@ -38071,9 +37543,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_with_en oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter719 : struct.success) + for (FieldSchema _iter711 : struct.success) { - _iter719.write(oprot); + _iter711.write(oprot); } oprot.writeListEnd(); } @@ -38128,9 +37600,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter720 : struct.success) + for (FieldSchema _iter712 : struct.success) { - _iter720.write(oprot); + _iter712.write(oprot); } } } @@ -38151,14 +37623,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_with_envi BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list721 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list721.size); - FieldSchema _elem722; - for (int _i723 = 0; _i723 < _list721.size; ++_i723) + org.apache.thrift.protocol.TList _list713 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list713.size); + FieldSchema _elem714; + for (int _i715 = 0; _i715 < _list713.size; ++_i715) { - _elem722 = new FieldSchema(); - _elem722.read(iprot); - struct.success.add(_elem722); + _elem714 = new FieldSchema(); + _elem714.read(iprot); + struct.success.add(_elem714); } } struct.setSuccessIsSet(true); @@ -39203,14 +38675,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list724 = iprot.readListBegin(); - struct.success = new ArrayList(_list724.size); - FieldSchema _elem725; - for (int _i726 = 0; _i726 < _list724.size; ++_i726) + org.apache.thrift.protocol.TList _list716 = iprot.readListBegin(); + struct.success = new ArrayList(_list716.size); + FieldSchema _elem717; + for (int _i718 = 0; _i718 < _list716.size; ++_i718) { - _elem725 = new FieldSchema(); - _elem725.read(iprot); - struct.success.add(_elem725); + _elem717 = new FieldSchema(); + _elem717.read(iprot); + struct.success.add(_elem717); } iprot.readListEnd(); } @@ -39263,9 +38735,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter727 : struct.success) + for (FieldSchema _iter719 : struct.success) { - _iter727.write(oprot); + _iter719.write(oprot); } oprot.writeListEnd(); } @@ -39320,9 +38792,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter728 : struct.success) + for (FieldSchema _iter720 : struct.success) { - _iter728.write(oprot); + _iter720.write(oprot); } } } @@ -39343,14 +38815,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_result st BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list729 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list729.size); - FieldSchema _elem730; - for (int _i731 = 0; _i731 < _list729.size; ++_i731) + org.apache.thrift.protocol.TList _list721 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list721.size); + FieldSchema _elem722; + for (int _i723 = 0; _i723 < _list721.size; ++_i723) { - _elem730 = new FieldSchema(); - _elem730.read(iprot); - struct.success.add(_elem730); + _elem722 = new FieldSchema(); + _elem722.read(iprot); + struct.success.add(_elem722); } } struct.setSuccessIsSet(true); @@ -40504,14 +39976,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_with_env case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list732 = iprot.readListBegin(); - struct.success = new ArrayList(_list732.size); - FieldSchema _elem733; - for (int _i734 = 0; _i734 < _list732.size; ++_i734) + org.apache.thrift.protocol.TList _list724 = iprot.readListBegin(); + struct.success = new ArrayList(_list724.size); + FieldSchema _elem725; + for (int _i726 = 0; _i726 < _list724.size; ++_i726) { - _elem733 = new FieldSchema(); - _elem733.read(iprot); - struct.success.add(_elem733); + _elem725 = new FieldSchema(); + _elem725.read(iprot); + struct.success.add(_elem725); } iprot.readListEnd(); } @@ -40564,9 +40036,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_with_en oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter735 : struct.success) + for (FieldSchema _iter727 : struct.success) { - _iter735.write(oprot); + _iter727.write(oprot); } oprot.writeListEnd(); } @@ -40621,9 +40093,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter736 : struct.success) + for (FieldSchema _iter728 : struct.success) { - _iter736.write(oprot); + _iter728.write(oprot); } } } @@ -40644,14 +40116,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_with_envi BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list737 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list737.size); - FieldSchema _elem738; - for (int _i739 = 0; _i739 < _list737.size; ++_i739) + org.apache.thrift.protocol.TList _list729 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list729.size); + FieldSchema _elem730; + for (int _i731 = 0; _i731 < _list729.size; ++_i731) { - _elem738 = new FieldSchema(); - _elem738.read(iprot); - struct.success.add(_elem738); + _elem730 = new FieldSchema(); + _elem730.read(iprot); + struct.success.add(_elem730); } } struct.setSuccessIsSet(true); @@ -43376,14 +42848,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c case 2: // PRIMARY_KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list740 = iprot.readListBegin(); - struct.primaryKeys = new ArrayList(_list740.size); - SQLPrimaryKey _elem741; - for (int _i742 = 0; _i742 < _list740.size; ++_i742) + org.apache.thrift.protocol.TList _list732 = iprot.readListBegin(); + struct.primaryKeys = new ArrayList(_list732.size); + SQLPrimaryKey _elem733; + for (int _i734 = 0; _i734 < _list732.size; ++_i734) { - _elem741 = new SQLPrimaryKey(); - _elem741.read(iprot); - struct.primaryKeys.add(_elem741); + _elem733 = new SQLPrimaryKey(); + _elem733.read(iprot); + struct.primaryKeys.add(_elem733); } iprot.readListEnd(); } @@ -43395,14 +42867,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c case 3: // FOREIGN_KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list743 = iprot.readListBegin(); - struct.foreignKeys = new ArrayList(_list743.size); - SQLForeignKey _elem744; - for (int _i745 = 0; _i745 < _list743.size; ++_i745) + org.apache.thrift.protocol.TList _list735 = iprot.readListBegin(); + struct.foreignKeys = new ArrayList(_list735.size); + SQLForeignKey _elem736; + for (int _i737 = 0; _i737 < _list735.size; ++_i737) { - _elem744 = new SQLForeignKey(); - _elem744.read(iprot); - struct.foreignKeys.add(_elem744); + _elem736 = new SQLForeignKey(); + _elem736.read(iprot); + struct.foreignKeys.add(_elem736); } iprot.readListEnd(); } @@ -43433,9 +42905,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(PRIMARY_KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.primaryKeys.size())); - for (SQLPrimaryKey _iter746 : struct.primaryKeys) + for (SQLPrimaryKey _iter738 : struct.primaryKeys) { - _iter746.write(oprot); + _iter738.write(oprot); } oprot.writeListEnd(); } @@ -43445,9 +42917,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(FOREIGN_KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.foreignKeys.size())); - for (SQLForeignKey _iter747 : struct.foreignKeys) + for (SQLForeignKey _iter739 : struct.foreignKeys) { - _iter747.write(oprot); + _iter739.write(oprot); } oprot.writeListEnd(); } @@ -43487,18 +42959,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_c if (struct.isSetPrimaryKeys()) { { oprot.writeI32(struct.primaryKeys.size()); - for (SQLPrimaryKey _iter748 : struct.primaryKeys) + for (SQLPrimaryKey _iter740 : struct.primaryKeys) { - _iter748.write(oprot); + _iter740.write(oprot); } } } if (struct.isSetForeignKeys()) { { oprot.writeI32(struct.foreignKeys.size()); - for (SQLForeignKey _iter749 : struct.foreignKeys) + for (SQLForeignKey _iter741 : struct.foreignKeys) { - _iter749.write(oprot); + _iter741.write(oprot); } } } @@ -43515,28 +42987,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_co } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list750 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.primaryKeys = new ArrayList(_list750.size); - SQLPrimaryKey _elem751; - for (int _i752 = 0; _i752 < _list750.size; ++_i752) + org.apache.thrift.protocol.TList _list742 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.primaryKeys = new ArrayList(_list742.size); + SQLPrimaryKey _elem743; + for (int _i744 = 0; _i744 < _list742.size; ++_i744) { - _elem751 = new SQLPrimaryKey(); - _elem751.read(iprot); - struct.primaryKeys.add(_elem751); + _elem743 = new SQLPrimaryKey(); + _elem743.read(iprot); + struct.primaryKeys.add(_elem743); } } struct.setPrimaryKeysIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list753 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.foreignKeys = new ArrayList(_list753.size); - SQLForeignKey _elem754; - for (int _i755 = 0; _i755 < _list753.size; ++_i755) + org.apache.thrift.protocol.TList _list745 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.foreignKeys = new ArrayList(_list745.size); + SQLForeignKey _elem746; + for (int _i747 = 0; _i747 < _list745.size; ++_i747) { - _elem754 = new SQLForeignKey(); - _elem754.read(iprot); - struct.foreignKeys.add(_elem754); + _elem746 = new SQLForeignKey(); + _elem746.read(iprot); + struct.foreignKeys.add(_elem746); } } struct.setForeignKeysIsSet(true); @@ -49370,13 +48842,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_args case 3: // PART_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list756 = iprot.readListBegin(); - struct.partNames = new ArrayList(_list756.size); - String _elem757; - for (int _i758 = 0; _i758 < _list756.size; ++_i758) + org.apache.thrift.protocol.TList _list748 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list748.size); + String _elem749; + for (int _i750 = 0; _i750 < _list748.size; ++_i750) { - _elem757 = iprot.readString(); - struct.partNames.add(_elem757); + _elem749 = iprot.readString(); + struct.partNames.add(_elem749); } iprot.readListEnd(); } @@ -49412,9 +48884,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, truncate_table_arg oprot.writeFieldBegin(PART_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partNames.size())); - for (String _iter759 : struct.partNames) + for (String _iter751 : struct.partNames) { - oprot.writeString(_iter759); + oprot.writeString(_iter751); } oprot.writeListEnd(); } @@ -49457,9 +48929,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, truncate_table_args if (struct.isSetPartNames()) { { oprot.writeI32(struct.partNames.size()); - for (String _iter760 : struct.partNames) + for (String _iter752 : struct.partNames) { - oprot.writeString(_iter760); + oprot.writeString(_iter752); } } } @@ -49479,13 +48951,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list761 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partNames = new ArrayList(_list761.size); - String _elem762; - for (int _i763 = 0; _i763 < _list761.size; ++_i763) + org.apache.thrift.protocol.TList _list753 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partNames = new ArrayList(_list753.size); + String _elem754; + for (int _i755 = 0; _i755 < _list753.size; ++_i755) { - _elem762 = iprot.readString(); - struct.partNames.add(_elem762); + _elem754 = iprot.readString(); + struct.partNames.add(_elem754); } } struct.setPartNamesIsSet(true); @@ -50710,13 +50182,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list764 = iprot.readListBegin(); - struct.success = new ArrayList(_list764.size); - String _elem765; - for (int _i766 = 0; _i766 < _list764.size; ++_i766) + org.apache.thrift.protocol.TList _list756 = iprot.readListBegin(); + struct.success = new ArrayList(_list756.size); + String _elem757; + for (int _i758 = 0; _i758 < _list756.size; ++_i758) { - _elem765 = iprot.readString(); - struct.success.add(_elem765); + _elem757 = iprot.readString(); + struct.success.add(_elem757); } iprot.readListEnd(); } @@ -50751,9 +50223,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter767 : struct.success) + for (String _iter759 : struct.success) { - oprot.writeString(_iter767); + oprot.writeString(_iter759); } oprot.writeListEnd(); } @@ -50792,9 +50264,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter768 : struct.success) + for (String _iter760 : struct.success) { - oprot.writeString(_iter768); + oprot.writeString(_iter760); } } } @@ -50809,13 +50281,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_result st BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list769 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list769.size); - String _elem770; - for (int _i771 = 0; _i771 < _list769.size; ++_i771) + org.apache.thrift.protocol.TList _list761 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list761.size); + String _elem762; + for (int _i763 = 0; _i763 < _list761.size; ++_i763) { - _elem770 = iprot.readString(); - struct.success.add(_elem770); + _elem762 = iprot.readString(); + struct.success.add(_elem762); } } struct.setSuccessIsSet(true); @@ -51789,13 +51261,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_by_type_ case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list772 = iprot.readListBegin(); - struct.success = new ArrayList(_list772.size); - String _elem773; - for (int _i774 = 0; _i774 < _list772.size; ++_i774) + org.apache.thrift.protocol.TList _list764 = iprot.readListBegin(); + struct.success = new ArrayList(_list764.size); + String _elem765; + for (int _i766 = 0; _i766 < _list764.size; ++_i766) { - _elem773 = iprot.readString(); - struct.success.add(_elem773); + _elem765 = iprot.readString(); + struct.success.add(_elem765); } iprot.readListEnd(); } @@ -51830,9 +51302,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_by_type oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter775 : struct.success) + for (String _iter767 : struct.success) { - oprot.writeString(_iter775); + oprot.writeString(_iter767); } oprot.writeListEnd(); } @@ -51871,9 +51343,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter776 : struct.success) + for (String _iter768 : struct.success) { - oprot.writeString(_iter776); + oprot.writeString(_iter768); } } } @@ -51888,13 +51360,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_r BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list777 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list777.size); - String _elem778; - for (int _i779 = 0; _i779 < _list777.size; ++_i779) + org.apache.thrift.protocol.TList _list769 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list769.size); + String _elem770; + for (int _i771 = 0; _i771 < _list769.size; ++_i771) { - _elem778 = iprot.readString(); - struct.success.add(_elem778); + _elem770 = iprot.readString(); + struct.success.add(_elem770); } } struct.setSuccessIsSet(true); @@ -52399,13 +51871,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_args case 3: // TBL_TYPES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list780 = iprot.readListBegin(); - struct.tbl_types = new ArrayList(_list780.size); - String _elem781; - for (int _i782 = 0; _i782 < _list780.size; ++_i782) + org.apache.thrift.protocol.TList _list772 = iprot.readListBegin(); + struct.tbl_types = new ArrayList(_list772.size); + String _elem773; + for (int _i774 = 0; _i774 < _list772.size; ++_i774) { - _elem781 = iprot.readString(); - struct.tbl_types.add(_elem781); + _elem773 = iprot.readString(); + struct.tbl_types.add(_elem773); } iprot.readListEnd(); } @@ -52441,9 +51913,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_arg oprot.writeFieldBegin(TBL_TYPES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_types.size())); - for (String _iter783 : struct.tbl_types) + for (String _iter775 : struct.tbl_types) { - oprot.writeString(_iter783); + oprot.writeString(_iter775); } oprot.writeListEnd(); } @@ -52486,9 +51958,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args if (struct.isSetTbl_types()) { { oprot.writeI32(struct.tbl_types.size()); - for (String _iter784 : struct.tbl_types) + for (String _iter776 : struct.tbl_types) { - oprot.writeString(_iter784); + oprot.writeString(_iter776); } } } @@ -52508,13 +51980,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list785 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_types = new ArrayList(_list785.size); - String _elem786; - for (int _i787 = 0; _i787 < _list785.size; ++_i787) + org.apache.thrift.protocol.TList _list777 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_types = new ArrayList(_list777.size); + String _elem778; + for (int _i779 = 0; _i779 < _list777.size; ++_i779) { - _elem786 = iprot.readString(); - struct.tbl_types.add(_elem786); + _elem778 = iprot.readString(); + struct.tbl_types.add(_elem778); } } struct.setTbl_typesIsSet(true); @@ -52920,14 +52392,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list788 = iprot.readListBegin(); - struct.success = new ArrayList(_list788.size); - TableMeta _elem789; - for (int _i790 = 0; _i790 < _list788.size; ++_i790) + org.apache.thrift.protocol.TList _list780 = iprot.readListBegin(); + struct.success = new ArrayList(_list780.size); + TableMeta _elem781; + for (int _i782 = 0; _i782 < _list780.size; ++_i782) { - _elem789 = new TableMeta(); - _elem789.read(iprot); - struct.success.add(_elem789); + _elem781 = new TableMeta(); + _elem781.read(iprot); + struct.success.add(_elem781); } iprot.readListEnd(); } @@ -52962,9 +52434,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (TableMeta _iter791 : struct.success) + for (TableMeta _iter783 : struct.success) { - _iter791.write(oprot); + _iter783.write(oprot); } oprot.writeListEnd(); } @@ -53003,9 +52475,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (TableMeta _iter792 : struct.success) + for (TableMeta _iter784 : struct.success) { - _iter792.write(oprot); + _iter784.write(oprot); } } } @@ -53020,14 +52492,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resul BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list793 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list793.size); - TableMeta _elem794; - for (int _i795 = 0; _i795 < _list793.size; ++_i795) + org.apache.thrift.protocol.TList _list785 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list785.size); + TableMeta _elem786; + for (int _i787 = 0; _i787 < _list785.size; ++_i787) { - _elem794 = new TableMeta(); - _elem794.read(iprot); - struct.success.add(_elem794); + _elem786 = new TableMeta(); + _elem786.read(iprot); + struct.success.add(_elem786); } } struct.setSuccessIsSet(true); @@ -53793,13 +53265,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list796 = iprot.readListBegin(); - struct.success = new ArrayList(_list796.size); - String _elem797; - for (int _i798 = 0; _i798 < _list796.size; ++_i798) + org.apache.thrift.protocol.TList _list788 = iprot.readListBegin(); + struct.success = new ArrayList(_list788.size); + String _elem789; + for (int _i790 = 0; _i790 < _list788.size; ++_i790) { - _elem797 = iprot.readString(); - struct.success.add(_elem797); + _elem789 = iprot.readString(); + struct.success.add(_elem789); } iprot.readListEnd(); } @@ -53834,9 +53306,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter799 : struct.success) + for (String _iter791 : struct.success) { - oprot.writeString(_iter799); + oprot.writeString(_iter791); } oprot.writeListEnd(); } @@ -53875,9 +53347,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter800 : struct.success) + for (String _iter792 : struct.success) { - oprot.writeString(_iter800); + oprot.writeString(_iter792); } } } @@ -53892,13 +53364,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resul BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list801 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list801.size); - String _elem802; - for (int _i803 = 0; _i803 < _list801.size; ++_i803) + org.apache.thrift.protocol.TList _list793 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list793.size); + String _elem794; + for (int _i795 = 0; _i795 < _list793.size; ++_i795) { - _elem802 = iprot.readString(); - struct.success.add(_elem802); + _elem794 = iprot.readString(); + struct.success.add(_elem794); } } struct.setSuccessIsSet(true); @@ -55351,13 +54823,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b case 2: // TBL_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list804 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list804.size); - String _elem805; - for (int _i806 = 0; _i806 < _list804.size; ++_i806) + org.apache.thrift.protocol.TList _list796 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list796.size); + String _elem797; + for (int _i798 = 0; _i798 < _list796.size; ++_i798) { - _elem805 = iprot.readString(); - struct.tbl_names.add(_elem805); + _elem797 = iprot.readString(); + struct.tbl_names.add(_elem797); } iprot.readListEnd(); } @@ -55388,9 +54860,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ oprot.writeFieldBegin(TBL_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_names.size())); - for (String _iter807 : struct.tbl_names) + for (String _iter799 : struct.tbl_names) { - oprot.writeString(_iter807); + oprot.writeString(_iter799); } oprot.writeListEnd(); } @@ -55427,9 +54899,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetTbl_names()) { { oprot.writeI32(struct.tbl_names.size()); - for (String _iter808 : struct.tbl_names) + for (String _iter800 : struct.tbl_names) { - oprot.writeString(_iter808); + oprot.writeString(_iter800); } } } @@ -55445,13 +54917,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list809 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = new ArrayList(_list809.size); - String _elem810; - for (int _i811 = 0; _i811 < _list809.size; ++_i811) + org.apache.thrift.protocol.TList _list801 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list801.size); + String _elem802; + for (int _i803 = 0; _i803 < _list801.size; ++_i803) { - _elem810 = iprot.readString(); - struct.tbl_names.add(_elem810); + _elem802 = iprot.readString(); + struct.tbl_names.add(_elem802); } } struct.setTbl_namesIsSet(true); @@ -55776,14 +55248,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list812 = iprot.readListBegin(); - struct.success = new ArrayList
(_list812.size); - Table _elem813; - for (int _i814 = 0; _i814 < _list812.size; ++_i814) + org.apache.thrift.protocol.TList _list804 = iprot.readListBegin(); + struct.success = new ArrayList
(_list804.size); + Table _elem805; + for (int _i806 = 0; _i806 < _list804.size; ++_i806) { - _elem813 = new Table(); - _elem813.read(iprot); - struct.success.add(_elem813); + _elem805 = new Table(); + _elem805.read(iprot); + struct.success.add(_elem805); } iprot.readListEnd(); } @@ -55809,9 +55281,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Table _iter815 : struct.success) + for (Table _iter807 : struct.success) { - _iter815.write(oprot); + _iter807.write(oprot); } oprot.writeListEnd(); } @@ -55842,9 +55314,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Table _iter816 : struct.success) + for (Table _iter808 : struct.success) { - _iter816.write(oprot); + _iter808.write(oprot); } } } @@ -55856,14 +55328,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list817 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList
(_list817.size); - Table _elem818; - for (int _i819 = 0; _i819 < _list817.size; ++_i819) + org.apache.thrift.protocol.TList _list809 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList
(_list809.size); + Table _elem810; + for (int _i811 = 0; _i811 < _list809.size; ++_i811) { - _elem818 = new Table(); - _elem818.read(iprot); - struct.success.add(_elem818); + _elem810 = new Table(); + _elem810.read(iprot); + struct.success.add(_elem810); } } struct.setSuccessIsSet(true); @@ -58976,13 +58448,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list820 = iprot.readListBegin(); - struct.success = new ArrayList(_list820.size); - String _elem821; - for (int _i822 = 0; _i822 < _list820.size; ++_i822) + org.apache.thrift.protocol.TList _list812 = iprot.readListBegin(); + struct.success = new ArrayList(_list812.size); + String _elem813; + for (int _i814 = 0; _i814 < _list812.size; ++_i814) { - _elem821 = iprot.readString(); - struct.success.add(_elem821); + _elem813 = iprot.readString(); + struct.success.add(_elem813); } iprot.readListEnd(); } @@ -59035,9 +58507,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_names_by oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter823 : struct.success) + for (String _iter815 : struct.success) { - oprot.writeString(_iter823); + oprot.writeString(_iter815); } oprot.writeListEnd(); } @@ -59092,9 +58564,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter824 : struct.success) + for (String _iter816 : struct.success) { - oprot.writeString(_iter824); + oprot.writeString(_iter816); } } } @@ -59115,13 +58587,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_f BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list825 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list825.size); - String _elem826; - for (int _i827 = 0; _i827 < _list825.size; ++_i827) + org.apache.thrift.protocol.TList _list817 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list817.size); + String _elem818; + for (int _i819 = 0; _i819 < _list817.size; ++_i819) { - _elem826 = iprot.readString(); - struct.success.add(_elem826); + _elem818 = iprot.readString(); + struct.success.add(_elem818); } } struct.setSuccessIsSet(true); @@ -64980,14 +64452,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_args case 1: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list828 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list828.size); - Partition _elem829; - for (int _i830 = 0; _i830 < _list828.size; ++_i830) + org.apache.thrift.protocol.TList _list820 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list820.size); + Partition _elem821; + for (int _i822 = 0; _i822 < _list820.size; ++_i822) { - _elem829 = new Partition(); - _elem829.read(iprot); - struct.new_parts.add(_elem829); + _elem821 = new Partition(); + _elem821.read(iprot); + struct.new_parts.add(_elem821); } iprot.readListEnd(); } @@ -65013,9 +64485,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_arg oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (Partition _iter831 : struct.new_parts) + for (Partition _iter823 : struct.new_parts) { - _iter831.write(oprot); + _iter823.write(oprot); } oprot.writeListEnd(); } @@ -65046,9 +64518,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_args if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (Partition _iter832 : struct.new_parts) + for (Partition _iter824 : struct.new_parts) { - _iter832.write(oprot); + _iter824.write(oprot); } } } @@ -65060,14 +64532,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_args BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list833 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list833.size); - Partition _elem834; - for (int _i835 = 0; _i835 < _list833.size; ++_i835) + org.apache.thrift.protocol.TList _list825 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list825.size); + Partition _elem826; + for (int _i827 = 0; _i827 < _list825.size; ++_i827) { - _elem834 = new Partition(); - _elem834.read(iprot); - struct.new_parts.add(_elem834); + _elem826 = new Partition(); + _elem826.read(iprot); + struct.new_parts.add(_elem826); } } struct.setNew_partsIsSet(true); @@ -66068,14 +65540,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspe case 1: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list836 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list836.size); - PartitionSpec _elem837; - for (int _i838 = 0; _i838 < _list836.size; ++_i838) + org.apache.thrift.protocol.TList _list828 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list828.size); + PartitionSpec _elem829; + for (int _i830 = 0; _i830 < _list828.size; ++_i830) { - _elem837 = new PartitionSpec(); - _elem837.read(iprot); - struct.new_parts.add(_elem837); + _elem829 = new PartitionSpec(); + _elem829.read(iprot); + struct.new_parts.add(_elem829); } iprot.readListEnd(); } @@ -66101,9 +65573,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_psp oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (PartitionSpec _iter839 : struct.new_parts) + for (PartitionSpec _iter831 : struct.new_parts) { - _iter839.write(oprot); + _iter831.write(oprot); } oprot.writeListEnd(); } @@ -66134,9 +65606,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspe if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (PartitionSpec _iter840 : struct.new_parts) + for (PartitionSpec _iter832 : struct.new_parts) { - _iter840.write(oprot); + _iter832.write(oprot); } } } @@ -66148,14 +65620,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list841 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list841.size); - PartitionSpec _elem842; - for (int _i843 = 0; _i843 < _list841.size; ++_i843) + org.apache.thrift.protocol.TList _list833 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list833.size); + PartitionSpec _elem834; + for (int _i835 = 0; _i835 < _list833.size; ++_i835) { - _elem842 = new PartitionSpec(); - _elem842.read(iprot); - struct.new_parts.add(_elem842); + _elem834 = new PartitionSpec(); + _elem834.read(iprot); + struct.new_parts.add(_elem834); } } struct.setNew_partsIsSet(true); @@ -67331,13 +66803,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_ar case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list844 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list844.size); - String _elem845; - for (int _i846 = 0; _i846 < _list844.size; ++_i846) + org.apache.thrift.protocol.TList _list836 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list836.size); + String _elem837; + for (int _i838 = 0; _i838 < _list836.size; ++_i838) { - _elem845 = iprot.readString(); - struct.part_vals.add(_elem845); + _elem837 = iprot.readString(); + struct.part_vals.add(_elem837); } iprot.readListEnd(); } @@ -67373,9 +66845,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_a oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter847 : struct.part_vals) + for (String _iter839 : struct.part_vals) { - oprot.writeString(_iter847); + oprot.writeString(_iter839); } oprot.writeListEnd(); } @@ -67418,9 +66890,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_ar if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter848 : struct.part_vals) + for (String _iter840 : struct.part_vals) { - oprot.writeString(_iter848); + oprot.writeString(_iter840); } } } @@ -67440,13 +66912,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list849 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list849.size); - String _elem850; - for (int _i851 = 0; _i851 < _list849.size; ++_i851) + org.apache.thrift.protocol.TList _list841 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list841.size); + String _elem842; + for (int _i843 = 0; _i843 < _list841.size; ++_i843) { - _elem850 = iprot.readString(); - struct.part_vals.add(_elem850); + _elem842 = iprot.readString(); + struct.part_vals.add(_elem842); } } struct.setPart_valsIsSet(true); @@ -69755,13 +69227,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_wi case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list852 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list852.size); - String _elem853; - for (int _i854 = 0; _i854 < _list852.size; ++_i854) + org.apache.thrift.protocol.TList _list844 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list844.size); + String _elem845; + for (int _i846 = 0; _i846 < _list844.size; ++_i846) { - _elem853 = iprot.readString(); - struct.part_vals.add(_elem853); + _elem845 = iprot.readString(); + struct.part_vals.add(_elem845); } iprot.readListEnd(); } @@ -69806,9 +69278,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_w oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter855 : struct.part_vals) + for (String _iter847 : struct.part_vals) { - oprot.writeString(_iter855); + oprot.writeString(_iter847); } oprot.writeListEnd(); } @@ -69859,9 +69331,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_wi if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter856 : struct.part_vals) + for (String _iter848 : struct.part_vals) { - oprot.writeString(_iter856); + oprot.writeString(_iter848); } } } @@ -69884,13 +69356,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list857 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list857.size); - String _elem858; - for (int _i859 = 0; _i859 < _list857.size; ++_i859) + org.apache.thrift.protocol.TList _list849 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list849.size); + String _elem850; + for (int _i851 = 0; _i851 < _list849.size; ++_i851) { - _elem858 = iprot.readString(); - struct.part_vals.add(_elem858); + _elem850 = iprot.readString(); + struct.part_vals.add(_elem850); } } struct.setPart_valsIsSet(true); @@ -73760,13 +73232,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_args case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list860 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list860.size); - String _elem861; - for (int _i862 = 0; _i862 < _list860.size; ++_i862) + org.apache.thrift.protocol.TList _list852 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list852.size); + String _elem853; + for (int _i854 = 0; _i854 < _list852.size; ++_i854) { - _elem861 = iprot.readString(); - struct.part_vals.add(_elem861); + _elem853 = iprot.readString(); + struct.part_vals.add(_elem853); } iprot.readListEnd(); } @@ -73810,9 +73282,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_arg oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter863 : struct.part_vals) + for (String _iter855 : struct.part_vals) { - oprot.writeString(_iter863); + oprot.writeString(_iter855); } oprot.writeListEnd(); } @@ -73861,9 +73333,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_args if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter864 : struct.part_vals) + for (String _iter856 : struct.part_vals) { - oprot.writeString(_iter864); + oprot.writeString(_iter856); } } } @@ -73886,13 +73358,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list865 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list865.size); - String _elem866; - for (int _i867 = 0; _i867 < _list865.size; ++_i867) + org.apache.thrift.protocol.TList _list857 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list857.size); + String _elem858; + for (int _i859 = 0; _i859 < _list857.size; ++_i859) { - _elem866 = iprot.readString(); - struct.part_vals.add(_elem866); + _elem858 = iprot.readString(); + struct.part_vals.add(_elem858); } } struct.setPart_valsIsSet(true); @@ -75131,13 +74603,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list868 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list868.size); - String _elem869; - for (int _i870 = 0; _i870 < _list868.size; ++_i870) + org.apache.thrift.protocol.TList _list860 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list860.size); + String _elem861; + for (int _i862 = 0; _i862 < _list860.size; ++_i862) { - _elem869 = iprot.readString(); - struct.part_vals.add(_elem869); + _elem861 = iprot.readString(); + struct.part_vals.add(_elem861); } iprot.readListEnd(); } @@ -75190,9 +74662,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_wit oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter871 : struct.part_vals) + for (String _iter863 : struct.part_vals) { - oprot.writeString(_iter871); + oprot.writeString(_iter863); } oprot.writeListEnd(); } @@ -75249,9 +74721,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter872 : struct.part_vals) + for (String _iter864 : struct.part_vals) { - oprot.writeString(_iter872); + oprot.writeString(_iter864); } } } @@ -75277,13 +74749,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list873 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list873.size); - String _elem874; - for (int _i875 = 0; _i875 < _list873.size; ++_i875) + org.apache.thrift.protocol.TList _list865 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list865.size); + String _elem866; + for (int _i867 = 0; _i867 < _list865.size; ++_i867) { - _elem874 = iprot.readString(); - struct.part_vals.add(_elem874); + _elem866 = iprot.readString(); + struct.part_vals.add(_elem866); } } struct.setPart_valsIsSet(true); @@ -79885,13 +79357,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_args case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list876 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list876.size); - String _elem877; - for (int _i878 = 0; _i878 < _list876.size; ++_i878) + org.apache.thrift.protocol.TList _list868 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list868.size); + String _elem869; + for (int _i870 = 0; _i870 < _list868.size; ++_i870) { - _elem877 = iprot.readString(); - struct.part_vals.add(_elem877); + _elem869 = iprot.readString(); + struct.part_vals.add(_elem869); } iprot.readListEnd(); } @@ -79927,9 +79399,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_args oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter879 : struct.part_vals) + for (String _iter871 : struct.part_vals) { - oprot.writeString(_iter879); + oprot.writeString(_iter871); } oprot.writeListEnd(); } @@ -79972,9 +79444,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_args if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter880 : struct.part_vals) + for (String _iter872 : struct.part_vals) { - oprot.writeString(_iter880); + oprot.writeString(_iter872); } } } @@ -79994,13 +79466,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list881 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list881.size); - String _elem882; - for (int _i883 = 0; _i883 < _list881.size; ++_i883) + org.apache.thrift.protocol.TList _list873 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list873.size); + String _elem874; + for (int _i875 = 0; _i875 < _list873.size; ++_i875) { - _elem882 = iprot.readString(); - struct.part_vals.add(_elem882); + _elem874 = iprot.readString(); + struct.part_vals.add(_elem874); } } struct.setPart_valsIsSet(true); @@ -81218,15 +80690,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_ case 1: // PARTITION_SPECS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map884 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map884.size); - String _key885; - String _val886; - for (int _i887 = 0; _i887 < _map884.size; ++_i887) + org.apache.thrift.protocol.TMap _map876 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map876.size); + String _key877; + String _val878; + for (int _i879 = 0; _i879 < _map876.size; ++_i879) { - _key885 = iprot.readString(); - _val886 = iprot.readString(); - struct.partitionSpecs.put(_key885, _val886); + _key877 = iprot.readString(); + _val878 = iprot.readString(); + struct.partitionSpecs.put(_key877, _val878); } iprot.readMapEnd(); } @@ -81284,10 +80756,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition oprot.writeFieldBegin(PARTITION_SPECS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.partitionSpecs.size())); - for (Map.Entry _iter888 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter880 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter888.getKey()); - oprot.writeString(_iter888.getValue()); + oprot.writeString(_iter880.getKey()); + oprot.writeString(_iter880.getValue()); } oprot.writeMapEnd(); } @@ -81350,10 +80822,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter889 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter881 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter889.getKey()); - oprot.writeString(_iter889.getValue()); + oprot.writeString(_iter881.getKey()); + oprot.writeString(_iter881.getValue()); } } } @@ -81377,15 +80849,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_a BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map890 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionSpecs = new HashMap(2*_map890.size); - String _key891; - String _val892; - for (int _i893 = 0; _i893 < _map890.size; ++_i893) + org.apache.thrift.protocol.TMap _map882 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionSpecs = new HashMap(2*_map882.size); + String _key883; + String _val884; + for (int _i885 = 0; _i885 < _map882.size; ++_i885) { - _key891 = iprot.readString(); - _val892 = iprot.readString(); - struct.partitionSpecs.put(_key891, _val892); + _key883 = iprot.readString(); + _val884 = iprot.readString(); + struct.partitionSpecs.put(_key883, _val884); } } struct.setPartitionSpecsIsSet(true); @@ -82831,15 +82303,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions case 1: // PARTITION_SPECS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map894 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map894.size); - String _key895; - String _val896; - for (int _i897 = 0; _i897 < _map894.size; ++_i897) + org.apache.thrift.protocol.TMap _map886 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map886.size); + String _key887; + String _val888; + for (int _i889 = 0; _i889 < _map886.size; ++_i889) { - _key895 = iprot.readString(); - _val896 = iprot.readString(); - struct.partitionSpecs.put(_key895, _val896); + _key887 = iprot.readString(); + _val888 = iprot.readString(); + struct.partitionSpecs.put(_key887, _val888); } iprot.readMapEnd(); } @@ -82897,10 +82369,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition oprot.writeFieldBegin(PARTITION_SPECS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.partitionSpecs.size())); - for (Map.Entry _iter898 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter890 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter898.getKey()); - oprot.writeString(_iter898.getValue()); + oprot.writeString(_iter890.getKey()); + oprot.writeString(_iter890.getValue()); } oprot.writeMapEnd(); } @@ -82963,10 +82435,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter899 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter891 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter899.getKey()); - oprot.writeString(_iter899.getValue()); + oprot.writeString(_iter891.getKey()); + oprot.writeString(_iter891.getValue()); } } } @@ -82990,15 +82462,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_ BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map900 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionSpecs = new HashMap(2*_map900.size); - String _key901; - String _val902; - for (int _i903 = 0; _i903 < _map900.size; ++_i903) + org.apache.thrift.protocol.TMap _map892 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionSpecs = new HashMap(2*_map892.size); + String _key893; + String _val894; + for (int _i895 = 0; _i895 < _map892.size; ++_i895) { - _key901 = iprot.readString(); - _val902 = iprot.readString(); - struct.partitionSpecs.put(_key901, _val902); + _key893 = iprot.readString(); + _val894 = iprot.readString(); + struct.partitionSpecs.put(_key893, _val894); } } struct.setPartitionSpecsIsSet(true); @@ -83663,14 +83135,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list904 = iprot.readListBegin(); - struct.success = new ArrayList(_list904.size); - Partition _elem905; - for (int _i906 = 0; _i906 < _list904.size; ++_i906) + org.apache.thrift.protocol.TList _list896 = iprot.readListBegin(); + struct.success = new ArrayList(_list896.size); + Partition _elem897; + for (int _i898 = 0; _i898 < _list896.size; ++_i898) { - _elem905 = new Partition(); - _elem905.read(iprot); - struct.success.add(_elem905); + _elem897 = new Partition(); + _elem897.read(iprot); + struct.success.add(_elem897); } iprot.readListEnd(); } @@ -83732,9 +83204,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter907 : struct.success) + for (Partition _iter899 : struct.success) { - _iter907.write(oprot); + _iter899.write(oprot); } oprot.writeListEnd(); } @@ -83797,9 +83269,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter908 : struct.success) + for (Partition _iter900 : struct.success) { - _iter908.write(oprot); + _iter900.write(oprot); } } } @@ -83823,14 +83295,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_ BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list909 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list909.size); - Partition _elem910; - for (int _i911 = 0; _i911 < _list909.size; ++_i911) + org.apache.thrift.protocol.TList _list901 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list901.size); + Partition _elem902; + for (int _i903 = 0; _i903 < _list901.size; ++_i903) { - _elem910 = new Partition(); - _elem910.read(iprot); - struct.success.add(_elem910); + _elem902 = new Partition(); + _elem902.read(iprot); + struct.success.add(_elem902); } } struct.setSuccessIsSet(true); @@ -84529,13 +84001,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list912 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list912.size); - String _elem913; - for (int _i914 = 0; _i914 < _list912.size; ++_i914) + org.apache.thrift.protocol.TList _list904 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list904.size); + String _elem905; + for (int _i906 = 0; _i906 < _list904.size; ++_i906) { - _elem913 = iprot.readString(); - struct.part_vals.add(_elem913); + _elem905 = iprot.readString(); + struct.part_vals.add(_elem905); } iprot.readListEnd(); } @@ -84555,13 +84027,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ case 5: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list915 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list915.size); - String _elem916; - for (int _i917 = 0; _i917 < _list915.size; ++_i917) + org.apache.thrift.protocol.TList _list907 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list907.size); + String _elem908; + for (int _i909 = 0; _i909 < _list907.size; ++_i909) { - _elem916 = iprot.readString(); - struct.group_names.add(_elem916); + _elem908 = iprot.readString(); + struct.group_names.add(_elem908); } iprot.readListEnd(); } @@ -84597,9 +84069,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter918 : struct.part_vals) + for (String _iter910 : struct.part_vals) { - oprot.writeString(_iter918); + oprot.writeString(_iter910); } oprot.writeListEnd(); } @@ -84614,9 +84086,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter919 : struct.group_names) + for (String _iter911 : struct.group_names) { - oprot.writeString(_iter919); + oprot.writeString(_iter911); } oprot.writeListEnd(); } @@ -84665,9 +84137,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_ if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter920 : struct.part_vals) + for (String _iter912 : struct.part_vals) { - oprot.writeString(_iter920); + oprot.writeString(_iter912); } } } @@ -84677,9 +84149,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_ if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter921 : struct.group_names) + for (String _iter913 : struct.group_names) { - oprot.writeString(_iter921); + oprot.writeString(_iter913); } } } @@ -84699,13 +84171,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list922 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list922.size); - String _elem923; - for (int _i924 = 0; _i924 < _list922.size; ++_i924) + org.apache.thrift.protocol.TList _list914 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list914.size); + String _elem915; + for (int _i916 = 0; _i916 < _list914.size; ++_i916) { - _elem923 = iprot.readString(); - struct.part_vals.add(_elem923); + _elem915 = iprot.readString(); + struct.part_vals.add(_elem915); } } struct.setPart_valsIsSet(true); @@ -84716,13 +84188,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list925 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list925.size); - String _elem926; - for (int _i927 = 0; _i927 < _list925.size; ++_i927) + org.apache.thrift.protocol.TList _list917 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list917.size); + String _elem918; + for (int _i919 = 0; _i919 < _list917.size; ++_i919) { - _elem926 = iprot.readString(); - struct.group_names.add(_elem926); + _elem918 = iprot.readString(); + struct.group_names.add(_elem918); } } struct.setGroup_namesIsSet(true); @@ -87491,14 +86963,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list928 = iprot.readListBegin(); - struct.success = new ArrayList(_list928.size); - Partition _elem929; - for (int _i930 = 0; _i930 < _list928.size; ++_i930) + org.apache.thrift.protocol.TList _list920 = iprot.readListBegin(); + struct.success = new ArrayList(_list920.size); + Partition _elem921; + for (int _i922 = 0; _i922 < _list920.size; ++_i922) { - _elem929 = new Partition(); - _elem929.read(iprot); - struct.success.add(_elem929); + _elem921 = new Partition(); + _elem921.read(iprot); + struct.success.add(_elem921); } iprot.readListEnd(); } @@ -87542,9 +87014,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter931 : struct.success) + for (Partition _iter923 : struct.success) { - _iter931.write(oprot); + _iter923.write(oprot); } oprot.writeListEnd(); } @@ -87591,9 +87063,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter932 : struct.success) + for (Partition _iter924 : struct.success) { - _iter932.write(oprot); + _iter924.write(oprot); } } } @@ -87611,14 +87083,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_resul BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list933 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list933.size); - Partition _elem934; - for (int _i935 = 0; _i935 < _list933.size; ++_i935) + org.apache.thrift.protocol.TList _list925 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list925.size); + Partition _elem926; + for (int _i927 = 0; _i927 < _list925.size; ++_i927) { - _elem934 = new Partition(); - _elem934.read(iprot); - struct.success.add(_elem934); + _elem926 = new Partition(); + _elem926.read(iprot); + struct.success.add(_elem926); } } struct.setSuccessIsSet(true); @@ -88308,13 +87780,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with case 5: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list936 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list936.size); - String _elem937; - for (int _i938 = 0; _i938 < _list936.size; ++_i938) + org.apache.thrift.protocol.TList _list928 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list928.size); + String _elem929; + for (int _i930 = 0; _i930 < _list928.size; ++_i930) { - _elem937 = iprot.readString(); - struct.group_names.add(_elem937); + _elem929 = iprot.readString(); + struct.group_names.add(_elem929); } iprot.readListEnd(); } @@ -88358,9 +87830,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_wit oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter939 : struct.group_names) + for (String _iter931 : struct.group_names) { - oprot.writeString(_iter939); + oprot.writeString(_iter931); } oprot.writeListEnd(); } @@ -88415,9 +87887,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter940 : struct.group_names) + for (String _iter932 : struct.group_names) { - oprot.writeString(_iter940); + oprot.writeString(_iter932); } } } @@ -88445,13 +87917,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list941 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list941.size); - String _elem942; - for (int _i943 = 0; _i943 < _list941.size; ++_i943) + org.apache.thrift.protocol.TList _list933 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list933.size); + String _elem934; + for (int _i935 = 0; _i935 < _list933.size; ++_i935) { - _elem942 = iprot.readString(); - struct.group_names.add(_elem942); + _elem934 = iprot.readString(); + struct.group_names.add(_elem934); } } struct.setGroup_namesIsSet(true); @@ -88938,14 +88410,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list944 = iprot.readListBegin(); - struct.success = new ArrayList(_list944.size); - Partition _elem945; - for (int _i946 = 0; _i946 < _list944.size; ++_i946) + org.apache.thrift.protocol.TList _list936 = iprot.readListBegin(); + struct.success = new ArrayList(_list936.size); + Partition _elem937; + for (int _i938 = 0; _i938 < _list936.size; ++_i938) { - _elem945 = new Partition(); - _elem945.read(iprot); - struct.success.add(_elem945); + _elem937 = new Partition(); + _elem937.read(iprot); + struct.success.add(_elem937); } iprot.readListEnd(); } @@ -88989,9 +88461,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_wit oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter947 : struct.success) + for (Partition _iter939 : struct.success) { - _iter947.write(oprot); + _iter939.write(oprot); } oprot.writeListEnd(); } @@ -89038,9 +88510,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter948 : struct.success) + for (Partition _iter940 : struct.success) { - _iter948.write(oprot); + _iter940.write(oprot); } } } @@ -89058,14 +88530,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list949 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list949.size); - Partition _elem950; - for (int _i951 = 0; _i951 < _list949.size; ++_i951) + org.apache.thrift.protocol.TList _list941 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list941.size); + Partition _elem942; + for (int _i943 = 0; _i943 < _list941.size; ++_i943) { - _elem950 = new Partition(); - _elem950.read(iprot); - struct.success.add(_elem950); + _elem942 = new Partition(); + _elem942.read(iprot); + struct.success.add(_elem942); } } struct.setSuccessIsSet(true); @@ -90128,14 +89600,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list952 = iprot.readListBegin(); - struct.success = new ArrayList(_list952.size); - PartitionSpec _elem953; - for (int _i954 = 0; _i954 < _list952.size; ++_i954) + org.apache.thrift.protocol.TList _list944 = iprot.readListBegin(); + struct.success = new ArrayList(_list944.size); + PartitionSpec _elem945; + for (int _i946 = 0; _i946 < _list944.size; ++_i946) { - _elem953 = new PartitionSpec(); - _elem953.read(iprot); - struct.success.add(_elem953); + _elem945 = new PartitionSpec(); + _elem945.read(iprot); + struct.success.add(_elem945); } iprot.readListEnd(); } @@ -90179,9 +89651,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_psp oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (PartitionSpec _iter955 : struct.success) + for (PartitionSpec _iter947 : struct.success) { - _iter955.write(oprot); + _iter947.write(oprot); } oprot.writeListEnd(); } @@ -90228,9 +89700,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspe if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter956 : struct.success) + for (PartitionSpec _iter948 : struct.success) { - _iter956.write(oprot); + _iter948.write(oprot); } } } @@ -90248,14 +89720,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list957 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list957.size); - PartitionSpec _elem958; - for (int _i959 = 0; _i959 < _list957.size; ++_i959) + org.apache.thrift.protocol.TList _list949 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list949.size); + PartitionSpec _elem950; + for (int _i951 = 0; _i951 < _list949.size; ++_i951) { - _elem958 = new PartitionSpec(); - _elem958.read(iprot); - struct.success.add(_elem958); + _elem950 = new PartitionSpec(); + _elem950.read(iprot); + struct.success.add(_elem950); } } struct.setSuccessIsSet(true); @@ -91234,13 +90706,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list960 = iprot.readListBegin(); - struct.success = new ArrayList(_list960.size); - String _elem961; - for (int _i962 = 0; _i962 < _list960.size; ++_i962) + org.apache.thrift.protocol.TList _list952 = iprot.readListBegin(); + struct.success = new ArrayList(_list952.size); + String _elem953; + for (int _i954 = 0; _i954 < _list952.size; ++_i954) { - _elem961 = iprot.readString(); - struct.success.add(_elem961); + _elem953 = iprot.readString(); + struct.success.add(_elem953); } iprot.readListEnd(); } @@ -91275,9 +90747,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter963 : struct.success) + for (String _iter955 : struct.success) { - oprot.writeString(_iter963); + oprot.writeString(_iter955); } oprot.writeListEnd(); } @@ -91316,9 +90788,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter964 : struct.success) + for (String _iter956 : struct.success) { - oprot.writeString(_iter964); + oprot.writeString(_iter956); } } } @@ -91333,13 +90805,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list965 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list965.size); - String _elem966; - for (int _i967 = 0; _i967 < _list965.size; ++_i967) + org.apache.thrift.protocol.TList _list957 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list957.size); + String _elem958; + for (int _i959 = 0; _i959 < _list957.size; ++_i959) { - _elem966 = iprot.readString(); - struct.success.add(_elem966); + _elem958 = iprot.readString(); + struct.success.add(_elem958); } } struct.setSuccessIsSet(true); @@ -91927,13 +91399,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_a case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list968 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list968.size); - String _elem969; - for (int _i970 = 0; _i970 < _list968.size; ++_i970) + org.apache.thrift.protocol.TList _list960 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list960.size); + String _elem961; + for (int _i962 = 0; _i962 < _list960.size; ++_i962) { - _elem969 = iprot.readString(); - struct.part_vals.add(_elem969); + _elem961 = iprot.readString(); + struct.part_vals.add(_elem961); } iprot.readListEnd(); } @@ -91977,9 +91449,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter971 : struct.part_vals) + for (String _iter963 : struct.part_vals) { - oprot.writeString(_iter971); + oprot.writeString(_iter963); } oprot.writeListEnd(); } @@ -92028,9 +91500,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_a if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter972 : struct.part_vals) + for (String _iter964 : struct.part_vals) { - oprot.writeString(_iter972); + oprot.writeString(_iter964); } } } @@ -92053,13 +91525,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list973 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list973.size); - String _elem974; - for (int _i975 = 0; _i975 < _list973.size; ++_i975) + org.apache.thrift.protocol.TList _list965 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list965.size); + String _elem966; + for (int _i967 = 0; _i967 < _list965.size; ++_i967) { - _elem974 = iprot.readString(); - struct.part_vals.add(_elem974); + _elem966 = iprot.readString(); + struct.part_vals.add(_elem966); } } struct.setPart_valsIsSet(true); @@ -92550,14 +92022,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_r case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list976 = iprot.readListBegin(); - struct.success = new ArrayList(_list976.size); - Partition _elem977; - for (int _i978 = 0; _i978 < _list976.size; ++_i978) + org.apache.thrift.protocol.TList _list968 = iprot.readListBegin(); + struct.success = new ArrayList(_list968.size); + Partition _elem969; + for (int _i970 = 0; _i970 < _list968.size; ++_i970) { - _elem977 = new Partition(); - _elem977.read(iprot); - struct.success.add(_elem977); + _elem969 = new Partition(); + _elem969.read(iprot); + struct.success.add(_elem969); } iprot.readListEnd(); } @@ -92601,9 +92073,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter979 : struct.success) + for (Partition _iter971 : struct.success) { - _iter979.write(oprot); + _iter971.write(oprot); } oprot.writeListEnd(); } @@ -92650,9 +92122,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter980 : struct.success) + for (Partition _iter972 : struct.success) { - _iter980.write(oprot); + _iter972.write(oprot); } } } @@ -92670,14 +92142,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_re BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list981 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list981.size); - Partition _elem982; - for (int _i983 = 0; _i983 < _list981.size; ++_i983) + org.apache.thrift.protocol.TList _list973 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list973.size); + Partition _elem974; + for (int _i975 = 0; _i975 < _list973.size; ++_i975) { - _elem982 = new Partition(); - _elem982.read(iprot); - struct.success.add(_elem982); + _elem974 = new Partition(); + _elem974.read(iprot); + struct.success.add(_elem974); } } struct.setSuccessIsSet(true); @@ -93449,13 +92921,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list984 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list984.size); - String _elem985; - for (int _i986 = 0; _i986 < _list984.size; ++_i986) + org.apache.thrift.protocol.TList _list976 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list976.size); + String _elem977; + for (int _i978 = 0; _i978 < _list976.size; ++_i978) { - _elem985 = iprot.readString(); - struct.part_vals.add(_elem985); + _elem977 = iprot.readString(); + struct.part_vals.add(_elem977); } iprot.readListEnd(); } @@ -93483,13 +92955,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 6: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list987 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list987.size); - String _elem988; - for (int _i989 = 0; _i989 < _list987.size; ++_i989) + org.apache.thrift.protocol.TList _list979 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list979.size); + String _elem980; + for (int _i981 = 0; _i981 < _list979.size; ++_i981) { - _elem988 = iprot.readString(); - struct.group_names.add(_elem988); + _elem980 = iprot.readString(); + struct.group_names.add(_elem980); } iprot.readListEnd(); } @@ -93525,9 +92997,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter990 : struct.part_vals) + for (String _iter982 : struct.part_vals) { - oprot.writeString(_iter990); + oprot.writeString(_iter982); } oprot.writeListEnd(); } @@ -93545,9 +93017,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter991 : struct.group_names) + for (String _iter983 : struct.group_names) { - oprot.writeString(_iter991); + oprot.writeString(_iter983); } oprot.writeListEnd(); } @@ -93599,9 +93071,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter992 : struct.part_vals) + for (String _iter984 : struct.part_vals) { - oprot.writeString(_iter992); + oprot.writeString(_iter984); } } } @@ -93614,9 +93086,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter993 : struct.group_names) + for (String _iter985 : struct.group_names) { - oprot.writeString(_iter993); + oprot.writeString(_iter985); } } } @@ -93636,13 +93108,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list994 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list994.size); - String _elem995; - for (int _i996 = 0; _i996 < _list994.size; ++_i996) + org.apache.thrift.protocol.TList _list986 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list986.size); + String _elem987; + for (int _i988 = 0; _i988 < _list986.size; ++_i988) { - _elem995 = iprot.readString(); - struct.part_vals.add(_elem995); + _elem987 = iprot.readString(); + struct.part_vals.add(_elem987); } } struct.setPart_valsIsSet(true); @@ -93657,13 +93129,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list997 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list997.size); - String _elem998; - for (int _i999 = 0; _i999 < _list997.size; ++_i999) + org.apache.thrift.protocol.TList _list989 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list989.size); + String _elem990; + for (int _i991 = 0; _i991 < _list989.size; ++_i991) { - _elem998 = iprot.readString(); - struct.group_names.add(_elem998); + _elem990 = iprot.readString(); + struct.group_names.add(_elem990); } } struct.setGroup_namesIsSet(true); @@ -94150,14 +93622,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1000 = iprot.readListBegin(); - struct.success = new ArrayList(_list1000.size); - Partition _elem1001; - for (int _i1002 = 0; _i1002 < _list1000.size; ++_i1002) + org.apache.thrift.protocol.TList _list992 = iprot.readListBegin(); + struct.success = new ArrayList(_list992.size); + Partition _elem993; + for (int _i994 = 0; _i994 < _list992.size; ++_i994) { - _elem1001 = new Partition(); - _elem1001.read(iprot); - struct.success.add(_elem1001); + _elem993 = new Partition(); + _elem993.read(iprot); + struct.success.add(_elem993); } iprot.readListEnd(); } @@ -94201,9 +93673,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter1003 : struct.success) + for (Partition _iter995 : struct.success) { - _iter1003.write(oprot); + _iter995.write(oprot); } oprot.writeListEnd(); } @@ -94250,9 +93722,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1004 : struct.success) + for (Partition _iter996 : struct.success) { - _iter1004.write(oprot); + _iter996.write(oprot); } } } @@ -94270,14 +93742,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1005 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1005.size); - Partition _elem1006; - for (int _i1007 = 0; _i1007 < _list1005.size; ++_i1007) + org.apache.thrift.protocol.TList _list997 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list997.size); + Partition _elem998; + for (int _i999 = 0; _i999 < _list997.size; ++_i999) { - _elem1006 = new Partition(); - _elem1006.read(iprot); - struct.success.add(_elem1006); + _elem998 = new Partition(); + _elem998.read(iprot); + struct.success.add(_elem998); } } struct.setSuccessIsSet(true); @@ -94870,13 +94342,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1008 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1008.size); - String _elem1009; - for (int _i1010 = 0; _i1010 < _list1008.size; ++_i1010) + org.apache.thrift.protocol.TList _list1000 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1000.size); + String _elem1001; + for (int _i1002 = 0; _i1002 < _list1000.size; ++_i1002) { - _elem1009 = iprot.readString(); - struct.part_vals.add(_elem1009); + _elem1001 = iprot.readString(); + struct.part_vals.add(_elem1001); } iprot.readListEnd(); } @@ -94920,9 +94392,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1011 : struct.part_vals) + for (String _iter1003 : struct.part_vals) { - oprot.writeString(_iter1011); + oprot.writeString(_iter1003); } oprot.writeListEnd(); } @@ -94971,9 +94443,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1012 : struct.part_vals) + for (String _iter1004 : struct.part_vals) { - oprot.writeString(_iter1012); + oprot.writeString(_iter1004); } } } @@ -94996,13 +94468,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1013 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1013.size); - String _elem1014; - for (int _i1015 = 0; _i1015 < _list1013.size; ++_i1015) + org.apache.thrift.protocol.TList _list1005 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1005.size); + String _elem1006; + for (int _i1007 = 0; _i1007 < _list1005.size; ++_i1007) { - _elem1014 = iprot.readString(); - struct.part_vals.add(_elem1014); + _elem1006 = iprot.readString(); + struct.part_vals.add(_elem1006); } } struct.setPart_valsIsSet(true); @@ -95490,13 +94962,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1016 = iprot.readListBegin(); - struct.success = new ArrayList(_list1016.size); - String _elem1017; - for (int _i1018 = 0; _i1018 < _list1016.size; ++_i1018) + org.apache.thrift.protocol.TList _list1008 = iprot.readListBegin(); + struct.success = new ArrayList(_list1008.size); + String _elem1009; + for (int _i1010 = 0; _i1010 < _list1008.size; ++_i1010) { - _elem1017 = iprot.readString(); - struct.success.add(_elem1017); + _elem1009 = iprot.readString(); + struct.success.add(_elem1009); } iprot.readListEnd(); } @@ -95540,9 +95012,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1019 : struct.success) + for (String _iter1011 : struct.success) { - oprot.writeString(_iter1019); + oprot.writeString(_iter1011); } oprot.writeListEnd(); } @@ -95589,9 +95061,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1020 : struct.success) + for (String _iter1012 : struct.success) { - oprot.writeString(_iter1020); + oprot.writeString(_iter1012); } } } @@ -95609,13 +95081,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1021 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1021.size); - String _elem1022; - for (int _i1023 = 0; _i1023 < _list1021.size; ++_i1023) + org.apache.thrift.protocol.TList _list1013 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1013.size); + String _elem1014; + for (int _i1015 = 0; _i1015 < _list1013.size; ++_i1015) { - _elem1022 = iprot.readString(); - struct.success.add(_elem1022); + _elem1014 = iprot.readString(); + struct.success.add(_elem1014); } } struct.setSuccessIsSet(true); @@ -96782,14 +96254,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_f case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1024 = iprot.readListBegin(); - struct.success = new ArrayList(_list1024.size); - Partition _elem1025; - for (int _i1026 = 0; _i1026 < _list1024.size; ++_i1026) + org.apache.thrift.protocol.TList _list1016 = iprot.readListBegin(); + struct.success = new ArrayList(_list1016.size); + Partition _elem1017; + for (int _i1018 = 0; _i1018 < _list1016.size; ++_i1018) { - _elem1025 = new Partition(); - _elem1025.read(iprot); - struct.success.add(_elem1025); + _elem1017 = new Partition(); + _elem1017.read(iprot); + struct.success.add(_elem1017); } iprot.readListEnd(); } @@ -96833,9 +96305,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter1027 : struct.success) + for (Partition _iter1019 : struct.success) { - _iter1027.write(oprot); + _iter1019.write(oprot); } oprot.writeListEnd(); } @@ -96882,9 +96354,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1028 : struct.success) + for (Partition _iter1020 : struct.success) { - _iter1028.write(oprot); + _iter1020.write(oprot); } } } @@ -96902,14 +96374,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_fi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1029 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1029.size); - Partition _elem1030; - for (int _i1031 = 0; _i1031 < _list1029.size; ++_i1031) + org.apache.thrift.protocol.TList _list1021 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1021.size); + Partition _elem1022; + for (int _i1023 = 0; _i1023 < _list1021.size; ++_i1023) { - _elem1030 = new Partition(); - _elem1030.read(iprot); - struct.success.add(_elem1030); + _elem1022 = new Partition(); + _elem1022.read(iprot); + struct.success.add(_elem1022); } } struct.setSuccessIsSet(true); @@ -98076,14 +97548,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_part_specs_by_f case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1032 = iprot.readListBegin(); - struct.success = new ArrayList(_list1032.size); - PartitionSpec _elem1033; - for (int _i1034 = 0; _i1034 < _list1032.size; ++_i1034) + org.apache.thrift.protocol.TList _list1024 = iprot.readListBegin(); + struct.success = new ArrayList(_list1024.size); + PartitionSpec _elem1025; + for (int _i1026 = 0; _i1026 < _list1024.size; ++_i1026) { - _elem1033 = new PartitionSpec(); - _elem1033.read(iprot); - struct.success.add(_elem1033); + _elem1025 = new PartitionSpec(); + _elem1025.read(iprot); + struct.success.add(_elem1025); } iprot.readListEnd(); } @@ -98127,9 +97599,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_part_specs_by_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (PartitionSpec _iter1035 : struct.success) + for (PartitionSpec _iter1027 : struct.success) { - _iter1035.write(oprot); + _iter1027.write(oprot); } oprot.writeListEnd(); } @@ -98176,9 +97648,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter1036 : struct.success) + for (PartitionSpec _iter1028 : struct.success) { - _iter1036.write(oprot); + _iter1028.write(oprot); } } } @@ -98196,14 +97668,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_fi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1037 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1037.size); - PartitionSpec _elem1038; - for (int _i1039 = 0; _i1039 < _list1037.size; ++_i1039) + org.apache.thrift.protocol.TList _list1029 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1029.size); + PartitionSpec _elem1030; + for (int _i1031 = 0; _i1031 < _list1029.size; ++_i1031) { - _elem1038 = new PartitionSpec(); - _elem1038.read(iprot); - struct.success.add(_elem1038); + _elem1030 = new PartitionSpec(); + _elem1030.read(iprot); + struct.success.add(_elem1030); } } struct.setSuccessIsSet(true); @@ -100787,13 +100259,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_n case 3: // NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1040 = iprot.readListBegin(); - struct.names = new ArrayList(_list1040.size); - String _elem1041; - for (int _i1042 = 0; _i1042 < _list1040.size; ++_i1042) + org.apache.thrift.protocol.TList _list1032 = iprot.readListBegin(); + struct.names = new ArrayList(_list1032.size); + String _elem1033; + for (int _i1034 = 0; _i1034 < _list1032.size; ++_i1034) { - _elem1041 = iprot.readString(); - struct.names.add(_elem1041); + _elem1033 = iprot.readString(); + struct.names.add(_elem1033); } iprot.readListEnd(); } @@ -100829,9 +100301,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ oprot.writeFieldBegin(NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.names.size())); - for (String _iter1043 : struct.names) + for (String _iter1035 : struct.names) { - oprot.writeString(_iter1043); + oprot.writeString(_iter1035); } oprot.writeListEnd(); } @@ -100874,9 +100346,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter1044 : struct.names) + for (String _iter1036 : struct.names) { - oprot.writeString(_iter1044); + oprot.writeString(_iter1036); } } } @@ -100896,13 +100368,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1045 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list1045.size); - String _elem1046; - for (int _i1047 = 0; _i1047 < _list1045.size; ++_i1047) + org.apache.thrift.protocol.TList _list1037 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list1037.size); + String _elem1038; + for (int _i1039 = 0; _i1039 < _list1037.size; ++_i1039) { - _elem1046 = iprot.readString(); - struct.names.add(_elem1046); + _elem1038 = iprot.readString(); + struct.names.add(_elem1038); } } struct.setNamesIsSet(true); @@ -101389,14 +100861,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_n case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1048 = iprot.readListBegin(); - struct.success = new ArrayList(_list1048.size); - Partition _elem1049; - for (int _i1050 = 0; _i1050 < _list1048.size; ++_i1050) + org.apache.thrift.protocol.TList _list1040 = iprot.readListBegin(); + struct.success = new ArrayList(_list1040.size); + Partition _elem1041; + for (int _i1042 = 0; _i1042 < _list1040.size; ++_i1042) { - _elem1049 = new Partition(); - _elem1049.read(iprot); - struct.success.add(_elem1049); + _elem1041 = new Partition(); + _elem1041.read(iprot); + struct.success.add(_elem1041); } iprot.readListEnd(); } @@ -101440,9 +100912,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter1051 : struct.success) + for (Partition _iter1043 : struct.success) { - _iter1051.write(oprot); + _iter1043.write(oprot); } oprot.writeListEnd(); } @@ -101489,9 +100961,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1052 : struct.success) + for (Partition _iter1044 : struct.success) { - _iter1052.write(oprot); + _iter1044.write(oprot); } } } @@ -101509,14 +100981,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1053 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1053.size); - Partition _elem1054; - for (int _i1055 = 0; _i1055 < _list1053.size; ++_i1055) + org.apache.thrift.protocol.TList _list1045 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1045.size); + Partition _elem1046; + for (int _i1047 = 0; _i1047 < _list1045.size; ++_i1047) { - _elem1054 = new Partition(); - _elem1054.read(iprot); - struct.success.add(_elem1054); + _elem1046 = new Partition(); + _elem1046.read(iprot); + struct.success.add(_elem1046); } } struct.setSuccessIsSet(true); @@ -103066,14 +102538,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_ar case 3: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1056 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1056.size); - Partition _elem1057; - for (int _i1058 = 0; _i1058 < _list1056.size; ++_i1058) + org.apache.thrift.protocol.TList _list1048 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1048.size); + Partition _elem1049; + for (int _i1050 = 0; _i1050 < _list1048.size; ++_i1050) { - _elem1057 = new Partition(); - _elem1057.read(iprot); - struct.new_parts.add(_elem1057); + _elem1049 = new Partition(); + _elem1049.read(iprot); + struct.new_parts.add(_elem1049); } iprot.readListEnd(); } @@ -103109,9 +102581,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_a oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (Partition _iter1059 : struct.new_parts) + for (Partition _iter1051 : struct.new_parts) { - _iter1059.write(oprot); + _iter1051.write(oprot); } oprot.writeListEnd(); } @@ -103154,9 +102626,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_ar if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (Partition _iter1060 : struct.new_parts) + for (Partition _iter1052 : struct.new_parts) { - _iter1060.write(oprot); + _iter1052.write(oprot); } } } @@ -103176,14 +102648,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1061 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1061.size); - Partition _elem1062; - for (int _i1063 = 0; _i1063 < _list1061.size; ++_i1063) + org.apache.thrift.protocol.TList _list1053 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1053.size); + Partition _elem1054; + for (int _i1055 = 0; _i1055 < _list1053.size; ++_i1055) { - _elem1062 = new Partition(); - _elem1062.read(iprot); - struct.new_parts.add(_elem1062); + _elem1054 = new Partition(); + _elem1054.read(iprot); + struct.new_parts.add(_elem1054); } } struct.setNew_partsIsSet(true); @@ -104236,14 +103708,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_wi case 3: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1064 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1064.size); - Partition _elem1065; - for (int _i1066 = 0; _i1066 < _list1064.size; ++_i1066) + org.apache.thrift.protocol.TList _list1056 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1056.size); + Partition _elem1057; + for (int _i1058 = 0; _i1058 < _list1056.size; ++_i1058) { - _elem1065 = new Partition(); - _elem1065.read(iprot); - struct.new_parts.add(_elem1065); + _elem1057 = new Partition(); + _elem1057.read(iprot); + struct.new_parts.add(_elem1057); } iprot.readListEnd(); } @@ -104288,9 +103760,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_w oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (Partition _iter1067 : struct.new_parts) + for (Partition _iter1059 : struct.new_parts) { - _iter1067.write(oprot); + _iter1059.write(oprot); } oprot.writeListEnd(); } @@ -104341,9 +103813,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wi if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (Partition _iter1068 : struct.new_parts) + for (Partition _iter1060 : struct.new_parts) { - _iter1068.write(oprot); + _iter1060.write(oprot); } } } @@ -104366,14 +103838,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1069 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1069.size); - Partition _elem1070; - for (int _i1071 = 0; _i1071 < _list1069.size; ++_i1071) + org.apache.thrift.protocol.TList _list1061 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1061.size); + Partition _elem1062; + for (int _i1063 = 0; _i1063 < _list1061.size; ++_i1063) { - _elem1070 = new Partition(); - _elem1070.read(iprot); - struct.new_parts.add(_elem1070); + _elem1062 = new Partition(); + _elem1062.read(iprot); + struct.new_parts.add(_elem1062); } } struct.setNew_partsIsSet(true); @@ -106574,13 +106046,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, rename_partition_ar case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1072 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1072.size); - String _elem1073; - for (int _i1074 = 0; _i1074 < _list1072.size; ++_i1074) + org.apache.thrift.protocol.TList _list1064 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1064.size); + String _elem1065; + for (int _i1066 = 0; _i1066 < _list1064.size; ++_i1066) { - _elem1073 = iprot.readString(); - struct.part_vals.add(_elem1073); + _elem1065 = iprot.readString(); + struct.part_vals.add(_elem1065); } iprot.readListEnd(); } @@ -106625,9 +106097,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, rename_partition_a oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1075 : struct.part_vals) + for (String _iter1067 : struct.part_vals) { - oprot.writeString(_iter1075); + oprot.writeString(_iter1067); } oprot.writeListEnd(); } @@ -106678,9 +106150,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, rename_partition_ar if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1076 : struct.part_vals) + for (String _iter1068 : struct.part_vals) { - oprot.writeString(_iter1076); + oprot.writeString(_iter1068); } } } @@ -106703,13 +106175,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1077 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1077.size); - String _elem1078; - for (int _i1079 = 0; _i1079 < _list1077.size; ++_i1079) + org.apache.thrift.protocol.TList _list1069 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1069.size); + String _elem1070; + for (int _i1071 = 0; _i1071 < _list1069.size; ++_i1071) { - _elem1078 = iprot.readString(); - struct.part_vals.add(_elem1078); + _elem1070 = iprot.readString(); + struct.part_vals.add(_elem1070); } } struct.setPart_valsIsSet(true); @@ -107583,13 +107055,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_has_ case 1: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1080 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1080.size); - String _elem1081; - for (int _i1082 = 0; _i1082 < _list1080.size; ++_i1082) + org.apache.thrift.protocol.TList _list1072 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1072.size); + String _elem1073; + for (int _i1074 = 0; _i1074 < _list1072.size; ++_i1074) { - _elem1081 = iprot.readString(); - struct.part_vals.add(_elem1081); + _elem1073 = iprot.readString(); + struct.part_vals.add(_elem1073); } iprot.readListEnd(); } @@ -107623,9 +107095,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_has oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter1083 : struct.part_vals) + for (String _iter1075 : struct.part_vals) { - oprot.writeString(_iter1083); + oprot.writeString(_iter1075); } oprot.writeListEnd(); } @@ -107662,9 +107134,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_has_ if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter1084 : struct.part_vals) + for (String _iter1076 : struct.part_vals) { - oprot.writeString(_iter1084); + oprot.writeString(_iter1076); } } } @@ -107679,13 +107151,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_has_v BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1085 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1085.size); - String _elem1086; - for (int _i1087 = 0; _i1087 < _list1085.size; ++_i1087) + org.apache.thrift.protocol.TList _list1077 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1077.size); + String _elem1078; + for (int _i1079 = 0; _i1079 < _list1077.size; ++_i1079) { - _elem1086 = iprot.readString(); - struct.part_vals.add(_elem1086); + _elem1078 = iprot.readString(); + struct.part_vals.add(_elem1078); } } struct.setPart_valsIsSet(true); @@ -109840,13 +109312,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_v case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1088 = iprot.readListBegin(); - struct.success = new ArrayList(_list1088.size); - String _elem1089; - for (int _i1090 = 0; _i1090 < _list1088.size; ++_i1090) + org.apache.thrift.protocol.TList _list1080 = iprot.readListBegin(); + struct.success = new ArrayList(_list1080.size); + String _elem1081; + for (int _i1082 = 0; _i1082 < _list1080.size; ++_i1082) { - _elem1089 = iprot.readString(); - struct.success.add(_elem1089); + _elem1081 = iprot.readString(); + struct.success.add(_elem1081); } iprot.readListEnd(); } @@ -109881,9 +109353,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_to_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1091 : struct.success) + for (String _iter1083 : struct.success) { - oprot.writeString(_iter1091); + oprot.writeString(_iter1083); } oprot.writeListEnd(); } @@ -109922,9 +109394,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1092 : struct.success) + for (String _iter1084 : struct.success) { - oprot.writeString(_iter1092); + oprot.writeString(_iter1084); } } } @@ -109939,13 +109411,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_va BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1093 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1093.size); - String _elem1094; - for (int _i1095 = 0; _i1095 < _list1093.size; ++_i1095) + org.apache.thrift.protocol.TList _list1085 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1085.size); + String _elem1086; + for (int _i1087 = 0; _i1087 < _list1085.size; ++_i1087) { - _elem1094 = iprot.readString(); - struct.success.add(_elem1094); + _elem1086 = iprot.readString(); + struct.success.add(_elem1086); } } struct.setSuccessIsSet(true); @@ -110708,15 +110180,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map1096 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map1096.size); - String _key1097; - String _val1098; - for (int _i1099 = 0; _i1099 < _map1096.size; ++_i1099) + org.apache.thrift.protocol.TMap _map1088 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1088.size); + String _key1089; + String _val1090; + for (int _i1091 = 0; _i1091 < _map1088.size; ++_i1091) { - _key1097 = iprot.readString(); - _val1098 = iprot.readString(); - struct.success.put(_key1097, _val1098); + _key1089 = iprot.readString(); + _val1090 = iprot.readString(); + struct.success.put(_key1089, _val1090); } iprot.readMapEnd(); } @@ -110751,10 +110223,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_to_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry _iter1100 : struct.success.entrySet()) + for (Map.Entry _iter1092 : struct.success.entrySet()) { - oprot.writeString(_iter1100.getKey()); - oprot.writeString(_iter1100.getValue()); + oprot.writeString(_iter1092.getKey()); + oprot.writeString(_iter1092.getValue()); } oprot.writeMapEnd(); } @@ -110793,10 +110265,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter1101 : struct.success.entrySet()) + for (Map.Entry _iter1093 : struct.success.entrySet()) { - oprot.writeString(_iter1101.getKey()); - oprot.writeString(_iter1101.getValue()); + oprot.writeString(_iter1093.getKey()); + oprot.writeString(_iter1093.getValue()); } } } @@ -110811,15 +110283,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_sp BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map1102 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap(2*_map1102.size); - String _key1103; - String _val1104; - for (int _i1105 = 0; _i1105 < _map1102.size; ++_i1105) + org.apache.thrift.protocol.TMap _map1094 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap(2*_map1094.size); + String _key1095; + String _val1096; + for (int _i1097 = 0; _i1097 < _map1094.size; ++_i1097) { - _key1103 = iprot.readString(); - _val1104 = iprot.readString(); - struct.success.put(_key1103, _val1104); + _key1095 = iprot.readString(); + _val1096 = iprot.readString(); + struct.success.put(_key1095, _val1096); } } struct.setSuccessIsSet(true); @@ -111414,15 +110886,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, markPartitionForEve case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map1106 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1106.size); - String _key1107; - String _val1108; - for (int _i1109 = 0; _i1109 < _map1106.size; ++_i1109) + org.apache.thrift.protocol.TMap _map1098 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1098.size); + String _key1099; + String _val1100; + for (int _i1101 = 0; _i1101 < _map1098.size; ++_i1101) { - _key1107 = iprot.readString(); - _val1108 = iprot.readString(); - struct.part_vals.put(_key1107, _val1108); + _key1099 = iprot.readString(); + _val1100 = iprot.readString(); + struct.part_vals.put(_key1099, _val1100); } iprot.readMapEnd(); } @@ -111466,10 +110938,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, markPartitionForEv oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (Map.Entry _iter1110 : struct.part_vals.entrySet()) + for (Map.Entry _iter1102 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1110.getKey()); - oprot.writeString(_iter1110.getValue()); + oprot.writeString(_iter1102.getKey()); + oprot.writeString(_iter1102.getValue()); } oprot.writeMapEnd(); } @@ -111520,10 +110992,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1111 : struct.part_vals.entrySet()) + for (Map.Entry _iter1103 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1111.getKey()); - oprot.writeString(_iter1111.getValue()); + oprot.writeString(_iter1103.getKey()); + oprot.writeString(_iter1103.getValue()); } } } @@ -111546,15 +111018,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1112 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new HashMap(2*_map1112.size); - String _key1113; - String _val1114; - for (int _i1115 = 0; _i1115 < _map1112.size; ++_i1115) + org.apache.thrift.protocol.TMap _map1104 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new HashMap(2*_map1104.size); + String _key1105; + String _val1106; + for (int _i1107 = 0; _i1107 < _map1104.size; ++_i1107) { - _key1113 = iprot.readString(); - _val1114 = iprot.readString(); - struct.part_vals.put(_key1113, _val1114); + _key1105 = iprot.readString(); + _val1106 = iprot.readString(); + struct.part_vals.put(_key1105, _val1106); } } struct.setPart_valsIsSet(true); @@ -113038,15 +112510,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isPartitionMarkedFo case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map1116 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1116.size); - String _key1117; - String _val1118; - for (int _i1119 = 0; _i1119 < _map1116.size; ++_i1119) + org.apache.thrift.protocol.TMap _map1108 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1108.size); + String _key1109; + String _val1110; + for (int _i1111 = 0; _i1111 < _map1108.size; ++_i1111) { - _key1117 = iprot.readString(); - _val1118 = iprot.readString(); - struct.part_vals.put(_key1117, _val1118); + _key1109 = iprot.readString(); + _val1110 = iprot.readString(); + struct.part_vals.put(_key1109, _val1110); } iprot.readMapEnd(); } @@ -113090,10 +112562,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, isPartitionMarkedF oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (Map.Entry _iter1120 : struct.part_vals.entrySet()) + for (Map.Entry _iter1112 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1120.getKey()); - oprot.writeString(_iter1120.getValue()); + oprot.writeString(_iter1112.getKey()); + oprot.writeString(_iter1112.getValue()); } oprot.writeMapEnd(); } @@ -113144,10 +112616,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1121 : struct.part_vals.entrySet()) + for (Map.Entry _iter1113 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1121.getKey()); - oprot.writeString(_iter1121.getValue()); + oprot.writeString(_iter1113.getKey()); + oprot.writeString(_iter1113.getValue()); } } } @@ -113170,15 +112642,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1122 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new HashMap(2*_map1122.size); - String _key1123; - String _val1124; - for (int _i1125 = 0; _i1125 < _map1122.size; ++_i1125) + org.apache.thrift.protocol.TMap _map1114 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new HashMap(2*_map1114.size); + String _key1115; + String _val1116; + for (int _i1117 = 0; _i1117 < _map1114.size; ++_i1117) { - _key1123 = iprot.readString(); - _val1124 = iprot.readString(); - struct.part_vals.put(_key1123, _val1124); + _key1115 = iprot.readString(); + _val1116 = iprot.readString(); + struct.part_vals.put(_key1115, _val1116); } } struct.setPart_valsIsSet(true); @@ -119902,14 +119374,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_result case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1126 = iprot.readListBegin(); - struct.success = new ArrayList(_list1126.size); - Index _elem1127; - for (int _i1128 = 0; _i1128 < _list1126.size; ++_i1128) + org.apache.thrift.protocol.TList _list1118 = iprot.readListBegin(); + struct.success = new ArrayList(_list1118.size); + Index _elem1119; + for (int _i1120 = 0; _i1120 < _list1118.size; ++_i1120) { - _elem1127 = new Index(); - _elem1127.read(iprot); - struct.success.add(_elem1127); + _elem1119 = new Index(); + _elem1119.read(iprot); + struct.success.add(_elem1119); } iprot.readListEnd(); } @@ -119953,9 +119425,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_indexes_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Index _iter1129 : struct.success) + for (Index _iter1121 : struct.success) { - _iter1129.write(oprot); + _iter1121.write(oprot); } oprot.writeListEnd(); } @@ -120002,9 +119474,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_result if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Index _iter1130 : struct.success) + for (Index _iter1122 : struct.success) { - _iter1130.write(oprot); + _iter1122.write(oprot); } } } @@ -120022,14 +119494,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_result s BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1131 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1131.size); - Index _elem1132; - for (int _i1133 = 0; _i1133 < _list1131.size; ++_i1133) + org.apache.thrift.protocol.TList _list1123 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1123.size); + Index _elem1124; + for (int _i1125 = 0; _i1125 < _list1123.size; ++_i1125) { - _elem1132 = new Index(); - _elem1132.read(iprot); - struct.success.add(_elem1132); + _elem1124 = new Index(); + _elem1124.read(iprot); + struct.success.add(_elem1124); } } struct.setSuccessIsSet(true); @@ -121008,13 +120480,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_res case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1134 = iprot.readListBegin(); - struct.success = new ArrayList(_list1134.size); - String _elem1135; - for (int _i1136 = 0; _i1136 < _list1134.size; ++_i1136) + org.apache.thrift.protocol.TList _list1126 = iprot.readListBegin(); + struct.success = new ArrayList(_list1126.size); + String _elem1127; + for (int _i1128 = 0; _i1128 < _list1126.size; ++_i1128) { - _elem1135 = iprot.readString(); - struct.success.add(_elem1135); + _elem1127 = iprot.readString(); + struct.success.add(_elem1127); } iprot.readListEnd(); } @@ -121049,9 +120521,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_names_re oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1137 : struct.success) + for (String _iter1129 : struct.success) { - oprot.writeString(_iter1137); + oprot.writeString(_iter1129); } oprot.writeListEnd(); } @@ -121090,9 +120562,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1138 : struct.success) + for (String _iter1130 : struct.success) { - oprot.writeString(_iter1138); + oprot.writeString(_iter1130); } } } @@ -121107,13 +120579,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_index_names_resu BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1139 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1139.size); - String _elem1140; - for (int _i1141 = 0; _i1141 < _list1139.size; ++_i1141) + org.apache.thrift.protocol.TList _list1131 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1131.size); + String _elem1132; + for (int _i1133 = 0; _i1133 < _list1131.size; ++_i1133) { - _elem1140 = iprot.readString(); - struct.success.add(_elem1140); + _elem1132 = iprot.readString(); + struct.success.add(_elem1132); } } struct.setSuccessIsSet(true); @@ -138724,13 +138196,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_functions_resul case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1142 = iprot.readListBegin(); - struct.success = new ArrayList(_list1142.size); - String _elem1143; - for (int _i1144 = 0; _i1144 < _list1142.size; ++_i1144) + org.apache.thrift.protocol.TList _list1134 = iprot.readListBegin(); + struct.success = new ArrayList(_list1134.size); + String _elem1135; + for (int _i1136 = 0; _i1136 < _list1134.size; ++_i1136) { - _elem1143 = iprot.readString(); - struct.success.add(_elem1143); + _elem1135 = iprot.readString(); + struct.success.add(_elem1135); } iprot.readListEnd(); } @@ -138765,9 +138237,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_functions_resu oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1145 : struct.success) + for (String _iter1137 : struct.success) { - oprot.writeString(_iter1145); + oprot.writeString(_iter1137); } oprot.writeListEnd(); } @@ -138806,9 +138278,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1146 : struct.success) + for (String _iter1138 : struct.success) { - oprot.writeString(_iter1146); + oprot.writeString(_iter1138); } } } @@ -138823,13 +138295,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_functions_result BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1147 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1147.size); - String _elem1148; - for (int _i1149 = 0; _i1149 < _list1147.size; ++_i1149) + org.apache.thrift.protocol.TList _list1139 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1139.size); + String _elem1140; + for (int _i1141 = 0; _i1141 < _list1139.size; ++_i1141) { - _elem1148 = iprot.readString(); - struct.success.add(_elem1148); + _elem1140 = iprot.readString(); + struct.success.add(_elem1140); } } struct.setSuccessIsSet(true); @@ -142884,13 +142356,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_role_names_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1150 = iprot.readListBegin(); - struct.success = new ArrayList(_list1150.size); - String _elem1151; - for (int _i1152 = 0; _i1152 < _list1150.size; ++_i1152) + org.apache.thrift.protocol.TList _list1142 = iprot.readListBegin(); + struct.success = new ArrayList(_list1142.size); + String _elem1143; + for (int _i1144 = 0; _i1144 < _list1142.size; ++_i1144) { - _elem1151 = iprot.readString(); - struct.success.add(_elem1151); + _elem1143 = iprot.readString(); + struct.success.add(_elem1143); } iprot.readListEnd(); } @@ -142925,9 +142397,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_role_names_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1153 : struct.success) + for (String _iter1145 : struct.success) { - oprot.writeString(_iter1153); + oprot.writeString(_iter1145); } oprot.writeListEnd(); } @@ -142966,9 +142438,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1154 : struct.success) + for (String _iter1146 : struct.success) { - oprot.writeString(_iter1154); + oprot.writeString(_iter1146); } } } @@ -142983,13 +142455,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_role_names_resul BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1155 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1155.size); - String _elem1156; - for (int _i1157 = 0; _i1157 < _list1155.size; ++_i1157) + org.apache.thrift.protocol.TList _list1147 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1147.size); + String _elem1148; + for (int _i1149 = 0; _i1149 < _list1147.size; ++_i1149) { - _elem1156 = iprot.readString(); - struct.success.add(_elem1156); + _elem1148 = iprot.readString(); + struct.success.add(_elem1148); } } struct.setSuccessIsSet(true); @@ -146280,14 +145752,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_roles_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1158 = iprot.readListBegin(); - struct.success = new ArrayList(_list1158.size); - Role _elem1159; - for (int _i1160 = 0; _i1160 < _list1158.size; ++_i1160) + org.apache.thrift.protocol.TList _list1150 = iprot.readListBegin(); + struct.success = new ArrayList(_list1150.size); + Role _elem1151; + for (int _i1152 = 0; _i1152 < _list1150.size; ++_i1152) { - _elem1159 = new Role(); - _elem1159.read(iprot); - struct.success.add(_elem1159); + _elem1151 = new Role(); + _elem1151.read(iprot); + struct.success.add(_elem1151); } iprot.readListEnd(); } @@ -146322,9 +145794,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, list_roles_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Role _iter1161 : struct.success) + for (Role _iter1153 : struct.success) { - _iter1161.write(oprot); + _iter1153.write(oprot); } oprot.writeListEnd(); } @@ -146363,9 +145835,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Role _iter1162 : struct.success) + for (Role _iter1154 : struct.success) { - _iter1162.write(oprot); + _iter1154.write(oprot); } } } @@ -146380,14 +145852,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_roles_result st BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1163 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1163.size); - Role _elem1164; - for (int _i1165 = 0; _i1165 < _list1163.size; ++_i1165) + org.apache.thrift.protocol.TList _list1155 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1155.size); + Role _elem1156; + for (int _i1157 = 0; _i1157 < _list1155.size; ++_i1157) { - _elem1164 = new Role(); - _elem1164.read(iprot); - struct.success.add(_elem1164); + _elem1156 = new Role(); + _elem1156.read(iprot); + struct.success.add(_elem1156); } } struct.setSuccessIsSet(true); @@ -149392,13 +148864,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_privilege_set_a case 3: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1166 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1166.size); - String _elem1167; - for (int _i1168 = 0; _i1168 < _list1166.size; ++_i1168) + org.apache.thrift.protocol.TList _list1158 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1158.size); + String _elem1159; + for (int _i1160 = 0; _i1160 < _list1158.size; ++_i1160) { - _elem1167 = iprot.readString(); - struct.group_names.add(_elem1167); + _elem1159 = iprot.readString(); + struct.group_names.add(_elem1159); } iprot.readListEnd(); } @@ -149434,9 +148906,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_privilege_set_ oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter1169 : struct.group_names) + for (String _iter1161 : struct.group_names) { - oprot.writeString(_iter1169); + oprot.writeString(_iter1161); } oprot.writeListEnd(); } @@ -149479,9 +148951,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_a if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter1170 : struct.group_names) + for (String _iter1162 : struct.group_names) { - oprot.writeString(_iter1170); + oprot.writeString(_iter1162); } } } @@ -149502,13 +148974,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1171 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1171.size); - String _elem1172; - for (int _i1173 = 0; _i1173 < _list1171.size; ++_i1173) + org.apache.thrift.protocol.TList _list1163 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1163.size); + String _elem1164; + for (int _i1165 = 0; _i1165 < _list1163.size; ++_i1165) { - _elem1172 = iprot.readString(); - struct.group_names.add(_elem1172); + _elem1164 = iprot.readString(); + struct.group_names.add(_elem1164); } } struct.setGroup_namesIsSet(true); @@ -150966,14 +150438,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_privileges_res case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1174 = iprot.readListBegin(); - struct.success = new ArrayList(_list1174.size); - HiveObjectPrivilege _elem1175; - for (int _i1176 = 0; _i1176 < _list1174.size; ++_i1176) + org.apache.thrift.protocol.TList _list1166 = iprot.readListBegin(); + struct.success = new ArrayList(_list1166.size); + HiveObjectPrivilege _elem1167; + for (int _i1168 = 0; _i1168 < _list1166.size; ++_i1168) { - _elem1175 = new HiveObjectPrivilege(); - _elem1175.read(iprot); - struct.success.add(_elem1175); + _elem1167 = new HiveObjectPrivilege(); + _elem1167.read(iprot); + struct.success.add(_elem1167); } iprot.readListEnd(); } @@ -151008,9 +150480,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, list_privileges_re oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (HiveObjectPrivilege _iter1177 : struct.success) + for (HiveObjectPrivilege _iter1169 : struct.success) { - _iter1177.write(oprot); + _iter1169.write(oprot); } oprot.writeListEnd(); } @@ -151049,9 +150521,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter1178 : struct.success) + for (HiveObjectPrivilege _iter1170 : struct.success) { - _iter1178.write(oprot); + _iter1170.write(oprot); } } } @@ -151066,14 +150538,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_privileges_resu BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1179 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1179.size); - HiveObjectPrivilege _elem1180; - for (int _i1181 = 0; _i1181 < _list1179.size; ++_i1181) + org.apache.thrift.protocol.TList _list1171 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1171.size); + HiveObjectPrivilege _elem1172; + for (int _i1173 = 0; _i1173 < _list1171.size; ++_i1173) { - _elem1180 = new HiveObjectPrivilege(); - _elem1180.read(iprot); - struct.success.add(_elem1180); + _elem1172 = new HiveObjectPrivilege(); + _elem1172.read(iprot); + struct.success.add(_elem1172); } } struct.setSuccessIsSet(true); @@ -153975,13 +153447,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, set_ugi_args struct case 2: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1182 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1182.size); - String _elem1183; - for (int _i1184 = 0; _i1184 < _list1182.size; ++_i1184) + org.apache.thrift.protocol.TList _list1174 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1174.size); + String _elem1175; + for (int _i1176 = 0; _i1176 < _list1174.size; ++_i1176) { - _elem1183 = iprot.readString(); - struct.group_names.add(_elem1183); + _elem1175 = iprot.readString(); + struct.group_names.add(_elem1175); } iprot.readListEnd(); } @@ -154012,9 +153484,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, set_ugi_args struc oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter1185 : struct.group_names) + for (String _iter1177 : struct.group_names) { - oprot.writeString(_iter1185); + oprot.writeString(_iter1177); } oprot.writeListEnd(); } @@ -154051,9 +153523,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter1186 : struct.group_names) + for (String _iter1178 : struct.group_names) { - oprot.writeString(_iter1186); + oprot.writeString(_iter1178); } } } @@ -154069,13 +153541,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1187 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1187.size); - String _elem1188; - for (int _i1189 = 0; _i1189 < _list1187.size; ++_i1189) + org.apache.thrift.protocol.TList _list1179 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1179.size); + String _elem1180; + for (int _i1181 = 0; _i1181 < _list1179.size; ++_i1181) { - _elem1188 = iprot.readString(); - struct.group_names.add(_elem1188); + _elem1180 = iprot.readString(); + struct.group_names.add(_elem1180); } } struct.setGroup_namesIsSet(true); @@ -154478,13 +153950,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, set_ugi_result stru case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1190 = iprot.readListBegin(); - struct.success = new ArrayList(_list1190.size); - String _elem1191; - for (int _i1192 = 0; _i1192 < _list1190.size; ++_i1192) + org.apache.thrift.protocol.TList _list1182 = iprot.readListBegin(); + struct.success = new ArrayList(_list1182.size); + String _elem1183; + for (int _i1184 = 0; _i1184 < _list1182.size; ++_i1184) { - _elem1191 = iprot.readString(); - struct.success.add(_elem1191); + _elem1183 = iprot.readString(); + struct.success.add(_elem1183); } iprot.readListEnd(); } @@ -154519,9 +153991,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, set_ugi_result str oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1193 : struct.success) + for (String _iter1185 : struct.success) { - oprot.writeString(_iter1193); + oprot.writeString(_iter1185); } oprot.writeListEnd(); } @@ -154560,9 +154032,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1194 : struct.success) + for (String _iter1186 : struct.success) { - oprot.writeString(_iter1194); + oprot.writeString(_iter1186); } } } @@ -154577,13 +154049,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_result struc BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1195 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1195.size); - String _elem1196; - for (int _i1197 = 0; _i1197 < _list1195.size; ++_i1197) + org.apache.thrift.protocol.TList _list1187 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1187.size); + String _elem1188; + for (int _i1189 = 0; _i1189 < _list1187.size; ++_i1189) { - _elem1196 = iprot.readString(); - struct.success.add(_elem1196); + _elem1188 = iprot.readString(); + struct.success.add(_elem1188); } } struct.setSuccessIsSet(true); @@ -159874,13 +159346,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_token_ident case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1198 = iprot.readListBegin(); - struct.success = new ArrayList(_list1198.size); - String _elem1199; - for (int _i1200 = 0; _i1200 < _list1198.size; ++_i1200) + org.apache.thrift.protocol.TList _list1190 = iprot.readListBegin(); + struct.success = new ArrayList(_list1190.size); + String _elem1191; + for (int _i1192 = 0; _i1192 < _list1190.size; ++_i1192) { - _elem1199 = iprot.readString(); - struct.success.add(_elem1199); + _elem1191 = iprot.readString(); + struct.success.add(_elem1191); } iprot.readListEnd(); } @@ -159906,9 +159378,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_token_iden oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1201 : struct.success) + for (String _iter1193 : struct.success) { - oprot.writeString(_iter1201); + oprot.writeString(_iter1193); } oprot.writeListEnd(); } @@ -159939,9 +159411,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_token_ident if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1202 : struct.success) + for (String _iter1194 : struct.success) { - oprot.writeString(_iter1202); + oprot.writeString(_iter1194); } } } @@ -159953,13 +159425,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_token_identi BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1203 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1203.size); - String _elem1204; - for (int _i1205 = 0; _i1205 < _list1203.size; ++_i1205) + org.apache.thrift.protocol.TList _list1195 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1195.size); + String _elem1196; + for (int _i1197 = 0; _i1197 < _list1195.size; ++_i1197) { - _elem1204 = iprot.readString(); - struct.success.add(_elem1204); + _elem1196 = iprot.readString(); + struct.success.add(_elem1196); } } struct.setSuccessIsSet(true); @@ -162989,13 +162461,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_master_keys_res case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1206 = iprot.readListBegin(); - struct.success = new ArrayList(_list1206.size); - String _elem1207; - for (int _i1208 = 0; _i1208 < _list1206.size; ++_i1208) + org.apache.thrift.protocol.TList _list1198 = iprot.readListBegin(); + struct.success = new ArrayList(_list1198.size); + String _elem1199; + for (int _i1200 = 0; _i1200 < _list1198.size; ++_i1200) { - _elem1207 = iprot.readString(); - struct.success.add(_elem1207); + _elem1199 = iprot.readString(); + struct.success.add(_elem1199); } iprot.readListEnd(); } @@ -163021,9 +162493,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_master_keys_re oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1209 : struct.success) + for (String _iter1201 : struct.success) { - oprot.writeString(_iter1209); + oprot.writeString(_iter1201); } oprot.writeListEnd(); } @@ -163054,9 +162526,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_master_keys_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1210 : struct.success) + for (String _iter1202 : struct.success) { - oprot.writeString(_iter1210); + oprot.writeString(_iter1202); } } } @@ -163068,13 +162540,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_master_keys_resu BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1211 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1211.size); - String _elem1212; - for (int _i1213 = 0; _i1213 < _list1211.size; ++_i1213) + org.apache.thrift.protocol.TList _list1203 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1203.size); + String _elem1204; + for (int _i1205 = 0; _i1205 < _list1203.size; ++_i1205) { - _elem1212 = iprot.readString(); - struct.success.add(_elem1212); + _elem1204 = iprot.readString(); + struct.success.add(_elem1204); } } struct.setSuccessIsSet(true); @@ -172377,2882 +171849,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("heartbeat_txn_range_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 heartbeat_txn_range_resultStandardSchemeFactory implements SchemeFactory { - public heartbeat_txn_range_resultStandardScheme getScheme() { - return new heartbeat_txn_range_resultStandardScheme(); - } - } - - private static class heartbeat_txn_range_resultStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_txn_range_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 HeartbeatTxnRangeResponse(); - 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, heartbeat_txn_range_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 heartbeat_txn_range_resultTupleSchemeFactory implements SchemeFactory { - public heartbeat_txn_range_resultTupleScheme getScheme() { - return new heartbeat_txn_range_resultTupleScheme(); - } - } - - private static class heartbeat_txn_range_resultTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, heartbeat_txn_range_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, heartbeat_txn_range_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.success = new HeartbeatTxnRangeResponse(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - } - } - - } - - public static class compact_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("compact_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 compact_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new compact_argsTupleSchemeFactory()); - } - - private CompactionRequest 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, CompactionRequest.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(compact_args.class, metaDataMap); - } - - public compact_args() { - } - - public compact_args( - CompactionRequest rqst) - { - this(); - this.rqst = rqst; - } - - /** - * Performs a deep copy on other. - */ - public compact_args(compact_args other) { - if (other.isSetRqst()) { - this.rqst = new CompactionRequest(other.rqst); - } - } - - public compact_args deepCopy() { - return new compact_args(this); - } - - @Override - public void clear() { - this.rqst = null; - } - - public CompactionRequest getRqst() { - return this.rqst; - } - - public void setRqst(CompactionRequest 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((CompactionRequest)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 compact_args) - return this.equals((compact_args)that); - return false; - } - - public boolean equals(compact_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(compact_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("compact_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 compact_argsStandardSchemeFactory implements SchemeFactory { - public compact_argsStandardScheme getScheme() { - return new compact_argsStandardScheme(); - } - } - - private static class compact_argsStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, compact_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 CompactionRequest(); - 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, compact_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 compact_argsTupleSchemeFactory implements SchemeFactory { - public compact_argsTupleScheme getScheme() { - return new compact_argsTupleScheme(); - } - } - - private static class compact_argsTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, compact_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, compact_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.rqst = new CompactionRequest(); - struct.rqst.read(iprot); - struct.setRqstIsSet(true); - } - } - } - - } - - public static class compact_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("compact_result"); - - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new compact_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new compact_resultTupleSchemeFactory()); - } - - - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { -; - - private static final Map byName = new HashMap(); - - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } - } - - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - default: - return null; - } - } - - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } - - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(compact_result.class, metaDataMap); - } - - public compact_result() { - } - - /** - * Performs a deep copy on other. - */ - public compact_result(compact_result other) { - } - - public compact_result deepCopy() { - return new compact_result(this); - } - - @Override - public void clear() { - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - } - throw new IllegalStateException(); - } - - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); - } - - switch (field) { - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof compact_result) - return this.equals((compact_result)that); - return false; - } - - public boolean equals(compact_result that) { - if (that == null) - return false; - - return true; - } - - @Override - public int hashCode() { - List list = new ArrayList(); - - return list.hashCode(); - } - - @Override - public int compareTo(compact_result other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - return 0; - } - - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); - } - - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("compact_result("); - boolean first = true; - - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - // check for sub-struct validity - } - - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { - try { - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { - try { - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private static class compact_resultStandardSchemeFactory implements SchemeFactory { - public compact_resultStandardScheme getScheme() { - return new compact_resultStandardScheme(); - } - } - - private static class compact_resultStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, compact_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, compact_result struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class compact_resultTupleSchemeFactory implements SchemeFactory { - public compact_resultTupleScheme getScheme() { - return new compact_resultTupleScheme(); - } - } - - private static class compact_resultTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, compact_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, compact_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - } - } - - } - - public static class compact2_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("compact2_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 compact2_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new compact2_argsTupleSchemeFactory()); - } - - private CompactionRequest 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, CompactionRequest.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(compact2_args.class, metaDataMap); - } - - public compact2_args() { - } - - public compact2_args( - CompactionRequest rqst) - { - this(); - this.rqst = rqst; - } - - /** - * Performs a deep copy on other. - */ - public compact2_args(compact2_args other) { - if (other.isSetRqst()) { - this.rqst = new CompactionRequest(other.rqst); - } - } - - public compact2_args deepCopy() { - return new compact2_args(this); - } - - @Override - public void clear() { - this.rqst = null; - } - - public CompactionRequest getRqst() { - return this.rqst; - } - - public void setRqst(CompactionRequest 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((CompactionRequest)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 compact2_args) - return this.equals((compact2_args)that); - return false; - } - - public boolean equals(compact2_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(compact2_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("compact2_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 compact2_argsStandardSchemeFactory implements SchemeFactory { - public compact2_argsStandardScheme getScheme() { - return new compact2_argsStandardScheme(); - } - } - - private static class compact2_argsStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, compact2_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 CompactionRequest(); - 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, compact2_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 compact2_argsTupleSchemeFactory implements SchemeFactory { - public compact2_argsTupleScheme getScheme() { - return new compact2_argsTupleScheme(); - } - } - - private static class compact2_argsTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, compact2_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, compact2_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.rqst = new CompactionRequest(); - struct.rqst.read(iprot); - struct.setRqstIsSet(true); - } - } - } - - } - - public static class compact2_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("compact2_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 compact2_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new compact2_resultTupleSchemeFactory()); - } - - private CompactionResponse 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, CompactionResponse.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(compact2_result.class, metaDataMap); - } - - public compact2_result() { - } - - public compact2_result( - CompactionResponse success) - { - this(); - this.success = success; - } - - /** - * Performs a deep copy on other. - */ - public compact2_result(compact2_result other) { - if (other.isSetSuccess()) { - this.success = new CompactionResponse(other.success); - } - } - - public compact2_result deepCopy() { - return new compact2_result(this); - } - - @Override - public void clear() { - this.success = null; - } - - public CompactionResponse getSuccess() { - return this.success; - } - - public void setSuccess(CompactionResponse 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((CompactionResponse)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 compact2_result) - return this.equals((compact2_result)that); - return false; - } - - public boolean equals(compact2_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(compact2_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("compact2_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 compact2_resultStandardSchemeFactory implements SchemeFactory { - public compact2_resultStandardScheme getScheme() { - return new compact2_resultStandardScheme(); - } - } - - private static class compact2_resultStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, compact2_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 CompactionResponse(); - 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, compact2_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 compact2_resultTupleSchemeFactory implements SchemeFactory { - public compact2_resultTupleScheme getScheme() { - return new compact2_resultTupleScheme(); - } - } - - private static class compact2_resultTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, compact2_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, compact2_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.success = new CompactionResponse(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - } - } - - } - - public static class show_compact_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("show_compact_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 show_compact_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new show_compact_argsTupleSchemeFactory()); - } - - private ShowCompactRequest 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, ShowCompactRequest.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(show_compact_args.class, metaDataMap); - } - - public show_compact_args() { - } - - public show_compact_args( - ShowCompactRequest rqst) - { - this(); - this.rqst = rqst; - } - - /** - * Performs a deep copy on other. - */ - public show_compact_args(show_compact_args other) { - if (other.isSetRqst()) { - this.rqst = new ShowCompactRequest(other.rqst); - } - } - - public show_compact_args deepCopy() { - return new show_compact_args(this); - } - - @Override - public void clear() { - this.rqst = null; - } - - public ShowCompactRequest getRqst() { - return this.rqst; - } - - public void setRqst(ShowCompactRequest 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((ShowCompactRequest)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 show_compact_args) - return this.equals((show_compact_args)that); - return false; - } - - public boolean equals(show_compact_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(show_compact_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("show_compact_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 show_compact_argsStandardSchemeFactory implements SchemeFactory { - public show_compact_argsStandardScheme getScheme() { - return new show_compact_argsStandardScheme(); - } - } - - private static class show_compact_argsStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, show_compact_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 ShowCompactRequest(); - 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, show_compact_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 show_compact_argsTupleSchemeFactory implements SchemeFactory { - public show_compact_argsTupleScheme getScheme() { - return new show_compact_argsTupleScheme(); - } - } - - private static class show_compact_argsTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, show_compact_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, show_compact_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.rqst = new ShowCompactRequest(); - struct.rqst.read(iprot); - struct.setRqstIsSet(true); - } - } - } - - } - - public static class show_compact_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("show_compact_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 show_compact_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new show_compact_resultTupleSchemeFactory()); - } - - private ShowCompactResponse 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, ShowCompactResponse.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(show_compact_result.class, metaDataMap); - } - - public show_compact_result() { - } - - public show_compact_result( - ShowCompactResponse success) - { - this(); - this.success = success; - } - - /** - * Performs a deep copy on other. - */ - public show_compact_result(show_compact_result other) { - if (other.isSetSuccess()) { - this.success = new ShowCompactResponse(other.success); - } - } - - public show_compact_result deepCopy() { - return new show_compact_result(this); - } - - @Override - public void clear() { - this.success = null; - } - - public ShowCompactResponse getSuccess() { - return this.success; - } - - public void setSuccess(ShowCompactResponse 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((ShowCompactResponse)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 show_compact_result) - return this.equals((show_compact_result)that); - return false; - } - - public boolean equals(show_compact_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(show_compact_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("show_compact_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 show_compact_resultStandardSchemeFactory implements SchemeFactory { - public show_compact_resultStandardScheme getScheme() { - return new show_compact_resultStandardScheme(); - } - } - - private static class show_compact_resultStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, show_compact_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 ShowCompactResponse(); - 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, show_compact_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 show_compact_resultTupleSchemeFactory implements SchemeFactory { - public show_compact_resultTupleScheme getScheme() { - return new show_compact_resultTupleScheme(); - } - } - - private static class show_compact_resultTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, show_compact_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, show_compact_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.success = new ShowCompactResponse(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - } - } - - } - - public static class add_dynamic_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_dynamic_partitions_args"); - - private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new add_dynamic_partitions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_dynamic_partitions_argsTupleSchemeFactory()); - } - - private AddDynamicPartitions 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, AddDynamicPartitions.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_dynamic_partitions_args.class, metaDataMap); - } - - public add_dynamic_partitions_args() { - } - - public add_dynamic_partitions_args( - AddDynamicPartitions rqst) - { - this(); - this.rqst = rqst; - } - - /** - * Performs a deep copy on other. - */ - public add_dynamic_partitions_args(add_dynamic_partitions_args other) { - if (other.isSetRqst()) { - this.rqst = new AddDynamicPartitions(other.rqst); - } - } - - public add_dynamic_partitions_args deepCopy() { - return new add_dynamic_partitions_args(this); - } - - @Override - public void clear() { - this.rqst = null; - } - - public AddDynamicPartitions getRqst() { - return this.rqst; - } - - public void setRqst(AddDynamicPartitions 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((AddDynamicPartitions)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case RQST: - return getRqst(); - - } - throw new IllegalStateException(); - } - - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); - } - - switch (field) { - case RQST: - return isSetRqst(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof add_dynamic_partitions_args) - return this.equals((add_dynamic_partitions_args)that); - return false; - } - - public boolean equals(add_dynamic_partitions_args that) { - if (that == null) - return false; - - boolean this_present_rqst = true && this.isSetRqst(); - boolean that_present_rqst = true && that.isSetRqst(); - if (this_present_rqst || that_present_rqst) { - if (!(this_present_rqst && that_present_rqst)) - return false; - if (!this.rqst.equals(that.rqst)) - return false; - } - - return true; - } - - @Override - public int hashCode() { - List list = new ArrayList(); - - boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); - if (present_rqst) - list.add(rqst); - - return list.hashCode(); - } - - @Override - public int compareTo(add_dynamic_partitions_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); - if (lastComparison != 0) { - return lastComparison; - } - } - return 0; - } - - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); - } - - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("add_dynamic_partitions_args("); - boolean first = true; - - sb.append("rqst:"); - if (this.rqst == null) { - sb.append("null"); - } else { - sb.append(this.rqst); - } - first = false; - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - // check for sub-struct validity - if (rqst != null) { - rqst.validate(); - } - } - - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { - try { - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { - try { - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private static class add_dynamic_partitions_argsStandardSchemeFactory implements SchemeFactory { - public add_dynamic_partitions_argsStandardScheme getScheme() { - return new add_dynamic_partitions_argsStandardScheme(); - } - } - - private static class add_dynamic_partitions_argsStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, add_dynamic_partitions_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 AddDynamicPartitions(); - struct.rqst.read(iprot); - struct.setRqstIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, add_dynamic_partitions_args struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.rqst != null) { - oprot.writeFieldBegin(RQST_FIELD_DESC); - struct.rqst.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class add_dynamic_partitions_argsTupleSchemeFactory implements SchemeFactory { - public add_dynamic_partitions_argsTupleScheme getScheme() { - return new add_dynamic_partitions_argsTupleScheme(); - } - } - - private static class add_dynamic_partitions_argsTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_dynamic_partitions_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetRqst()) { - optionals.set(0); - } - oprot.writeBitSet(optionals, 1); - if (struct.isSetRqst()) { - struct.rqst.write(oprot); - } - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_dynamic_partitions_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.rqst = new AddDynamicPartitions(); - struct.rqst.read(iprot); - struct.setRqstIsSet(true); - } - } - } - - } - - public static class add_dynamic_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_dynamic_partitions_result"); - - private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new add_dynamic_partitions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_dynamic_partitions_resultTupleSchemeFactory()); - } - - private NoSuchTxnException o1; // required - private TxnAbortedException o2; // required - - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { - O1((short)1, "o1"), - O2((short)2, "o2"); - - private static final Map byName = new HashMap(); - - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } - } - - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - case 1: // O1 - return O1; - case 2: // O2 - return O2; - default: - return null; - } - } - - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } - - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_dynamic_partitions_result.class, metaDataMap); - } - - public add_dynamic_partitions_result() { - } - - public add_dynamic_partitions_result( - NoSuchTxnException o1, - TxnAbortedException o2) - { - this(); - this.o1 = o1; - this.o2 = o2; - } - - /** - * Performs a deep copy on other. - */ - public add_dynamic_partitions_result(add_dynamic_partitions_result other) { - if (other.isSetO1()) { - this.o1 = new NoSuchTxnException(other.o1); - } - if (other.isSetO2()) { - this.o2 = new TxnAbortedException(other.o2); - } - } - - public add_dynamic_partitions_result deepCopy() { - return new add_dynamic_partitions_result(this); - } - - @Override - public void clear() { - this.o1 = null; - this.o2 = null; - } - - public NoSuchTxnException getO1() { - return this.o1; - } - - public void setO1(NoSuchTxnException o1) { - this.o1 = o1; - } - - public void unsetO1() { - this.o1 = null; - } - - /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ - public boolean isSetO1() { - return this.o1 != null; - } - - public void setO1IsSet(boolean value) { - if (!value) { - this.o1 = null; - } - } - - public TxnAbortedException getO2() { - return this.o2; - } - - public void setO2(TxnAbortedException o2) { - this.o2 = o2; - } - - public void unsetO2() { - this.o2 = null; - } - - /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ - public boolean isSetO2() { - return this.o2 != null; - } - - public void setO2IsSet(boolean value) { - if (!value) { - this.o2 = null; - } - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case O1: - if (value == null) { - unsetO1(); - } else { - setO1((NoSuchTxnException)value); - } - break; - - case O2: - if (value == null) { - unsetO2(); - } else { - setO2((TxnAbortedException)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case O1: - return getO1(); - - case O2: - return getO2(); - - } - throw new IllegalStateException(); - } - - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); - } - - switch (field) { - case O1: - return isSetO1(); - case O2: - return isSetO2(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof add_dynamic_partitions_result) - return this.equals((add_dynamic_partitions_result)that); - return false; - } - - public boolean equals(add_dynamic_partitions_result that) { - if (that == null) - return false; - - boolean this_present_o1 = true && this.isSetO1(); - boolean that_present_o1 = true && that.isSetO1(); - if (this_present_o1 || that_present_o1) { - if (!(this_present_o1 && that_present_o1)) - return false; - if (!this.o1.equals(that.o1)) - return false; - } - - boolean this_present_o2 = true && this.isSetO2(); - boolean that_present_o2 = true && that.isSetO2(); - if (this_present_o2 || that_present_o2) { - if (!(this_present_o2 && that_present_o2)) - return false; - if (!this.o2.equals(that.o2)) - return false; - } - - return true; - } - - @Override - public int hashCode() { - List list = new ArrayList(); - - boolean present_o1 = true && (isSetO1()); - list.add(present_o1); - if (present_o1) - list.add(o1); - - boolean present_o2 = true && (isSetO2()); - list.add(present_o2); - if (present_o2) - list.add(o2); - - return list.hashCode(); - } - - @Override - public int compareTo(add_dynamic_partitions_result other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); - if (lastComparison != 0) { - return lastComparison; - } - } - return 0; - } - - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); - } - - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("add_dynamic_partitions_result("); + StringBuilder sb = new StringBuilder("heartbeat_txn_range_result("); boolean first = true; - sb.append("o1:"); - if (this.o1 == null) { - sb.append("null"); - } else { - sb.append(this.o1); - } - first = false; - if (!first) sb.append(", "); - sb.append("o2:"); - if (this.o2 == null) { + sb.append("success:"); + if (this.success == null) { sb.append("null"); } else { - sb.append(this.o2); + sb.append(this.success); } first = false; sb.append(")"); @@ -175262,6 +171866,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -175280,15 +171887,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_dynamic_partitions_resultStandardSchemeFactory implements SchemeFactory { - public add_dynamic_partitions_resultStandardScheme getScheme() { - return new add_dynamic_partitions_resultStandardScheme(); + private static class heartbeat_txn_range_resultStandardSchemeFactory implements SchemeFactory { + public heartbeat_txn_range_resultStandardScheme getScheme() { + return new heartbeat_txn_range_resultStandardScheme(); } } - private static class add_dynamic_partitions_resultStandardScheme extends StandardScheme { + private static class heartbeat_txn_range_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_dynamic_partitions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_txn_range_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -175298,20 +171905,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_dynamic_partiti break; } switch (schemeField.id) { - case 1: // O1 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchTxnException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // O2 + case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new TxnAbortedException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); + struct.success = new HeartbeatTxnRangeResponse(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -175325,18 +171923,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_dynamic_partiti struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_dynamic_partitions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, heartbeat_txn_range_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.o1 != null) { - oprot.writeFieldBegin(O1_FIELD_DESC); - struct.o1.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.o2 != null) { - oprot.writeFieldBegin(O2_FIELD_DESC); - struct.o2.write(oprot); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + struct.success.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -175345,64 +171938,53 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_dynamic_partit } - private static class add_dynamic_partitions_resultTupleSchemeFactory implements SchemeFactory { - public add_dynamic_partitions_resultTupleScheme getScheme() { - return new add_dynamic_partitions_resultTupleScheme(); + private static class heartbeat_txn_range_resultTupleSchemeFactory implements SchemeFactory { + public heartbeat_txn_range_resultTupleScheme getScheme() { + return new heartbeat_txn_range_resultTupleScheme(); } } - private static class add_dynamic_partitions_resultTupleScheme extends TupleScheme { + private static class heartbeat_txn_range_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_dynamic_partitions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, heartbeat_txn_range_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetO1()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO2()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetO1()) { - struct.o1.write(oprot); - } - if (struct.isSetO2()) { - struct.o2.write(oprot); + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + struct.success.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_dynamic_partitions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_txn_range_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.o1 = new NoSuchTxnException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); - } - if (incoming.get(1)) { - struct.o2 = new TxnAbortedException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); + struct.success = new HeartbeatTxnRangeResponse(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); } } } } - public static class get_next_notification_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_next_notification_args"); + public static class compact_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("compact_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_next_notification_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_next_notification_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new compact_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new compact_argsTupleSchemeFactory()); } - private NotificationEventRequest rqst; // required + private CompactionRequest 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 { @@ -175467,16 +172049,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, NotificationEventRequest.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CompactionRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_next_notification_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(compact_args.class, metaDataMap); } - public get_next_notification_args() { + public compact_args() { } - public get_next_notification_args( - NotificationEventRequest rqst) + public compact_args( + CompactionRequest rqst) { this(); this.rqst = rqst; @@ -175485,14 +172067,14 @@ public get_next_notification_args( /** * Performs a deep copy on other. */ - public get_next_notification_args(get_next_notification_args other) { + public compact_args(compact_args other) { if (other.isSetRqst()) { - this.rqst = new NotificationEventRequest(other.rqst); + this.rqst = new CompactionRequest(other.rqst); } } - public get_next_notification_args deepCopy() { - return new get_next_notification_args(this); + public compact_args deepCopy() { + return new compact_args(this); } @Override @@ -175500,11 +172082,11 @@ public void clear() { this.rqst = null; } - public NotificationEventRequest getRqst() { + public CompactionRequest getRqst() { return this.rqst; } - public void setRqst(NotificationEventRequest rqst) { + public void setRqst(CompactionRequest rqst) { this.rqst = rqst; } @@ -175529,7 +172111,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetRqst(); } else { - setRqst((NotificationEventRequest)value); + setRqst((CompactionRequest)value); } break; @@ -175562,12 +172144,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_next_notification_args) - return this.equals((get_next_notification_args)that); + if (that instanceof compact_args) + return this.equals((compact_args)that); return false; } - public boolean equals(get_next_notification_args that) { + public boolean equals(compact_args that) { if (that == null) return false; @@ -175596,7 +172178,7 @@ public int hashCode() { } @Override - public int compareTo(get_next_notification_args other) { + public int compareTo(compact_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -175630,7 +172212,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_next_notification_args("); + StringBuilder sb = new StringBuilder("compact_args("); boolean first = true; sb.append("rqst:"); @@ -175668,15 +172250,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_next_notification_argsStandardSchemeFactory implements SchemeFactory { - public get_next_notification_argsStandardScheme getScheme() { - return new get_next_notification_argsStandardScheme(); + private static class compact_argsStandardSchemeFactory implements SchemeFactory { + public compact_argsStandardScheme getScheme() { + return new compact_argsStandardScheme(); } } - private static class get_next_notification_argsStandardScheme extends StandardScheme { + private static class compact_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_next_notification_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, compact_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -175688,7 +172270,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_next_notificati switch (schemeField.id) { case 1: // RQST if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.rqst = new NotificationEventRequest(); + struct.rqst = new CompactionRequest(); struct.rqst.read(iprot); struct.setRqstIsSet(true); } else { @@ -175704,7 +172286,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_next_notificati struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_next_notification_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, compact_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -175719,16 +172301,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_next_notificat } - private static class get_next_notification_argsTupleSchemeFactory implements SchemeFactory { - public get_next_notification_argsTupleScheme getScheme() { - return new get_next_notification_argsTupleScheme(); + private static class compact_argsTupleSchemeFactory implements SchemeFactory { + public compact_argsTupleScheme getScheme() { + return new compact_argsTupleScheme(); } } - private static class get_next_notification_argsTupleScheme extends TupleScheme { + private static class compact_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_next_notification_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, compact_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRqst()) { @@ -175741,11 +172323,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_next_notificati } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_next_notification_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, compact_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.rqst = new NotificationEventRequest(); + struct.rqst = new CompactionRequest(); struct.rqst.read(iprot); struct.setRqstIsSet(true); } @@ -175754,22 +172336,20 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_next_notificatio } - public static class get_next_notification_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_next_notification_result"); + public static class compact_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("compact_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_next_notification_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_next_notification_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new compact_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new compact_resultTupleSchemeFactory()); } - private NotificationEventResponse 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(); @@ -175784,8 +172364,6 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_next_notificatio */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; default: return null; } @@ -175824,86 +172402,37 @@ 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, NotificationEventResponse.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_next_notification_result.class, metaDataMap); - } - - public get_next_notification_result() { + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(compact_result.class, metaDataMap); } - public get_next_notification_result( - NotificationEventResponse success) - { - this(); - this.success = success; + public compact_result() { } /** * Performs a deep copy on other. */ - public get_next_notification_result(get_next_notification_result other) { - if (other.isSetSuccess()) { - this.success = new NotificationEventResponse(other.success); - } + public compact_result(compact_result other) { } - public get_next_notification_result deepCopy() { - return new get_next_notification_result(this); + public compact_result deepCopy() { + return new compact_result(this); } @Override public void clear() { - this.success = null; - } - - public NotificationEventResponse getSuccess() { - return this.success; - } - - public void setSuccess(NotificationEventResponse 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((NotificationEventResponse)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - } throw new IllegalStateException(); } @@ -175915,8 +172444,6 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); } throw new IllegalStateException(); } @@ -175925,24 +172452,15 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_next_notification_result) - return this.equals((get_next_notification_result)that); + if (that instanceof compact_result) + return this.equals((compact_result)that); return false; } - public boolean equals(get_next_notification_result that) { + public boolean equals(compact_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; } @@ -175950,32 +172468,17 @@ public boolean equals(get_next_notification_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); - return list.hashCode(); } @Override - public int compareTo(get_next_notification_result other) { + public int compareTo(compact_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; } @@ -175993,16 +172496,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_next_notification_result("); + StringBuilder sb = new StringBuilder("compact_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(); } @@ -176010,9 +172506,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -176031,15 +172524,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_next_notification_resultStandardSchemeFactory implements SchemeFactory { - public get_next_notification_resultStandardScheme getScheme() { - return new get_next_notification_resultStandardScheme(); + private static class compact_resultStandardSchemeFactory implements SchemeFactory { + public compact_resultStandardScheme getScheme() { + return new compact_resultStandardScheme(); } } - private static class get_next_notification_resultStandardScheme extends StandardScheme { + private static class compact_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_next_notification_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, compact_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -176049,15 +172542,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_next_notificati break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new NotificationEventResponse(); - 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); } @@ -176067,70 +172551,53 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_next_notificati struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_next_notification_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, compact_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_next_notification_resultTupleSchemeFactory implements SchemeFactory { - public get_next_notification_resultTupleScheme getScheme() { - return new get_next_notification_resultTupleScheme(); + private static class compact_resultTupleSchemeFactory implements SchemeFactory { + public compact_resultTupleScheme getScheme() { + return new compact_resultTupleScheme(); } } - private static class get_next_notification_resultTupleScheme extends TupleScheme { + private static class compact_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_next_notification_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, compact_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_next_notification_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, compact_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.success = new NotificationEventResponse(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } } } } - public static class get_current_notificationEventId_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_current_notificationEventId_args"); + public static class compact2_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("compact2_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_current_notificationEventId_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_current_notificationEventId_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new compact2_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new compact2_argsTupleSchemeFactory()); } + private CompactionRequest 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(); @@ -176145,6 +172612,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_next_notificatio */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 1: // RQST + return RQST; default: return null; } @@ -176183,37 +172652,86 @@ public String getFieldName() { return _fieldName; } } + + // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.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, CompactionRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_current_notificationEventId_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(compact2_args.class, metaDataMap); } - public get_current_notificationEventId_args() { + public compact2_args() { + } + + public compact2_args( + CompactionRequest rqst) + { + this(); + this.rqst = rqst; } /** * Performs a deep copy on other. */ - public get_current_notificationEventId_args(get_current_notificationEventId_args other) { + public compact2_args(compact2_args other) { + if (other.isSetRqst()) { + this.rqst = new CompactionRequest(other.rqst); + } } - public get_current_notificationEventId_args deepCopy() { - return new get_current_notificationEventId_args(this); + public compact2_args deepCopy() { + return new compact2_args(this); } @Override public void clear() { + this.rqst = null; + } + + public CompactionRequest getRqst() { + return this.rqst; + } + + public void setRqst(CompactionRequest 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((CompactionRequest)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case RQST: + return getRqst(); + } throw new IllegalStateException(); } @@ -176225,6 +172743,8 @@ public boolean isSet(_Fields field) { } switch (field) { + case RQST: + return isSetRqst(); } throw new IllegalStateException(); } @@ -176233,15 +172753,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_current_notificationEventId_args) - return this.equals((get_current_notificationEventId_args)that); + if (that instanceof compact2_args) + return this.equals((compact2_args)that); return false; } - public boolean equals(get_current_notificationEventId_args that) { + public boolean equals(compact2_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; } @@ -176249,17 +172778,32 @@ public boolean equals(get_current_notificationEventId_args that) { public int hashCode() { List list = new ArrayList(); + boolean present_rqst = true && (isSetRqst()); + list.add(present_rqst); + if (present_rqst) + list.add(rqst); + return list.hashCode(); } @Override - public int compareTo(get_current_notificationEventId_args other) { + public int compareTo(compact2_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; } @@ -176277,9 +172821,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_current_notificationEventId_args("); + StringBuilder sb = new StringBuilder("compact2_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(); } @@ -176287,6 +172838,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (rqst != null) { + rqst.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -176305,15 +172859,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_current_notificationEventId_argsStandardSchemeFactory implements SchemeFactory { - public get_current_notificationEventId_argsStandardScheme getScheme() { - return new get_current_notificationEventId_argsStandardScheme(); + private static class compact2_argsStandardSchemeFactory implements SchemeFactory { + public compact2_argsStandardScheme getScheme() { + return new compact2_argsStandardScheme(); } } - private static class get_current_notificationEventId_argsStandardScheme extends StandardScheme { + private static class compact2_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_current_notificationEventId_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, compact2_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -176323,6 +172877,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_current_notific break; } switch (schemeField.id) { + case 1: // RQST + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.rqst = new CompactionRequest(); + 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); } @@ -176332,49 +172895,68 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_current_notific struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_current_notificationEventId_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, compact2_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_current_notificationEventId_argsTupleSchemeFactory implements SchemeFactory { - public get_current_notificationEventId_argsTupleScheme getScheme() { - return new get_current_notificationEventId_argsTupleScheme(); + private static class compact2_argsTupleSchemeFactory implements SchemeFactory { + public compact2_argsTupleScheme getScheme() { + return new compact2_argsTupleScheme(); } } - private static class get_current_notificationEventId_argsTupleScheme extends TupleScheme { + private static class compact2_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_current_notificationEventId_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, compact2_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_current_notificationEventId_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, compact2_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.rqst = new CompactionRequest(); + struct.rqst.read(iprot); + struct.setRqstIsSet(true); + } } } } - public static class get_current_notificationEventId_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_current_notificationEventId_result"); + public static class compact2_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("compact2_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_current_notificationEventId_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_current_notificationEventId_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new compact2_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new compact2_resultTupleSchemeFactory()); } - private CurrentNotificationEventId success; // required + private CompactionResponse 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 { @@ -176439,16 +173021,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, CurrentNotificationEventId.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CompactionResponse.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_current_notificationEventId_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(compact2_result.class, metaDataMap); } - public get_current_notificationEventId_result() { + public compact2_result() { } - public get_current_notificationEventId_result( - CurrentNotificationEventId success) + public compact2_result( + CompactionResponse success) { this(); this.success = success; @@ -176457,14 +173039,14 @@ public get_current_notificationEventId_result( /** * Performs a deep copy on other. */ - public get_current_notificationEventId_result(get_current_notificationEventId_result other) { + public compact2_result(compact2_result other) { if (other.isSetSuccess()) { - this.success = new CurrentNotificationEventId(other.success); + this.success = new CompactionResponse(other.success); } } - public get_current_notificationEventId_result deepCopy() { - return new get_current_notificationEventId_result(this); + public compact2_result deepCopy() { + return new compact2_result(this); } @Override @@ -176472,11 +173054,11 @@ public void clear() { this.success = null; } - public CurrentNotificationEventId getSuccess() { + public CompactionResponse getSuccess() { return this.success; } - public void setSuccess(CurrentNotificationEventId success) { + public void setSuccess(CompactionResponse success) { this.success = success; } @@ -176501,7 +173083,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((CurrentNotificationEventId)value); + setSuccess((CompactionResponse)value); } break; @@ -176534,12 +173116,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_current_notificationEventId_result) - return this.equals((get_current_notificationEventId_result)that); + if (that instanceof compact2_result) + return this.equals((compact2_result)that); return false; } - public boolean equals(get_current_notificationEventId_result that) { + public boolean equals(compact2_result that) { if (that == null) return false; @@ -176568,7 +173150,7 @@ public int hashCode() { } @Override - public int compareTo(get_current_notificationEventId_result other) { + public int compareTo(compact2_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -176602,7 +173184,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_current_notificationEventId_result("); + StringBuilder sb = new StringBuilder("compact2_result("); boolean first = true; sb.append("success:"); @@ -176640,15 +173222,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_current_notificationEventId_resultStandardSchemeFactory implements SchemeFactory { - public get_current_notificationEventId_resultStandardScheme getScheme() { - return new get_current_notificationEventId_resultStandardScheme(); + private static class compact2_resultStandardSchemeFactory implements SchemeFactory { + public compact2_resultStandardScheme getScheme() { + return new compact2_resultStandardScheme(); } } - private static class get_current_notificationEventId_resultStandardScheme extends StandardScheme { + private static class compact2_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_current_notificationEventId_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, compact2_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -176660,7 +173242,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_current_notific switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new CurrentNotificationEventId(); + struct.success = new CompactionResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -176676,7 +173258,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_current_notific struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_current_notificationEventId_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, compact2_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -176691,16 +173273,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_current_notifi } - private static class get_current_notificationEventId_resultTupleSchemeFactory implements SchemeFactory { - public get_current_notificationEventId_resultTupleScheme getScheme() { - return new get_current_notificationEventId_resultTupleScheme(); + private static class compact2_resultTupleSchemeFactory implements SchemeFactory { + public compact2_resultTupleScheme getScheme() { + return new compact2_resultTupleScheme(); } } - private static class get_current_notificationEventId_resultTupleScheme extends TupleScheme { + private static class compact2_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_current_notificationEventId_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, compact2_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -176713,11 +173295,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_current_notific } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_current_notificationEventId_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, compact2_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = new CurrentNotificationEventId(); + struct.success = new CompactionResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -176726,18 +173308,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_current_notifica } - 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"); + public static class show_compact_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("show_compact_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 fire_listener_event_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new fire_listener_event_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new show_compact_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new show_compact_argsTupleSchemeFactory()); } - private FireEventRequest rqst; // required + private ShowCompactRequest 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 { @@ -176802,16 +173384,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, FireEventRequest.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ShowCompactRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fire_listener_event_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(show_compact_args.class, metaDataMap); } - public fire_listener_event_args() { + public show_compact_args() { } - public fire_listener_event_args( - FireEventRequest rqst) + public show_compact_args( + ShowCompactRequest rqst) { this(); this.rqst = rqst; @@ -176820,14 +173402,14 @@ public fire_listener_event_args( /** * Performs a deep copy on other. */ - public fire_listener_event_args(fire_listener_event_args other) { + public show_compact_args(show_compact_args other) { if (other.isSetRqst()) { - this.rqst = new FireEventRequest(other.rqst); + this.rqst = new ShowCompactRequest(other.rqst); } } - public fire_listener_event_args deepCopy() { - return new fire_listener_event_args(this); + public show_compact_args deepCopy() { + return new show_compact_args(this); } @Override @@ -176835,11 +173417,11 @@ public void clear() { this.rqst = null; } - public FireEventRequest getRqst() { + public ShowCompactRequest getRqst() { return this.rqst; } - public void setRqst(FireEventRequest rqst) { + public void setRqst(ShowCompactRequest rqst) { this.rqst = rqst; } @@ -176864,7 +173446,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetRqst(); } else { - setRqst((FireEventRequest)value); + setRqst((ShowCompactRequest)value); } break; @@ -176897,12 +173479,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof fire_listener_event_args) - return this.equals((fire_listener_event_args)that); + if (that instanceof show_compact_args) + return this.equals((show_compact_args)that); return false; } - public boolean equals(fire_listener_event_args that) { + public boolean equals(show_compact_args that) { if (that == null) return false; @@ -176931,7 +173513,7 @@ public int hashCode() { } @Override - public int compareTo(fire_listener_event_args other) { + public int compareTo(show_compact_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -176965,7 +173547,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("fire_listener_event_args("); + StringBuilder sb = new StringBuilder("show_compact_args("); boolean first = true; sb.append("rqst:"); @@ -177003,15 +173585,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class fire_listener_event_argsStandardSchemeFactory implements SchemeFactory { - public fire_listener_event_argsStandardScheme getScheme() { - return new fire_listener_event_argsStandardScheme(); + private static class show_compact_argsStandardSchemeFactory implements SchemeFactory { + public show_compact_argsStandardScheme getScheme() { + return new show_compact_argsStandardScheme(); } } - private static class fire_listener_event_argsStandardScheme extends StandardScheme { + private static class show_compact_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, fire_listener_event_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, show_compact_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -177023,7 +173605,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, fire_listener_event switch (schemeField.id) { case 1: // RQST if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.rqst = new FireEventRequest(); + struct.rqst = new ShowCompactRequest(); struct.rqst.read(iprot); struct.setRqstIsSet(true); } else { @@ -177039,7 +173621,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, fire_listener_event struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, fire_listener_event_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, show_compact_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -177054,16 +173636,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, fire_listener_even } - private static class fire_listener_event_argsTupleSchemeFactory implements SchemeFactory { - public fire_listener_event_argsTupleScheme getScheme() { - return new fire_listener_event_argsTupleScheme(); + private static class show_compact_argsTupleSchemeFactory implements SchemeFactory { + public show_compact_argsTupleScheme getScheme() { + return new show_compact_argsTupleScheme(); } } - private static class fire_listener_event_argsTupleScheme extends TupleScheme { + private static class show_compact_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, fire_listener_event_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, show_compact_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRqst()) { @@ -177076,11 +173658,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, fire_listener_event } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, fire_listener_event_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, show_compact_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.rqst = new FireEventRequest(); + struct.rqst = new ShowCompactRequest(); struct.rqst.read(iprot); struct.setRqstIsSet(true); } @@ -177089,18 +173671,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, fire_listener_event_ } - public static class fire_listener_event_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("fire_listener_event_result"); + public static class show_compact_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("show_compact_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 fire_listener_event_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new fire_listener_event_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new show_compact_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new show_compact_resultTupleSchemeFactory()); } - private FireEventResponse success; // required + private ShowCompactResponse 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 { @@ -177165,16 +173747,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, FireEventResponse.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ShowCompactResponse.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fire_listener_event_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(show_compact_result.class, metaDataMap); } - public fire_listener_event_result() { + public show_compact_result() { } - public fire_listener_event_result( - FireEventResponse success) + public show_compact_result( + ShowCompactResponse success) { this(); this.success = success; @@ -177183,14 +173765,14 @@ public fire_listener_event_result( /** * Performs a deep copy on other. */ - public fire_listener_event_result(fire_listener_event_result other) { + public show_compact_result(show_compact_result other) { if (other.isSetSuccess()) { - this.success = new FireEventResponse(other.success); + this.success = new ShowCompactResponse(other.success); } } - public fire_listener_event_result deepCopy() { - return new fire_listener_event_result(this); + public show_compact_result deepCopy() { + return new show_compact_result(this); } @Override @@ -177198,11 +173780,11 @@ public void clear() { this.success = null; } - public FireEventResponse getSuccess() { + public ShowCompactResponse getSuccess() { return this.success; } - public void setSuccess(FireEventResponse success) { + public void setSuccess(ShowCompactResponse success) { this.success = success; } @@ -177227,7 +173809,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((FireEventResponse)value); + setSuccess((ShowCompactResponse)value); } break; @@ -177260,12 +173842,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof fire_listener_event_result) - return this.equals((fire_listener_event_result)that); + if (that instanceof show_compact_result) + return this.equals((show_compact_result)that); return false; } - public boolean equals(fire_listener_event_result that) { + public boolean equals(show_compact_result that) { if (that == null) return false; @@ -177294,7 +173876,7 @@ public int hashCode() { } @Override - public int compareTo(fire_listener_event_result other) { + public int compareTo(show_compact_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -177328,7 +173910,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("fire_listener_event_result("); + StringBuilder sb = new StringBuilder("show_compact_result("); boolean first = true; sb.append("success:"); @@ -177366,15 +173948,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class fire_listener_event_resultStandardSchemeFactory implements SchemeFactory { - public fire_listener_event_resultStandardScheme getScheme() { - return new fire_listener_event_resultStandardScheme(); + private static class show_compact_resultStandardSchemeFactory implements SchemeFactory { + public show_compact_resultStandardScheme getScheme() { + return new show_compact_resultStandardScheme(); } } - private static class fire_listener_event_resultStandardScheme extends StandardScheme { + private static class show_compact_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, fire_listener_event_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, show_compact_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -177386,7 +173968,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, fire_listener_event switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new FireEventResponse(); + struct.success = new ShowCompactResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -177402,7 +173984,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, fire_listener_event struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, fire_listener_event_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, show_compact_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -177417,16 +173999,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, fire_listener_even } - private static class fire_listener_event_resultTupleSchemeFactory implements SchemeFactory { - public fire_listener_event_resultTupleScheme getScheme() { - return new fire_listener_event_resultTupleScheme(); + private static class show_compact_resultTupleSchemeFactory implements SchemeFactory { + public show_compact_resultTupleScheme getScheme() { + return new show_compact_resultTupleScheme(); } } - private static class fire_listener_event_resultTupleScheme extends TupleScheme { + private static class show_compact_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, fire_listener_event_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, show_compact_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -177439,11 +174021,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, fire_listener_event } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, fire_listener_event_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, show_compact_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = new FireEventResponse(); + struct.success = new ShowCompactResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -177452,20 +174034,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, fire_listener_event_ } - public static class flushCache_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("flushCache_args"); + public static class add_dynamic_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_dynamic_partitions_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 flushCache_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new flushCache_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_dynamic_partitions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_dynamic_partitions_argsTupleSchemeFactory()); } + private AddDynamicPartitions 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(); @@ -177480,6 +174064,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, fire_listener_event_ */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 1: // RQST + return RQST; default: return null; } @@ -177518,37 +174104,86 @@ public String getFieldName() { return _fieldName; } } + + // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.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, AddDynamicPartitions.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(flushCache_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_dynamic_partitions_args.class, metaDataMap); } - public flushCache_args() { + public add_dynamic_partitions_args() { + } + + public add_dynamic_partitions_args( + AddDynamicPartitions rqst) + { + this(); + this.rqst = rqst; } /** * Performs a deep copy on other. */ - public flushCache_args(flushCache_args other) { + public add_dynamic_partitions_args(add_dynamic_partitions_args other) { + if (other.isSetRqst()) { + this.rqst = new AddDynamicPartitions(other.rqst); + } } - public flushCache_args deepCopy() { - return new flushCache_args(this); + public add_dynamic_partitions_args deepCopy() { + return new add_dynamic_partitions_args(this); } @Override public void clear() { + this.rqst = null; + } + + public AddDynamicPartitions getRqst() { + return this.rqst; + } + + public void setRqst(AddDynamicPartitions 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((AddDynamicPartitions)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case RQST: + return getRqst(); + } throw new IllegalStateException(); } @@ -177560,6 +174195,8 @@ public boolean isSet(_Fields field) { } switch (field) { + case RQST: + return isSetRqst(); } throw new IllegalStateException(); } @@ -177568,15 +174205,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof flushCache_args) - return this.equals((flushCache_args)that); + if (that instanceof add_dynamic_partitions_args) + return this.equals((add_dynamic_partitions_args)that); return false; } - public boolean equals(flushCache_args that) { + public boolean equals(add_dynamic_partitions_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; } @@ -177584,17 +174230,32 @@ public boolean equals(flushCache_args that) { public int hashCode() { List list = new ArrayList(); + boolean present_rqst = true && (isSetRqst()); + list.add(present_rqst); + if (present_rqst) + list.add(rqst); + return list.hashCode(); } @Override - public int compareTo(flushCache_args other) { + public int compareTo(add_dynamic_partitions_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; } @@ -177612,9 +174273,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("flushCache_args("); + StringBuilder sb = new StringBuilder("add_dynamic_partitions_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(); } @@ -177622,6 +174290,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (rqst != null) { + rqst.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -177640,15 +174311,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class flushCache_argsStandardSchemeFactory implements SchemeFactory { - public flushCache_argsStandardScheme getScheme() { - return new flushCache_argsStandardScheme(); + private static class add_dynamic_partitions_argsStandardSchemeFactory implements SchemeFactory { + public add_dynamic_partitions_argsStandardScheme getScheme() { + return new add_dynamic_partitions_argsStandardScheme(); } } - private static class flushCache_argsStandardScheme extends StandardScheme { + private static class add_dynamic_partitions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, flushCache_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_dynamic_partitions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -177658,6 +174329,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, flushCache_args str break; } switch (schemeField.id) { + case 1: // RQST + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.rqst = new AddDynamicPartitions(); + 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); } @@ -177667,51 +174347,75 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, flushCache_args str struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, flushCache_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_dynamic_partitions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.rqst != null) { + oprot.writeFieldBegin(RQST_FIELD_DESC); + struct.rqst.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class flushCache_argsTupleSchemeFactory implements SchemeFactory { - public flushCache_argsTupleScheme getScheme() { - return new flushCache_argsTupleScheme(); + private static class add_dynamic_partitions_argsTupleSchemeFactory implements SchemeFactory { + public add_dynamic_partitions_argsTupleScheme getScheme() { + return new add_dynamic_partitions_argsTupleScheme(); } } - private static class flushCache_argsTupleScheme extends TupleScheme { + private static class add_dynamic_partitions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, flushCache_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_dynamic_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetRqst()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetRqst()) { + struct.rqst.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, flushCache_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_dynamic_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.rqst = new AddDynamicPartitions(); + struct.rqst.read(iprot); + struct.setRqstIsSet(true); + } } } } - public static class flushCache_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("flushCache_result"); + public static class add_dynamic_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_dynamic_partitions_result"); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new flushCache_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new flushCache_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_dynamic_partitions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_dynamic_partitions_resultTupleSchemeFactory()); } + private NoSuchTxnException o1; // required + private TxnAbortedException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { -; + O1((short)1, "o1"), + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -177726,6 +174430,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, flushCache_args stru */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 1: // O1 + return O1; + case 2: // O2 + return O2; default: return null; } @@ -177764,37 +174472,128 @@ public String getFieldName() { return _fieldName; } } + + // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(flushCache_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_dynamic_partitions_result.class, metaDataMap); } - public flushCache_result() { + public add_dynamic_partitions_result() { + } + + public add_dynamic_partitions_result( + NoSuchTxnException o1, + TxnAbortedException o2) + { + this(); + this.o1 = o1; + this.o2 = o2; } /** * Performs a deep copy on other. */ - public flushCache_result(flushCache_result other) { + public add_dynamic_partitions_result(add_dynamic_partitions_result other) { + if (other.isSetO1()) { + this.o1 = new NoSuchTxnException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new TxnAbortedException(other.o2); + } } - public flushCache_result deepCopy() { - return new flushCache_result(this); + public add_dynamic_partitions_result deepCopy() { + return new add_dynamic_partitions_result(this); } @Override public void clear() { + this.o1 = null; + this.o2 = null; + } + + public NoSuchTxnException getO1() { + return this.o1; + } + + public void setO1(NoSuchTxnException o1) { + this.o1 = o1; + } + + public void unsetO1() { + this.o1 = null; + } + + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; + } + + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; + } + } + + public TxnAbortedException getO2() { + return this.o2; + } + + public void setO2(TxnAbortedException o2) { + this.o2 = o2; + } + + public void unsetO2() { + this.o2 = null; + } + + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ + public boolean isSetO2() { + return this.o2 != null; + } + + public void setO2IsSet(boolean value) { + if (!value) { + this.o2 = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((NoSuchTxnException)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((TxnAbortedException)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case O1: + return getO1(); + + case O2: + return getO2(); + } throw new IllegalStateException(); } @@ -177806,6 +174605,10 @@ public boolean isSet(_Fields field) { } switch (field) { + case O1: + return isSetO1(); + case O2: + return isSetO2(); } throw new IllegalStateException(); } @@ -177814,15 +174617,33 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof flushCache_result) - return this.equals((flushCache_result)that); + if (that instanceof add_dynamic_partitions_result) + return this.equals((add_dynamic_partitions_result)that); return false; } - public boolean equals(flushCache_result that) { + public boolean equals(add_dynamic_partitions_result that) { if (that == null) return false; + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + if (!(this_present_o1 && that_present_o1)) + return false; + if (!this.o1.equals(that.o1)) + return false; + } + + boolean this_present_o2 = true && this.isSetO2(); + boolean that_present_o2 = true && that.isSetO2(); + if (this_present_o2 || that_present_o2) { + if (!(this_present_o2 && that_present_o2)) + return false; + if (!this.o2.equals(that.o2)) + return false; + } + return true; } @@ -177830,17 +174651,47 @@ public boolean equals(flushCache_result that) { public int hashCode() { List list = new ArrayList(); + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + + boolean present_o2 = true && (isSetO2()); + list.add(present_o2); + if (present_o2) + list.add(o2); + return list.hashCode(); } @Override - public int compareTo(flushCache_result other) { + public int compareTo(add_dynamic_partitions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -177858,9 +174709,24 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("flushCache_result("); + StringBuilder sb = new StringBuilder("add_dynamic_partitions_result("); boolean first = true; + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; sb.append(")"); return sb.toString(); } @@ -177886,15 +174752,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class flushCache_resultStandardSchemeFactory implements SchemeFactory { - public flushCache_resultStandardScheme getScheme() { - return new flushCache_resultStandardScheme(); + private static class add_dynamic_partitions_resultStandardSchemeFactory implements SchemeFactory { + public add_dynamic_partitions_resultStandardScheme getScheme() { + return new add_dynamic_partitions_resultStandardScheme(); } } - private static class flushCache_resultStandardScheme extends StandardScheme { + private static class add_dynamic_partitions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, flushCache_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_dynamic_partitions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -177904,6 +174770,24 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, flushCache_result s break; } switch (schemeField.id) { + case 1: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new NoSuchTxnException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // O2 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o2 = new TxnAbortedException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -177913,53 +174797,88 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, flushCache_result s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, flushCache_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_dynamic_partitions_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class flushCache_resultTupleSchemeFactory implements SchemeFactory { - public flushCache_resultTupleScheme getScheme() { - return new flushCache_resultTupleScheme(); + private static class add_dynamic_partitions_resultTupleSchemeFactory implements SchemeFactory { + public add_dynamic_partitions_resultTupleScheme getScheme() { + return new add_dynamic_partitions_resultTupleScheme(); } } - private static class flushCache_resultTupleScheme extends TupleScheme { + private static class add_dynamic_partitions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, flushCache_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_dynamic_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetO1()) { + optionals.set(0); + } + if (struct.isSetO2()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, flushCache_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_dynamic_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.o1 = new NoSuchTxnException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(1)) { + struct.o2 = new TxnAbortedException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } } } } - public static class get_file_metadata_by_expr_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_file_metadata_by_expr_args"); + public static class get_next_notification_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_next_notification_args"); - private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField 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_file_metadata_by_expr_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_file_metadata_by_expr_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_next_notification_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_next_notification_argsTupleSchemeFactory()); } - private GetFileMetadataByExprRequest req; // required + private NotificationEventRequest 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 { - REQ((short)1, "req"); + RQST((short)1, "rqst"); private static final Map byName = new HashMap(); @@ -177974,8 +174893,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, flushCache_result st */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQ - return REQ; + case 1: // RQST + return RQST; default: return null; } @@ -178019,70 +174938,70 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetFileMetadataByExprRequest.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, NotificationEventRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_file_metadata_by_expr_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_next_notification_args.class, metaDataMap); } - public get_file_metadata_by_expr_args() { + public get_next_notification_args() { } - public get_file_metadata_by_expr_args( - GetFileMetadataByExprRequest req) + public get_next_notification_args( + NotificationEventRequest rqst) { this(); - this.req = req; + this.rqst = rqst; } /** * Performs a deep copy on other. */ - public get_file_metadata_by_expr_args(get_file_metadata_by_expr_args other) { - if (other.isSetReq()) { - this.req = new GetFileMetadataByExprRequest(other.req); + public get_next_notification_args(get_next_notification_args other) { + if (other.isSetRqst()) { + this.rqst = new NotificationEventRequest(other.rqst); } } - public get_file_metadata_by_expr_args deepCopy() { - return new get_file_metadata_by_expr_args(this); + public get_next_notification_args deepCopy() { + return new get_next_notification_args(this); } @Override public void clear() { - this.req = null; + this.rqst = null; } - public GetFileMetadataByExprRequest getReq() { - return this.req; + public NotificationEventRequest getRqst() { + return this.rqst; } - public void setReq(GetFileMetadataByExprRequest req) { - this.req = req; + public void setRqst(NotificationEventRequest rqst) { + this.rqst = rqst; } - public void unsetReq() { - this.req = null; + public void unsetRqst() { + this.rqst = null; } - /** Returns true if field req is set (has been assigned a value) and false otherwise */ - public boolean isSetReq() { - return this.req != null; + /** Returns true if field rqst is set (has been assigned a value) and false otherwise */ + public boolean isSetRqst() { + return this.rqst != null; } - public void setReqIsSet(boolean value) { + public void setRqstIsSet(boolean value) { if (!value) { - this.req = null; + this.rqst = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQ: + case RQST: if (value == null) { - unsetReq(); + unsetRqst(); } else { - setReq((GetFileMetadataByExprRequest)value); + setRqst((NotificationEventRequest)value); } break; @@ -178091,8 +175010,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case REQ: - return getReq(); + case RQST: + return getRqst(); } throw new IllegalStateException(); @@ -178105,8 +175024,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQ: - return isSetReq(); + case RQST: + return isSetRqst(); } throw new IllegalStateException(); } @@ -178115,21 +175034,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_file_metadata_by_expr_args) - return this.equals((get_file_metadata_by_expr_args)that); + if (that instanceof get_next_notification_args) + return this.equals((get_next_notification_args)that); return false; } - public boolean equals(get_file_metadata_by_expr_args that) { + public boolean equals(get_next_notification_args that) { if (that == null) return false; - boolean this_present_req = true && this.isSetReq(); - boolean that_present_req = true && that.isSetReq(); - if (this_present_req || that_present_req) { - if (!(this_present_req && that_present_req)) + boolean this_present_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.req.equals(that.req)) + if (!this.rqst.equals(that.rqst)) return false; } @@ -178140,28 +175059,28 @@ public boolean equals(get_file_metadata_by_expr_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_req = true && (isSetReq()); - list.add(present_req); - if (present_req) - list.add(req); + boolean present_rqst = true && (isSetRqst()); + list.add(present_rqst); + if (present_rqst) + list.add(rqst); return list.hashCode(); } @Override - public int compareTo(get_file_metadata_by_expr_args other) { + public int compareTo(get_next_notification_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); if (lastComparison != 0) { return lastComparison; } - if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + if (isSetRqst()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); if (lastComparison != 0) { return lastComparison; } @@ -178183,14 +175102,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_file_metadata_by_expr_args("); + StringBuilder sb = new StringBuilder("get_next_notification_args("); boolean first = true; - sb.append("req:"); - if (this.req == null) { + sb.append("rqst:"); + if (this.rqst == null) { sb.append("null"); } else { - sb.append(this.req); + sb.append(this.rqst); } first = false; sb.append(")"); @@ -178200,8 +175119,8 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (req != null) { - req.validate(); + if (rqst != null) { + rqst.validate(); } } @@ -178221,15 +175140,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_file_metadata_by_expr_argsStandardSchemeFactory implements SchemeFactory { - public get_file_metadata_by_expr_argsStandardScheme getScheme() { - return new get_file_metadata_by_expr_argsStandardScheme(); + private static class get_next_notification_argsStandardSchemeFactory implements SchemeFactory { + public get_next_notification_argsStandardScheme getScheme() { + return new get_next_notification_argsStandardScheme(); } } - private static class get_file_metadata_by_expr_argsStandardScheme extends StandardScheme { + private static class get_next_notification_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_file_metadata_by_expr_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_next_notification_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -178239,11 +175158,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_file_metadata_b break; } switch (schemeField.id) { - case 1: // REQ + case 1: // RQST if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new GetFileMetadataByExprRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + struct.rqst = new NotificationEventRequest(); + struct.rqst.read(iprot); + struct.setRqstIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -178257,13 +175176,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_file_metadata_b struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_file_metadata_by_expr_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_next_notification_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - struct.req.write(oprot); + if (struct.rqst != null) { + oprot.writeFieldBegin(RQST_FIELD_DESC); + struct.rqst.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -178272,53 +175191,53 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_file_metadata_ } - private static class get_file_metadata_by_expr_argsTupleSchemeFactory implements SchemeFactory { - public get_file_metadata_by_expr_argsTupleScheme getScheme() { - return new get_file_metadata_by_expr_argsTupleScheme(); + private static class get_next_notification_argsTupleSchemeFactory implements SchemeFactory { + public get_next_notification_argsTupleScheme getScheme() { + return new get_next_notification_argsTupleScheme(); } } - private static class get_file_metadata_by_expr_argsTupleScheme extends TupleScheme { + private static class get_next_notification_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_by_expr_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_next_notification_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetReq()) { + if (struct.isSetRqst()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetReq()) { - struct.req.write(oprot); + if (struct.isSetRqst()) { + struct.rqst.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_by_expr_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_next_notification_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.req = new GetFileMetadataByExprRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + struct.rqst = new NotificationEventRequest(); + struct.rqst.read(iprot); + struct.setRqstIsSet(true); } } } } - public static class get_file_metadata_by_expr_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_file_metadata_by_expr_result"); + public static class get_next_notification_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_next_notification_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_file_metadata_by_expr_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_file_metadata_by_expr_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_next_notification_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_next_notification_resultTupleSchemeFactory()); } - private GetFileMetadataByExprResult success; // required + private NotificationEventResponse 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 { @@ -178383,16 +175302,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, GetFileMetadataByExprResult.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, NotificationEventResponse.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_file_metadata_by_expr_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_next_notification_result.class, metaDataMap); } - public get_file_metadata_by_expr_result() { + public get_next_notification_result() { } - public get_file_metadata_by_expr_result( - GetFileMetadataByExprResult success) + public get_next_notification_result( + NotificationEventResponse success) { this(); this.success = success; @@ -178401,14 +175320,14 @@ public get_file_metadata_by_expr_result( /** * Performs a deep copy on other. */ - public get_file_metadata_by_expr_result(get_file_metadata_by_expr_result other) { + public get_next_notification_result(get_next_notification_result other) { if (other.isSetSuccess()) { - this.success = new GetFileMetadataByExprResult(other.success); + this.success = new NotificationEventResponse(other.success); } } - public get_file_metadata_by_expr_result deepCopy() { - return new get_file_metadata_by_expr_result(this); + public get_next_notification_result deepCopy() { + return new get_next_notification_result(this); } @Override @@ -178416,11 +175335,11 @@ public void clear() { this.success = null; } - public GetFileMetadataByExprResult getSuccess() { + public NotificationEventResponse getSuccess() { return this.success; } - public void setSuccess(GetFileMetadataByExprResult success) { + public void setSuccess(NotificationEventResponse success) { this.success = success; } @@ -178445,7 +175364,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((GetFileMetadataByExprResult)value); + setSuccess((NotificationEventResponse)value); } break; @@ -178478,12 +175397,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_file_metadata_by_expr_result) - return this.equals((get_file_metadata_by_expr_result)that); + if (that instanceof get_next_notification_result) + return this.equals((get_next_notification_result)that); return false; } - public boolean equals(get_file_metadata_by_expr_result that) { + public boolean equals(get_next_notification_result that) { if (that == null) return false; @@ -178512,7 +175431,7 @@ public int hashCode() { } @Override - public int compareTo(get_file_metadata_by_expr_result other) { + public int compareTo(get_next_notification_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -178546,7 +175465,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_file_metadata_by_expr_result("); + StringBuilder sb = new StringBuilder("get_next_notification_result("); boolean first = true; sb.append("success:"); @@ -178584,15 +175503,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_file_metadata_by_expr_resultStandardSchemeFactory implements SchemeFactory { - public get_file_metadata_by_expr_resultStandardScheme getScheme() { - return new get_file_metadata_by_expr_resultStandardScheme(); + private static class get_next_notification_resultStandardSchemeFactory implements SchemeFactory { + public get_next_notification_resultStandardScheme getScheme() { + return new get_next_notification_resultStandardScheme(); } } - private static class get_file_metadata_by_expr_resultStandardScheme extends StandardScheme { + private static class get_next_notification_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_file_metadata_by_expr_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_next_notification_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -178604,7 +175523,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_file_metadata_b switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new GetFileMetadataByExprResult(); + struct.success = new NotificationEventResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -178620,7 +175539,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_file_metadata_b struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_file_metadata_by_expr_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_next_notification_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -178635,16 +175554,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_file_metadata_ } - private static class get_file_metadata_by_expr_resultTupleSchemeFactory implements SchemeFactory { - public get_file_metadata_by_expr_resultTupleScheme getScheme() { - return new get_file_metadata_by_expr_resultTupleScheme(); + private static class get_next_notification_resultTupleSchemeFactory implements SchemeFactory { + public get_next_notification_resultTupleScheme getScheme() { + return new get_next_notification_resultTupleScheme(); } } - private static class get_file_metadata_by_expr_resultTupleScheme extends TupleScheme { + private static class get_next_notification_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_by_expr_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_next_notification_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -178657,11 +175576,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_b } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_by_expr_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_next_notification_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = new GetFileMetadataByExprResult(); + struct.success = new NotificationEventResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -178670,22 +175589,20 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_by } - public static class get_file_metadata_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_file_metadata_args"); + public static class get_current_notificationEventId_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_current_notificationEventId_args"); - private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_file_metadata_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_file_metadata_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_current_notificationEventId_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_current_notificationEventId_argsTupleSchemeFactory()); } - private GetFileMetadataRequest req; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - REQ((short)1, "req"); +; private static final Map byName = new HashMap(); @@ -178700,8 +175617,6 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_by */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQ - return REQ; default: return null; } @@ -178740,86 +175655,37 @@ public String getFieldName() { return _fieldName; } } - - // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetFileMetadataRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_file_metadata_args.class, metaDataMap); - } - - public get_file_metadata_args() { + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_current_notificationEventId_args.class, metaDataMap); } - public get_file_metadata_args( - GetFileMetadataRequest req) - { - this(); - this.req = req; + public get_current_notificationEventId_args() { } /** * Performs a deep copy on other. */ - public get_file_metadata_args(get_file_metadata_args other) { - if (other.isSetReq()) { - this.req = new GetFileMetadataRequest(other.req); - } + public get_current_notificationEventId_args(get_current_notificationEventId_args other) { } - public get_file_metadata_args deepCopy() { - return new get_file_metadata_args(this); + public get_current_notificationEventId_args deepCopy() { + return new get_current_notificationEventId_args(this); } @Override public void clear() { - this.req = null; - } - - public GetFileMetadataRequest getReq() { - return this.req; - } - - public void setReq(GetFileMetadataRequest req) { - this.req = req; - } - - public void unsetReq() { - this.req = null; - } - - /** Returns true if field req is set (has been assigned a value) and false otherwise */ - public boolean isSetReq() { - return this.req != null; - } - - public void setReqIsSet(boolean value) { - if (!value) { - this.req = null; - } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQ: - if (value == null) { - unsetReq(); - } else { - setReq((GetFileMetadataRequest)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { - case REQ: - return getReq(); - } throw new IllegalStateException(); } @@ -178831,8 +175697,6 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQ: - return isSetReq(); } throw new IllegalStateException(); } @@ -178841,24 +175705,15 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_file_metadata_args) - return this.equals((get_file_metadata_args)that); + if (that instanceof get_current_notificationEventId_args) + return this.equals((get_current_notificationEventId_args)that); return false; } - public boolean equals(get_file_metadata_args that) { + public boolean equals(get_current_notificationEventId_args that) { if (that == null) return false; - boolean this_present_req = true && this.isSetReq(); - boolean that_present_req = true && that.isSetReq(); - if (this_present_req || that_present_req) { - if (!(this_present_req && that_present_req)) - return false; - if (!this.req.equals(that.req)) - return false; - } - return true; } @@ -178866,32 +175721,17 @@ public boolean equals(get_file_metadata_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_req = true && (isSetReq()); - list.add(present_req); - if (present_req) - list.add(req); - return list.hashCode(); } @Override - public int compareTo(get_file_metadata_args other) { + public int compareTo(get_current_notificationEventId_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -178909,16 +175749,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_file_metadata_args("); + StringBuilder sb = new StringBuilder("get_current_notificationEventId_args("); boolean first = true; - sb.append("req:"); - if (this.req == null) { - sb.append("null"); - } else { - sb.append(this.req); - } - first = false; sb.append(")"); return sb.toString(); } @@ -178926,9 +175759,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (req != null) { - req.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -178947,15 +175777,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_file_metadata_argsStandardSchemeFactory implements SchemeFactory { - public get_file_metadata_argsStandardScheme getScheme() { - return new get_file_metadata_argsStandardScheme(); + private static class get_current_notificationEventId_argsStandardSchemeFactory implements SchemeFactory { + public get_current_notificationEventId_argsStandardScheme getScheme() { + return new get_current_notificationEventId_argsStandardScheme(); } } - private static class get_file_metadata_argsStandardScheme extends StandardScheme { + private static class get_current_notificationEventId_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_file_metadata_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_current_notificationEventId_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -178965,15 +175795,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_file_metadata_a break; } switch (schemeField.id) { - case 1: // REQ - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new GetFileMetadataRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -178983,68 +175804,49 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_file_metadata_a struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_file_metadata_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_current_notificationEventId_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - struct.req.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_file_metadata_argsTupleSchemeFactory implements SchemeFactory { - public get_file_metadata_argsTupleScheme getScheme() { - return new get_file_metadata_argsTupleScheme(); + private static class get_current_notificationEventId_argsTupleSchemeFactory implements SchemeFactory { + public get_current_notificationEventId_argsTupleScheme getScheme() { + return new get_current_notificationEventId_argsTupleScheme(); } } - private static class get_file_metadata_argsTupleScheme extends TupleScheme { + private static class get_current_notificationEventId_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_current_notificationEventId_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetReq()) { - optionals.set(0); - } - oprot.writeBitSet(optionals, 1); - if (struct.isSetReq()) { - struct.req.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_current_notificationEventId_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.req = new GetFileMetadataRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); - } } } } - public static class get_file_metadata_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_file_metadata_result"); + public static class get_current_notificationEventId_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_current_notificationEventId_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_file_metadata_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_file_metadata_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_current_notificationEventId_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_current_notificationEventId_resultTupleSchemeFactory()); } - private GetFileMetadataResult success; // required + private CurrentNotificationEventId 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 { @@ -179109,16 +175911,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, GetFileMetadataResult.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CurrentNotificationEventId.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_file_metadata_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_current_notificationEventId_result.class, metaDataMap); } - public get_file_metadata_result() { + public get_current_notificationEventId_result() { } - public get_file_metadata_result( - GetFileMetadataResult success) + public get_current_notificationEventId_result( + CurrentNotificationEventId success) { this(); this.success = success; @@ -179127,14 +175929,14 @@ public get_file_metadata_result( /** * Performs a deep copy on other. */ - public get_file_metadata_result(get_file_metadata_result other) { + public get_current_notificationEventId_result(get_current_notificationEventId_result other) { if (other.isSetSuccess()) { - this.success = new GetFileMetadataResult(other.success); + this.success = new CurrentNotificationEventId(other.success); } } - public get_file_metadata_result deepCopy() { - return new get_file_metadata_result(this); + public get_current_notificationEventId_result deepCopy() { + return new get_current_notificationEventId_result(this); } @Override @@ -179142,11 +175944,11 @@ public void clear() { this.success = null; } - public GetFileMetadataResult getSuccess() { + public CurrentNotificationEventId getSuccess() { return this.success; } - public void setSuccess(GetFileMetadataResult success) { + public void setSuccess(CurrentNotificationEventId success) { this.success = success; } @@ -179171,7 +175973,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((GetFileMetadataResult)value); + setSuccess((CurrentNotificationEventId)value); } break; @@ -179204,12 +176006,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_file_metadata_result) - return this.equals((get_file_metadata_result)that); + if (that instanceof get_current_notificationEventId_result) + return this.equals((get_current_notificationEventId_result)that); return false; } - public boolean equals(get_file_metadata_result that) { + public boolean equals(get_current_notificationEventId_result that) { if (that == null) return false; @@ -179238,7 +176040,7 @@ public int hashCode() { } @Override - public int compareTo(get_file_metadata_result other) { + public int compareTo(get_current_notificationEventId_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -179272,7 +176074,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_file_metadata_result("); + StringBuilder sb = new StringBuilder("get_current_notificationEventId_result("); boolean first = true; sb.append("success:"); @@ -179310,15 +176112,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_file_metadata_resultStandardSchemeFactory implements SchemeFactory { - public get_file_metadata_resultStandardScheme getScheme() { - return new get_file_metadata_resultStandardScheme(); + private static class get_current_notificationEventId_resultStandardSchemeFactory implements SchemeFactory { + public get_current_notificationEventId_resultStandardScheme getScheme() { + return new get_current_notificationEventId_resultStandardScheme(); } } - private static class get_file_metadata_resultStandardScheme extends StandardScheme { + private static class get_current_notificationEventId_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_file_metadata_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_current_notificationEventId_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -179330,7 +176132,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_file_metadata_r switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new GetFileMetadataResult(); + struct.success = new CurrentNotificationEventId(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -179346,7 +176148,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_file_metadata_r struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_file_metadata_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_current_notificationEventId_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -179361,16 +176163,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_file_metadata_ } - private static class get_file_metadata_resultTupleSchemeFactory implements SchemeFactory { - public get_file_metadata_resultTupleScheme getScheme() { - return new get_file_metadata_resultTupleScheme(); + private static class get_current_notificationEventId_resultTupleSchemeFactory implements SchemeFactory { + public get_current_notificationEventId_resultTupleScheme getScheme() { + return new get_current_notificationEventId_resultTupleScheme(); } } - private static class get_file_metadata_resultTupleScheme extends TupleScheme { + private static class get_current_notificationEventId_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_current_notificationEventId_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -179383,11 +176185,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_r } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_current_notificationEventId_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = new GetFileMetadataResult(); + struct.success = new CurrentNotificationEventId(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -179396,22 +176198,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_re } - public static class put_file_metadata_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("put_file_metadata_args"); + 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"); - private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField 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 put_file_metadata_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new put_file_metadata_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new fire_listener_event_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new fire_listener_event_argsTupleSchemeFactory()); } - private PutFileMetadataRequest req; // required + private FireEventRequest 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 { - REQ((short)1, "req"); + RQST((short)1, "rqst"); private static final Map byName = new HashMap(); @@ -179426,8 +176228,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_re */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQ - return REQ; + case 1: // RQST + return RQST; default: return null; } @@ -179471,70 +176273,70 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PutFileMetadataRequest.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, FireEventRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(put_file_metadata_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fire_listener_event_args.class, metaDataMap); } - public put_file_metadata_args() { + public fire_listener_event_args() { } - public put_file_metadata_args( - PutFileMetadataRequest req) + public fire_listener_event_args( + FireEventRequest rqst) { this(); - this.req = req; + this.rqst = rqst; } /** * Performs a deep copy on other. */ - public put_file_metadata_args(put_file_metadata_args other) { - if (other.isSetReq()) { - this.req = new PutFileMetadataRequest(other.req); + public fire_listener_event_args(fire_listener_event_args other) { + if (other.isSetRqst()) { + this.rqst = new FireEventRequest(other.rqst); } } - public put_file_metadata_args deepCopy() { - return new put_file_metadata_args(this); + public fire_listener_event_args deepCopy() { + return new fire_listener_event_args(this); } @Override public void clear() { - this.req = null; + this.rqst = null; } - public PutFileMetadataRequest getReq() { - return this.req; + public FireEventRequest getRqst() { + return this.rqst; } - public void setReq(PutFileMetadataRequest req) { - this.req = req; + public void setRqst(FireEventRequest rqst) { + this.rqst = rqst; } - public void unsetReq() { - this.req = null; + public void unsetRqst() { + this.rqst = null; } - /** Returns true if field req is set (has been assigned a value) and false otherwise */ - public boolean isSetReq() { - return this.req != null; + /** Returns true if field rqst is set (has been assigned a value) and false otherwise */ + public boolean isSetRqst() { + return this.rqst != null; } - public void setReqIsSet(boolean value) { + public void setRqstIsSet(boolean value) { if (!value) { - this.req = null; + this.rqst = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQ: + case RQST: if (value == null) { - unsetReq(); + unsetRqst(); } else { - setReq((PutFileMetadataRequest)value); + setRqst((FireEventRequest)value); } break; @@ -179543,8 +176345,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case REQ: - return getReq(); + case RQST: + return getRqst(); } throw new IllegalStateException(); @@ -179557,8 +176359,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQ: - return isSetReq(); + case RQST: + return isSetRqst(); } throw new IllegalStateException(); } @@ -179567,21 +176369,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof put_file_metadata_args) - return this.equals((put_file_metadata_args)that); + if (that instanceof fire_listener_event_args) + return this.equals((fire_listener_event_args)that); return false; } - public boolean equals(put_file_metadata_args that) { + public boolean equals(fire_listener_event_args that) { if (that == null) return false; - boolean this_present_req = true && this.isSetReq(); - boolean that_present_req = true && that.isSetReq(); - if (this_present_req || that_present_req) { - if (!(this_present_req && that_present_req)) + boolean this_present_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.req.equals(that.req)) + if (!this.rqst.equals(that.rqst)) return false; } @@ -179592,28 +176394,28 @@ public boolean equals(put_file_metadata_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_req = true && (isSetReq()); - list.add(present_req); - if (present_req) - list.add(req); + boolean present_rqst = true && (isSetRqst()); + list.add(present_rqst); + if (present_rqst) + list.add(rqst); return list.hashCode(); } @Override - public int compareTo(put_file_metadata_args other) { + public int compareTo(fire_listener_event_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); if (lastComparison != 0) { return lastComparison; } - if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + if (isSetRqst()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); if (lastComparison != 0) { return lastComparison; } @@ -179635,14 +176437,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("put_file_metadata_args("); + StringBuilder sb = new StringBuilder("fire_listener_event_args("); boolean first = true; - sb.append("req:"); - if (this.req == null) { + sb.append("rqst:"); + if (this.rqst == null) { sb.append("null"); } else { - sb.append(this.req); + sb.append(this.rqst); } first = false; sb.append(")"); @@ -179652,8 +176454,8 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (req != null) { - req.validate(); + if (rqst != null) { + rqst.validate(); } } @@ -179673,15 +176475,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class put_file_metadata_argsStandardSchemeFactory implements SchemeFactory { - public put_file_metadata_argsStandardScheme getScheme() { - return new put_file_metadata_argsStandardScheme(); + private static class fire_listener_event_argsStandardSchemeFactory implements SchemeFactory { + public fire_listener_event_argsStandardScheme getScheme() { + return new fire_listener_event_argsStandardScheme(); } } - private static class put_file_metadata_argsStandardScheme extends StandardScheme { + private static class fire_listener_event_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, put_file_metadata_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, fire_listener_event_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -179691,11 +176493,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, put_file_metadata_a break; } switch (schemeField.id) { - case 1: // REQ + case 1: // RQST if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new PutFileMetadataRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + struct.rqst = new FireEventRequest(); + struct.rqst.read(iprot); + struct.setRqstIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -179709,13 +176511,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, put_file_metadata_a struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, put_file_metadata_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, fire_listener_event_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - struct.req.write(oprot); + if (struct.rqst != null) { + oprot.writeFieldBegin(RQST_FIELD_DESC); + struct.rqst.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -179724,53 +176526,53 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, put_file_metadata_ } - private static class put_file_metadata_argsTupleSchemeFactory implements SchemeFactory { - public put_file_metadata_argsTupleScheme getScheme() { - return new put_file_metadata_argsTupleScheme(); + private static class fire_listener_event_argsTupleSchemeFactory implements SchemeFactory { + public fire_listener_event_argsTupleScheme getScheme() { + return new fire_listener_event_argsTupleScheme(); } } - private static class put_file_metadata_argsTupleScheme extends TupleScheme { + private static class fire_listener_event_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, put_file_metadata_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, fire_listener_event_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetReq()) { + if (struct.isSetRqst()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetReq()) { - struct.req.write(oprot); + if (struct.isSetRqst()) { + struct.rqst.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, put_file_metadata_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, fire_listener_event_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.req = new PutFileMetadataRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + struct.rqst = new FireEventRequest(); + struct.rqst.read(iprot); + struct.setRqstIsSet(true); } } } } - public static class put_file_metadata_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("put_file_metadata_result"); + public static class fire_listener_event_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("fire_listener_event_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 put_file_metadata_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new put_file_metadata_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new fire_listener_event_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new fire_listener_event_resultTupleSchemeFactory()); } - private PutFileMetadataResult success; // required + private FireEventResponse 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 { @@ -179835,16 +176637,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, PutFileMetadataResult.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FireEventResponse.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(put_file_metadata_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fire_listener_event_result.class, metaDataMap); } - public put_file_metadata_result() { + public fire_listener_event_result() { } - public put_file_metadata_result( - PutFileMetadataResult success) + public fire_listener_event_result( + FireEventResponse success) { this(); this.success = success; @@ -179853,14 +176655,14 @@ public put_file_metadata_result( /** * Performs a deep copy on other. */ - public put_file_metadata_result(put_file_metadata_result other) { + public fire_listener_event_result(fire_listener_event_result other) { if (other.isSetSuccess()) { - this.success = new PutFileMetadataResult(other.success); + this.success = new FireEventResponse(other.success); } } - public put_file_metadata_result deepCopy() { - return new put_file_metadata_result(this); + public fire_listener_event_result deepCopy() { + return new fire_listener_event_result(this); } @Override @@ -179868,11 +176670,11 @@ public void clear() { this.success = null; } - public PutFileMetadataResult getSuccess() { + public FireEventResponse getSuccess() { return this.success; } - public void setSuccess(PutFileMetadataResult success) { + public void setSuccess(FireEventResponse success) { this.success = success; } @@ -179897,7 +176699,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((PutFileMetadataResult)value); + setSuccess((FireEventResponse)value); } break; @@ -179930,12 +176732,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof put_file_metadata_result) - return this.equals((put_file_metadata_result)that); + if (that instanceof fire_listener_event_result) + return this.equals((fire_listener_event_result)that); return false; } - public boolean equals(put_file_metadata_result that) { + public boolean equals(fire_listener_event_result that) { if (that == null) return false; @@ -179964,7 +176766,7 @@ public int hashCode() { } @Override - public int compareTo(put_file_metadata_result other) { + public int compareTo(fire_listener_event_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -179998,7 +176800,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("put_file_metadata_result("); + StringBuilder sb = new StringBuilder("fire_listener_event_result("); boolean first = true; sb.append("success:"); @@ -180036,15 +176838,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class put_file_metadata_resultStandardSchemeFactory implements SchemeFactory { - public put_file_metadata_resultStandardScheme getScheme() { - return new put_file_metadata_resultStandardScheme(); + private static class fire_listener_event_resultStandardSchemeFactory implements SchemeFactory { + public fire_listener_event_resultStandardScheme getScheme() { + return new fire_listener_event_resultStandardScheme(); } } - private static class put_file_metadata_resultStandardScheme extends StandardScheme { + private static class fire_listener_event_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, put_file_metadata_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, fire_listener_event_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -180056,7 +176858,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, put_file_metadata_r switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new PutFileMetadataResult(); + struct.success = new FireEventResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -180072,7 +176874,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, put_file_metadata_r struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, put_file_metadata_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, fire_listener_event_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -180087,16 +176889,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, put_file_metadata_ } - private static class put_file_metadata_resultTupleSchemeFactory implements SchemeFactory { - public put_file_metadata_resultTupleScheme getScheme() { - return new put_file_metadata_resultTupleScheme(); + private static class fire_listener_event_resultTupleSchemeFactory implements SchemeFactory { + public fire_listener_event_resultTupleScheme getScheme() { + return new fire_listener_event_resultTupleScheme(); } } - private static class put_file_metadata_resultTupleScheme extends TupleScheme { + private static class fire_listener_event_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, put_file_metadata_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, fire_listener_event_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -180109,11 +176911,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, put_file_metadata_r } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, put_file_metadata_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, fire_listener_event_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = new PutFileMetadataResult(); + struct.success = new FireEventResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -180122,22 +176924,20 @@ public void read(org.apache.thrift.protocol.TProtocol prot, put_file_metadata_re } - public static class clear_file_metadata_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("clear_file_metadata_args"); + public static class flushCache_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("flushCache_args"); - private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new clear_file_metadata_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new clear_file_metadata_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new flushCache_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new flushCache_argsTupleSchemeFactory()); } - private ClearFileMetadataRequest req; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - REQ((short)1, "req"); +; private static final Map byName = new HashMap(); @@ -180152,8 +176952,6 @@ public void read(org.apache.thrift.protocol.TProtocol prot, put_file_metadata_re */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQ - return REQ; default: return null; } @@ -180192,86 +176990,37 @@ public String getFieldName() { return _fieldName; } } - - // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ClearFileMetadataRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clear_file_metadata_args.class, metaDataMap); - } - - public clear_file_metadata_args() { + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(flushCache_args.class, metaDataMap); } - public clear_file_metadata_args( - ClearFileMetadataRequest req) - { - this(); - this.req = req; + public flushCache_args() { } /** * Performs a deep copy on other. */ - public clear_file_metadata_args(clear_file_metadata_args other) { - if (other.isSetReq()) { - this.req = new ClearFileMetadataRequest(other.req); - } + public flushCache_args(flushCache_args other) { } - public clear_file_metadata_args deepCopy() { - return new clear_file_metadata_args(this); + public flushCache_args deepCopy() { + return new flushCache_args(this); } @Override public void clear() { - this.req = null; - } - - public ClearFileMetadataRequest getReq() { - return this.req; - } - - public void setReq(ClearFileMetadataRequest req) { - this.req = req; - } - - public void unsetReq() { - this.req = null; - } - - /** Returns true if field req is set (has been assigned a value) and false otherwise */ - public boolean isSetReq() { - return this.req != null; - } - - public void setReqIsSet(boolean value) { - if (!value) { - this.req = null; - } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQ: - if (value == null) { - unsetReq(); - } else { - setReq((ClearFileMetadataRequest)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { - case REQ: - return getReq(); - } throw new IllegalStateException(); } @@ -180283,8 +177032,6 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQ: - return isSetReq(); } throw new IllegalStateException(); } @@ -180293,24 +177040,15 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof clear_file_metadata_args) - return this.equals((clear_file_metadata_args)that); + if (that instanceof flushCache_args) + return this.equals((flushCache_args)that); return false; } - public boolean equals(clear_file_metadata_args that) { + public boolean equals(flushCache_args that) { if (that == null) return false; - boolean this_present_req = true && this.isSetReq(); - boolean that_present_req = true && that.isSetReq(); - if (this_present_req || that_present_req) { - if (!(this_present_req && that_present_req)) - return false; - if (!this.req.equals(that.req)) - return false; - } - return true; } @@ -180318,32 +177056,17 @@ public boolean equals(clear_file_metadata_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_req = true && (isSetReq()); - list.add(present_req); - if (present_req) - list.add(req); - return list.hashCode(); } @Override - public int compareTo(clear_file_metadata_args other) { + public int compareTo(flushCache_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -180361,16 +177084,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("clear_file_metadata_args("); + StringBuilder sb = new StringBuilder("flushCache_args("); boolean first = true; - sb.append("req:"); - if (this.req == null) { - sb.append("null"); - } else { - sb.append(this.req); - } - first = false; sb.append(")"); return sb.toString(); } @@ -180378,9 +177094,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (req != null) { - req.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -180399,15 +177112,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class clear_file_metadata_argsStandardSchemeFactory implements SchemeFactory { - public clear_file_metadata_argsStandardScheme getScheme() { - return new clear_file_metadata_argsStandardScheme(); + private static class flushCache_argsStandardSchemeFactory implements SchemeFactory { + public flushCache_argsStandardScheme getScheme() { + return new flushCache_argsStandardScheme(); } } - private static class clear_file_metadata_argsStandardScheme extends StandardScheme { + private static class flushCache_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, clear_file_metadata_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, flushCache_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -180417,15 +177130,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, clear_file_metadata break; } switch (schemeField.id) { - case 1: // REQ - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new ClearFileMetadataRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -180435,72 +177139,51 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, clear_file_metadata struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, clear_file_metadata_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, flushCache_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - struct.req.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class clear_file_metadata_argsTupleSchemeFactory implements SchemeFactory { - public clear_file_metadata_argsTupleScheme getScheme() { - return new clear_file_metadata_argsTupleScheme(); + private static class flushCache_argsTupleSchemeFactory implements SchemeFactory { + public flushCache_argsTupleScheme getScheme() { + return new flushCache_argsTupleScheme(); } } - private static class clear_file_metadata_argsTupleScheme extends TupleScheme { + private static class flushCache_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, clear_file_metadata_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, flushCache_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetReq()) { - optionals.set(0); - } - oprot.writeBitSet(optionals, 1); - if (struct.isSetReq()) { - struct.req.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, clear_file_metadata_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, flushCache_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.req = new ClearFileMetadataRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); - } } } } - public static class clear_file_metadata_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("clear_file_metadata_result"); + public static class flushCache_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("flushCache_result"); - private static final 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 clear_file_metadata_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new clear_file_metadata_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new flushCache_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new flushCache_resultTupleSchemeFactory()); } - private ClearFileMetadataResult 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(); @@ -180515,8 +177198,6 @@ public void read(org.apache.thrift.protocol.TProtocol prot, clear_file_metadata_ */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; default: return null; } @@ -180555,86 +177236,37 @@ 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, ClearFileMetadataResult.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clear_file_metadata_result.class, metaDataMap); - } - - public clear_file_metadata_result() { + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(flushCache_result.class, metaDataMap); } - public clear_file_metadata_result( - ClearFileMetadataResult success) - { - this(); - this.success = success; + public flushCache_result() { } /** * Performs a deep copy on other. */ - public clear_file_metadata_result(clear_file_metadata_result other) { - if (other.isSetSuccess()) { - this.success = new ClearFileMetadataResult(other.success); - } + public flushCache_result(flushCache_result other) { } - public clear_file_metadata_result deepCopy() { - return new clear_file_metadata_result(this); + public flushCache_result deepCopy() { + return new flushCache_result(this); } @Override public void clear() { - this.success = null; - } - - public ClearFileMetadataResult getSuccess() { - return this.success; - } - - public void setSuccess(ClearFileMetadataResult 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((ClearFileMetadataResult)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - } throw new IllegalStateException(); } @@ -180646,8 +177278,6 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); } throw new IllegalStateException(); } @@ -180656,24 +177286,15 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof clear_file_metadata_result) - return this.equals((clear_file_metadata_result)that); + if (that instanceof flushCache_result) + return this.equals((flushCache_result)that); return false; } - public boolean equals(clear_file_metadata_result that) { + public boolean equals(flushCache_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; } @@ -180681,32 +177302,17 @@ public boolean equals(clear_file_metadata_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); - return list.hashCode(); } @Override - public int compareTo(clear_file_metadata_result other) { + public int compareTo(flushCache_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; } @@ -180724,16 +177330,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("clear_file_metadata_result("); + StringBuilder sb = new StringBuilder("flushCache_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(); } @@ -180741,9 +177340,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -180762,15 +177358,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class clear_file_metadata_resultStandardSchemeFactory implements SchemeFactory { - public clear_file_metadata_resultStandardScheme getScheme() { - return new clear_file_metadata_resultStandardScheme(); + private static class flushCache_resultStandardSchemeFactory implements SchemeFactory { + public flushCache_resultStandardScheme getScheme() { + return new flushCache_resultStandardScheme(); } } - private static class clear_file_metadata_resultStandardScheme extends StandardScheme { + private static class flushCache_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, clear_file_metadata_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, flushCache_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -180780,15 +177376,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, clear_file_metadata break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new ClearFileMetadataResult(); - 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); } @@ -180798,68 +177385,49 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, clear_file_metadata struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, clear_file_metadata_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, flushCache_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 clear_file_metadata_resultTupleSchemeFactory implements SchemeFactory { - public clear_file_metadata_resultTupleScheme getScheme() { - return new clear_file_metadata_resultTupleScheme(); + private static class flushCache_resultTupleSchemeFactory implements SchemeFactory { + public flushCache_resultTupleScheme getScheme() { + return new flushCache_resultTupleScheme(); } } - private static class clear_file_metadata_resultTupleScheme extends TupleScheme { + private static class flushCache_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, clear_file_metadata_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, flushCache_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, clear_file_metadata_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, flushCache_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.success = new ClearFileMetadataResult(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } } } } - public static class cache_file_metadata_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("cache_file_metadata_args"); + public static class get_file_metadata_by_expr_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_file_metadata_by_expr_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new cache_file_metadata_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new cache_file_metadata_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_file_metadata_by_expr_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_file_metadata_by_expr_argsTupleSchemeFactory()); } - private CacheFileMetadataRequest req; // required + private GetFileMetadataByExprRequest req; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -180924,16 +177492,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CacheFileMetadataRequest.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetFileMetadataByExprRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(cache_file_metadata_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_file_metadata_by_expr_args.class, metaDataMap); } - public cache_file_metadata_args() { + public get_file_metadata_by_expr_args() { } - public cache_file_metadata_args( - CacheFileMetadataRequest req) + public get_file_metadata_by_expr_args( + GetFileMetadataByExprRequest req) { this(); this.req = req; @@ -180942,14 +177510,14 @@ public cache_file_metadata_args( /** * Performs a deep copy on other. */ - public cache_file_metadata_args(cache_file_metadata_args other) { + public get_file_metadata_by_expr_args(get_file_metadata_by_expr_args other) { if (other.isSetReq()) { - this.req = new CacheFileMetadataRequest(other.req); + this.req = new GetFileMetadataByExprRequest(other.req); } } - public cache_file_metadata_args deepCopy() { - return new cache_file_metadata_args(this); + public get_file_metadata_by_expr_args deepCopy() { + return new get_file_metadata_by_expr_args(this); } @Override @@ -180957,11 +177525,11 @@ public void clear() { this.req = null; } - public CacheFileMetadataRequest getReq() { + public GetFileMetadataByExprRequest getReq() { return this.req; } - public void setReq(CacheFileMetadataRequest req) { + public void setReq(GetFileMetadataByExprRequest req) { this.req = req; } @@ -180986,7 +177554,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetReq(); } else { - setReq((CacheFileMetadataRequest)value); + setReq((GetFileMetadataByExprRequest)value); } break; @@ -181019,12 +177587,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof cache_file_metadata_args) - return this.equals((cache_file_metadata_args)that); + if (that instanceof get_file_metadata_by_expr_args) + return this.equals((get_file_metadata_by_expr_args)that); return false; } - public boolean equals(cache_file_metadata_args that) { + public boolean equals(get_file_metadata_by_expr_args that) { if (that == null) return false; @@ -181053,7 +177621,7 @@ public int hashCode() { } @Override - public int compareTo(cache_file_metadata_args other) { + public int compareTo(get_file_metadata_by_expr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -181087,7 +177655,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("cache_file_metadata_args("); + StringBuilder sb = new StringBuilder("get_file_metadata_by_expr_args("); boolean first = true; sb.append("req:"); @@ -181125,15 +177693,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class cache_file_metadata_argsStandardSchemeFactory implements SchemeFactory { - public cache_file_metadata_argsStandardScheme getScheme() { - return new cache_file_metadata_argsStandardScheme(); + private static class get_file_metadata_by_expr_argsStandardSchemeFactory implements SchemeFactory { + public get_file_metadata_by_expr_argsStandardScheme getScheme() { + return new get_file_metadata_by_expr_argsStandardScheme(); } } - private static class cache_file_metadata_argsStandardScheme extends StandardScheme { + private static class get_file_metadata_by_expr_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, cache_file_metadata_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_file_metadata_by_expr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -181145,7 +177713,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, cache_file_metadata switch (schemeField.id) { case 1: // REQ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new CacheFileMetadataRequest(); + struct.req = new GetFileMetadataByExprRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } else { @@ -181161,7 +177729,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, cache_file_metadata struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, cache_file_metadata_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_file_metadata_by_expr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -181176,16 +177744,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, cache_file_metadat } - private static class cache_file_metadata_argsTupleSchemeFactory implements SchemeFactory { - public cache_file_metadata_argsTupleScheme getScheme() { - return new cache_file_metadata_argsTupleScheme(); + private static class get_file_metadata_by_expr_argsTupleSchemeFactory implements SchemeFactory { + public get_file_metadata_by_expr_argsTupleScheme getScheme() { + return new get_file_metadata_by_expr_argsTupleScheme(); } } - private static class cache_file_metadata_argsTupleScheme extends TupleScheme { + private static class get_file_metadata_by_expr_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, cache_file_metadata_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_by_expr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetReq()) { @@ -181198,11 +177766,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, cache_file_metadata } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, cache_file_metadata_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_by_expr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.req = new CacheFileMetadataRequest(); + struct.req = new GetFileMetadataByExprRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } @@ -181211,18 +177779,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, cache_file_metadata_ } - public static class cache_file_metadata_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("cache_file_metadata_result"); + public static class get_file_metadata_by_expr_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_file_metadata_by_expr_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 cache_file_metadata_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new cache_file_metadata_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_file_metadata_by_expr_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_file_metadata_by_expr_resultTupleSchemeFactory()); } - private CacheFileMetadataResult success; // required + private GetFileMetadataByExprResult 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 { @@ -181287,16 +177855,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, CacheFileMetadataResult.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetFileMetadataByExprResult.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(cache_file_metadata_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_file_metadata_by_expr_result.class, metaDataMap); } - public cache_file_metadata_result() { + public get_file_metadata_by_expr_result() { } - public cache_file_metadata_result( - CacheFileMetadataResult success) + public get_file_metadata_by_expr_result( + GetFileMetadataByExprResult success) { this(); this.success = success; @@ -181305,14 +177873,14 @@ public cache_file_metadata_result( /** * Performs a deep copy on other. */ - public cache_file_metadata_result(cache_file_metadata_result other) { + public get_file_metadata_by_expr_result(get_file_metadata_by_expr_result other) { if (other.isSetSuccess()) { - this.success = new CacheFileMetadataResult(other.success); + this.success = new GetFileMetadataByExprResult(other.success); } } - public cache_file_metadata_result deepCopy() { - return new cache_file_metadata_result(this); + public get_file_metadata_by_expr_result deepCopy() { + return new get_file_metadata_by_expr_result(this); } @Override @@ -181320,11 +177888,11 @@ public void clear() { this.success = null; } - public CacheFileMetadataResult getSuccess() { + public GetFileMetadataByExprResult getSuccess() { return this.success; } - public void setSuccess(CacheFileMetadataResult success) { + public void setSuccess(GetFileMetadataByExprResult success) { this.success = success; } @@ -181349,7 +177917,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((CacheFileMetadataResult)value); + setSuccess((GetFileMetadataByExprResult)value); } break; @@ -181382,12 +177950,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof cache_file_metadata_result) - return this.equals((cache_file_metadata_result)that); + if (that instanceof get_file_metadata_by_expr_result) + return this.equals((get_file_metadata_by_expr_result)that); return false; } - public boolean equals(cache_file_metadata_result that) { + public boolean equals(get_file_metadata_by_expr_result that) { if (that == null) return false; @@ -181416,7 +177984,7 @@ public int hashCode() { } @Override - public int compareTo(cache_file_metadata_result other) { + public int compareTo(get_file_metadata_by_expr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -181450,7 +178018,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("cache_file_metadata_result("); + StringBuilder sb = new StringBuilder("get_file_metadata_by_expr_result("); boolean first = true; sb.append("success:"); @@ -181488,15 +178056,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class cache_file_metadata_resultStandardSchemeFactory implements SchemeFactory { - public cache_file_metadata_resultStandardScheme getScheme() { - return new cache_file_metadata_resultStandardScheme(); + private static class get_file_metadata_by_expr_resultStandardSchemeFactory implements SchemeFactory { + public get_file_metadata_by_expr_resultStandardScheme getScheme() { + return new get_file_metadata_by_expr_resultStandardScheme(); } } - private static class cache_file_metadata_resultStandardScheme extends StandardScheme { + private static class get_file_metadata_by_expr_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, cache_file_metadata_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_file_metadata_by_expr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -181508,7 +178076,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, cache_file_metadata switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new CacheFileMetadataResult(); + struct.success = new GetFileMetadataByExprResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -181524,7 +178092,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, cache_file_metadata struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, cache_file_metadata_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_file_metadata_by_expr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -181539,16 +178107,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, cache_file_metadat } - private static class cache_file_metadata_resultTupleSchemeFactory implements SchemeFactory { - public cache_file_metadata_resultTupleScheme getScheme() { - return new cache_file_metadata_resultTupleScheme(); + private static class get_file_metadata_by_expr_resultTupleSchemeFactory implements SchemeFactory { + public get_file_metadata_by_expr_resultTupleScheme getScheme() { + return new get_file_metadata_by_expr_resultTupleScheme(); } } - private static class cache_file_metadata_resultTupleScheme extends TupleScheme { + private static class get_file_metadata_by_expr_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, cache_file_metadata_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_by_expr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -181561,11 +178129,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, cache_file_metadata } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, cache_file_metadata_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_by_expr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = new CacheFileMetadataResult(); + struct.success = new GetFileMetadataByExprResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -181574,18 +178142,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, cache_file_metadata_ } - public static class get_next_write_id_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_next_write_id_args"); + public static class get_file_metadata_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_file_metadata_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_next_write_id_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_next_write_id_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_file_metadata_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_file_metadata_argsTupleSchemeFactory()); } - private GetNextWriteIdRequest req; // required + private GetFileMetadataRequest req; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -181650,16 +178218,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetNextWriteIdRequest.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetFileMetadataRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_next_write_id_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_file_metadata_args.class, metaDataMap); } - public get_next_write_id_args() { + public get_file_metadata_args() { } - public get_next_write_id_args( - GetNextWriteIdRequest req) + public get_file_metadata_args( + GetFileMetadataRequest req) { this(); this.req = req; @@ -181668,14 +178236,14 @@ public get_next_write_id_args( /** * Performs a deep copy on other. */ - public get_next_write_id_args(get_next_write_id_args other) { + public get_file_metadata_args(get_file_metadata_args other) { if (other.isSetReq()) { - this.req = new GetNextWriteIdRequest(other.req); + this.req = new GetFileMetadataRequest(other.req); } } - public get_next_write_id_args deepCopy() { - return new get_next_write_id_args(this); + public get_file_metadata_args deepCopy() { + return new get_file_metadata_args(this); } @Override @@ -181683,11 +178251,11 @@ public void clear() { this.req = null; } - public GetNextWriteIdRequest getReq() { + public GetFileMetadataRequest getReq() { return this.req; } - public void setReq(GetNextWriteIdRequest req) { + public void setReq(GetFileMetadataRequest req) { this.req = req; } @@ -181712,7 +178280,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetReq(); } else { - setReq((GetNextWriteIdRequest)value); + setReq((GetFileMetadataRequest)value); } break; @@ -181745,12 +178313,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_next_write_id_args) - return this.equals((get_next_write_id_args)that); + if (that instanceof get_file_metadata_args) + return this.equals((get_file_metadata_args)that); return false; } - public boolean equals(get_next_write_id_args that) { + public boolean equals(get_file_metadata_args that) { if (that == null) return false; @@ -181779,7 +178347,7 @@ public int hashCode() { } @Override - public int compareTo(get_next_write_id_args other) { + public int compareTo(get_file_metadata_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -181813,7 +178381,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_next_write_id_args("); + StringBuilder sb = new StringBuilder("get_file_metadata_args("); boolean first = true; sb.append("req:"); @@ -181851,15 +178419,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_next_write_id_argsStandardSchemeFactory implements SchemeFactory { - public get_next_write_id_argsStandardScheme getScheme() { - return new get_next_write_id_argsStandardScheme(); + private static class get_file_metadata_argsStandardSchemeFactory implements SchemeFactory { + public get_file_metadata_argsStandardScheme getScheme() { + return new get_file_metadata_argsStandardScheme(); } } - private static class get_next_write_id_argsStandardScheme extends StandardScheme { + private static class get_file_metadata_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_next_write_id_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_file_metadata_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -181871,7 +178439,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_next_write_id_a switch (schemeField.id) { case 1: // REQ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new GetNextWriteIdRequest(); + struct.req = new GetFileMetadataRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } else { @@ -181887,7 +178455,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_next_write_id_a struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_next_write_id_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_file_metadata_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -181902,16 +178470,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_next_write_id_ } - private static class get_next_write_id_argsTupleSchemeFactory implements SchemeFactory { - public get_next_write_id_argsTupleScheme getScheme() { - return new get_next_write_id_argsTupleScheme(); + private static class get_file_metadata_argsTupleSchemeFactory implements SchemeFactory { + public get_file_metadata_argsTupleScheme getScheme() { + return new get_file_metadata_argsTupleScheme(); } } - private static class get_next_write_id_argsTupleScheme extends TupleScheme { + private static class get_file_metadata_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_next_write_id_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetReq()) { @@ -181924,11 +178492,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_next_write_id_a } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_next_write_id_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.req = new GetNextWriteIdRequest(); + struct.req = new GetFileMetadataRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } @@ -181937,18 +178505,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_next_write_id_ar } - public static class get_next_write_id_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_next_write_id_result"); + public static class get_file_metadata_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_file_metadata_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_next_write_id_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_next_write_id_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_file_metadata_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_file_metadata_resultTupleSchemeFactory()); } - private GetNextWriteIdResult success; // required + private GetFileMetadataResult 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 { @@ -182013,16 +178581,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, GetNextWriteIdResult.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetFileMetadataResult.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_next_write_id_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_file_metadata_result.class, metaDataMap); } - public get_next_write_id_result() { + public get_file_metadata_result() { } - public get_next_write_id_result( - GetNextWriteIdResult success) + public get_file_metadata_result( + GetFileMetadataResult success) { this(); this.success = success; @@ -182031,14 +178599,14 @@ public get_next_write_id_result( /** * Performs a deep copy on other. */ - public get_next_write_id_result(get_next_write_id_result other) { + public get_file_metadata_result(get_file_metadata_result other) { if (other.isSetSuccess()) { - this.success = new GetNextWriteIdResult(other.success); + this.success = new GetFileMetadataResult(other.success); } } - public get_next_write_id_result deepCopy() { - return new get_next_write_id_result(this); + public get_file_metadata_result deepCopy() { + return new get_file_metadata_result(this); } @Override @@ -182046,11 +178614,11 @@ public void clear() { this.success = null; } - public GetNextWriteIdResult getSuccess() { + public GetFileMetadataResult getSuccess() { return this.success; } - public void setSuccess(GetNextWriteIdResult success) { + public void setSuccess(GetFileMetadataResult success) { this.success = success; } @@ -182075,7 +178643,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((GetNextWriteIdResult)value); + setSuccess((GetFileMetadataResult)value); } break; @@ -182108,12 +178676,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_next_write_id_result) - return this.equals((get_next_write_id_result)that); + if (that instanceof get_file_metadata_result) + return this.equals((get_file_metadata_result)that); return false; } - public boolean equals(get_next_write_id_result that) { + public boolean equals(get_file_metadata_result that) { if (that == null) return false; @@ -182142,7 +178710,7 @@ public int hashCode() { } @Override - public int compareTo(get_next_write_id_result other) { + public int compareTo(get_file_metadata_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -182176,7 +178744,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_next_write_id_result("); + StringBuilder sb = new StringBuilder("get_file_metadata_result("); boolean first = true; sb.append("success:"); @@ -182214,15 +178782,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_next_write_id_resultStandardSchemeFactory implements SchemeFactory { - public get_next_write_id_resultStandardScheme getScheme() { - return new get_next_write_id_resultStandardScheme(); + private static class get_file_metadata_resultStandardSchemeFactory implements SchemeFactory { + public get_file_metadata_resultStandardScheme getScheme() { + return new get_file_metadata_resultStandardScheme(); } } - private static class get_next_write_id_resultStandardScheme extends StandardScheme { + private static class get_file_metadata_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_next_write_id_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_file_metadata_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -182234,7 +178802,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_next_write_id_r switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new GetNextWriteIdResult(); + struct.success = new GetFileMetadataResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -182250,7 +178818,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_next_write_id_r struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_next_write_id_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_file_metadata_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -182265,16 +178833,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_next_write_id_ } - private static class get_next_write_id_resultTupleSchemeFactory implements SchemeFactory { - public get_next_write_id_resultTupleScheme getScheme() { - return new get_next_write_id_resultTupleScheme(); + private static class get_file_metadata_resultTupleSchemeFactory implements SchemeFactory { + public get_file_metadata_resultTupleScheme getScheme() { + return new get_file_metadata_resultTupleScheme(); } } - private static class get_next_write_id_resultTupleScheme extends TupleScheme { + private static class get_file_metadata_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_next_write_id_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -182287,11 +178855,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_next_write_id_r } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_next_write_id_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = new GetNextWriteIdResult(); + struct.success = new GetFileMetadataResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -182300,18 +178868,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_next_write_id_re } - public static class finalize_write_id_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("finalize_write_id_args"); + public static class put_file_metadata_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("put_file_metadata_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new finalize_write_id_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new finalize_write_id_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new put_file_metadata_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new put_file_metadata_argsTupleSchemeFactory()); } - private FinalizeWriteIdRequest req; // required + private PutFileMetadataRequest req; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -182376,16 +178944,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FinalizeWriteIdRequest.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PutFileMetadataRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(finalize_write_id_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(put_file_metadata_args.class, metaDataMap); } - public finalize_write_id_args() { + public put_file_metadata_args() { } - public finalize_write_id_args( - FinalizeWriteIdRequest req) + public put_file_metadata_args( + PutFileMetadataRequest req) { this(); this.req = req; @@ -182394,14 +178962,14 @@ public finalize_write_id_args( /** * Performs a deep copy on other. */ - public finalize_write_id_args(finalize_write_id_args other) { + public put_file_metadata_args(put_file_metadata_args other) { if (other.isSetReq()) { - this.req = new FinalizeWriteIdRequest(other.req); + this.req = new PutFileMetadataRequest(other.req); } } - public finalize_write_id_args deepCopy() { - return new finalize_write_id_args(this); + public put_file_metadata_args deepCopy() { + return new put_file_metadata_args(this); } @Override @@ -182409,11 +178977,11 @@ public void clear() { this.req = null; } - public FinalizeWriteIdRequest getReq() { + public PutFileMetadataRequest getReq() { return this.req; } - public void setReq(FinalizeWriteIdRequest req) { + public void setReq(PutFileMetadataRequest req) { this.req = req; } @@ -182438,7 +179006,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetReq(); } else { - setReq((FinalizeWriteIdRequest)value); + setReq((PutFileMetadataRequest)value); } break; @@ -182471,12 +179039,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof finalize_write_id_args) - return this.equals((finalize_write_id_args)that); + if (that instanceof put_file_metadata_args) + return this.equals((put_file_metadata_args)that); return false; } - public boolean equals(finalize_write_id_args that) { + public boolean equals(put_file_metadata_args that) { if (that == null) return false; @@ -182505,7 +179073,7 @@ public int hashCode() { } @Override - public int compareTo(finalize_write_id_args other) { + public int compareTo(put_file_metadata_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -182539,7 +179107,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("finalize_write_id_args("); + StringBuilder sb = new StringBuilder("put_file_metadata_args("); boolean first = true; sb.append("req:"); @@ -182577,15 +179145,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class finalize_write_id_argsStandardSchemeFactory implements SchemeFactory { - public finalize_write_id_argsStandardScheme getScheme() { - return new finalize_write_id_argsStandardScheme(); + private static class put_file_metadata_argsStandardSchemeFactory implements SchemeFactory { + public put_file_metadata_argsStandardScheme getScheme() { + return new put_file_metadata_argsStandardScheme(); } } - private static class finalize_write_id_argsStandardScheme extends StandardScheme { + private static class put_file_metadata_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, finalize_write_id_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, put_file_metadata_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -182597,7 +179165,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, finalize_write_id_a switch (schemeField.id) { case 1: // REQ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new FinalizeWriteIdRequest(); + struct.req = new PutFileMetadataRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } else { @@ -182613,7 +179181,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, finalize_write_id_a struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, finalize_write_id_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, put_file_metadata_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -182628,16 +179196,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, finalize_write_id_ } - private static class finalize_write_id_argsTupleSchemeFactory implements SchemeFactory { - public finalize_write_id_argsTupleScheme getScheme() { - return new finalize_write_id_argsTupleScheme(); + private static class put_file_metadata_argsTupleSchemeFactory implements SchemeFactory { + public put_file_metadata_argsTupleScheme getScheme() { + return new put_file_metadata_argsTupleScheme(); } } - private static class finalize_write_id_argsTupleScheme extends TupleScheme { + private static class put_file_metadata_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, finalize_write_id_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, put_file_metadata_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetReq()) { @@ -182650,11 +179218,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, finalize_write_id_a } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, finalize_write_id_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, put_file_metadata_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.req = new FinalizeWriteIdRequest(); + struct.req = new PutFileMetadataRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } @@ -182663,18 +179231,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, finalize_write_id_ar } - public static class finalize_write_id_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("finalize_write_id_result"); + public static class put_file_metadata_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("put_file_metadata_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 finalize_write_id_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new finalize_write_id_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new put_file_metadata_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new put_file_metadata_resultTupleSchemeFactory()); } - private FinalizeWriteIdResult success; // required + private PutFileMetadataResult 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 { @@ -182739,16 +179307,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, FinalizeWriteIdResult.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PutFileMetadataResult.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(finalize_write_id_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(put_file_metadata_result.class, metaDataMap); } - public finalize_write_id_result() { + public put_file_metadata_result() { } - public finalize_write_id_result( - FinalizeWriteIdResult success) + public put_file_metadata_result( + PutFileMetadataResult success) { this(); this.success = success; @@ -182757,14 +179325,14 @@ public finalize_write_id_result( /** * Performs a deep copy on other. */ - public finalize_write_id_result(finalize_write_id_result other) { + public put_file_metadata_result(put_file_metadata_result other) { if (other.isSetSuccess()) { - this.success = new FinalizeWriteIdResult(other.success); + this.success = new PutFileMetadataResult(other.success); } } - public finalize_write_id_result deepCopy() { - return new finalize_write_id_result(this); + public put_file_metadata_result deepCopy() { + return new put_file_metadata_result(this); } @Override @@ -182772,11 +179340,11 @@ public void clear() { this.success = null; } - public FinalizeWriteIdResult getSuccess() { + public PutFileMetadataResult getSuccess() { return this.success; } - public void setSuccess(FinalizeWriteIdResult success) { + public void setSuccess(PutFileMetadataResult success) { this.success = success; } @@ -182801,7 +179369,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((FinalizeWriteIdResult)value); + setSuccess((PutFileMetadataResult)value); } break; @@ -182834,12 +179402,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof finalize_write_id_result) - return this.equals((finalize_write_id_result)that); + if (that instanceof put_file_metadata_result) + return this.equals((put_file_metadata_result)that); return false; } - public boolean equals(finalize_write_id_result that) { + public boolean equals(put_file_metadata_result that) { if (that == null) return false; @@ -182868,7 +179436,7 @@ public int hashCode() { } @Override - public int compareTo(finalize_write_id_result other) { + public int compareTo(put_file_metadata_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -182902,7 +179470,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("finalize_write_id_result("); + StringBuilder sb = new StringBuilder("put_file_metadata_result("); boolean first = true; sb.append("success:"); @@ -182940,15 +179508,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class finalize_write_id_resultStandardSchemeFactory implements SchemeFactory { - public finalize_write_id_resultStandardScheme getScheme() { - return new finalize_write_id_resultStandardScheme(); + private static class put_file_metadata_resultStandardSchemeFactory implements SchemeFactory { + public put_file_metadata_resultStandardScheme getScheme() { + return new put_file_metadata_resultStandardScheme(); } } - private static class finalize_write_id_resultStandardScheme extends StandardScheme { + private static class put_file_metadata_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, finalize_write_id_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, put_file_metadata_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -182960,7 +179528,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, finalize_write_id_r switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new FinalizeWriteIdResult(); + struct.success = new PutFileMetadataResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -182976,7 +179544,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, finalize_write_id_r struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, finalize_write_id_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, put_file_metadata_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -182991,16 +179559,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, finalize_write_id_ } - private static class finalize_write_id_resultTupleSchemeFactory implements SchemeFactory { - public finalize_write_id_resultTupleScheme getScheme() { - return new finalize_write_id_resultTupleScheme(); + private static class put_file_metadata_resultTupleSchemeFactory implements SchemeFactory { + public put_file_metadata_resultTupleScheme getScheme() { + return new put_file_metadata_resultTupleScheme(); } } - private static class finalize_write_id_resultTupleScheme extends TupleScheme { + private static class put_file_metadata_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, finalize_write_id_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, put_file_metadata_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -183013,11 +179581,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, finalize_write_id_r } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, finalize_write_id_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, put_file_metadata_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = new FinalizeWriteIdResult(); + struct.success = new PutFileMetadataResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -183026,18 +179594,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, finalize_write_id_re } - public static class heartbeat_write_id_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("heartbeat_write_id_args"); + public static class clear_file_metadata_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("clear_file_metadata_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new heartbeat_write_id_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new heartbeat_write_id_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new clear_file_metadata_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new clear_file_metadata_argsTupleSchemeFactory()); } - private HeartbeatWriteIdRequest req; // required + private ClearFileMetadataRequest req; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -183102,16 +179670,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HeartbeatWriteIdRequest.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ClearFileMetadataRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(heartbeat_write_id_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clear_file_metadata_args.class, metaDataMap); } - public heartbeat_write_id_args() { + public clear_file_metadata_args() { } - public heartbeat_write_id_args( - HeartbeatWriteIdRequest req) + public clear_file_metadata_args( + ClearFileMetadataRequest req) { this(); this.req = req; @@ -183120,14 +179688,14 @@ public heartbeat_write_id_args( /** * Performs a deep copy on other. */ - public heartbeat_write_id_args(heartbeat_write_id_args other) { + public clear_file_metadata_args(clear_file_metadata_args other) { if (other.isSetReq()) { - this.req = new HeartbeatWriteIdRequest(other.req); + this.req = new ClearFileMetadataRequest(other.req); } } - public heartbeat_write_id_args deepCopy() { - return new heartbeat_write_id_args(this); + public clear_file_metadata_args deepCopy() { + return new clear_file_metadata_args(this); } @Override @@ -183135,11 +179703,11 @@ public void clear() { this.req = null; } - public HeartbeatWriteIdRequest getReq() { + public ClearFileMetadataRequest getReq() { return this.req; } - public void setReq(HeartbeatWriteIdRequest req) { + public void setReq(ClearFileMetadataRequest req) { this.req = req; } @@ -183164,7 +179732,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetReq(); } else { - setReq((HeartbeatWriteIdRequest)value); + setReq((ClearFileMetadataRequest)value); } break; @@ -183197,12 +179765,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof heartbeat_write_id_args) - return this.equals((heartbeat_write_id_args)that); + if (that instanceof clear_file_metadata_args) + return this.equals((clear_file_metadata_args)that); return false; } - public boolean equals(heartbeat_write_id_args that) { + public boolean equals(clear_file_metadata_args that) { if (that == null) return false; @@ -183231,7 +179799,7 @@ public int hashCode() { } @Override - public int compareTo(heartbeat_write_id_args other) { + public int compareTo(clear_file_metadata_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -183265,7 +179833,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("heartbeat_write_id_args("); + StringBuilder sb = new StringBuilder("clear_file_metadata_args("); boolean first = true; sb.append("req:"); @@ -183303,15 +179871,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class heartbeat_write_id_argsStandardSchemeFactory implements SchemeFactory { - public heartbeat_write_id_argsStandardScheme getScheme() { - return new heartbeat_write_id_argsStandardScheme(); + private static class clear_file_metadata_argsStandardSchemeFactory implements SchemeFactory { + public clear_file_metadata_argsStandardScheme getScheme() { + return new clear_file_metadata_argsStandardScheme(); } } - private static class heartbeat_write_id_argsStandardScheme extends StandardScheme { + private static class clear_file_metadata_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_write_id_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, clear_file_metadata_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -183323,7 +179891,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_write_id_ switch (schemeField.id) { case 1: // REQ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new HeartbeatWriteIdRequest(); + struct.req = new ClearFileMetadataRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } else { @@ -183339,7 +179907,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_write_id_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, heartbeat_write_id_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, clear_file_metadata_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -183354,16 +179922,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, heartbeat_write_id } - private static class heartbeat_write_id_argsTupleSchemeFactory implements SchemeFactory { - public heartbeat_write_id_argsTupleScheme getScheme() { - return new heartbeat_write_id_argsTupleScheme(); + private static class clear_file_metadata_argsTupleSchemeFactory implements SchemeFactory { + public clear_file_metadata_argsTupleScheme getScheme() { + return new clear_file_metadata_argsTupleScheme(); } } - private static class heartbeat_write_id_argsTupleScheme extends TupleScheme { + private static class clear_file_metadata_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, heartbeat_write_id_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, clear_file_metadata_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetReq()) { @@ -183376,11 +179944,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, heartbeat_write_id_ } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_write_id_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, clear_file_metadata_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.req = new HeartbeatWriteIdRequest(); + struct.req = new ClearFileMetadataRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } @@ -183389,18 +179957,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_write_id_a } - public static class heartbeat_write_id_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("heartbeat_write_id_result"); + public static class clear_file_metadata_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("clear_file_metadata_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 heartbeat_write_id_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new heartbeat_write_id_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new clear_file_metadata_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new clear_file_metadata_resultTupleSchemeFactory()); } - private HeartbeatWriteIdResult success; // required + private ClearFileMetadataResult 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 { @@ -183465,16 +180033,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, HeartbeatWriteIdResult.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ClearFileMetadataResult.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(heartbeat_write_id_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clear_file_metadata_result.class, metaDataMap); } - public heartbeat_write_id_result() { + public clear_file_metadata_result() { } - public heartbeat_write_id_result( - HeartbeatWriteIdResult success) + public clear_file_metadata_result( + ClearFileMetadataResult success) { this(); this.success = success; @@ -183483,14 +180051,14 @@ public heartbeat_write_id_result( /** * Performs a deep copy on other. */ - public heartbeat_write_id_result(heartbeat_write_id_result other) { + public clear_file_metadata_result(clear_file_metadata_result other) { if (other.isSetSuccess()) { - this.success = new HeartbeatWriteIdResult(other.success); + this.success = new ClearFileMetadataResult(other.success); } } - public heartbeat_write_id_result deepCopy() { - return new heartbeat_write_id_result(this); + public clear_file_metadata_result deepCopy() { + return new clear_file_metadata_result(this); } @Override @@ -183498,11 +180066,11 @@ public void clear() { this.success = null; } - public HeartbeatWriteIdResult getSuccess() { + public ClearFileMetadataResult getSuccess() { return this.success; } - public void setSuccess(HeartbeatWriteIdResult success) { + public void setSuccess(ClearFileMetadataResult success) { this.success = success; } @@ -183527,7 +180095,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((HeartbeatWriteIdResult)value); + setSuccess((ClearFileMetadataResult)value); } break; @@ -183560,12 +180128,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof heartbeat_write_id_result) - return this.equals((heartbeat_write_id_result)that); + if (that instanceof clear_file_metadata_result) + return this.equals((clear_file_metadata_result)that); return false; } - public boolean equals(heartbeat_write_id_result that) { + public boolean equals(clear_file_metadata_result that) { if (that == null) return false; @@ -183594,7 +180162,7 @@ public int hashCode() { } @Override - public int compareTo(heartbeat_write_id_result other) { + public int compareTo(clear_file_metadata_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -183628,7 +180196,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("heartbeat_write_id_result("); + StringBuilder sb = new StringBuilder("clear_file_metadata_result("); boolean first = true; sb.append("success:"); @@ -183666,15 +180234,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class heartbeat_write_id_resultStandardSchemeFactory implements SchemeFactory { - public heartbeat_write_id_resultStandardScheme getScheme() { - return new heartbeat_write_id_resultStandardScheme(); + private static class clear_file_metadata_resultStandardSchemeFactory implements SchemeFactory { + public clear_file_metadata_resultStandardScheme getScheme() { + return new clear_file_metadata_resultStandardScheme(); } } - private static class heartbeat_write_id_resultStandardScheme extends StandardScheme { + private static class clear_file_metadata_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_write_id_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, clear_file_metadata_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -183686,7 +180254,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_write_id_ switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new HeartbeatWriteIdResult(); + struct.success = new ClearFileMetadataResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -183702,7 +180270,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_write_id_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, heartbeat_write_id_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, clear_file_metadata_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -183717,16 +180285,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, heartbeat_write_id } - private static class heartbeat_write_id_resultTupleSchemeFactory implements SchemeFactory { - public heartbeat_write_id_resultTupleScheme getScheme() { - return new heartbeat_write_id_resultTupleScheme(); + private static class clear_file_metadata_resultTupleSchemeFactory implements SchemeFactory { + public clear_file_metadata_resultTupleScheme getScheme() { + return new clear_file_metadata_resultTupleScheme(); } } - private static class heartbeat_write_id_resultTupleScheme extends TupleScheme { + private static class clear_file_metadata_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, heartbeat_write_id_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, clear_file_metadata_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -183739,11 +180307,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, heartbeat_write_id_ } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_write_id_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, clear_file_metadata_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = new HeartbeatWriteIdResult(); + struct.success = new ClearFileMetadataResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -183752,18 +180320,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_write_id_r } - public static class get_valid_write_ids_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_valid_write_ids_args"); + public static class cache_file_metadata_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("cache_file_metadata_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_valid_write_ids_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_valid_write_ids_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new cache_file_metadata_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new cache_file_metadata_argsTupleSchemeFactory()); } - private GetValidWriteIdsRequest req; // required + private CacheFileMetadataRequest req; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -183828,16 +180396,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetValidWriteIdsRequest.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CacheFileMetadataRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_valid_write_ids_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(cache_file_metadata_args.class, metaDataMap); } - public get_valid_write_ids_args() { + public cache_file_metadata_args() { } - public get_valid_write_ids_args( - GetValidWriteIdsRequest req) + public cache_file_metadata_args( + CacheFileMetadataRequest req) { this(); this.req = req; @@ -183846,14 +180414,14 @@ public get_valid_write_ids_args( /** * Performs a deep copy on other. */ - public get_valid_write_ids_args(get_valid_write_ids_args other) { + public cache_file_metadata_args(cache_file_metadata_args other) { if (other.isSetReq()) { - this.req = new GetValidWriteIdsRequest(other.req); + this.req = new CacheFileMetadataRequest(other.req); } } - public get_valid_write_ids_args deepCopy() { - return new get_valid_write_ids_args(this); + public cache_file_metadata_args deepCopy() { + return new cache_file_metadata_args(this); } @Override @@ -183861,11 +180429,11 @@ public void clear() { this.req = null; } - public GetValidWriteIdsRequest getReq() { + public CacheFileMetadataRequest getReq() { return this.req; } - public void setReq(GetValidWriteIdsRequest req) { + public void setReq(CacheFileMetadataRequest req) { this.req = req; } @@ -183890,7 +180458,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetReq(); } else { - setReq((GetValidWriteIdsRequest)value); + setReq((CacheFileMetadataRequest)value); } break; @@ -183923,12 +180491,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_valid_write_ids_args) - return this.equals((get_valid_write_ids_args)that); + if (that instanceof cache_file_metadata_args) + return this.equals((cache_file_metadata_args)that); return false; } - public boolean equals(get_valid_write_ids_args that) { + public boolean equals(cache_file_metadata_args that) { if (that == null) return false; @@ -183957,7 +180525,7 @@ public int hashCode() { } @Override - public int compareTo(get_valid_write_ids_args other) { + public int compareTo(cache_file_metadata_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -183991,7 +180559,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_valid_write_ids_args("); + StringBuilder sb = new StringBuilder("cache_file_metadata_args("); boolean first = true; sb.append("req:"); @@ -184029,15 +180597,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_valid_write_ids_argsStandardSchemeFactory implements SchemeFactory { - public get_valid_write_ids_argsStandardScheme getScheme() { - return new get_valid_write_ids_argsStandardScheme(); + private static class cache_file_metadata_argsStandardSchemeFactory implements SchemeFactory { + public cache_file_metadata_argsStandardScheme getScheme() { + return new cache_file_metadata_argsStandardScheme(); } } - private static class get_valid_write_ids_argsStandardScheme extends StandardScheme { + private static class cache_file_metadata_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_valid_write_ids_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, cache_file_metadata_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -184049,7 +180617,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_valid_write_ids switch (schemeField.id) { case 1: // REQ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new GetValidWriteIdsRequest(); + struct.req = new CacheFileMetadataRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } else { @@ -184065,7 +180633,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_valid_write_ids struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_valid_write_ids_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, cache_file_metadata_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -184080,16 +180648,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_valid_write_id } - private static class get_valid_write_ids_argsTupleSchemeFactory implements SchemeFactory { - public get_valid_write_ids_argsTupleScheme getScheme() { - return new get_valid_write_ids_argsTupleScheme(); + private static class cache_file_metadata_argsTupleSchemeFactory implements SchemeFactory { + public cache_file_metadata_argsTupleScheme getScheme() { + return new cache_file_metadata_argsTupleScheme(); } } - private static class get_valid_write_ids_argsTupleScheme extends TupleScheme { + private static class cache_file_metadata_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_valid_write_ids_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, cache_file_metadata_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetReq()) { @@ -184102,11 +180670,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_valid_write_ids } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_valid_write_ids_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, cache_file_metadata_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.req = new GetValidWriteIdsRequest(); + struct.req = new CacheFileMetadataRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } @@ -184115,18 +180683,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_valid_write_ids_ } - public static class get_valid_write_ids_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_valid_write_ids_result"); + public static class cache_file_metadata_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("cache_file_metadata_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_valid_write_ids_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_valid_write_ids_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new cache_file_metadata_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new cache_file_metadata_resultTupleSchemeFactory()); } - private GetValidWriteIdsResult success; // required + private CacheFileMetadataResult 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 { @@ -184191,16 +180759,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, GetValidWriteIdsResult.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CacheFileMetadataResult.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_valid_write_ids_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(cache_file_metadata_result.class, metaDataMap); } - public get_valid_write_ids_result() { + public cache_file_metadata_result() { } - public get_valid_write_ids_result( - GetValidWriteIdsResult success) + public cache_file_metadata_result( + CacheFileMetadataResult success) { this(); this.success = success; @@ -184209,14 +180777,14 @@ public get_valid_write_ids_result( /** * Performs a deep copy on other. */ - public get_valid_write_ids_result(get_valid_write_ids_result other) { + public cache_file_metadata_result(cache_file_metadata_result other) { if (other.isSetSuccess()) { - this.success = new GetValidWriteIdsResult(other.success); + this.success = new CacheFileMetadataResult(other.success); } } - public get_valid_write_ids_result deepCopy() { - return new get_valid_write_ids_result(this); + public cache_file_metadata_result deepCopy() { + return new cache_file_metadata_result(this); } @Override @@ -184224,11 +180792,11 @@ public void clear() { this.success = null; } - public GetValidWriteIdsResult getSuccess() { + public CacheFileMetadataResult getSuccess() { return this.success; } - public void setSuccess(GetValidWriteIdsResult success) { + public void setSuccess(CacheFileMetadataResult success) { this.success = success; } @@ -184253,7 +180821,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((GetValidWriteIdsResult)value); + setSuccess((CacheFileMetadataResult)value); } break; @@ -184286,12 +180854,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_valid_write_ids_result) - return this.equals((get_valid_write_ids_result)that); + if (that instanceof cache_file_metadata_result) + return this.equals((cache_file_metadata_result)that); return false; } - public boolean equals(get_valid_write_ids_result that) { + public boolean equals(cache_file_metadata_result that) { if (that == null) return false; @@ -184320,7 +180888,7 @@ public int hashCode() { } @Override - public int compareTo(get_valid_write_ids_result other) { + public int compareTo(cache_file_metadata_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -184354,7 +180922,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_valid_write_ids_result("); + StringBuilder sb = new StringBuilder("cache_file_metadata_result("); boolean first = true; sb.append("success:"); @@ -184392,15 +180960,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_valid_write_ids_resultStandardSchemeFactory implements SchemeFactory { - public get_valid_write_ids_resultStandardScheme getScheme() { - return new get_valid_write_ids_resultStandardScheme(); + private static class cache_file_metadata_resultStandardSchemeFactory implements SchemeFactory { + public cache_file_metadata_resultStandardScheme getScheme() { + return new cache_file_metadata_resultStandardScheme(); } } - private static class get_valid_write_ids_resultStandardScheme extends StandardScheme { + private static class cache_file_metadata_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_valid_write_ids_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, cache_file_metadata_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -184412,7 +180980,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_valid_write_ids switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new GetValidWriteIdsResult(); + struct.success = new CacheFileMetadataResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -184428,7 +180996,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_valid_write_ids struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_valid_write_ids_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, cache_file_metadata_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -184443,16 +181011,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_valid_write_id } - private static class get_valid_write_ids_resultTupleSchemeFactory implements SchemeFactory { - public get_valid_write_ids_resultTupleScheme getScheme() { - return new get_valid_write_ids_resultTupleScheme(); + private static class cache_file_metadata_resultTupleSchemeFactory implements SchemeFactory { + public cache_file_metadata_resultTupleScheme getScheme() { + return new cache_file_metadata_resultTupleScheme(); } } - private static class get_valid_write_ids_resultTupleScheme extends TupleScheme { + private static class cache_file_metadata_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_valid_write_ids_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, cache_file_metadata_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -184465,11 +181033,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_valid_write_ids } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_valid_write_ids_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, cache_file_metadata_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = new GetValidWriteIdsResult(); + struct.success = new CacheFileMetadataResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } diff --git metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index a750a1c..4fb7183 100644 --- metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -1195,26 +1195,6 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { * @return \metastore\CacheFileMetadataResult */ public function cache_file_metadata(\metastore\CacheFileMetadataRequest $req); - /** - * @param \metastore\GetNextWriteIdRequest $req - * @return \metastore\GetNextWriteIdResult - */ - public function get_next_write_id(\metastore\GetNextWriteIdRequest $req); - /** - * @param \metastore\FinalizeWriteIdRequest $req - * @return \metastore\FinalizeWriteIdResult - */ - public function finalize_write_id(\metastore\FinalizeWriteIdRequest $req); - /** - * @param \metastore\HeartbeatWriteIdRequest $req - * @return \metastore\HeartbeatWriteIdResult - */ - public function heartbeat_write_id(\metastore\HeartbeatWriteIdRequest $req); - /** - * @param \metastore\GetValidWriteIdsRequest $req - * @return \metastore\GetValidWriteIdsResult - */ - public function get_valid_write_ids(\metastore\GetValidWriteIdsRequest $req); } class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metastore\ThriftHiveMetastoreIf { @@ -9961,210 +9941,6 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("cache_file_metadata failed: unknown result"); } - public function get_next_write_id(\metastore\GetNextWriteIdRequest $req) - { - $this->send_get_next_write_id($req); - return $this->recv_get_next_write_id(); - } - - public function send_get_next_write_id(\metastore\GetNextWriteIdRequest $req) - { - $args = new \metastore\ThriftHiveMetastore_get_next_write_id_args(); - $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); - if ($bin_accel) - { - thrift_protocol_write_binary($this->output_, 'get_next_write_id', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); - } - else - { - $this->output_->writeMessageBegin('get_next_write_id', TMessageType::CALL, $this->seqid_); - $args->write($this->output_); - $this->output_->writeMessageEnd(); - $this->output_->getTransport()->flush(); - } - } - - public function recv_get_next_write_id() - { - $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_next_write_id_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_next_write_id_result(); - $result->read($this->input_); - $this->input_->readMessageEnd(); - } - if ($result->success !== null) { - return $result->success; - } - throw new \Exception("get_next_write_id failed: unknown result"); - } - - public function finalize_write_id(\metastore\FinalizeWriteIdRequest $req) - { - $this->send_finalize_write_id($req); - return $this->recv_finalize_write_id(); - } - - public function send_finalize_write_id(\metastore\FinalizeWriteIdRequest $req) - { - $args = new \metastore\ThriftHiveMetastore_finalize_write_id_args(); - $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); - if ($bin_accel) - { - thrift_protocol_write_binary($this->output_, 'finalize_write_id', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); - } - else - { - $this->output_->writeMessageBegin('finalize_write_id', TMessageType::CALL, $this->seqid_); - $args->write($this->output_); - $this->output_->writeMessageEnd(); - $this->output_->getTransport()->flush(); - } - } - - public function recv_finalize_write_id() - { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_finalize_write_id_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_finalize_write_id_result(); - $result->read($this->input_); - $this->input_->readMessageEnd(); - } - if ($result->success !== null) { - return $result->success; - } - throw new \Exception("finalize_write_id failed: unknown result"); - } - - public function heartbeat_write_id(\metastore\HeartbeatWriteIdRequest $req) - { - $this->send_heartbeat_write_id($req); - return $this->recv_heartbeat_write_id(); - } - - public function send_heartbeat_write_id(\metastore\HeartbeatWriteIdRequest $req) - { - $args = new \metastore\ThriftHiveMetastore_heartbeat_write_id_args(); - $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); - if ($bin_accel) - { - thrift_protocol_write_binary($this->output_, 'heartbeat_write_id', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); - } - else - { - $this->output_->writeMessageBegin('heartbeat_write_id', TMessageType::CALL, $this->seqid_); - $args->write($this->output_); - $this->output_->writeMessageEnd(); - $this->output_->getTransport()->flush(); - } - } - - public function recv_heartbeat_write_id() - { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_heartbeat_write_id_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_heartbeat_write_id_result(); - $result->read($this->input_); - $this->input_->readMessageEnd(); - } - if ($result->success !== null) { - return $result->success; - } - throw new \Exception("heartbeat_write_id failed: unknown result"); - } - - public function get_valid_write_ids(\metastore\GetValidWriteIdsRequest $req) - { - $this->send_get_valid_write_ids($req); - return $this->recv_get_valid_write_ids(); - } - - public function send_get_valid_write_ids(\metastore\GetValidWriteIdsRequest $req) - { - $args = new \metastore\ThriftHiveMetastore_get_valid_write_ids_args(); - $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); - if ($bin_accel) - { - thrift_protocol_write_binary($this->output_, 'get_valid_write_ids', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); - } - else - { - $this->output_->writeMessageBegin('get_valid_write_ids', TMessageType::CALL, $this->seqid_); - $args->write($this->output_); - $this->output_->writeMessageEnd(); - $this->output_->getTransport()->flush(); - } - } - - public function recv_get_valid_write_ids() - { - $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_valid_write_ids_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_valid_write_ids_result(); - $result->read($this->input_); - $this->input_->readMessageEnd(); - } - if ($result->success !== null) { - return $result->success; - } - throw new \Exception("get_valid_write_ids failed: unknown result"); - } - } // HELPER FUNCTIONS AND STRUCTURES @@ -11316,14 +11092,14 @@ class ThriftHiveMetastore_get_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size603 = 0; - $_etype606 = 0; - $xfer += $input->readListBegin($_etype606, $_size603); - for ($_i607 = 0; $_i607 < $_size603; ++$_i607) + $_size596 = 0; + $_etype599 = 0; + $xfer += $input->readListBegin($_etype599, $_size596); + for ($_i600 = 0; $_i600 < $_size596; ++$_i600) { - $elem608 = null; - $xfer += $input->readString($elem608); - $this->success []= $elem608; + $elem601 = null; + $xfer += $input->readString($elem601); + $this->success []= $elem601; } $xfer += $input->readListEnd(); } else { @@ -11359,9 +11135,9 @@ class ThriftHiveMetastore_get_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter609) + foreach ($this->success as $iter602) { - $xfer += $output->writeString($iter609); + $xfer += $output->writeString($iter602); } } $output->writeListEnd(); @@ -11492,14 +11268,14 @@ class ThriftHiveMetastore_get_all_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size610 = 0; - $_etype613 = 0; - $xfer += $input->readListBegin($_etype613, $_size610); - for ($_i614 = 0; $_i614 < $_size610; ++$_i614) + $_size603 = 0; + $_etype606 = 0; + $xfer += $input->readListBegin($_etype606, $_size603); + for ($_i607 = 0; $_i607 < $_size603; ++$_i607) { - $elem615 = null; - $xfer += $input->readString($elem615); - $this->success []= $elem615; + $elem608 = null; + $xfer += $input->readString($elem608); + $this->success []= $elem608; } $xfer += $input->readListEnd(); } else { @@ -11535,9 +11311,9 @@ class ThriftHiveMetastore_get_all_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter616) + foreach ($this->success as $iter609) { - $xfer += $output->writeString($iter616); + $xfer += $output->writeString($iter609); } } $output->writeListEnd(); @@ -12538,18 +12314,18 @@ class ThriftHiveMetastore_get_type_all_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size617 = 0; - $_ktype618 = 0; - $_vtype619 = 0; - $xfer += $input->readMapBegin($_ktype618, $_vtype619, $_size617); - for ($_i621 = 0; $_i621 < $_size617; ++$_i621) + $_size610 = 0; + $_ktype611 = 0; + $_vtype612 = 0; + $xfer += $input->readMapBegin($_ktype611, $_vtype612, $_size610); + for ($_i614 = 0; $_i614 < $_size610; ++$_i614) { - $key622 = ''; - $val623 = new \metastore\Type(); - $xfer += $input->readString($key622); - $val623 = new \metastore\Type(); - $xfer += $val623->read($input); - $this->success[$key622] = $val623; + $key615 = ''; + $val616 = new \metastore\Type(); + $xfer += $input->readString($key615); + $val616 = new \metastore\Type(); + $xfer += $val616->read($input); + $this->success[$key615] = $val616; } $xfer += $input->readMapEnd(); } else { @@ -12585,10 +12361,10 @@ class ThriftHiveMetastore_get_type_all_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter624 => $viter625) + foreach ($this->success as $kiter617 => $viter618) { - $xfer += $output->writeString($kiter624); - $xfer += $viter625->write($output); + $xfer += $output->writeString($kiter617); + $xfer += $viter618->write($output); } } $output->writeMapEnd(); @@ -12792,15 +12568,15 @@ class ThriftHiveMetastore_get_fields_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size626 = 0; - $_etype629 = 0; - $xfer += $input->readListBegin($_etype629, $_size626); - for ($_i630 = 0; $_i630 < $_size626; ++$_i630) + $_size619 = 0; + $_etype622 = 0; + $xfer += $input->readListBegin($_etype622, $_size619); + for ($_i623 = 0; $_i623 < $_size619; ++$_i623) { - $elem631 = null; - $elem631 = new \metastore\FieldSchema(); - $xfer += $elem631->read($input); - $this->success []= $elem631; + $elem624 = null; + $elem624 = new \metastore\FieldSchema(); + $xfer += $elem624->read($input); + $this->success []= $elem624; } $xfer += $input->readListEnd(); } else { @@ -12852,9 +12628,9 @@ class ThriftHiveMetastore_get_fields_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter632) + foreach ($this->success as $iter625) { - $xfer += $iter632->write($output); + $xfer += $iter625->write($output); } } $output->writeListEnd(); @@ -13096,15 +12872,15 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size633 = 0; - $_etype636 = 0; - $xfer += $input->readListBegin($_etype636, $_size633); - for ($_i637 = 0; $_i637 < $_size633; ++$_i637) + $_size626 = 0; + $_etype629 = 0; + $xfer += $input->readListBegin($_etype629, $_size626); + for ($_i630 = 0; $_i630 < $_size626; ++$_i630) { - $elem638 = null; - $elem638 = new \metastore\FieldSchema(); - $xfer += $elem638->read($input); - $this->success []= $elem638; + $elem631 = null; + $elem631 = new \metastore\FieldSchema(); + $xfer += $elem631->read($input); + $this->success []= $elem631; } $xfer += $input->readListEnd(); } else { @@ -13156,9 +12932,9 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter639) + foreach ($this->success as $iter632) { - $xfer += $iter639->write($output); + $xfer += $iter632->write($output); } } $output->writeListEnd(); @@ -13372,15 +13148,15 @@ class ThriftHiveMetastore_get_schema_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size640 = 0; - $_etype643 = 0; - $xfer += $input->readListBegin($_etype643, $_size640); - for ($_i644 = 0; $_i644 < $_size640; ++$_i644) + $_size633 = 0; + $_etype636 = 0; + $xfer += $input->readListBegin($_etype636, $_size633); + for ($_i637 = 0; $_i637 < $_size633; ++$_i637) { - $elem645 = null; - $elem645 = new \metastore\FieldSchema(); - $xfer += $elem645->read($input); - $this->success []= $elem645; + $elem638 = null; + $elem638 = new \metastore\FieldSchema(); + $xfer += $elem638->read($input); + $this->success []= $elem638; } $xfer += $input->readListEnd(); } else { @@ -13432,9 +13208,9 @@ class ThriftHiveMetastore_get_schema_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter646) + foreach ($this->success as $iter639) { - $xfer += $iter646->write($output); + $xfer += $iter639->write($output); } } $output->writeListEnd(); @@ -13676,15 +13452,15 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size647 = 0; - $_etype650 = 0; - $xfer += $input->readListBegin($_etype650, $_size647); - for ($_i651 = 0; $_i651 < $_size647; ++$_i651) + $_size640 = 0; + $_etype643 = 0; + $xfer += $input->readListBegin($_etype643, $_size640); + for ($_i644 = 0; $_i644 < $_size640; ++$_i644) { - $elem652 = null; - $elem652 = new \metastore\FieldSchema(); - $xfer += $elem652->read($input); - $this->success []= $elem652; + $elem645 = null; + $elem645 = new \metastore\FieldSchema(); + $xfer += $elem645->read($input); + $this->success []= $elem645; } $xfer += $input->readListEnd(); } else { @@ -13736,9 +13512,9 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter653) + foreach ($this->success as $iter646) { - $xfer += $iter653->write($output); + $xfer += $iter646->write($output); } } $output->writeListEnd(); @@ -14346,15 +14122,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 2: if ($ftype == TType::LST) { $this->primaryKeys = array(); - $_size654 = 0; - $_etype657 = 0; - $xfer += $input->readListBegin($_etype657, $_size654); - for ($_i658 = 0; $_i658 < $_size654; ++$_i658) + $_size647 = 0; + $_etype650 = 0; + $xfer += $input->readListBegin($_etype650, $_size647); + for ($_i651 = 0; $_i651 < $_size647; ++$_i651) { - $elem659 = null; - $elem659 = new \metastore\SQLPrimaryKey(); - $xfer += $elem659->read($input); - $this->primaryKeys []= $elem659; + $elem652 = null; + $elem652 = new \metastore\SQLPrimaryKey(); + $xfer += $elem652->read($input); + $this->primaryKeys []= $elem652; } $xfer += $input->readListEnd(); } else { @@ -14364,15 +14140,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 3: if ($ftype == TType::LST) { $this->foreignKeys = array(); - $_size660 = 0; - $_etype663 = 0; - $xfer += $input->readListBegin($_etype663, $_size660); - for ($_i664 = 0; $_i664 < $_size660; ++$_i664) + $_size653 = 0; + $_etype656 = 0; + $xfer += $input->readListBegin($_etype656, $_size653); + for ($_i657 = 0; $_i657 < $_size653; ++$_i657) { - $elem665 = null; - $elem665 = new \metastore\SQLForeignKey(); - $xfer += $elem665->read($input); - $this->foreignKeys []= $elem665; + $elem658 = null; + $elem658 = new \metastore\SQLForeignKey(); + $xfer += $elem658->read($input); + $this->foreignKeys []= $elem658; } $xfer += $input->readListEnd(); } else { @@ -14408,9 +14184,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->primaryKeys)); { - foreach ($this->primaryKeys as $iter666) + foreach ($this->primaryKeys as $iter659) { - $xfer += $iter666->write($output); + $xfer += $iter659->write($output); } } $output->writeListEnd(); @@ -14425,9 +14201,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->foreignKeys)); { - foreach ($this->foreignKeys as $iter667) + foreach ($this->foreignKeys as $iter660) { - $xfer += $iter667->write($output); + $xfer += $iter660->write($output); } } $output->writeListEnd(); @@ -15699,14 +15475,14 @@ class ThriftHiveMetastore_truncate_table_args { case 3: if ($ftype == TType::LST) { $this->partNames = array(); - $_size668 = 0; - $_etype671 = 0; - $xfer += $input->readListBegin($_etype671, $_size668); - for ($_i672 = 0; $_i672 < $_size668; ++$_i672) + $_size661 = 0; + $_etype664 = 0; + $xfer += $input->readListBegin($_etype664, $_size661); + for ($_i665 = 0; $_i665 < $_size661; ++$_i665) { - $elem673 = null; - $xfer += $input->readString($elem673); - $this->partNames []= $elem673; + $elem666 = null; + $xfer += $input->readString($elem666); + $this->partNames []= $elem666; } $xfer += $input->readListEnd(); } else { @@ -15744,9 +15520,9 @@ class ThriftHiveMetastore_truncate_table_args { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter674) + foreach ($this->partNames as $iter667) { - $xfer += $output->writeString($iter674); + $xfer += $output->writeString($iter667); } } $output->writeListEnd(); @@ -15997,14 +15773,14 @@ class ThriftHiveMetastore_get_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size675 = 0; - $_etype678 = 0; - $xfer += $input->readListBegin($_etype678, $_size675); - for ($_i679 = 0; $_i679 < $_size675; ++$_i679) + $_size668 = 0; + $_etype671 = 0; + $xfer += $input->readListBegin($_etype671, $_size668); + for ($_i672 = 0; $_i672 < $_size668; ++$_i672) { - $elem680 = null; - $xfer += $input->readString($elem680); - $this->success []= $elem680; + $elem673 = null; + $xfer += $input->readString($elem673); + $this->success []= $elem673; } $xfer += $input->readListEnd(); } else { @@ -16040,9 +15816,9 @@ class ThriftHiveMetastore_get_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter681) + foreach ($this->success as $iter674) { - $xfer += $output->writeString($iter681); + $xfer += $output->writeString($iter674); } } $output->writeListEnd(); @@ -16244,14 +16020,14 @@ class ThriftHiveMetastore_get_tables_by_type_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size682 = 0; - $_etype685 = 0; - $xfer += $input->readListBegin($_etype685, $_size682); - for ($_i686 = 0; $_i686 < $_size682; ++$_i686) + $_size675 = 0; + $_etype678 = 0; + $xfer += $input->readListBegin($_etype678, $_size675); + for ($_i679 = 0; $_i679 < $_size675; ++$_i679) { - $elem687 = null; - $xfer += $input->readString($elem687); - $this->success []= $elem687; + $elem680 = null; + $xfer += $input->readString($elem680); + $this->success []= $elem680; } $xfer += $input->readListEnd(); } else { @@ -16287,9 +16063,9 @@ class ThriftHiveMetastore_get_tables_by_type_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter688) + foreach ($this->success as $iter681) { - $xfer += $output->writeString($iter688); + $xfer += $output->writeString($iter681); } } $output->writeListEnd(); @@ -16394,14 +16170,14 @@ class ThriftHiveMetastore_get_table_meta_args { case 3: if ($ftype == TType::LST) { $this->tbl_types = array(); - $_size689 = 0; - $_etype692 = 0; - $xfer += $input->readListBegin($_etype692, $_size689); - for ($_i693 = 0; $_i693 < $_size689; ++$_i693) + $_size682 = 0; + $_etype685 = 0; + $xfer += $input->readListBegin($_etype685, $_size682); + for ($_i686 = 0; $_i686 < $_size682; ++$_i686) { - $elem694 = null; - $xfer += $input->readString($elem694); - $this->tbl_types []= $elem694; + $elem687 = null; + $xfer += $input->readString($elem687); + $this->tbl_types []= $elem687; } $xfer += $input->readListEnd(); } else { @@ -16439,9 +16215,9 @@ class ThriftHiveMetastore_get_table_meta_args { { $output->writeListBegin(TType::STRING, count($this->tbl_types)); { - foreach ($this->tbl_types as $iter695) + foreach ($this->tbl_types as $iter688) { - $xfer += $output->writeString($iter695); + $xfer += $output->writeString($iter688); } } $output->writeListEnd(); @@ -16518,15 +16294,15 @@ class ThriftHiveMetastore_get_table_meta_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size696 = 0; - $_etype699 = 0; - $xfer += $input->readListBegin($_etype699, $_size696); - for ($_i700 = 0; $_i700 < $_size696; ++$_i700) + $_size689 = 0; + $_etype692 = 0; + $xfer += $input->readListBegin($_etype692, $_size689); + for ($_i693 = 0; $_i693 < $_size689; ++$_i693) { - $elem701 = null; - $elem701 = new \metastore\TableMeta(); - $xfer += $elem701->read($input); - $this->success []= $elem701; + $elem694 = null; + $elem694 = new \metastore\TableMeta(); + $xfer += $elem694->read($input); + $this->success []= $elem694; } $xfer += $input->readListEnd(); } else { @@ -16562,9 +16338,9 @@ class ThriftHiveMetastore_get_table_meta_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter702) + foreach ($this->success as $iter695) { - $xfer += $iter702->write($output); + $xfer += $iter695->write($output); } } $output->writeListEnd(); @@ -16720,14 +16496,14 @@ class ThriftHiveMetastore_get_all_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size703 = 0; - $_etype706 = 0; - $xfer += $input->readListBegin($_etype706, $_size703); - for ($_i707 = 0; $_i707 < $_size703; ++$_i707) + $_size696 = 0; + $_etype699 = 0; + $xfer += $input->readListBegin($_etype699, $_size696); + for ($_i700 = 0; $_i700 < $_size696; ++$_i700) { - $elem708 = null; - $xfer += $input->readString($elem708); - $this->success []= $elem708; + $elem701 = null; + $xfer += $input->readString($elem701); + $this->success []= $elem701; } $xfer += $input->readListEnd(); } else { @@ -16763,9 +16539,9 @@ class ThriftHiveMetastore_get_all_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter709) + foreach ($this->success as $iter702) { - $xfer += $output->writeString($iter709); + $xfer += $output->writeString($iter702); } } $output->writeListEnd(); @@ -17080,14 +16856,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = array(); - $_size710 = 0; - $_etype713 = 0; - $xfer += $input->readListBegin($_etype713, $_size710); - for ($_i714 = 0; $_i714 < $_size710; ++$_i714) + $_size703 = 0; + $_etype706 = 0; + $xfer += $input->readListBegin($_etype706, $_size703); + for ($_i707 = 0; $_i707 < $_size703; ++$_i707) { - $elem715 = null; - $xfer += $input->readString($elem715); - $this->tbl_names []= $elem715; + $elem708 = null; + $xfer += $input->readString($elem708); + $this->tbl_names []= $elem708; } $xfer += $input->readListEnd(); } else { @@ -17120,9 +16896,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter716) + foreach ($this->tbl_names as $iter709) { - $xfer += $output->writeString($iter716); + $xfer += $output->writeString($iter709); } } $output->writeListEnd(); @@ -17187,15 +16963,15 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size717 = 0; - $_etype720 = 0; - $xfer += $input->readListBegin($_etype720, $_size717); - for ($_i721 = 0; $_i721 < $_size717; ++$_i721) + $_size710 = 0; + $_etype713 = 0; + $xfer += $input->readListBegin($_etype713, $_size710); + for ($_i714 = 0; $_i714 < $_size710; ++$_i714) { - $elem722 = null; - $elem722 = new \metastore\Table(); - $xfer += $elem722->read($input); - $this->success []= $elem722; + $elem715 = null; + $elem715 = new \metastore\Table(); + $xfer += $elem715->read($input); + $this->success []= $elem715; } $xfer += $input->readListEnd(); } else { @@ -17223,9 +16999,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter723) + foreach ($this->success as $iter716) { - $xfer += $iter723->write($output); + $xfer += $iter716->write($output); } } $output->writeListEnd(); @@ -17891,14 +17667,14 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size724 = 0; - $_etype727 = 0; - $xfer += $input->readListBegin($_etype727, $_size724); - for ($_i728 = 0; $_i728 < $_size724; ++$_i728) + $_size717 = 0; + $_etype720 = 0; + $xfer += $input->readListBegin($_etype720, $_size717); + for ($_i721 = 0; $_i721 < $_size717; ++$_i721) { - $elem729 = null; - $xfer += $input->readString($elem729); - $this->success []= $elem729; + $elem722 = null; + $xfer += $input->readString($elem722); + $this->success []= $elem722; } $xfer += $input->readListEnd(); } else { @@ -17950,9 +17726,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter730) + foreach ($this->success as $iter723) { - $xfer += $output->writeString($iter730); + $xfer += $output->writeString($iter723); } } $output->writeListEnd(); @@ -19265,15 +19041,15 @@ class ThriftHiveMetastore_add_partitions_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size731 = 0; - $_etype734 = 0; - $xfer += $input->readListBegin($_etype734, $_size731); - for ($_i735 = 0; $_i735 < $_size731; ++$_i735) + $_size724 = 0; + $_etype727 = 0; + $xfer += $input->readListBegin($_etype727, $_size724); + for ($_i728 = 0; $_i728 < $_size724; ++$_i728) { - $elem736 = null; - $elem736 = new \metastore\Partition(); - $xfer += $elem736->read($input); - $this->new_parts []= $elem736; + $elem729 = null; + $elem729 = new \metastore\Partition(); + $xfer += $elem729->read($input); + $this->new_parts []= $elem729; } $xfer += $input->readListEnd(); } else { @@ -19301,9 +19077,9 @@ class ThriftHiveMetastore_add_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter737) + foreach ($this->new_parts as $iter730) { - $xfer += $iter737->write($output); + $xfer += $iter730->write($output); } } $output->writeListEnd(); @@ -19518,15 +19294,15 @@ class ThriftHiveMetastore_add_partitions_pspec_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size738 = 0; - $_etype741 = 0; - $xfer += $input->readListBegin($_etype741, $_size738); - for ($_i742 = 0; $_i742 < $_size738; ++$_i742) + $_size731 = 0; + $_etype734 = 0; + $xfer += $input->readListBegin($_etype734, $_size731); + for ($_i735 = 0; $_i735 < $_size731; ++$_i735) { - $elem743 = null; - $elem743 = new \metastore\PartitionSpec(); - $xfer += $elem743->read($input); - $this->new_parts []= $elem743; + $elem736 = null; + $elem736 = new \metastore\PartitionSpec(); + $xfer += $elem736->read($input); + $this->new_parts []= $elem736; } $xfer += $input->readListEnd(); } else { @@ -19554,9 +19330,9 @@ class ThriftHiveMetastore_add_partitions_pspec_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter744) + foreach ($this->new_parts as $iter737) { - $xfer += $iter744->write($output); + $xfer += $iter737->write($output); } } $output->writeListEnd(); @@ -19806,14 +19582,14 @@ class ThriftHiveMetastore_append_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size745 = 0; - $_etype748 = 0; - $xfer += $input->readListBegin($_etype748, $_size745); - for ($_i749 = 0; $_i749 < $_size745; ++$_i749) + $_size738 = 0; + $_etype741 = 0; + $xfer += $input->readListBegin($_etype741, $_size738); + for ($_i742 = 0; $_i742 < $_size738; ++$_i742) { - $elem750 = null; - $xfer += $input->readString($elem750); - $this->part_vals []= $elem750; + $elem743 = null; + $xfer += $input->readString($elem743); + $this->part_vals []= $elem743; } $xfer += $input->readListEnd(); } else { @@ -19851,9 +19627,9 @@ class ThriftHiveMetastore_append_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter751) + foreach ($this->part_vals as $iter744) { - $xfer += $output->writeString($iter751); + $xfer += $output->writeString($iter744); } } $output->writeListEnd(); @@ -20355,14 +20131,14 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size752 = 0; - $_etype755 = 0; - $xfer += $input->readListBegin($_etype755, $_size752); - for ($_i756 = 0; $_i756 < $_size752; ++$_i756) + $_size745 = 0; + $_etype748 = 0; + $xfer += $input->readListBegin($_etype748, $_size745); + for ($_i749 = 0; $_i749 < $_size745; ++$_i749) { - $elem757 = null; - $xfer += $input->readString($elem757); - $this->part_vals []= $elem757; + $elem750 = null; + $xfer += $input->readString($elem750); + $this->part_vals []= $elem750; } $xfer += $input->readListEnd(); } else { @@ -20408,9 +20184,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter758) + foreach ($this->part_vals as $iter751) { - $xfer += $output->writeString($iter758); + $xfer += $output->writeString($iter751); } } $output->writeListEnd(); @@ -21264,14 +21040,14 @@ class ThriftHiveMetastore_drop_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size759 = 0; - $_etype762 = 0; - $xfer += $input->readListBegin($_etype762, $_size759); - for ($_i763 = 0; $_i763 < $_size759; ++$_i763) + $_size752 = 0; + $_etype755 = 0; + $xfer += $input->readListBegin($_etype755, $_size752); + for ($_i756 = 0; $_i756 < $_size752; ++$_i756) { - $elem764 = null; - $xfer += $input->readString($elem764); - $this->part_vals []= $elem764; + $elem757 = null; + $xfer += $input->readString($elem757); + $this->part_vals []= $elem757; } $xfer += $input->readListEnd(); } else { @@ -21316,9 +21092,9 @@ class ThriftHiveMetastore_drop_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter765) + foreach ($this->part_vals as $iter758) { - $xfer += $output->writeString($iter765); + $xfer += $output->writeString($iter758); } } $output->writeListEnd(); @@ -21571,14 +21347,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size766 = 0; - $_etype769 = 0; - $xfer += $input->readListBegin($_etype769, $_size766); - for ($_i770 = 0; $_i770 < $_size766; ++$_i770) + $_size759 = 0; + $_etype762 = 0; + $xfer += $input->readListBegin($_etype762, $_size759); + for ($_i763 = 0; $_i763 < $_size759; ++$_i763) { - $elem771 = null; - $xfer += $input->readString($elem771); - $this->part_vals []= $elem771; + $elem764 = null; + $xfer += $input->readString($elem764); + $this->part_vals []= $elem764; } $xfer += $input->readListEnd(); } else { @@ -21631,9 +21407,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter772) + foreach ($this->part_vals as $iter765) { - $xfer += $output->writeString($iter772); + $xfer += $output->writeString($iter765); } } $output->writeListEnd(); @@ -22647,14 +22423,14 @@ class ThriftHiveMetastore_get_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size773 = 0; - $_etype776 = 0; - $xfer += $input->readListBegin($_etype776, $_size773); - for ($_i777 = 0; $_i777 < $_size773; ++$_i777) + $_size766 = 0; + $_etype769 = 0; + $xfer += $input->readListBegin($_etype769, $_size766); + for ($_i770 = 0; $_i770 < $_size766; ++$_i770) { - $elem778 = null; - $xfer += $input->readString($elem778); - $this->part_vals []= $elem778; + $elem771 = null; + $xfer += $input->readString($elem771); + $this->part_vals []= $elem771; } $xfer += $input->readListEnd(); } else { @@ -22692,9 +22468,9 @@ class ThriftHiveMetastore_get_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter779) + foreach ($this->part_vals as $iter772) { - $xfer += $output->writeString($iter779); + $xfer += $output->writeString($iter772); } } $output->writeListEnd(); @@ -22936,17 +22712,17 @@ class ThriftHiveMetastore_exchange_partition_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size780 = 0; - $_ktype781 = 0; - $_vtype782 = 0; - $xfer += $input->readMapBegin($_ktype781, $_vtype782, $_size780); - for ($_i784 = 0; $_i784 < $_size780; ++$_i784) + $_size773 = 0; + $_ktype774 = 0; + $_vtype775 = 0; + $xfer += $input->readMapBegin($_ktype774, $_vtype775, $_size773); + for ($_i777 = 0; $_i777 < $_size773; ++$_i777) { - $key785 = ''; - $val786 = ''; - $xfer += $input->readString($key785); - $xfer += $input->readString($val786); - $this->partitionSpecs[$key785] = $val786; + $key778 = ''; + $val779 = ''; + $xfer += $input->readString($key778); + $xfer += $input->readString($val779); + $this->partitionSpecs[$key778] = $val779; } $xfer += $input->readMapEnd(); } else { @@ -23002,10 +22778,10 @@ class ThriftHiveMetastore_exchange_partition_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter787 => $viter788) + foreach ($this->partitionSpecs as $kiter780 => $viter781) { - $xfer += $output->writeString($kiter787); - $xfer += $output->writeString($viter788); + $xfer += $output->writeString($kiter780); + $xfer += $output->writeString($viter781); } } $output->writeMapEnd(); @@ -23317,17 +23093,17 @@ class ThriftHiveMetastore_exchange_partitions_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size789 = 0; - $_ktype790 = 0; - $_vtype791 = 0; - $xfer += $input->readMapBegin($_ktype790, $_vtype791, $_size789); - for ($_i793 = 0; $_i793 < $_size789; ++$_i793) + $_size782 = 0; + $_ktype783 = 0; + $_vtype784 = 0; + $xfer += $input->readMapBegin($_ktype783, $_vtype784, $_size782); + for ($_i786 = 0; $_i786 < $_size782; ++$_i786) { - $key794 = ''; - $val795 = ''; - $xfer += $input->readString($key794); - $xfer += $input->readString($val795); - $this->partitionSpecs[$key794] = $val795; + $key787 = ''; + $val788 = ''; + $xfer += $input->readString($key787); + $xfer += $input->readString($val788); + $this->partitionSpecs[$key787] = $val788; } $xfer += $input->readMapEnd(); } else { @@ -23383,10 +23159,10 @@ class ThriftHiveMetastore_exchange_partitions_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter796 => $viter797) + foreach ($this->partitionSpecs as $kiter789 => $viter790) { - $xfer += $output->writeString($kiter796); - $xfer += $output->writeString($viter797); + $xfer += $output->writeString($kiter789); + $xfer += $output->writeString($viter790); } } $output->writeMapEnd(); @@ -23519,15 +23295,15 @@ class ThriftHiveMetastore_exchange_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size798 = 0; - $_etype801 = 0; - $xfer += $input->readListBegin($_etype801, $_size798); - for ($_i802 = 0; $_i802 < $_size798; ++$_i802) + $_size791 = 0; + $_etype794 = 0; + $xfer += $input->readListBegin($_etype794, $_size791); + for ($_i795 = 0; $_i795 < $_size791; ++$_i795) { - $elem803 = null; - $elem803 = new \metastore\Partition(); - $xfer += $elem803->read($input); - $this->success []= $elem803; + $elem796 = null; + $elem796 = new \metastore\Partition(); + $xfer += $elem796->read($input); + $this->success []= $elem796; } $xfer += $input->readListEnd(); } else { @@ -23587,9 +23363,9 @@ class ThriftHiveMetastore_exchange_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter804) + foreach ($this->success as $iter797) { - $xfer += $iter804->write($output); + $xfer += $iter797->write($output); } } $output->writeListEnd(); @@ -23735,14 +23511,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size805 = 0; - $_etype808 = 0; - $xfer += $input->readListBegin($_etype808, $_size805); - for ($_i809 = 0; $_i809 < $_size805; ++$_i809) + $_size798 = 0; + $_etype801 = 0; + $xfer += $input->readListBegin($_etype801, $_size798); + for ($_i802 = 0; $_i802 < $_size798; ++$_i802) { - $elem810 = null; - $xfer += $input->readString($elem810); - $this->part_vals []= $elem810; + $elem803 = null; + $xfer += $input->readString($elem803); + $this->part_vals []= $elem803; } $xfer += $input->readListEnd(); } else { @@ -23759,14 +23535,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size811 = 0; - $_etype814 = 0; - $xfer += $input->readListBegin($_etype814, $_size811); - for ($_i815 = 0; $_i815 < $_size811; ++$_i815) + $_size804 = 0; + $_etype807 = 0; + $xfer += $input->readListBegin($_etype807, $_size804); + for ($_i808 = 0; $_i808 < $_size804; ++$_i808) { - $elem816 = null; - $xfer += $input->readString($elem816); - $this->group_names []= $elem816; + $elem809 = null; + $xfer += $input->readString($elem809); + $this->group_names []= $elem809; } $xfer += $input->readListEnd(); } else { @@ -23804,9 +23580,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter817) + foreach ($this->part_vals as $iter810) { - $xfer += $output->writeString($iter817); + $xfer += $output->writeString($iter810); } } $output->writeListEnd(); @@ -23826,9 +23602,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter818) + foreach ($this->group_names as $iter811) { - $xfer += $output->writeString($iter818); + $xfer += $output->writeString($iter811); } } $output->writeListEnd(); @@ -24419,15 +24195,15 @@ class ThriftHiveMetastore_get_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size819 = 0; - $_etype822 = 0; - $xfer += $input->readListBegin($_etype822, $_size819); - for ($_i823 = 0; $_i823 < $_size819; ++$_i823) + $_size812 = 0; + $_etype815 = 0; + $xfer += $input->readListBegin($_etype815, $_size812); + for ($_i816 = 0; $_i816 < $_size812; ++$_i816) { - $elem824 = null; - $elem824 = new \metastore\Partition(); - $xfer += $elem824->read($input); - $this->success []= $elem824; + $elem817 = null; + $elem817 = new \metastore\Partition(); + $xfer += $elem817->read($input); + $this->success []= $elem817; } $xfer += $input->readListEnd(); } else { @@ -24471,9 +24247,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter825) + foreach ($this->success as $iter818) { - $xfer += $iter825->write($output); + $xfer += $iter818->write($output); } } $output->writeListEnd(); @@ -24619,14 +24395,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size826 = 0; - $_etype829 = 0; - $xfer += $input->readListBegin($_etype829, $_size826); - for ($_i830 = 0; $_i830 < $_size826; ++$_i830) + $_size819 = 0; + $_etype822 = 0; + $xfer += $input->readListBegin($_etype822, $_size819); + for ($_i823 = 0; $_i823 < $_size819; ++$_i823) { - $elem831 = null; - $xfer += $input->readString($elem831); - $this->group_names []= $elem831; + $elem824 = null; + $xfer += $input->readString($elem824); + $this->group_names []= $elem824; } $xfer += $input->readListEnd(); } else { @@ -24674,9 +24450,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter832) + foreach ($this->group_names as $iter825) { - $xfer += $output->writeString($iter832); + $xfer += $output->writeString($iter825); } } $output->writeListEnd(); @@ -24765,15 +24541,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size833 = 0; - $_etype836 = 0; - $xfer += $input->readListBegin($_etype836, $_size833); - for ($_i837 = 0; $_i837 < $_size833; ++$_i837) + $_size826 = 0; + $_etype829 = 0; + $xfer += $input->readListBegin($_etype829, $_size826); + for ($_i830 = 0; $_i830 < $_size826; ++$_i830) { - $elem838 = null; - $elem838 = new \metastore\Partition(); - $xfer += $elem838->read($input); - $this->success []= $elem838; + $elem831 = null; + $elem831 = new \metastore\Partition(); + $xfer += $elem831->read($input); + $this->success []= $elem831; } $xfer += $input->readListEnd(); } else { @@ -24817,9 +24593,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter839) + foreach ($this->success as $iter832) { - $xfer += $iter839->write($output); + $xfer += $iter832->write($output); } } $output->writeListEnd(); @@ -25039,15 +24815,15 @@ class ThriftHiveMetastore_get_partitions_pspec_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size840 = 0; - $_etype843 = 0; - $xfer += $input->readListBegin($_etype843, $_size840); - for ($_i844 = 0; $_i844 < $_size840; ++$_i844) + $_size833 = 0; + $_etype836 = 0; + $xfer += $input->readListBegin($_etype836, $_size833); + for ($_i837 = 0; $_i837 < $_size833; ++$_i837) { - $elem845 = null; - $elem845 = new \metastore\PartitionSpec(); - $xfer += $elem845->read($input); - $this->success []= $elem845; + $elem838 = null; + $elem838 = new \metastore\PartitionSpec(); + $xfer += $elem838->read($input); + $this->success []= $elem838; } $xfer += $input->readListEnd(); } else { @@ -25091,9 +24867,9 @@ class ThriftHiveMetastore_get_partitions_pspec_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter846) + foreach ($this->success as $iter839) { - $xfer += $iter846->write($output); + $xfer += $iter839->write($output); } } $output->writeListEnd(); @@ -25300,14 +25076,14 @@ class ThriftHiveMetastore_get_partition_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size847 = 0; - $_etype850 = 0; - $xfer += $input->readListBegin($_etype850, $_size847); - for ($_i851 = 0; $_i851 < $_size847; ++$_i851) + $_size840 = 0; + $_etype843 = 0; + $xfer += $input->readListBegin($_etype843, $_size840); + for ($_i844 = 0; $_i844 < $_size840; ++$_i844) { - $elem852 = null; - $xfer += $input->readString($elem852); - $this->success []= $elem852; + $elem845 = null; + $xfer += $input->readString($elem845); + $this->success []= $elem845; } $xfer += $input->readListEnd(); } else { @@ -25343,9 +25119,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter853) + foreach ($this->success as $iter846) { - $xfer += $output->writeString($iter853); + $xfer += $output->writeString($iter846); } } $output->writeListEnd(); @@ -25461,14 +25237,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size854 = 0; - $_etype857 = 0; - $xfer += $input->readListBegin($_etype857, $_size854); - for ($_i858 = 0; $_i858 < $_size854; ++$_i858) + $_size847 = 0; + $_etype850 = 0; + $xfer += $input->readListBegin($_etype850, $_size847); + for ($_i851 = 0; $_i851 < $_size847; ++$_i851) { - $elem859 = null; - $xfer += $input->readString($elem859); - $this->part_vals []= $elem859; + $elem852 = null; + $xfer += $input->readString($elem852); + $this->part_vals []= $elem852; } $xfer += $input->readListEnd(); } else { @@ -25513,9 +25289,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter860) + foreach ($this->part_vals as $iter853) { - $xfer += $output->writeString($iter860); + $xfer += $output->writeString($iter853); } } $output->writeListEnd(); @@ -25609,15 +25385,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size861 = 0; - $_etype864 = 0; - $xfer += $input->readListBegin($_etype864, $_size861); - for ($_i865 = 0; $_i865 < $_size861; ++$_i865) + $_size854 = 0; + $_etype857 = 0; + $xfer += $input->readListBegin($_etype857, $_size854); + for ($_i858 = 0; $_i858 < $_size854; ++$_i858) { - $elem866 = null; - $elem866 = new \metastore\Partition(); - $xfer += $elem866->read($input); - $this->success []= $elem866; + $elem859 = null; + $elem859 = new \metastore\Partition(); + $xfer += $elem859->read($input); + $this->success []= $elem859; } $xfer += $input->readListEnd(); } else { @@ -25661,9 +25437,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter867) + foreach ($this->success as $iter860) { - $xfer += $iter867->write($output); + $xfer += $iter860->write($output); } } $output->writeListEnd(); @@ -25810,14 +25586,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size868 = 0; - $_etype871 = 0; - $xfer += $input->readListBegin($_etype871, $_size868); - for ($_i872 = 0; $_i872 < $_size868; ++$_i872) + $_size861 = 0; + $_etype864 = 0; + $xfer += $input->readListBegin($_etype864, $_size861); + for ($_i865 = 0; $_i865 < $_size861; ++$_i865) { - $elem873 = null; - $xfer += $input->readString($elem873); - $this->part_vals []= $elem873; + $elem866 = null; + $xfer += $input->readString($elem866); + $this->part_vals []= $elem866; } $xfer += $input->readListEnd(); } else { @@ -25841,14 +25617,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size874 = 0; - $_etype877 = 0; - $xfer += $input->readListBegin($_etype877, $_size874); - for ($_i878 = 0; $_i878 < $_size874; ++$_i878) + $_size867 = 0; + $_etype870 = 0; + $xfer += $input->readListBegin($_etype870, $_size867); + for ($_i871 = 0; $_i871 < $_size867; ++$_i871) { - $elem879 = null; - $xfer += $input->readString($elem879); - $this->group_names []= $elem879; + $elem872 = null; + $xfer += $input->readString($elem872); + $this->group_names []= $elem872; } $xfer += $input->readListEnd(); } else { @@ -25886,9 +25662,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter880) + foreach ($this->part_vals as $iter873) { - $xfer += $output->writeString($iter880); + $xfer += $output->writeString($iter873); } } $output->writeListEnd(); @@ -25913,9 +25689,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter881) + foreach ($this->group_names as $iter874) { - $xfer += $output->writeString($iter881); + $xfer += $output->writeString($iter874); } } $output->writeListEnd(); @@ -26004,15 +25780,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size882 = 0; - $_etype885 = 0; - $xfer += $input->readListBegin($_etype885, $_size882); - for ($_i886 = 0; $_i886 < $_size882; ++$_i886) + $_size875 = 0; + $_etype878 = 0; + $xfer += $input->readListBegin($_etype878, $_size875); + for ($_i879 = 0; $_i879 < $_size875; ++$_i879) { - $elem887 = null; - $elem887 = new \metastore\Partition(); - $xfer += $elem887->read($input); - $this->success []= $elem887; + $elem880 = null; + $elem880 = new \metastore\Partition(); + $xfer += $elem880->read($input); + $this->success []= $elem880; } $xfer += $input->readListEnd(); } else { @@ -26056,9 +25832,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter888) + foreach ($this->success as $iter881) { - $xfer += $iter888->write($output); + $xfer += $iter881->write($output); } } $output->writeListEnd(); @@ -26179,14 +25955,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size889 = 0; - $_etype892 = 0; - $xfer += $input->readListBegin($_etype892, $_size889); - for ($_i893 = 0; $_i893 < $_size889; ++$_i893) + $_size882 = 0; + $_etype885 = 0; + $xfer += $input->readListBegin($_etype885, $_size882); + for ($_i886 = 0; $_i886 < $_size882; ++$_i886) { - $elem894 = null; - $xfer += $input->readString($elem894); - $this->part_vals []= $elem894; + $elem887 = null; + $xfer += $input->readString($elem887); + $this->part_vals []= $elem887; } $xfer += $input->readListEnd(); } else { @@ -26231,9 +26007,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter895) + foreach ($this->part_vals as $iter888) { - $xfer += $output->writeString($iter895); + $xfer += $output->writeString($iter888); } } $output->writeListEnd(); @@ -26326,14 +26102,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size896 = 0; - $_etype899 = 0; - $xfer += $input->readListBegin($_etype899, $_size896); - for ($_i900 = 0; $_i900 < $_size896; ++$_i900) + $_size889 = 0; + $_etype892 = 0; + $xfer += $input->readListBegin($_etype892, $_size889); + for ($_i893 = 0; $_i893 < $_size889; ++$_i893) { - $elem901 = null; - $xfer += $input->readString($elem901); - $this->success []= $elem901; + $elem894 = null; + $xfer += $input->readString($elem894); + $this->success []= $elem894; } $xfer += $input->readListEnd(); } else { @@ -26377,9 +26153,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter902) + foreach ($this->success as $iter895) { - $xfer += $output->writeString($iter902); + $xfer += $output->writeString($iter895); } } $output->writeListEnd(); @@ -26622,15 +26398,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size903 = 0; - $_etype906 = 0; - $xfer += $input->readListBegin($_etype906, $_size903); - for ($_i907 = 0; $_i907 < $_size903; ++$_i907) + $_size896 = 0; + $_etype899 = 0; + $xfer += $input->readListBegin($_etype899, $_size896); + for ($_i900 = 0; $_i900 < $_size896; ++$_i900) { - $elem908 = null; - $elem908 = new \metastore\Partition(); - $xfer += $elem908->read($input); - $this->success []= $elem908; + $elem901 = null; + $elem901 = new \metastore\Partition(); + $xfer += $elem901->read($input); + $this->success []= $elem901; } $xfer += $input->readListEnd(); } else { @@ -26674,9 +26450,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter909) + foreach ($this->success as $iter902) { - $xfer += $iter909->write($output); + $xfer += $iter902->write($output); } } $output->writeListEnd(); @@ -26919,15 +26695,15 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size910 = 0; - $_etype913 = 0; - $xfer += $input->readListBegin($_etype913, $_size910); - for ($_i914 = 0; $_i914 < $_size910; ++$_i914) + $_size903 = 0; + $_etype906 = 0; + $xfer += $input->readListBegin($_etype906, $_size903); + for ($_i907 = 0; $_i907 < $_size903; ++$_i907) { - $elem915 = null; - $elem915 = new \metastore\PartitionSpec(); - $xfer += $elem915->read($input); - $this->success []= $elem915; + $elem908 = null; + $elem908 = new \metastore\PartitionSpec(); + $xfer += $elem908->read($input); + $this->success []= $elem908; } $xfer += $input->readListEnd(); } else { @@ -26971,9 +26747,9 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter916) + foreach ($this->success as $iter909) { - $xfer += $iter916->write($output); + $xfer += $iter909->write($output); } } $output->writeListEnd(); @@ -27539,14 +27315,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size917 = 0; - $_etype920 = 0; - $xfer += $input->readListBegin($_etype920, $_size917); - for ($_i921 = 0; $_i921 < $_size917; ++$_i921) + $_size910 = 0; + $_etype913 = 0; + $xfer += $input->readListBegin($_etype913, $_size910); + for ($_i914 = 0; $_i914 < $_size910; ++$_i914) { - $elem922 = null; - $xfer += $input->readString($elem922); - $this->names []= $elem922; + $elem915 = null; + $xfer += $input->readString($elem915); + $this->names []= $elem915; } $xfer += $input->readListEnd(); } else { @@ -27584,9 +27360,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter923) + foreach ($this->names as $iter916) { - $xfer += $output->writeString($iter923); + $xfer += $output->writeString($iter916); } } $output->writeListEnd(); @@ -27675,15 +27451,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size924 = 0; - $_etype927 = 0; - $xfer += $input->readListBegin($_etype927, $_size924); - for ($_i928 = 0; $_i928 < $_size924; ++$_i928) + $_size917 = 0; + $_etype920 = 0; + $xfer += $input->readListBegin($_etype920, $_size917); + for ($_i921 = 0; $_i921 < $_size917; ++$_i921) { - $elem929 = null; - $elem929 = new \metastore\Partition(); - $xfer += $elem929->read($input); - $this->success []= $elem929; + $elem922 = null; + $elem922 = new \metastore\Partition(); + $xfer += $elem922->read($input); + $this->success []= $elem922; } $xfer += $input->readListEnd(); } else { @@ -27727,9 +27503,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter930) + foreach ($this->success as $iter923) { - $xfer += $iter930->write($output); + $xfer += $iter923->write($output); } } $output->writeListEnd(); @@ -28068,15 +27844,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size931 = 0; - $_etype934 = 0; - $xfer += $input->readListBegin($_etype934, $_size931); - for ($_i935 = 0; $_i935 < $_size931; ++$_i935) + $_size924 = 0; + $_etype927 = 0; + $xfer += $input->readListBegin($_etype927, $_size924); + for ($_i928 = 0; $_i928 < $_size924; ++$_i928) { - $elem936 = null; - $elem936 = new \metastore\Partition(); - $xfer += $elem936->read($input); - $this->new_parts []= $elem936; + $elem929 = null; + $elem929 = new \metastore\Partition(); + $xfer += $elem929->read($input); + $this->new_parts []= $elem929; } $xfer += $input->readListEnd(); } else { @@ -28114,9 +27890,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter937) + foreach ($this->new_parts as $iter930) { - $xfer += $iter937->write($output); + $xfer += $iter930->write($output); } } $output->writeListEnd(); @@ -28331,15 +28107,15 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size938 = 0; - $_etype941 = 0; - $xfer += $input->readListBegin($_etype941, $_size938); - for ($_i942 = 0; $_i942 < $_size938; ++$_i942) + $_size931 = 0; + $_etype934 = 0; + $xfer += $input->readListBegin($_etype934, $_size931); + for ($_i935 = 0; $_i935 < $_size931; ++$_i935) { - $elem943 = null; - $elem943 = new \metastore\Partition(); - $xfer += $elem943->read($input); - $this->new_parts []= $elem943; + $elem936 = null; + $elem936 = new \metastore\Partition(); + $xfer += $elem936->read($input); + $this->new_parts []= $elem936; } $xfer += $input->readListEnd(); } else { @@ -28385,9 +28161,9 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter944) + foreach ($this->new_parts as $iter937) { - $xfer += $iter944->write($output); + $xfer += $iter937->write($output); } } $output->writeListEnd(); @@ -28865,14 +28641,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size945 = 0; - $_etype948 = 0; - $xfer += $input->readListBegin($_etype948, $_size945); - for ($_i949 = 0; $_i949 < $_size945; ++$_i949) + $_size938 = 0; + $_etype941 = 0; + $xfer += $input->readListBegin($_etype941, $_size938); + for ($_i942 = 0; $_i942 < $_size938; ++$_i942) { - $elem950 = null; - $xfer += $input->readString($elem950); - $this->part_vals []= $elem950; + $elem943 = null; + $xfer += $input->readString($elem943); + $this->part_vals []= $elem943; } $xfer += $input->readListEnd(); } else { @@ -28918,9 +28694,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter951) + foreach ($this->part_vals as $iter944) { - $xfer += $output->writeString($iter951); + $xfer += $output->writeString($iter944); } } $output->writeListEnd(); @@ -29105,14 +28881,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size952 = 0; - $_etype955 = 0; - $xfer += $input->readListBegin($_etype955, $_size952); - for ($_i956 = 0; $_i956 < $_size952; ++$_i956) + $_size945 = 0; + $_etype948 = 0; + $xfer += $input->readListBegin($_etype948, $_size945); + for ($_i949 = 0; $_i949 < $_size945; ++$_i949) { - $elem957 = null; - $xfer += $input->readString($elem957); - $this->part_vals []= $elem957; + $elem950 = null; + $xfer += $input->readString($elem950); + $this->part_vals []= $elem950; } $xfer += $input->readListEnd(); } else { @@ -29147,9 +28923,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter958) + foreach ($this->part_vals as $iter951) { - $xfer += $output->writeString($iter958); + $xfer += $output->writeString($iter951); } } $output->writeListEnd(); @@ -29603,14 +29379,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size959 = 0; - $_etype962 = 0; - $xfer += $input->readListBegin($_etype962, $_size959); - for ($_i963 = 0; $_i963 < $_size959; ++$_i963) + $_size952 = 0; + $_etype955 = 0; + $xfer += $input->readListBegin($_etype955, $_size952); + for ($_i956 = 0; $_i956 < $_size952; ++$_i956) { - $elem964 = null; - $xfer += $input->readString($elem964); - $this->success []= $elem964; + $elem957 = null; + $xfer += $input->readString($elem957); + $this->success []= $elem957; } $xfer += $input->readListEnd(); } else { @@ -29646,9 +29422,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter965) + foreach ($this->success as $iter958) { - $xfer += $output->writeString($iter965); + $xfer += $output->writeString($iter958); } } $output->writeListEnd(); @@ -29808,17 +29584,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size966 = 0; - $_ktype967 = 0; - $_vtype968 = 0; - $xfer += $input->readMapBegin($_ktype967, $_vtype968, $_size966); - for ($_i970 = 0; $_i970 < $_size966; ++$_i970) + $_size959 = 0; + $_ktype960 = 0; + $_vtype961 = 0; + $xfer += $input->readMapBegin($_ktype960, $_vtype961, $_size959); + for ($_i963 = 0; $_i963 < $_size959; ++$_i963) { - $key971 = ''; - $val972 = ''; - $xfer += $input->readString($key971); - $xfer += $input->readString($val972); - $this->success[$key971] = $val972; + $key964 = ''; + $val965 = ''; + $xfer += $input->readString($key964); + $xfer += $input->readString($val965); + $this->success[$key964] = $val965; } $xfer += $input->readMapEnd(); } else { @@ -29854,10 +29630,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter973 => $viter974) + foreach ($this->success as $kiter966 => $viter967) { - $xfer += $output->writeString($kiter973); - $xfer += $output->writeString($viter974); + $xfer += $output->writeString($kiter966); + $xfer += $output->writeString($viter967); } } $output->writeMapEnd(); @@ -29977,17 +29753,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size975 = 0; - $_ktype976 = 0; - $_vtype977 = 0; - $xfer += $input->readMapBegin($_ktype976, $_vtype977, $_size975); - for ($_i979 = 0; $_i979 < $_size975; ++$_i979) + $_size968 = 0; + $_ktype969 = 0; + $_vtype970 = 0; + $xfer += $input->readMapBegin($_ktype969, $_vtype970, $_size968); + for ($_i972 = 0; $_i972 < $_size968; ++$_i972) { - $key980 = ''; - $val981 = ''; - $xfer += $input->readString($key980); - $xfer += $input->readString($val981); - $this->part_vals[$key980] = $val981; + $key973 = ''; + $val974 = ''; + $xfer += $input->readString($key973); + $xfer += $input->readString($val974); + $this->part_vals[$key973] = $val974; } $xfer += $input->readMapEnd(); } else { @@ -30032,10 +29808,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter982 => $viter983) + foreach ($this->part_vals as $kiter975 => $viter976) { - $xfer += $output->writeString($kiter982); - $xfer += $output->writeString($viter983); + $xfer += $output->writeString($kiter975); + $xfer += $output->writeString($viter976); } } $output->writeMapEnd(); @@ -30357,17 +30133,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size984 = 0; - $_ktype985 = 0; - $_vtype986 = 0; - $xfer += $input->readMapBegin($_ktype985, $_vtype986, $_size984); - for ($_i988 = 0; $_i988 < $_size984; ++$_i988) + $_size977 = 0; + $_ktype978 = 0; + $_vtype979 = 0; + $xfer += $input->readMapBegin($_ktype978, $_vtype979, $_size977); + for ($_i981 = 0; $_i981 < $_size977; ++$_i981) { - $key989 = ''; - $val990 = ''; - $xfer += $input->readString($key989); - $xfer += $input->readString($val990); - $this->part_vals[$key989] = $val990; + $key982 = ''; + $val983 = ''; + $xfer += $input->readString($key982); + $xfer += $input->readString($val983); + $this->part_vals[$key982] = $val983; } $xfer += $input->readMapEnd(); } else { @@ -30412,10 +30188,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter991 => $viter992) + foreach ($this->part_vals as $kiter984 => $viter985) { - $xfer += $output->writeString($kiter991); - $xfer += $output->writeString($viter992); + $xfer += $output->writeString($kiter984); + $xfer += $output->writeString($viter985); } } $output->writeMapEnd(); @@ -31889,15 +31665,15 @@ class ThriftHiveMetastore_get_indexes_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size993 = 0; - $_etype996 = 0; - $xfer += $input->readListBegin($_etype996, $_size993); - for ($_i997 = 0; $_i997 < $_size993; ++$_i997) + $_size986 = 0; + $_etype989 = 0; + $xfer += $input->readListBegin($_etype989, $_size986); + for ($_i990 = 0; $_i990 < $_size986; ++$_i990) { - $elem998 = null; - $elem998 = new \metastore\Index(); - $xfer += $elem998->read($input); - $this->success []= $elem998; + $elem991 = null; + $elem991 = new \metastore\Index(); + $xfer += $elem991->read($input); + $this->success []= $elem991; } $xfer += $input->readListEnd(); } else { @@ -31941,9 +31717,9 @@ class ThriftHiveMetastore_get_indexes_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter999) + foreach ($this->success as $iter992) { - $xfer += $iter999->write($output); + $xfer += $iter992->write($output); } } $output->writeListEnd(); @@ -32150,14 +31926,14 @@ class ThriftHiveMetastore_get_index_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1000 = 0; - $_etype1003 = 0; - $xfer += $input->readListBegin($_etype1003, $_size1000); - for ($_i1004 = 0; $_i1004 < $_size1000; ++$_i1004) + $_size993 = 0; + $_etype996 = 0; + $xfer += $input->readListBegin($_etype996, $_size993); + for ($_i997 = 0; $_i997 < $_size993; ++$_i997) { - $elem1005 = null; - $xfer += $input->readString($elem1005); - $this->success []= $elem1005; + $elem998 = null; + $xfer += $input->readString($elem998); + $this->success []= $elem998; } $xfer += $input->readListEnd(); } else { @@ -32193,9 +31969,9 @@ class ThriftHiveMetastore_get_index_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1006) + foreach ($this->success as $iter999) { - $xfer += $output->writeString($iter1006); + $xfer += $output->writeString($iter999); } } $output->writeListEnd(); @@ -36089,14 +35865,14 @@ class ThriftHiveMetastore_get_functions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1007 = 0; - $_etype1010 = 0; - $xfer += $input->readListBegin($_etype1010, $_size1007); - for ($_i1011 = 0; $_i1011 < $_size1007; ++$_i1011) + $_size1000 = 0; + $_etype1003 = 0; + $xfer += $input->readListBegin($_etype1003, $_size1000); + for ($_i1004 = 0; $_i1004 < $_size1000; ++$_i1004) { - $elem1012 = null; - $xfer += $input->readString($elem1012); - $this->success []= $elem1012; + $elem1005 = null; + $xfer += $input->readString($elem1005); + $this->success []= $elem1005; } $xfer += $input->readListEnd(); } else { @@ -36132,9 +35908,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1013) + foreach ($this->success as $iter1006) { - $xfer += $output->writeString($iter1013); + $xfer += $output->writeString($iter1006); } } $output->writeListEnd(); @@ -37003,14 +36779,14 @@ class ThriftHiveMetastore_get_role_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1014 = 0; - $_etype1017 = 0; - $xfer += $input->readListBegin($_etype1017, $_size1014); - for ($_i1018 = 0; $_i1018 < $_size1014; ++$_i1018) + $_size1007 = 0; + $_etype1010 = 0; + $xfer += $input->readListBegin($_etype1010, $_size1007); + for ($_i1011 = 0; $_i1011 < $_size1007; ++$_i1011) { - $elem1019 = null; - $xfer += $input->readString($elem1019); - $this->success []= $elem1019; + $elem1012 = null; + $xfer += $input->readString($elem1012); + $this->success []= $elem1012; } $xfer += $input->readListEnd(); } else { @@ -37046,9 +36822,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1020) + foreach ($this->success as $iter1013) { - $xfer += $output->writeString($iter1020); + $xfer += $output->writeString($iter1013); } } $output->writeListEnd(); @@ -37739,15 +37515,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1021 = 0; - $_etype1024 = 0; - $xfer += $input->readListBegin($_etype1024, $_size1021); - for ($_i1025 = 0; $_i1025 < $_size1021; ++$_i1025) + $_size1014 = 0; + $_etype1017 = 0; + $xfer += $input->readListBegin($_etype1017, $_size1014); + for ($_i1018 = 0; $_i1018 < $_size1014; ++$_i1018) { - $elem1026 = null; - $elem1026 = new \metastore\Role(); - $xfer += $elem1026->read($input); - $this->success []= $elem1026; + $elem1019 = null; + $elem1019 = new \metastore\Role(); + $xfer += $elem1019->read($input); + $this->success []= $elem1019; } $xfer += $input->readListEnd(); } else { @@ -37783,9 +37559,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1027) + foreach ($this->success as $iter1020) { - $xfer += $iter1027->write($output); + $xfer += $iter1020->write($output); } } $output->writeListEnd(); @@ -38447,14 +38223,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1028 = 0; - $_etype1031 = 0; - $xfer += $input->readListBegin($_etype1031, $_size1028); - for ($_i1032 = 0; $_i1032 < $_size1028; ++$_i1032) + $_size1021 = 0; + $_etype1024 = 0; + $xfer += $input->readListBegin($_etype1024, $_size1021); + for ($_i1025 = 0; $_i1025 < $_size1021; ++$_i1025) { - $elem1033 = null; - $xfer += $input->readString($elem1033); - $this->group_names []= $elem1033; + $elem1026 = null; + $xfer += $input->readString($elem1026); + $this->group_names []= $elem1026; } $xfer += $input->readListEnd(); } else { @@ -38495,9 +38271,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1034) + foreach ($this->group_names as $iter1027) { - $xfer += $output->writeString($iter1034); + $xfer += $output->writeString($iter1027); } } $output->writeListEnd(); @@ -38805,15 +38581,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1035 = 0; - $_etype1038 = 0; - $xfer += $input->readListBegin($_etype1038, $_size1035); - for ($_i1039 = 0; $_i1039 < $_size1035; ++$_i1039) + $_size1028 = 0; + $_etype1031 = 0; + $xfer += $input->readListBegin($_etype1031, $_size1028); + for ($_i1032 = 0; $_i1032 < $_size1028; ++$_i1032) { - $elem1040 = null; - $elem1040 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem1040->read($input); - $this->success []= $elem1040; + $elem1033 = null; + $elem1033 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem1033->read($input); + $this->success []= $elem1033; } $xfer += $input->readListEnd(); } else { @@ -38849,9 +38625,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1041) + foreach ($this->success as $iter1034) { - $xfer += $iter1041->write($output); + $xfer += $iter1034->write($output); } } $output->writeListEnd(); @@ -39483,14 +39259,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1042 = 0; - $_etype1045 = 0; - $xfer += $input->readListBegin($_etype1045, $_size1042); - for ($_i1046 = 0; $_i1046 < $_size1042; ++$_i1046) + $_size1035 = 0; + $_etype1038 = 0; + $xfer += $input->readListBegin($_etype1038, $_size1035); + for ($_i1039 = 0; $_i1039 < $_size1035; ++$_i1039) { - $elem1047 = null; - $xfer += $input->readString($elem1047); - $this->group_names []= $elem1047; + $elem1040 = null; + $xfer += $input->readString($elem1040); + $this->group_names []= $elem1040; } $xfer += $input->readListEnd(); } else { @@ -39523,9 +39299,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1048) + foreach ($this->group_names as $iter1041) { - $xfer += $output->writeString($iter1048); + $xfer += $output->writeString($iter1041); } } $output->writeListEnd(); @@ -39601,14 +39377,14 @@ class ThriftHiveMetastore_set_ugi_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1049 = 0; - $_etype1052 = 0; - $xfer += $input->readListBegin($_etype1052, $_size1049); - for ($_i1053 = 0; $_i1053 < $_size1049; ++$_i1053) + $_size1042 = 0; + $_etype1045 = 0; + $xfer += $input->readListBegin($_etype1045, $_size1042); + for ($_i1046 = 0; $_i1046 < $_size1042; ++$_i1046) { - $elem1054 = null; - $xfer += $input->readString($elem1054); - $this->success []= $elem1054; + $elem1047 = null; + $xfer += $input->readString($elem1047); + $this->success []= $elem1047; } $xfer += $input->readListEnd(); } else { @@ -39644,9 +39420,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1055) + foreach ($this->success as $iter1048) { - $xfer += $output->writeString($iter1055); + $xfer += $output->writeString($iter1048); } } $output->writeListEnd(); @@ -40763,14 +40539,14 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1056 = 0; - $_etype1059 = 0; - $xfer += $input->readListBegin($_etype1059, $_size1056); - for ($_i1060 = 0; $_i1060 < $_size1056; ++$_i1060) + $_size1049 = 0; + $_etype1052 = 0; + $xfer += $input->readListBegin($_etype1052, $_size1049); + for ($_i1053 = 0; $_i1053 < $_size1049; ++$_i1053) { - $elem1061 = null; - $xfer += $input->readString($elem1061); - $this->success []= $elem1061; + $elem1054 = null; + $xfer += $input->readString($elem1054); + $this->success []= $elem1054; } $xfer += $input->readListEnd(); } else { @@ -40798,9 +40574,9 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1062) + foreach ($this->success as $iter1055) { - $xfer += $output->writeString($iter1062); + $xfer += $output->writeString($iter1055); } } $output->writeListEnd(); @@ -41439,14 +41215,14 @@ class ThriftHiveMetastore_get_master_keys_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1063 = 0; - $_etype1066 = 0; - $xfer += $input->readListBegin($_etype1066, $_size1063); - for ($_i1067 = 0; $_i1067 < $_size1063; ++$_i1067) + $_size1056 = 0; + $_etype1059 = 0; + $xfer += $input->readListBegin($_etype1059, $_size1056); + for ($_i1060 = 0; $_i1060 < $_size1056; ++$_i1060) { - $elem1068 = null; - $xfer += $input->readString($elem1068); - $this->success []= $elem1068; + $elem1061 = null; + $xfer += $input->readString($elem1061); + $this->success []= $elem1061; } $xfer += $input->readListEnd(); } else { @@ -41474,9 +41250,9 @@ class ThriftHiveMetastore_get_master_keys_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1069) + foreach ($this->success as $iter1062) { - $xfer += $output->writeString($iter1069); + $xfer += $output->writeString($iter1062); } } $output->writeListEnd(); @@ -45542,644 +45318,4 @@ class ThriftHiveMetastore_cache_file_metadata_result { } -class ThriftHiveMetastore_get_next_write_id_args { - static $_TSPEC; - - /** - * @var \metastore\GetNextWriteIdRequest - */ - public $req = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'req', - 'type' => TType::STRUCT, - 'class' => '\metastore\GetNextWriteIdRequest', - ), - ); - } - if (is_array($vals)) { - if (isset($vals['req'])) { - $this->req = $vals['req']; - } - } - } - - public function getName() { - return 'ThriftHiveMetastore_get_next_write_id_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->req = new \metastore\GetNextWriteIdRequest(); - $xfer += $this->req->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_next_write_id_args'); - if ($this->req !== null) { - if (!is_object($this->req)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1); - $xfer += $this->req->write($output); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class ThriftHiveMetastore_get_next_write_id_result { - static $_TSPEC; - - /** - * @var \metastore\GetNextWriteIdResult - */ - public $success = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 0 => array( - 'var' => 'success', - 'type' => TType::STRUCT, - 'class' => '\metastore\GetNextWriteIdResult', - ), - ); - } - if (is_array($vals)) { - if (isset($vals['success'])) { - $this->success = $vals['success']; - } - } - } - - public function getName() { - return 'ThriftHiveMetastore_get_next_write_id_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\GetNextWriteIdResult(); - $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_next_write_id_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_finalize_write_id_args { - static $_TSPEC; - - /** - * @var \metastore\FinalizeWriteIdRequest - */ - public $req = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'req', - 'type' => TType::STRUCT, - 'class' => '\metastore\FinalizeWriteIdRequest', - ), - ); - } - if (is_array($vals)) { - if (isset($vals['req'])) { - $this->req = $vals['req']; - } - } - } - - public function getName() { - return 'ThriftHiveMetastore_finalize_write_id_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->req = new \metastore\FinalizeWriteIdRequest(); - $xfer += $this->req->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_finalize_write_id_args'); - if ($this->req !== null) { - if (!is_object($this->req)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1); - $xfer += $this->req->write($output); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class ThriftHiveMetastore_finalize_write_id_result { - static $_TSPEC; - - /** - * @var \metastore\FinalizeWriteIdResult - */ - public $success = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 0 => array( - 'var' => 'success', - 'type' => TType::STRUCT, - 'class' => '\metastore\FinalizeWriteIdResult', - ), - ); - } - if (is_array($vals)) { - if (isset($vals['success'])) { - $this->success = $vals['success']; - } - } - } - - public function getName() { - return 'ThriftHiveMetastore_finalize_write_id_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\FinalizeWriteIdResult(); - $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_finalize_write_id_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_heartbeat_write_id_args { - static $_TSPEC; - - /** - * @var \metastore\HeartbeatWriteIdRequest - */ - public $req = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'req', - 'type' => TType::STRUCT, - 'class' => '\metastore\HeartbeatWriteIdRequest', - ), - ); - } - if (is_array($vals)) { - if (isset($vals['req'])) { - $this->req = $vals['req']; - } - } - } - - public function getName() { - return 'ThriftHiveMetastore_heartbeat_write_id_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->req = new \metastore\HeartbeatWriteIdRequest(); - $xfer += $this->req->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_heartbeat_write_id_args'); - if ($this->req !== null) { - if (!is_object($this->req)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1); - $xfer += $this->req->write($output); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class ThriftHiveMetastore_heartbeat_write_id_result { - static $_TSPEC; - - /** - * @var \metastore\HeartbeatWriteIdResult - */ - public $success = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 0 => array( - 'var' => 'success', - 'type' => TType::STRUCT, - 'class' => '\metastore\HeartbeatWriteIdResult', - ), - ); - } - if (is_array($vals)) { - if (isset($vals['success'])) { - $this->success = $vals['success']; - } - } - } - - public function getName() { - return 'ThriftHiveMetastore_heartbeat_write_id_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\HeartbeatWriteIdResult(); - $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_heartbeat_write_id_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_get_valid_write_ids_args { - static $_TSPEC; - - /** - * @var \metastore\GetValidWriteIdsRequest - */ - public $req = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'req', - 'type' => TType::STRUCT, - 'class' => '\metastore\GetValidWriteIdsRequest', - ), - ); - } - if (is_array($vals)) { - if (isset($vals['req'])) { - $this->req = $vals['req']; - } - } - } - - public function getName() { - return 'ThriftHiveMetastore_get_valid_write_ids_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->req = new \metastore\GetValidWriteIdsRequest(); - $xfer += $this->req->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_valid_write_ids_args'); - if ($this->req !== null) { - if (!is_object($this->req)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1); - $xfer += $this->req->write($output); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class ThriftHiveMetastore_get_valid_write_ids_result { - static $_TSPEC; - - /** - * @var \metastore\GetValidWriteIdsResult - */ - public $success = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 0 => array( - 'var' => 'success', - 'type' => TType::STRUCT, - 'class' => '\metastore\GetValidWriteIdsResult', - ), - ); - } - if (is_array($vals)) { - if (isset($vals['success'])) { - $this->success = $vals['success']; - } - } - } - - public function getName() { - return 'ThriftHiveMetastore_get_valid_write_ids_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\GetValidWriteIdsResult(); - $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_valid_write_ids_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; - } - -} - diff --git metastore/src/gen/thrift/gen-php/metastore/Types.php metastore/src/gen/thrift/gen-php/metastore/Types.php index a3201cc..acc541d 100644 --- metastore/src/gen/thrift/gen-php/metastore/Types.php +++ metastore/src/gen/thrift/gen-php/metastore/Types.php @@ -4569,14 +4569,6 @@ class Table { * @var bool */ public $rewriteEnabled = null; - /** - * @var int - */ - public $mmNextWriteId = null; - /** - * @var int - */ - public $mmWatermarkWriteId = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -4656,14 +4648,6 @@ class Table { 'var' => 'rewriteEnabled', 'type' => TType::BOOL, ), - 16 => array( - 'var' => 'mmNextWriteId', - 'type' => TType::I64, - ), - 17 => array( - 'var' => 'mmWatermarkWriteId', - 'type' => TType::I64, - ), ); } if (is_array($vals)) { @@ -4712,12 +4696,6 @@ class Table { if (isset($vals['rewriteEnabled'])) { $this->rewriteEnabled = $vals['rewriteEnabled']; } - if (isset($vals['mmNextWriteId'])) { - $this->mmNextWriteId = $vals['mmNextWriteId']; - } - if (isset($vals['mmWatermarkWriteId'])) { - $this->mmWatermarkWriteId = $vals['mmWatermarkWriteId']; - } } } @@ -4871,20 +4849,6 @@ class Table { $xfer += $input->skip($ftype); } break; - case 16: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->mmNextWriteId); - } else { - $xfer += $input->skip($ftype); - } - break; - case 17: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->mmWatermarkWriteId); - } else { - $xfer += $input->skip($ftype); - } - break; default: $xfer += $input->skip($ftype); break; @@ -5004,16 +4968,6 @@ class Table { $xfer += $output->writeBool($this->rewriteEnabled); $xfer += $output->writeFieldEnd(); } - if ($this->mmNextWriteId !== null) { - $xfer += $output->writeFieldBegin('mmNextWriteId', TType::I64, 16); - $xfer += $output->writeI64($this->mmNextWriteId); - $xfer += $output->writeFieldEnd(); - } - if ($this->mmWatermarkWriteId !== null) { - $xfer += $output->writeFieldBegin('mmWatermarkWriteId', TType::I64, 17); - $xfer += $output->writeI64($this->mmWatermarkWriteId); - $xfer += $output->writeFieldEnd(); - } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -17795,43 +17749,37 @@ class CacheFileMetadataRequest { } -class GetNextWriteIdRequest { +class GetAllFunctionsResponse { static $_TSPEC; /** - * @var string - */ - public $dbName = null; - /** - * @var string + * @var \metastore\Function[] */ - public $tblName = null; + public $functions = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'dbName', - 'type' => TType::STRING, - ), - 2 => array( - 'var' => 'tblName', - 'type' => TType::STRING, + 'var' => 'functions', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\Function', + ), ), ); } if (is_array($vals)) { - if (isset($vals['dbName'])) { - $this->dbName = $vals['dbName']; - } - if (isset($vals['tblName'])) { - $this->tblName = $vals['tblName']; + if (isset($vals['functions'])) { + $this->functions = $vals['functions']; } } } public function getName() { - return 'GetNextWriteIdRequest'; + return 'GetAllFunctionsResponse'; } public function read($input) @@ -17850,15 +17798,19 @@ class GetNextWriteIdRequest { switch ($fid) { case 1: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->dbName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->tblName); + if ($ftype == TType::LST) { + $this->functions = array(); + $_size568 = 0; + $_etype571 = 0; + $xfer += $input->readListBegin($_etype571, $_size568); + for ($_i572 = 0; $_i572 < $_size568; ++$_i572) + { + $elem573 = null; + $elem573 = new \metastore\Function(); + $xfer += $elem573->read($input); + $this->functions []= $elem573; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } @@ -17875,15 +17827,22 @@ class GetNextWriteIdRequest { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('GetNextWriteIdRequest'); - if ($this->dbName !== null) { - $xfer += $output->writeFieldBegin('dbName', TType::STRING, 1); - $xfer += $output->writeString($this->dbName); - $xfer += $output->writeFieldEnd(); - } - if ($this->tblName !== null) { - $xfer += $output->writeFieldBegin('tblName', TType::STRING, 2); - $xfer += $output->writeString($this->tblName); + $xfer += $output->writeStructBegin('GetAllFunctionsResponse'); + if ($this->functions !== null) { + if (!is_array($this->functions)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('functions', TType::LST, 1); + { + $output->writeListBegin(TType::STRUCT, count($this->functions)); + { + foreach ($this->functions as $iter574) + { + $xfer += $iter574->write($output); + } + } + $output->writeListEnd(); + } $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -17893,32 +17852,36 @@ class GetNextWriteIdRequest { } -class GetNextWriteIdResult { +class ClientCapabilities { static $_TSPEC; /** - * @var int + * @var int[] */ - public $writeId = null; + public $values = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'writeId', - 'type' => TType::I64, + 'var' => 'values', + 'type' => TType::LST, + 'etype' => TType::I32, + 'elem' => array( + 'type' => TType::I32, + ), ), ); } if (is_array($vals)) { - if (isset($vals['writeId'])) { - $this->writeId = $vals['writeId']; + if (isset($vals['values'])) { + $this->values = $vals['values']; } } } public function getName() { - return 'GetNextWriteIdResult'; + return 'ClientCapabilities'; } public function read($input) @@ -17937,8 +17900,18 @@ class GetNextWriteIdResult { switch ($fid) { case 1: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->writeId); + if ($ftype == TType::LST) { + $this->values = array(); + $_size575 = 0; + $_etype578 = 0; + $xfer += $input->readListBegin($_etype578, $_size575); + for ($_i579 = 0; $_i579 < $_size575; ++$_i579) + { + $elem580 = null; + $xfer += $input->readI32($elem580); + $this->values []= $elem580; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } @@ -17955,10 +17928,22 @@ class GetNextWriteIdResult { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('GetNextWriteIdResult'); - if ($this->writeId !== null) { - $xfer += $output->writeFieldBegin('writeId', TType::I64, 1); - $xfer += $output->writeI64($this->writeId); + $xfer += $output->writeStructBegin('ClientCapabilities'); + if ($this->values !== null) { + if (!is_array($this->values)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('values', TType::LST, 1); + { + $output->writeListBegin(TType::I32, count($this->values)); + { + foreach ($this->values as $iter581) + { + $xfer += $output->writeI32($iter581); + } + } + $output->writeListEnd(); + } $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -17968,7 +17953,7 @@ class GetNextWriteIdResult { } -class FinalizeWriteIdRequest { +class GetTableRequest { static $_TSPEC; /** @@ -17980,13 +17965,9 @@ class FinalizeWriteIdRequest { */ public $tblName = null; /** - * @var int - */ - public $writeId = null; - /** - * @var bool + * @var \metastore\ClientCapabilities */ - public $commit = null; + public $capabilities = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -18000,12 +17981,9 @@ class FinalizeWriteIdRequest { 'type' => TType::STRING, ), 3 => array( - 'var' => 'writeId', - 'type' => TType::I64, - ), - 4 => array( - 'var' => 'commit', - 'type' => TType::BOOL, + 'var' => 'capabilities', + 'type' => TType::STRUCT, + 'class' => '\metastore\ClientCapabilities', ), ); } @@ -18016,17 +17994,14 @@ class FinalizeWriteIdRequest { if (isset($vals['tblName'])) { $this->tblName = $vals['tblName']; } - if (isset($vals['writeId'])) { - $this->writeId = $vals['writeId']; - } - if (isset($vals['commit'])) { - $this->commit = $vals['commit']; + if (isset($vals['capabilities'])) { + $this->capabilities = $vals['capabilities']; } } } public function getName() { - return 'FinalizeWriteIdRequest'; + return 'GetTableRequest'; } public function read($input) @@ -18059,15 +18034,9 @@ class FinalizeWriteIdRequest { } break; case 3: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->writeId); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->commit); + if ($ftype == TType::STRUCT) { + $this->capabilities = new \metastore\ClientCapabilities(); + $xfer += $this->capabilities->read($input); } else { $xfer += $input->skip($ftype); } @@ -18084,7 +18053,7 @@ class FinalizeWriteIdRequest { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('FinalizeWriteIdRequest'); + $xfer += $output->writeStructBegin('GetTableRequest'); if ($this->dbName !== null) { $xfer += $output->writeFieldBegin('dbName', TType::STRING, 1); $xfer += $output->writeString($this->dbName); @@ -18095,14 +18064,12 @@ class FinalizeWriteIdRequest { $xfer += $output->writeString($this->tblName); $xfer += $output->writeFieldEnd(); } - if ($this->writeId !== null) { - $xfer += $output->writeFieldBegin('writeId', TType::I64, 3); - $xfer += $output->writeI64($this->writeId); - $xfer += $output->writeFieldEnd(); - } - if ($this->commit !== null) { - $xfer += $output->writeFieldBegin('commit', TType::BOOL, 4); - $xfer += $output->writeBool($this->commit); + if ($this->capabilities !== null) { + if (!is_object($this->capabilities)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('capabilities', TType::STRUCT, 3); + $xfer += $this->capabilities->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -18112,19 +18079,33 @@ class FinalizeWriteIdRequest { } -class FinalizeWriteIdResult { +class GetTableResult { static $_TSPEC; + /** + * @var \metastore\Table + */ + public $table = null; - public function __construct() { + public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( + 1 => array( + 'var' => 'table', + 'type' => TType::STRUCT, + 'class' => '\metastore\Table', + ), ); } + if (is_array($vals)) { + if (isset($vals['table'])) { + $this->table = $vals['table']; + } + } } public function getName() { - return 'FinalizeWriteIdResult'; + return 'GetTableResult'; } public function read($input) @@ -18142,6 +18123,14 @@ class FinalizeWriteIdResult { } switch ($fid) { + case 1: + if ($ftype == TType::STRUCT) { + $this->table = new \metastore\Table(); + $xfer += $this->table->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -18154,7 +18143,15 @@ class FinalizeWriteIdResult { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('FinalizeWriteIdResult'); + $xfer += $output->writeStructBegin('GetTableResult'); + if ($this->table !== null) { + if (!is_object($this->table)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('table', TType::STRUCT, 1); + $xfer += $this->table->write($output); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -18162,7 +18159,7 @@ class FinalizeWriteIdResult { } -class HeartbeatWriteIdRequest { +class GetTablesRequest { static $_TSPEC; /** @@ -18170,13 +18167,13 @@ class HeartbeatWriteIdRequest { */ public $dbName = null; /** - * @var string + * @var string[] */ - public $tblName = null; + public $tblNames = null; /** - * @var int + * @var \metastore\ClientCapabilities */ - public $writeId = null; + public $capabilities = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -18186,12 +18183,17 @@ class HeartbeatWriteIdRequest { 'type' => TType::STRING, ), 2 => array( - 'var' => 'tblName', - 'type' => TType::STRING, + 'var' => 'tblNames', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), ), 3 => array( - 'var' => 'writeId', - 'type' => TType::I64, + 'var' => 'capabilities', + 'type' => TType::STRUCT, + 'class' => '\metastore\ClientCapabilities', ), ); } @@ -18199,17 +18201,17 @@ class HeartbeatWriteIdRequest { if (isset($vals['dbName'])) { $this->dbName = $vals['dbName']; } - if (isset($vals['tblName'])) { - $this->tblName = $vals['tblName']; + if (isset($vals['tblNames'])) { + $this->tblNames = $vals['tblNames']; } - if (isset($vals['writeId'])) { - $this->writeId = $vals['writeId']; + if (isset($vals['capabilities'])) { + $this->capabilities = $vals['capabilities']; } } } public function getName() { - return 'HeartbeatWriteIdRequest'; + return 'GetTablesRequest'; } public function read($input) @@ -18235,15 +18237,26 @@ class HeartbeatWriteIdRequest { } break; case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->tblName); + if ($ftype == TType::LST) { + $this->tblNames = array(); + $_size582 = 0; + $_etype585 = 0; + $xfer += $input->readListBegin($_etype585, $_size582); + for ($_i586 = 0; $_i586 < $_size582; ++$_i586) + { + $elem587 = null; + $xfer += $input->readString($elem587); + $this->tblNames []= $elem587; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->writeId); + if ($ftype == TType::STRUCT) { + $this->capabilities = new \metastore\ClientCapabilities(); + $xfer += $this->capabilities->read($input); } else { $xfer += $input->skip($ftype); } @@ -18260,872 +18273,7 @@ class HeartbeatWriteIdRequest { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('HeartbeatWriteIdRequest'); - if ($this->dbName !== null) { - $xfer += $output->writeFieldBegin('dbName', TType::STRING, 1); - $xfer += $output->writeString($this->dbName); - $xfer += $output->writeFieldEnd(); - } - if ($this->tblName !== null) { - $xfer += $output->writeFieldBegin('tblName', TType::STRING, 2); - $xfer += $output->writeString($this->tblName); - $xfer += $output->writeFieldEnd(); - } - if ($this->writeId !== null) { - $xfer += $output->writeFieldBegin('writeId', TType::I64, 3); - $xfer += $output->writeI64($this->writeId); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class HeartbeatWriteIdResult { - static $_TSPEC; - - - public function __construct() { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - ); - } - } - - public function getName() { - return 'HeartbeatWriteIdResult'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('HeartbeatWriteIdResult'); - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class GetValidWriteIdsRequest { - static $_TSPEC; - - /** - * @var string - */ - public $dbName = null; - /** - * @var string - */ - public $tblName = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'dbName', - 'type' => TType::STRING, - ), - 2 => array( - 'var' => 'tblName', - 'type' => TType::STRING, - ), - ); - } - if (is_array($vals)) { - if (isset($vals['dbName'])) { - $this->dbName = $vals['dbName']; - } - if (isset($vals['tblName'])) { - $this->tblName = $vals['tblName']; - } - } - } - - public function getName() { - return 'GetValidWriteIdsRequest'; - } - - 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::STRING) { - $xfer += $input->readString($this->dbName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->tblName); - } 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('GetValidWriteIdsRequest'); - if ($this->dbName !== null) { - $xfer += $output->writeFieldBegin('dbName', TType::STRING, 1); - $xfer += $output->writeString($this->dbName); - $xfer += $output->writeFieldEnd(); - } - if ($this->tblName !== null) { - $xfer += $output->writeFieldBegin('tblName', TType::STRING, 2); - $xfer += $output->writeString($this->tblName); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class GetValidWriteIdsResult { - static $_TSPEC; - - /** - * @var int - */ - public $lowWatermarkId = null; - /** - * @var int - */ - public $highWatermarkId = null; - /** - * @var bool - */ - public $areIdsValid = null; - /** - * @var int[] - */ - public $ids = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'lowWatermarkId', - 'type' => TType::I64, - ), - 2 => array( - 'var' => 'highWatermarkId', - 'type' => TType::I64, - ), - 3 => array( - 'var' => 'areIdsValid', - 'type' => TType::BOOL, - ), - 4 => array( - 'var' => 'ids', - 'type' => TType::LST, - 'etype' => TType::I64, - 'elem' => array( - 'type' => TType::I64, - ), - ), - ); - } - if (is_array($vals)) { - if (isset($vals['lowWatermarkId'])) { - $this->lowWatermarkId = $vals['lowWatermarkId']; - } - if (isset($vals['highWatermarkId'])) { - $this->highWatermarkId = $vals['highWatermarkId']; - } - if (isset($vals['areIdsValid'])) { - $this->areIdsValid = $vals['areIdsValid']; - } - if (isset($vals['ids'])) { - $this->ids = $vals['ids']; - } - } - } - - public function getName() { - return 'GetValidWriteIdsResult'; - } - - 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->lowWatermarkId); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->highWatermarkId); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->areIdsValid); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::LST) { - $this->ids = array(); - $_size568 = 0; - $_etype571 = 0; - $xfer += $input->readListBegin($_etype571, $_size568); - for ($_i572 = 0; $_i572 < $_size568; ++$_i572) - { - $elem573 = null; - $xfer += $input->readI64($elem573); - $this->ids []= $elem573; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('GetValidWriteIdsResult'); - if ($this->lowWatermarkId !== null) { - $xfer += $output->writeFieldBegin('lowWatermarkId', TType::I64, 1); - $xfer += $output->writeI64($this->lowWatermarkId); - $xfer += $output->writeFieldEnd(); - } - if ($this->highWatermarkId !== null) { - $xfer += $output->writeFieldBegin('highWatermarkId', TType::I64, 2); - $xfer += $output->writeI64($this->highWatermarkId); - $xfer += $output->writeFieldEnd(); - } - if ($this->areIdsValid !== null) { - $xfer += $output->writeFieldBegin('areIdsValid', TType::BOOL, 3); - $xfer += $output->writeBool($this->areIdsValid); - $xfer += $output->writeFieldEnd(); - } - if ($this->ids !== null) { - if (!is_array($this->ids)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('ids', TType::LST, 4); - { - $output->writeListBegin(TType::I64, count($this->ids)); - { - foreach ($this->ids as $iter574) - { - $xfer += $output->writeI64($iter574); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class GetAllFunctionsResponse { - static $_TSPEC; - - /** - * @var \metastore\Function[] - */ - public $functions = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'functions', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\metastore\Function', - ), - ), - ); - } - if (is_array($vals)) { - if (isset($vals['functions'])) { - $this->functions = $vals['functions']; - } - } - } - - public function getName() { - return 'GetAllFunctionsResponse'; - } - - 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::LST) { - $this->functions = array(); - $_size575 = 0; - $_etype578 = 0; - $xfer += $input->readListBegin($_etype578, $_size575); - for ($_i579 = 0; $_i579 < $_size575; ++$_i579) - { - $elem580 = null; - $elem580 = new \metastore\Function(); - $xfer += $elem580->read($input); - $this->functions []= $elem580; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('GetAllFunctionsResponse'); - if ($this->functions !== null) { - if (!is_array($this->functions)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('functions', TType::LST, 1); - { - $output->writeListBegin(TType::STRUCT, count($this->functions)); - { - foreach ($this->functions as $iter581) - { - $xfer += $iter581->write($output); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class ClientCapabilities { - static $_TSPEC; - - /** - * @var int[] - */ - public $values = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'values', - 'type' => TType::LST, - 'etype' => TType::I32, - 'elem' => array( - 'type' => TType::I32, - ), - ), - ); - } - if (is_array($vals)) { - if (isset($vals['values'])) { - $this->values = $vals['values']; - } - } - } - - public function getName() { - return 'ClientCapabilities'; - } - - 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::LST) { - $this->values = array(); - $_size582 = 0; - $_etype585 = 0; - $xfer += $input->readListBegin($_etype585, $_size582); - for ($_i586 = 0; $_i586 < $_size582; ++$_i586) - { - $elem587 = null; - $xfer += $input->readI32($elem587); - $this->values []= $elem587; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('ClientCapabilities'); - if ($this->values !== null) { - if (!is_array($this->values)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('values', TType::LST, 1); - { - $output->writeListBegin(TType::I32, count($this->values)); - { - foreach ($this->values as $iter588) - { - $xfer += $output->writeI32($iter588); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class GetTableRequest { - static $_TSPEC; - - /** - * @var string - */ - public $dbName = null; - /** - * @var string - */ - public $tblName = null; - /** - * @var \metastore\ClientCapabilities - */ - public $capabilities = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'dbName', - 'type' => TType::STRING, - ), - 2 => array( - 'var' => 'tblName', - 'type' => TType::STRING, - ), - 3 => array( - 'var' => 'capabilities', - 'type' => TType::STRUCT, - 'class' => '\metastore\ClientCapabilities', - ), - ); - } - if (is_array($vals)) { - if (isset($vals['dbName'])) { - $this->dbName = $vals['dbName']; - } - if (isset($vals['tblName'])) { - $this->tblName = $vals['tblName']; - } - if (isset($vals['capabilities'])) { - $this->capabilities = $vals['capabilities']; - } - } - } - - public function getName() { - return 'GetTableRequest'; - } - - 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::STRING) { - $xfer += $input->readString($this->dbName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->tblName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRUCT) { - $this->capabilities = new \metastore\ClientCapabilities(); - $xfer += $this->capabilities->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('GetTableRequest'); - if ($this->dbName !== null) { - $xfer += $output->writeFieldBegin('dbName', TType::STRING, 1); - $xfer += $output->writeString($this->dbName); - $xfer += $output->writeFieldEnd(); - } - if ($this->tblName !== null) { - $xfer += $output->writeFieldBegin('tblName', TType::STRING, 2); - $xfer += $output->writeString($this->tblName); - $xfer += $output->writeFieldEnd(); - } - if ($this->capabilities !== null) { - if (!is_object($this->capabilities)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('capabilities', TType::STRUCT, 3); - $xfer += $this->capabilities->write($output); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class GetTableResult { - static $_TSPEC; - - /** - * @var \metastore\Table - */ - public $table = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'table', - 'type' => TType::STRUCT, - 'class' => '\metastore\Table', - ), - ); - } - if (is_array($vals)) { - if (isset($vals['table'])) { - $this->table = $vals['table']; - } - } - } - - public function getName() { - return 'GetTableResult'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 1: - if ($ftype == TType::STRUCT) { - $this->table = new \metastore\Table(); - $xfer += $this->table->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('GetTableResult'); - if ($this->table !== null) { - if (!is_object($this->table)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('table', TType::STRUCT, 1); - $xfer += $this->table->write($output); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class GetTablesRequest { - static $_TSPEC; - - /** - * @var string - */ - public $dbName = null; - /** - * @var string[] - */ - public $tblNames = null; - /** - * @var \metastore\ClientCapabilities - */ - public $capabilities = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'dbName', - 'type' => TType::STRING, - ), - 2 => array( - 'var' => 'tblNames', - 'type' => TType::LST, - 'etype' => TType::STRING, - 'elem' => array( - 'type' => TType::STRING, - ), - ), - 3 => array( - 'var' => 'capabilities', - 'type' => TType::STRUCT, - 'class' => '\metastore\ClientCapabilities', - ), - ); - } - if (is_array($vals)) { - if (isset($vals['dbName'])) { - $this->dbName = $vals['dbName']; - } - if (isset($vals['tblNames'])) { - $this->tblNames = $vals['tblNames']; - } - if (isset($vals['capabilities'])) { - $this->capabilities = $vals['capabilities']; - } - } - } - - public function getName() { - return 'GetTablesRequest'; - } - - 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::STRING) { - $xfer += $input->readString($this->dbName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::LST) { - $this->tblNames = array(); - $_size589 = 0; - $_etype592 = 0; - $xfer += $input->readListBegin($_etype592, $_size589); - for ($_i593 = 0; $_i593 < $_size589; ++$_i593) - { - $elem594 = null; - $xfer += $input->readString($elem594); - $this->tblNames []= $elem594; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRUCT) { - $this->capabilities = new \metastore\ClientCapabilities(); - $xfer += $this->capabilities->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('GetTablesRequest'); + $xfer += $output->writeStructBegin('GetTablesRequest'); if ($this->dbName !== null) { $xfer += $output->writeFieldBegin('dbName', TType::STRING, 1); $xfer += $output->writeString($this->dbName); @@ -19139,9 +18287,9 @@ class GetTablesRequest { { $output->writeListBegin(TType::STRING, count($this->tblNames)); { - foreach ($this->tblNames as $iter595) + foreach ($this->tblNames as $iter588) { - $xfer += $output->writeString($iter595); + $xfer += $output->writeString($iter588); } } $output->writeListEnd(); @@ -19214,15 +18362,15 @@ class GetTablesResult { case 1: if ($ftype == TType::LST) { $this->tables = array(); - $_size596 = 0; - $_etype599 = 0; - $xfer += $input->readListBegin($_etype599, $_size596); - for ($_i600 = 0; $_i600 < $_size596; ++$_i600) + $_size589 = 0; + $_etype592 = 0; + $xfer += $input->readListBegin($_etype592, $_size589); + for ($_i593 = 0; $_i593 < $_size589; ++$_i593) { - $elem601 = null; - $elem601 = new \metastore\Table(); - $xfer += $elem601->read($input); - $this->tables []= $elem601; + $elem594 = null; + $elem594 = new \metastore\Table(); + $xfer += $elem594->read($input); + $this->tables []= $elem594; } $xfer += $input->readListEnd(); } else { @@ -19250,9 +18398,9 @@ class GetTablesResult { { $output->writeListBegin(TType::STRUCT, count($this->tables)); { - foreach ($this->tables as $iter602) + foreach ($this->tables as $iter595) { - $xfer += $iter602->write($output); + $xfer += $iter595->write($output); } } $output->writeListEnd(); diff --git metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote index c1c3393..f2a9799 100755 --- metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -178,10 +178,6 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' PutFileMetadataResult put_file_metadata(PutFileMetadataRequest req)') print(' ClearFileMetadataResult clear_file_metadata(ClearFileMetadataRequest req)') print(' CacheFileMetadataResult cache_file_metadata(CacheFileMetadataRequest req)') - print(' GetNextWriteIdResult get_next_write_id(GetNextWriteIdRequest req)') - print(' FinalizeWriteIdResult finalize_write_id(FinalizeWriteIdRequest req)') - print(' HeartbeatWriteIdResult heartbeat_write_id(HeartbeatWriteIdRequest req)') - print(' GetValidWriteIdsResult get_valid_write_ids(GetValidWriteIdsRequest req)') print(' string getName()') print(' string getVersion()') print(' fb_status getStatus()') @@ -1175,30 +1171,6 @@ elif cmd == 'cache_file_metadata': sys.exit(1) pp.pprint(client.cache_file_metadata(eval(args[0]),)) -elif cmd == 'get_next_write_id': - if len(args) != 1: - print('get_next_write_id requires 1 args') - sys.exit(1) - pp.pprint(client.get_next_write_id(eval(args[0]),)) - -elif cmd == 'finalize_write_id': - if len(args) != 1: - print('finalize_write_id requires 1 args') - sys.exit(1) - pp.pprint(client.finalize_write_id(eval(args[0]),)) - -elif cmd == 'heartbeat_write_id': - if len(args) != 1: - print('heartbeat_write_id requires 1 args') - sys.exit(1) - pp.pprint(client.heartbeat_write_id(eval(args[0]),)) - -elif cmd == 'get_valid_write_ids': - if len(args) != 1: - print('get_valid_write_ids requires 1 args') - sys.exit(1) - pp.pprint(client.get_valid_write_ids(eval(args[0]),)) - elif cmd == 'getName': if len(args) != 0: print('getName requires 0 args') diff --git metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py index 1de9056..8ee84af 100644 --- metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -1239,34 +1239,6 @@ def cache_file_metadata(self, req): """ pass - def get_next_write_id(self, req): - """ - Parameters: - - req - """ - pass - - def finalize_write_id(self, req): - """ - Parameters: - - req - """ - pass - - def heartbeat_write_id(self, req): - """ - Parameters: - - req - """ - pass - - def get_valid_write_ids(self, req): - """ - Parameters: - - req - """ - pass - class Client(fb303.FacebookService.Client, Iface): """ @@ -6832,130 +6804,6 @@ def recv_cache_file_metadata(self): return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "cache_file_metadata failed: unknown result") - def get_next_write_id(self, req): - """ - Parameters: - - req - """ - self.send_get_next_write_id(req) - return self.recv_get_next_write_id() - - def send_get_next_write_id(self, req): - self._oprot.writeMessageBegin('get_next_write_id', TMessageType.CALL, self._seqid) - args = get_next_write_id_args() - args.req = req - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() - - def recv_get_next_write_id(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() - raise x - result = get_next_write_id_result() - result.read(iprot) - iprot.readMessageEnd() - if result.success is not None: - return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_next_write_id failed: unknown result") - - def finalize_write_id(self, req): - """ - Parameters: - - req - """ - self.send_finalize_write_id(req) - return self.recv_finalize_write_id() - - def send_finalize_write_id(self, req): - self._oprot.writeMessageBegin('finalize_write_id', TMessageType.CALL, self._seqid) - args = finalize_write_id_args() - args.req = req - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() - - def recv_finalize_write_id(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() - raise x - result = finalize_write_id_result() - result.read(iprot) - iprot.readMessageEnd() - if result.success is not None: - return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "finalize_write_id failed: unknown result") - - def heartbeat_write_id(self, req): - """ - Parameters: - - req - """ - self.send_heartbeat_write_id(req) - return self.recv_heartbeat_write_id() - - def send_heartbeat_write_id(self, req): - self._oprot.writeMessageBegin('heartbeat_write_id', TMessageType.CALL, self._seqid) - args = heartbeat_write_id_args() - args.req = req - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() - - def recv_heartbeat_write_id(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() - raise x - result = heartbeat_write_id_result() - result.read(iprot) - iprot.readMessageEnd() - if result.success is not None: - return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "heartbeat_write_id failed: unknown result") - - def get_valid_write_ids(self, req): - """ - Parameters: - - req - """ - self.send_get_valid_write_ids(req) - return self.recv_get_valid_write_ids() - - def send_get_valid_write_ids(self, req): - self._oprot.writeMessageBegin('get_valid_write_ids', TMessageType.CALL, self._seqid) - args = get_valid_write_ids_args() - args.req = req - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() - - def recv_get_valid_write_ids(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() - raise x - result = get_valid_write_ids_result() - result.read(iprot) - iprot.readMessageEnd() - if result.success is not None: - return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_valid_write_ids failed: unknown result") - class Processor(fb303.FacebookService.Processor, Iface, TProcessor): def __init__(self, handler): @@ -7114,10 +6962,6 @@ def __init__(self, handler): self._processMap["put_file_metadata"] = Processor.process_put_file_metadata self._processMap["clear_file_metadata"] = Processor.process_clear_file_metadata self._processMap["cache_file_metadata"] = Processor.process_cache_file_metadata - self._processMap["get_next_write_id"] = Processor.process_get_next_write_id - self._processMap["finalize_write_id"] = Processor.process_finalize_write_id - self._processMap["heartbeat_write_id"] = Processor.process_heartbeat_write_id - self._processMap["get_valid_write_ids"] = Processor.process_get_valid_write_ids def process(self, iprot, oprot): (name, type, seqid) = iprot.readMessageBegin() @@ -10888,82 +10732,6 @@ def process_cache_file_metadata(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() - def process_get_next_write_id(self, seqid, iprot, oprot): - args = get_next_write_id_args() - args.read(iprot) - iprot.readMessageEnd() - result = get_next_write_id_result() - try: - result.success = self._handler.get_next_write_id(args.req) - 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_next_write_id", msg_type, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - - def process_finalize_write_id(self, seqid, iprot, oprot): - args = finalize_write_id_args() - args.read(iprot) - iprot.readMessageEnd() - result = finalize_write_id_result() - try: - result.success = self._handler.finalize_write_id(args.req) - 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("finalize_write_id", msg_type, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - - def process_heartbeat_write_id(self, seqid, iprot, oprot): - args = heartbeat_write_id_args() - args.read(iprot) - iprot.readMessageEnd() - result = heartbeat_write_id_result() - try: - result.success = self._handler.heartbeat_write_id(args.req) - 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("heartbeat_write_id", msg_type, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - - def process_get_valid_write_ids(self, seqid, iprot, oprot): - args = get_valid_write_ids_args() - args.read(iprot) - iprot.readMessageEnd() - result = get_valid_write_ids_result() - try: - result.success = self._handler.get_valid_write_ids(args.req) - 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_valid_write_ids", msg_type, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - # HELPER FUNCTIONS AND STRUCTURES @@ -11850,10 +11618,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype604, _size601) = iprot.readListBegin() - for _i605 in xrange(_size601): - _elem606 = iprot.readString() - self.success.append(_elem606) + (_etype597, _size594) = iprot.readListBegin() + for _i598 in xrange(_size594): + _elem599 = iprot.readString() + self.success.append(_elem599) iprot.readListEnd() else: iprot.skip(ftype) @@ -11876,8 +11644,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter607 in self.success: - oprot.writeString(iter607) + for iter600 in self.success: + oprot.writeString(iter600) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -11982,10 +11750,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype611, _size608) = iprot.readListBegin() - for _i612 in xrange(_size608): - _elem613 = iprot.readString() - self.success.append(_elem613) + (_etype604, _size601) = iprot.readListBegin() + for _i605 in xrange(_size601): + _elem606 = iprot.readString() + self.success.append(_elem606) iprot.readListEnd() else: iprot.skip(ftype) @@ -12008,8 +11776,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter614 in self.success: - oprot.writeString(iter614) + for iter607 in self.success: + oprot.writeString(iter607) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -12779,12 +12547,12 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype616, _vtype617, _size615 ) = iprot.readMapBegin() - for _i619 in xrange(_size615): - _key620 = iprot.readString() - _val621 = Type() - _val621.read(iprot) - self.success[_key620] = _val621 + (_ktype609, _vtype610, _size608 ) = iprot.readMapBegin() + for _i612 in xrange(_size608): + _key613 = iprot.readString() + _val614 = Type() + _val614.read(iprot) + self.success[_key613] = _val614 iprot.readMapEnd() else: iprot.skip(ftype) @@ -12807,9 +12575,9 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) - for kiter622,viter623 in self.success.items(): - oprot.writeString(kiter622) - viter623.write(oprot) + for kiter615,viter616 in self.success.items(): + oprot.writeString(kiter615) + viter616.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -12952,11 +12720,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype627, _size624) = iprot.readListBegin() - for _i628 in xrange(_size624): - _elem629 = FieldSchema() - _elem629.read(iprot) - self.success.append(_elem629) + (_etype620, _size617) = iprot.readListBegin() + for _i621 in xrange(_size617): + _elem622 = FieldSchema() + _elem622.read(iprot) + self.success.append(_elem622) iprot.readListEnd() else: iprot.skip(ftype) @@ -12991,8 +12759,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter630 in self.success: - iter630.write(oprot) + for iter623 in self.success: + iter623.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13159,11 +12927,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype634, _size631) = iprot.readListBegin() - for _i635 in xrange(_size631): - _elem636 = FieldSchema() - _elem636.read(iprot) - self.success.append(_elem636) + (_etype627, _size624) = iprot.readListBegin() + for _i628 in xrange(_size624): + _elem629 = FieldSchema() + _elem629.read(iprot) + self.success.append(_elem629) iprot.readListEnd() else: iprot.skip(ftype) @@ -13198,8 +12966,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter637 in self.success: - iter637.write(oprot) + for iter630 in self.success: + iter630.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13352,11 +13120,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype641, _size638) = iprot.readListBegin() - for _i642 in xrange(_size638): - _elem643 = FieldSchema() - _elem643.read(iprot) - self.success.append(_elem643) + (_etype634, _size631) = iprot.readListBegin() + for _i635 in xrange(_size631): + _elem636 = FieldSchema() + _elem636.read(iprot) + self.success.append(_elem636) iprot.readListEnd() else: iprot.skip(ftype) @@ -13391,8 +13159,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter644 in self.success: - iter644.write(oprot) + for iter637 in self.success: + iter637.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13559,11 +13327,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype648, _size645) = iprot.readListBegin() - for _i649 in xrange(_size645): - _elem650 = FieldSchema() - _elem650.read(iprot) - self.success.append(_elem650) + (_etype641, _size638) = iprot.readListBegin() + for _i642 in xrange(_size638): + _elem643 = FieldSchema() + _elem643.read(iprot) + self.success.append(_elem643) iprot.readListEnd() else: iprot.skip(ftype) @@ -13598,8 +13366,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter651 in self.success: - iter651.write(oprot) + for iter644 in self.success: + iter644.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14040,22 +13808,22 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.primaryKeys = [] - (_etype655, _size652) = iprot.readListBegin() - for _i656 in xrange(_size652): - _elem657 = SQLPrimaryKey() - _elem657.read(iprot) - self.primaryKeys.append(_elem657) + (_etype648, _size645) = iprot.readListBegin() + for _i649 in xrange(_size645): + _elem650 = SQLPrimaryKey() + _elem650.read(iprot) + self.primaryKeys.append(_elem650) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.foreignKeys = [] - (_etype661, _size658) = iprot.readListBegin() - for _i662 in xrange(_size658): - _elem663 = SQLForeignKey() - _elem663.read(iprot) - self.foreignKeys.append(_elem663) + (_etype654, _size651) = iprot.readListBegin() + for _i655 in xrange(_size651): + _elem656 = SQLForeignKey() + _elem656.read(iprot) + self.foreignKeys.append(_elem656) iprot.readListEnd() else: iprot.skip(ftype) @@ -14076,15 +13844,15 @@ def write(self, oprot): if self.primaryKeys is not None: oprot.writeFieldBegin('primaryKeys', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.primaryKeys)) - for iter664 in self.primaryKeys: - iter664.write(oprot) + for iter657 in self.primaryKeys: + iter657.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.foreignKeys is not None: oprot.writeFieldBegin('foreignKeys', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.foreignKeys)) - for iter665 in self.foreignKeys: - iter665.write(oprot) + for iter658 in self.foreignKeys: + iter658.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15056,10 +14824,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.partNames = [] - (_etype669, _size666) = iprot.readListBegin() - for _i670 in xrange(_size666): - _elem671 = iprot.readString() - self.partNames.append(_elem671) + (_etype662, _size659) = iprot.readListBegin() + for _i663 in xrange(_size659): + _elem664 = iprot.readString() + self.partNames.append(_elem664) iprot.readListEnd() else: iprot.skip(ftype) @@ -15084,8 +14852,8 @@ def write(self, oprot): if self.partNames is not None: oprot.writeFieldBegin('partNames', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.partNames)) - for iter672 in self.partNames: - oprot.writeString(iter672) + for iter665 in self.partNames: + oprot.writeString(iter665) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15285,10 +15053,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype676, _size673) = iprot.readListBegin() - for _i677 in xrange(_size673): - _elem678 = iprot.readString() - self.success.append(_elem678) + (_etype669, _size666) = iprot.readListBegin() + for _i670 in xrange(_size666): + _elem671 = iprot.readString() + self.success.append(_elem671) iprot.readListEnd() else: iprot.skip(ftype) @@ -15311,8 +15079,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter679 in self.success: - oprot.writeString(iter679) + for iter672 in self.success: + oprot.writeString(iter672) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15462,10 +15230,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype683, _size680) = iprot.readListBegin() - for _i684 in xrange(_size680): - _elem685 = iprot.readString() - self.success.append(_elem685) + (_etype676, _size673) = iprot.readListBegin() + for _i677 in xrange(_size673): + _elem678 = iprot.readString() + self.success.append(_elem678) iprot.readListEnd() else: iprot.skip(ftype) @@ -15488,8 +15256,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter686 in self.success: - oprot.writeString(iter686) + for iter679 in self.success: + oprot.writeString(iter679) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15562,10 +15330,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.tbl_types = [] - (_etype690, _size687) = iprot.readListBegin() - for _i691 in xrange(_size687): - _elem692 = iprot.readString() - self.tbl_types.append(_elem692) + (_etype683, _size680) = iprot.readListBegin() + for _i684 in xrange(_size680): + _elem685 = iprot.readString() + self.tbl_types.append(_elem685) iprot.readListEnd() else: iprot.skip(ftype) @@ -15590,8 +15358,8 @@ def write(self, oprot): if self.tbl_types is not None: oprot.writeFieldBegin('tbl_types', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.tbl_types)) - for iter693 in self.tbl_types: - oprot.writeString(iter693) + for iter686 in self.tbl_types: + oprot.writeString(iter686) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15647,11 +15415,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype697, _size694) = iprot.readListBegin() - for _i698 in xrange(_size694): - _elem699 = TableMeta() - _elem699.read(iprot) - self.success.append(_elem699) + (_etype690, _size687) = iprot.readListBegin() + for _i691 in xrange(_size687): + _elem692 = TableMeta() + _elem692.read(iprot) + self.success.append(_elem692) iprot.readListEnd() else: iprot.skip(ftype) @@ -15674,8 +15442,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter700 in self.success: - iter700.write(oprot) + for iter693 in self.success: + iter693.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15799,10 +15567,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype704, _size701) = iprot.readListBegin() - for _i705 in xrange(_size701): - _elem706 = iprot.readString() - self.success.append(_elem706) + (_etype697, _size694) = iprot.readListBegin() + for _i698 in xrange(_size694): + _elem699 = iprot.readString() + self.success.append(_elem699) iprot.readListEnd() else: iprot.skip(ftype) @@ -15825,8 +15593,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter707 in self.success: - oprot.writeString(iter707) + for iter700 in self.success: + oprot.writeString(iter700) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16062,10 +15830,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype711, _size708) = iprot.readListBegin() - for _i712 in xrange(_size708): - _elem713 = iprot.readString() - self.tbl_names.append(_elem713) + (_etype704, _size701) = iprot.readListBegin() + for _i705 in xrange(_size701): + _elem706 = iprot.readString() + self.tbl_names.append(_elem706) iprot.readListEnd() else: iprot.skip(ftype) @@ -16086,8 +15854,8 @@ def write(self, oprot): if self.tbl_names is not None: oprot.writeFieldBegin('tbl_names', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.tbl_names)) - for iter714 in self.tbl_names: - oprot.writeString(iter714) + for iter707 in self.tbl_names: + oprot.writeString(iter707) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16139,11 +15907,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype718, _size715) = iprot.readListBegin() - for _i719 in xrange(_size715): - _elem720 = Table() - _elem720.read(iprot) - self.success.append(_elem720) + (_etype711, _size708) = iprot.readListBegin() + for _i712 in xrange(_size708): + _elem713 = Table() + _elem713.read(iprot) + self.success.append(_elem713) iprot.readListEnd() else: iprot.skip(ftype) @@ -16160,8 +15928,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter721 in self.success: - iter721.write(oprot) + for iter714 in self.success: + iter714.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16644,10 +16412,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype725, _size722) = iprot.readListBegin() - for _i726 in xrange(_size722): - _elem727 = iprot.readString() - self.success.append(_elem727) + (_etype718, _size715) = iprot.readListBegin() + for _i719 in xrange(_size715): + _elem720 = iprot.readString() + self.success.append(_elem720) iprot.readListEnd() else: iprot.skip(ftype) @@ -16682,8 +16450,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter728 in self.success: - oprot.writeString(iter728) + for iter721 in self.success: + oprot.writeString(iter721) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17653,11 +17421,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype732, _size729) = iprot.readListBegin() - for _i733 in xrange(_size729): - _elem734 = Partition() - _elem734.read(iprot) - self.new_parts.append(_elem734) + (_etype725, _size722) = iprot.readListBegin() + for _i726 in xrange(_size722): + _elem727 = Partition() + _elem727.read(iprot) + self.new_parts.append(_elem727) iprot.readListEnd() else: iprot.skip(ftype) @@ -17674,8 +17442,8 @@ def write(self, oprot): if self.new_parts is not None: oprot.writeFieldBegin('new_parts', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter735 in self.new_parts: - iter735.write(oprot) + for iter728 in self.new_parts: + iter728.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17833,11 +17601,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype739, _size736) = iprot.readListBegin() - for _i740 in xrange(_size736): - _elem741 = PartitionSpec() - _elem741.read(iprot) - self.new_parts.append(_elem741) + (_etype732, _size729) = iprot.readListBegin() + for _i733 in xrange(_size729): + _elem734 = PartitionSpec() + _elem734.read(iprot) + self.new_parts.append(_elem734) iprot.readListEnd() else: iprot.skip(ftype) @@ -17854,8 +17622,8 @@ def write(self, oprot): if self.new_parts is not None: oprot.writeFieldBegin('new_parts', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter742 in self.new_parts: - iter742.write(oprot) + for iter735 in self.new_parts: + iter735.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18029,10 +17797,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype746, _size743) = iprot.readListBegin() - for _i747 in xrange(_size743): - _elem748 = iprot.readString() - self.part_vals.append(_elem748) + (_etype739, _size736) = iprot.readListBegin() + for _i740 in xrange(_size736): + _elem741 = iprot.readString() + self.part_vals.append(_elem741) iprot.readListEnd() else: iprot.skip(ftype) @@ -18057,8 +17825,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter749 in self.part_vals: - oprot.writeString(iter749) + for iter742 in self.part_vals: + oprot.writeString(iter742) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18411,10 +18179,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype753, _size750) = iprot.readListBegin() - for _i754 in xrange(_size750): - _elem755 = iprot.readString() - self.part_vals.append(_elem755) + (_etype746, _size743) = iprot.readListBegin() + for _i747 in xrange(_size743): + _elem748 = iprot.readString() + self.part_vals.append(_elem748) iprot.readListEnd() else: iprot.skip(ftype) @@ -18445,8 +18213,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter756 in self.part_vals: - oprot.writeString(iter756) + for iter749 in self.part_vals: + oprot.writeString(iter749) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -19041,10 +18809,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype760, _size757) = iprot.readListBegin() - for _i761 in xrange(_size757): - _elem762 = iprot.readString() - self.part_vals.append(_elem762) + (_etype753, _size750) = iprot.readListBegin() + for _i754 in xrange(_size750): + _elem755 = iprot.readString() + self.part_vals.append(_elem755) iprot.readListEnd() else: iprot.skip(ftype) @@ -19074,8 +18842,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter763 in self.part_vals: - oprot.writeString(iter763) + for iter756 in self.part_vals: + oprot.writeString(iter756) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -19248,10 +19016,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype767, _size764) = iprot.readListBegin() - for _i768 in xrange(_size764): - _elem769 = iprot.readString() - self.part_vals.append(_elem769) + (_etype760, _size757) = iprot.readListBegin() + for _i761 in xrange(_size757): + _elem762 = iprot.readString() + self.part_vals.append(_elem762) iprot.readListEnd() else: iprot.skip(ftype) @@ -19287,8 +19055,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter770 in self.part_vals: - oprot.writeString(iter770) + for iter763 in self.part_vals: + oprot.writeString(iter763) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -20025,10 +19793,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype774, _size771) = iprot.readListBegin() - for _i775 in xrange(_size771): - _elem776 = iprot.readString() - self.part_vals.append(_elem776) + (_etype767, _size764) = iprot.readListBegin() + for _i768 in xrange(_size764): + _elem769 = iprot.readString() + self.part_vals.append(_elem769) iprot.readListEnd() else: iprot.skip(ftype) @@ -20053,8 +19821,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter777 in self.part_vals: - oprot.writeString(iter777) + for iter770 in self.part_vals: + oprot.writeString(iter770) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20213,11 +19981,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype779, _vtype780, _size778 ) = iprot.readMapBegin() - for _i782 in xrange(_size778): - _key783 = iprot.readString() - _val784 = iprot.readString() - self.partitionSpecs[_key783] = _val784 + (_ktype772, _vtype773, _size771 ) = iprot.readMapBegin() + for _i775 in xrange(_size771): + _key776 = iprot.readString() + _val777 = iprot.readString() + self.partitionSpecs[_key776] = _val777 iprot.readMapEnd() else: iprot.skip(ftype) @@ -20254,9 +20022,9 @@ def write(self, oprot): if self.partitionSpecs is not None: oprot.writeFieldBegin('partitionSpecs', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.partitionSpecs)) - for kiter785,viter786 in self.partitionSpecs.items(): - oprot.writeString(kiter785) - oprot.writeString(viter786) + for kiter778,viter779 in self.partitionSpecs.items(): + oprot.writeString(kiter778) + oprot.writeString(viter779) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -20461,11 +20229,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype788, _vtype789, _size787 ) = iprot.readMapBegin() - for _i791 in xrange(_size787): - _key792 = iprot.readString() - _val793 = iprot.readString() - self.partitionSpecs[_key792] = _val793 + (_ktype781, _vtype782, _size780 ) = iprot.readMapBegin() + for _i784 in xrange(_size780): + _key785 = iprot.readString() + _val786 = iprot.readString() + self.partitionSpecs[_key785] = _val786 iprot.readMapEnd() else: iprot.skip(ftype) @@ -20502,9 +20270,9 @@ def write(self, oprot): if self.partitionSpecs is not None: oprot.writeFieldBegin('partitionSpecs', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.partitionSpecs)) - for kiter794,viter795 in self.partitionSpecs.items(): - oprot.writeString(kiter794) - oprot.writeString(viter795) + for kiter787,viter788 in self.partitionSpecs.items(): + oprot.writeString(kiter787) + oprot.writeString(viter788) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -20587,11 +20355,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype799, _size796) = iprot.readListBegin() - for _i800 in xrange(_size796): - _elem801 = Partition() - _elem801.read(iprot) - self.success.append(_elem801) + (_etype792, _size789) = iprot.readListBegin() + for _i793 in xrange(_size789): + _elem794 = Partition() + _elem794.read(iprot) + self.success.append(_elem794) iprot.readListEnd() else: iprot.skip(ftype) @@ -20632,8 +20400,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter802 in self.success: - iter802.write(oprot) + for iter795 in self.success: + iter795.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20727,10 +20495,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype806, _size803) = iprot.readListBegin() - for _i807 in xrange(_size803): - _elem808 = iprot.readString() - self.part_vals.append(_elem808) + (_etype799, _size796) = iprot.readListBegin() + for _i800 in xrange(_size796): + _elem801 = iprot.readString() + self.part_vals.append(_elem801) iprot.readListEnd() else: iprot.skip(ftype) @@ -20742,10 +20510,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype812, _size809) = iprot.readListBegin() - for _i813 in xrange(_size809): - _elem814 = iprot.readString() - self.group_names.append(_elem814) + (_etype805, _size802) = iprot.readListBegin() + for _i806 in xrange(_size802): + _elem807 = iprot.readString() + self.group_names.append(_elem807) iprot.readListEnd() else: iprot.skip(ftype) @@ -20770,8 +20538,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter815 in self.part_vals: - oprot.writeString(iter815) + for iter808 in self.part_vals: + oprot.writeString(iter808) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -20781,8 +20549,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter816 in self.group_names: - oprot.writeString(iter816) + for iter809 in self.group_names: + oprot.writeString(iter809) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21211,11 +20979,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype820, _size817) = iprot.readListBegin() - for _i821 in xrange(_size817): - _elem822 = Partition() - _elem822.read(iprot) - self.success.append(_elem822) + (_etype813, _size810) = iprot.readListBegin() + for _i814 in xrange(_size810): + _elem815 = Partition() + _elem815.read(iprot) + self.success.append(_elem815) iprot.readListEnd() else: iprot.skip(ftype) @@ -21244,8 +21012,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter823 in self.success: - iter823.write(oprot) + for iter816 in self.success: + iter816.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21339,10 +21107,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype827, _size824) = iprot.readListBegin() - for _i828 in xrange(_size824): - _elem829 = iprot.readString() - self.group_names.append(_elem829) + (_etype820, _size817) = iprot.readListBegin() + for _i821 in xrange(_size817): + _elem822 = iprot.readString() + self.group_names.append(_elem822) iprot.readListEnd() else: iprot.skip(ftype) @@ -21375,8 +21143,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter830 in self.group_names: - oprot.writeString(iter830) + for iter823 in self.group_names: + oprot.writeString(iter823) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21437,11 +21205,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype834, _size831) = iprot.readListBegin() - for _i835 in xrange(_size831): - _elem836 = Partition() - _elem836.read(iprot) - self.success.append(_elem836) + (_etype827, _size824) = iprot.readListBegin() + for _i828 in xrange(_size824): + _elem829 = Partition() + _elem829.read(iprot) + self.success.append(_elem829) iprot.readListEnd() else: iprot.skip(ftype) @@ -21470,8 +21238,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter837 in self.success: - iter837.write(oprot) + for iter830 in self.success: + iter830.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21629,11 +21397,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype841, _size838) = iprot.readListBegin() - for _i842 in xrange(_size838): - _elem843 = PartitionSpec() - _elem843.read(iprot) - self.success.append(_elem843) + (_etype834, _size831) = iprot.readListBegin() + for _i835 in xrange(_size831): + _elem836 = PartitionSpec() + _elem836.read(iprot) + self.success.append(_elem836) iprot.readListEnd() else: iprot.skip(ftype) @@ -21662,8 +21430,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter844 in self.success: - iter844.write(oprot) + for iter837 in self.success: + iter837.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21818,10 +21586,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype848, _size845) = iprot.readListBegin() - for _i849 in xrange(_size845): - _elem850 = iprot.readString() - self.success.append(_elem850) + (_etype841, _size838) = iprot.readListBegin() + for _i842 in xrange(_size838): + _elem843 = iprot.readString() + self.success.append(_elem843) iprot.readListEnd() else: iprot.skip(ftype) @@ -21844,8 +21612,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter851 in self.success: - oprot.writeString(iter851) + for iter844 in self.success: + oprot.writeString(iter844) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -21921,10 +21689,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype855, _size852) = iprot.readListBegin() - for _i856 in xrange(_size852): - _elem857 = iprot.readString() - self.part_vals.append(_elem857) + (_etype848, _size845) = iprot.readListBegin() + for _i849 in xrange(_size845): + _elem850 = iprot.readString() + self.part_vals.append(_elem850) iprot.readListEnd() else: iprot.skip(ftype) @@ -21954,8 +21722,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter858 in self.part_vals: - oprot.writeString(iter858) + for iter851 in self.part_vals: + oprot.writeString(iter851) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -22019,11 +21787,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype862, _size859) = iprot.readListBegin() - for _i863 in xrange(_size859): - _elem864 = Partition() - _elem864.read(iprot) - self.success.append(_elem864) + (_etype855, _size852) = iprot.readListBegin() + for _i856 in xrange(_size852): + _elem857 = Partition() + _elem857.read(iprot) + self.success.append(_elem857) iprot.readListEnd() else: iprot.skip(ftype) @@ -22052,8 +21820,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter865 in self.success: - iter865.write(oprot) + for iter858 in self.success: + iter858.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22140,10 +21908,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype869, _size866) = iprot.readListBegin() - for _i870 in xrange(_size866): - _elem871 = iprot.readString() - self.part_vals.append(_elem871) + (_etype862, _size859) = iprot.readListBegin() + for _i863 in xrange(_size859): + _elem864 = iprot.readString() + self.part_vals.append(_elem864) iprot.readListEnd() else: iprot.skip(ftype) @@ -22160,10 +21928,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype875, _size872) = iprot.readListBegin() - for _i876 in xrange(_size872): - _elem877 = iprot.readString() - self.group_names.append(_elem877) + (_etype868, _size865) = iprot.readListBegin() + for _i869 in xrange(_size865): + _elem870 = iprot.readString() + self.group_names.append(_elem870) iprot.readListEnd() else: iprot.skip(ftype) @@ -22188,8 +21956,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter878 in self.part_vals: - oprot.writeString(iter878) + for iter871 in self.part_vals: + oprot.writeString(iter871) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -22203,8 +21971,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 6) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter879 in self.group_names: - oprot.writeString(iter879) + for iter872 in self.group_names: + oprot.writeString(iter872) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22266,11 +22034,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype883, _size880) = iprot.readListBegin() - for _i884 in xrange(_size880): - _elem885 = Partition() - _elem885.read(iprot) - self.success.append(_elem885) + (_etype876, _size873) = iprot.readListBegin() + for _i877 in xrange(_size873): + _elem878 = Partition() + _elem878.read(iprot) + self.success.append(_elem878) iprot.readListEnd() else: iprot.skip(ftype) @@ -22299,8 +22067,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter886 in self.success: - iter886.write(oprot) + for iter879 in self.success: + iter879.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22381,10 +22149,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype890, _size887) = iprot.readListBegin() - for _i891 in xrange(_size887): - _elem892 = iprot.readString() - self.part_vals.append(_elem892) + (_etype883, _size880) = iprot.readListBegin() + for _i884 in xrange(_size880): + _elem885 = iprot.readString() + self.part_vals.append(_elem885) iprot.readListEnd() else: iprot.skip(ftype) @@ -22414,8 +22182,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter893 in self.part_vals: - oprot.writeString(iter893) + for iter886 in self.part_vals: + oprot.writeString(iter886) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -22479,10 +22247,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype897, _size894) = iprot.readListBegin() - for _i898 in xrange(_size894): - _elem899 = iprot.readString() - self.success.append(_elem899) + (_etype890, _size887) = iprot.readListBegin() + for _i891 in xrange(_size887): + _elem892 = iprot.readString() + self.success.append(_elem892) iprot.readListEnd() else: iprot.skip(ftype) @@ -22511,8 +22279,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter900 in self.success: - oprot.writeString(iter900) + for iter893 in self.success: + oprot.writeString(iter893) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22683,11 +22451,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype904, _size901) = iprot.readListBegin() - for _i905 in xrange(_size901): - _elem906 = Partition() - _elem906.read(iprot) - self.success.append(_elem906) + (_etype897, _size894) = iprot.readListBegin() + for _i898 in xrange(_size894): + _elem899 = Partition() + _elem899.read(iprot) + self.success.append(_elem899) iprot.readListEnd() else: iprot.skip(ftype) @@ -22716,8 +22484,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter907 in self.success: - iter907.write(oprot) + for iter900 in self.success: + iter900.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22888,11 +22656,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype911, _size908) = iprot.readListBegin() - for _i912 in xrange(_size908): - _elem913 = PartitionSpec() - _elem913.read(iprot) - self.success.append(_elem913) + (_etype904, _size901) = iprot.readListBegin() + for _i905 in xrange(_size901): + _elem906 = PartitionSpec() + _elem906.read(iprot) + self.success.append(_elem906) iprot.readListEnd() else: iprot.skip(ftype) @@ -22921,8 +22689,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter914 in self.success: - iter914.write(oprot) + for iter907 in self.success: + iter907.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -23342,10 +23110,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype918, _size915) = iprot.readListBegin() - for _i919 in xrange(_size915): - _elem920 = iprot.readString() - self.names.append(_elem920) + (_etype911, _size908) = iprot.readListBegin() + for _i912 in xrange(_size908): + _elem913 = iprot.readString() + self.names.append(_elem913) iprot.readListEnd() else: iprot.skip(ftype) @@ -23370,8 +23138,8 @@ def write(self, oprot): if self.names is not None: oprot.writeFieldBegin('names', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.names)) - for iter921 in self.names: - oprot.writeString(iter921) + for iter914 in self.names: + oprot.writeString(iter914) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23430,11 +23198,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype925, _size922) = iprot.readListBegin() - for _i926 in xrange(_size922): - _elem927 = Partition() - _elem927.read(iprot) - self.success.append(_elem927) + (_etype918, _size915) = iprot.readListBegin() + for _i919 in xrange(_size915): + _elem920 = Partition() + _elem920.read(iprot) + self.success.append(_elem920) iprot.readListEnd() else: iprot.skip(ftype) @@ -23463,8 +23231,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter928 in self.success: - iter928.write(oprot) + for iter921 in self.success: + iter921.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -23714,11 +23482,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype932, _size929) = iprot.readListBegin() - for _i933 in xrange(_size929): - _elem934 = Partition() - _elem934.read(iprot) - self.new_parts.append(_elem934) + (_etype925, _size922) = iprot.readListBegin() + for _i926 in xrange(_size922): + _elem927 = Partition() + _elem927.read(iprot) + self.new_parts.append(_elem927) iprot.readListEnd() else: iprot.skip(ftype) @@ -23743,8 +23511,8 @@ def write(self, oprot): if self.new_parts is not None: oprot.writeFieldBegin('new_parts', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter935 in self.new_parts: - iter935.write(oprot) + for iter928 in self.new_parts: + iter928.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23897,11 +23665,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype939, _size936) = iprot.readListBegin() - for _i940 in xrange(_size936): - _elem941 = Partition() - _elem941.read(iprot) - self.new_parts.append(_elem941) + (_etype932, _size929) = iprot.readListBegin() + for _i933 in xrange(_size929): + _elem934 = Partition() + _elem934.read(iprot) + self.new_parts.append(_elem934) iprot.readListEnd() else: iprot.skip(ftype) @@ -23932,8 +23700,8 @@ def write(self, oprot): if self.new_parts is not None: oprot.writeFieldBegin('new_parts', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter942 in self.new_parts: - iter942.write(oprot) + for iter935 in self.new_parts: + iter935.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -24277,10 +24045,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype946, _size943) = iprot.readListBegin() - for _i947 in xrange(_size943): - _elem948 = iprot.readString() - self.part_vals.append(_elem948) + (_etype939, _size936) = iprot.readListBegin() + for _i940 in xrange(_size936): + _elem941 = iprot.readString() + self.part_vals.append(_elem941) iprot.readListEnd() else: iprot.skip(ftype) @@ -24311,8 +24079,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter949 in self.part_vals: - oprot.writeString(iter949) + for iter942 in self.part_vals: + oprot.writeString(iter942) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -24454,10 +24222,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_vals = [] - (_etype953, _size950) = iprot.readListBegin() - for _i954 in xrange(_size950): - _elem955 = iprot.readString() - self.part_vals.append(_elem955) + (_etype946, _size943) = iprot.readListBegin() + for _i947 in xrange(_size943): + _elem948 = iprot.readString() + self.part_vals.append(_elem948) iprot.readListEnd() else: iprot.skip(ftype) @@ -24479,8 +24247,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter956 in self.part_vals: - oprot.writeString(iter956) + for iter949 in self.part_vals: + oprot.writeString(iter949) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -24838,10 +24606,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype960, _size957) = iprot.readListBegin() - for _i961 in xrange(_size957): - _elem962 = iprot.readString() - self.success.append(_elem962) + (_etype953, _size950) = iprot.readListBegin() + for _i954 in xrange(_size950): + _elem955 = iprot.readString() + self.success.append(_elem955) iprot.readListEnd() else: iprot.skip(ftype) @@ -24864,8 +24632,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter963 in self.success: - oprot.writeString(iter963) + for iter956 in self.success: + oprot.writeString(iter956) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -24989,11 +24757,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype965, _vtype966, _size964 ) = iprot.readMapBegin() - for _i968 in xrange(_size964): - _key969 = iprot.readString() - _val970 = iprot.readString() - self.success[_key969] = _val970 + (_ktype958, _vtype959, _size957 ) = iprot.readMapBegin() + for _i961 in xrange(_size957): + _key962 = iprot.readString() + _val963 = iprot.readString() + self.success[_key962] = _val963 iprot.readMapEnd() else: iprot.skip(ftype) @@ -25016,9 +24784,9 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) - for kiter971,viter972 in self.success.items(): - oprot.writeString(kiter971) - oprot.writeString(viter972) + for kiter964,viter965 in self.success.items(): + oprot.writeString(kiter964) + oprot.writeString(viter965) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -25094,11 +24862,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype974, _vtype975, _size973 ) = iprot.readMapBegin() - for _i977 in xrange(_size973): - _key978 = iprot.readString() - _val979 = iprot.readString() - self.part_vals[_key978] = _val979 + (_ktype967, _vtype968, _size966 ) = iprot.readMapBegin() + for _i970 in xrange(_size966): + _key971 = iprot.readString() + _val972 = iprot.readString() + self.part_vals[_key971] = _val972 iprot.readMapEnd() else: iprot.skip(ftype) @@ -25128,9 +24896,9 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.part_vals)) - for kiter980,viter981 in self.part_vals.items(): - oprot.writeString(kiter980) - oprot.writeString(viter981) + for kiter973,viter974 in self.part_vals.items(): + oprot.writeString(kiter973) + oprot.writeString(viter974) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -25344,11 +25112,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype983, _vtype984, _size982 ) = iprot.readMapBegin() - for _i986 in xrange(_size982): - _key987 = iprot.readString() - _val988 = iprot.readString() - self.part_vals[_key987] = _val988 + (_ktype976, _vtype977, _size975 ) = iprot.readMapBegin() + for _i979 in xrange(_size975): + _key980 = iprot.readString() + _val981 = iprot.readString() + self.part_vals[_key980] = _val981 iprot.readMapEnd() else: iprot.skip(ftype) @@ -25378,9 +25146,9 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.part_vals)) - for kiter989,viter990 in self.part_vals.items(): - oprot.writeString(kiter989) - oprot.writeString(viter990) + for kiter982,viter983 in self.part_vals.items(): + oprot.writeString(kiter982) + oprot.writeString(viter983) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -26435,11 +26203,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype994, _size991) = iprot.readListBegin() - for _i995 in xrange(_size991): - _elem996 = Index() - _elem996.read(iprot) - self.success.append(_elem996) + (_etype987, _size984) = iprot.readListBegin() + for _i988 in xrange(_size984): + _elem989 = Index() + _elem989.read(iprot) + self.success.append(_elem989) iprot.readListEnd() else: iprot.skip(ftype) @@ -26468,8 +26236,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter997 in self.success: - iter997.write(oprot) + for iter990 in self.success: + iter990.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -26624,10 +26392,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1001, _size998) = iprot.readListBegin() - for _i1002 in xrange(_size998): - _elem1003 = iprot.readString() - self.success.append(_elem1003) + (_etype994, _size991) = iprot.readListBegin() + for _i995 in xrange(_size991): + _elem996 = iprot.readString() + self.success.append(_elem996) iprot.readListEnd() else: iprot.skip(ftype) @@ -26650,8 +26418,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1004 in self.success: - oprot.writeString(iter1004) + for iter997 in self.success: + oprot.writeString(iter997) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -29517,10 +29285,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1008, _size1005) = iprot.readListBegin() - for _i1009 in xrange(_size1005): - _elem1010 = iprot.readString() - self.success.append(_elem1010) + (_etype1001, _size998) = iprot.readListBegin() + for _i1002 in xrange(_size998): + _elem1003 = iprot.readString() + self.success.append(_elem1003) iprot.readListEnd() else: iprot.skip(ftype) @@ -29543,8 +29311,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1011 in self.success: - oprot.writeString(iter1011) + for iter1004 in self.success: + oprot.writeString(iter1004) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30232,10 +30000,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1015, _size1012) = iprot.readListBegin() - for _i1016 in xrange(_size1012): - _elem1017 = iprot.readString() - self.success.append(_elem1017) + (_etype1008, _size1005) = iprot.readListBegin() + for _i1009 in xrange(_size1005): + _elem1010 = iprot.readString() + self.success.append(_elem1010) iprot.readListEnd() else: iprot.skip(ftype) @@ -30258,8 +30026,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1018 in self.success: - oprot.writeString(iter1018) + for iter1011 in self.success: + oprot.writeString(iter1011) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30773,11 +30541,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1022, _size1019) = iprot.readListBegin() - for _i1023 in xrange(_size1019): - _elem1024 = Role() - _elem1024.read(iprot) - self.success.append(_elem1024) + (_etype1015, _size1012) = iprot.readListBegin() + for _i1016 in xrange(_size1012): + _elem1017 = Role() + _elem1017.read(iprot) + self.success.append(_elem1017) iprot.readListEnd() else: iprot.skip(ftype) @@ -30800,8 +30568,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1025 in self.success: - iter1025.write(oprot) + for iter1018 in self.success: + iter1018.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -31310,10 +31078,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype1029, _size1026) = iprot.readListBegin() - for _i1030 in xrange(_size1026): - _elem1031 = iprot.readString() - self.group_names.append(_elem1031) + (_etype1022, _size1019) = iprot.readListBegin() + for _i1023 in xrange(_size1019): + _elem1024 = iprot.readString() + self.group_names.append(_elem1024) iprot.readListEnd() else: iprot.skip(ftype) @@ -31338,8 +31106,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter1032 in self.group_names: - oprot.writeString(iter1032) + for iter1025 in self.group_names: + oprot.writeString(iter1025) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -31566,11 +31334,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1036, _size1033) = iprot.readListBegin() - for _i1037 in xrange(_size1033): - _elem1038 = HiveObjectPrivilege() - _elem1038.read(iprot) - self.success.append(_elem1038) + (_etype1029, _size1026) = iprot.readListBegin() + for _i1030 in xrange(_size1026): + _elem1031 = HiveObjectPrivilege() + _elem1031.read(iprot) + self.success.append(_elem1031) iprot.readListEnd() else: iprot.skip(ftype) @@ -31593,8 +31361,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1039 in self.success: - iter1039.write(oprot) + for iter1032 in self.success: + iter1032.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -32092,10 +31860,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype1043, _size1040) = iprot.readListBegin() - for _i1044 in xrange(_size1040): - _elem1045 = iprot.readString() - self.group_names.append(_elem1045) + (_etype1036, _size1033) = iprot.readListBegin() + for _i1037 in xrange(_size1033): + _elem1038 = iprot.readString() + self.group_names.append(_elem1038) iprot.readListEnd() else: iprot.skip(ftype) @@ -32116,8 +31884,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter1046 in self.group_names: - oprot.writeString(iter1046) + for iter1039 in self.group_names: + oprot.writeString(iter1039) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -32172,10 +31940,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1050, _size1047) = iprot.readListBegin() - for _i1051 in xrange(_size1047): - _elem1052 = iprot.readString() - self.success.append(_elem1052) + (_etype1043, _size1040) = iprot.readListBegin() + for _i1044 in xrange(_size1040): + _elem1045 = iprot.readString() + self.success.append(_elem1045) iprot.readListEnd() else: iprot.skip(ftype) @@ -32198,8 +31966,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1053 in self.success: - oprot.writeString(iter1053) + for iter1046 in self.success: + oprot.writeString(iter1046) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -33131,10 +32899,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1057, _size1054) = iprot.readListBegin() - for _i1058 in xrange(_size1054): - _elem1059 = iprot.readString() - self.success.append(_elem1059) + (_etype1050, _size1047) = iprot.readListBegin() + for _i1051 in xrange(_size1047): + _elem1052 = iprot.readString() + self.success.append(_elem1052) iprot.readListEnd() else: iprot.skip(ftype) @@ -33151,8 +32919,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1060 in self.success: - oprot.writeString(iter1060) + for iter1053 in self.success: + oprot.writeString(iter1053) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -33679,10 +33447,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1064, _size1061) = iprot.readListBegin() - for _i1065 in xrange(_size1061): - _elem1066 = iprot.readString() - self.success.append(_elem1066) + (_etype1057, _size1054) = iprot.readListBegin() + for _i1058 in xrange(_size1054): + _elem1059 = iprot.readString() + self.success.append(_elem1059) iprot.readListEnd() else: iprot.skip(ftype) @@ -33699,8 +33467,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1067 in self.success: - oprot.writeString(iter1067) + for iter1060 in self.success: + oprot.writeString(iter1060) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -34145,596 +33913,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class abort_txn_result: - """ - Attributes: - - o1 - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 - ) - - def __init__(self, o1=None,): - self.o1 = o1 - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.STRUCT: - self.o1 = NoSuchTxnException() - self.o1.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('abort_txn_result') - if self.o1 is not None: - oprot.writeFieldBegin('o1', TType.STRUCT, 1) - self.o1.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - 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 abort_txns_args: - """ - Attributes: - - rqst - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'rqst', (AbortTxnsRequest, AbortTxnsRequest.thrift_spec), None, ), # 1 - ) - - 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 = AbortTxnsRequest() - 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('abort_txns_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 abort_txns_result: - """ - Attributes: - - o1 - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 - ) - - def __init__(self, o1=None,): - self.o1 = o1 - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.STRUCT: - self.o1 = NoSuchTxnException() - self.o1.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('abort_txns_result') - if self.o1 is not None: - oprot.writeFieldBegin('o1', TType.STRUCT, 1) - self.o1.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - 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 commit_txn_args: - """ - Attributes: - - rqst - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'rqst', (CommitTxnRequest, CommitTxnRequest.thrift_spec), None, ), # 1 - ) - - 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 = CommitTxnRequest() - 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('commit_txn_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 commit_txn_result: - """ - Attributes: - - o1 - - o2 - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 2 - ) - - def __init__(self, o1=None, o2=None,): - self.o1 = o1 - self.o2 = o2 - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.STRUCT: - self.o1 = NoSuchTxnException() - self.o1.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.o2 = TxnAbortedException() - self.o2.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('commit_txn_result') - if self.o1 is not None: - oprot.writeFieldBegin('o1', TType.STRUCT, 1) - self.o1.write(oprot) - oprot.writeFieldEnd() - if self.o2 is not None: - oprot.writeFieldBegin('o2', TType.STRUCT, 2) - self.o2.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - 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 lock_args: - """ - Attributes: - - rqst - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'rqst', (LockRequest, LockRequest.thrift_spec), None, ), # 1 - ) - - 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 = LockRequest() - 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('lock_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 lock_result: - """ - Attributes: - - success - - o1 - - o2 - """ - - thrift_spec = ( - (0, TType.STRUCT, 'success', (LockResponse, LockResponse.thrift_spec), None, ), # 0 - (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 2 - ) - - def __init__(self, success=None, o1=None, o2=None,): - self.success = success - self.o1 = o1 - self.o2 = o2 - - 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 = LockResponse() - self.success.read(iprot) - else: - iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.o1 = NoSuchTxnException() - self.o1.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.o2 = TxnAbortedException() - self.o2.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('lock_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) - oprot.writeFieldEnd() - if self.o1 is not None: - oprot.writeFieldBegin('o1', TType.STRUCT, 1) - self.o1.write(oprot) - oprot.writeFieldEnd() - if self.o2 is not None: - oprot.writeFieldBegin('o2', TType.STRUCT, 2) - self.o2.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - 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 check_lock_args: - """ - Attributes: - - rqst - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'rqst', (CheckLockRequest, CheckLockRequest.thrift_spec), None, ), # 1 - ) - - 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 = CheckLockRequest() - 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('check_lock_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 check_lock_result: +class abort_txn_result: """ Attributes: - - success - o1 - - o2 - - o3 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (LockResponse, LockResponse.thrift_spec), None, ), # 0 + None, # 0 (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (NoSuchLockException, NoSuchLockException.thrift_spec), None, ), # 3 ) - def __init__(self, success=None, o1=None, o2=None, o3=None,): - self.success = success + def __init__(self, o1=None,): self.o1 = o1 - self.o2 = o2 - self.o3 = o3 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: @@ -34745,30 +33936,12 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.STRUCT: - self.success = LockResponse() - self.success.read(iprot) - else: - iprot.skip(ftype) - elif fid == 1: + if fid == 1: if ftype == TType.STRUCT: self.o1 = NoSuchTxnException() self.o1.read(iprot) else: iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.o2 = TxnAbortedException() - self.o2.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.o3 = NoSuchLockException() - self.o3.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -34778,23 +33951,11 @@ 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('check_lock_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) - oprot.writeFieldEnd() + oprot.writeStructBegin('abort_txn_result') if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 is not None: - oprot.writeFieldBegin('o2', TType.STRUCT, 2) - self.o2.write(oprot) - oprot.writeFieldEnd() - if self.o3 is not None: - oprot.writeFieldBegin('o3', TType.STRUCT, 3) - self.o3.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -34804,10 +33965,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) return value def __repr__(self): @@ -34821,7 +33979,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class unlock_args: +class abort_txns_args: """ Attributes: - rqst @@ -34829,7 +33987,7 @@ class unlock_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (UnlockRequest, UnlockRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (AbortTxnsRequest, AbortTxnsRequest.thrift_spec), None, ), # 1 ) def __init__(self, rqst=None,): @@ -34846,7 +34004,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = UnlockRequest() + self.rqst = AbortTxnsRequest() self.rqst.read(iprot) else: iprot.skip(ftype) @@ -34859,7 +34017,7 @@ 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('unlock_args') + oprot.writeStructBegin('abort_txns_args') if self.rqst is not None: oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) @@ -34887,22 +34045,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class unlock_result: +class abort_txns_result: """ Attributes: - o1 - - o2 """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'o1', (NoSuchLockException, NoSuchLockException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (TxnOpenException, TxnOpenException.thrift_spec), None, ), # 2 + (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 ) - def __init__(self, o1=None, o2=None,): + def __init__(self, o1=None,): self.o1 = o1 - self.o2 = o2 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: @@ -34915,16 +34070,10 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.o1 = NoSuchLockException() + self.o1 = NoSuchTxnException() self.o1.read(iprot) else: iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.o2 = TxnOpenException() - self.o2.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -34934,15 +34083,11 @@ 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('unlock_result') + oprot.writeStructBegin('abort_txns_result') if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() - if self.o2 is not None: - oprot.writeFieldBegin('o2', TType.STRUCT, 2) - self.o2.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -34953,7 +34098,6 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) return value def __repr__(self): @@ -34967,7 +34111,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class show_locks_args: +class commit_txn_args: """ Attributes: - rqst @@ -34975,7 +34119,7 @@ class show_locks_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (ShowLocksRequest, ShowLocksRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (CommitTxnRequest, CommitTxnRequest.thrift_spec), None, ), # 1 ) def __init__(self, rqst=None,): @@ -34992,7 +34136,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = ShowLocksRequest() + self.rqst = CommitTxnRequest() self.rqst.read(iprot) else: iprot.skip(ftype) @@ -35005,7 +34149,7 @@ 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('show_locks_args') + oprot.writeStructBegin('commit_txn_args') if self.rqst is not None: oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) @@ -35033,18 +34177,22 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class show_locks_result: +class commit_txn_result: """ Attributes: - - success + - o1 + - o2 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (ShowLocksResponse, ShowLocksResponse.thrift_spec), None, ), # 0 + None, # 0 + (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 2 ) - def __init__(self, success=None,): - self.success = success + def __init__(self, o1=None, o2=None,): + self.o1 = o1 + self.o2 = o2 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: @@ -35055,10 +34203,16 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: + if fid == 1: if ftype == TType.STRUCT: - self.success = ShowLocksResponse() - self.success.read(iprot) + self.o1 = NoSuchTxnException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = TxnAbortedException() + self.o2.read(iprot) else: iprot.skip(ftype) else: @@ -35070,10 +34224,14 @@ 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('show_locks_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeStructBegin('commit_txn_result') + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + if self.o2 is not None: + oprot.writeFieldBegin('o2', TType.STRUCT, 2) + self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -35084,7 +34242,8 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) return value def __repr__(self): @@ -35098,19 +34257,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class heartbeat_args: +class lock_args: """ Attributes: - - ids + - rqst """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'ids', (HeartbeatRequest, HeartbeatRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (LockRequest, LockRequest.thrift_spec), None, ), # 1 ) - def __init__(self, ids=None,): - self.ids = ids + 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: @@ -35123,8 +34282,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.ids = HeartbeatRequest() - self.ids.read(iprot) + self.rqst = LockRequest() + self.rqst.read(iprot) else: iprot.skip(ftype) else: @@ -35136,10 +34295,10 @@ 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('heartbeat_args') - if self.ids is not None: - oprot.writeFieldBegin('ids', TType.STRUCT, 1) - self.ids.write(oprot) + oprot.writeStructBegin('lock_args') + if self.rqst is not None: + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) + self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -35150,7 +34309,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.ids) + value = (value * 31) ^ hash(self.rqst) return value def __repr__(self): @@ -35164,25 +34323,24 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class heartbeat_result: +class lock_result: """ Attributes: + - success - o1 - o2 - - o3 """ thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'o1', (NoSuchLockException, NoSuchLockException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'o3', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 3 + (0, TType.STRUCT, 'success', (LockResponse, LockResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 2 ) - def __init__(self, o1=None, o2=None, o3=None,): + def __init__(self, success=None, o1=None, o2=None,): + self.success = success self.o1 = o1 self.o2 = o2 - self.o3 = o3 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: @@ -35193,22 +34351,22 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: + if fid == 0: if ftype == TType.STRUCT: - self.o1 = NoSuchLockException() - self.o1.read(iprot) + self.success = LockResponse() + self.success.read(iprot) else: iprot.skip(ftype) - elif fid == 2: + elif fid == 1: if ftype == TType.STRUCT: - self.o2 = NoSuchTxnException() - self.o2.read(iprot) + self.o1 = NoSuchTxnException() + self.o1.read(iprot) else: iprot.skip(ftype) - elif fid == 3: + elif fid == 2: if ftype == TType.STRUCT: - self.o3 = TxnAbortedException() - self.o3.read(iprot) + self.o2 = TxnAbortedException() + self.o2.read(iprot) else: iprot.skip(ftype) else: @@ -35220,7 +34378,11 @@ 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('heartbeat_result') + oprot.writeStructBegin('lock_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -35229,10 +34391,6 @@ def write(self, oprot): oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() - if self.o3 is not None: - oprot.writeFieldBegin('o3', TType.STRUCT, 3) - self.o3.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -35242,9 +34400,9 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.success) value = (value * 31) ^ hash(self.o1) value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) return value def __repr__(self): @@ -35258,19 +34416,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class heartbeat_txn_range_args: +class check_lock_args: """ Attributes: - - txns + - rqst """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'txns', (HeartbeatTxnRangeRequest, HeartbeatTxnRangeRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (CheckLockRequest, CheckLockRequest.thrift_spec), None, ), # 1 ) - def __init__(self, txns=None,): - self.txns = txns + 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: @@ -35283,8 +34441,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.txns = HeartbeatTxnRangeRequest() - self.txns.read(iprot) + self.rqst = CheckLockRequest() + self.rqst.read(iprot) else: iprot.skip(ftype) else: @@ -35296,10 +34454,10 @@ 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('heartbeat_txn_range_args') - if self.txns is not None: - oprot.writeFieldBegin('txns', TType.STRUCT, 1) - self.txns.write(oprot) + oprot.writeStructBegin('check_lock_args') + if self.rqst is not None: + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) + self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -35310,7 +34468,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.txns) + value = (value * 31) ^ hash(self.rqst) return value def __repr__(self): @@ -35324,18 +34482,27 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class heartbeat_txn_range_result: +class check_lock_result: """ Attributes: - success + - o1 + - o2 + - o3 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (HeartbeatTxnRangeResponse, HeartbeatTxnRangeResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (LockResponse, LockResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (NoSuchLockException, NoSuchLockException.thrift_spec), None, ), # 3 ) - def __init__(self, success=None,): + def __init__(self, success=None, o1=None, o2=None, o3=None,): self.success = success + self.o1 = o1 + self.o2 = o2 + self.o3 = o3 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: @@ -35348,10 +34515,28 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = HeartbeatTxnRangeResponse() + self.success = LockResponse() self.success.read(iprot) else: iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = NoSuchTxnException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = TxnAbortedException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = NoSuchLockException() + self.o3.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -35361,11 +34546,23 @@ 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('heartbeat_txn_range_result') + oprot.writeStructBegin('check_lock_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + if self.o2 is not None: + oprot.writeFieldBegin('o2', TType.STRUCT, 2) + self.o2.write(oprot) + oprot.writeFieldEnd() + if self.o3 is not None: + oprot.writeFieldBegin('o3', TType.STRUCT, 3) + self.o3.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -35376,6 +34573,9 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) + value = (value * 31) ^ hash(self.o3) return value def __repr__(self): @@ -35389,7 +34589,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class compact_args: +class unlock_args: """ Attributes: - rqst @@ -35397,7 +34597,7 @@ class compact_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (CompactionRequest, CompactionRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (UnlockRequest, UnlockRequest.thrift_spec), None, ), # 1 ) def __init__(self, rqst=None,): @@ -35414,7 +34614,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = CompactionRequest() + self.rqst = UnlockRequest() self.rqst.read(iprot) else: iprot.skip(ftype) @@ -35427,7 +34627,7 @@ 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('compact_args') + oprot.writeStructBegin('unlock_args') if self.rqst is not None: oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) @@ -35455,11 +34655,23 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class compact_result: +class unlock_result: + """ + Attributes: + - o1 + - o2 + """ thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o1', (NoSuchLockException, NoSuchLockException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (TxnOpenException, TxnOpenException.thrift_spec), None, ), # 2 ) + def __init__(self, o1=None, o2=None,): + self.o1 = o1 + self.o2 = o2 + 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)) @@ -35469,6 +34681,18 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break + if fid == 1: + if ftype == TType.STRUCT: + self.o1 = NoSuchLockException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = TxnOpenException() + self.o2.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -35478,7 +34702,15 @@ 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('compact_result') + oprot.writeStructBegin('unlock_result') + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + if self.o2 is not None: + oprot.writeFieldBegin('o2', TType.STRUCT, 2) + self.o2.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -35488,6 +34720,8 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) return value def __repr__(self): @@ -35501,7 +34735,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class compact2_args: +class show_locks_args: """ Attributes: - rqst @@ -35509,7 +34743,7 @@ class compact2_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (CompactionRequest, CompactionRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (ShowLocksRequest, ShowLocksRequest.thrift_spec), None, ), # 1 ) def __init__(self, rqst=None,): @@ -35526,7 +34760,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = CompactionRequest() + self.rqst = ShowLocksRequest() self.rqst.read(iprot) else: iprot.skip(ftype) @@ -35539,7 +34773,7 @@ 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('compact2_args') + oprot.writeStructBegin('show_locks_args') if self.rqst is not None: oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) @@ -35567,14 +34801,14 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class compact2_result: +class show_locks_result: """ Attributes: - success """ thrift_spec = ( - (0, TType.STRUCT, 'success', (CompactionResponse, CompactionResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (ShowLocksResponse, ShowLocksResponse.thrift_spec), None, ), # 0 ) def __init__(self, success=None,): @@ -35591,7 +34825,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = CompactionResponse() + self.success = ShowLocksResponse() self.success.read(iprot) else: iprot.skip(ftype) @@ -35604,7 +34838,7 @@ 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('compact2_result') + oprot.writeStructBegin('show_locks_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -35632,19 +34866,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class show_compact_args: +class heartbeat_args: """ Attributes: - - rqst + - ids """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (ShowCompactRequest, ShowCompactRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'ids', (HeartbeatRequest, HeartbeatRequest.thrift_spec), None, ), # 1 ) - def __init__(self, rqst=None,): - self.rqst = rqst + def __init__(self, ids=None,): + self.ids = ids 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: @@ -35657,8 +34891,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = ShowCompactRequest() - self.rqst.read(iprot) + self.ids = HeartbeatRequest() + self.ids.read(iprot) else: iprot.skip(ftype) else: @@ -35670,10 +34904,10 @@ 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('show_compact_args') - if self.rqst is not None: - oprot.writeFieldBegin('rqst', TType.STRUCT, 1) - self.rqst.write(oprot) + oprot.writeStructBegin('heartbeat_args') + if self.ids is not None: + oprot.writeFieldBegin('ids', TType.STRUCT, 1) + self.ids.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -35684,7 +34918,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.rqst) + value = (value * 31) ^ hash(self.ids) return value def __repr__(self): @@ -35698,18 +34932,25 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class show_compact_result: +class heartbeat_result: """ Attributes: - - success + - o1 + - o2 + - o3 """ thrift_spec = ( - (0, TType.STRUCT, 'success', (ShowCompactResponse, ShowCompactResponse.thrift_spec), None, ), # 0 + None, # 0 + (1, TType.STRUCT, 'o1', (NoSuchLockException, NoSuchLockException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 3 ) - def __init__(self, success=None,): - self.success = success + def __init__(self, o1=None, o2=None, o3=None,): + self.o1 = o1 + self.o2 = o2 + self.o3 = o3 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: @@ -35720,10 +34961,22 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: + if fid == 1: if ftype == TType.STRUCT: - self.success = ShowCompactResponse() - self.success.read(iprot) + self.o1 = NoSuchLockException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = NoSuchTxnException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = TxnAbortedException() + self.o3.read(iprot) else: iprot.skip(ftype) else: @@ -35735,10 +34988,18 @@ 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('show_compact_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeStructBegin('heartbeat_result') + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + if self.o2 is not None: + oprot.writeFieldBegin('o2', TType.STRUCT, 2) + self.o2.write(oprot) + oprot.writeFieldEnd() + if self.o3 is not None: + oprot.writeFieldBegin('o3', TType.STRUCT, 3) + self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -35749,7 +35010,9 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) + value = (value * 31) ^ hash(self.o3) return value def __repr__(self): @@ -35763,19 +35026,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class add_dynamic_partitions_args: +class heartbeat_txn_range_args: """ Attributes: - - rqst + - txns """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (AddDynamicPartitions, AddDynamicPartitions.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'txns', (HeartbeatTxnRangeRequest, HeartbeatTxnRangeRequest.thrift_spec), None, ), # 1 ) - def __init__(self, rqst=None,): - self.rqst = rqst + def __init__(self, txns=None,): + self.txns = txns 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: @@ -35788,8 +35051,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = AddDynamicPartitions() - self.rqst.read(iprot) + self.txns = HeartbeatTxnRangeRequest() + self.txns.read(iprot) else: iprot.skip(ftype) else: @@ -35801,10 +35064,10 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('add_dynamic_partitions_args') - if self.rqst is not None: - oprot.writeFieldBegin('rqst', TType.STRUCT, 1) - self.rqst.write(oprot) + oprot.writeStructBegin('heartbeat_txn_range_args') + if self.txns is not None: + oprot.writeFieldBegin('txns', TType.STRUCT, 1) + self.txns.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -35815,7 +35078,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.rqst) + value = (value * 31) ^ hash(self.txns) return value def __repr__(self): @@ -35829,22 +35092,18 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class add_dynamic_partitions_result: +class heartbeat_txn_range_result: """ Attributes: - - o1 - - o2 + - success """ thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'o2', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 2 + (0, TType.STRUCT, 'success', (HeartbeatTxnRangeResponse, HeartbeatTxnRangeResponse.thrift_spec), None, ), # 0 ) - def __init__(self, o1=None, o2=None,): - self.o1 = o1 - self.o2 = o2 + 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: @@ -35855,16 +35114,10 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: - if ftype == TType.STRUCT: - self.o1 = NoSuchTxnException() - self.o1.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: + if fid == 0: if ftype == TType.STRUCT: - self.o2 = TxnAbortedException() - self.o2.read(iprot) + self.success = HeartbeatTxnRangeResponse() + self.success.read(iprot) else: iprot.skip(ftype) else: @@ -35876,14 +35129,10 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('add_dynamic_partitions_result') - if self.o1 is not None: - oprot.writeFieldBegin('o1', TType.STRUCT, 1) - self.o1.write(oprot) - oprot.writeFieldEnd() - if self.o2 is not None: - oprot.writeFieldBegin('o2', TType.STRUCT, 2) - self.o2.write(oprot) + oprot.writeStructBegin('heartbeat_txn_range_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -35894,8 +35143,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) + value = (value * 31) ^ hash(self.success) return value def __repr__(self): @@ -35909,7 +35157,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_next_notification_args: +class compact_args: """ Attributes: - rqst @@ -35917,7 +35165,7 @@ class get_next_notification_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (NotificationEventRequest, NotificationEventRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (CompactionRequest, CompactionRequest.thrift_spec), None, ), # 1 ) def __init__(self, rqst=None,): @@ -35934,7 +35182,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = NotificationEventRequest() + self.rqst = CompactionRequest() self.rqst.read(iprot) else: iprot.skip(ftype) @@ -35947,7 +35195,7 @@ 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_next_notification_args') + oprot.writeStructBegin('compact_args') if self.rqst is not None: oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) @@ -35975,19 +35223,11 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_next_notification_result: - """ - Attributes: - - success - """ +class compact_result: thrift_spec = ( - (0, TType.STRUCT, 'success', (NotificationEventResponse, NotificationEventResponse.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)) @@ -35997,12 +35237,6 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.STRUCT: - self.success = NotificationEventResponse() - self.success.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -36012,11 +35246,7 @@ 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_next_notification_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) - oprot.writeFieldEnd() + oprot.writeStructBegin('compact_result') oprot.writeFieldStop() oprot.writeStructEnd() @@ -36026,7 +35256,6 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.success) return value def __repr__(self): @@ -36040,11 +35269,20 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_current_notificationEventId_args: +class compact2_args: + """ + Attributes: + - rqst + """ thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'rqst', (CompactionRequest, CompactionRequest.thrift_spec), None, ), # 1 ) + 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)) @@ -36054,6 +35292,12 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break + if fid == 1: + if ftype == TType.STRUCT: + self.rqst = CompactionRequest() + self.rqst.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -36063,7 +35307,11 @@ 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_current_notificationEventId_args') + oprot.writeStructBegin('compact2_args') + if self.rqst is not None: + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) + self.rqst.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -36073,6 +35321,7 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.rqst) return value def __repr__(self): @@ -36086,14 +35335,14 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_current_notificationEventId_result: +class compact2_result: """ Attributes: - success """ thrift_spec = ( - (0, TType.STRUCT, 'success', (CurrentNotificationEventId, CurrentNotificationEventId.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (CompactionResponse, CompactionResponse.thrift_spec), None, ), # 0 ) def __init__(self, success=None,): @@ -36110,7 +35359,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = CurrentNotificationEventId() + self.success = CompactionResponse() self.success.read(iprot) else: iprot.skip(ftype) @@ -36123,7 +35372,7 @@ 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_current_notificationEventId_result') + oprot.writeStructBegin('compact2_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -36151,7 +35400,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class fire_listener_event_args: +class show_compact_args: """ Attributes: - rqst @@ -36159,7 +35408,7 @@ class fire_listener_event_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'rqst', (FireEventRequest, FireEventRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (ShowCompactRequest, ShowCompactRequest.thrift_spec), None, ), # 1 ) def __init__(self, rqst=None,): @@ -36176,7 +35425,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = FireEventRequest() + self.rqst = ShowCompactRequest() self.rqst.read(iprot) else: iprot.skip(ftype) @@ -36189,7 +35438,7 @@ 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('fire_listener_event_args') + oprot.writeStructBegin('show_compact_args') if self.rqst is not None: oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) @@ -36217,14 +35466,14 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class fire_listener_event_result: +class show_compact_result: """ Attributes: - success """ thrift_spec = ( - (0, TType.STRUCT, 'success', (FireEventResponse, FireEventResponse.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (ShowCompactResponse, ShowCompactResponse.thrift_spec), None, ), # 0 ) def __init__(self, success=None,): @@ -36241,7 +35490,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = FireEventResponse() + self.success = ShowCompactResponse() self.success.read(iprot) else: iprot.skip(ftype) @@ -36254,7 +35503,7 @@ 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('fire_listener_event_result') + oprot.writeStructBegin('show_compact_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -36282,11 +35531,20 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class flushCache_args: +class add_dynamic_partitions_args: + """ + Attributes: + - rqst + """ thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'rqst', (AddDynamicPartitions, AddDynamicPartitions.thrift_spec), None, ), # 1 ) + 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)) @@ -36296,6 +35554,12 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break + if fid == 1: + if ftype == TType.STRUCT: + self.rqst = AddDynamicPartitions() + self.rqst.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -36305,7 +35569,11 @@ 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('flushCache_args') + oprot.writeStructBegin('add_dynamic_partitions_args') + if self.rqst is not None: + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) + self.rqst.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -36315,6 +35583,7 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.rqst) return value def __repr__(self): @@ -36328,11 +35597,23 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class flushCache_result: +class add_dynamic_partitions_result: + """ + Attributes: + - o1 + - o2 + """ thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o1', (NoSuchTxnException, NoSuchTxnException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (TxnAbortedException, TxnAbortedException.thrift_spec), None, ), # 2 ) + def __init__(self, o1=None, o2=None,): + self.o1 = o1 + self.o2 = o2 + 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)) @@ -36342,6 +35623,18 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break + if fid == 1: + if ftype == TType.STRUCT: + self.o1 = NoSuchTxnException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = TxnAbortedException() + self.o2.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -36351,7 +35644,15 @@ 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('flushCache_result') + oprot.writeStructBegin('add_dynamic_partitions_result') + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + if self.o2 is not None: + oprot.writeFieldBegin('o2', TType.STRUCT, 2) + self.o2.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -36361,6 +35662,8 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) return value def __repr__(self): @@ -36374,19 +35677,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_file_metadata_by_expr_args: +class get_next_notification_args: """ Attributes: - - req + - rqst """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', (GetFileMetadataByExprRequest, GetFileMetadataByExprRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (NotificationEventRequest, NotificationEventRequest.thrift_spec), None, ), # 1 ) - def __init__(self, req=None,): - self.req = req + 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: @@ -36399,8 +35702,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = GetFileMetadataByExprRequest() - self.req.read(iprot) + self.rqst = NotificationEventRequest() + self.rqst.read(iprot) else: iprot.skip(ftype) else: @@ -36412,10 +35715,10 @@ 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_file_metadata_by_expr_args') - if self.req is not None: - oprot.writeFieldBegin('req', TType.STRUCT, 1) - self.req.write(oprot) + oprot.writeStructBegin('get_next_notification_args') + if self.rqst is not None: + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) + self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -36426,7 +35729,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.req) + value = (value * 31) ^ hash(self.rqst) return value def __repr__(self): @@ -36440,14 +35743,14 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_file_metadata_by_expr_result: +class get_next_notification_result: """ Attributes: - success """ thrift_spec = ( - (0, TType.STRUCT, 'success', (GetFileMetadataByExprResult, GetFileMetadataByExprResult.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (NotificationEventResponse, NotificationEventResponse.thrift_spec), None, ), # 0 ) def __init__(self, success=None,): @@ -36464,7 +35767,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = GetFileMetadataByExprResult() + self.success = NotificationEventResponse() self.success.read(iprot) else: iprot.skip(ftype) @@ -36477,7 +35780,7 @@ 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_file_metadata_by_expr_result') + oprot.writeStructBegin('get_next_notification_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -36505,20 +35808,11 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_file_metadata_args: - """ - Attributes: - - req - """ +class get_current_notificationEventId_args: thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', (GetFileMetadataRequest, GetFileMetadataRequest.thrift_spec), None, ), # 1 ) - def __init__(self, req=None,): - self.req = req - 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)) @@ -36528,12 +35822,6 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: - if ftype == TType.STRUCT: - self.req = GetFileMetadataRequest() - self.req.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -36543,11 +35831,7 @@ 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_file_metadata_args') - if self.req is not None: - oprot.writeFieldBegin('req', TType.STRUCT, 1) - self.req.write(oprot) - oprot.writeFieldEnd() + oprot.writeStructBegin('get_current_notificationEventId_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -36557,7 +35841,6 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.req) return value def __repr__(self): @@ -36571,14 +35854,14 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_file_metadata_result: +class get_current_notificationEventId_result: """ Attributes: - success """ thrift_spec = ( - (0, TType.STRUCT, 'success', (GetFileMetadataResult, GetFileMetadataResult.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (CurrentNotificationEventId, CurrentNotificationEventId.thrift_spec), None, ), # 0 ) def __init__(self, success=None,): @@ -36595,7 +35878,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = GetFileMetadataResult() + self.success = CurrentNotificationEventId() self.success.read(iprot) else: iprot.skip(ftype) @@ -36608,7 +35891,7 @@ 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_file_metadata_result') + oprot.writeStructBegin('get_current_notificationEventId_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -36636,19 +35919,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class put_file_metadata_args: +class fire_listener_event_args: """ Attributes: - - req + - rqst """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', (PutFileMetadataRequest, PutFileMetadataRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'rqst', (FireEventRequest, FireEventRequest.thrift_spec), None, ), # 1 ) - def __init__(self, req=None,): - self.req = req + 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: @@ -36661,8 +35944,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = PutFileMetadataRequest() - self.req.read(iprot) + self.rqst = FireEventRequest() + self.rqst.read(iprot) else: iprot.skip(ftype) else: @@ -36674,10 +35957,10 @@ 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('put_file_metadata_args') - if self.req is not None: - oprot.writeFieldBegin('req', TType.STRUCT, 1) - self.req.write(oprot) + oprot.writeStructBegin('fire_listener_event_args') + if self.rqst is not None: + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) + self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -36688,7 +35971,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.req) + value = (value * 31) ^ hash(self.rqst) return value def __repr__(self): @@ -36702,14 +35985,14 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class put_file_metadata_result: +class fire_listener_event_result: """ Attributes: - success """ thrift_spec = ( - (0, TType.STRUCT, 'success', (PutFileMetadataResult, PutFileMetadataResult.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (FireEventResponse, FireEventResponse.thrift_spec), None, ), # 0 ) def __init__(self, success=None,): @@ -36726,7 +36009,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = PutFileMetadataResult() + self.success = FireEventResponse() self.success.read(iprot) else: iprot.skip(ftype) @@ -36739,7 +36022,7 @@ 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('put_file_metadata_result') + oprot.writeStructBegin('fire_listener_event_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -36767,20 +36050,11 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class clear_file_metadata_args: - """ - Attributes: - - req - """ +class flushCache_args: thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', (ClearFileMetadataRequest, ClearFileMetadataRequest.thrift_spec), None, ), # 1 ) - def __init__(self, req=None,): - self.req = req - 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)) @@ -36790,12 +36064,6 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: - if ftype == TType.STRUCT: - self.req = ClearFileMetadataRequest() - self.req.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -36805,11 +36073,7 @@ 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('clear_file_metadata_args') - if self.req is not None: - oprot.writeFieldBegin('req', TType.STRUCT, 1) - self.req.write(oprot) - oprot.writeFieldEnd() + oprot.writeStructBegin('flushCache_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -36819,7 +36083,6 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.req) return value def __repr__(self): @@ -36833,19 +36096,11 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class clear_file_metadata_result: - """ - Attributes: - - success - """ +class flushCache_result: thrift_spec = ( - (0, TType.STRUCT, 'success', (ClearFileMetadataResult, ClearFileMetadataResult.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)) @@ -36855,12 +36110,6 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.STRUCT: - self.success = ClearFileMetadataResult() - self.success.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -36870,11 +36119,7 @@ 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('clear_file_metadata_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) - oprot.writeFieldEnd() + oprot.writeStructBegin('flushCache_result') oprot.writeFieldStop() oprot.writeStructEnd() @@ -36884,7 +36129,6 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.success) return value def __repr__(self): @@ -36898,7 +36142,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class cache_file_metadata_args: +class get_file_metadata_by_expr_args: """ Attributes: - req @@ -36906,7 +36150,7 @@ class cache_file_metadata_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', (CacheFileMetadataRequest, CacheFileMetadataRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'req', (GetFileMetadataByExprRequest, GetFileMetadataByExprRequest.thrift_spec), None, ), # 1 ) def __init__(self, req=None,): @@ -36923,7 +36167,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = CacheFileMetadataRequest() + self.req = GetFileMetadataByExprRequest() self.req.read(iprot) else: iprot.skip(ftype) @@ -36936,7 +36180,7 @@ 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('cache_file_metadata_args') + oprot.writeStructBegin('get_file_metadata_by_expr_args') if self.req is not None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -36964,14 +36208,14 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class cache_file_metadata_result: +class get_file_metadata_by_expr_result: """ Attributes: - success """ thrift_spec = ( - (0, TType.STRUCT, 'success', (CacheFileMetadataResult, CacheFileMetadataResult.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (GetFileMetadataByExprResult, GetFileMetadataByExprResult.thrift_spec), None, ), # 0 ) def __init__(self, success=None,): @@ -36988,7 +36232,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = CacheFileMetadataResult() + self.success = GetFileMetadataByExprResult() self.success.read(iprot) else: iprot.skip(ftype) @@ -37001,7 +36245,7 @@ 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('cache_file_metadata_result') + oprot.writeStructBegin('get_file_metadata_by_expr_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -37029,7 +36273,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_next_write_id_args: +class get_file_metadata_args: """ Attributes: - req @@ -37037,7 +36281,7 @@ class get_next_write_id_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', (GetNextWriteIdRequest, GetNextWriteIdRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'req', (GetFileMetadataRequest, GetFileMetadataRequest.thrift_spec), None, ), # 1 ) def __init__(self, req=None,): @@ -37054,7 +36298,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = GetNextWriteIdRequest() + self.req = GetFileMetadataRequest() self.req.read(iprot) else: iprot.skip(ftype) @@ -37067,7 +36311,7 @@ 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_next_write_id_args') + oprot.writeStructBegin('get_file_metadata_args') if self.req is not None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -37095,14 +36339,14 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_next_write_id_result: +class get_file_metadata_result: """ Attributes: - success """ thrift_spec = ( - (0, TType.STRUCT, 'success', (GetNextWriteIdResult, GetNextWriteIdResult.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (GetFileMetadataResult, GetFileMetadataResult.thrift_spec), None, ), # 0 ) def __init__(self, success=None,): @@ -37119,7 +36363,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = GetNextWriteIdResult() + self.success = GetFileMetadataResult() self.success.read(iprot) else: iprot.skip(ftype) @@ -37132,7 +36376,7 @@ 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_next_write_id_result') + oprot.writeStructBegin('get_file_metadata_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -37160,7 +36404,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class finalize_write_id_args: +class put_file_metadata_args: """ Attributes: - req @@ -37168,7 +36412,7 @@ class finalize_write_id_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', (FinalizeWriteIdRequest, FinalizeWriteIdRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'req', (PutFileMetadataRequest, PutFileMetadataRequest.thrift_spec), None, ), # 1 ) def __init__(self, req=None,): @@ -37185,7 +36429,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = FinalizeWriteIdRequest() + self.req = PutFileMetadataRequest() self.req.read(iprot) else: iprot.skip(ftype) @@ -37198,7 +36442,7 @@ 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('finalize_write_id_args') + oprot.writeStructBegin('put_file_metadata_args') if self.req is not None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -37226,14 +36470,14 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class finalize_write_id_result: +class put_file_metadata_result: """ Attributes: - success """ thrift_spec = ( - (0, TType.STRUCT, 'success', (FinalizeWriteIdResult, FinalizeWriteIdResult.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (PutFileMetadataResult, PutFileMetadataResult.thrift_spec), None, ), # 0 ) def __init__(self, success=None,): @@ -37250,7 +36494,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = FinalizeWriteIdResult() + self.success = PutFileMetadataResult() self.success.read(iprot) else: iprot.skip(ftype) @@ -37263,7 +36507,7 @@ 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('finalize_write_id_result') + oprot.writeStructBegin('put_file_metadata_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -37291,7 +36535,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class heartbeat_write_id_args: +class clear_file_metadata_args: """ Attributes: - req @@ -37299,7 +36543,7 @@ class heartbeat_write_id_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', (HeartbeatWriteIdRequest, HeartbeatWriteIdRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'req', (ClearFileMetadataRequest, ClearFileMetadataRequest.thrift_spec), None, ), # 1 ) def __init__(self, req=None,): @@ -37316,7 +36560,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = HeartbeatWriteIdRequest() + self.req = ClearFileMetadataRequest() self.req.read(iprot) else: iprot.skip(ftype) @@ -37329,7 +36573,7 @@ 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('heartbeat_write_id_args') + oprot.writeStructBegin('clear_file_metadata_args') if self.req is not None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -37357,14 +36601,14 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class heartbeat_write_id_result: +class clear_file_metadata_result: """ Attributes: - success """ thrift_spec = ( - (0, TType.STRUCT, 'success', (HeartbeatWriteIdResult, HeartbeatWriteIdResult.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (ClearFileMetadataResult, ClearFileMetadataResult.thrift_spec), None, ), # 0 ) def __init__(self, success=None,): @@ -37381,7 +36625,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = HeartbeatWriteIdResult() + self.success = ClearFileMetadataResult() self.success.read(iprot) else: iprot.skip(ftype) @@ -37394,7 +36638,7 @@ 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('heartbeat_write_id_result') + oprot.writeStructBegin('clear_file_metadata_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -37422,7 +36666,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_valid_write_ids_args: +class cache_file_metadata_args: """ Attributes: - req @@ -37430,7 +36674,7 @@ class get_valid_write_ids_args: thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', (GetValidWriteIdsRequest, GetValidWriteIdsRequest.thrift_spec), None, ), # 1 + (1, TType.STRUCT, 'req', (CacheFileMetadataRequest, CacheFileMetadataRequest.thrift_spec), None, ), # 1 ) def __init__(self, req=None,): @@ -37447,7 +36691,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = GetValidWriteIdsRequest() + self.req = CacheFileMetadataRequest() self.req.read(iprot) else: iprot.skip(ftype) @@ -37460,7 +36704,7 @@ 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_valid_write_ids_args') + oprot.writeStructBegin('cache_file_metadata_args') if self.req is not None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -37488,14 +36732,14 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_valid_write_ids_result: +class cache_file_metadata_result: """ Attributes: - success """ thrift_spec = ( - (0, TType.STRUCT, 'success', (GetValidWriteIdsResult, GetValidWriteIdsResult.thrift_spec), None, ), # 0 + (0, TType.STRUCT, 'success', (CacheFileMetadataResult, CacheFileMetadataResult.thrift_spec), None, ), # 0 ) def __init__(self, success=None,): @@ -37512,7 +36756,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = GetValidWriteIdsResult() + self.success = CacheFileMetadataResult() self.success.read(iprot) else: iprot.skip(ftype) @@ -37525,7 +36769,7 @@ 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_valid_write_ids_result') + oprot.writeStructBegin('cache_file_metadata_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) diff --git metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py index 3d20125..42aaa9c 100644 --- metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py +++ metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py @@ -3137,8 +3137,6 @@ class Table: - privileges - temporary - rewriteEnabled - - mmNextWriteId - - mmWatermarkWriteId """ thrift_spec = ( @@ -3158,11 +3156,9 @@ class Table: (13, TType.STRUCT, 'privileges', (PrincipalPrivilegeSet, PrincipalPrivilegeSet.thrift_spec), None, ), # 13 (14, TType.BOOL, 'temporary', None, False, ), # 14 (15, TType.BOOL, 'rewriteEnabled', None, None, ), # 15 - (16, TType.I64, 'mmNextWriteId', None, None, ), # 16 - (17, TType.I64, 'mmWatermarkWriteId', None, None, ), # 17 ) - def __init__(self, tableName=None, dbName=None, owner=None, createTime=None, lastAccessTime=None, retention=None, sd=None, partitionKeys=None, parameters=None, viewOriginalText=None, viewExpandedText=None, tableType=None, privileges=None, temporary=thrift_spec[14][4], rewriteEnabled=None, mmNextWriteId=None, mmWatermarkWriteId=None,): + def __init__(self, tableName=None, dbName=None, owner=None, createTime=None, lastAccessTime=None, retention=None, sd=None, partitionKeys=None, parameters=None, viewOriginalText=None, viewExpandedText=None, tableType=None, privileges=None, temporary=thrift_spec[14][4], rewriteEnabled=None,): self.tableName = tableName self.dbName = dbName self.owner = owner @@ -3178,8 +3174,6 @@ def __init__(self, tableName=None, dbName=None, owner=None, createTime=None, las self.privileges = privileges self.temporary = temporary self.rewriteEnabled = rewriteEnabled - self.mmNextWriteId = mmNextWriteId - self.mmWatermarkWriteId = mmWatermarkWriteId 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: @@ -3279,16 +3273,6 @@ def read(self, iprot): self.rewriteEnabled = iprot.readBool() else: iprot.skip(ftype) - elif fid == 16: - if ftype == TType.I64: - self.mmNextWriteId = iprot.readI64() - else: - iprot.skip(ftype) - elif fid == 17: - if ftype == TType.I64: - self.mmWatermarkWriteId = iprot.readI64() - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -3366,14 +3350,6 @@ def write(self, oprot): oprot.writeFieldBegin('rewriteEnabled', TType.BOOL, 15) oprot.writeBool(self.rewriteEnabled) oprot.writeFieldEnd() - if self.mmNextWriteId is not None: - oprot.writeFieldBegin('mmNextWriteId', TType.I64, 16) - oprot.writeI64(self.mmNextWriteId) - oprot.writeFieldEnd() - if self.mmWatermarkWriteId is not None: - oprot.writeFieldBegin('mmWatermarkWriteId', TType.I64, 17) - oprot.writeI64(self.mmWatermarkWriteId) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -3398,8 +3374,6 @@ def __hash__(self): value = (value * 31) ^ hash(self.privileges) value = (value * 31) ^ hash(self.temporary) value = (value * 31) ^ hash(self.rewriteEnabled) - value = (value * 31) ^ hash(self.mmNextWriteId) - value = (value * 31) ^ hash(self.mmWatermarkWriteId) return value def __repr__(self): @@ -12455,22 +12429,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class GetNextWriteIdRequest: +class GetAllFunctionsResponse: """ Attributes: - - dbName - - tblName + - functions """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'dbName', None, None, ), # 1 - (2, TType.STRING, 'tblName', None, None, ), # 2 + (1, TType.LIST, 'functions', (TType.STRUCT,(Function, Function.thrift_spec)), None, ), # 1 ) - def __init__(self, dbName=None, tblName=None,): - self.dbName = dbName - self.tblName = tblName + def __init__(self, functions=None,): + self.functions = functions 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: @@ -12482,13 +12453,14 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.dbName = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.tblName = iprot.readString() + if ftype == TType.LIST: + self.functions = [] + (_etype569, _size566) = iprot.readListBegin() + for _i570 in xrange(_size566): + _elem571 = Function() + _elem571.read(iprot) + self.functions.append(_elem571) + iprot.readListEnd() else: iprot.skip(ftype) else: @@ -12500,30 +12472,24 @@ 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('GetNextWriteIdRequest') - if self.dbName is not None: - oprot.writeFieldBegin('dbName', TType.STRING, 1) - oprot.writeString(self.dbName) - oprot.writeFieldEnd() - if self.tblName is not None: - oprot.writeFieldBegin('tblName', TType.STRING, 2) - oprot.writeString(self.tblName) + oprot.writeStructBegin('GetAllFunctionsResponse') + if self.functions is not None: + oprot.writeFieldBegin('functions', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.functions)) + for iter572 in self.functions: + iter572.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.dbName is None: - raise TProtocol.TProtocolException(message='Required field dbName is unset!') - if self.tblName is None: - raise TProtocol.TProtocolException(message='Required field tblName is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tblName) + value = (value * 31) ^ hash(self.functions) return value def __repr__(self): @@ -12537,19 +12503,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class GetNextWriteIdResult: +class ClientCapabilities: """ Attributes: - - writeId + - values """ thrift_spec = ( None, # 0 - (1, TType.I64, 'writeId', None, None, ), # 1 + (1, TType.LIST, 'values', (TType.I32,None), None, ), # 1 ) - def __init__(self, writeId=None,): - self.writeId = writeId + def __init__(self, values=None,): + self.values = values 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: @@ -12561,8 +12527,13 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.I64: - self.writeId = iprot.readI64() + if ftype == TType.LIST: + self.values = [] + (_etype576, _size573) = iprot.readListBegin() + for _i577 in xrange(_size573): + _elem578 = iprot.readI32() + self.values.append(_elem578) + iprot.readListEnd() else: iprot.skip(ftype) else: @@ -12574,23 +12545,26 @@ 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('GetNextWriteIdResult') - if self.writeId is not None: - oprot.writeFieldBegin('writeId', TType.I64, 1) - oprot.writeI64(self.writeId) + oprot.writeStructBegin('ClientCapabilities') + if self.values is not None: + oprot.writeFieldBegin('values', TType.LIST, 1) + oprot.writeListBegin(TType.I32, len(self.values)) + for iter579 in self.values: + oprot.writeI32(iter579) + oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.writeId is None: - raise TProtocol.TProtocolException(message='Required field writeId is unset!') + if self.values is None: + raise TProtocol.TProtocolException(message='Required field values is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.writeId) + value = (value * 31) ^ hash(self.values) return value def __repr__(self): @@ -12604,28 +12578,25 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class FinalizeWriteIdRequest: +class GetTableRequest: """ Attributes: - dbName - tblName - - writeId - - commit + - capabilities """ thrift_spec = ( None, # 0 (1, TType.STRING, 'dbName', None, None, ), # 1 (2, TType.STRING, 'tblName', None, None, ), # 2 - (3, TType.I64, 'writeId', None, None, ), # 3 - (4, TType.BOOL, 'commit', None, None, ), # 4 + (3, TType.STRUCT, 'capabilities', (ClientCapabilities, ClientCapabilities.thrift_spec), None, ), # 3 ) - def __init__(self, dbName=None, tblName=None, writeId=None, commit=None,): + def __init__(self, dbName=None, tblName=None, capabilities=None,): self.dbName = dbName self.tblName = tblName - self.writeId = writeId - self.commit = commit + self.capabilities = capabilities 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: @@ -12647,13 +12618,9 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.I64: - self.writeId = iprot.readI64() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.BOOL: - self.commit = iprot.readBool() + if ftype == TType.STRUCT: + self.capabilities = ClientCapabilities() + self.capabilities.read(iprot) else: iprot.skip(ftype) else: @@ -12665,7 +12632,7 @@ 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('FinalizeWriteIdRequest') + oprot.writeStructBegin('GetTableRequest') if self.dbName is not None: oprot.writeFieldBegin('dbName', TType.STRING, 1) oprot.writeString(self.dbName) @@ -12674,13 +12641,9 @@ def write(self, oprot): oprot.writeFieldBegin('tblName', TType.STRING, 2) oprot.writeString(self.tblName) oprot.writeFieldEnd() - if self.writeId is not None: - oprot.writeFieldBegin('writeId', TType.I64, 3) - oprot.writeI64(self.writeId) - oprot.writeFieldEnd() - if self.commit is not None: - oprot.writeFieldBegin('commit', TType.BOOL, 4) - oprot.writeBool(self.commit) + if self.capabilities is not None: + oprot.writeFieldBegin('capabilities', TType.STRUCT, 3) + self.capabilities.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -12690,10 +12653,6 @@ def validate(self): raise TProtocol.TProtocolException(message='Required field dbName is unset!') if self.tblName is None: raise TProtocol.TProtocolException(message='Required field tblName is unset!') - if self.writeId is None: - raise TProtocol.TProtocolException(message='Required field writeId is unset!') - if self.commit is None: - raise TProtocol.TProtocolException(message='Required field commit is unset!') return @@ -12701,8 +12660,7 @@ def __hash__(self): value = 17 value = (value * 31) ^ hash(self.dbName) value = (value * 31) ^ hash(self.tblName) - value = (value * 31) ^ hash(self.writeId) - value = (value * 31) ^ hash(self.commit) + value = (value * 31) ^ hash(self.capabilities) return value def __repr__(self): @@ -12716,11 +12674,20 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class FinalizeWriteIdResult: +class GetTableResult: + """ + Attributes: + - table + """ thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'table', (Table, Table.thrift_spec), None, ), # 1 ) + def __init__(self, table=None,): + self.table = table + 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)) @@ -12730,6 +12697,12 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break + if fid == 1: + if ftype == TType.STRUCT: + self.table = Table() + self.table.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -12739,16 +12712,23 @@ 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('FinalizeWriteIdResult') + oprot.writeStructBegin('GetTableResult') + if self.table is not None: + oprot.writeFieldBegin('table', TType.STRUCT, 1) + self.table.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): + if self.table is None: + raise TProtocol.TProtocolException(message='Required field table is unset!') return def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.table) return value def __repr__(self): @@ -12762,25 +12742,25 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class HeartbeatWriteIdRequest: +class GetTablesRequest: """ Attributes: - dbName - - tblName - - writeId + - tblNames + - capabilities """ thrift_spec = ( None, # 0 (1, TType.STRING, 'dbName', None, None, ), # 1 - (2, TType.STRING, 'tblName', None, None, ), # 2 - (3, TType.I64, 'writeId', None, None, ), # 3 + (2, TType.LIST, 'tblNames', (TType.STRING,None), None, ), # 2 + (3, TType.STRUCT, 'capabilities', (ClientCapabilities, ClientCapabilities.thrift_spec), None, ), # 3 ) - def __init__(self, dbName=None, tblName=None, writeId=None,): + def __init__(self, dbName=None, tblNames=None, capabilities=None,): self.dbName = dbName - self.tblName = tblName - self.writeId = writeId + self.tblNames = tblNames + self.capabilities = capabilities 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: @@ -12797,13 +12777,19 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 2: - if ftype == TType.STRING: - self.tblName = iprot.readString() + if ftype == TType.LIST: + self.tblNames = [] + (_etype583, _size580) = iprot.readListBegin() + for _i584 in xrange(_size580): + _elem585 = iprot.readString() + self.tblNames.append(_elem585) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.I64: - self.writeId = iprot.readI64() + if ftype == TType.STRUCT: + self.capabilities = ClientCapabilities() + self.capabilities.read(iprot) else: iprot.skip(ftype) else: @@ -12815,18 +12801,21 @@ 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('HeartbeatWriteIdRequest') + oprot.writeStructBegin('GetTablesRequest') if self.dbName is not None: oprot.writeFieldBegin('dbName', TType.STRING, 1) oprot.writeString(self.dbName) oprot.writeFieldEnd() - if self.tblName is not None: - oprot.writeFieldBegin('tblName', TType.STRING, 2) - oprot.writeString(self.tblName) + if self.tblNames is not None: + oprot.writeFieldBegin('tblNames', TType.LIST, 2) + oprot.writeListBegin(TType.STRING, len(self.tblNames)) + for iter586 in self.tblNames: + oprot.writeString(iter586) + oprot.writeListEnd() oprot.writeFieldEnd() - if self.writeId is not None: - oprot.writeFieldBegin('writeId', TType.I64, 3) - oprot.writeI64(self.writeId) + if self.capabilities is not None: + oprot.writeFieldBegin('capabilities', TType.STRUCT, 3) + self.capabilities.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -12834,64 +12823,14 @@ def write(self, oprot): def validate(self): if self.dbName is None: raise TProtocol.TProtocolException(message='Required field dbName is unset!') - if self.tblName is None: - raise TProtocol.TProtocolException(message='Required field tblName is unset!') - if self.writeId is None: - raise TProtocol.TProtocolException(message='Required field writeId is unset!') return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tblName) - value = (value * 31) ^ hash(self.writeId) - 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 HeartbeatWriteIdResult: - - thrift_spec = ( - ) - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('HeartbeatWriteIdResult') - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - - def __hash__(self): - value = 17 + value = (value * 31) ^ hash(self.tblNames) + value = (value * 31) ^ hash(self.capabilities) return value def __repr__(self): @@ -12905,291 +12844,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class GetValidWriteIdsRequest: +class GetTablesResult: """ Attributes: - - dbName - - tblName + - tables """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'dbName', None, None, ), # 1 - (2, TType.STRING, 'tblName', None, None, ), # 2 + (1, TType.LIST, 'tables', (TType.STRUCT,(Table, Table.thrift_spec)), None, ), # 1 ) - def __init__(self, dbName=None, tblName=None,): - self.dbName = dbName - self.tblName = tblName - - 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.STRING: - self.dbName = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.tblName = 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('GetValidWriteIdsRequest') - if self.dbName is not None: - oprot.writeFieldBegin('dbName', TType.STRING, 1) - oprot.writeString(self.dbName) - oprot.writeFieldEnd() - if self.tblName is not None: - oprot.writeFieldBegin('tblName', TType.STRING, 2) - oprot.writeString(self.tblName) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - if self.dbName is None: - raise TProtocol.TProtocolException(message='Required field dbName is unset!') - if self.tblName is None: - raise TProtocol.TProtocolException(message='Required field tblName is unset!') - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tblName) - 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 GetValidWriteIdsResult: - """ - Attributes: - - lowWatermarkId - - highWatermarkId - - areIdsValid - - ids - """ - - thrift_spec = ( - None, # 0 - (1, TType.I64, 'lowWatermarkId', None, None, ), # 1 - (2, TType.I64, 'highWatermarkId', None, None, ), # 2 - (3, TType.BOOL, 'areIdsValid', None, None, ), # 3 - (4, TType.LIST, 'ids', (TType.I64,None), None, ), # 4 - ) - - def __init__(self, lowWatermarkId=None, highWatermarkId=None, areIdsValid=None, ids=None,): - self.lowWatermarkId = lowWatermarkId - self.highWatermarkId = highWatermarkId - self.areIdsValid = areIdsValid - self.ids = ids - - 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.lowWatermarkId = iprot.readI64() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.I64: - self.highWatermarkId = iprot.readI64() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.BOOL: - self.areIdsValid = iprot.readBool() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.LIST: - self.ids = [] - (_etype569, _size566) = iprot.readListBegin() - for _i570 in xrange(_size566): - _elem571 = iprot.readI64() - self.ids.append(_elem571) - iprot.readListEnd() - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('GetValidWriteIdsResult') - if self.lowWatermarkId is not None: - oprot.writeFieldBegin('lowWatermarkId', TType.I64, 1) - oprot.writeI64(self.lowWatermarkId) - oprot.writeFieldEnd() - if self.highWatermarkId is not None: - oprot.writeFieldBegin('highWatermarkId', TType.I64, 2) - oprot.writeI64(self.highWatermarkId) - oprot.writeFieldEnd() - if self.areIdsValid is not None: - oprot.writeFieldBegin('areIdsValid', TType.BOOL, 3) - oprot.writeBool(self.areIdsValid) - oprot.writeFieldEnd() - if self.ids is not None: - oprot.writeFieldBegin('ids', TType.LIST, 4) - oprot.writeListBegin(TType.I64, len(self.ids)) - for iter572 in self.ids: - oprot.writeI64(iter572) - oprot.writeListEnd() - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - if self.lowWatermarkId is None: - raise TProtocol.TProtocolException(message='Required field lowWatermarkId is unset!') - if self.highWatermarkId is None: - raise TProtocol.TProtocolException(message='Required field highWatermarkId is unset!') - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.lowWatermarkId) - value = (value * 31) ^ hash(self.highWatermarkId) - value = (value * 31) ^ hash(self.areIdsValid) - value = (value * 31) ^ hash(self.ids) - 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 GetAllFunctionsResponse: - """ - Attributes: - - functions - """ - - thrift_spec = ( - None, # 0 - (1, TType.LIST, 'functions', (TType.STRUCT,(Function, Function.thrift_spec)), None, ), # 1 - ) - - def __init__(self, functions=None,): - self.functions = functions - - 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.LIST: - self.functions = [] - (_etype576, _size573) = iprot.readListBegin() - for _i577 in xrange(_size573): - _elem578 = Function() - _elem578.read(iprot) - self.functions.append(_elem578) - iprot.readListEnd() - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('GetAllFunctionsResponse') - if self.functions is not None: - oprot.writeFieldBegin('functions', TType.LIST, 1) - oprot.writeListBegin(TType.STRUCT, len(self.functions)) - for iter579 in self.functions: - iter579.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.functions) - 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 ClientCapabilities: - """ - Attributes: - - values - """ - - thrift_spec = ( - None, # 0 - (1, TType.LIST, 'values', (TType.I32,None), None, ), # 1 - ) - - def __init__(self, values=None,): - self.values = values + def __init__(self, tables=None,): + self.tables = tables 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: @@ -13202,353 +12869,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.LIST: - self.values = [] - (_etype583, _size580) = iprot.readListBegin() - for _i584 in xrange(_size580): - _elem585 = iprot.readI32() - self.values.append(_elem585) - iprot.readListEnd() - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('ClientCapabilities') - if self.values is not None: - oprot.writeFieldBegin('values', TType.LIST, 1) - oprot.writeListBegin(TType.I32, len(self.values)) - for iter586 in self.values: - oprot.writeI32(iter586) - oprot.writeListEnd() - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - if self.values is None: - raise TProtocol.TProtocolException(message='Required field values is unset!') - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.values) - 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 GetTableRequest: - """ - Attributes: - - dbName - - tblName - - capabilities - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRING, 'dbName', None, None, ), # 1 - (2, TType.STRING, 'tblName', None, None, ), # 2 - (3, TType.STRUCT, 'capabilities', (ClientCapabilities, ClientCapabilities.thrift_spec), None, ), # 3 - ) - - def __init__(self, dbName=None, tblName=None, capabilities=None,): - self.dbName = dbName - self.tblName = tblName - self.capabilities = capabilities - - 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.STRING: - self.dbName = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.tblName = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.capabilities = ClientCapabilities() - self.capabilities.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('GetTableRequest') - if self.dbName is not None: - oprot.writeFieldBegin('dbName', TType.STRING, 1) - oprot.writeString(self.dbName) - oprot.writeFieldEnd() - if self.tblName is not None: - oprot.writeFieldBegin('tblName', TType.STRING, 2) - oprot.writeString(self.tblName) - oprot.writeFieldEnd() - if self.capabilities is not None: - oprot.writeFieldBegin('capabilities', TType.STRUCT, 3) - self.capabilities.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - if self.dbName is None: - raise TProtocol.TProtocolException(message='Required field dbName is unset!') - if self.tblName is None: - raise TProtocol.TProtocolException(message='Required field tblName is unset!') - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tblName) - value = (value * 31) ^ hash(self.capabilities) - 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 GetTableResult: - """ - Attributes: - - table - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'table', (Table, Table.thrift_spec), None, ), # 1 - ) - - def __init__(self, table=None,): - self.table = table - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.STRUCT: - self.table = Table() - self.table.read(iprot) - else: - iprot.skip(ftype) - 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('GetTableResult') - if self.table is not None: - oprot.writeFieldBegin('table', TType.STRUCT, 1) - self.table.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - if self.table is None: - raise TProtocol.TProtocolException(message='Required field table is unset!') - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.table) - 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 GetTablesRequest: - """ - Attributes: - - dbName - - tblNames - - capabilities - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRING, 'dbName', None, None, ), # 1 - (2, TType.LIST, 'tblNames', (TType.STRING,None), None, ), # 2 - (3, TType.STRUCT, 'capabilities', (ClientCapabilities, ClientCapabilities.thrift_spec), None, ), # 3 - ) - - def __init__(self, dbName=None, tblNames=None, capabilities=None,): - self.dbName = dbName - self.tblNames = tblNames - self.capabilities = capabilities - - 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.STRING: - self.dbName = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.LIST: - self.tblNames = [] + self.tables = [] (_etype590, _size587) = iprot.readListBegin() for _i591 in xrange(_size587): - _elem592 = iprot.readString() - self.tblNames.append(_elem592) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.capabilities = ClientCapabilities() - self.capabilities.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('GetTablesRequest') - if self.dbName is not None: - oprot.writeFieldBegin('dbName', TType.STRING, 1) - oprot.writeString(self.dbName) - oprot.writeFieldEnd() - if self.tblNames is not None: - oprot.writeFieldBegin('tblNames', TType.LIST, 2) - oprot.writeListBegin(TType.STRING, len(self.tblNames)) - for iter593 in self.tblNames: - oprot.writeString(iter593) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.capabilities is not None: - oprot.writeFieldBegin('capabilities', TType.STRUCT, 3) - self.capabilities.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - 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.dbName) - value = (value * 31) ^ hash(self.tblNames) - value = (value * 31) ^ hash(self.capabilities) - 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 GetTablesResult: - """ - Attributes: - - tables - """ - - thrift_spec = ( - None, # 0 - (1, TType.LIST, 'tables', (TType.STRUCT,(Table, Table.thrift_spec)), None, ), # 1 - ) - - def __init__(self, tables=None,): - self.tables = tables - - 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.LIST: - self.tables = [] - (_etype597, _size594) = iprot.readListBegin() - for _i598 in xrange(_size594): - _elem599 = Table() - _elem599.read(iprot) - self.tables.append(_elem599) + _elem592 = Table() + _elem592.read(iprot) + self.tables.append(_elem592) iprot.readListEnd() else: iprot.skip(ftype) @@ -13565,8 +12891,8 @@ def write(self, oprot): if self.tables is not None: oprot.writeFieldBegin('tables', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.tables)) - for iter600 in self.tables: - iter600.write(oprot) + for iter593 in self.tables: + iter593.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() diff --git metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb index 5e18f9b..f411dfa 100644 --- metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb +++ metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb @@ -736,8 +736,6 @@ class Table PRIVILEGES = 13 TEMPORARY = 14 REWRITEENABLED = 15 - MMNEXTWRITEID = 16 - MMWATERMARKWRITEID = 17 FIELDS = { TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName'}, @@ -754,9 +752,7 @@ class Table TABLETYPE => {:type => ::Thrift::Types::STRING, :name => 'tableType'}, PRIVILEGES => {:type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => ::PrincipalPrivilegeSet, :optional => true}, TEMPORARY => {:type => ::Thrift::Types::BOOL, :name => 'temporary', :default => false, :optional => true}, - REWRITEENABLED => {:type => ::Thrift::Types::BOOL, :name => 'rewriteEnabled', :optional => true}, - MMNEXTWRITEID => {:type => ::Thrift::Types::I64, :name => 'mmNextWriteId', :optional => true}, - MMWATERMARKWRITEID => {:type => ::Thrift::Types::I64, :name => 'mmWatermarkWriteId', :optional => true} + REWRITEENABLED => {:type => ::Thrift::Types::BOOL, :name => 'rewriteEnabled', :optional => true} } def struct_fields; FIELDS; end @@ -2809,166 +2805,6 @@ class CacheFileMetadataRequest ::Thrift::Struct.generate_accessors self end -class GetNextWriteIdRequest - include ::Thrift::Struct, ::Thrift::Struct_Union - DBNAME = 1 - TBLNAME = 2 - - FIELDS = { - DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, - TBLNAME => {:type => ::Thrift::Types::STRING, :name => 'tblName'} - } - - def struct_fields; FIELDS; end - - def validate - raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field dbName is unset!') unless @dbName - raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tblName is unset!') unless @tblName - end - - ::Thrift::Struct.generate_accessors self -end - -class GetNextWriteIdResult - include ::Thrift::Struct, ::Thrift::Struct_Union - WRITEID = 1 - - FIELDS = { - WRITEID => {:type => ::Thrift::Types::I64, :name => 'writeId'} - } - - def struct_fields; FIELDS; end - - def validate - raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field writeId is unset!') unless @writeId - end - - ::Thrift::Struct.generate_accessors self -end - -class FinalizeWriteIdRequest - include ::Thrift::Struct, ::Thrift::Struct_Union - DBNAME = 1 - TBLNAME = 2 - WRITEID = 3 - COMMIT = 4 - - FIELDS = { - DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, - TBLNAME => {:type => ::Thrift::Types::STRING, :name => 'tblName'}, - WRITEID => {:type => ::Thrift::Types::I64, :name => 'writeId'}, - COMMIT => {:type => ::Thrift::Types::BOOL, :name => 'commit'} - } - - def struct_fields; FIELDS; end - - def validate - raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field dbName is unset!') unless @dbName - raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tblName is unset!') unless @tblName - raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field writeId is unset!') unless @writeId - raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field commit is unset!') if @commit.nil? - end - - ::Thrift::Struct.generate_accessors self -end - -class FinalizeWriteIdResult - include ::Thrift::Struct, ::Thrift::Struct_Union - - FIELDS = { - - } - - def struct_fields; FIELDS; end - - def validate - end - - ::Thrift::Struct.generate_accessors self -end - -class HeartbeatWriteIdRequest - include ::Thrift::Struct, ::Thrift::Struct_Union - DBNAME = 1 - TBLNAME = 2 - WRITEID = 3 - - FIELDS = { - DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, - TBLNAME => {:type => ::Thrift::Types::STRING, :name => 'tblName'}, - WRITEID => {:type => ::Thrift::Types::I64, :name => 'writeId'} - } - - def struct_fields; FIELDS; end - - def validate - raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field dbName is unset!') unless @dbName - raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tblName is unset!') unless @tblName - raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field writeId is unset!') unless @writeId - end - - ::Thrift::Struct.generate_accessors self -end - -class HeartbeatWriteIdResult - include ::Thrift::Struct, ::Thrift::Struct_Union - - FIELDS = { - - } - - def struct_fields; FIELDS; end - - def validate - end - - ::Thrift::Struct.generate_accessors self -end - -class GetValidWriteIdsRequest - include ::Thrift::Struct, ::Thrift::Struct_Union - DBNAME = 1 - TBLNAME = 2 - - FIELDS = { - DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, - TBLNAME => {:type => ::Thrift::Types::STRING, :name => 'tblName'} - } - - def struct_fields; FIELDS; end - - def validate - raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field dbName is unset!') unless @dbName - raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tblName is unset!') unless @tblName - end - - ::Thrift::Struct.generate_accessors self -end - -class GetValidWriteIdsResult - include ::Thrift::Struct, ::Thrift::Struct_Union - LOWWATERMARKID = 1 - HIGHWATERMARKID = 2 - AREIDSVALID = 3 - IDS = 4 - - FIELDS = { - LOWWATERMARKID => {:type => ::Thrift::Types::I64, :name => 'lowWatermarkId'}, - HIGHWATERMARKID => {:type => ::Thrift::Types::I64, :name => 'highWatermarkId'}, - AREIDSVALID => {:type => ::Thrift::Types::BOOL, :name => 'areIdsValid', :optional => true}, - IDS => {:type => ::Thrift::Types::LIST, :name => 'ids', :element => {:type => ::Thrift::Types::I64}, :optional => true} - } - - def struct_fields; FIELDS; end - - def validate - raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field lowWatermarkId is unset!') unless @lowWatermarkId - raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field highWatermarkId is unset!') unless @highWatermarkId - end - - ::Thrift::Struct.generate_accessors self -end - class GetAllFunctionsResponse include ::Thrift::Struct, ::Thrift::Struct_Union FUNCTIONS = 1 diff --git metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb index 36be2e8..04e63f3 100644 --- metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb +++ metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb @@ -2562,66 +2562,6 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'cache_file_metadata failed: unknown result') end - def get_next_write_id(req) - send_get_next_write_id(req) - return recv_get_next_write_id() - end - - def send_get_next_write_id(req) - send_message('get_next_write_id', Get_next_write_id_args, :req => req) - end - - def recv_get_next_write_id() - result = receive_message(Get_next_write_id_result) - return result.success unless result.success.nil? - raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_next_write_id failed: unknown result') - end - - def finalize_write_id(req) - send_finalize_write_id(req) - return recv_finalize_write_id() - end - - def send_finalize_write_id(req) - send_message('finalize_write_id', Finalize_write_id_args, :req => req) - end - - def recv_finalize_write_id() - result = receive_message(Finalize_write_id_result) - return result.success unless result.success.nil? - raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'finalize_write_id failed: unknown result') - end - - def heartbeat_write_id(req) - send_heartbeat_write_id(req) - return recv_heartbeat_write_id() - end - - def send_heartbeat_write_id(req) - send_message('heartbeat_write_id', Heartbeat_write_id_args, :req => req) - end - - def recv_heartbeat_write_id() - result = receive_message(Heartbeat_write_id_result) - return result.success unless result.success.nil? - raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'heartbeat_write_id failed: unknown result') - end - - def get_valid_write_ids(req) - send_get_valid_write_ids(req) - return recv_get_valid_write_ids() - end - - def send_get_valid_write_ids(req) - send_message('get_valid_write_ids', Get_valid_write_ids_args, :req => req) - end - - def recv_get_valid_write_ids() - result = receive_message(Get_valid_write_ids_result) - return result.success unless result.success.nil? - raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_valid_write_ids failed: unknown result') - end - end class Processor < ::FacebookService::Processor @@ -4517,34 +4457,6 @@ module ThriftHiveMetastore write_result(result, oprot, 'cache_file_metadata', seqid) end - def process_get_next_write_id(seqid, iprot, oprot) - args = read_args(iprot, Get_next_write_id_args) - result = Get_next_write_id_result.new() - result.success = @handler.get_next_write_id(args.req) - write_result(result, oprot, 'get_next_write_id', seqid) - end - - def process_finalize_write_id(seqid, iprot, oprot) - args = read_args(iprot, Finalize_write_id_args) - result = Finalize_write_id_result.new() - result.success = @handler.finalize_write_id(args.req) - write_result(result, oprot, 'finalize_write_id', seqid) - end - - def process_heartbeat_write_id(seqid, iprot, oprot) - args = read_args(iprot, Heartbeat_write_id_args) - result = Heartbeat_write_id_result.new() - result.success = @handler.heartbeat_write_id(args.req) - write_result(result, oprot, 'heartbeat_write_id', seqid) - end - - def process_get_valid_write_ids(seqid, iprot, oprot) - args = read_args(iprot, Get_valid_write_ids_args) - result = Get_valid_write_ids_result.new() - result.success = @handler.get_valid_write_ids(args.req) - write_result(result, oprot, 'get_valid_write_ids', seqid) - end - end # HELPER FUNCTIONS AND STRUCTURES @@ -10319,133 +10231,5 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end - class Get_next_write_id_args - include ::Thrift::Struct, ::Thrift::Struct_Union - REQ = 1 - - FIELDS = { - REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::GetNextWriteIdRequest} - } - - def struct_fields; FIELDS; end - - def validate - end - - ::Thrift::Struct.generate_accessors self - end - - class Get_next_write_id_result - include ::Thrift::Struct, ::Thrift::Struct_Union - SUCCESS = 0 - - FIELDS = { - SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::GetNextWriteIdResult} - } - - def struct_fields; FIELDS; end - - def validate - end - - ::Thrift::Struct.generate_accessors self - end - - class Finalize_write_id_args - include ::Thrift::Struct, ::Thrift::Struct_Union - REQ = 1 - - FIELDS = { - REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::FinalizeWriteIdRequest} - } - - def struct_fields; FIELDS; end - - def validate - end - - ::Thrift::Struct.generate_accessors self - end - - class Finalize_write_id_result - include ::Thrift::Struct, ::Thrift::Struct_Union - SUCCESS = 0 - - FIELDS = { - SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::FinalizeWriteIdResult} - } - - def struct_fields; FIELDS; end - - def validate - end - - ::Thrift::Struct.generate_accessors self - end - - class Heartbeat_write_id_args - include ::Thrift::Struct, ::Thrift::Struct_Union - REQ = 1 - - FIELDS = { - REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::HeartbeatWriteIdRequest} - } - - def struct_fields; FIELDS; end - - def validate - end - - ::Thrift::Struct.generate_accessors self - end - - class Heartbeat_write_id_result - include ::Thrift::Struct, ::Thrift::Struct_Union - SUCCESS = 0 - - FIELDS = { - SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::HeartbeatWriteIdResult} - } - - def struct_fields; FIELDS; end - - def validate - end - - ::Thrift::Struct.generate_accessors self - end - - class Get_valid_write_ids_args - include ::Thrift::Struct, ::Thrift::Struct_Union - REQ = 1 - - FIELDS = { - REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::GetValidWriteIdsRequest} - } - - def struct_fields; FIELDS; end - - def validate - end - - ::Thrift::Struct.generate_accessors self - end - - class Get_valid_write_ids_result - include ::Thrift::Struct, ::Thrift::Struct_Union - SUCCESS = 0 - - FIELDS = { - SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::GetValidWriteIdsResult} - } - - def struct_fields; FIELDS; end - - def validate - end - - ::Thrift::Struct.generate_accessors self - end - end diff --git metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java index ff3505a..504946a 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java @@ -41,7 +41,6 @@ import java.util.List; import java.util.Map; import java.util.Properties; -import java.util.Random; import java.util.Set; import java.util.Timer; import java.util.concurrent.Callable; @@ -83,7 +82,6 @@ import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.conf.HiveConf.ConfVars; import org.apache.hadoop.hive.io.HdfsUtils; -import org.apache.hadoop.hive.metastore.TableType; import org.apache.hadoop.hive.metastore.api.*; import org.apache.hadoop.hive.metastore.events.AddIndexEvent; import org.apache.hadoop.hive.metastore.events.AddPartitionEvent; @@ -120,7 +118,6 @@ import org.apache.hadoop.hive.metastore.events.PreReadTableEvent; import org.apache.hadoop.hive.metastore.filemeta.OrcFileMetadataHandler; import org.apache.hadoop.hive.metastore.messaging.EventMessage.EventType; -import org.apache.hadoop.hive.metastore.model.MTableWrite; import org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy; import org.apache.hadoop.hive.metastore.txn.TxnStore; import org.apache.hadoop.hive.metastore.txn.TxnUtils; @@ -157,9 +154,7 @@ import static org.apache.commons.lang.StringUtils.join; -import static org.apache.hadoop.hive.metastore.MetaStoreUtils.DEFAULT_DATABASE_COMMENT; -import static org.apache.hadoop.hive.metastore.MetaStoreUtils.DEFAULT_DATABASE_NAME; -import static org.apache.hadoop.hive.metastore.MetaStoreUtils.validateName; + import com.facebook.fb303.FacebookBase; import com.facebook.fb303.fb_status; import com.google.common.annotations.VisibleForTesting; @@ -6915,216 +6910,6 @@ private void throwMetaException(Exception e) throws MetaException, throw newMetaException(e); } } - - private final Random random = new Random(); - @Override - public GetNextWriteIdResult get_next_write_id(GetNextWriteIdRequest req) throws TException { - RawStore ms = getMS(); - String dbName = HiveStringUtils.normalizeIdentifier(req.getDbName()), - tblName = HiveStringUtils.normalizeIdentifier(req.getTblName()); - startFunction("get_next_write_id", " : db=" + dbName + " tbl=" + tblName); - Exception exception = null; - long writeId = -1; - try { - int deadlockTryCount = 10; - int deadlockRetryBackoffMs = 200; - while (deadlockTryCount > 0) { - boolean ok = false; - ms.openTransaction(); - try { - Table tbl = ms.getTable(dbName, tblName); - if (tbl == null) { - throw new NoSuchObjectException(dbName + "." + tblName); - } - writeId = tbl.isSetMmNextWriteId() ? tbl.getMmNextWriteId() : 0; - tbl.setMmNextWriteId(writeId + 1); - ms.alterTable(dbName, tblName, tbl); - - ok = true; - } finally { - if (!ok) { - ms.rollbackTransaction(); - // Exception should propagate; don't override it by breaking out of the loop. - } else { - Boolean commitResult = ms.commitTransactionExpectDeadlock(); - if (commitResult != null) { - if (commitResult) break; // Assume no exception; ok to break out of the loop. - throw new MetaException("Failed to commit"); - } - } - } - LOG.warn("Getting the next write ID failed due to a deadlock; retrying"); - Thread.sleep(random.nextInt(deadlockRetryBackoffMs)); - } - - // Do a separate txn after we have reserved the number. - boolean ok = false; - ms.openTransaction(); - try { - Table tbl = ms.getTable(dbName, tblName); - ms.createTableWrite(tbl, writeId, MM_WRITE_OPEN, System.currentTimeMillis()); - ok = true; - } finally { - commitOrRollback(ms, ok); - } - } catch (Exception e) { - exception = e; - throwMetaException(e); - } finally { - endFunction("get_next_write_id", exception == null, exception, tblName); - } - return new GetNextWriteIdResult(writeId); - } - - @Override - public FinalizeWriteIdResult finalize_write_id(FinalizeWriteIdRequest req) throws TException { - RawStore ms = getMS(); - String dbName = HiveStringUtils.normalizeIdentifier(req.getDbName()), - tblName = HiveStringUtils.normalizeIdentifier(req.getTblName()); - long writeId = req.getWriteId(); - boolean commit = req.isCommit(); - startFunction("finalize_write_id", " : db=" + dbName + " tbl=" + tblName - + " writeId=" + writeId + " commit=" + commit); - Exception ex = null; - try { - boolean ok = false; - ms.openTransaction(); - try { - MTableWrite tw = getActiveTableWrite(ms, dbName, tblName, writeId); - if (tw == null) { - throw new MetaException("Write ID " + writeId + " for " + dbName + "." + tblName - + " does not exist or is not active"); - } - tw.setState(String.valueOf(commit ? MM_WRITE_COMMITTED : MM_WRITE_ABORTED)); - ms.updateTableWrite(tw); - ok = true; - } finally { - commitOrRollback(ms, ok); - } - } catch (Exception e) { - ex = e; - throwMetaException(e); - } finally { - endFunction("finalize_write_id", ex == null, ex, tblName); - } - return new FinalizeWriteIdResult(); - } - - private void commitOrRollback(RawStore ms, boolean ok) throws MetaException { - if (ok) { - if (!ms.commitTransaction()) throw new MetaException("Failed to commit"); - } else { - ms.rollbackTransaction(); - } - } - - @Override - public HeartbeatWriteIdResult heartbeat_write_id(HeartbeatWriteIdRequest req) - throws TException { - RawStore ms = getMS(); - String dbName = HiveStringUtils.normalizeIdentifier(req.getDbName()), - tblName = HiveStringUtils.normalizeIdentifier(req.getTblName()); - long writeId = req.getWriteId(); - startFunction("heartbeat_write_id", " : db=" - + dbName + " tbl=" + tblName + " writeId=" + writeId); - Exception ex = null; - boolean wasAborted = false; - try { - boolean ok = false; - ms.openTransaction(); - try { - MTableWrite tw = getActiveTableWrite(ms, dbName, tblName, writeId); - long absTimeout = HiveConf.getTimeVar(getConf(), - ConfVars.HIVE_METASTORE_MM_ABSOLUTE_TIMEOUT, TimeUnit.MILLISECONDS); - if (tw.getCreated() + absTimeout < System.currentTimeMillis()) { - tw.setState(String.valueOf(MM_WRITE_ABORTED)); - wasAborted = true; - } - tw.setLastHeartbeat(System.currentTimeMillis()); - ms.updateTableWrite(tw); - ok = true; - } finally { - commitOrRollback(ms, ok); - } - } catch (Exception e) { - ex = e; - throwMetaException(e); - } finally { - endFunction("heartbeat_write_id", ex == null, ex, tblName); - } - if (wasAborted) throw new MetaException("The write was aborted due to absolute timeout"); - return new HeartbeatWriteIdResult(); - } - - private MTableWrite getActiveTableWrite(RawStore ms, String dbName, - String tblName, long writeId) throws MetaException { - MTableWrite tw = ms.getTableWrite(dbName, tblName, writeId); - if (tw == null) { - return null; - } - assert tw.getState().length() == 1; - char state = tw.getState().charAt(0); - if (state != MM_WRITE_OPEN) { - throw new MetaException("Invalid write state: " + state); - } - return tw; - } - - @Override - public GetValidWriteIdsResult get_valid_write_ids( - GetValidWriteIdsRequest req) throws TException { - RawStore ms = getMS(); - String dbName = req.getDbName(), tblName = req.getTblName(); - startFunction("get_valid_write_ids", " : db=" + dbName + " tbl=" + tblName); - GetValidWriteIdsResult result = new GetValidWriteIdsResult(); - Exception ex = null; - try { - boolean ok = false; - ms.openTransaction(); - try { - Table tbl = ms.getTable(dbName, tblName); - if (tbl == null) { - throw new InvalidObjectException(dbName + "." + tblName); - } - long nextId = tbl.isSetMmNextWriteId() ? tbl.getMmNextWriteId() : 0; - long watermarkId = tbl.isSetMmWatermarkWriteId() ? tbl.getMmWatermarkWriteId() : -1; - if (nextId > (watermarkId + 1)) { - // There may be some intermediate failed or active writes; get the valid ones. - List ids = ms.getTableWriteIds( - dbName, tblName, watermarkId, nextId, MM_WRITE_COMMITTED); - // TODO: we could optimize here and send the smaller of the lists, and also use ranges - if (!ids.isEmpty()) { - Iterator iter = ids.iterator(); - long oldWatermarkId = watermarkId; - while (iter.hasNext()) { - Long nextWriteId = iter.next(); - if (nextWriteId != watermarkId + 1) break; - ++watermarkId; - } - long removed = watermarkId - oldWatermarkId; - if (removed > 0) { - ids = ids.subList((int)removed, ids.size()); - } - if (!ids.isEmpty()) { - result.setIds(ids); - result.setAreIdsValid(true); - } - } - } - result.setHighWatermarkId(nextId); - result.setLowWatermarkId(watermarkId); - ok = true; - } finally { - commitOrRollback(ms, ok); - } - } catch (Exception e) { - ex = e; - throwMetaException(e); - } finally { - endFunction("get_valid_write_ids", ex == null, ex, tblName); - } - return result; - } } @@ -7598,7 +7383,6 @@ public void run() { startCompactorInitiator(conf); startCompactorWorkers(conf); startCompactorCleaner(conf); - startMmHousekeepingThread(conf); startHouseKeeperService(conf); } catch (Throwable e) { LOG.error("Failure when starting the compactor, compactions may not happen, " + @@ -7640,16 +7424,6 @@ private static void startCompactorCleaner(HiveConf conf) throws Exception { } } - private static void startMmHousekeepingThread(HiveConf conf) throws Exception { - long intervalMs = HiveConf.getTimeVar(conf, - ConfVars.HIVE_METASTORE_MM_THREAD_SCAN_INTERVAL, TimeUnit.MILLISECONDS); - if (intervalMs > 0) { - MetaStoreThread thread = new MmCleanerThread(intervalMs); - initializeAndStartThread(thread, conf); - } - } - - private static MetaStoreThread instantiateThread(String classname) throws Exception { Class c = Class.forName(classname); Object o = c.newInstance(); diff --git metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java index 4912a31..0d8a76a 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -2539,27 +2539,4 @@ public boolean cacheFileMetadata( CacheFileMetadataResult result = client.cache_file_metadata(req); return result.isIsSupported(); } - - @Override - public long getNextTableWriteId(String dbName, String tableName) throws TException { - return client.get_next_write_id(new GetNextWriteIdRequest(dbName, tableName)).getWriteId(); - } - - @Override - public void finalizeTableWrite( - String dbName, String tableName, long writeId, boolean commit) throws TException { - client.finalize_write_id(new FinalizeWriteIdRequest(dbName, tableName, writeId, commit)); - } - - @Override - public void heartbeatTableWrite( - String dbName, String tableName, long writeId) throws TException { - client.heartbeat_write_id(new HeartbeatWriteIdRequest(dbName, tableName, writeId)); - } - - @Override - public GetValidWriteIdsResult getValidWriteIds( - String dbName, String tableName) throws TException { - return client.get_valid_write_ids(new GetValidWriteIdsRequest(dbName, tableName)); - } } diff --git metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java index 82db281..023a289 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java @@ -56,7 +56,6 @@ import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleResponse; import org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalRequest; import org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalResponse; -import org.apache.hadoop.hive.metastore.api.GetValidWriteIdsResult; import org.apache.hadoop.hive.metastore.api.HeartbeatTxnRangeResponse; import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege; import org.apache.hadoop.hive.metastore.api.HiveObjectRef; @@ -1665,13 +1664,4 @@ void addPrimaryKey(List primaryKeyCols) throws void addForeignKey(List foreignKeyCols) throws MetaException, NoSuchObjectException, TException; - - long getNextTableWriteId(String dbName, String tableName) throws TException; - - void heartbeatTableWrite(String dbName, String tableName, long writeId) throws TException; - - void finalizeTableWrite(String dbName, String tableName, long writeId, - boolean commit) throws TException; - - GetValidWriteIdsResult getValidWriteIds(String dbName, String tableName) throws TException; } diff --git metastore/src/java/org/apache/hadoop/hive/metastore/MmCleanerThread.java metastore/src/java/org/apache/hadoop/hive/metastore/MmCleanerThread.java deleted file mode 100644 index d99b0d7..0000000 --- metastore/src/java/org/apache/hadoop/hive/metastore/MmCleanerThread.java +++ /dev/null @@ -1,397 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.hadoop.hive.metastore; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.ListIterator; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.atomic.AtomicBoolean; - -import org.apache.hadoop.fs.FileStatus; -import org.apache.hadoop.fs.FileSystem; -import org.apache.hadoop.fs.Path; -import org.apache.hadoop.hive.common.ValidWriteIds; -import org.apache.hadoop.hive.conf.HiveConf; -import org.apache.hadoop.hive.conf.HiveConf.ConfVars; -import org.apache.hadoop.hive.metastore.RawStore.FullTableName; -import org.apache.hadoop.hive.metastore.api.MetaException; -import org.apache.hadoop.hive.metastore.api.Table; -import org.apache.hadoop.hive.metastore.model.MTableWrite; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.google.common.annotations.VisibleForTesting; -import com.google.common.base.Supplier; - -public class MmCleanerThread extends Thread implements MetaStoreThread { - private final static Logger LOG = LoggerFactory.getLogger(MmCleanerThread.class); - private HiveConf conf; - private int threadId; - private AtomicBoolean stop; - private long intervalMs; - private long heartbeatTimeoutMs, absTimeoutMs, abortedGraceMs; - /** Time override for tests. Only used for MM timestamp logic, not for the thread timing. */ - private Supplier timeOverride = null; - - public MmCleanerThread(long intervalMs) { - this.intervalMs = intervalMs; - } - - @VisibleForTesting - void overrideTime(Supplier timeOverride) { - this.timeOverride = timeOverride; - } - - private long getTimeMs() { - return timeOverride == null ? System.currentTimeMillis() : timeOverride.get(); - } - - @Override - public void setHiveConf(HiveConf conf) { - this.conf = conf; - heartbeatTimeoutMs = HiveConf.getTimeVar( - conf, ConfVars.HIVE_METASTORE_MM_HEARTBEAT_TIMEOUT, TimeUnit.MILLISECONDS); - absTimeoutMs = HiveConf.getTimeVar( - conf, ConfVars.HIVE_METASTORE_MM_ABSOLUTE_TIMEOUT, TimeUnit.MILLISECONDS); - abortedGraceMs = HiveConf.getTimeVar( - conf, ConfVars.HIVE_METASTORE_MM_ABORTED_GRACE_PERIOD, TimeUnit.MILLISECONDS); - if (heartbeatTimeoutMs > absTimeoutMs) { - throw new RuntimeException("Heartbeat timeout " + heartbeatTimeoutMs - + " cannot be larger than the absolute timeout " + absTimeoutMs); - } - } - - @Override - public void setThreadId(int threadId) { - this.threadId = threadId; - } - - @Override - public void init(AtomicBoolean stop, AtomicBoolean looped) throws MetaException { - this.stop = stop; - setPriority(MIN_PRIORITY); - setDaemon(true); - } - - @Override - public void run() { - // Only get RS here, when we are already on the thread. - RawStore rs = getRs(); - while (true) { - if (checkStop()) return; - long endTimeNs = System.nanoTime() + intervalMs * 1000000L; - - runOneIteration(rs); - - if (checkStop()) return; - long waitTimeMs = (endTimeNs - System.nanoTime()) / 1000000L; - if (waitTimeMs <= 0) continue; - try { - Thread.sleep(waitTimeMs); - } catch (InterruptedException e) { - LOG.error("Thread was interrupted and will now exit"); - return; - } - } - } - - private RawStore getRs() { - try { - return RawStoreProxy.getProxy(conf, conf, - conf.getVar(HiveConf.ConfVars.METASTORE_RAW_STORE_IMPL), threadId); - } catch (MetaException e) { - LOG.error("Failed to get RawStore; the thread will now die", e); - throw new RuntimeException(e); - } - } - - private boolean checkStop() { - if (!stop.get()) return false; - LOG.info("Stopping due to an external request"); - return true; - } - - @VisibleForTesting - void runOneIteration(RawStore rs) { - // We only get the names here; we want to get and process each table in a separate DB txn. - List mmTables = null; - try { - mmTables = rs.getAllMmTablesForCleanup(); - } catch (MetaException e) { - LOG.error("Failed to get tables", e); - return; - } - for (FullTableName tableName : mmTables) { - try { - processOneTable(tableName, rs); - } catch (MetaException e) { - LOG.error("Failed to process " + tableName, e); - } - } - } - - private void processOneTable(FullTableName table, RawStore rs) throws MetaException { - // 1. Time out writes that have been running for a while. - // a) Heartbeat timeouts (not enabled right now as heartbeat is not implemented). - // b) Absolute timeouts. - // c) Gaps that have the next ID and the derived absolute timeout. This is a small special - // case that can happen if we increment next ID but fail to insert the write ID record, - // which we do in separate txns to avoid making the conflict-prone increment txn longer. - LOG.info("Processing table " + table); - Table t = rs.getTable(table.dbName, table.tblName); - HashSet removeWriteIds = new HashSet<>(), cleanupOnlyWriteIds = new HashSet<>(); - getWritesThatReadyForCleanUp(t, table, rs, removeWriteIds, cleanupOnlyWriteIds); - - // 2. Delete the aborted writes' files from the FS. - deleteAbortedWriteIdFiles(table, rs, t, removeWriteIds); - deleteAbortedWriteIdFiles(table, rs, t, cleanupOnlyWriteIds); - // removeWriteIds-s now only contains the writes that were fully cleaned up after. - - // 3. Advance the watermark. - advanceWatermark(table, rs, removeWriteIds); - } - - private void getWritesThatReadyForCleanUp(Table t, FullTableName table, RawStore rs, - HashSet removeWriteIds, HashSet cleanupOnlyWriteIds) throws MetaException { - // We will generally ignore errors here. First, we expect some conflicts; second, we will get - // the final view of things after we do (or try, at any rate) all the updates. - long watermarkId = t.isSetMmWatermarkWriteId() ? t.getMmWatermarkWriteId() : -1, - nextWriteId = t.isSetMmNextWriteId() ? t.getMmNextWriteId() : 0; - long now = getTimeMs(), earliestOkHeartbeatMs = now - heartbeatTimeoutMs, - earliestOkCreateMs = now - absTimeoutMs, latestAbortedMs = now - abortedGraceMs; - - List writes = rs.getTableWrites( - table.dbName, table.tblName, watermarkId, nextWriteId); - ListIterator iter = writes.listIterator(writes.size()); - long expectedId = -1, nextCreated = -1; - // We will go in reverse order and add aborted writes for the gaps that have a following - // write ID that would imply that the previous one (created earlier) would have already - // expired, had it been open and not updated. - while (iter.hasPrevious()) { - MTableWrite write = iter.previous(); - addTimedOutMissingWriteIds(rs, table.dbName, table.tblName, write.getWriteId(), - nextCreated, expectedId, earliestOkHeartbeatMs, cleanupOnlyWriteIds, now); - expectedId = write.getWriteId() - 1; - nextCreated = write.getCreated(); - char state = write.getState().charAt(0); - if (state == HiveMetaStore.MM_WRITE_ABORTED) { - if (write.getLastHeartbeat() < latestAbortedMs) { - removeWriteIds.add(write.getWriteId()); - } else { - cleanupOnlyWriteIds.add(write.getWriteId()); - } - } else if (state == HiveMetaStore.MM_WRITE_OPEN && write.getCreated() < earliestOkCreateMs) { - // TODO: also check for heartbeat here. - if (expireTimedOutWriteId(rs, table.dbName, table.tblName, write.getWriteId(), - now, earliestOkCreateMs, earliestOkHeartbeatMs, cleanupOnlyWriteIds)) { - cleanupOnlyWriteIds.add(write.getWriteId()); - } - } - } - addTimedOutMissingWriteIds(rs, table.dbName, table.tblName, watermarkId, - nextCreated, expectedId, earliestOkHeartbeatMs, cleanupOnlyWriteIds, now); - } - - private void advanceWatermark( - FullTableName table, RawStore rs, HashSet cleanedUpWriteIds) { - if (!rs.openTransaction()) { - LOG.error("Cannot open transaction"); - return; - } - boolean success = false; - try { - Table t = rs.getTable(table.dbName, table.tblName); - if (t == null) { - return; - } - long watermarkId = t.getMmWatermarkWriteId(); - List writeIds = rs.getTableWriteIds(table.dbName, table.tblName, watermarkId, - t.getMmNextWriteId(), HiveMetaStore.MM_WRITE_COMMITTED); - long expectedId = watermarkId + 1; - boolean hasGap = false; - Iterator idIter = writeIds.iterator(); - while (idIter.hasNext()) { - long next = idIter.next(); - if (next < expectedId) continue; - while (next > expectedId) { - if (!cleanedUpWriteIds.contains(expectedId)) { - hasGap = true; - break; - } - ++expectedId; - } - if (hasGap) break; - ++expectedId; - } - // Make sure we also advance over the trailing aborted ones. - if (!hasGap) { - while (cleanedUpWriteIds.contains(expectedId)) { - ++expectedId; - } - } - long newWatermarkId = expectedId - 1; - if (newWatermarkId > watermarkId) { - t.setMmWatermarkWriteId(newWatermarkId); - rs.alterTable(table.dbName, table.tblName, t); - rs.deleteTableWrites(table.dbName, table.tblName, -1, expectedId); - } - success = true; - } catch (Exception ex) { - // TODO: should we try a couple times on conflicts? Aborted writes cannot be unaborted. - LOG.error("Failed to advance watermark", ex); - rs.rollbackTransaction(); - } - if (success) { - tryCommit(rs); - } - } - - private void deleteAbortedWriteIdFiles( - FullTableName table, RawStore rs, Table t, HashSet cleanUpWriteIds) { - if (cleanUpWriteIds.isEmpty()) return; - if (t.getPartitionKeysSize() > 0) { - for (String location : rs.getAllPartitionLocations(table.dbName, table.tblName)) { - deleteAbortedWriteIdFiles(location, cleanUpWriteIds); - } - } else { - deleteAbortedWriteIdFiles(t.getSd().getLocation(), cleanUpWriteIds); - } - } - - private void deleteAbortedWriteIdFiles(String location, HashSet abortedWriteIds) { - LOG.info("Looking for " + abortedWriteIds.size() + " aborted write output in " + location); - Path path = new Path(location); - FileSystem fs; - FileStatus[] files; - try { - fs = path.getFileSystem(conf); - if (!fs.exists(path)) { - LOG.warn(path + " does not exist; assuming that the cleanup is not needed."); - return; - } - // TODO# this doesn't account for list bucketing. Do nothing now, ACID will solve all problems. - files = fs.listStatus(path); - } catch (Exception ex) { - LOG.error("Failed to get files for " + path + "; cannot ensure cleanup for any writes"); - abortedWriteIds.clear(); - return; - } - for (FileStatus file : files) { - Path childPath = file.getPath(); - if (!file.isDirectory()) { - LOG.warn("Skipping a non-directory file " + childPath); - continue; - } - Long writeId = ValidWriteIds.extractWriteId(childPath); - if (writeId == null) { - LOG.warn("Skipping an unknown directory " + childPath); - continue; - } - if (!abortedWriteIds.contains(writeId.longValue())) continue; - try { - if (!fs.delete(childPath, true)) throw new IOException("delete returned false"); - } catch (Exception ex) { - LOG.error("Couldn't delete " + childPath + "; not cleaning up " + writeId, ex); - abortedWriteIds.remove(writeId.longValue()); - } - } - } - - private boolean expireTimedOutWriteId(RawStore rs, String dbName, - String tblName, long writeId, long now, long earliestOkCreatedMs, - long earliestOkHeartbeatMs, HashSet cleanupOnlyWriteIds) { - if (!rs.openTransaction()) { - return false; - } - try { - MTableWrite tw = rs.getTableWrite(dbName, tblName, writeId); - if (tw == null) { - // The write have been updated since the time when we thought it has expired. - tryCommit(rs); - return true; - } - char state = tw.getState().charAt(0); - if (state != HiveMetaStore.MM_WRITE_OPEN - || (tw.getCreated() > earliestOkCreatedMs - && tw.getLastHeartbeat() > earliestOkHeartbeatMs)) { - tryCommit(rs); - return true; // The write has been updated since the time when we thought it has expired. - } - tw.setState(String.valueOf(HiveMetaStore.MM_WRITE_ABORTED)); - tw.setLastHeartbeat(now); - rs.updateTableWrite(tw); - } catch (Exception ex) { - LOG.error("Failed to update an expired table write", ex); - rs.rollbackTransaction(); - return false; - } - boolean result = tryCommit(rs); - if (result) { - cleanupOnlyWriteIds.add(writeId); - } - return result; - } - - private boolean tryCommit(RawStore rs) { - try { - return rs.commitTransaction(); - } catch (Exception ex) { - LOG.error("Failed to commit transaction", ex); - return false; - } - } - - private boolean addTimedOutMissingWriteIds(RawStore rs, String dbName, String tblName, - long foundPrevId, long nextCreated, long expectedId, long earliestOkHeartbeatMs, - HashSet cleanupOnlyWriteIds, long now) throws MetaException { - // Assume all missing ones are created at the same time as the next present write ID. - // We also assume missing writes never had any heartbeats. - if (nextCreated >= earliestOkHeartbeatMs || expectedId < 0) return true; - Table t = null; - List localCleanupOnlyWriteIds = new ArrayList<>(); - while (foundPrevId < expectedId) { - if (t == null && !rs.openTransaction()) { - LOG.error("Cannot open transaction; skipping"); - return false; - } - try { - if (t == null) { - t = rs.getTable(dbName, tblName); - } - // We don't need to double check if the write exists; the unique index will cause an error. - rs.createTableWrite(t, expectedId, HiveMetaStore.MM_WRITE_ABORTED, now); - } catch (Exception ex) { - // TODO: don't log conflict exceptions?.. although we barely ever expect them. - LOG.error("Failed to create a missing table write", ex); - rs.rollbackTransaction(); - return false; - } - localCleanupOnlyWriteIds.add(expectedId); - --expectedId; - } - boolean result = (t == null || tryCommit(rs)); - if (result) { - cleanupOnlyWriteIds.addAll(localCleanupOnlyWriteIds); - } - return result; - } -} diff --git metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java index c351ffd..35d876a 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java @@ -146,7 +146,6 @@ import org.apache.hadoop.hive.metastore.model.MTableColumnPrivilege; import org.apache.hadoop.hive.metastore.model.MTableColumnStatistics; import org.apache.hadoop.hive.metastore.model.MTablePrivilege; -import org.apache.hadoop.hive.metastore.model.MTableWrite; import org.apache.hadoop.hive.metastore.model.MType; import org.apache.hadoop.hive.metastore.model.MVersionTable; import org.apache.hadoop.hive.metastore.parser.ExpressionTree; @@ -612,52 +611,15 @@ public boolean openTransaction() { return result; } + /** + * if this is the commit of the first open call then an actual commit is + * called. + * + * @return Always returns true + */ @Override @SuppressWarnings("nls") public boolean commitTransaction() { - if (!startCommitTransaction()) return false; - - openTrasactionCalls--; - debugLog("Commit transaction: count = " + openTrasactionCalls + ", isactive "+ currentTransaction.isActive()); - if ((openTrasactionCalls == 0) && currentTransaction.isActive()) { - transactionStatus = TXN_STATUS.COMMITED; - currentTransaction.commit(); - } - - return true; - } - - @Override - @CanNotRetry - public Boolean commitTransactionExpectDeadlock() { - if (!startCommitTransaction()) return false; - - if (--openTrasactionCalls != 0) { - String msg = "commitTransactionExpectDeadlock cannot be called for a nested transaction"; - LOG.error(msg); - throw new AssertionError(msg); - } - - transactionStatus = TXN_STATUS.COMMITED; - try { - currentTransaction.commit(); - } catch (Exception ex) { - Throwable candidate = ex; - while (candidate != null && !(candidate instanceof SQLException)) { - candidate = candidate.getCause(); - } - if (candidate == null) throw ex; - if (DatabaseProduct.isDeadlock(dbType, (SQLException)candidate)) { - LOG.info("Deadlock exception during commit: " + candidate.getMessage()); - return null; - } - throw ex; - } - - return true; - } - - private boolean startCommitTransaction() { if (TXN_STATUS.ROLLBACK == transactionStatus) { debugLog("Commit transaction: rollback"); return false; @@ -676,6 +638,13 @@ private boolean startCommitTransaction() { LOG.error("Unbalanced calls to open/commit Transaction", e); throw e; } + openTrasactionCalls--; + debugLog("Commit transaction: count = " + openTrasactionCalls + ", isactive "+ currentTransaction.isActive()); + + if ((openTrasactionCalls == 0) && currentTransaction.isActive()) { + transactionStatus = TXN_STATUS.COMMITED; + currentTransaction.commit(); + } return true; } @@ -1129,12 +1098,6 @@ public boolean dropTable(String dbName, String tableName) throws MetaException, pm.deletePersistentAll(partGrants); } - // TODO# temporary; will be removed with ACID. Otherwise, need to do direct delete w/o get. - List mtw = getTableWrites(dbName, tableName, -1, -1); - if (mtw != null && mtw.size() > 0) { - pm.deletePersistentAll(mtw); - } - List partColGrants = listTableAllPartitionColumnGrants(dbName, tableName); if (partColGrants != null && partColGrants.size() > 0) { @@ -1154,11 +1117,6 @@ public boolean dropTable(String dbName, String tableName) throws MetaException, pm.deletePersistentAll(tabConstraints); } - List tableWrites = listAllTableWrites(dbName, tableName); - if (tableWrites != null && tableWrites.size() > 0) { - pm.deletePersistentAll(tableWrites); - } - preDropStorageDescriptor(tbl.getSd()); // then remove the table pm.deletePersistentAll(tbl); @@ -1217,25 +1175,6 @@ public boolean dropTable(String dbName, String tableName) throws MetaException, return mConstraints; } - - private List listAllTableWrites(String dbName, String tableName) { - List result = null; - Query query = null; - boolean success = false; - openTransaction(); - try { - String queryStr = "table.tableName == t1 && table.database.name == t2"; - query = pm.newQuery(MTableWrite.class, queryStr); - query.declareParameters("java.lang.String t1, java.lang.String t2"); - result = new ArrayList<>((List) query.executeWithArray(tableName, dbName)); - pm.retrieveAll(result); - success = true; - } finally { - closeTransaction(success, query); - } - return result; - } - @Override public Table getTable(String dbName, String tableName) throws MetaException { boolean commited = false; @@ -1527,8 +1466,6 @@ private Table convertToTable(MTable mtbl) throws MetaException { convertToFieldSchemas(mtbl.getPartitionKeys()), convertMap(mtbl.getParameters()), mtbl.getViewOriginalText(), mtbl.getViewExpandedText(), tableType); t.setRewriteEnabled(mtbl.isRewriteEnabled()); - t.setMmNextWriteId(mtbl.getMmNextWriteId()); - t.setMmWatermarkWriteId(mtbl.getMmWatermarkWriteId()); return t; } @@ -1567,8 +1504,7 @@ private MTable convertToMTable(Table tbl) throws InvalidObjectException, .getCreateTime(), tbl.getLastAccessTime(), tbl.getRetention(), convertToMFieldSchemas(tbl.getPartitionKeys()), tbl.getParameters(), tbl.getViewOriginalText(), tbl.getViewExpandedText(), tbl.isRewriteEnabled(), - tableType, tbl.isSetMmNextWriteId() ? tbl.getMmNextWriteId() : 0, - tbl.isSetMmWatermarkWriteId() ? tbl.getMmWatermarkWriteId() : -1); + tableType); } private List convertToMFieldSchemas(List keys) { @@ -3310,8 +3246,6 @@ public void alterTable(String dbname, String name, Table newTable) oldt.setLastAccessTime(newt.getLastAccessTime()); oldt.setViewOriginalText(newt.getViewOriginalText()); oldt.setViewExpandedText(newt.getViewExpandedText()); - oldt.setMmNextWriteId(newt.getMmNextWriteId()); - oldt.setMmWatermarkWriteId(newt.getMmWatermarkWriteId()); oldt.setRewriteEnabled(newt.isRewriteEnabled()); // commit the changes @@ -8595,193 +8529,4 @@ void rollbackAndCleanup(boolean success, QueryWrapper queryWrapper) { } } } - - @Override - public void createTableWrite(Table tbl, long writeId, char state, long heartbeat) { - boolean success = false; - openTransaction(); - try { - MTable mtbl = getMTable(tbl.getDbName(), tbl.getTableName()); - MTableWrite tw = new MTableWrite(mtbl, writeId, String.valueOf(state), heartbeat, heartbeat); - pm.makePersistent(tw); - success = true; - } finally { - if (success) { - commitTransaction(); - } else { - rollbackTransaction(); - } - } - } - - @Override - public void updateTableWrite(MTableWrite tw) { - boolean success = false; - openTransaction(); - try { - pm.makePersistent(tw); - success = true; - } finally { - if (success) { - commitTransaction(); - } else { - rollbackTransaction(); - } - } - } - - @Override - public MTableWrite getTableWrite( - String dbName, String tblName, long writeId) throws MetaException { - boolean success = false; - Query query = null; - openTransaction(); - try { - query = pm.newQuery(MTableWrite.class, - "table.tableName == t1 && table.database.name == t2 && writeId == t3"); - query.declareParameters("java.lang.String t1, java.lang.String t2, java.lang.Long t3"); - @SuppressWarnings("unchecked") - List writes = (List) query.execute(tblName, dbName, writeId); - pm.retrieveAll(writes); - success = true; - if (writes == null || writes.isEmpty()) return null; - if (writes.size() > 1) { - throw new MetaException( - "More than one TableWrite for " + dbName + "." + tblName + " and " + writeId); - } - return writes.get(0); - } finally { - closeTransaction(success, query); - } - } - - @Override - public List getTableWriteIds(String dbName, String tblName, - long watermarkId, long nextWriteId, char state) throws MetaException { - boolean success = false; - Query query = null; - openTransaction(); - try { - boolean hasState = (state != '\0'); - query = pm.newQuery("select writeId from org.apache.hadoop.hive.metastore.model.MTableWrite" - + " where table.tableName == t1 && table.database.name == t2 && writeId > t3" - + " && writeId < t4" + (hasState ? " && state == t5" : "")); - query.declareParameters("java.lang.String t1, java.lang.String t2, java.lang.Long t3, " - + "java.lang.Long t4" + (hasState ? ", java.lang.String t5" : "")); - query.setResult("writeId"); - query.setOrdering("writeId asc"); - @SuppressWarnings("unchecked") - List writes = (List) (hasState - ? query.executeWithArray(tblName, dbName, watermarkId, nextWriteId, String.valueOf(state)) - : query.executeWithArray(tblName, dbName, watermarkId, nextWriteId)); - success = true; - return (writes == null) ? new ArrayList() : new ArrayList<>(writes); - } finally { - closeTransaction(success, query); - } - } - - @Override - public List getTableWrites( - String dbName, String tblName, long from, long to) throws MetaException { - boolean success = false; - dbName = HiveStringUtils.normalizeIdentifier(dbName); - tblName = HiveStringUtils.normalizeIdentifier(tblName); - Query query = null; - openTransaction(); - try { - String queryStr = "table.tableName == t1 && table.database.name == t2 && writeId > t3", - argStr = "java.lang.String t1, java.lang.String t2, java.lang.Long t3"; - if (to >= 0) { - queryStr += " && writeId < t4"; - argStr += ", java.lang.Long t4"; - } - query = pm.newQuery(MTableWrite.class, queryStr); - query.declareParameters(argStr); - query.setOrdering("writeId asc"); - @SuppressWarnings("unchecked") - List writes = (List)(to >= 0 - ? query.executeWithArray(tblName, dbName, from, to) - : query.executeWithArray(tblName, dbName, from)); - pm.retrieveAll(writes); - success = true; - return (writes == null || writes.isEmpty()) ? null : new ArrayList<>(writes); - } finally { - closeTransaction(success, query); - } - } - - - @Override - public void deleteTableWrites( - String dbName, String tblName, long from, long to) throws MetaException { - boolean success = false; - Query query = null; - openTransaction(); - try { - query = pm.newQuery(MTableWrite.class, - "table.tableName == t1 && table.database.name == t2 && writeId > t3 && writeId < t4"); - query.declareParameters( - "java.lang.String t1, java.lang.String t2, java.lang.Long t3, java.lang.Long t4"); - query.deletePersistentAll(tblName, dbName, from, to); - success = true; - } finally { - closeTransaction(success, query); - } - } - - @Override - public List getAllMmTablesForCleanup() throws MetaException { - boolean success = false; - Query query = null; - openTransaction(); - try { - // If the table had no MM writes, there's nothing to clean up - query = pm.newQuery(MTable.class, "mmNextWriteId > 0"); - @SuppressWarnings("unchecked") - List tables = (List) query.execute(); - pm.retrieveAll(tables); - ArrayList result = new ArrayList<>(tables.size()); - for (MTable table : tables) { - if (MetaStoreUtils.isInsertOnlyTable(table.getParameters())) { - result.add(new FullTableName(table.getDatabase().getName(), table.getTableName())); - } - } - success = true; - return result; - } finally { - closeTransaction(success, query); - } - } - - @Override - public Collection getAllPartitionLocations(String dbName, String tblName) { - boolean success = false; - Query query = null; - openTransaction(); - try { - String q = "select sd.location from org.apache.hadoop.hive.metastore.model.MPartition" - + " where table.tableName == t1 && table.database.name == t2"; - query = pm.newQuery(); - query.declareParameters("java.lang.String t1, java.lang.String t2"); - @SuppressWarnings("unchecked") - List tables = (List) query.execute(); - pm.retrieveAll(tables); - success = true; - return new ArrayList<>(tables); - } finally { - closeTransaction(success, query); - } - } - - private void closeTransaction(boolean success, Query query) { - if (success) { - commitTransaction(); - } else { - rollbackTransaction(); - } - if (query != null) { - query.closeAll(); - } - } } diff --git metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java index ded978c..9253723 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java @@ -23,13 +23,11 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import java.nio.ByteBuffer; -import java.util.Collection; import java.util.List; import java.util.Map; import org.apache.hadoop.conf.Configurable; import org.apache.hadoop.hive.common.classification.InterfaceStability; -import org.apache.hadoop.hive.metastore.TableType; import org.apache.hadoop.hive.metastore.api.AggrStats; import org.apache.hadoop.hive.metastore.api.ColumnStatistics; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; @@ -62,7 +60,6 @@ import org.apache.hadoop.hive.metastore.api.UnknownDBException; import org.apache.hadoop.hive.metastore.api.UnknownPartitionException; import org.apache.hadoop.hive.metastore.api.UnknownTableException; -import org.apache.hadoop.hive.metastore.model.MTableWrite; import org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy; import org.apache.thrift.TException; @@ -97,15 +94,6 @@ public abstract boolean commitTransaction(); /** - * Commits transaction and detects if the failure to do so is a deadlock or not. - * Must be called on the top level with regard to openTransaction calls; attempting to - * call this after several nested openTransaction calls will throw. - * @return true or false - same as commitTransaction; null in case of deadlock. - */ - @CanNotRetry - public abstract Boolean commitTransactionExpectDeadlock(); - - /** * Rolls back the current transaction if it is active */ @CanNotRetry @@ -719,35 +707,4 @@ void createTableWithConstraints(Table tbl, List primaryKeys, void addPrimaryKeys(List pks) throws InvalidObjectException, MetaException; void addForeignKeys(List fks) throws InvalidObjectException, MetaException; - - void updateTableWrite(MTableWrite tw); - - MTableWrite getTableWrite(String dbName, String tblName, long writeId) throws MetaException; - - void createTableWrite(Table tbl, long writeId, char state, long heartbeat); - - List getTableWriteIds(String dbName, String tblName, long watermarkId, long nextWriteId, char state) throws MetaException; - - - public static final class FullTableName { - public final String dbName, tblName; - - public FullTableName(String dbName, String tblName) { - this.dbName = dbName; - this.tblName = tblName; - } - - @Override - public String toString() { - return dbName + "." + tblName; - } - } - - List getAllMmTablesForCleanup() throws MetaException; - - public List getTableWrites(String dbName, String tblName, long from, long to) throws MetaException; - - Collection getAllPartitionLocations(String dbName, String tblName); - - void deleteTableWrites(String dbName, String tblName, long from, long to) throws MetaException; } diff --git metastore/src/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java metastore/src/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java index c91dd4c..0cde1f0 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java @@ -81,7 +81,6 @@ import org.apache.hadoop.hive.metastore.api.UnknownDBException; import org.apache.hadoop.hive.metastore.api.UnknownPartitionException; import org.apache.hadoop.hive.metastore.api.UnknownTableException; -import org.apache.hadoop.hive.metastore.model.MTableWrite; import org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy; import org.apache.hadoop.hive.serde2.typeinfo.PrimitiveTypeInfo; import org.apache.hadoop.hive.serde2.typeinfo.TypeInfoFactory; @@ -367,11 +366,6 @@ public boolean commitTransaction() { } @Override - public Boolean commitTransactionExpectDeadlock() { - return null; - } - - @Override public void rollbackTransaction() { rawStore.rollbackTransaction(); } @@ -1565,46 +1559,6 @@ public void addForeignKeys(List fks) } @Override - public void updateTableWrite(MTableWrite tw) { - - } - - @Override - public MTableWrite getTableWrite(String dbName, String tblName, long writeId) throws MetaException { - return null; - } - - @Override - public void createTableWrite(Table tbl, long writeId, char state, long heartbeat) { - - } - - @Override - public List getTableWriteIds(String dbName, String tblName, long watermarkId, long nextWriteId, char state) throws MetaException { - return null; - } - - @Override - public List getAllMmTablesForCleanup() throws MetaException { - return null; - } - - @Override - public List getTableWrites(String dbName, String tblName, long from, long to) throws MetaException { - return null; - } - - @Override - public Collection getAllPartitionLocations(String dbName, String tblName) { - return null; - } - - @Override - public void deleteTableWrites(String dbName, String tblName, long from, long to) throws MetaException { - - } - - @Override public Map getAggrColStatsForTablePartitions( String dbName, String tableName) throws MetaException, NoSuchObjectException { diff --git metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseStore.java metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseStore.java index 206196d..ed559f9 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseStore.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseStore.java @@ -22,7 +22,6 @@ import com.google.common.cache.CacheLoader; import org.apache.commons.lang.StringUtils; -import org.apache.hadoop.hive.common.ObjectPair; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.apache.hadoop.conf.Configuration; @@ -36,7 +35,6 @@ import org.apache.hadoop.hive.metastore.RawStore; import org.apache.hadoop.hive.metastore.TableType; import org.apache.hadoop.hive.metastore.Warehouse; -import org.apache.hadoop.hive.metastore.RawStore.CanNotRetry; import org.apache.hadoop.hive.metastore.api.AggrStats; import org.apache.hadoop.hive.metastore.api.ColumnStatistics; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; @@ -75,7 +73,6 @@ import org.apache.hadoop.hive.metastore.api.UnknownTableException; import org.apache.hadoop.hive.metastore.hbase.HBaseFilterPlanUtil.PlanResult; import org.apache.hadoop.hive.metastore.hbase.HBaseFilterPlanUtil.ScanPlan; -import org.apache.hadoop.hive.metastore.model.MTableWrite; import org.apache.hadoop.hive.metastore.parser.ExpressionTree; import org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy; import org.apache.hadoop.hive.serde2.typeinfo.PrimitiveTypeInfo; @@ -134,27 +131,13 @@ public boolean openTransaction() { @Override public boolean commitTransaction() { if (--txnNestLevel == 0) { - commitInternal(); + LOG.debug("Committing HBase transaction"); + getHBase().commit(); } return true; } @Override - @CanNotRetry - public Boolean commitTransactionExpectDeadlock() { - if (--txnNestLevel != 0) { - throw new AssertionError("Cannot be called on a nested transaction"); - } - commitInternal(); - return true; - } - - private void commitInternal() { - LOG.debug("Committing HBase transaction"); - getHBase().commit(); - } - - @Override public void rollbackTransaction() { txnNestLevel = 0; LOG.debug("Rolling back HBase transaction"); @@ -2875,57 +2858,4 @@ public void addForeignKeys(List fks) throws InvalidObjectExceptio // TODO: see if it makes sense to implement this here return null; } - - @Override - public void createTableWrite(Table tbl, long writeId, char state, long heartbeat) { - // TODO: Auto-generated method stub - throw new UnsupportedOperationException(); - } - - @Override - public void updateTableWrite(MTableWrite tw) { - // TODO: Auto-generated method stub - throw new UnsupportedOperationException(); - } - - @Override - public MTableWrite getTableWrite(String dbName, String tblName, long writeId) { - // TODO: Auto-generated method stub - throw new UnsupportedOperationException(); - } - - - @Override - public List getTableWriteIds( - String dbName, String tblName, long watermarkId, long nextWriteId, char state) { - // TODO: Auto-generated method stub - throw new UnsupportedOperationException(); - } - - @Override - public List getAllMmTablesForCleanup() throws MetaException { - // TODO: Auto-generated method stub - throw new UnsupportedOperationException(); - } - - @Override - public List getTableWrites(String dbName, String tblName, - long from, long to) throws MetaException { - // TODO: Auto-generated method stub - throw new UnsupportedOperationException(); - } - - @Override - public Collection getAllPartitionLocations(String dbName, - String tblName) { - // TODO: Auto-generated method stub - throw new UnsupportedOperationException(); - } - - @Override - public void deleteTableWrites(String dbName, String tblName, long from, - long to) throws MetaException { - // TODO: Auto-generated method stub - throw new UnsupportedOperationException(); - } } diff --git metastore/src/model/org/apache/hadoop/hive/metastore/model/MTable.java metastore/src/model/org/apache/hadoop/hive/metastore/model/MTable.java index 18e9cb3..3759348 100644 --- metastore/src/model/org/apache/hadoop/hive/metastore/model/MTable.java +++ metastore/src/model/org/apache/hadoop/hive/metastore/model/MTable.java @@ -36,8 +36,6 @@ private String viewExpandedText; private boolean rewriteEnabled; private String tableType; - private long mmNextWriteId; - private long mmWatermarkWriteId; public MTable() {} @@ -58,8 +56,7 @@ public MTable() {} public MTable(String tableName, MDatabase database, MStorageDescriptor sd, String owner, int createTime, int lastAccessTime, int retention, List partitionKeys, Map parameters, - String viewOriginalText, String viewExpandedText, boolean rewriteEnabled, String tableType, long mmNextWriteId, - long mmWatermarkWriteId) { + String viewOriginalText, String viewExpandedText, boolean rewriteEnabled, String tableType) { this.tableName = tableName; this.database = database; this.sd = sd; @@ -73,8 +70,6 @@ public MTable(String tableName, MDatabase database, MStorageDescriptor sd, Strin this.viewExpandedText = viewExpandedText; this.rewriteEnabled = rewriteEnabled; this.tableType = tableType; - this.mmWatermarkWriteId = mmWatermarkWriteId; - this.mmNextWriteId = mmNextWriteId; } /** @@ -258,20 +253,4 @@ public void setTableType(String tableType) { public String getTableType() { return tableType; } - - public long getMmNextWriteId() { - return mmNextWriteId; - } - - public long getMmWatermarkWriteId() { - return mmWatermarkWriteId; - } - - public void setMmNextWriteId(long mmNextWriteId) { - this.mmNextWriteId = mmNextWriteId; - } - - public void setMmWatermarkWriteId(long mmWatermarkWriteId) { - this.mmWatermarkWriteId = mmWatermarkWriteId; - } } diff --git metastore/src/model/org/apache/hadoop/hive/metastore/model/MTableWrite.java metastore/src/model/org/apache/hadoop/hive/metastore/model/MTableWrite.java deleted file mode 100644 index b7f398a..0000000 --- metastore/src/model/org/apache/hadoop/hive/metastore/model/MTableWrite.java +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.hadoop.hive.metastore.model; - -public class MTableWrite { - private MTable table; - private long writeId; - private String state; - private long lastHeartbeat; - private long created; - - public MTableWrite() {} - - public MTableWrite(MTable table, long writeId, String state, long lastHeartbeat, long created) { - this.table = table; - this.writeId = writeId; - this.state = state; - this.lastHeartbeat = lastHeartbeat; - this.created = created; - } - - public MTable getTable() { - return table; - } - - public long getWriteId() { - return writeId; - } - - public String getState() { - return state; - } - - public long getLastHeartbeat() { - return lastHeartbeat; - } - - public long getCreated() { - return created; - } - - public void setTable(MTable table) { - this.table = table; - } - - public void setWriteId(long writeId) { - this.writeId = writeId; - } - - public void setState(String state) { - this.state = state; - } - - public void setLastHeartbeat(long lastHeartbeat) { - this.lastHeartbeat = lastHeartbeat; - } - - public void setCreated(long created) { - this.created = created; - } -} diff --git metastore/src/model/package.jdo metastore/src/model/package.jdo index 67e2c20..5a91b24 100644 --- metastore/src/model/package.jdo +++ metastore/src/model/package.jdo @@ -185,12 +185,6 @@ - - - - - - @@ -1070,33 +1064,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java index 7760bc7..2d19f6b 100644 --- metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java +++ metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java @@ -20,14 +20,12 @@ import java.nio.ByteBuffer; import java.util.ArrayList; -import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.Map; import org.apache.hadoop.conf.Configurable; import org.apache.hadoop.conf.Configuration; -import org.apache.hadoop.hive.metastore.TableType; import org.apache.hadoop.hive.metastore.api.AggrStats; import org.apache.hadoop.hive.metastore.api.ColumnStatistics; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; @@ -60,7 +58,6 @@ import org.apache.hadoop.hive.metastore.api.UnknownDBException; import org.apache.hadoop.hive.metastore.api.UnknownPartitionException; import org.apache.hadoop.hive.metastore.api.UnknownTableException; -import org.apache.hadoop.hive.metastore.model.MTableWrite; import org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy; import org.apache.thrift.TException; @@ -879,52 +876,4 @@ public void addForeignKeys(List fks) // TODO Auto-generated method stub return null; } - - @Override - public void createTableWrite(Table tbl, long writeId, char state, long heartbeat) { - } - - @Override - public void updateTableWrite(MTableWrite tw) { - - } - - @Override - public MTableWrite getTableWrite(String dbName, String tblName, long writeId) { - return null; - } - - @Override - @CanNotRetry - public Boolean commitTransactionExpectDeadlock() { - return null; - } - - @Override - public List getTableWriteIds( - String dbName, String tblName, long watermarkId, long nextWriteId, char state) { - return null; - } - - @Override - public List getAllMmTablesForCleanup() throws MetaException { - return null; - } - - @Override - public List getTableWrites(String dbName, String tblName, - long from, long to) throws MetaException { - return null; - } - - @Override - public Collection getAllPartitionLocations(String dbName, - String tblName) { - return null; - } - - @Override - public void deleteTableWrites(String dbName, String tblName, long from, - long to) throws MetaException { - } } diff --git metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java index df05af1..bcdbedb 100644 --- metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java +++ metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java @@ -19,7 +19,6 @@ package org.apache.hadoop.hive.metastore; import java.nio.ByteBuffer; -import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.Map; @@ -28,7 +27,6 @@ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hive.conf.HiveConf; -import org.apache.hadoop.hive.metastore.TableType; import org.apache.hadoop.hive.metastore.api.AggrStats; import org.apache.hadoop.hive.metastore.api.ColumnStatistics; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; @@ -61,7 +59,6 @@ import org.apache.hadoop.hive.metastore.api.UnknownDBException; import org.apache.hadoop.hive.metastore.api.UnknownPartitionException; import org.apache.hadoop.hive.metastore.api.UnknownTableException; -import org.apache.hadoop.hive.metastore.model.MTableWrite; import org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy; import org.apache.thrift.TException; @@ -111,12 +108,6 @@ public boolean commitTransaction() { } @Override - @CanNotRetry - public Boolean commitTransactionExpectDeadlock() { - return false; - } - - @Override public void rollbackTransaction() { } @@ -898,47 +889,6 @@ public void addForeignKeys(List fks) // TODO Auto-generated method stub return null; } - - @Override - public void createTableWrite(Table tbl, long writeId, char state, long heartbeat) { - } - - @Override - public void updateTableWrite(MTableWrite tw) { - } - - @Override - public MTableWrite getTableWrite(String dbName, String tblName, long writeId) { - return null; - } - - @Override - public List getTableWriteIds( - String dbName, String tblName, long watermarkId, long nextWriteId, char state) { - return null; - } - - @Override - public List getAllMmTablesForCleanup() throws MetaException { - return null; - } - - @Override - public List getTableWrites(String dbName, String tblName, - long from, long to) throws MetaException { - return null; - } - - @Override - public Collection getAllPartitionLocations(String dbName, - String tblName) { - return null; - } - - @Override - public void deleteTableWrites(String dbName, String tblName, long from, - long to) throws MetaException { - } } diff --git metastore/src/test/org/apache/hadoop/hive/metastore/TestObjectStore.java metastore/src/test/org/apache/hadoop/hive/metastore/TestObjectStore.java index 42bc8b2..e0302fb 100644 --- metastore/src/test/org/apache/hadoop/hive/metastore/TestObjectStore.java +++ metastore/src/test/org/apache/hadoop/hive/metastore/TestObjectStore.java @@ -17,22 +17,18 @@ */ package org.apache.hadoop.hive.metastore; -import static org.junit.Assert.*; - import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Set; -import org.apache.hadoop.fs.Path; import org.apache.hadoop.hive.common.metrics.common.MetricsConstant; import org.apache.hadoop.hive.common.metrics.common.MetricsFactory; import org.apache.hadoop.hive.common.metrics.metrics2.CodahaleMetrics; import org.apache.hadoop.hive.common.metrics.metrics2.MetricsReporting; import org.apache.hadoop.hive.common.metrics.MetricsTestUtils; import org.apache.hadoop.hive.conf.HiveConf; -import org.apache.hadoop.hive.conf.HiveConf.ConfVars; import org.apache.hadoop.hive.metastore.api.CurrentNotificationEventId; import org.apache.hadoop.hive.metastore.api.Database; import org.apache.hadoop.hive.metastore.api.FieldSchema; @@ -54,14 +50,10 @@ import org.apache.hadoop.hive.metastore.api.SerDeInfo; import org.apache.hadoop.hive.metastore.api.StorageDescriptor; import org.apache.hadoop.hive.metastore.api.Table; -import org.apache.hadoop.hive.metastore.api.hive_metastoreConstants; import org.apache.hadoop.hive.metastore.messaging.EventMessage; -import org.apache.hadoop.hive.metastore.model.MTableWrite; import org.apache.hadoop.hive.ql.io.sarg.SearchArgument; import org.apache.hadoop.hive.serde.serdeConstants; import org.apache.hadoop.hive.serde2.typeinfo.PrimitiveTypeInfo; -import org.apache.hive.common.util.MockFileSystem; -import org.apache.hive.common.util.MockFileSystem.MockFile; import org.junit.After; import org.junit.Assert; import org.junit.Before; @@ -245,151 +237,6 @@ public void testTableOps() throws MetaException, InvalidObjectException, NoSuchO objectStore.dropDatabase(DB1); } - - /** - * Test table operations - */ - @Test - public void testMmCleaner() throws Exception { - HiveConf conf = new HiveConf(); - conf.set(ConfVars.HIVE_METASTORE_MM_HEARTBEAT_TIMEOUT.varname, "3ms"); - conf.set(ConfVars.HIVE_METASTORE_MM_ABSOLUTE_TIMEOUT.varname, "20ms"); - conf.set(ConfVars.HIVE_METASTORE_MM_ABORTED_GRACE_PERIOD.varname, "5ms"); - conf.set("fs.mock.impl", MockFileSystem.class.getName()); - - MockFileSystem mfs = (MockFileSystem)(new Path("mock:///").getFileSystem(conf)); - mfs.clear(); - mfs.allowDelete = true; - // Don't add the files just yet... - MockFile[] files = new MockFile[9]; - for (int i = 0; i < files.length; ++i) { - files[i] = new MockFile("mock:/foo/mm_" + i + "/1", 0, new byte[0]); - } - - LongSupplier time = new LongSupplier(); - - MmCleanerThread mct = new MmCleanerThread(0); - mct.setHiveConf(conf); - mct.overrideTime(time); - - Database db1 = new Database(DB1, "description", "locationurl", null); - objectStore.createDatabase(db1); - StorageDescriptor sd = createFakeSd("mock:/foo"); - HashMap params = new HashMap(); - params.put("EXTERNAL", "false"); - params.put(hive_metastoreConstants.TABLE_IS_TRANSACTIONAL, "true"); - params.put(hive_metastoreConstants.TABLE_TRANSACTIONAL_PROPERTIES, "insert_only"); - Table tbl = new Table(TABLE1, DB1, "owner", 1, 2, 3, sd, - null, params, null, null, "MANAGED_TABLE"); - objectStore.createTable(tbl); - - // Add write #0 so the watermark wouldn't advance; skip write #1, add #2 at 0, skip #3 - createCompleteTableWrite(mfs, files, 0, time, tbl, HiveMetaStore.MM_WRITE_OPEN); - mfs.addFile(files[1]); - createCompleteTableWrite(mfs, files, 2, time, tbl, HiveMetaStore.MM_WRITE_OPEN); - mfs.addFile(files[3]); - tbl.setMmNextWriteId(4); - objectStore.alterTable(DB1, TABLE1, tbl); - - mct.runOneIteration(objectStore); - List writes = getAbortedWrites(); - assertEquals(0, writes.size()); // Missing write is not aborted before timeout. - time.value = 4; // Advance time. - mct.runOneIteration(objectStore); - writes = getAbortedWrites(); - assertEquals(1, writes.size()); // Missing write is aborted after timeout. - assertEquals(1L, writes.get(0).longValue()); - checkDeletedSet(files, 1); - // However, write #3 was not aborted as we cannot determine when it will time out. - createCompleteTableWrite(mfs, files, 4, time, tbl, HiveMetaStore.MM_WRITE_OPEN); - time.value = 8; - // It will now be aborted, since we have a following write. - mct.runOneIteration(objectStore); - writes = getAbortedWrites(); - assertEquals(2, writes.size()); - assertTrue(writes.contains(Long.valueOf(3))); - checkDeletedSet(files, 1, 3); - - // Commit #0 and #2 and confirm that the watermark advances. - // It will only advance over #1, since #3 was aborted at 8 and grace period has not passed. - time.value = 10; - MTableWrite tw = objectStore.getTableWrite(DB1, TABLE1, 0); - tw.setState(String.valueOf(HiveMetaStore.MM_WRITE_COMMITTED)); - objectStore.updateTableWrite(tw); - tw = objectStore.getTableWrite(DB1, TABLE1, 2); - tw.setState(String.valueOf(HiveMetaStore.MM_WRITE_COMMITTED)); - objectStore.updateTableWrite(tw); - mct.runOneIteration(objectStore); - writes = getAbortedWrites(); - assertEquals(1, writes.size()); - assertEquals(3L, writes.get(0).longValue()); - tbl = objectStore.getTable(DB1, TABLE1); - assertEquals(2L, tbl.getMmWatermarkWriteId()); - - // Now advance the time and see that watermark also advances over #3. - time.value = 16; - mct.runOneIteration(objectStore); - writes = getAbortedWrites(); - assertEquals(0, writes.size()); - tbl = objectStore.getTable(DB1, TABLE1); - assertEquals(3L, tbl.getMmWatermarkWriteId()); - - // Check that the open write gets aborted after some time; then the watermark advances. - time.value = 25; - mct.runOneIteration(objectStore); - writes = getAbortedWrites(); - assertEquals(1, writes.size()); - assertEquals(4L, writes.get(0).longValue()); - time.value = 31; - mct.runOneIteration(objectStore); - tbl = objectStore.getTable(DB1, TABLE1); - assertEquals(4L, tbl.getMmWatermarkWriteId()); - checkDeletedSet(files, 1, 3, 4); // The other two should still be deleted. - - // Finally check that we cannot advance watermark if cleanup fails for some file. - createCompleteTableWrite(mfs, files, 5, time, tbl, HiveMetaStore.MM_WRITE_ABORTED); - createCompleteTableWrite(mfs, files, 6, time, tbl, HiveMetaStore.MM_WRITE_ABORTED); - createCompleteTableWrite(mfs, files, 7, time, tbl, HiveMetaStore.MM_WRITE_COMMITTED); - createCompleteTableWrite(mfs, files, 8, time, tbl, HiveMetaStore.MM_WRITE_ABORTED); - time.value = 37; // Skip the grace period. - files[6].cannotDelete = true; - mct.runOneIteration(objectStore); - checkDeletedSet(files, 1, 3, 4, 5, 8); // The other two should still be deleted. - tbl = objectStore.getTable(DB1, TABLE1); - assertEquals(5L, tbl.getMmWatermarkWriteId()); // Watermark only goes up to 5. - files[6].cannotDelete = false; - mct.runOneIteration(objectStore); - checkDeletedSet(files, 1, 3, 4, 5, 6, 8); - tbl = objectStore.getTable(DB1, TABLE1); - assertEquals(8L, tbl.getMmWatermarkWriteId()); // Now it advances all the way. - - objectStore.dropTable(DB1, TABLE1); - objectStore.dropDatabase(DB1); - } - - private void createCompleteTableWrite(MockFileSystem mfs, MockFile[] files, - int id, LongSupplier time, Table tbl, char state) throws MetaException, InvalidObjectException { - objectStore.createTableWrite(tbl, id, state, time.value); - mfs.addFile(files[id]); - tbl.setMmNextWriteId(id + 1); - objectStore.alterTable(DB1, TABLE1, tbl); - } - - private void checkDeletedSet(MockFile[] files, int... deleted) { - for (int id : deleted) { - assertTrue("File " + id + " not deleted", files[id].isDeleted); - } - int count = 0; - for (MockFile file : files) { - if (file.isDeleted) ++count; - } - assertEquals(deleted.length, count); // Make sure nothing else is deleted. - } - - private List getAbortedWrites() throws MetaException { - return objectStore.getTableWriteIds(DB1, TABLE1, -1, 10, HiveMetaStore.MM_WRITE_ABORTED); - } - private StorageDescriptor createFakeSd(String location) { return new StorageDescriptor(null, location, null, null, false, 0, new SerDeInfo("SerDeName", "serializationLib", null), null, null, null); diff --git ql/src/java/org/apache/hadoop/hive/ql/Driver.java ql/src/java/org/apache/hadoop/hive/ql/Driver.java index 7b74bd5..28fe420 100644 --- ql/src/java/org/apache/hadoop/hive/ql/Driver.java +++ ql/src/java/org/apache/hadoop/hive/ql/Driver.java @@ -39,12 +39,10 @@ import com.google.common.annotations.VisibleForTesting; import org.apache.commons.lang.StringUtils; -import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FSDataInputStream; import org.apache.hadoop.hive.common.JavaUtils; import org.apache.hadoop.hive.common.ValidReadTxnList; import org.apache.hadoop.hive.common.ValidTxnList; -import org.apache.hadoop.hive.common.ValidWriteIds; import org.apache.hadoop.hive.common.metrics.common.Metrics; import org.apache.hadoop.hive.common.metrics.common.MetricsConstant; import org.apache.hadoop.hive.common.metrics.common.MetricsFactory; @@ -52,11 +50,8 @@ import org.apache.hadoop.hive.conf.HiveConf.ConfVars; import org.apache.hadoop.hive.conf.HiveVariableSource; import org.apache.hadoop.hive.conf.VariableSubstitution; -import org.apache.hadoop.hive.metastore.LockComponentBuilder; import org.apache.hadoop.hive.metastore.MetaStoreUtils; -import org.apache.hadoop.hive.metastore.api.DataOperationType; import org.apache.hadoop.hive.metastore.api.FieldSchema; -import org.apache.hadoop.hive.metastore.api.LockComponent; import org.apache.hadoop.hive.metastore.api.Schema; import org.apache.hadoop.hive.ql.exec.ConditionalTask; import org.apache.hadoop.hive.ql.exec.ExplainTask; @@ -78,7 +73,6 @@ import org.apache.hadoop.hive.ql.hooks.PreExecute; import org.apache.hadoop.hive.ql.hooks.ReadEntity; import org.apache.hadoop.hive.ql.hooks.WriteEntity; -import org.apache.hadoop.hive.ql.io.AcidUtils; import org.apache.hadoop.hive.ql.lockmgr.HiveLock; import org.apache.hadoop.hive.ql.lockmgr.HiveTxnManager; import org.apache.hadoop.hive.ql.lockmgr.LockException; @@ -1540,13 +1534,6 @@ private CommandProcessorResponse runInternal(String command, boolean alreadyComp return rollback(createProcessorResponse(ret)); } } - - try { - acquireWriteIds(plan, conf); - } catch (HiveException e) { - return handleHiveException(e, 1); - } - ret = execute(true); if (ret != 0) { //if needRequireLock is false, the release here will do nothing because there is no lock @@ -1608,48 +1595,6 @@ else if(plan.getOperation() == HiveOperation.ROLLBACK) { } } - - private static void acquireWriteIds(QueryPlan plan, HiveConf conf) throws HiveException { - // Output IDs are put directly into FileSinkDesc; here, we only need to take care of inputs. - Configuration fetchConf = null; - if (plan.getFetchTask() != null) { - fetchConf = plan.getFetchTask().getFetchConf(); - } - for (ReadEntity input : plan.getInputs()) { - Utilities.LOG14535.debug("Looking at " + input); - Table t = extractTable(input); - if (t == null) continue; - Utilities.LOG14535.info("Checking " + t.getTableName() + " for being a MM table: " + t.getParameters()); - if (!MetaStoreUtils.isInsertOnlyTable(t.getParameters())) { - ValidWriteIds.clearConf(conf, t.getDbName(), t.getTableName()); - if (fetchConf != null) { - ValidWriteIds.clearConf(fetchConf, t.getDbName(), t.getTableName()); - } - continue; - } - ValidWriteIds ids = Hive.get().getValidWriteIdsForTable(t.getDbName(), t.getTableName()); - ids.addToConf(conf, t.getDbName(), t.getTableName()); - if (fetchConf != null) { - ids.addToConf(fetchConf, t.getDbName(), t.getTableName()); - } - } - } - - private static Table extractTable(ReadEntity input) { - Table t = null; - switch (input.getType()) { - case TABLE: - t = input.getTable(); - break; - case DUMMYPARTITION: - case PARTITION: - t = input.getPartition().getTable(); - break; - default: return null; - } - return (t != null && !t.isTemporary()) ? t : null; - } - private CommandProcessorResponse rollback(CommandProcessorResponse cpr) { //console.printError(cpr.toString()); try { diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/AbstractFileMergeOperator.java ql/src/java/org/apache/hadoop/hive/ql/exec/AbstractFileMergeOperator.java index 1315b99..7ef4f49 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/AbstractFileMergeOperator.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/AbstractFileMergeOperator.java @@ -89,7 +89,7 @@ public void initializeOp(Configuration hconf) throws HiveException { .isListBucketingAlterTableConcatenate(); listBucketingDepth = conf.getListBucketingDepth(); Path specPath = conf.getOutputPath(); - isMmTable = conf.getMmWriteId() != null; + isMmTable = conf.getTxnId() != null; if (isMmTable) { updatePaths(specPath, null); } else { @@ -246,7 +246,7 @@ public void closeOp(boolean abort) throws HiveException { // There's always just one file that we have merged. // The union/DP/etc. should already be account for in the path. Utilities.writeMmCommitManifest(Lists.newArrayList(outPath), - tmpPath.getParent(), fs, taskId, conf.getMmWriteId(), null); + tmpPath.getParent(), fs, taskId, conf.getTxnId(), conf.getStmtId(), null); LOG.info("Merged into " + finalPath + "(" + fss.getLen() + " bytes)."); } } @@ -280,7 +280,8 @@ public void jobCloseOp(Configuration hconf, boolean success) try { Path outputDir = conf.getOutputPath(); FileSystem fs = outputDir.getFileSystem(hconf); - Long mmWriteId = conf.getMmWriteId(); + Long mmWriteId = conf.getTxnId(); + int stmtId = conf.getStmtId(); if (mmWriteId == null) { Path backupPath = backupOutputPath(fs, outputDir); Utilities.mvFileToFinalPath( @@ -297,7 +298,7 @@ public void jobCloseOp(Configuration hconf, boolean success) // We don't expect missing buckets from mere (actually there should be no buckets), // so just pass null as bucketing context. Union suffix should also be accounted for. Utilities.handleMmTableFinalPath(outputDir.getParent(), null, hconf, success, - dpLevels, lbLevels, null, mmWriteId, reporter, false); + dpLevels, lbLevels, null, mmWriteId, stmtId, reporter, false); } } catch (IOException e) { diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/CopyTask.java ql/src/java/org/apache/hadoop/hive/ql/exec/CopyTask.java index 82f6074..1f223f5 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/CopyTask.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/CopyTask.java @@ -18,12 +18,12 @@ package org.apache.hadoop.hive.ql.exec; -import java.io.FileNotFoundException; import java.io.IOException; import java.io.Serializable; import java.util.ArrayList; import java.util.List; +import org.apache.hadoop.hive.common.JavaUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.apache.hadoop.fs.FileStatus; @@ -31,10 +31,7 @@ import org.apache.hadoop.fs.Path; import org.apache.hadoop.fs.PathFilter; import org.apache.hadoop.hive.common.FileUtils; -import org.apache.hadoop.hive.common.ValidWriteIds; -import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.ql.DriverContext; -import org.apache.hadoop.hive.ql.parse.LoadSemanticAnalyzer; import org.apache.hadoop.hive.ql.plan.CopyWork; import org.apache.hadoop.hive.ql.plan.api.StageType; import org.apache.hadoop.util.StringUtils; @@ -112,7 +109,7 @@ protected int copyOnePath(Path fromPath, Path toPath) { if (!fs.exists(path)) return null; if (!isSourceMm) return matchFilesOneDir(fs, path, null); // TODO: this doesn't handle list bucketing properly. Does the original exim do that? - FileStatus[] mmDirs = fs.listStatus(path, new ValidWriteIds.AnyIdDirFilter()); + FileStatus[] mmDirs = fs.listStatus(path, new JavaUtils.AnyIdDirFilter()); if (mmDirs == null || mmDirs.length == 0) return null; List allFiles = new ArrayList(); for (FileStatus mmDir : mmDirs) { diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java index 81e4744..a2186cc 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java @@ -57,8 +57,10 @@ import org.apache.hadoop.fs.FsShell; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hive.common.FileUtils; +import org.apache.hadoop.hive.common.JavaUtils; import org.apache.hadoop.hive.common.StatsSetupConst; -import org.apache.hadoop.hive.common.ValidWriteIds; +import org.apache.hadoop.hive.common.ValidReadTxnList; +import org.apache.hadoop.hive.common.ValidTxnList; import org.apache.hadoop.hive.common.type.HiveDecimal; import org.apache.hadoop.hive.conf.Constants; import org.apache.hadoop.hive.conf.HiveConf; @@ -98,7 +100,6 @@ import org.apache.hadoop.hive.metastore.api.SkewedInfo; import org.apache.hadoop.hive.metastore.api.StorageDescriptor; import org.apache.hadoop.hive.metastore.api.TxnInfo; -import org.apache.hadoop.hive.metastore.api.hive_metastoreConstants; import org.apache.hadoop.hive.metastore.txn.TxnStore; import org.apache.hadoop.hive.ql.CompilationOpContext; import org.apache.hadoop.hive.ql.Context; @@ -4035,7 +4036,8 @@ private static StorageDescriptor retrieveStorageDescriptor(Table tbl, Partition + " to false for this query if you want to force the conversion."); } Hive db = getHive(); - ValidWriteIds ids = db.getValidWriteIdsForTable(tbl.getDbName(), tbl.getTableName()); + String value = conf.get(ValidTxnList.VALID_TXNS_KEY); + ValidTxnList validTxnList = value == null ? new ValidReadTxnList() : new ValidReadTxnList(value); if (tbl.getPartitionKeys().size() > 0) { PartitionIterable parts = new PartitionIterable(db, tbl, null, HiveConf.getIntVar(conf, ConfVars.METASTORE_BATCH_RETRIEVE_MAX)); @@ -4043,15 +4045,15 @@ private static StorageDescriptor retrieveStorageDescriptor(Table tbl, Partition while (partIter.hasNext()) { Partition part = partIter.next(); checkMmLb(part); - handleRemoveMm(part.getDataLocation(), ids, allMmDirs); + handleRemoveMm(part.getDataLocation(), validTxnList, allMmDirs); } } else { checkMmLb(tbl); - handleRemoveMm(tbl.getDataLocation(), ids, allMmDirs); + handleRemoveMm(tbl.getDataLocation(), validTxnList, allMmDirs); } List targetPaths = new ArrayList<>(allMmDirs.size()); List targetPrefix = new ArrayList<>(allMmDirs.size()); - int prefixLen = ValidWriteIds.MM_PREFIX.length(); + int prefixLen = JavaUtils.DELTA_PREFIX.length(); for (int i = 0; i < allMmDirs.size(); ++i) { Path src = allMmDirs.get(i); Path tgt = src.getParent(); @@ -4082,7 +4084,7 @@ private void checkMmLb(Partition part) throws HiveException { } private void handleRemoveMm( - Path path, ValidWriteIds ids, List result) throws HiveException { + Path path, ValidTxnList validTxnList, List result) throws HiveException { // Note: doesn't take LB into account; that is not presently supported here (throws above). try { FileSystem fs = path.getFileSystem(conf); @@ -4092,10 +4094,10 @@ private void handleRemoveMm( ensureDelete(fs, childPath, "a non-directory file"); continue; } - Long writeId = ValidWriteIds.extractWriteId(childPath); + Long writeId = JavaUtils.extractTxnId(childPath); if (writeId == null) { ensureDelete(fs, childPath, "an unknown directory"); - } else if (!ids.isValid(writeId)) { + } else if (!validTxnList.isTxnValid(writeId)) { // Assume no concurrent active writes - we rely on locks here. We could check and fail. ensureDelete(fs, childPath, "an uncommitted directory"); } else { @@ -4122,9 +4124,19 @@ private static void ensureDelete(FileSystem fs, Path path, String what) throws I // We will move all the files in the table/partition directories into the first MM // directory, then commit the first write ID. List srcs = new ArrayList<>(), tgts = new ArrayList<>(); + long mmWriteId = 0; + try { + HiveTxnManager txnManager = SessionState.get().getTxnMgr(); + mmWriteId = txnManager.openTxn(new Context(conf), conf.getUser()); + txnManager.commitTxn(); + } catch (Exception e) { + String errorMessage = "FAILED: Error in acquiring locks: " + e.getMessage(); + console.printError(errorMessage, "\n" + + org.apache.hadoop.util.StringUtils.stringifyException(e)); + } + int stmtId = 0; + String mmDir = AcidUtils.deltaSubdir(mmWriteId, mmWriteId, stmtId); Hive db = getHive(); - long mmWriteId = db.getNextTableWriteId(tbl.getDbName(), tbl.getTableName()); - String mmDir = ValidWriteIds.getMmFilePrefix(mmWriteId); if (tbl.getPartitionKeys().size() > 0) { PartitionIterable parts = new PartitionIterable(db, tbl, null, HiveConf.getIntVar(conf, ConfVars.METASTORE_BATCH_RETRIEVE_MAX)); @@ -4147,15 +4159,7 @@ private static void ensureDelete(FileSystem fs, Path path, String what) throws I // Don't set inputs and outputs - the locks have already been taken so it's pointless. MoveWork mw = new MoveWork(null, null, null, null, false); mw.setMultiFilesDesc(new LoadMultiFilesDesc(srcs, tgts, true, null, null)); - ImportCommitWork icw = new ImportCommitWork(tbl.getDbName(), tbl.getTableName(), mmWriteId); - // TODO# this is hacky and will be gone with ACID. The problem is getting the write ID above - // modifies the table, but the table object above is preserved and modified without - // getting this change, so saving it will overwrite write ID. Ideally, when we save - // only specific fields, and not overwrite write ID every time we alter table. - // There's probably some way in DN to achieve that, but for now let's just update the - // original object here. This is safe due to DDL lock and the fact that converting - // the table to MM here from non-MM should mean no concurrent write ID updates. - tbl.setMmNextWriteId(mmWriteId + 1); + ImportCommitWork icw = new ImportCommitWork(tbl.getDbName(), tbl.getTableName(), mmWriteId, stmtId); Task mv = TaskFactory.get(mw, conf), ic = TaskFactory.get(icw, conf); mv.addDependentTask(ic); return Lists.>newArrayList(mv); @@ -4568,20 +4572,6 @@ private int createTable(Hive db, CreateTableDesc crtTbl) throws HiveException { Long mmWriteId = crtTbl.getInitialMmWriteId(); if (crtTbl.isCTAS() || mmWriteId != null) { Table createdTable = db.getTable(tbl.getDbName(), tbl.getTableName()); - if (mmWriteId != null) { - // TODO# this would be retrieved via ACID before the query runs; for now we rely on it - // being zero at start; we can't create a write ID before we create the table here. - long initialWriteId = db.getNextTableWriteId(tbl.getDbName(), tbl.getTableName()); - if (initialWriteId != mmWriteId) { - throw new HiveException("Initial write ID mismatch - expected " + mmWriteId - + " but got " + initialWriteId); - } - // CTAS create the table on a directory that already exists; import creates the table - // first (in parallel with copies?), then commits after all the loads. - if (crtTbl.isCTAS()) { - db.commitMmTableWrite(tbl, initialWriteId); - } - } if (crtTbl.isCTAS()) { DataContainer dc = new DataContainer(createdTable.getTTable()); SessionState.get().getLineageState().setLineage( diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/FetchOperator.java ql/src/java/org/apache/hadoop/hive/ql/exec/FetchOperator.java index a3e4c9f..40330fa 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/FetchOperator.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/FetchOperator.java @@ -36,10 +36,9 @@ import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hive.common.FileUtils; +import org.apache.hadoop.hive.common.ValidReadTxnList; import org.apache.hadoop.hive.common.ValidTxnList; -import org.apache.hadoop.hive.common.ValidWriteIds; import org.apache.hadoop.hive.conf.HiveConf; -import org.apache.hadoop.hive.metastore.MetaStoreUtils; import org.apache.hadoop.hive.ql.exec.mr.ExecMapperContext; import org.apache.hadoop.hive.ql.io.AcidUtils; import org.apache.hadoop.hive.ql.io.HiveContextAwareRecordReader; @@ -129,7 +128,6 @@ private transient StructObjectInspector outputOI; private transient Object[] row; - private transient Map writeIdMap; public FetchOperator(FetchWork work, JobConf job) throws HiveException { this(work, job, null, null); @@ -276,7 +274,7 @@ private boolean getNextPath() throws Exception { } FileSystem fs = currPath.getFileSystem(job); if (fs.exists(currPath)) { - if (extractWriteIdsForCurrentTable() != null) { + if (extractValidTxnList() != null) { return true; } for (FileStatus fStat : listStatusUnderPath(fs, currPath)) { @@ -407,12 +405,12 @@ private String processCurrPathForMmWriteIds(InputFormat inputFormat) throws IOEx if (inputFormat instanceof HiveInputFormat) { return StringUtils.escapeString(currPath.toString()); // No need to process here. } - ValidWriteIds ids = extractWriteIdsForCurrentTable(); - if (ids != null) { - Utilities.LOG14535.info("Observing " + currDesc.getTableName() + ": " + ids); + ValidTxnList validTxnList = extractValidTxnList(); + if (validTxnList != null) { + Utilities.LOG14535.info("Observing " + currDesc.getTableName() + ": " + validTxnList); } - Path[] dirs = HiveInputFormat.processPathsForMmRead(Lists.newArrayList(currPath), job, ids); + Path[] dirs = HiveInputFormat.processPathsForMmRead(Lists.newArrayList(currPath), job, validTxnList); if (dirs == null || dirs.length == 0) { return null; // No valid inputs. This condition is logged inside the call. } @@ -423,11 +421,16 @@ private String processCurrPathForMmWriteIds(InputFormat inputFormat) throws IOEx return str.toString(); } - private ValidWriteIds extractWriteIdsForCurrentTable() { - if (writeIdMap == null) { - writeIdMap = new HashMap(); + private ValidTxnList extractValidTxnList() { + ValidTxnList validTxnList; + if (org.apache.commons.lang.StringUtils.isBlank(currDesc.getTableName())) { + validTxnList = null; // i.e. not fetching from a table directly but from a temp location + } else { + String txnString = job.get(ValidTxnList.VALID_TXNS_KEY); + validTxnList = txnString == null ? new ValidReadTxnList() : + new ValidReadTxnList(txnString); } - return HiveInputFormat.extractWriteIds(writeIdMap, job, currDesc.getTableName()); + return validTxnList; } private FetchInputFormatSplit[] splitSampling(SplitSample splitSample, diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/FetchTask.java ql/src/java/org/apache/hadoop/hive/ql/exec/FetchTask.java index bd822df..f6d27fb 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/FetchTask.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/FetchTask.java @@ -193,9 +193,4 @@ public void clearFetch() throws HiveException { fetch.clearFetchContext(); } } - - public Configuration getFetchConf() { - return fetch.getJobConf(); - } - } diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/FileSinkOperator.java ql/src/java/org/apache/hadoop/hive/ql/exec/FileSinkOperator.java index 8febcc0..481b907 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/FileSinkOperator.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/FileSinkOperator.java @@ -33,16 +33,11 @@ import java.util.Set; import com.google.common.collect.Lists; import org.apache.hadoop.conf.Configuration; -import org.apache.hadoop.fs.FSDataInputStream; -import org.apache.hadoop.fs.FSDataOutputStream; import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; -import org.apache.hadoop.fs.PathFilter; import org.apache.hadoop.hive.common.FileUtils; -import org.apache.hadoop.hive.common.HiveStatsUtils; import org.apache.hadoop.hive.common.StatsSetupConst; -import org.apache.hadoop.hive.common.ValidWriteIds; import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.conf.HiveConfUtil; import org.apache.hadoop.hive.conf.HiveConf.ConfVars; @@ -176,6 +171,8 @@ int acidLastBucket = -1; int acidFileOffset = -1; private boolean isMmTable; + private Long txnId; + private int stmtId; public FSPaths(Path specPath, boolean isMmTable) { this.isMmTable = isMmTable; @@ -185,6 +182,8 @@ public FSPaths(Path specPath, boolean isMmTable) { } else { tmpPath = specPath; taskOutputTempPath = null; // Should not be used. + txnId = conf.getTransactionId(); + stmtId = conf.getStatementId(); } Utilities.LOG14535.info("new FSPaths for " + numFiles + " files, dynParts = " + bDynParts + ": tmpPath " + tmpPath + ", task path " + taskOutputTempPath @@ -327,7 +326,7 @@ public void initializeBucketPaths(int filesIdx, String taskId, boolean isNativeT } outPaths[filesIdx] = getTaskOutPath(taskId); } else { - String subdirPath = ValidWriteIds.getMmFilePrefix(conf.getMmWriteId()); + String subdirPath = AcidUtils.deltaSubdir(txnId, txnId, stmtId); if (unionPath != null) { // Create the union directory inside the MM directory. subdirPath += Path.SEPARATOR + unionPath; @@ -731,10 +730,9 @@ protected void createBucketForFileIdx(FSPaths fsp, int filesIdx) Utilities.copyTableJobPropertiesToConf(conf.getTableInfo(), jc); // only create bucket files only if no dynamic partitions, // buckets of dynamic partitions will be created for each newly created partition - if (conf.getWriteType() == AcidUtils.Operation.NOT_ACID || - conf.getWriteType() == AcidUtils.Operation.INSERT_ONLY) { + if (conf.getWriteType() == AcidUtils.Operation.NOT_ACID || conf.isMmTable()) { Path outPath = fsp.outPaths[filesIdx]; - if ((conf.getWriteType() == AcidUtils.Operation.INSERT_ONLY || conf.isMmTable()) + if (conf.isMmTable() && !FileUtils.mkdir(fs, outPath.getParent(), hconf)) { LOG.warn("Unable to create directory with inheritPerms: " + outPath); } @@ -880,8 +878,7 @@ public void process(Object row, int tag) throws HiveException { // for a given operator branch prediction should work quite nicely on it. // RecordUpdateer expects to get the actual row, not a serialized version of it. Thus we // pass the row rather than recordValue. - if (conf.getWriteType() == AcidUtils.Operation.NOT_ACID || - conf.getWriteType() == AcidUtils.Operation.INSERT_ONLY) { + if (conf.getWriteType() == AcidUtils.Operation.NOT_ACID || conf.isMmTable()) { rowOutWriters[writerOffset].write(recordValue); } else if (conf.getWriteType() == AcidUtils.Operation.INSERT) { fpaths.updaters[writerOffset].insert(conf.getTransactionId(), row); @@ -925,8 +922,7 @@ public void process(Object row, int tag) throws HiveException { protected boolean areAllTrue(boolean[] statsFromRW) { // If we are doing an acid operation they will always all be true as RecordUpdaters always // collect stats - if (conf.getWriteType() != AcidUtils.Operation.NOT_ACID && - conf.getWriteType() != AcidUtils.Operation.INSERT_ONLY) { + if (conf.getWriteType() != AcidUtils.Operation.NOT_ACID && !conf.isMmTable()) { return true; } for(boolean b : statsFromRW) { @@ -1070,8 +1066,7 @@ protected FSPaths getDynOutPaths(List row, String lbDirName) throws Hive // stats from the record writer and store in the previous fsp that is cached if (conf.isGatherStats() && isCollectRWStats) { SerDeStats stats = null; - if (conf.getWriteType() == AcidUtils.Operation.NOT_ACID || - conf.getWriteType() == AcidUtils.Operation.INSERT_ONLY) { + if (conf.getWriteType() == AcidUtils.Operation.NOT_ACID || conf.isMmTable()) { RecordWriter outWriter = prevFsp.outWriters[0]; if (outWriter != null) { stats = ((StatsProvidingRecordWriter) outWriter).getStats(); @@ -1173,8 +1168,7 @@ public void closeOp(boolean abort) throws HiveException { // record writer already gathers the statistics, it can simply return the // accumulated statistics which will be aggregated in case of spray writers if (conf.isGatherStats() && isCollectRWStats) { - if (conf.getWriteType() == AcidUtils.Operation.NOT_ACID || - conf.getWriteType() == AcidUtils.Operation.INSERT_ONLY) { + if (conf.getWriteType() == AcidUtils.Operation.NOT_ACID || conf.isMmTable()) { for (int idx = 0; idx < fsp.outWriters.length; idx++) { RecordWriter outWriter = fsp.outWriters[idx]; if (outWriter != null) { @@ -1204,7 +1198,7 @@ public void closeOp(boolean abort) throws HiveException { } if (conf.getMmWriteId() != null) { Utilities.writeMmCommitManifest( - commitPaths, specPath, fs, taskId, conf.getMmWriteId(), unionPath); + commitPaths, specPath, fs, taskId, conf.getMmWriteId(), conf.getStatementId(), unionPath); } // Only publish stats if this operator's flag was set to gather stats if (conf.isGatherStats()) { @@ -1260,7 +1254,7 @@ public void jobCloseOp(Configuration hconf, boolean success) MissingBucketsContext mbc = new MissingBucketsContext( conf.getTableInfo(), numBuckets, conf.getCompressed()); Utilities.handleMmTableFinalPath(specPath, unionSuffix, hconf, success, - dpLevels, lbLevels, mbc, conf.getMmWriteId(), reporter, conf.isMmCtas()); + dpLevels, lbLevels, mbc, conf.getMmWriteId(), conf.getStatementId(), reporter, conf.isMmCtas()); } } } catch (IOException e) { diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/ImportCommitTask.java ql/src/java/org/apache/hadoop/hive/ql/exec/ImportCommitTask.java index ba009b9..27db9a4 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/ImportCommitTask.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/ImportCommitTask.java @@ -19,8 +19,6 @@ package org.apache.hadoop.hive.ql.exec; import org.apache.hadoop.hive.ql.DriverContext; -import org.apache.hadoop.hive.ql.metadata.Hive; -import org.apache.hadoop.hive.ql.metadata.Table; import org.apache.hadoop.hive.ql.parse.ExplainConfiguration.AnalyzeState; import org.apache.hadoop.hive.ql.plan.api.StageType; import org.apache.hadoop.util.StringUtils; @@ -35,16 +33,13 @@ public ImportCommitTask() { @Override public int execute(DriverContext driverContext) { - Utilities.LOG14535.info("Executing ImportCommit for " + work.getMmWriteId()); + Utilities.LOG14535.info("Executing ImportCommit for " + work.getTxnId()); try { if (driverContext.getCtx().getExplainAnalyze() == AnalyzeState.RUNNING) { Utilities.LOG14535.info("Exiting due to explain"); return 0; } - Hive db = getHive(); - Table tbl = db.getTable(work.getDbName(), work.getTblName()); - db.commitMmTableWrite(tbl, work.getMmWriteId()); return 0; } catch (Exception e) { console.printError("Failed with exception " + e.getMessage(), "\n" diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/ImportCommitWork.java ql/src/java/org/apache/hadoop/hive/ql/exec/ImportCommitWork.java index f62d237..5b59635 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/ImportCommitWork.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/ImportCommitWork.java @@ -26,16 +26,22 @@ public class ImportCommitWork implements Serializable { private static final long serialVersionUID = 1L; private String dbName, tblName; - private long mmWriteId; + private long txnId; + private int stmtId; - public ImportCommitWork(String dbName, String tblName, long mmWriteId) { - this.mmWriteId = mmWriteId; + public ImportCommitWork(String dbName, String tblName, long txnId, int stmtId) { + this.txnId = txnId; + this.stmtId = stmtId; this.dbName = dbName; this.tblName = tblName; } - public long getMmWriteId() { - return mmWriteId; + public long getTxnId() { + return txnId; + } + + public int getStmtId() { + return stmtId; } public String getDbName() { diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/MoveTask.java ql/src/java/org/apache/hadoop/hive/ql/exec/MoveTask.java index acf7404..c68fc0e 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/MoveTask.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/MoveTask.java @@ -38,7 +38,6 @@ import org.apache.hadoop.hive.metastore.api.FieldSchema; import org.apache.hadoop.hive.metastore.api.InvalidOperationException; import org.apache.hadoop.hive.metastore.api.Order; -import org.apache.hadoop.hive.metastore.model.MMasterKey; import org.apache.hadoop.hive.ql.Context; import org.apache.hadoop.hive.ql.DriverContext; import org.apache.hadoop.hive.ql.exec.mr.MapRedTask; @@ -340,10 +339,10 @@ public int execute(DriverContext driverContext) { checkFileFormats(db, tbd, table); - boolean isAcid = work.getLoadTableWork().getWriteType() != AcidUtils.Operation.NOT_ACID && - work.getLoadTableWork().getWriteType() != AcidUtils.Operation.INSERT_ONLY; - if (tbd.isMmTable() && isAcid) { - throw new HiveException("ACID and MM are not supported"); + boolean isFullAcidOp = work.getLoadTableWork().getWriteType() == AcidUtils.Operation.UPDATE || + work.getLoadTableWork().getWriteType() == AcidUtils.Operation.DELETE; + if (tbd.isMmTable() && isFullAcidOp) { + throw new HiveException("UPDATE and DELETE operations are not supported for MM table"); } // Create a data container @@ -356,8 +355,8 @@ public int execute(DriverContext driverContext) { "Only single-partition LoadTableDesc can skip commiting write ID"); } db.loadTable(tbd.getSourcePath(), tbd.getTable().getTableName(), tbd.getReplace(), - work.isSrcLocal(), isSkewedStoredAsDirs(tbd), isAcid, hasFollowingStatsTask(), - tbd.getMmWriteId()); + work.isSrcLocal(), isSkewedStoredAsDirs(tbd), isFullAcidOp, hasFollowingStatsTask(), + tbd.getTxnId(), tbd.getStmtId()); if (work.getOutputs() != null) { DDLTask.addIfAbsentByName(new WriteEntity(table, getWriteType(tbd, work.getLoadTableWork().getWriteType())), work.getOutputs()); @@ -414,13 +413,12 @@ private DataContainer handleStaticParts(Hive db, Table table, LoadTableDesc tbd, db.validatePartitionNameCharacters(partVals); Utilities.LOG14535.info("loadPartition called from " + tbd.getSourcePath() + " into " + tbd.getTable().getTableName()); - boolean isCommitMmWrite = tbd.isCommitMmWrite(); db.loadPartition(tbd.getSourcePath(), tbd.getTable().getTableName(), tbd.getPartitionSpec(), tbd.getReplace(), tbd.getInheritTableSpecs(), isSkewedStoredAsDirs(tbd), work.isSrcLocal(), - (work.getLoadTableWork().getWriteType() != AcidUtils.Operation.NOT_ACID && - work.getLoadTableWork().getWriteType() != AcidUtils.Operation.INSERT_ONLY), - hasFollowingStatsTask(), tbd.getMmWriteId(), isCommitMmWrite); + work.getLoadTableWork().getWriteType() == AcidUtils.Operation.UPDATE || + work.getLoadTableWork().getWriteType() == AcidUtils.Operation.DELETE, + hasFollowingStatsTask(), tbd.getTxnId(), tbd.getStmtId()); Partition partn = db.getPartition(table, tbd.getPartitionSpec(), false); // See the comment inside updatePartitionBucketSortColumns. @@ -464,11 +462,10 @@ private DataContainer handleDynParts(Hive db, Table table, LoadTableDesc tbd, tbd.getReplace(), dpCtx.getNumDPCols(), (tbd.getLbCtx() == null) ? 0 : tbd.getLbCtx().calculateListBucketingLevel(), - work.getLoadTableWork().getWriteType() != AcidUtils.Operation.NOT_ACID && - work.getLoadTableWork().getWriteType() != AcidUtils.Operation.INSERT_ONLY, - SessionState.get().getTxnMgr().getCurrentTxnId(), hasFollowingStatsTask(), - work.getLoadTableWork().getWriteType(), - tbd.getMmWriteId()); + work.getLoadTableWork().getWriteType() == AcidUtils.Operation.UPDATE || + work.getLoadTableWork().getWriteType() == AcidUtils.Operation.DELETE, + SessionState.get().getTxnMgr().getCurrentTxnId(), tbd.getStmtId(), hasFollowingStatsTask(), + work.getLoadTableWork().getWriteType()); // publish DP columns to its subscribers if (dps != null && dps.size() > 0) { diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java index 777c119..03c50a7 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java @@ -67,9 +67,6 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; -import java.util.concurrent.LinkedBlockingQueue; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.zip.Deflater; @@ -100,8 +97,8 @@ import org.apache.hadoop.hive.common.HiveStatsUtils; import org.apache.hadoop.hive.common.JavaUtils; import org.apache.hadoop.hive.common.StatsSetupConst; -import org.apache.hadoop.hive.common.ValidWriteIds; import org.apache.hadoop.hive.common.StringInternUtils; +import org.apache.hadoop.hive.common.ValidTxnList; import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.conf.HiveConf.ConfVars; import org.apache.hadoop.hive.metastore.MetaStoreUtils; @@ -211,61 +208,9 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import com.esotericsoftware.kryo.Kryo; -import com.google.common.annotations.VisibleForTesting; -import com.google.common.base.Preconditions; -import java.beans.DefaultPersistenceDelegate; -import java.beans.Encoder; -import java.beans.Expression; -import java.beans.Statement; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.DataInput; -import java.io.EOFException; -import java.io.File; -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.io.Serializable; -import java.net.URI; -import java.net.URL; -import java.net.URLClassLoader; -import java.net.URLDecoder; -import java.sql.Connection; -import java.sql.DriverManager; -import java.sql.PreparedStatement; -import java.sql.SQLException; -import java.sql.SQLFeatureNotSupportedException; -import java.sql.SQLTransientException; -import java.text.SimpleDateFormat; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Calendar; -import java.util.Collection; -import java.util.Enumeration; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.LinkedHashMap; -import java.util.LinkedList; -import java.util.List; -import java.util.Map; -import java.util.Properties; -import java.util.Random; -import java.util.Set; -import java.util.UUID; import java.util.concurrent.Callable; -import java.util.concurrent.ConcurrentHashMap; -import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; -import java.util.concurrent.Future; -import java.util.regex.Matcher; -import java.util.regex.Pattern; -import java.util.zip.Deflater; -import java.util.zip.DeflaterOutputStream; -import java.util.zip.InflaterInputStream; /** @@ -1592,7 +1537,7 @@ public static void removeTempOrDuplicateFiles(FileSystem fs, Path path) throws I int dpLevels = dpCtx == null ? 0 : dpCtx.getNumDPCols(), numBuckets = (conf != null && conf.getTable() != null) ? conf.getTable().getNumBuckets() : 0; - return removeTempOrDuplicateFiles(fs, fileStats, dpLevels, numBuckets, hconf, null); + return removeTempOrDuplicateFiles(fs, fileStats, dpLevels, numBuckets, hconf, null, 0); } private static boolean removeEmptyDpDirectory(FileSystem fs, Path path) throws IOException { @@ -1608,7 +1553,7 @@ private static boolean removeEmptyDpDirectory(FileSystem fs, Path path) throws I } public static List removeTempOrDuplicateFiles(FileSystem fs, FileStatus[] fileStats, - int dpLevels, int numBuckets, Configuration hconf, Long mmWriteId) throws IOException { + int dpLevels, int numBuckets, Configuration hconf, Long txnId, int stmtId) throws IOException { if (fileStats == null) { return null; } @@ -1627,9 +1572,9 @@ private static boolean removeEmptyDpDirectory(FileSystem fs, Path path) throws I } FileStatus[] items = fs.listStatus(path); - if (mmWriteId != null) { + if (txnId != null) { Path mmDir = parts[i].getPath(); - if (!mmDir.getName().equals(ValidWriteIds.getMmFilePrefix(mmWriteId))) { + if (!mmDir.getName().equals(AcidUtils.deltaSubdir(txnId, txnId, stmtId))) { throw new IOException("Unexpected non-MM directory name " + mmDir); } Utilities.LOG14535.info("removeTempOrDuplicateFiles processing files in MM directory " + mmDir); @@ -1644,14 +1589,14 @@ private static boolean removeEmptyDpDirectory(FileSystem fs, Path path) throws I if (items.length == 0) { return result; } - if (mmWriteId == null) { + if (txnId == null) { taskIDToFile = removeTempOrDuplicateFilesNonMm(items, fs); } else { if (items.length > 1) { throw new IOException("Unexpected directories for non-DP MM: " + Arrays.toString(items)); } Path mmDir = items[0].getPath(); - if (!mmDir.getName().equals(ValidWriteIds.getMmFilePrefix(mmWriteId))) { + if (!mmDir.getName().equals(AcidUtils.deltaSubdir(txnId, txnId, stmtId))) { throw new IOException("Unexpected non-MM directory " + mmDir); } Utilities.LOG14535.info( @@ -4003,10 +3948,10 @@ private static void tryDelete(FileSystem fs, Path path) { } public static Path[] getMmDirectoryCandidates(FileSystem fs, Path path, int dpLevels, - int lbLevels, PathFilter filter, long mmWriteId, Configuration conf) throws IOException { + int lbLevels, PathFilter filter, long txnId, int stmtId, Configuration conf) throws IOException { int skipLevels = dpLevels + lbLevels; if (filter == null) { - filter = new ValidWriteIds.IdPathFilter(mmWriteId, true); + filter = new JavaUtils.IdPathFilter(txnId, stmtId, true); } if (skipLevels == 0) { return statusToPath(fs.listStatus(path, filter)); @@ -4014,7 +3959,7 @@ private static void tryDelete(FileSystem fs, Path path) { if (HiveConf.getBoolVar(conf, ConfVars.HIVE_MM_AVOID_GLOBSTATUS_ON_S3) && isS3(fs)) { return getMmDirectoryCandidatesRecursive(fs, path, skipLevels, filter); } - return getMmDirectoryCandidatesGlobStatus(fs, path, skipLevels, filter, mmWriteId); + return getMmDirectoryCandidatesGlobStatus(fs, path, skipLevels, filter, txnId, stmtId); } private static boolean isS3(FileSystem fs) { @@ -4082,22 +4027,22 @@ private static boolean isS3(FileSystem fs) { } private static Path[] getMmDirectoryCandidatesGlobStatus(FileSystem fs, - Path path, int skipLevels, PathFilter filter, long mmWriteId) throws IOException { + Path path, int skipLevels, PathFilter filter, long txnId, int stmtId) throws IOException { StringBuilder sb = new StringBuilder(path.toUri().getPath()); for (int i = 0; i < skipLevels; i++) { sb.append(Path.SEPARATOR).append("*"); } - sb.append(Path.SEPARATOR).append(ValidWriteIds.getMmFilePrefix(mmWriteId)); + sb.append(Path.SEPARATOR).append(AcidUtils.deltaSubdir(txnId, txnId, stmtId)); Path pathPattern = new Path(path, sb.toString()); Utilities.LOG14535.info("Looking for files via: " + pathPattern); return statusToPath(fs.globStatus(pathPattern, filter)); } private static void tryDeleteAllMmFiles(FileSystem fs, Path specPath, Path manifestDir, - int dpLevels, int lbLevels, String unionSuffix, ValidWriteIds.IdPathFilter filter, - long mmWriteId, Configuration conf) throws IOException { + int dpLevels, int lbLevels, JavaUtils.IdPathFilter filter, + long txnId, int stmtId, Configuration conf) throws IOException { Path[] files = getMmDirectoryCandidates( - fs, specPath, dpLevels, lbLevels, filter, mmWriteId, conf); + fs, specPath, dpLevels, lbLevels, filter, txnId, stmtId, conf); if (files != null) { for (Path path : files) { Utilities.LOG14535.info("Deleting " + path + " on failure"); @@ -4110,10 +4055,10 @@ private static void tryDeleteAllMmFiles(FileSystem fs, Path specPath, Path manif public static void writeMmCommitManifest(List commitPaths, Path specPath, FileSystem fs, - String taskId, Long mmWriteId, String unionSuffix) throws HiveException { + String taskId, Long txnId, int stmtId, String unionSuffix) throws HiveException { if (commitPaths.isEmpty()) return; // We assume one FSOP per task (per specPath), so we create it in specPath. - Path manifestPath = getManifestDir(specPath, mmWriteId, unionSuffix); + Path manifestPath = getManifestDir(specPath, txnId, stmtId, unionSuffix); manifestPath = new Path(manifestPath, taskId + MANIFEST_EXTENSION); Utilities.LOG14535.info("Writing manifest to " + manifestPath + " with " + commitPaths); try { @@ -4132,8 +4077,8 @@ public static void writeMmCommitManifest(List commitPaths, Path specPath, } } - private static Path getManifestDir(Path specPath, long mmWriteId, String unionSuffix) { - Path manifestPath = new Path(specPath, "_tmp." + ValidWriteIds.getMmFilePrefix(mmWriteId)); + private static Path getManifestDir(Path specPath, long txnId, int stmtId, String unionSuffix) { + Path manifestPath = new Path(specPath, "_tmp." + AcidUtils.deltaSubdir(txnId, txnId, stmtId)); return (unionSuffix == null) ? manifestPath : new Path(manifestPath, unionSuffix); } @@ -4149,18 +4094,18 @@ public MissingBucketsContext(TableDesc tableInfo, int numBuckets, boolean isComp } public static void handleMmTableFinalPath(Path specPath, String unionSuffix, Configuration hconf, - boolean success, int dpLevels, int lbLevels, MissingBucketsContext mbc, long mmWriteId, + boolean success, int dpLevels, int lbLevels, MissingBucketsContext mbc, long txnId, int stmtId, Reporter reporter, boolean isMmCtas) throws IOException, HiveException { FileSystem fs = specPath.getFileSystem(hconf); - Path manifestDir = getManifestDir(specPath, mmWriteId, unionSuffix); + Path manifestDir = getManifestDir(specPath, txnId, stmtId, unionSuffix); if (!success) { - ValidWriteIds.IdPathFilter filter = new ValidWriteIds.IdPathFilter(mmWriteId, true); + JavaUtils.IdPathFilter filter = new JavaUtils.IdPathFilter(txnId, stmtId, true); tryDeleteAllMmFiles(fs, specPath, manifestDir, dpLevels, lbLevels, - unionSuffix, filter, mmWriteId, hconf); + filter, txnId, stmtId, hconf); return; } - Utilities.LOG14535.info("Looking for manifests in: " + manifestDir + " (" + mmWriteId + ")"); + Utilities.LOG14535.info("Looking for manifests in: " + manifestDir + " (" + txnId + ")"); // TODO# may be wrong if there are no splits (empty insert/CTAS) List manifests = new ArrayList<>(); if (fs.exists(manifestDir)) { @@ -4180,14 +4125,14 @@ public static void handleMmTableFinalPath(Path specPath, String unionSuffix, Con } Utilities.LOG14535.info("Looking for files in: " + specPath); - ValidWriteIds.IdPathFilter filter = new ValidWriteIds.IdPathFilter(mmWriteId, true); + JavaUtils.IdPathFilter filter = new JavaUtils.IdPathFilter(txnId, stmtId, true); if (isMmCtas && !fs.exists(specPath)) { // TODO: do we also need to do this when creating an empty partition from select? Utilities.LOG14535.info("Creating table directory for CTAS with no output at " + specPath); FileUtils.mkdir(fs, specPath, hconf); } Path[] files = getMmDirectoryCandidates( - fs, specPath, dpLevels, lbLevels, filter, mmWriteId, hconf); + fs, specPath, dpLevels, lbLevels, filter, txnId, stmtId, hconf); ArrayList mmDirectories = new ArrayList<>(); if (files != null) { for (Path path : files) { @@ -4243,7 +4188,7 @@ public static void handleMmTableFinalPath(Path specPath, String unionSuffix, Con finalResults[i] = new PathOnlyFileStatus(mmDirectories.get(i)); } List emptyBuckets = Utilities.removeTempOrDuplicateFiles( - fs, finalResults, dpLevels, mbc == null ? 0 : mbc.numBuckets, hconf, mmWriteId); + fs, finalResults, dpLevels, mbc == null ? 0 : mbc.numBuckets, hconf, txnId, stmtId); // create empty buckets if necessary if (emptyBuckets.size() > 0) { assert mbc != null; @@ -4294,7 +4239,7 @@ private static void deleteUncommitedFile(Path childPath, FileSystem fs) * if the entire directory is valid (has no uncommitted/temporary files). */ public static List getValidMmDirectoriesFromTableOrPart(Path path, Configuration conf, - ValidWriteIds ids, int lbLevels) throws IOException { + ValidTxnList validTxnList, int lbLevels) throws IOException { Utilities.LOG14535.info("Looking for valid MM paths under " + path); // NULL means this directory is entirely valid. List result = null; @@ -4304,8 +4249,8 @@ private static void deleteUncommitedFile(Path childPath, FileSystem fs) for (int i = 0; i < children.length; ++i) { FileStatus file = children[i]; Path childPath = file.getPath(); - Long writeId = ValidWriteIds.extractWriteId(childPath); - if (!file.isDirectory() || writeId == null || !ids.isValid(writeId)) { + Long txnId = JavaUtils.extractTxnId(childPath); + if (!file.isDirectory() || txnId == null || !validTxnList.isTxnValid(txnId)) { Utilities.LOG14535.info("Skipping path " + childPath); if (result == null) { result = new ArrayList<>(children.length - 1); diff --git ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java index 740488c..902caa3 100644 --- ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java +++ ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java @@ -276,9 +276,8 @@ static long parseBase(Path path) { return result; } - // INSERT_ONLY is a special operation which we only support INSERT operations, no UPDATE/DELETE public enum Operation { - NOT_ACID, INSERT, UPDATE, DELETE, INSERT_ONLY + NOT_ACID, INSERT, UPDATE, DELETE } /** diff --git ql/src/java/org/apache/hadoop/hive/ql/io/HiveInputFormat.java ql/src/java/org/apache/hadoop/hive/ql/io/HiveInputFormat.java index 9b83cb4..8bcf8c7 100755 --- ql/src/java/org/apache/hadoop/hive/ql/io/HiveInputFormat.java +++ ql/src/java/org/apache/hadoop/hive/ql/io/HiveInputFormat.java @@ -20,11 +20,9 @@ import java.io.DataInput; import java.io.DataOutput; -import java.io.FileNotFoundException; import java.io.IOException; import java.io.Serializable; import java.util.ArrayList; -import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedList; @@ -34,8 +32,11 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.Map.Entry; -import org.apache.commons.lang.StringUtils; +import org.apache.hadoop.hive.common.FileUtils; +import org.apache.hadoop.hive.common.JavaUtils; import org.apache.hadoop.hive.common.StringInternUtils; +import org.apache.hadoop.hive.common.ValidReadTxnList; +import org.apache.hadoop.hive.common.ValidTxnList; import org.apache.hadoop.hive.ql.exec.SerializationUtilities; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -44,8 +45,6 @@ import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; -import org.apache.hadoop.hive.common.FileUtils; -import org.apache.hadoop.hive.common.ValidWriteIds; import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.conf.HiveConf.ConfVars; import org.apache.hadoop.hive.io.HiveIOExceptionHandlerUtil; @@ -423,12 +422,11 @@ protected void init(JobConf job) { */ private void addSplitsForGroup(List dirs, TableScanOperator tableScan, JobConf conf, InputFormat inputFormat, Class inputFormatClass, int splits, - TableDesc table, Map writeIdMap, List result) + TableDesc table, List result) throws IOException { - ValidWriteIds writeIds = extractWriteIds(writeIdMap, conf, table.getTableName()); - if (writeIds != null) { - Utilities.LOG14535.info("Observing " + table.getTableName() + ": " + writeIds); - } + String txnString = conf.get(ValidTxnList.VALID_TXNS_KEY); + ValidTxnList validTxnList = txnString == null ? new ValidReadTxnList() : + new ValidReadTxnList(txnString); Utilities.copyTablePropertiesToConf(table, conf); @@ -436,7 +434,7 @@ private void addSplitsForGroup(List dirs, TableScanOperator tableScan, Job pushFilters(conf, tableScan); } - Path[] finalDirs = processPathsForMmRead(dirs, conf, writeIds); + Path[] finalDirs = processPathsForMmRead(dirs, conf, validTxnList); if (finalDirs == null) { return; // No valid inputs. } @@ -461,13 +459,13 @@ private void addSplitsForGroup(List dirs, TableScanOperator tableScan, Job } public static Path[] processPathsForMmRead(List dirs, JobConf conf, - ValidWriteIds writeIds) throws IOException { - if (writeIds == null) { + ValidTxnList validTxnList) throws IOException { + if (validTxnList == null) { return dirs.toArray(new Path[dirs.size()]); } else { List finalPaths = new ArrayList<>(dirs.size()); for (Path dir : dirs) { - processForWriteIds(dir, conf, writeIds, finalPaths); + processForWriteIds(dir, conf, validTxnList, finalPaths); } if (finalPaths.isEmpty()) { LOG.warn("No valid inputs found in " + dirs); @@ -478,7 +476,7 @@ private void addSplitsForGroup(List dirs, TableScanOperator tableScan, Job } private static void processForWriteIds(Path dir, JobConf conf, - ValidWriteIds writeIds, List finalPaths) throws IOException { + ValidTxnList validTxnList, List finalPaths) throws IOException { FileSystem fs = dir.getFileSystem(conf); Utilities.LOG14535.warn("Checking " + dir + " (root) for inputs"); // Ignore nullscan-optimized paths. @@ -489,17 +487,17 @@ private static void processForWriteIds(Path dir, JobConf conf, FileStatus[] files = fs.listStatus(dir); // TODO: batch? LinkedList subdirs = new LinkedList<>(); for (FileStatus file : files) { - handleNonMmDirChild(file, writeIds, subdirs, finalPaths); + handleNonMmDirChild(file, validTxnList, subdirs, finalPaths); } while (!subdirs.isEmpty()) { Path subdir = subdirs.poll(); for (FileStatus file : fs.listStatus(subdir)) { - handleNonMmDirChild(file, writeIds, subdirs, finalPaths); + handleNonMmDirChild(file, validTxnList, subdirs, finalPaths); } } } - private static void handleNonMmDirChild(FileStatus file, ValidWriteIds writeIds, + private static void handleNonMmDirChild(FileStatus file, ValidTxnList validTxnList, LinkedList subdirs, List finalPaths) { Path path = file.getPath(); Utilities.LOG14535.warn("Checking " + path + " for inputs"); @@ -507,12 +505,12 @@ private static void handleNonMmDirChild(FileStatus file, ValidWriteIds writeIds, Utilities.LOG14535.warn("Ignoring a file not in MM directory " + path); return; } - Long writeId = ValidWriteIds.extractWriteId(path); - if (writeId == null) { + Long txnId = JavaUtils.extractTxnId(path); + if (txnId == null) { subdirs.add(path); return; } - if (!writeIds.isValid(writeId)) { + if (!validTxnList.isTxnValid(txnId)) { Utilities.LOG14535.warn("Ignoring an uncommitted directory " + path); return; } @@ -564,7 +562,6 @@ private static void handleNonMmDirChild(FileStatus file, ValidWriteIds writeIds, StringBuilder readColumnNamesBuffer = new StringBuilder(newjob. get(ColumnProjectionUtils.READ_COLUMN_NAMES_CONF_STR, "")); // for each dir, get the InputFormat, and do getSplits. - Map writeIdMap = new HashMap<>(); for (Path dir : dirs) { PartitionDesc part = getPartitionDescFromPath(pathToPartitionInfo, dir); Class inputFormatClass = part.getInputFileFormatClass(); @@ -615,7 +612,7 @@ private static void handleNonMmDirChild(FileStatus file, ValidWriteIds writeIds, addSplitsForGroup(currentDirs, currentTableScan, newjob, getInputFormatFromCache(currentInputFormatClass, job), currentInputFormatClass, currentDirs.size()*(numSplits / dirs.length), - currentTable, writeIdMap, result); + currentTable, result); } currentDirs.clear(); @@ -637,7 +634,7 @@ private static void handleNonMmDirChild(FileStatus file, ValidWriteIds writeIds, addSplitsForGroup(currentDirs, currentTableScan, newjob, getInputFormatFromCache(currentInputFormatClass, job), currentInputFormatClass, currentDirs.size()*(numSplits / dirs.length), - currentTable, writeIdMap, result); + currentTable, result); } Utilities.clearWorkMapForConf(job); @@ -648,19 +645,6 @@ private static void handleNonMmDirChild(FileStatus file, ValidWriteIds writeIds, return result.toArray(new HiveInputSplit[result.size()]); } - public static ValidWriteIds extractWriteIds(Map writeIdMap, - JobConf newjob, String tableName) { - if (StringUtils.isBlank(tableName)) return null; - ValidWriteIds writeIds = writeIdMap.get(tableName); - if (writeIds == null) { - writeIds = ValidWriteIds.createFromConf(newjob, tableName); - writeIdMap.put(tableName, writeIds != null ? writeIds : ValidWriteIds.NO_WRITE_IDS); - } else if (writeIds == ValidWriteIds.NO_WRITE_IDS) { - writeIds = null; - } - return writeIds; - } - private void pushProjection(final JobConf newjob, final StringBuilder readColumnsBuffer, final StringBuilder readColumnNamesBuffer) { String readColIds = readColumnsBuffer.toString(); diff --git ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java index 6498199..d793ccf 100644 --- ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java +++ ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java @@ -32,7 +32,6 @@ import java.io.PrintStream; import java.nio.ByteBuffer; import java.util.ArrayList; -import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.HashMap; @@ -52,7 +51,6 @@ import java.util.concurrent.Executors; import java.util.concurrent.Future; import java.util.concurrent.atomic.AtomicInteger; -import java.util.concurrent.ConcurrentHashMap; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableMap; @@ -70,9 +68,9 @@ import org.apache.hadoop.hive.common.BlobStorageUtils; import org.apache.hadoop.hive.common.FileUtils; import org.apache.hadoop.hive.common.HiveStatsUtils; +import org.apache.hadoop.hive.common.JavaUtils; import org.apache.hadoop.hive.common.ObjectPair; import org.apache.hadoop.hive.common.StatsSetupConst; -import org.apache.hadoop.hive.common.ValidWriteIds; import org.apache.hadoop.hive.common.classification.InterfaceAudience.LimitedPrivate; import org.apache.hadoop.hive.common.classification.InterfaceStability.Unstable; import org.apache.hadoop.hive.conf.HiveConf; @@ -104,7 +102,6 @@ import org.apache.hadoop.hive.metastore.api.GetOpenTxnsInfoResponse; import org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalRequest; import org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalResponse; -import org.apache.hadoop.hive.metastore.api.GetValidWriteIdsResult; import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege; import org.apache.hadoop.hive.metastore.api.HiveObjectRef; import org.apache.hadoop.hive.metastore.api.HiveObjectType; @@ -157,7 +154,6 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import com.google.common.collect.ImmutableMap; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import com.google.common.collect.Sets; @@ -1624,26 +1620,13 @@ public Database getDatabaseCurrent() throws HiveException { public void loadPartition(Path loadPath, String tableName, Map partSpec, boolean replace, boolean inheritTableSpecs, boolean isSkewedStoreAsSubdir, boolean isSrcLocal, boolean isAcid, - boolean hasFollowingStatsTask, Long mmWriteId, boolean isCommitMmWrite) + boolean hasFollowingStatsTask, Long txnId, int stmtId) throws HiveException { Table tbl = getTable(tableName); - boolean isMmTableWrite = (mmWriteId != null); + boolean isMmTableWrite = (txnId != null); Preconditions.checkState(isMmTableWrite == MetaStoreUtils.isInsertOnlyTable(tbl.getParameters())); loadPartition(loadPath, tbl, partSpec, replace, inheritTableSpecs, - isSkewedStoreAsSubdir, isSrcLocal, isAcid, hasFollowingStatsTask, mmWriteId); - if (isMmTableWrite && isCommitMmWrite) { - // The assumption behind committing here is that this partition is the only one outputted. - commitMmTableWrite(tbl, mmWriteId); - } - } - - public void commitMmTableWrite(Table tbl, Long mmWriteId) - throws HiveException { - try { - getMSC().finalizeTableWrite(tbl.getDbName(), tbl.getTableName(), mmWriteId, true); - } catch (TException e) { - throw new HiveException(e); - } + isSkewedStoreAsSubdir, isSrcLocal, isAcid, hasFollowingStatsTask, txnId, stmtId); } /** @@ -1673,7 +1656,7 @@ public void commitMmTableWrite(Table tbl, Long mmWriteId) */ public Partition loadPartition(Path loadPath, Table tbl, Map partSpec, boolean replace, boolean inheritTableSpecs, boolean isSkewedStoreAsSubdir, - boolean isSrcLocal, boolean isAcid, boolean hasFollowingStatsTask, Long mmWriteId) + boolean isSrcLocal, boolean isAcid, boolean hasFollowingStatsTask, Long txnId, int stmtId) throws HiveException { Path tblDataLocationPath = tbl.getDataLocation(); try { @@ -1722,34 +1705,34 @@ public Partition loadPartition(Path loadPath, Table tbl, Map par newFiles = Collections.synchronizedList(new ArrayList()); } // TODO: this assumes both paths are qualified; which they are, currently. - if (mmWriteId != null && loadPath.equals(newPartPath)) { + if (txnId != null && loadPath.equals(newPartPath)) { // MM insert query, move itself is a no-op. Utilities.LOG14535.info("not moving " + loadPath + " to " + newPartPath + " (MM)"); assert !isAcid; if (areEventsForDmlNeeded(tbl, oldPart)) { - newFiles = listFilesCreatedByQuery(loadPath, mmWriteId); + newFiles = listFilesCreatedByQuery(loadPath, txnId, stmtId); } Utilities.LOG14535.info("maybe deleting stuff from " + oldPartPath + " (new " + newPartPath + ") for replace"); if (replace && oldPartPath != null) { boolean isAutoPurge = "true".equalsIgnoreCase(tbl.getProperty("auto.purge")); deleteOldPathForReplace(newPartPath, oldPartPath, getConf(), isAutoPurge, - new ValidWriteIds.IdPathFilter(mmWriteId, false, true), mmWriteId != null, + new JavaUtils.IdPathFilter(txnId, stmtId, false, true), true, tbl.isStoredAsSubDirectories() ? tbl.getSkewedColNames().size() : 0); } } else { // Either a non-MM query, or a load into MM table from an external source. PathFilter filter = FileUtils.HIDDEN_FILES_PATH_FILTER; Path destPath = newPartPath; - if (mmWriteId != null) { + if (txnId != null) { // We will load into MM directory, and delete from the parent if needed. - destPath = new Path(destPath, ValidWriteIds.getMmFilePrefix(mmWriteId)); - filter = replace ? new ValidWriteIds.IdPathFilter(mmWriteId, false, true) : filter; + destPath = new Path(destPath, AcidUtils.deltaSubdir(txnId, txnId, stmtId)); + filter = replace ? new JavaUtils.IdPathFilter(txnId, stmtId, false, true) : filter; } Utilities.LOG14535.info("moving " + loadPath + " to " + destPath); if (replace || (oldPart == null && !isAcid)) { boolean isAutoPurge = "true".equalsIgnoreCase(tbl.getProperty("auto.purge")); replaceFiles(tbl.getPath(), loadPath, destPath, oldPartPath, getConf(), - isSrcLocal, isAutoPurge, newFiles, filter, mmWriteId != null); + isSrcLocal, isAutoPurge, newFiles, filter, txnId != null); } else { FileSystem fs = tbl.getDataLocation().getFileSystem(conf); Hive.copyFiles(conf, loadPath, destPath, fs, isSrcLocal, isAcid, newFiles); @@ -1834,9 +1817,9 @@ private boolean areEventsForDmlNeeded(Table tbl, Partition oldPart) { return conf.getBoolVar(ConfVars.FIRE_EVENTS_FOR_DML) && !tbl.isTemporary() && oldPart != null; } - private List listFilesCreatedByQuery(Path loadPath, long mmWriteId) throws HiveException { + private List listFilesCreatedByQuery(Path loadPath, long txnId, int stmtId) throws HiveException { List newFiles = new ArrayList(); - final String filePrefix = ValidWriteIds.getMmFilePrefix(mmWriteId); + final String filePrefix = AcidUtils.deltaSubdir(txnId, txnId, stmtId); FileStatus[] srcs; FileSystem srcFs; try { @@ -1999,11 +1982,11 @@ private void constructOneLBLocationMap(FileStatus fSta, * @throws HiveException */ private Set getValidPartitionsInPath( - int numDP, int numLB, Path loadPath, Long mmWriteId) throws HiveException { + int numDP, int numLB, Path loadPath, Long txnId, int stmtId) throws HiveException { Set validPartitions = new HashSet(); try { FileSystem fs = loadPath.getFileSystem(conf); - if (mmWriteId == null) { + if (txnId == null) { FileStatus[] leafStatus = HiveStatsUtils.getFileStatusRecurse(loadPath, numDP, fs); // Check for empty partitions for (FileStatus s : leafStatus) { @@ -2018,7 +2001,7 @@ private void constructOneLBLocationMap(FileStatus fSta, // The non-MM path only finds new partitions, as it is looking at the temp path. // To produce the same effect, we will find all the partitions affected by this write ID. Path[] leafStatus = Utilities.getMmDirectoryCandidates( - fs, loadPath, numDP, numLB, null, mmWriteId, conf); + fs, loadPath, numDP, numLB, null, txnId, stmtId, conf); for (Path p : leafStatus) { Path dpPath = p.getParent(); // Skip the MM directory that we have found. for (int i = 0; i < numLB; ++i) { @@ -2064,8 +2047,8 @@ private void constructOneLBLocationMap(FileStatus fSta, */ public Map, Partition> loadDynamicPartitions(final Path loadPath, final String tableName, final Map partSpec, final boolean replace, - final int numDP, final int numLB, final boolean isAcid, final long txnId, - final boolean hasFollowingStatsTask, final AcidUtils.Operation operation, final Long mmWriteId) + final int numDP, final int numLB, final boolean isAcid, final long txnId, final int stmtId, + final boolean hasFollowingStatsTask, final AcidUtils.Operation operation) throws HiveException { final Map, Partition> partitionsMap = @@ -2080,7 +2063,7 @@ private void constructOneLBLocationMap(FileStatus fSta, // Get all valid partition paths and existing partitions for them (if any) final Table tbl = getTable(tableName); - final Set validPartitions = getValidPartitionsInPath(numDP, numLB, loadPath, mmWriteId); + final Set validPartitions = getValidPartitionsInPath(numDP, numLB, loadPath, txnId, stmtId); final int partsToLoad = validPartitions.size(); final AtomicInteger partitionsLoaded = new AtomicInteger(0); @@ -2114,7 +2097,7 @@ public Void call() throws Exception { Utilities.LOG14535.info("loadPartition called for DPP from " + partPath + " to " + tbl.getTableName()); Partition newPartition = loadPartition(partPath, tbl, fullPartSpec, replace, true, numLB > 0, - false, isAcid, hasFollowingStatsTask, mmWriteId); + false, isAcid, hasFollowingStatsTask, txnId, stmtId); partitionsMap.put(fullPartSpec, newPartition); if (inPlaceEligible) { @@ -2146,10 +2129,6 @@ public Void call() throws Exception { for (Future future : futures) { future.get(); } - if (mmWriteId != null) { - // Commit after we have processed all the partitions. - commitMmTableWrite(tbl, mmWriteId); - } } catch (InterruptedException | ExecutionException e) { LOG.debug("Cancelling " + futures.size() + " dynamic loading tasks"); //cancel other futures @@ -2200,8 +2179,7 @@ public Void call() throws Exception { */ public void loadTable(Path loadPath, String tableName, boolean replace, boolean isSrcLocal, boolean isSkewedStoreAsSubdir, boolean isAcid, boolean hasFollowingStatsTask, - Long mmWriteId) throws HiveException { - + Long txnId, int stmtId) throws HiveException { List newFiles = null; Table tbl = getTable(tableName); HiveConf sessionConf = SessionState.getSessionConf(); @@ -2209,30 +2187,30 @@ public void loadTable(Path loadPath, String tableName, boolean replace, boolean newFiles = Collections.synchronizedList(new ArrayList()); } // TODO: this assumes both paths are qualified; which they are, currently. - if (mmWriteId != null && loadPath.equals(tbl.getPath())) { + if (txnId != null && loadPath.equals(tbl.getPath())) { Utilities.LOG14535.info("not moving " + loadPath + " to " + tbl.getPath()); if (replace) { Path tableDest = tbl.getPath(); boolean isAutopurge = "true".equalsIgnoreCase(tbl.getProperty("auto.purge")); deleteOldPathForReplace(tableDest, tableDest, sessionConf, isAutopurge, - new ValidWriteIds.IdPathFilter(mmWriteId, false, true), mmWriteId != null, + new JavaUtils.IdPathFilter(txnId, stmtId, false, true), true, tbl.isStoredAsSubDirectories() ? tbl.getSkewedColNames().size() : 0); } - newFiles = listFilesCreatedByQuery(loadPath, mmWriteId); + newFiles = listFilesCreatedByQuery(loadPath, txnId, stmtId); } else { // Either a non-MM query, or a load into MM table from an external source. Path tblPath = tbl.getPath(), destPath = tblPath; PathFilter filter = FileUtils.HIDDEN_FILES_PATH_FILTER; - if (mmWriteId != null) { + if (txnId != null) { // We will load into MM directory, and delete from the parent if needed. - destPath = new Path(destPath, ValidWriteIds.getMmFilePrefix(mmWriteId)); - filter = replace ? new ValidWriteIds.IdPathFilter(mmWriteId, false, true) : filter; + destPath = new Path(destPath, AcidUtils.deltaSubdir(txnId, txnId, stmtId)); + filter = replace ? new JavaUtils.IdPathFilter(txnId, stmtId, false, true) : filter; } Utilities.LOG14535.info("moving " + loadPath + " to " + tblPath + " (replace = " + replace + ")"); if (replace) { boolean isAutopurge = "true".equalsIgnoreCase(tbl.getProperty("auto.purge")); replaceFiles(tblPath, loadPath, destPath, tblPath, - sessionConf, isSrcLocal, isAutopurge, newFiles, filter, mmWriteId != null); + sessionConf, isSrcLocal, isAutopurge, newFiles, filter, txnId != null); } else { try { FileSystem fs = tbl.getDataLocation().getFileSystem(sessionConf); @@ -2274,10 +2252,6 @@ public void loadTable(Path loadPath, String tableName, boolean replace, boolean throw new HiveException(e); } - if (mmWriteId != null) { - commitMmTableWrite(tbl, mmWriteId); - } - fireInsertEvent(tbl, null, replace, newFiles); } @@ -4337,25 +4311,4 @@ public void addForeignKey(List foreignKeyCols) throw new HiveException(e); } } - - public long getNextTableWriteId(String dbName, String tableName) throws HiveException { - try { - return getMSC().getNextTableWriteId(dbName, tableName); - } catch (Exception e) { - throw new HiveException(e); - } - } - - public ValidWriteIds getValidWriteIdsForTable( - String dbName, String tableName) throws HiveException { - try { - // TODO: decode ID ranges here if we use that optimization - GetValidWriteIdsResult result = getMSC().getValidWriteIds(dbName, tableName); - return new ValidWriteIds(result.getLowWatermarkId(), result.getHighWatermarkId(), - result.isSetAreIdsValid() && result.isAreIdsValid(), - result.isSetIds() ? new HashSet(result.getIds()) : null); - } catch (Exception e) { - throw new HiveException(e); - } - } -}; +} diff --git ql/src/java/org/apache/hadoop/hive/ql/metadata/Table.java ql/src/java/org/apache/hadoop/hive/ql/metadata/Table.java index 5efaf70..6282548 100644 --- ql/src/java/org/apache/hadoop/hive/ql/metadata/Table.java +++ ql/src/java/org/apache/hadoop/hive/ql/metadata/Table.java @@ -1026,8 +1026,4 @@ public void setTableSpec(TableSpec tableSpec) { public boolean hasDeserializer() { return deserializer != null; } - - public void setMmNextWriteId(long writeId) { - this.tTable.setMmNextWriteId(writeId); - } }; diff --git ql/src/java/org/apache/hadoop/hive/ql/optimizer/GenMapRedUtils.java ql/src/java/org/apache/hadoop/hive/ql/optimizer/GenMapRedUtils.java index 87fff3e..204e67d 100644 --- ql/src/java/org/apache/hadoop/hive/ql/optimizer/GenMapRedUtils.java +++ ql/src/java/org/apache/hadoop/hive/ql/optimizer/GenMapRedUtils.java @@ -1636,7 +1636,9 @@ public static MapWork createMergeTask(FileSinkDesc fsInputDesc, Path finalName, } else { fmd = new OrcFileMergeDesc(); } - fmd.setMmWriteId(fsInputDesc.getMmWriteId()); + fmd.setTxnId(fsInputDesc.getMmWriteId()); + int stmtId = fsInputDesc.getStatementId(); + fmd.setStmtId(stmtId == -1 ? 0 : stmtId); fmd.setDpCtx(fsInputDesc.getDynPartCtx()); fmd.setOutputPath(finalName); fmd.setHasDynamicPartitions(work.hasDynamicPartitions()); diff --git ql/src/java/org/apache/hadoop/hive/ql/optimizer/physical/SkewJoinResolver.java ql/src/java/org/apache/hadoop/hive/ql/optimizer/physical/SkewJoinResolver.java index 64db005..b50f664 100644 --- ql/src/java/org/apache/hadoop/hive/ql/optimizer/physical/SkewJoinResolver.java +++ ql/src/java/org/apache/hadoop/hive/ql/optimizer/physical/SkewJoinResolver.java @@ -86,7 +86,7 @@ public Object dispatch(Node nd, Stack stack, Object... nodeOutputs) ParseContext pc = physicalContext.getParseContext(); if (pc.getLoadTableWork() != null) { for (LoadTableDesc ltd : pc.getLoadTableWork()) { - if (ltd.getMmWriteId() == null) continue; + if (ltd.getTxnId() == null) continue; // See the path in FSOP that calls fs.exists on finalPath. LOG.debug("Not using skew join because the destination table " + ltd.getTable().getTableName() + " is an insert_only table"); diff --git ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java index 41245c8..b9db582 100644 --- ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java +++ ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java @@ -116,7 +116,8 @@ */ protected Set acidFileSinks = new HashSet(); - // whether any ACID table is involved in a query + // whether any ACID table or Insert-only (mm) table is involved in a query + // They both require DbTxnManager and both need to recordValidTxns when acquiring locks in Driver protected boolean acidInQuery; public static final int HIVE_COLUMN_ORDER_ASC = 1; diff --git ql/src/java/org/apache/hadoop/hive/ql/parse/ExportSemanticAnalyzer.java ql/src/java/org/apache/hadoop/hive/ql/parse/ExportSemanticAnalyzer.java index deb51be..e534272 100644 --- ql/src/java/org/apache/hadoop/hive/ql/parse/ExportSemanticAnalyzer.java +++ ql/src/java/org/apache/hadoop/hive/ql/parse/ExportSemanticAnalyzer.java @@ -18,15 +18,8 @@ package org.apache.hadoop.hive.ql.parse; -import org.apache.hadoop.hive.ql.metadata.HiveException; - -import org.apache.hadoop.hive.common.ValidWriteIds; - -import java.util.List; - -import org.apache.hadoop.hive.ql.exec.Utilities; -import org.apache.hadoop.hive.metastore.MetaStoreUtils; +import org.apache.hadoop.hive.ql.metadata.HiveException; import java.io.FileNotFoundException; import java.io.IOException; @@ -41,13 +34,17 @@ import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hive.common.FileUtils; +import org.apache.hadoop.hive.common.ValidReadTxnList; +import org.apache.hadoop.hive.common.ValidTxnList; import org.apache.hadoop.hive.conf.HiveConf; +import org.apache.hadoop.hive.metastore.MetaStoreUtils; import org.apache.hadoop.hive.ql.Context; import org.apache.hadoop.hive.ql.ErrorMsg; import org.apache.hadoop.hive.ql.QueryState; import org.apache.hadoop.hive.ql.exec.ReplCopyTask; import org.apache.hadoop.hive.ql.exec.Task; import org.apache.hadoop.hive.ql.exec.TaskFactory; +import org.apache.hadoop.hive.ql.exec.Utilities; import org.apache.hadoop.hive.ql.hooks.ReadEntity; import org.apache.hadoop.hive.ql.hooks.WriteEntity; import org.apache.hadoop.hive.ql.metadata.Hive; @@ -214,8 +211,6 @@ public static void prepareExport( int lbLevels = isMmTable && ts.tableHandle.isStoredAsSubDirectories() ? ts.tableHandle.getSkewedColNames().size() : 0; - ValidWriteIds ids = isMmTable ? db.getValidWriteIdsForTable( - ts.tableHandle.getDbName(), ts.tableHandle.getTableName()) : null; if (ts.tableHandle.isPartitioned()) { for (Partition partition : partitions) { Path fromPath = partition.getDataLocation(); @@ -229,7 +224,7 @@ public static void prepareExport( } copyTask = ReplCopyTask.getDumpCopyTask(replicationSpec, fromPath, toPartPath, conf); } else { - CopyWork cw = createCopyWork(isMmTable, lbLevels, ids, fromPath, toPartPath, conf); + CopyWork cw = createCopyWork(isMmTable, lbLevels, new ValidReadTxnList(), fromPath, toPartPath, conf); copyTask = TaskFactory.get(cw, conf); } rootTasks.add(copyTask); @@ -248,7 +243,7 @@ public static void prepareExport( copyTask = ReplCopyTask.getDumpCopyTask(replicationSpec, fromPath, toDataPath, conf); } else { // TODO# master merge - did master remove this path or did it never exit? we need it for MM - CopyWork cw = createCopyWork(isMmTable, lbLevels, ids, fromPath, toDataPath, conf); + CopyWork cw = createCopyWork(isMmTable, lbLevels, new ValidReadTxnList(), fromPath, toDataPath, conf); copyTask = TaskFactory.get(cw, conf); } rootTasks.add(copyTask); @@ -260,14 +255,14 @@ public static void prepareExport( } } - private static CopyWork createCopyWork(boolean isMmTable, int lbLevels, ValidWriteIds ids, + private static CopyWork createCopyWork(boolean isMmTable, int lbLevels, ValidTxnList validTxnList, Path fromPath, Path toDataPath, Configuration conf) throws IOException { List validPaths = null; if (isMmTable) { fromPath = fromPath.getFileSystem(conf).makeQualified(fromPath); - validPaths = Utilities.getValidMmDirectoriesFromTableOrPart(fromPath, conf, ids, lbLevels); + validPaths = Utilities.getValidMmDirectoriesFromTableOrPart(fromPath, conf, validTxnList, lbLevels); } - if (validPaths == null) { + if (validPaths == null || validPaths.isEmpty()) { return new CopyWork(fromPath, toDataPath, false); // Not MM, or no need to skip anything. } else { return createCopyWorkForValidPaths(fromPath, toDataPath, validPaths); diff --git ql/src/java/org/apache/hadoop/hive/ql/parse/ImportSemanticAnalyzer.java ql/src/java/org/apache/hadoop/hive/ql/parse/ImportSemanticAnalyzer.java index 99a7392..a220d1a 100644 --- ql/src/java/org/apache/hadoop/hive/ql/parse/ImportSemanticAnalyzer.java +++ ql/src/java/org/apache/hadoop/hive/ql/parse/ImportSemanticAnalyzer.java @@ -33,13 +33,11 @@ import org.antlr.runtime.tree.Tree; import org.apache.commons.lang.ObjectUtils; -import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hive.common.FileUtils; import org.apache.hadoop.hive.common.StatsSetupConst; -import org.apache.hadoop.hive.common.ValidWriteIds; import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.metastore.MetaStoreUtils; import org.apache.hadoop.hive.metastore.TableType; @@ -57,6 +55,7 @@ import org.apache.hadoop.hive.ql.exec.TaskFactory; import org.apache.hadoop.hive.ql.exec.Utilities; import org.apache.hadoop.hive.ql.hooks.WriteEntity; +import org.apache.hadoop.hive.ql.io.AcidUtils; import org.apache.hadoop.hive.ql.io.HiveFileFormatUtils; import org.apache.hadoop.hive.ql.metadata.Hive; import org.apache.hadoop.hive.ql.metadata.HiveException; @@ -303,31 +302,31 @@ public static boolean prepareImport( tableExists = true; } - Long mmWriteId = null; + Long txnId = null; + int stmtId = 0; if (table != null && MetaStoreUtils.isInsertOnlyTable(table.getParameters())) { - mmWriteId = x.getHive().getNextTableWriteId(table.getDbName(), table.getTableName()); + txnId = SessionState.get().getTxnMgr().getCurrentTxnId(); } else if (table == null && isSourceMm) { // We could import everything as is - directories and IDs, but that won't work with ACID // txn ids in future. So, let's import everything into the new MM directory with ID == 0. - mmWriteId = 0l; + txnId = 0l; } - //todo due to master merge on May 4, tblDesc has been changed from CreateTableDesc to ImportTableDesc - // which may result in Import test failure + //todo due to the master merge, tblDesc is no longer CreateTableDesc, but ImportTableDesc /* - if (mmWriteId != null) { - tblDesc.setInitialMmWriteId(mmWriteId); + if (txnId != null) { + tblDesc.setInitialMmWriteId(txnId); } */ if (!replicationSpec.isInReplicationScope()) { createRegularImportTasks( tblDesc, partitionDescs, isPartSpecSet, replicationSpec, table, - fromURI, fs, wh, x, mmWriteId, isSourceMm); + fromURI, fs, wh, x, txnId, stmtId, isSourceMm); } else { createReplImportTasks( tblDesc, partitionDescs, isPartSpecSet, replicationSpec, waitOnPrecursor, table, - fromURI, fs, wh, x, mmWriteId, isSourceMm); + fromURI, fs, wh, x, txnId, stmtId, isSourceMm); } return tableExists; } @@ -362,17 +361,17 @@ private static ImportTableDesc getBaseCreateTableDescFromTable(String dbName, private static Task loadTable(URI fromURI, Table table, boolean replace, Path tgtPath, ReplicationSpec replicationSpec, EximUtil.SemanticAnalyzerWrapperContext x, - Long mmWriteId, boolean isSourceMm) { + Long txnId, int stmtId, boolean isSourceMm) { Path dataPath = new Path(fromURI.toString(), EximUtil.DATA_PATH_NAME); - Path destPath = mmWriteId == null ? x.getCtx().getExternalTmpPath(tgtPath) - : new Path(tgtPath, ValidWriteIds.getMmFilePrefix(mmWriteId)); + Path destPath = txnId == null ? x.getCtx().getExternalTmpPath(tgtPath) + : new Path(tgtPath, AcidUtils.deltaSubdir(txnId, txnId, stmtId)); Utilities.LOG14535.info("adding import work for table with source location: " + dataPath + "; table: " + tgtPath + "; copy destination " + destPath + "; mm " - + mmWriteId + " (src " + isSourceMm + ") for " + (table == null ? "a new table" : table.getTableName())); + + txnId + " (src " + isSourceMm + ") for " + (table == null ? "a new table" : table.getTableName())); Task copyTask = null; if (replicationSpec.isInReplicationScope()) { - if (isSourceMm || mmWriteId != null) { + if (isSourceMm || txnId != null) { // TODO: ReplCopyTask is completely screwed. Need to support when it's not as screwed. throw new RuntimeException( "Not supported right now because Replication is completely screwed"); @@ -385,7 +384,9 @@ private static ImportTableDesc getBaseCreateTableDescFromTable(String dbName, } LoadTableDesc loadTableWork = new LoadTableDesc(destPath, - Utilities.getTableDesc(table), new TreeMap(), replace, mmWriteId); + Utilities.getTableDesc(table), new TreeMap(), replace, txnId); + loadTableWork.setTxnId(txnId); + loadTableWork.setStmtId(stmtId); MoveWork mv = new MoveWork(x.getInputs(), x.getOutputs(), loadTableWork, null, false); Task loadTableTask = TaskFactory.get(mv, x.getConf()); copyTask.addDependentTask(loadTableTask); @@ -433,7 +434,7 @@ private static ImportTableDesc getBaseCreateTableDescFromTable(String dbName, private static Task addSinglePartition(URI fromURI, FileSystem fs, ImportTableDesc tblDesc, Table table, Warehouse wh, AddPartitionDesc addPartitionDesc, ReplicationSpec replicationSpec, - EximUtil.SemanticAnalyzerWrapperContext x, Long mmWriteId, boolean isSourceMm, + EximUtil.SemanticAnalyzerWrapperContext x, Long txnId, int stmtId, boolean isSourceMm, Task commitTask) throws MetaException, IOException, HiveException { AddPartitionDesc.OnePartitionDesc partSpec = addPartitionDesc.getPartition(0); @@ -452,17 +453,17 @@ private static ImportTableDesc getBaseCreateTableDescFromTable(String dbName, + partSpecToString(partSpec.getPartSpec()) + " with source location: " + srcLocation); Path tgtLocation = new Path(partSpec.getLocation()); - Path destPath = mmWriteId == null ? x.getCtx().getExternalTmpPath(tgtLocation) - : new Path(tgtLocation, ValidWriteIds.getMmFilePrefix(mmWriteId)); - Path moveTaskSrc = mmWriteId == null ? destPath : tgtLocation; + Path destPath = txnId == null ? x.getCtx().getExternalTmpPath(tgtLocation) + : new Path(tgtLocation, AcidUtils.deltaSubdir(txnId, txnId, stmtId)); + Path moveTaskSrc = txnId == null ? destPath : tgtLocation; Utilities.LOG14535.info("adding import work for partition with source location: " + srcLocation + "; target: " + tgtLocation + "; copy dest " + destPath + "; mm " - + mmWriteId + " (src " + isSourceMm + ") for " + partSpecToString(partSpec.getPartSpec())); + + txnId + " (src " + isSourceMm + ") for " + partSpecToString(partSpec.getPartSpec())); Task copyTask = null; if (replicationSpec.isInReplicationScope()) { - if (isSourceMm || mmWriteId != null) { + if (isSourceMm || txnId != null) { // TODO: ReplCopyTask is completely screwed. Need to support when it's not as screwed. throw new RuntimeException( "Not supported right now because Replication is completely screwed"); @@ -478,11 +479,13 @@ private static ImportTableDesc getBaseCreateTableDescFromTable(String dbName, Task addPartTask = TaskFactory.get(new DDLWork(x.getInputs(), x.getOutputs(), addPartitionDesc), x.getConf()); LoadTableDesc loadTableWork = new LoadTableDesc(moveTaskSrc, Utilities.getTableDesc(table), - partSpec.getPartSpec(), replicationSpec.isReplace(), mmWriteId); + partSpec.getPartSpec(), replicationSpec.isReplace(), txnId); + loadTableWork.setTxnId(txnId); + loadTableWork.setStmtId(stmtId); loadTableWork.setInheritTableSpecs(false); // Do not commit the write ID from each task; need to commit once. // TODO: we should just change the import to use a single MoveTask, like dynparts. - loadTableWork.setIntermediateInMmWrite(mmWriteId != null); + loadTableWork.setIntermediateInMmWrite(txnId != null); Task loadPartTask = TaskFactory.get(new MoveWork( x.getInputs(), x.getOutputs(), loadTableWork, null, false), x.getConf()); copyTask.addDependentTask(loadPartTask); @@ -778,21 +781,21 @@ private static String checkParams(Map map1, private static void createRegularImportTasks( ImportTableDesc tblDesc, List partitionDescs, boolean isPartSpecSet, ReplicationSpec replicationSpec, Table table, URI fromURI, FileSystem fs, Warehouse wh, - EximUtil.SemanticAnalyzerWrapperContext x, Long mmWriteId, boolean isSourceMm) + EximUtil.SemanticAnalyzerWrapperContext x, Long txnId, int stmtId, boolean isSourceMm) throws HiveException, URISyntaxException, IOException, MetaException { if (table != null) { if (table.isPartitioned()) { x.getLOG().debug("table partitioned"); Task ict = createImportCommitTask( - table.getDbName(), table.getTableName(), mmWriteId, x.getConf()); + table.getDbName(), table.getTableName(), txnId, stmtId, x.getConf()); for (AddPartitionDesc addPartitionDesc : partitionDescs) { Map partSpec = addPartitionDesc.getPartition(0).getPartSpec(); org.apache.hadoop.hive.ql.metadata.Partition ptn = null; if ((ptn = x.getHive().getPartition(table, partSpec, false)) == null) { x.getTasks().add(addSinglePartition( - fromURI, fs, tblDesc, table, wh, addPartitionDesc, replicationSpec, x, mmWriteId, isSourceMm, ict)); + fromURI, fs, tblDesc, table, wh, addPartitionDesc, replicationSpec, x, txnId, stmtId, isSourceMm, ict)); } else { throw new SemanticException( ErrorMsg.PARTITION_EXISTS.getMsg(partSpecToString(partSpec))); @@ -804,7 +807,7 @@ private static void createRegularImportTasks( Path tgtPath = new Path(table.getDataLocation().toString()); FileSystem tgtFs = FileSystem.get(tgtPath.toUri(), x.getConf()); checkTargetLocationEmpty(tgtFs, tgtPath, replicationSpec, x); - loadTable(fromURI, table, false, tgtPath, replicationSpec, x, mmWriteId, isSourceMm); + loadTable(fromURI, table, false, tgtPath, replicationSpec, x, txnId, stmtId, isSourceMm); } // Set this to read because we can't overwrite any existing partitions x.getOutputs().add(new WriteEntity(table, WriteEntity.WriteType.DDL_NO_LOCK)); @@ -821,10 +824,10 @@ private static void createRegularImportTasks( if (isPartitioned(tblDesc)) { Task ict = createImportCommitTask( - tblDesc.getDatabaseName(), tblDesc.getTableName(), mmWriteId, x.getConf()); + tblDesc.getDatabaseName(), tblDesc.getTableName(), txnId, stmtId, x.getConf()); for (AddPartitionDesc addPartitionDesc : partitionDescs) { t.addDependentTask(addSinglePartition(fromURI, fs, tblDesc, table, wh, addPartitionDesc, - replicationSpec, x, mmWriteId, isSourceMm, ict)); + replicationSpec, x, txnId, stmtId, isSourceMm, ict)); } } else { x.getLOG().debug("adding dependent CopyWork/MoveWork for table"); @@ -841,7 +844,7 @@ private static void createRegularImportTasks( } FileSystem tgtFs = FileSystem.get(tablePath.toUri(), x.getConf()); checkTargetLocationEmpty(tgtFs, tablePath, replicationSpec,x); - t.addDependentTask(loadTable(fromURI, table, false, tablePath, replicationSpec, x, mmWriteId, isSourceMm)); + t.addDependentTask(loadTable(fromURI, table, false, tablePath, replicationSpec, x, txnId, stmtId, isSourceMm)); } } x.getTasks().add(t); @@ -849,10 +852,10 @@ private static void createRegularImportTasks( } private static Task createImportCommitTask( - String dbName, String tblName, Long mmWriteId, HiveConf conf) { + String dbName, String tblName, Long txnId, int stmtId, HiveConf conf) { @SuppressWarnings("unchecked") - Task ict = (mmWriteId == null) ? null : TaskFactory.get( - new ImportCommitWork(dbName, tblName, mmWriteId), conf); + Task ict = (txnId == null) ? null : TaskFactory.get( + new ImportCommitWork(dbName, tblName, txnId, stmtId), conf); return ict; } @@ -864,7 +867,7 @@ private static void createReplImportTasks( List partitionDescs, boolean isPartSpecSet, ReplicationSpec replicationSpec, boolean waitOnPrecursor, Table table, URI fromURI, FileSystem fs, Warehouse wh, - EximUtil.SemanticAnalyzerWrapperContext x, Long mmWriteId, boolean isSourceMm) + EximUtil.SemanticAnalyzerWrapperContext x, Long txnId, int stmtId, boolean isSourceMm) throws HiveException, URISyntaxException, IOException, MetaException { Task dr = null; @@ -933,15 +936,15 @@ private static void createReplImportTasks( if (!replicationSpec.isMetadataOnly()) { if (isPartitioned(tblDesc)) { Task ict = createImportCommitTask( - tblDesc.getDatabaseName(), tblDesc.getTableName(), mmWriteId, x.getConf()); + tblDesc.getDatabaseName(), tblDesc.getTableName(), txnId, stmtId, x.getConf()); for (AddPartitionDesc addPartitionDesc : partitionDescs) { addPartitionDesc.setReplicationSpec(replicationSpec); t.addDependentTask( - addSinglePartition(fromURI, fs, tblDesc, table, wh, addPartitionDesc, replicationSpec, x, mmWriteId, isSourceMm, ict)); + addSinglePartition(fromURI, fs, tblDesc, table, wh, addPartitionDesc, replicationSpec, x, txnId, stmtId, isSourceMm, ict)); } } else { x.getLOG().debug("adding dependent CopyWork/MoveWork for table"); - t.addDependentTask(loadTable(fromURI, table, true, new Path(tblDesc.getLocation()), replicationSpec, x, mmWriteId, isSourceMm)); + t.addDependentTask(loadTable(fromURI, table, true, new Path(tblDesc.getLocation()), replicationSpec, x, txnId, stmtId, isSourceMm)); } } if (dr == null){ @@ -961,11 +964,11 @@ private static void createReplImportTasks( Map partSpec = addPartitionDesc.getPartition(0).getPartSpec(); org.apache.hadoop.hive.ql.metadata.Partition ptn = null; Task ict = replicationSpec.isMetadataOnly() ? null : createImportCommitTask( - tblDesc.getDatabaseName(), tblDesc.getTableName(), mmWriteId, x.getConf()); + tblDesc.getDatabaseName(), tblDesc.getTableName(), txnId, stmtId, x.getConf()); if ((ptn = x.getHive().getPartition(table, partSpec, false)) == null) { if (!replicationSpec.isMetadataOnly()){ x.getTasks().add(addSinglePartition( - fromURI, fs, tblDesc, table, wh, addPartitionDesc, replicationSpec, x, mmWriteId, isSourceMm, ict)); + fromURI, fs, tblDesc, table, wh, addPartitionDesc, replicationSpec, x, txnId, stmtId, isSourceMm, ict)); } } else { // If replicating, then the partition already existing means we need to replace, maybe, if @@ -973,7 +976,7 @@ private static void createReplImportTasks( if (replicationSpec.allowReplacementInto(ptn)){ if (!replicationSpec.isMetadataOnly()){ x.getTasks().add(addSinglePartition( - fromURI, fs, tblDesc, table, wh, addPartitionDesc, replicationSpec, x, mmWriteId, isSourceMm, ict)); + fromURI, fs, tblDesc, table, wh, addPartitionDesc, replicationSpec, x, txnId, stmtId, isSourceMm, ict)); } else { x.getTasks().add(alterSinglePartition( fromURI, fs, tblDesc, table, wh, addPartitionDesc, replicationSpec, ptn, x)); @@ -1002,7 +1005,7 @@ private static void createReplImportTasks( if (!replicationSpec.isMetadataOnly()) { // repl-imports are replace-into unless the event is insert-into loadTable(fromURI, table, replicationSpec.isReplace(), new Path(fromURI), - replicationSpec, x, mmWriteId, isSourceMm); + replicationSpec, x, txnId, stmtId, isSourceMm); } else { x.getTasks().add(alterTableTask(tblDesc, x, replicationSpec)); } diff --git ql/src/java/org/apache/hadoop/hive/ql/parse/IndexUpdater.java ql/src/java/org/apache/hadoop/hive/ql/parse/IndexUpdater.java index d3b4da1..f31775e 100644 --- ql/src/java/org/apache/hadoop/hive/ql/parse/IndexUpdater.java +++ ql/src/java/org/apache/hadoop/hive/ql/parse/IndexUpdater.java @@ -20,7 +20,6 @@ import org.apache.hadoop.conf.Configuration; -import org.apache.hadoop.hive.common.ValidWriteIds; import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.metastore.api.Index; import org.apache.hadoop.hive.ql.Driver; @@ -44,7 +43,6 @@ public class IndexUpdater { private List loadTableWork; private HiveConf conf; - private Configuration parentConf; // Assumes one instance of this + single-threaded compilation for each query. private Hive hive; private List> tasks; @@ -54,7 +52,6 @@ public IndexUpdater(List loadTableWork, Set inputs, Configuration conf) { this.loadTableWork = loadTableWork; this.inputs = inputs; - this.parentConf = conf; this.conf = new HiveConf(conf, IndexUpdater.class); this.tasks = new LinkedList>(); } @@ -63,7 +60,6 @@ public IndexUpdater(LoadTableDesc loadTableWork, Set inputs, Configuration conf) { this.loadTableWork = new LinkedList(); this.loadTableWork.add(loadTableWork); - this.parentConf = conf; this.conf = new HiveConf(conf, IndexUpdater.class); this.tasks = new LinkedList>(); this.inputs = inputs; @@ -79,15 +75,15 @@ public IndexUpdater(LoadTableDesc loadTableWork, Set inputs, Map partSpec = ltd.getPartitionSpec(); if (partSpec == null || partSpec.size() == 0) { //unpartitioned table, update whole index - doIndexUpdate(tblIndexes, ltd.getMmWriteId()); + doIndexUpdate(tblIndexes); } else { - doIndexUpdate(tblIndexes, partSpec, ltd.getMmWriteId()); + doIndexUpdate(tblIndexes, partSpec); } } return tasks; } - private void doIndexUpdate(List tblIndexes, Long mmWriteId) throws HiveException { + private void doIndexUpdate(List tblIndexes) throws HiveException { for (Index idx : tblIndexes) { StringBuilder sb = new StringBuilder(); sb.append("ALTER INDEX "); @@ -96,21 +92,20 @@ private void doIndexUpdate(List tblIndexes, Long mmWriteId) throws HiveEx sb.append(idx.getDbName()).append('.'); sb.append(idx.getOrigTableName()); sb.append(" REBUILD"); - compileRebuild(sb.toString(), idx, mmWriteId); + compileRebuild(sb.toString()); } } private void doIndexUpdate(List tblIndexes, Map - partSpec, Long mmWriteId) throws HiveException { + partSpec) throws HiveException { for (Index index : tblIndexes) { if (containsPartition(index, partSpec)) { - doIndexUpdate(index, partSpec, mmWriteId); + doIndexUpdate(index, partSpec); } } } - private void doIndexUpdate(Index index, Map partSpec, Long mmWriteId) - throws HiveException { + private void doIndexUpdate(Index index, Map partSpec) { StringBuilder ps = new StringBuilder(); boolean first = true; ps.append("("); @@ -134,18 +129,12 @@ private void doIndexUpdate(Index index, Map partSpec, Long mmWri sb.append(" PARTITION "); sb.append(ps.toString()); sb.append(" REBUILD"); - compileRebuild(sb.toString(), index, mmWriteId); + compileRebuild(sb.toString()); } - private void compileRebuild(String query, Index index, Long mmWriteId) - throws HiveException { + private void compileRebuild(String query) { Driver driver = new Driver(this.conf); driver.compile(query, false); - if (mmWriteId != null) { - // TODO: this is rather fragile - ValidWriteIds.addCurrentToConf( - parentConf, index.getDbName(), index.getOrigTableName(), mmWriteId); - } tasks.addAll(driver.getPlan().getRootTasks()); inputs.addAll(driver.getPlan().getInputs()); } diff --git ql/src/java/org/apache/hadoop/hive/ql/parse/LoadSemanticAnalyzer.java ql/src/java/org/apache/hadoop/hive/ql/parse/LoadSemanticAnalyzer.java index 04e8cac..5ef77f5 100644 --- ql/src/java/org/apache/hadoop/hive/ql/parse/LoadSemanticAnalyzer.java +++ ql/src/java/org/apache/hadoop/hive/ql/parse/LoadSemanticAnalyzer.java @@ -20,8 +20,6 @@ import org.apache.hadoop.hive.conf.HiveConf.StrictChecks; -import org.apache.hadoop.hive.conf.HiveConf.ConfVars; - import java.io.IOException; import java.io.Serializable; import java.net.URI; @@ -271,19 +269,18 @@ public void analyzeInternal(ASTNode ast) throws SemanticException { } } - Long mmWriteId = null; + Long txnId = null; + int stmtId = 0; Table tbl = ts.tableHandle; if (MetaStoreUtils.isInsertOnlyTable(tbl.getParameters())) { - try { - mmWriteId = db.getNextTableWriteId(tbl.getDbName(), tbl.getTableName()); - } catch (HiveException e) { - throw new SemanticException(e); - } + txnId = 0l; //todo to be replaced with txnId in Driver } LoadTableDesc loadTableWork; loadTableWork = new LoadTableDesc(new Path(fromURI), - Utilities.getTableDesc(ts.tableHandle), partSpec, isOverWrite, mmWriteId); + Utilities.getTableDesc(ts.tableHandle), partSpec, isOverWrite, txnId); + loadTableWork.setTxnId(txnId); + loadTableWork.setStmtId(stmtId); if (preservePartitionSpecs){ // Note : preservePartitionSpecs=true implies inheritTableSpecs=false but // but preservePartitionSpecs=false(default) here is not sufficient enough diff --git ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java index 1bd4f26..29bc183 100644 --- ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java +++ ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java @@ -74,7 +74,6 @@ import org.apache.hadoop.hive.metastore.api.Order; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; -import org.apache.hadoop.hive.metastore.api.hive_metastoreConstants; import org.apache.hadoop.hive.ql.CompilationOpContext; import org.apache.hadoop.hive.ql.Context; import org.apache.hadoop.hive.ql.ErrorMsg; @@ -6707,7 +6706,7 @@ private Operator genBucketingSortingDest(String dest, Operator input, QB qb, } input = genReduceSinkPlan(input, partnCols, sortCols, order.toString(), nullOrder.toString(), maxReducers, (AcidUtils.isFullAcidTable(dest_tab) ? - getAcidType(dest_tab, table_desc.getOutputFileFormatClass(), dest) : AcidUtils.Operation.NOT_ACID)); + getAcidType(table_desc.getOutputFileFormatClass(), dest) : AcidUtils.Operation.NOT_ACID)); reduceSinkOperatorsAddedByEnforceBucketingSorting.add((ReduceSinkOperator)input.getParentOperators().get(0)); ctx.setMultiFileSpray(multiFileSpray); ctx.setNumFiles(numFiles); @@ -6786,7 +6785,7 @@ protected Operator genFileSinkPlan(String dest, QB qb, Operator input) ListBucketingCtx lbCtx = null; Map partSpec = null; boolean isMmTable = false, isMmCtas = false; - Long mmWriteId = null; + Long txnId = null; switch (dest_type.intValue()) { case QBMetaData.DEST_TABLE: { @@ -6840,17 +6839,18 @@ protected Operator genFileSinkPlan(String dest, QB qb, Operator input) if (!isNonNativeTable) { AcidUtils.Operation acidOp = AcidUtils.Operation.NOT_ACID; if (destTableIsAcid) { - acidOp = getAcidType(dest_tab, table_desc.getOutputFileFormatClass(), dest); + acidOp = getAcidType(table_desc.getOutputFileFormatClass(), dest); checkAcidConstraints(qb, table_desc, dest_tab, acidOp); } - try { - mmWriteId = getMmWriteId(dest_tab, isMmTable); - } catch (HiveException e) { - throw new SemanticException(e); + if (MetaStoreUtils.isInsertOnlyTable(table_desc.getProperties())) { + acidOp = getAcidType(table_desc.getOutputFileFormatClass(), dest); + } + if (isMmTable) { + txnId = SessionState.get().getTxnMgr().getCurrentTxnId(); } boolean isReplace = !qb.getParseInfo().isInsertIntoTable( dest_tab.getDbName(), dest_tab.getTableName()); - ltd = new LoadTableDesc(queryTmpdir, table_desc, dpCtx, acidOp, isReplace, mmWriteId); + ltd = new LoadTableDesc(queryTmpdir, table_desc, dpCtx, acidOp, isReplace, txnId); ltd.setLbCtx(lbCtx); loadTableWork.add(ltd); } else { @@ -6903,16 +6903,16 @@ protected Operator genFileSinkPlan(String dest, QB qb, Operator input) dest_part.isStoredAsSubDirectories(), conf); AcidUtils.Operation acidOp = AcidUtils.Operation.NOT_ACID; if (destTableIsAcid) { - acidOp = getAcidType(dest_tab, table_desc.getOutputFileFormatClass(), dest); + acidOp = getAcidType(table_desc.getOutputFileFormatClass(), dest); checkAcidConstraints(qb, table_desc, dest_tab, acidOp); } - try { - mmWriteId = getMmWriteId(dest_tab, isMmTable); - } catch (HiveException e) { - // How is this a semantic exception? Stupid Java and signatures. - throw new SemanticException(e); + if (MetaStoreUtils.isInsertOnlyTable(dest_part.getTable().getParameters())) { + acidOp = getAcidType(table_desc.getOutputFileFormatClass(), dest); } - ltd = new LoadTableDesc(queryTmpdir, table_desc, dest_part.getSpec(), acidOp, mmWriteId); + if (isMmTable) { + txnId = SessionState.get().getTxnMgr().getCurrentTxnId(); + } + ltd = new LoadTableDesc(queryTmpdir, table_desc, dest_part.getSpec(), acidOp, txnId); ltd.setReplace(!qb.getParseInfo().isInsertIntoTable(dest_tab.getDbName(), dest_tab.getTableName())); ltd.setLbCtx(lbCtx); @@ -6946,10 +6946,8 @@ protected Operator genFileSinkPlan(String dest, QB qb, Operator input) destTableIsMaterialization = tblDesc.isMaterialization(); if (!destTableIsTemporary && MetaStoreUtils.isInsertOnlyTable(tblDesc.getTblProps(), true)) { isMmTable = isMmCtas = true; - // TODO# this should really get current ACID txn; assuming ACID works correctly the txn - // should have been opened to create the ACID table. For now use the first ID. - mmWriteId = 0l; - tblDesc.setInitialMmWriteId(mmWriteId); + txnId = SessionState.get().getTxnMgr().getCurrentTxnId(); + tblDesc.setInitialMmWriteId(txnId); } } else if (viewDesc != null) { field_schemas = new ArrayList(); @@ -7078,11 +7076,11 @@ protected Operator genFileSinkPlan(String dest, QB qb, Operator input) genPartnCols(dest, input, qb, table_desc, dest_tab, rsCtx); } - assert isMmTable == (mmWriteId != null); + assert isMmTable == (txnId != null); FileSinkDesc fileSinkDesc = createFileSinkDesc(dest, table_desc, dest_part, dest_path, currentTableId, destTableIsAcid, destTableIsTemporary, destTableIsMaterialization, queryTmpdir, rsCtx, dpCtx, lbCtx, fsRS, - canBeMerged, mmWriteId, isMmCtas); + canBeMerged, txnId, isMmCtas); if (isMmCtas) { // Add FSD so that the LoadTask compilation could fix up its path to avoid the move. tableDesc.setWriter(fileSinkDesc); @@ -7185,12 +7183,6 @@ private ColsAndTypes deriveFileSinkColTypes( return result; } - private static Long getMmWriteId(Table tbl, boolean isMmTable) throws HiveException { - if (!isMmTable) return null; - // Get the next write ID for this table. We will prefix files with this write ID. - return Hive.get().getNextTableWriteId(tbl.getDbName(), tbl.getTableName()); - } - private FileSinkDesc createFileSinkDesc(String dest, TableDesc table_desc, Partition dest_part, Path dest_path, int currentTableId, boolean destTableIsAcid, boolean destTableIsTemporary, @@ -7210,7 +7202,12 @@ private FileSinkDesc createFileSinkDesc(String dest, TableDesc table_desc, MetaStoreUtils.isInsertOnlyTable(dest_part.getTable().getParameters())) || (table_desc != null && MetaStoreUtils.isInsertOnlyTable(table_desc.getProperties())); - if (destTableIsAcid && !isDestInsertOnly) { + if (isDestInsertOnly) { + fileSinkDesc.setWriteType(Operation.INSERT); + acidFileSinks.add(fileSinkDesc); + } + + if (destTableIsAcid) { AcidUtils.Operation wt = updating(dest) ? AcidUtils.Operation.UPDATE : (deleting(dest) ? AcidUtils.Operation.DELETE : AcidUtils.Operation.INSERT); fileSinkDesc.setWriteType(wt); @@ -7422,7 +7419,7 @@ String fixCtasColumnName(String colName) { private void checkAcidConstraints(QB qb, TableDesc tableDesc, Table table, AcidUtils.Operation acidOp) throws SemanticException { String tableName = tableDesc.getTableName(); - if (!qb.getParseInfo().isInsertIntoTable(tableName) && !Operation.INSERT_ONLY.equals(acidOp)) { + if (!qb.getParseInfo().isInsertIntoTable(tableName)) { LOG.debug("Couldn't find table " + tableName + " in insertIntoTable"); throw new SemanticException(ErrorMsg.NO_INSERT_OVERWRITE_WITH_ACID, tableName); } @@ -7437,7 +7434,7 @@ These props are now enabled elsewhere (see commit diffs). It would be better in */ conf.set(AcidUtils.CONF_ACID_KEY, "true"); - if (!Operation.NOT_ACID.equals(acidOp) && !Operation.INSERT_ONLY.equals(acidOp)) { + if (!Operation.NOT_ACID.equals(acidOp)) { if (table.getNumBuckets() < 1) { throw new SemanticException(ErrorMsg.ACID_OP_ON_NONACID_TABLE, table.getTableName()); } @@ -11875,7 +11872,7 @@ public void validate() throws SemanticException { if (p != null) { tbl = p.getTable(); } - if (tbl != null && AcidUtils.isFullAcidTable(tbl)) { + if (tbl != null && (AcidUtils.isFullAcidTable(tbl) || MetaStoreUtils.isInsertOnlyTable(tbl.getParameters()))) { acidInQuery = true; checkAcidTxnManager(tbl); } @@ -11938,7 +11935,7 @@ public void validate() throws SemanticException { tbl = writeEntity.getTable(); } - if (tbl != null && AcidUtils.isFullAcidTable(tbl)) { + if (tbl != null && (AcidUtils.isFullAcidTable(tbl) || MetaStoreUtils.isInsertOnlyTable(tbl.getParameters()))) { acidInQuery = true; checkAcidTxnManager(tbl); } @@ -13603,12 +13600,9 @@ private boolean isAcidOutputFormat(Class of) { AcidUtils.Operation.INSERT); } - private AcidUtils.Operation getAcidType( - Table table, Class of, String dest) { + private AcidUtils.Operation getAcidType(Class of, String dest) { if (SessionState.get() == null || !SessionState.get().getTxnMgr().supportsAcid()) { return AcidUtils.Operation.NOT_ACID; - } else if (MetaStoreUtils.isInsertOnlyTable(table.getParameters())) { - return AcidUtils.Operation.INSERT_ONLY; } else if (isAcidOutputFormat(of)) { return getAcidType(dest); } else { diff --git ql/src/java/org/apache/hadoop/hive/ql/parse/TaskCompiler.java ql/src/java/org/apache/hadoop/hive/ql/parse/TaskCompiler.java index 6629a0c..356ab6f 100644 --- ql/src/java/org/apache/hadoop/hive/ql/parse/TaskCompiler.java +++ ql/src/java/org/apache/hadoop/hive/ql/parse/TaskCompiler.java @@ -20,23 +20,18 @@ import java.io.Serializable; import java.util.ArrayList; -import java.util.Collection; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedHashSet; -import java.util.LinkedList; import java.util.List; -import java.util.Queue; import java.util.Set; -import java.util.Stack; +import org.apache.hadoop.hive.ql.io.AcidUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hive.common.HiveStatsUtils; -import org.apache.hadoop.hive.common.ValidWriteIds; import org.apache.hadoop.hive.conf.HiveConf; -import org.apache.hadoop.hive.metastore.MetaStoreUtils; import org.apache.hadoop.hive.metastore.Warehouse; import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.hadoop.hive.ql.Context; @@ -44,7 +39,6 @@ import org.apache.hadoop.hive.ql.QueryState; import org.apache.hadoop.hive.ql.exec.ColumnStatsTask; import org.apache.hadoop.hive.ql.exec.FetchTask; -import org.apache.hadoop.hive.ql.exec.Operator; import org.apache.hadoop.hive.ql.exec.StatsTask; import org.apache.hadoop.hive.ql.exec.Task; import org.apache.hadoop.hive.ql.exec.TaskFactory; @@ -56,7 +50,6 @@ import org.apache.hadoop.hive.ql.metadata.Hive; import org.apache.hadoop.hive.ql.metadata.HiveException; import org.apache.hadoop.hive.ql.optimizer.GenMapRedUtils; -import org.apache.hadoop.hive.ql.optimizer.physical.AnnotateRunTimeStatsOptimizer; import org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.AnalyzeRewriteContext; import org.apache.hadoop.hive.ql.plan.ColumnStatsDesc; import org.apache.hadoop.hive.ql.plan.ColumnStatsWork; @@ -319,21 +312,22 @@ public void compile(final ParseContext pCtx, final List sourceDirs, final List targetDi return srcDirs; } + public void setSourceDirs(List srcs) { + this.srcDirs = srcs; + } + + public void setTargetDirs(final List targetDir) { + this.targetDirs = targetDir; + } + @Explain(displayName = "hdfs directory") public boolean getIsDfsDir() { return isDfsDir; diff --git ql/src/java/org/apache/hadoop/hive/ql/plan/LoadTableDesc.java ql/src/java/org/apache/hadoop/hive/ql/plan/LoadTableDesc.java index 762d946..5bb52b4 100644 --- ql/src/java/org/apache/hadoop/hive/ql/plan/LoadTableDesc.java +++ ql/src/java/org/apache/hadoop/hive/ql/plan/LoadTableDesc.java @@ -42,7 +42,8 @@ // Need to remember whether this is an acid compliant operation, and if so whether it is an // insert, update, or delete. private AcidUtils.Operation writeType; - private Long mmWriteId; + private Long txnId; + private int stmtId; // TODO: the below seems like they should just be combined into partitionDesc private org.apache.hadoop.hive.ql.plan.TableDesc table; @@ -65,11 +66,11 @@ public LoadTableDesc(final Path sourcePath, final org.apache.hadoop.hive.ql.plan.TableDesc table, final Map partitionSpec, final boolean replace, - final AcidUtils.Operation writeType, Long mmWriteId) { + final AcidUtils.Operation writeType, Long txnId) { super(sourcePath); Utilities.LOG14535.info("creating part LTD from " + sourcePath + " to " + ((table.getProperties() == null) ? "null" : table.getTableName())); - init(table, partitionSpec, replace, writeType, mmWriteId); + init(table, partitionSpec, replace, writeType, txnId); } /** @@ -83,15 +84,15 @@ public LoadTableDesc(final Path sourcePath, final TableDesc table, final Map partitionSpec, final boolean replace, - final Long mmWriteId) { - this(sourcePath, table, partitionSpec, replace, AcidUtils.Operation.NOT_ACID, mmWriteId); + final Long txnId) { + this(sourcePath, table, partitionSpec, replace, AcidUtils.Operation.NOT_ACID, txnId); } public LoadTableDesc(final Path sourcePath, final org.apache.hadoop.hive.ql.plan.TableDesc table, final Map partitionSpec, - final AcidUtils.Operation writeType, Long mmWriteId) { - this(sourcePath, table, partitionSpec, true, writeType, mmWriteId); + final AcidUtils.Operation writeType, Long txnId) { + this(sourcePath, table, partitionSpec, true, writeType, txnId); } /** @@ -102,22 +103,22 @@ public LoadTableDesc(final Path sourcePath, */ public LoadTableDesc(final Path sourcePath, final org.apache.hadoop.hive.ql.plan.TableDesc table, - final Map partitionSpec, Long mmWriteId) { - this(sourcePath, table, partitionSpec, true, AcidUtils.Operation.NOT_ACID, mmWriteId); + final Map partitionSpec, Long txnId) { + this(sourcePath, table, partitionSpec, true, AcidUtils.Operation.NOT_ACID, txnId); } public LoadTableDesc(final Path sourcePath, final org.apache.hadoop.hive.ql.plan.TableDesc table, final DynamicPartitionCtx dpCtx, final AcidUtils.Operation writeType, - boolean isReplace, Long mmWriteId) { + boolean isReplace, Long txnId) { super(sourcePath); Utilities.LOG14535.info("creating LTD from " + sourcePath + " to " + table.getTableName()/*, new Exception()*/); this.dpCtx = dpCtx; if (dpCtx != null && dpCtx.getPartSpec() != null && partitionSpec == null) { - init(table, dpCtx.getPartSpec(), isReplace, writeType, mmWriteId); + init(table, dpCtx.getPartSpec(), isReplace, writeType, txnId); } else { - init(table, new LinkedHashMap(), isReplace, writeType, mmWriteId); + init(table, new LinkedHashMap(), isReplace, writeType, txnId); } } @@ -125,12 +126,12 @@ private void init( final org.apache.hadoop.hive.ql.plan.TableDesc table, final Map partitionSpec, final boolean replace, - AcidUtils.Operation writeType, Long mmWriteId) { + AcidUtils.Operation writeType, Long txnId) { this.table = table; this.partitionSpec = partitionSpec; this.replace = replace; this.writeType = writeType; - this.mmWriteId = mmWriteId; + this.txnId = txnId; } @Explain(displayName = "table", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED }) @@ -158,11 +159,11 @@ public boolean getReplace() { @Explain(displayName = "micromanaged table") public Boolean isMmTableExplain() { - return mmWriteId != null? true : null; + return txnId != null? true : null; } public boolean isMmTable() { - return mmWriteId != null; + return txnId != null; } public void setReplace(boolean replace) { @@ -203,8 +204,20 @@ public void setLbCtx(ListBucketingCtx lbCtx) { return writeType; } - public Long getMmWriteId() { - return mmWriteId; + public Long getTxnId() { + return txnId; + } + + public void setTxnId(Long txnId) { + this.txnId = txnId; + } + + public int getStmtId() { + return stmtId; + } + + public void setStmtId(int stmtId) { + this.stmtId = stmtId; } public void setIntermediateInMmWrite(boolean b) { diff --git ql/src/test/org/apache/hadoop/hive/ql/exec/TestExecDriver.java ql/src/test/org/apache/hadoop/hive/ql/exec/TestExecDriver.java index 4a13e1f..55b9da9 100644 --- ql/src/test/org/apache/hadoop/hive/ql/exec/TestExecDriver.java +++ ql/src/test/org/apache/hadoop/hive/ql/exec/TestExecDriver.java @@ -141,7 +141,7 @@ db.dropTable(MetaStoreUtils.DEFAULT_DATABASE_NAME, src, true, true); db.createTable(src, cols, null, TextInputFormat.class, HiveIgnoreKeyTextOutputFormat.class); - db.loadTable(hadoopDataFile[i], src, false, true, false, false, false, null); + db.loadTable(hadoopDataFile[i], src, false, true, false, false, false, null, 0); i++; } diff --git ql/src/test/queries/clientpositive/mm_all.q ql/src/test/queries/clientpositive/mm_all.q index e2c8e97..8971292 100644 --- ql/src/test/queries/clientpositive/mm_all.q +++ ql/src/test/queries/clientpositive/mm_all.q @@ -33,7 +33,6 @@ drop table part_mm; drop table simple_mm; create table simple_mm(key int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only"); insert into table simple_mm select key from intermediate; -insert overwrite table simple_mm select key from intermediate; select * from simple_mm order by key; insert into table simple_mm select key from intermediate; select * from simple_mm order by key; @@ -193,47 +192,6 @@ set hive.merge.mapredfiles=false; -- TODO: need to include merge+union+DP, but it's broken for now -drop table ctas0_mm; -create table ctas0_mm tblproperties ("transactional"="true", "transactional_properties"="insert_only") as select * from intermediate; -select * from ctas0_mm; -drop table ctas0_mm; - -drop table ctas1_mm; -create table ctas1_mm tblproperties ("transactional"="true", "transactional_properties"="insert_only") as - select * from intermediate union all select * from intermediate; -select * from ctas1_mm; -drop table ctas1_mm; - - - -drop table iow0_mm; -create table iow0_mm(key int) tblproperties("transactional"="true", "transactional_properties"="insert_only"); -insert overwrite table iow0_mm select key from intermediate; -insert into table iow0_mm select key + 1 from intermediate; -select * from iow0_mm order by key; -insert overwrite table iow0_mm select key + 2 from intermediate; -select * from iow0_mm order by key; -drop table iow0_mm; - - -drop table iow1_mm; -create table iow1_mm(key int) partitioned by (key2 int) tblproperties("transactional"="true", "transactional_properties"="insert_only"); -insert overwrite table iow1_mm partition (key2) -select key as k1, key from intermediate union all select key as k1, key from intermediate; -insert into table iow1_mm partition (key2) -select key + 1 as k1, key from intermediate union all select key as k1, key from intermediate; -select * from iow1_mm order by key, key2; -insert overwrite table iow1_mm partition (key2) -select key + 3 as k1, key from intermediate union all select key + 4 as k1, key from intermediate; -select * from iow1_mm order by key, key2; -insert overwrite table iow1_mm partition (key2) -select key + 3 as k1, key + 3 from intermediate union all select key + 2 as k1, key + 2 from intermediate; -select * from iow1_mm order by key, key2; -drop table iow1_mm; - - - - drop table load0_mm; create table load0_mm (key string, value string) stored as textfile tblproperties("transactional"="true", "transactional_properties"="insert_only"); load data local inpath '../../data/files/kv1.txt' into table load0_mm; @@ -279,174 +237,11 @@ drop table load2_mm; drop table intermediate2; -drop table intermediate_nonpart; -drop table intermmediate_part; -drop table intermmediate_nonpart; -create table intermediate_nonpart(key int, p int); -insert into intermediate_nonpart select * from intermediate; -create table intermmediate_nonpart(key int, p int) tblproperties("transactional"="true", "transactional_properties"="insert_only"); -insert into intermmediate_nonpart select * from intermediate; -create table intermmediate(key int) partitioned by (p int) tblproperties("transactional"="true", "transactional_properties"="insert_only"); -insert into table intermmediate partition(p) select key, p from intermediate; - -set hive.exim.test.mode=true; - -export table intermediate_nonpart to 'ql/test/data/exports/intermediate_nonpart'; -export table intermmediate_nonpart to 'ql/test/data/exports/intermmediate_nonpart'; -export table intermediate to 'ql/test/data/exports/intermediate_part'; -export table intermmediate to 'ql/test/data/exports/intermmediate_part'; - -drop table intermediate_nonpart; -drop table intermmediate_part; -drop table intermmediate_nonpart; - --- non-MM export to MM table, with and without partitions - -drop table import0_mm; -create table import0_mm(key int, p int) tblproperties("transactional"="true", "transactional_properties"="insert_only"); -import table import0_mm from 'ql/test/data/exports/intermediate_nonpart'; -select * from import0_mm order by key, p; -drop table import0_mm; - - - -drop table import1_mm; -create table import1_mm(key int) partitioned by (p int) - stored as orc tblproperties("transactional"="true", "transactional_properties"="insert_only"); -import table import1_mm from 'ql/test/data/exports/intermediate_part'; -select * from import1_mm order by key, p; -drop table import1_mm; - - --- MM export into new MM table, non-part and part - ---drop table import2_mm; ---import table import2_mm from 'ql/test/data/exports/intermmediate_nonpart'; ---desc import2_mm; ---select * from import2_mm order by key, p; ---drop table import2_mm; --- ---drop table import3_mm; ---import table import3_mm from 'ql/test/data/exports/intermmediate_part'; ---desc import3_mm; ---select * from import3_mm order by key, p; ---drop table import3_mm; - --- MM export into existing MM table, non-part and partial part - -drop table import4_mm; -create table import4_mm(key int, p int) tblproperties("transactional"="true", "transactional_properties"="insert_only"); -import table import4_mm from 'ql/test/data/exports/intermmediate_nonpart'; -select * from import4_mm order by key, p; -drop table import4_mm; - -drop table import5_mm; -create table import5_mm(key int) partitioned by (p int) tblproperties("transactional"="true", "transactional_properties"="insert_only"); -import table import5_mm partition(p=455) from 'ql/test/data/exports/intermmediate_part'; -select * from import5_mm order by key, p; -drop table import5_mm; - --- MM export into existing non-MM table, non-part and part - -drop table import6_mm; -create table import6_mm(key int, p int); -import table import6_mm from 'ql/test/data/exports/intermmediate_nonpart'; -select * from import6_mm order by key, p; -drop table import6_mm; - -drop table import7_mm; -create table import7_mm(key int) partitioned by (p int); -import table import7_mm from 'ql/test/data/exports/intermmediate_part'; -select * from import7_mm order by key, p; -drop table import7_mm; - -set hive.exim.test.mode=false; - - - drop table multi0_1_mm; drop table multi0_2_mm; create table multi0_1_mm (key int, key2 int) tblproperties("transactional"="true", "transactional_properties"="insert_only"); create table multi0_2_mm (key int, key2 int) tblproperties("transactional"="true", "transactional_properties"="insert_only"); -from intermediate -insert overwrite table multi0_1_mm select key, p -insert overwrite table multi0_2_mm select p, key; - -select * from multi0_1_mm order by key, key2; -select * from multi0_2_mm order by key, key2; - -set hive.merge.mapredfiles=true; -set hive.merge.sparkfiles=true; -set hive.merge.tezfiles=true; - -from intermediate -insert into table multi0_1_mm select p, key -insert overwrite table multi0_2_mm select key, p; -select * from multi0_1_mm order by key, key2; -select * from multi0_2_mm order by key, key2; - -set hive.merge.mapredfiles=false; -set hive.merge.sparkfiles=false; -set hive.merge.tezfiles=false; - -drop table multi0_1_mm; -drop table multi0_2_mm; - - -drop table multi1_mm; -create table multi1_mm (key int, key2 int) partitioned by (p int) tblproperties("transactional"="true", "transactional_properties"="insert_only"); -from intermediate -insert into table multi1_mm partition(p=1) select p, key -insert into table multi1_mm partition(p=2) select key, p; -select * from multi1_mm order by key, key2, p; -from intermediate -insert into table multi1_mm partition(p=2) select p, key -insert overwrite table multi1_mm partition(p=1) select key, p; -select * from multi1_mm order by key, key2, p; - -from intermediate -insert into table multi1_mm partition(p) select p, key, p -insert into table multi1_mm partition(p=1) select key, p; -select key, key2, p from multi1_mm order by key, key2, p; - -from intermediate -insert into table multi1_mm partition(p) select p, key, 1 -insert into table multi1_mm partition(p=1) select key, p; -select key, key2, p from multi1_mm order by key, key2, p; -drop table multi1_mm; - - - - -set datanucleus.cache.collections=false; -set hive.stats.autogather=true; - -drop table stats_mm; -create table stats_mm(key int) tblproperties("transactional"="true", "transactional_properties"="insert_only"); -insert overwrite table stats_mm select key from intermediate; -desc formatted stats_mm; - -insert into table stats_mm select key from intermediate; -desc formatted stats_mm; -drop table stats_mm; - -drop table stats2_mm; -create table stats2_mm tblproperties("transactional"="true", "transactional_properties"="insert_only") as select array(key, value) from src; -desc formatted stats2_mm; -drop table stats2_mm; - - -set hive.optimize.skewjoin=true; -set hive.skewjoin.key=2; -set hive.optimize.metadataonly=false; - -CREATE TABLE skewjoin_mm(key INT, value STRING) STORED AS TEXTFILE tblproperties ("transactional"="true", "transactional_properties"="insert_only"); -FROM src src1 JOIN src src2 ON (src1.key = src2.key) INSERT OVERWRITE TABLE skewjoin_mm SELECT src1.key, src2.value; -select count(distinct key) from skewjoin_mm; -drop table skewjoin_mm; - -set hive.optimize.skewjoin=false; set hive.optimize.index.filter=true; set hive.auto.convert.join=false; diff --git ql/src/test/queries/clientpositive/mm_conversions.q ql/src/test/queries/clientpositive/mm_conversions.q index 2dc7a74..62faeac 100644 --- ql/src/test/queries/clientpositive/mm_conversions.q +++ ql/src/test/queries/clientpositive/mm_conversions.q @@ -4,7 +4,8 @@ set hive.fetch.task.conversion=none; set tez.grouping.min-size=1; set tez.grouping.max-size=2; set hive.exec.dynamic.partition.mode=nonstrict; - +set hive.support.concurrency=true; +set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager; -- Force multiple writers when reading drop table intermediate; @@ -13,29 +14,31 @@ insert into table intermediate partition(p='455') select distinct key from src w insert into table intermediate partition(p='456') select distinct key from src where key is not null order by key asc limit 1; insert into table intermediate partition(p='457') select distinct key from src where key >= 100 order by key asc limit 1; -drop table simple_from_mm; -create table simple_from_mm(key int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only"); -insert into table simple_from_mm select key from intermediate; -insert into table simple_from_mm select key from intermediate; -select * from simple_from_mm s1 order by key; -alter table simple_from_mm unset tblproperties('transactional_properties', 'transactional'); -select * from simple_from_mm s2 order by key; -insert into table simple_from_mm select key from intermediate; -select * from simple_from_mm s3 order by key; -alter table simple_from_mm set tblproperties("transactional"="true", "transactional_properties"="insert_only"); -select * from simple_from_mm s4 order by key; -insert into table simple_from_mm select key from intermediate; -select * from simple_from_mm s5 order by key; -alter table simple_from_mm set tblproperties("transactional"="false", 'transactional_properties'='false'); -select * from simple_from_mm s6 order by key; -insert into table simple_from_mm select key from intermediate; -select * from simple_from_mm s7 order by key; -drop table simple_from_mm; +drop table simple_from_mm1; +create table simple_from_mm1(key int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only"); +insert into table simple_from_mm1 select key from intermediate; +insert into table simple_from_mm1 select key from intermediate; +select * from simple_from_mm1 s1 order by key; +alter table simple_from_mm1 unset tblproperties('transactional_properties', 'transactional'); +select * from simple_from_mm1 s2 order by key; +insert into table simple_from_mm1 select key from intermediate; +select * from simple_from_mm1 s3 order by key; +drop table simple_from_mm1; + +drop table simple_from_mm2; +create table simple_from_mm2(key int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only"); +insert into table simple_from_mm2 select key from intermediate; +insert into table simple_from_mm2 select key from intermediate; +select * from simple_from_mm2 s1 order by key; +alter table simple_from_mm2 set tblproperties("transactional"="false", 'transactional_properties'='false'); +select * from simple_from_mm2 s2 order by key; +insert into table simple_from_mm2 select key from intermediate; +select * from simple_from_mm2 s3 order by key; +drop table simple_from_mm2; drop table simple_to_mm; create table simple_to_mm(key int) stored as orc; insert into table simple_to_mm select key from intermediate; -insert into table simple_to_mm select key from intermediate; select * from simple_to_mm s1 order by key; alter table simple_to_mm set tblproperties("transactional"="true", "transactional_properties"="insert_only"); select * from simple_to_mm s2 order by key; @@ -44,27 +47,29 @@ insert into table simple_to_mm select key from intermediate; select * from simple_to_mm s3 order by key; drop table simple_to_mm; -drop table part_from_mm; -create table part_from_mm(key int) partitioned by (key_mm int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only"); -insert into table part_from_mm partition(key_mm='455') select key from intermediate; -insert into table part_from_mm partition(key_mm='455') select key from intermediate; -insert into table part_from_mm partition(key_mm='456') select key from intermediate; -select * from part_from_mm s1 order by key, key_mm; -alter table part_from_mm unset tblproperties('transactional_properties', 'transactional'); -select * from part_from_mm s2 order by key, key_mm; -insert into table part_from_mm partition(key_mm='456') select key from intermediate; -insert into table part_from_mm partition(key_mm='457') select key from intermediate; -select * from part_from_mm s3 order by key, key_mm; -alter table part_from_mm set tblproperties("transactional"="true", "transactional_properties"="insert_only"); -select * from part_from_mm s4 order by key, key_mm; -insert into table part_from_mm partition(key_mm='456') select key from intermediate; -insert into table part_from_mm partition(key_mm='455') select key from intermediate; -select * from part_from_mm s5 order by key, key_mm; -alter table part_from_mm set tblproperties("transactional"="false", 'transactional_properties'='false'); -select * from part_from_mm s6 order by key, key_mm; -insert into table part_from_mm partition(key_mm='457') select key from intermediate; -select * from part_from_mm s7 order by key, key_mm; -drop table part_from_mm; +drop table part_from_mm1; +create table part_from_mm1(key int) partitioned by (key_mm int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only"); +insert into table part_from_mm1 partition(key_mm='455') select key from intermediate; +insert into table part_from_mm1 partition(key_mm='455') select key from intermediate; +insert into table part_from_mm1 partition(key_mm='456') select key from intermediate; +select * from part_from_mm1 s1 order by key, key_mm; +alter table part_from_mm1 unset tblproperties('transactional_properties', 'transactional'); +select * from part_from_mm1 s2 order by key, key_mm; +insert into table part_from_mm1 partition(key_mm='456') select key from intermediate; +insert into table part_from_mm1 partition(key_mm='457') select key from intermediate; +select * from part_from_mm1 s3 order by key, key_mm; +drop table part_from_mm1; + +drop table part_from_mm2; +create table part_from_mm2(key int) partitioned by (key_mm int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only"); +insert into table part_from_mm2 partition(key_mm='456') select key from intermediate;--fails here +insert into table part_from_mm2 partition(key_mm='455') select key from intermediate; +select * from part_from_mm2 s1 order by key, key_mm; +alter table part_from_mm2 set tblproperties("transactional"="false", 'transactional_properties'='false'); +select * from part_from_mm2 s2 order by key, key_mm; +insert into table part_from_mm2 partition(key_mm='457') select key from intermediate; +select * from part_from_mm2 s3 order by key, key_mm; +drop table part_from_mm2; drop table part_to_mm; create table part_to_mm(key int) partitioned by (key_mm int) stored as orc; diff --git ql/src/test/queries/clientpositive/mm_exim.q ql/src/test/queries/clientpositive/mm_exim.q new file mode 100644 index 0000000..2cdb001 --- /dev/null +++ ql/src/test/queries/clientpositive/mm_exim.q @@ -0,0 +1,98 @@ +set hive.mapred.mode=nonstrict; +set hive.explain.user=false; +set hive.fetch.task.conversion=none; +set tez.grouping.min-size=1; +set tez.grouping.max-size=2; +set hive.exec.dynamic.partition.mode=nonstrict; +set hive.support.concurrency=true; +set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager; + + +drop table intermediate; +create table intermediate(key int) partitioned by (p int) stored as orc; +insert into table intermediate partition(p='455') select distinct key from src where key >= 0 order by key desc limit 2; +insert into table intermediate partition(p='456') select distinct key from src where key is not null order by key asc limit 2; +insert into table intermediate partition(p='457') select distinct key from src where key >= 100 order by key asc limit 2; + +drop table intermediate_nonpart; +drop table intermmediate_part; +drop table intermmediate_nonpart; +create table intermediate_nonpart(key int, p int); +insert into intermediate_nonpart select * from intermediate; +create table intermmediate_nonpart(key int, p int) tblproperties("transactional"="true", "transactional_properties"="insert_only"); +insert into intermmediate_nonpart select * from intermediate; +create table intermmediate(key int) partitioned by (p int) tblproperties("transactional"="true", "transactional_properties"="insert_only"); +insert into table intermmediate partition(p) select key, p from intermediate; + +set hive.exim.test.mode=true; + +export table intermediate_nonpart to 'ql/test/data/exports/intermediate_nonpart'; +export table intermmediate_nonpart to 'ql/test/data/exports/intermmediate_nonpart'; +export table intermediate to 'ql/test/data/exports/intermediate_part'; +export table intermmediate to 'ql/test/data/exports/intermmediate_part'; + +drop table intermediate_nonpart; +drop table intermmediate_part; +drop table intermmediate_nonpart; + +-- non-MM export to MM table, with and without partitions + +drop table import0_mm; +create table import0_mm(key int, p int) tblproperties("transactional"="true", "transactional_properties"="insert_only"); +import table import0_mm from 'ql/test/data/exports/intermediate_nonpart'; +select * from import0_mm order by key, p; +drop table import0_mm; + + + +drop table import1_mm; +create table import1_mm(key int) partitioned by (p int) + stored as orc tblproperties("transactional"="true", "transactional_properties"="insert_only"); +import table import1_mm from 'ql/test/data/exports/intermediate_part'; +select * from import1_mm order by key, p; +drop table import1_mm; + + +-- MM export into new MM table, non-part and part + +--drop table import2_mm; +--import table import2_mm from 'ql/test/data/exports/intermmediate_nonpart'; +--desc import2_mm; +--select * from import2_mm order by key, p; +--drop table import2_mm; +-- +--drop table import3_mm; +--import table import3_mm from 'ql/test/data/exports/intermmediate_part'; +--desc import3_mm; +--select * from import3_mm order by key, p; +--drop table import3_mm; + +-- MM export into existing MM table, non-part and partial part + +drop table import4_mm; +create table import4_mm(key int, p int) tblproperties("transactional"="true", "transactional_properties"="insert_only"); +import table import4_mm from 'ql/test/data/exports/intermmediate_nonpart'; +select * from import4_mm order by key, p; +drop table import4_mm; + +drop table import5_mm; +create table import5_mm(key int) partitioned by (p int) tblproperties("transactional"="true", "transactional_properties"="insert_only"); +import table import5_mm partition(p=455) from 'ql/test/data/exports/intermmediate_part'; +select * from import5_mm order by key, p; +drop table import5_mm; + +-- MM export into existing non-MM table, non-part and part + +drop table import6_mm; +create table import6_mm(key int, p int); +import table import6_mm from 'ql/test/data/exports/intermmediate_nonpart'; +select * from import6_mm order by key, p; +drop table import6_mm; + +drop table import7_mm; +create table import7_mm(key int) partitioned by (p int); +import table import7_mm from 'ql/test/data/exports/intermmediate_part'; +select * from import7_mm order by key, p; +drop table import7_mm; + +set hive.exim.test.mode=false; \ No newline at end of file diff --git ql/src/test/queries/clientpositive/mm_insertonly_acid.q ql/src/test/queries/clientpositive/mm_insertonly_acid.q deleted file mode 100644 index 7da99c5..0000000 --- ql/src/test/queries/clientpositive/mm_insertonly_acid.q +++ /dev/null @@ -1,16 +0,0 @@ -set hive.mapred.mode=nonstrict; -set hive.explain.user=false; -set hive.fetch.task.conversion=none; -set hive.exec.dynamic.partition.mode=nonstrict; -set hive.support.concurrency=true; -set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager; - - -drop table qtr_acid; -create table qtr_acid (key int) partitioned by (p int) tblproperties ("transactional"="true", "transactional_properties"="insert_only"); -insert into table qtr_acid partition(p='123') select distinct key from src where key > 0 order by key asc limit 10; -insert into table qtr_acid partition(p='456') select distinct key from src where key > 0 order by key desc limit 10; -explain -select * from qtr_acid order by key; -select * from qtr_acid order by key; -drop table qtr_acid; \ No newline at end of file diff --git ql/src/test/results/clientpositive/llap/mm_all.q.out ql/src/test/results/clientpositive/llap/mm_all.q.out index 49bb8cf..62ad7b6 100644 --- ql/src/test/results/clientpositive/llap/mm_all.q.out +++ ql/src/test/results/clientpositive/llap/mm_all.q.out @@ -68,19 +68,20 @@ STAGE PLANS: Map Operator Tree: TableScan alias: intermediate - Statistics: Num rows: 6 Data size: 72 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 8 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: key (type: int) outputColumnNames: _col0 - Statistics: Num rows: 6 Data size: 72 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 8 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 72 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 8 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde name: default.part_mm + Write Type: INSERT Execution mode: llap LLAP IO: all inputs @@ -160,24 +161,6 @@ POSTHOOK: Input: default@part_mm POSTHOOK: Input: default@part_mm@key_mm=455 POSTHOOK: Input: default@part_mm@key_mm=456 #### A masked pattern was here #### -0 455 -0 455 -0 456 -10 455 -10 455 -10 456 -97 455 -97 455 -97 456 -98 455 -98 455 -98 456 -100 455 -100 455 -100 456 -103 455 -103 455 -103 456 PREHOOK: query: select * from part_mm order by key, key_mm PREHOOK: type: QUERY PREHOOK: Input: default@part_mm @@ -190,24 +173,6 @@ POSTHOOK: Input: default@part_mm POSTHOOK: Input: default@part_mm@key_mm=455 POSTHOOK: Input: default@part_mm@key_mm=456 #### A masked pattern was here #### -0 455 -0 455 -0 456 -10 455 -10 455 -10 456 -97 455 -97 455 -97 456 -98 455 -98 455 -98 456 -100 455 -100 455 -100 456 -103 455 -103 455 -103 456 PREHOOK: query: truncate table part_mm PREHOOK: type: TRUNCATETABLE PREHOOK: Output: default@part_mm@key_mm=455 @@ -263,21 +228,6 @@ POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 POSTHOOK: Output: default@simple_mm POSTHOOK: Lineage: simple_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: insert overwrite table simple_mm select key from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@simple_mm -POSTHOOK: query: insert overwrite table simple_mm select key from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@simple_mm -POSTHOOK: Lineage: simple_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] PREHOOK: query: select * from simple_mm order by key PREHOOK: type: QUERY PREHOOK: Input: default@simple_mm @@ -286,12 +236,6 @@ POSTHOOK: query: select * from simple_mm order by key POSTHOOK: type: QUERY POSTHOOK: Input: default@simple_mm #### A masked pattern was here #### -0 -10 -97 -98 -100 -103 PREHOOK: query: insert into table simple_mm select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate @@ -315,18 +259,6 @@ POSTHOOK: query: select * from simple_mm order by key POSTHOOK: type: QUERY POSTHOOK: Input: default@simple_mm #### A masked pattern was here #### -0 -0 -10 -10 -97 -97 -98 -98 -100 -100 -103 -103 PREHOOK: query: truncate table simple_mm PREHOOK: type: TRUNCATETABLE PREHOOK: Output: default@simple_mm @@ -376,44 +308,14 @@ POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@dp_mm@key1=123/key2=0 -POSTHOOK: Output: default@dp_mm@key1=123/key2=10 -POSTHOOK: Output: default@dp_mm@key1=123/key2=100 -POSTHOOK: Output: default@dp_mm@key1=123/key2=103 -POSTHOOK: Output: default@dp_mm@key1=123/key2=97 -POSTHOOK: Output: default@dp_mm@key1=123/key2=98 -POSTHOOK: Lineage: dp_mm PARTITION(key1=123,key2=0).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: dp_mm PARTITION(key1=123,key2=100).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: dp_mm PARTITION(key1=123,key2=103).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: dp_mm PARTITION(key1=123,key2=10).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: dp_mm PARTITION(key1=123,key2=97).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: dp_mm PARTITION(key1=123,key2=98).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] PREHOOK: query: select * from dp_mm order by key PREHOOK: type: QUERY PREHOOK: Input: default@dp_mm -PREHOOK: Input: default@dp_mm@key1=123/key2=0 -PREHOOK: Input: default@dp_mm@key1=123/key2=10 -PREHOOK: Input: default@dp_mm@key1=123/key2=100 -PREHOOK: Input: default@dp_mm@key1=123/key2=103 -PREHOOK: Input: default@dp_mm@key1=123/key2=97 -PREHOOK: Input: default@dp_mm@key1=123/key2=98 #### A masked pattern was here #### POSTHOOK: query: select * from dp_mm order by key POSTHOOK: type: QUERY POSTHOOK: Input: default@dp_mm -POSTHOOK: Input: default@dp_mm@key1=123/key2=0 -POSTHOOK: Input: default@dp_mm@key1=123/key2=10 -POSTHOOK: Input: default@dp_mm@key1=123/key2=100 -POSTHOOK: Input: default@dp_mm@key1=123/key2=103 -POSTHOOK: Input: default@dp_mm@key1=123/key2=97 -POSTHOOK: Input: default@dp_mm@key1=123/key2=98 -#### A masked pattern was here #### -0 123 0 -10 123 10 -97 123 97 -98 123 98 -100 123 100 -103 123 103 +#### A masked pattern was here #### PREHOOK: query: drop table dp_mm PREHOOK: type: DROPTABLE PREHOOK: Input: default@dp_mm @@ -461,18 +363,6 @@ POSTHOOK: query: select * from union_mm order by id POSTHOOK: type: QUERY POSTHOOK: Input: default@union_mm #### A masked pattern was here #### -0 -1 -10 -11 -97 -98 -98 -99 -100 -101 -103 -104 PREHOOK: query: insert into table union_mm select p from ( @@ -512,35 +402,6 @@ POSTHOOK: query: select * from union_mm order by id POSTHOOK: type: QUERY POSTHOOK: Input: default@union_mm #### A masked pattern was here #### -0 -0 -1 -1 -2 -10 -10 -11 -11 -12 -97 -97 -98 -98 -98 -99 -99 -99 -100 -100 -100 -101 -101 -102 -103 -103 -104 -104 -105 PREHOOK: query: insert into table union_mm SELECT p FROM ( @@ -594,50 +455,6 @@ POSTHOOK: query: select * from union_mm order by id POSTHOOK: type: QUERY POSTHOOK: Input: default@union_mm #### A masked pattern was here #### -0 -0 -0 -1 -1 -1 -2 -2 -10 -10 -10 -11 -11 -11 -12 -12 -97 -97 -97 -98 -98 -98 -98 -99 -99 -99 -99 -100 -100 -100 -100 -101 -101 -101 -102 -102 -103 -103 -103 -104 -104 -104 -105 -105 PREHOOK: query: drop table union_mm PREHOOK: type: DROPTABLE PREHOOK: Input: default@union_mm @@ -675,70 +492,14 @@ POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@partunion_mm@key=0 -POSTHOOK: Output: default@partunion_mm@key=1 -POSTHOOK: Output: default@partunion_mm@key=10 -POSTHOOK: Output: default@partunion_mm@key=100 -POSTHOOK: Output: default@partunion_mm@key=101 -POSTHOOK: Output: default@partunion_mm@key=103 -POSTHOOK: Output: default@partunion_mm@key=104 -POSTHOOK: Output: default@partunion_mm@key=11 -POSTHOOK: Output: default@partunion_mm@key=97 -POSTHOOK: Output: default@partunion_mm@key=98 -POSTHOOK: Output: default@partunion_mm@key=99 -POSTHOOK: Lineage: partunion_mm PARTITION(key=0).id EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: partunion_mm PARTITION(key=100).id EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: partunion_mm PARTITION(key=101).id EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: partunion_mm PARTITION(key=103).id EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: partunion_mm PARTITION(key=104).id EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: partunion_mm PARTITION(key=10).id EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: partunion_mm PARTITION(key=11).id EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: partunion_mm PARTITION(key=1).id EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: partunion_mm PARTITION(key=97).id EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: partunion_mm PARTITION(key=98).id EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: partunion_mm PARTITION(key=99).id EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] PREHOOK: query: select * from partunion_mm order by id PREHOOK: type: QUERY PREHOOK: Input: default@partunion_mm -PREHOOK: Input: default@partunion_mm@key=0 -PREHOOK: Input: default@partunion_mm@key=1 -PREHOOK: Input: default@partunion_mm@key=10 -PREHOOK: Input: default@partunion_mm@key=100 -PREHOOK: Input: default@partunion_mm@key=101 -PREHOOK: Input: default@partunion_mm@key=103 -PREHOOK: Input: default@partunion_mm@key=104 -PREHOOK: Input: default@partunion_mm@key=11 -PREHOOK: Input: default@partunion_mm@key=97 -PREHOOK: Input: default@partunion_mm@key=98 -PREHOOK: Input: default@partunion_mm@key=99 #### A masked pattern was here #### POSTHOOK: query: select * from partunion_mm order by id POSTHOOK: type: QUERY POSTHOOK: Input: default@partunion_mm -POSTHOOK: Input: default@partunion_mm@key=0 -POSTHOOK: Input: default@partunion_mm@key=1 -POSTHOOK: Input: default@partunion_mm@key=10 -POSTHOOK: Input: default@partunion_mm@key=100 -POSTHOOK: Input: default@partunion_mm@key=101 -POSTHOOK: Input: default@partunion_mm@key=103 -POSTHOOK: Input: default@partunion_mm@key=104 -POSTHOOK: Input: default@partunion_mm@key=11 -POSTHOOK: Input: default@partunion_mm@key=97 -POSTHOOK: Input: default@partunion_mm@key=98 -POSTHOOK: Input: default@partunion_mm@key=99 -#### A masked pattern was here #### -0 0 -1 1 -10 10 -11 11 -97 97 -98 98 -98 98 -99 99 -100 100 -101 101 -103 103 -104 104 +#### A masked pattern was here #### PREHOOK: query: drop table partunion_mm PREHOOK: type: DROPTABLE PREHOOK: Input: default@partunion_mm @@ -784,12 +545,6 @@ POSTHOOK: query: select * from skew_mm order by k2, k1, k4 POSTHOOK: type: QUERY POSTHOOK: Input: default@skew_mm #### A masked pattern was here #### -0 0 0 -10 10 10 -97 97 97 -98 98 98 -100 100 100 -103 103 103 PREHOOK: query: drop table skew_mm PREHOOK: type: DROPTABLE PREHOOK: Input: default@skew_mm @@ -827,98 +582,14 @@ POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@skew_dp_union_mm@k3=0 -POSTHOOK: Output: default@skew_dp_union_mm@k3=10 -POSTHOOK: Output: default@skew_dp_union_mm@k3=100 -POSTHOOK: Output: default@skew_dp_union_mm@k3=101 -POSTHOOK: Output: default@skew_dp_union_mm@k3=102 -POSTHOOK: Output: default@skew_dp_union_mm@k3=103 -POSTHOOK: Output: default@skew_dp_union_mm@k3=104 -POSTHOOK: Output: default@skew_dp_union_mm@k3=107 -POSTHOOK: Output: default@skew_dp_union_mm@k3=14 -POSTHOOK: Output: default@skew_dp_union_mm@k3=4 -POSTHOOK: Output: default@skew_dp_union_mm@k3=97 -POSTHOOK: Output: default@skew_dp_union_mm@k3=98 -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=0).k1 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=0).k2 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=0).k4 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=100).k1 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=100).k2 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=100).k4 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=101).k1 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=101).k2 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=101).k4 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=102).k1 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=102).k2 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=102).k4 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=103).k1 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=103).k2 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=103).k4 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=104).k1 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=104).k2 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=104).k4 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=107).k1 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=107).k2 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=107).k4 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=10).k1 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=10).k2 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=10).k4 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=14).k1 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=14).k2 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=14).k4 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=4).k1 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=4).k2 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=4).k4 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=97).k1 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=97).k2 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=97).k4 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=98).k1 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=98).k2 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: skew_dp_union_mm PARTITION(k3=98).k4 EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] PREHOOK: query: select * from skew_dp_union_mm order by k2, k1, k4 PREHOOK: type: QUERY PREHOOK: Input: default@skew_dp_union_mm -PREHOOK: Input: default@skew_dp_union_mm@k3=0 -PREHOOK: Input: default@skew_dp_union_mm@k3=10 -PREHOOK: Input: default@skew_dp_union_mm@k3=100 -PREHOOK: Input: default@skew_dp_union_mm@k3=101 -PREHOOK: Input: default@skew_dp_union_mm@k3=102 -PREHOOK: Input: default@skew_dp_union_mm@k3=103 -PREHOOK: Input: default@skew_dp_union_mm@k3=104 -PREHOOK: Input: default@skew_dp_union_mm@k3=107 -PREHOOK: Input: default@skew_dp_union_mm@k3=14 -PREHOOK: Input: default@skew_dp_union_mm@k3=4 -PREHOOK: Input: default@skew_dp_union_mm@k3=97 -PREHOOK: Input: default@skew_dp_union_mm@k3=98 #### A masked pattern was here #### POSTHOOK: query: select * from skew_dp_union_mm order by k2, k1, k4 POSTHOOK: type: QUERY POSTHOOK: Input: default@skew_dp_union_mm -POSTHOOK: Input: default@skew_dp_union_mm@k3=0 -POSTHOOK: Input: default@skew_dp_union_mm@k3=10 -POSTHOOK: Input: default@skew_dp_union_mm@k3=100 -POSTHOOK: Input: default@skew_dp_union_mm@k3=101 -POSTHOOK: Input: default@skew_dp_union_mm@k3=102 -POSTHOOK: Input: default@skew_dp_union_mm@k3=103 -POSTHOOK: Input: default@skew_dp_union_mm@k3=104 -POSTHOOK: Input: default@skew_dp_union_mm@k3=107 -POSTHOOK: Input: default@skew_dp_union_mm@k3=14 -POSTHOOK: Input: default@skew_dp_union_mm@k3=4 -POSTHOOK: Input: default@skew_dp_union_mm@k3=97 -POSTHOOK: Input: default@skew_dp_union_mm@k3=98 -#### A masked pattern was here #### -0 0 0 0 -1 2 3 4 -10 10 10 10 -11 12 13 14 -97 97 97 97 -98 98 98 98 -98 99 100 101 -99 100 101 102 -100 100 100 100 -101 102 103 104 -103 103 103 103 -104 105 106 107 +#### A masked pattern was here #### PREHOOK: query: drop table skew_dp_union_mm PREHOOK: type: DROPTABLE PREHOOK: Input: default@skew_dp_union_mm @@ -958,12 +629,6 @@ POSTHOOK: query: select * from merge0_mm POSTHOOK: type: QUERY POSTHOOK: Input: default@merge0_mm #### A masked pattern was here #### -98 -97 -100 -103 -0 -10 PREHOOK: query: insert into table merge0_mm select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate @@ -987,18 +652,6 @@ POSTHOOK: query: select * from merge0_mm POSTHOOK: type: QUERY POSTHOOK: Input: default@merge0_mm #### A masked pattern was here #### -98 -97 -100 -103 -0 -10 -98 -97 -100 -103 -0 -10 PREHOOK: query: drop table merge0_mm PREHOOK: type: DROPTABLE PREHOOK: Input: default@merge0_mm @@ -1038,12 +691,6 @@ POSTHOOK: query: select * from merge2_mm POSTHOOK: type: QUERY POSTHOOK: Input: default@merge2_mm #### A masked pattern was here #### -98 -97 -100 -103 -0 -10 PREHOOK: query: insert into table merge2_mm select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate @@ -1067,18 +714,6 @@ POSTHOOK: query: select * from merge2_mm POSTHOOK: type: QUERY POSTHOOK: Input: default@merge2_mm #### A masked pattern was here #### -98 -97 -100 -103 -0 -10 -98 -97 -100 -103 -0 -10 PREHOOK: query: drop table merge2_mm PREHOOK: type: DROPTABLE PREHOOK: Input: default@merge2_mm @@ -1108,44 +743,14 @@ POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@merge1_mm@key=0 -POSTHOOK: Output: default@merge1_mm@key=10 -POSTHOOK: Output: default@merge1_mm@key=100 -POSTHOOK: Output: default@merge1_mm@key=103 -POSTHOOK: Output: default@merge1_mm@key=97 -POSTHOOK: Output: default@merge1_mm@key=98 -POSTHOOK: Lineage: merge1_mm PARTITION(key=0).id SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: merge1_mm PARTITION(key=100).id SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: merge1_mm PARTITION(key=103).id SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: merge1_mm PARTITION(key=10).id SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: merge1_mm PARTITION(key=97).id SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: merge1_mm PARTITION(key=98).id SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] PREHOOK: query: select * from merge1_mm order by id, key PREHOOK: type: QUERY PREHOOK: Input: default@merge1_mm -PREHOOK: Input: default@merge1_mm@key=0 -PREHOOK: Input: default@merge1_mm@key=10 -PREHOOK: Input: default@merge1_mm@key=100 -PREHOOK: Input: default@merge1_mm@key=103 -PREHOOK: Input: default@merge1_mm@key=97 -PREHOOK: Input: default@merge1_mm@key=98 #### A masked pattern was here #### POSTHOOK: query: select * from merge1_mm order by id, key POSTHOOK: type: QUERY POSTHOOK: Input: default@merge1_mm -POSTHOOK: Input: default@merge1_mm@key=0 -POSTHOOK: Input: default@merge1_mm@key=10 -POSTHOOK: Input: default@merge1_mm@key=100 -POSTHOOK: Input: default@merge1_mm@key=103 -POSTHOOK: Input: default@merge1_mm@key=97 -POSTHOOK: Input: default@merge1_mm@key=98 -#### A masked pattern was here #### -0 0 -10 10 -97 97 -98 98 -100 100 -103 103 +#### A masked pattern was here #### PREHOOK: query: insert into table merge1_mm partition (key) select key, key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate @@ -1159,50 +764,14 @@ POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@merge1_mm@key=0 -POSTHOOK: Output: default@merge1_mm@key=10 -POSTHOOK: Output: default@merge1_mm@key=100 -POSTHOOK: Output: default@merge1_mm@key=103 -POSTHOOK: Output: default@merge1_mm@key=97 -POSTHOOK: Output: default@merge1_mm@key=98 -POSTHOOK: Lineage: merge1_mm PARTITION(key=0).id SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: merge1_mm PARTITION(key=100).id SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: merge1_mm PARTITION(key=103).id SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: merge1_mm PARTITION(key=10).id SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: merge1_mm PARTITION(key=97).id SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: merge1_mm PARTITION(key=98).id SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] PREHOOK: query: select * from merge1_mm order by id, key PREHOOK: type: QUERY PREHOOK: Input: default@merge1_mm -PREHOOK: Input: default@merge1_mm@key=0 -PREHOOK: Input: default@merge1_mm@key=10 -PREHOOK: Input: default@merge1_mm@key=100 -PREHOOK: Input: default@merge1_mm@key=103 -PREHOOK: Input: default@merge1_mm@key=97 -PREHOOK: Input: default@merge1_mm@key=98 #### A masked pattern was here #### POSTHOOK: query: select * from merge1_mm order by id, key POSTHOOK: type: QUERY POSTHOOK: Input: default@merge1_mm -POSTHOOK: Input: default@merge1_mm@key=0 -POSTHOOK: Input: default@merge1_mm@key=10 -POSTHOOK: Input: default@merge1_mm@key=100 -POSTHOOK: Input: default@merge1_mm@key=103 -POSTHOOK: Input: default@merge1_mm@key=97 -POSTHOOK: Input: default@merge1_mm@key=98 -#### A masked pattern was here #### -0 0 -0 0 -10 10 -10 10 -97 97 -97 97 -98 98 -98 98 -100 100 -100 100 -103 103 -103 103 +#### A masked pattern was here #### PREHOOK: query: drop table merge1_mm PREHOOK: type: DROPTABLE PREHOOK: Input: default@merge1_mm @@ -1211,473 +780,6 @@ POSTHOOK: query: drop table merge1_mm POSTHOOK: type: DROPTABLE POSTHOOK: Input: default@merge1_mm POSTHOOK: Output: default@merge1_mm -PREHOOK: query: drop table ctas0_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table ctas0_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table ctas0_mm tblproperties ("transactional"="true", "transactional_properties"="insert_only") as select * from intermediate -PREHOOK: type: CREATETABLE_AS_SELECT -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: database:default -PREHOOK: Output: default@ctas0_mm -POSTHOOK: query: create table ctas0_mm tblproperties ("transactional"="true", "transactional_properties"="insert_only") as select * from intermediate -POSTHOOK: type: CREATETABLE_AS_SELECT -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: database:default -POSTHOOK: Output: default@ctas0_mm -POSTHOOK: Lineage: ctas0_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: ctas0_mm.p SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -PREHOOK: query: select * from ctas0_mm -PREHOOK: type: QUERY -PREHOOK: Input: default@ctas0_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from ctas0_mm -POSTHOOK: type: QUERY -POSTHOOK: Input: default@ctas0_mm -#### A masked pattern was here #### -98 455 -97 455 -100 457 -103 457 -0 456 -10 456 -PREHOOK: query: drop table ctas0_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@ctas0_mm -PREHOOK: Output: default@ctas0_mm -POSTHOOK: query: drop table ctas0_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@ctas0_mm -POSTHOOK: Output: default@ctas0_mm -PREHOOK: query: drop table ctas1_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table ctas1_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table ctas1_mm tblproperties ("transactional"="true", "transactional_properties"="insert_only") as - select * from intermediate union all select * from intermediate -PREHOOK: type: CREATETABLE_AS_SELECT -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: database:default -PREHOOK: Output: default@ctas1_mm -POSTHOOK: query: create table ctas1_mm tblproperties ("transactional"="true", "transactional_properties"="insert_only") as - select * from intermediate union all select * from intermediate -POSTHOOK: type: CREATETABLE_AS_SELECT -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: database:default -POSTHOOK: Output: default@ctas1_mm -POSTHOOK: Lineage: ctas1_mm.key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: ctas1_mm.p EXPRESSION [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -PREHOOK: query: select * from ctas1_mm -PREHOOK: type: QUERY -PREHOOK: Input: default@ctas1_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from ctas1_mm -POSTHOOK: type: QUERY -POSTHOOK: Input: default@ctas1_mm -#### A masked pattern was here #### -98 455 -97 455 -100 457 -103 457 -0 456 -10 456 -98 455 -97 455 -100 457 -103 457 -0 456 -10 456 -PREHOOK: query: drop table ctas1_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@ctas1_mm -PREHOOK: Output: default@ctas1_mm -POSTHOOK: query: drop table ctas1_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@ctas1_mm -POSTHOOK: Output: default@ctas1_mm -PREHOOK: query: drop table iow0_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table iow0_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table iow0_mm(key int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@iow0_mm -POSTHOOK: query: create table iow0_mm(key int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@iow0_mm -PREHOOK: query: insert overwrite table iow0_mm select key from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@iow0_mm -POSTHOOK: query: insert overwrite table iow0_mm select key from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@iow0_mm -POSTHOOK: Lineage: iow0_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: insert into table iow0_mm select key + 1 from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@iow0_mm -POSTHOOK: query: insert into table iow0_mm select key + 1 from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@iow0_mm -POSTHOOK: Lineage: iow0_mm.key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from iow0_mm order by key -PREHOOK: type: QUERY -PREHOOK: Input: default@iow0_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from iow0_mm order by key -POSTHOOK: type: QUERY -POSTHOOK: Input: default@iow0_mm -#### A masked pattern was here #### -0 -1 -10 -11 -97 -98 -98 -99 -100 -101 -103 -104 -PREHOOK: query: insert overwrite table iow0_mm select key + 2 from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@iow0_mm -POSTHOOK: query: insert overwrite table iow0_mm select key + 2 from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@iow0_mm -POSTHOOK: Lineage: iow0_mm.key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from iow0_mm order by key -PREHOOK: type: QUERY -PREHOOK: Input: default@iow0_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from iow0_mm order by key -POSTHOOK: type: QUERY -POSTHOOK: Input: default@iow0_mm -#### A masked pattern was here #### -2 -12 -99 -100 -102 -105 -PREHOOK: query: drop table iow0_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@iow0_mm -PREHOOK: Output: default@iow0_mm -POSTHOOK: query: drop table iow0_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@iow0_mm -POSTHOOK: Output: default@iow0_mm -PREHOOK: query: drop table iow1_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table iow1_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table iow1_mm(key int) partitioned by (key2 int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@iow1_mm -POSTHOOK: query: create table iow1_mm(key int) partitioned by (key2 int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@iow1_mm -PREHOOK: query: insert overwrite table iow1_mm partition (key2) -select key as k1, key from intermediate union all select key as k1, key from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@iow1_mm -POSTHOOK: query: insert overwrite table iow1_mm partition (key2) -select key as k1, key from intermediate union all select key as k1, key from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@iow1_mm@key2=0 -POSTHOOK: Output: default@iow1_mm@key2=10 -POSTHOOK: Output: default@iow1_mm@key2=100 -POSTHOOK: Output: default@iow1_mm@key2=103 -POSTHOOK: Output: default@iow1_mm@key2=97 -POSTHOOK: Output: default@iow1_mm@key2=98 -POSTHOOK: Lineage: iow1_mm PARTITION(key2=0).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=100).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=103).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=10).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=97).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=98).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: insert into table iow1_mm partition (key2) -select key + 1 as k1, key from intermediate union all select key as k1, key from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@iow1_mm -POSTHOOK: query: insert into table iow1_mm partition (key2) -select key + 1 as k1, key from intermediate union all select key as k1, key from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@iow1_mm@key2=0 -POSTHOOK: Output: default@iow1_mm@key2=10 -POSTHOOK: Output: default@iow1_mm@key2=100 -POSTHOOK: Output: default@iow1_mm@key2=103 -POSTHOOK: Output: default@iow1_mm@key2=97 -POSTHOOK: Output: default@iow1_mm@key2=98 -POSTHOOK: Lineage: iow1_mm PARTITION(key2=0).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=100).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=103).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=10).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=97).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=98).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from iow1_mm order by key, key2 -PREHOOK: type: QUERY -PREHOOK: Input: default@iow1_mm -PREHOOK: Input: default@iow1_mm@key2=0 -PREHOOK: Input: default@iow1_mm@key2=10 -PREHOOK: Input: default@iow1_mm@key2=100 -PREHOOK: Input: default@iow1_mm@key2=103 -PREHOOK: Input: default@iow1_mm@key2=97 -PREHOOK: Input: default@iow1_mm@key2=98 -#### A masked pattern was here #### -POSTHOOK: query: select * from iow1_mm order by key, key2 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@iow1_mm -POSTHOOK: Input: default@iow1_mm@key2=0 -POSTHOOK: Input: default@iow1_mm@key2=10 -POSTHOOK: Input: default@iow1_mm@key2=100 -POSTHOOK: Input: default@iow1_mm@key2=103 -POSTHOOK: Input: default@iow1_mm@key2=97 -POSTHOOK: Input: default@iow1_mm@key2=98 -#### A masked pattern was here #### -0 0 -0 0 -0 0 -1 0 -10 10 -10 10 -10 10 -11 10 -97 97 -97 97 -97 97 -98 97 -98 98 -98 98 -98 98 -99 98 -100 100 -100 100 -100 100 -101 100 -103 103 -103 103 -103 103 -104 103 -PREHOOK: query: insert overwrite table iow1_mm partition (key2) -select key + 3 as k1, key from intermediate union all select key + 4 as k1, key from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@iow1_mm -POSTHOOK: query: insert overwrite table iow1_mm partition (key2) -select key + 3 as k1, key from intermediate union all select key + 4 as k1, key from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@iow1_mm@key2=0 -POSTHOOK: Output: default@iow1_mm@key2=10 -POSTHOOK: Output: default@iow1_mm@key2=100 -POSTHOOK: Output: default@iow1_mm@key2=103 -POSTHOOK: Output: default@iow1_mm@key2=97 -POSTHOOK: Output: default@iow1_mm@key2=98 -POSTHOOK: Lineage: iow1_mm PARTITION(key2=0).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=100).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=103).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=10).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=97).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=98).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from iow1_mm order by key, key2 -PREHOOK: type: QUERY -PREHOOK: Input: default@iow1_mm -PREHOOK: Input: default@iow1_mm@key2=0 -PREHOOK: Input: default@iow1_mm@key2=10 -PREHOOK: Input: default@iow1_mm@key2=100 -PREHOOK: Input: default@iow1_mm@key2=103 -PREHOOK: Input: default@iow1_mm@key2=97 -PREHOOK: Input: default@iow1_mm@key2=98 -#### A masked pattern was here #### -POSTHOOK: query: select * from iow1_mm order by key, key2 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@iow1_mm -POSTHOOK: Input: default@iow1_mm@key2=0 -POSTHOOK: Input: default@iow1_mm@key2=10 -POSTHOOK: Input: default@iow1_mm@key2=100 -POSTHOOK: Input: default@iow1_mm@key2=103 -POSTHOOK: Input: default@iow1_mm@key2=97 -POSTHOOK: Input: default@iow1_mm@key2=98 -#### A masked pattern was here #### -3 0 -4 0 -13 10 -14 10 -100 97 -101 97 -101 98 -102 98 -103 100 -104 100 -106 103 -107 103 -PREHOOK: query: insert overwrite table iow1_mm partition (key2) -select key + 3 as k1, key + 3 from intermediate union all select key + 2 as k1, key + 2 from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@iow1_mm -POSTHOOK: query: insert overwrite table iow1_mm partition (key2) -select key + 3 as k1, key + 3 from intermediate union all select key + 2 as k1, key + 2 from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@iow1_mm@key2=100 -POSTHOOK: Output: default@iow1_mm@key2=101 -POSTHOOK: Output: default@iow1_mm@key2=102 -POSTHOOK: Output: default@iow1_mm@key2=103 -POSTHOOK: Output: default@iow1_mm@key2=105 -POSTHOOK: Output: default@iow1_mm@key2=106 -POSTHOOK: Output: default@iow1_mm@key2=12 -POSTHOOK: Output: default@iow1_mm@key2=13 -POSTHOOK: Output: default@iow1_mm@key2=2 -POSTHOOK: Output: default@iow1_mm@key2=3 -POSTHOOK: Output: default@iow1_mm@key2=99 -POSTHOOK: Lineage: iow1_mm PARTITION(key2=100).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=101).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=102).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=103).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=105).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=106).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=12).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=13).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=2).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=3).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=99).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from iow1_mm order by key, key2 -PREHOOK: type: QUERY -PREHOOK: Input: default@iow1_mm -PREHOOK: Input: default@iow1_mm@key2=0 -PREHOOK: Input: default@iow1_mm@key2=10 -PREHOOK: Input: default@iow1_mm@key2=100 -PREHOOK: Input: default@iow1_mm@key2=101 -PREHOOK: Input: default@iow1_mm@key2=102 -PREHOOK: Input: default@iow1_mm@key2=103 -PREHOOK: Input: default@iow1_mm@key2=105 -PREHOOK: Input: default@iow1_mm@key2=106 -PREHOOK: Input: default@iow1_mm@key2=12 -PREHOOK: Input: default@iow1_mm@key2=13 -PREHOOK: Input: default@iow1_mm@key2=2 -PREHOOK: Input: default@iow1_mm@key2=3 -PREHOOK: Input: default@iow1_mm@key2=97 -PREHOOK: Input: default@iow1_mm@key2=98 -PREHOOK: Input: default@iow1_mm@key2=99 -#### A masked pattern was here #### -POSTHOOK: query: select * from iow1_mm order by key, key2 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@iow1_mm -POSTHOOK: Input: default@iow1_mm@key2=0 -POSTHOOK: Input: default@iow1_mm@key2=10 -POSTHOOK: Input: default@iow1_mm@key2=100 -POSTHOOK: Input: default@iow1_mm@key2=101 -POSTHOOK: Input: default@iow1_mm@key2=102 -POSTHOOK: Input: default@iow1_mm@key2=103 -POSTHOOK: Input: default@iow1_mm@key2=105 -POSTHOOK: Input: default@iow1_mm@key2=106 -POSTHOOK: Input: default@iow1_mm@key2=12 -POSTHOOK: Input: default@iow1_mm@key2=13 -POSTHOOK: Input: default@iow1_mm@key2=2 -POSTHOOK: Input: default@iow1_mm@key2=3 -POSTHOOK: Input: default@iow1_mm@key2=97 -POSTHOOK: Input: default@iow1_mm@key2=98 -POSTHOOK: Input: default@iow1_mm@key2=99 -#### A masked pattern was here #### -2 2 -3 0 -3 3 -4 0 -12 12 -13 10 -13 13 -14 10 -99 99 -100 97 -100 100 -100 100 -101 97 -101 98 -101 101 -102 98 -102 102 -103 103 -105 105 -106 106 -PREHOOK: query: drop table iow1_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@iow1_mm -PREHOOK: Output: default@iow1_mm -POSTHOOK: query: drop table iow1_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@iow1_mm -POSTHOOK: Output: default@iow1_mm PREHOOK: query: drop table load0_mm PREHOOK: type: DROPTABLE POSTHOOK: query: drop table load0_mm @@ -1740,7 +842,7 @@ POSTHOOK: query: select count(1) from load0_mm POSTHOOK: type: QUERY POSTHOOK: Input: default@load0_mm #### A masked pattern was here #### -500 +1000 PREHOOK: query: drop table load0_mm PREHOOK: type: DROPTABLE PREHOOK: Input: default@load0_mm @@ -1891,7 +993,7 @@ POSTHOOK: query: select count(1) from load1_mm POSTHOOK: type: QUERY POSTHOOK: Input: default@load1_mm #### A masked pattern was here #### -500 +1050 PREHOOK: query: drop table load1_mm PREHOOK: type: DROPTABLE PREHOOK: Input: default@load1_mm @@ -1974,424 +1076,6 @@ POSTHOOK: query: drop table intermediate2 POSTHOOK: type: DROPTABLE POSTHOOK: Input: default@intermediate2 POSTHOOK: Output: default@intermediate2 -PREHOOK: query: drop table intermediate_nonpart -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table intermediate_nonpart -POSTHOOK: type: DROPTABLE -PREHOOK: query: drop table intermmediate_part -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table intermmediate_part -POSTHOOK: type: DROPTABLE -PREHOOK: query: drop table intermmediate_nonpart -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table intermmediate_nonpart -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table intermediate_nonpart(key int, p int) -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@intermediate_nonpart -POSTHOOK: query: create table intermediate_nonpart(key int, p int) -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@intermediate_nonpart -PREHOOK: query: insert into intermediate_nonpart select * from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@intermediate_nonpart -POSTHOOK: query: insert into intermediate_nonpart select * from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@intermediate_nonpart -POSTHOOK: Lineage: intermediate_nonpart.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: intermediate_nonpart.p SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -PREHOOK: query: create table intermmediate_nonpart(key int, p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@intermmediate_nonpart -POSTHOOK: query: create table intermmediate_nonpart(key int, p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@intermmediate_nonpart -PREHOOK: query: insert into intermmediate_nonpart select * from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@intermmediate_nonpart -POSTHOOK: query: insert into intermmediate_nonpart select * from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@intermmediate_nonpart -POSTHOOK: Lineage: intermmediate_nonpart.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: intermmediate_nonpart.p SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -PREHOOK: query: create table intermmediate(key int) partitioned by (p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@intermmediate -POSTHOOK: query: create table intermmediate(key int) partitioned by (p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@intermmediate -PREHOOK: query: insert into table intermmediate partition(p) select key, p from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@intermmediate -POSTHOOK: query: insert into table intermmediate partition(p) select key, p from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@intermmediate@p=455 -POSTHOOK: Output: default@intermmediate@p=456 -POSTHOOK: Output: default@intermmediate@p=457 -POSTHOOK: Lineage: intermmediate PARTITION(p=455).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: intermmediate PARTITION(p=456).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: intermmediate PARTITION(p=457).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: export table intermediate_nonpart to 'ql/test/data/exports/intermediate_nonpart' -PREHOOK: type: EXPORT -PREHOOK: Input: default@intermediate_nonpart -#### A masked pattern was here #### -POSTHOOK: query: export table intermediate_nonpart to 'ql/test/data/exports/intermediate_nonpart' -POSTHOOK: type: EXPORT -POSTHOOK: Input: default@intermediate_nonpart -#### A masked pattern was here #### -PREHOOK: query: export table intermmediate_nonpart to 'ql/test/data/exports/intermmediate_nonpart' -PREHOOK: type: EXPORT -PREHOOK: Input: default@intermmediate_nonpart -#### A masked pattern was here #### -POSTHOOK: query: export table intermmediate_nonpart to 'ql/test/data/exports/intermmediate_nonpart' -POSTHOOK: type: EXPORT -POSTHOOK: Input: default@intermmediate_nonpart -#### A masked pattern was here #### -PREHOOK: query: export table intermediate to 'ql/test/data/exports/intermediate_part' -PREHOOK: type: EXPORT -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -#### A masked pattern was here #### -POSTHOOK: query: export table intermediate to 'ql/test/data/exports/intermediate_part' -POSTHOOK: type: EXPORT -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -#### A masked pattern was here #### -PREHOOK: query: export table intermmediate to 'ql/test/data/exports/intermmediate_part' -PREHOOK: type: EXPORT -PREHOOK: Input: default@intermmediate@p=455 -PREHOOK: Input: default@intermmediate@p=456 -PREHOOK: Input: default@intermmediate@p=457 -#### A masked pattern was here #### -POSTHOOK: query: export table intermmediate to 'ql/test/data/exports/intermmediate_part' -POSTHOOK: type: EXPORT -POSTHOOK: Input: default@intermmediate@p=455 -POSTHOOK: Input: default@intermmediate@p=456 -POSTHOOK: Input: default@intermmediate@p=457 -#### A masked pattern was here #### -PREHOOK: query: drop table intermediate_nonpart -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@intermediate_nonpart -PREHOOK: Output: default@intermediate_nonpart -POSTHOOK: query: drop table intermediate_nonpart -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@intermediate_nonpart -POSTHOOK: Output: default@intermediate_nonpart -PREHOOK: query: drop table intermmediate_part -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table intermmediate_part -POSTHOOK: type: DROPTABLE -PREHOOK: query: drop table intermmediate_nonpart -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@intermmediate_nonpart -PREHOOK: Output: default@intermmediate_nonpart -POSTHOOK: query: drop table intermmediate_nonpart -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@intermmediate_nonpart -POSTHOOK: Output: default@intermmediate_nonpart -PREHOOK: query: drop table import0_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table import0_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table import0_mm(key int, p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@import0_mm -POSTHOOK: query: create table import0_mm(key int, p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@import0_mm -PREHOOK: query: import table import0_mm from 'ql/test/data/exports/intermediate_nonpart' -PREHOOK: type: IMPORT -#### A masked pattern was here #### -PREHOOK: Output: default@import0_mm -POSTHOOK: query: import table import0_mm from 'ql/test/data/exports/intermediate_nonpart' -POSTHOOK: type: IMPORT -#### A masked pattern was here #### -POSTHOOK: Output: default@import0_mm -PREHOOK: query: select * from import0_mm order by key, p -PREHOOK: type: QUERY -PREHOOK: Input: default@import0_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from import0_mm order by key, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@import0_mm -#### A masked pattern was here #### -0 456 -10 456 -97 455 -98 455 -100 457 -103 457 -PREHOOK: query: drop table import0_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@import0_mm -PREHOOK: Output: default@import0_mm -POSTHOOK: query: drop table import0_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@import0_mm -POSTHOOK: Output: default@import0_mm -PREHOOK: query: drop table import1_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table import1_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table import1_mm(key int) partitioned by (p int) - stored as orc tblproperties("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@import1_mm -POSTHOOK: query: create table import1_mm(key int) partitioned by (p int) - stored as orc tblproperties("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@import1_mm -PREHOOK: query: import table import1_mm from 'ql/test/data/exports/intermediate_part' -PREHOOK: type: IMPORT -#### A masked pattern was here #### -PREHOOK: Output: default@import1_mm -POSTHOOK: query: import table import1_mm from 'ql/test/data/exports/intermediate_part' -POSTHOOK: type: IMPORT -#### A masked pattern was here #### -POSTHOOK: Output: default@import1_mm -POSTHOOK: Output: default@import1_mm@p=455 -POSTHOOK: Output: default@import1_mm@p=456 -POSTHOOK: Output: default@import1_mm@p=457 -PREHOOK: query: select * from import1_mm order by key, p -PREHOOK: type: QUERY -PREHOOK: Input: default@import1_mm -PREHOOK: Input: default@import1_mm@p=455 -PREHOOK: Input: default@import1_mm@p=456 -PREHOOK: Input: default@import1_mm@p=457 -#### A masked pattern was here #### -POSTHOOK: query: select * from import1_mm order by key, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@import1_mm -POSTHOOK: Input: default@import1_mm@p=455 -POSTHOOK: Input: default@import1_mm@p=456 -POSTHOOK: Input: default@import1_mm@p=457 -#### A masked pattern was here #### -0 456 -10 456 -97 455 -98 455 -100 457 -103 457 -PREHOOK: query: drop table import1_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@import1_mm -PREHOOK: Output: default@import1_mm -POSTHOOK: query: drop table import1_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@import1_mm -POSTHOOK: Output: default@import1_mm -PREHOOK: query: drop table import4_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table import4_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table import4_mm(key int, p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@import4_mm -POSTHOOK: query: create table import4_mm(key int, p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@import4_mm -PREHOOK: query: import table import4_mm from 'ql/test/data/exports/intermmediate_nonpart' -PREHOOK: type: IMPORT -#### A masked pattern was here #### -PREHOOK: Output: default@import4_mm -POSTHOOK: query: import table import4_mm from 'ql/test/data/exports/intermmediate_nonpart' -POSTHOOK: type: IMPORT -#### A masked pattern was here #### -POSTHOOK: Output: default@import4_mm -PREHOOK: query: select * from import4_mm order by key, p -PREHOOK: type: QUERY -PREHOOK: Input: default@import4_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from import4_mm order by key, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@import4_mm -#### A masked pattern was here #### -0 456 -10 456 -97 455 -98 455 -100 457 -103 457 -PREHOOK: query: drop table import4_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@import4_mm -PREHOOK: Output: default@import4_mm -POSTHOOK: query: drop table import4_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@import4_mm -POSTHOOK: Output: default@import4_mm -PREHOOK: query: drop table import5_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table import5_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table import5_mm(key int) partitioned by (p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@import5_mm -POSTHOOK: query: create table import5_mm(key int) partitioned by (p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@import5_mm -PREHOOK: query: import table import5_mm partition(p=455) from 'ql/test/data/exports/intermmediate_part' -PREHOOK: type: IMPORT -#### A masked pattern was here #### -PREHOOK: Output: default@import5_mm -POSTHOOK: query: import table import5_mm partition(p=455) from 'ql/test/data/exports/intermmediate_part' -POSTHOOK: type: IMPORT -#### A masked pattern was here #### -POSTHOOK: Output: default@import5_mm -POSTHOOK: Output: default@import5_mm@p=455 -PREHOOK: query: select * from import5_mm order by key, p -PREHOOK: type: QUERY -PREHOOK: Input: default@import5_mm -PREHOOK: Input: default@import5_mm@p=455 -#### A masked pattern was here #### -POSTHOOK: query: select * from import5_mm order by key, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@import5_mm -POSTHOOK: Input: default@import5_mm@p=455 -#### A masked pattern was here #### -97 455 -98 455 -PREHOOK: query: drop table import5_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@import5_mm -PREHOOK: Output: default@import5_mm -POSTHOOK: query: drop table import5_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@import5_mm -POSTHOOK: Output: default@import5_mm -PREHOOK: query: drop table import6_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table import6_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table import6_mm(key int, p int) -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@import6_mm -POSTHOOK: query: create table import6_mm(key int, p int) -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@import6_mm -PREHOOK: query: import table import6_mm from 'ql/test/data/exports/intermmediate_nonpart' -PREHOOK: type: IMPORT -#### A masked pattern was here #### -PREHOOK: Output: default@import6_mm -POSTHOOK: query: import table import6_mm from 'ql/test/data/exports/intermmediate_nonpart' -POSTHOOK: type: IMPORT -#### A masked pattern was here #### -POSTHOOK: Output: default@import6_mm -PREHOOK: query: select * from import6_mm order by key, p -PREHOOK: type: QUERY -PREHOOK: Input: default@import6_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from import6_mm order by key, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@import6_mm -#### A masked pattern was here #### -0 456 -10 456 -97 455 -98 455 -100 457 -103 457 -PREHOOK: query: drop table import6_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@import6_mm -PREHOOK: Output: default@import6_mm -POSTHOOK: query: drop table import6_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@import6_mm -POSTHOOK: Output: default@import6_mm -PREHOOK: query: drop table import7_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table import7_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table import7_mm(key int) partitioned by (p int) -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@import7_mm -POSTHOOK: query: create table import7_mm(key int) partitioned by (p int) -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@import7_mm -PREHOOK: query: import table import7_mm from 'ql/test/data/exports/intermmediate_part' -PREHOOK: type: IMPORT -#### A masked pattern was here #### -PREHOOK: Output: default@import7_mm -POSTHOOK: query: import table import7_mm from 'ql/test/data/exports/intermmediate_part' -POSTHOOK: type: IMPORT -#### A masked pattern was here #### -POSTHOOK: Output: default@import7_mm -POSTHOOK: Output: default@import7_mm@p=455 -POSTHOOK: Output: default@import7_mm@p=456 -POSTHOOK: Output: default@import7_mm@p=457 -PREHOOK: query: select * from import7_mm order by key, p -PREHOOK: type: QUERY -PREHOOK: Input: default@import7_mm -PREHOOK: Input: default@import7_mm@p=455 -PREHOOK: Input: default@import7_mm@p=456 -PREHOOK: Input: default@import7_mm@p=457 -#### A masked pattern was here #### -POSTHOOK: query: select * from import7_mm order by key, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@import7_mm -POSTHOOK: Input: default@import7_mm@p=455 -POSTHOOK: Input: default@import7_mm@p=456 -POSTHOOK: Input: default@import7_mm@p=457 -#### A masked pattern was here #### -0 456 -10 456 -97 455 -98 455 -100 457 -103 457 -PREHOOK: query: drop table import7_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@import7_mm -PREHOOK: Output: default@import7_mm -POSTHOOK: query: drop table import7_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@import7_mm -POSTHOOK: Output: default@import7_mm PREHOOK: query: drop table multi0_1_mm PREHOOK: type: DROPTABLE POSTHOOK: query: drop table multi0_1_mm @@ -2416,649 +1100,6 @@ POSTHOOK: query: create table multi0_2_mm (key int, key2 int) tblproperties("tr POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@multi0_2_mm -PREHOOK: query: from intermediate -insert overwrite table multi0_1_mm select key, p -insert overwrite table multi0_2_mm select p, key -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@multi0_1_mm -PREHOOK: Output: default@multi0_2_mm -POSTHOOK: query: from intermediate -insert overwrite table multi0_1_mm select key, p -insert overwrite table multi0_2_mm select p, key -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@multi0_1_mm -POSTHOOK: Output: default@multi0_2_mm -POSTHOOK: Lineage: multi0_1_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: multi0_1_mm.key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -POSTHOOK: Lineage: multi0_2_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -POSTHOOK: Lineage: multi0_2_mm.key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from multi0_1_mm order by key, key2 -PREHOOK: type: QUERY -PREHOOK: Input: default@multi0_1_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from multi0_1_mm order by key, key2 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@multi0_1_mm -#### A masked pattern was here #### -0 456 -10 456 -97 455 -98 455 -100 457 -103 457 -PREHOOK: query: select * from multi0_2_mm order by key, key2 -PREHOOK: type: QUERY -PREHOOK: Input: default@multi0_2_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from multi0_2_mm order by key, key2 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@multi0_2_mm -#### A masked pattern was here #### -455 97 -455 98 -456 0 -456 10 -457 100 -457 103 -PREHOOK: query: from intermediate -insert into table multi0_1_mm select p, key -insert overwrite table multi0_2_mm select key, p -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@multi0_1_mm -PREHOOK: Output: default@multi0_2_mm -POSTHOOK: query: from intermediate -insert into table multi0_1_mm select p, key -insert overwrite table multi0_2_mm select key, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@multi0_1_mm -POSTHOOK: Output: default@multi0_2_mm -POSTHOOK: Lineage: multi0_1_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -POSTHOOK: Lineage: multi0_1_mm.key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: multi0_2_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: multi0_2_mm.key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -PREHOOK: query: select * from multi0_1_mm order by key, key2 -PREHOOK: type: QUERY -PREHOOK: Input: default@multi0_1_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from multi0_1_mm order by key, key2 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@multi0_1_mm -#### A masked pattern was here #### -0 456 -10 456 -97 455 -98 455 -100 457 -103 457 -455 97 -455 98 -456 0 -456 10 -457 100 -457 103 -PREHOOK: query: select * from multi0_2_mm order by key, key2 -PREHOOK: type: QUERY -PREHOOK: Input: default@multi0_2_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from multi0_2_mm order by key, key2 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@multi0_2_mm -#### A masked pattern was here #### -0 456 -10 456 -97 455 -98 455 -100 457 -103 457 -PREHOOK: query: drop table multi0_1_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@multi0_1_mm -PREHOOK: Output: default@multi0_1_mm -POSTHOOK: query: drop table multi0_1_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@multi0_1_mm -POSTHOOK: Output: default@multi0_1_mm -PREHOOK: query: drop table multi0_2_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@multi0_2_mm -PREHOOK: Output: default@multi0_2_mm -POSTHOOK: query: drop table multi0_2_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@multi0_2_mm -POSTHOOK: Output: default@multi0_2_mm -PREHOOK: query: drop table multi1_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table multi1_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table multi1_mm (key int, key2 int) partitioned by (p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@multi1_mm -POSTHOOK: query: create table multi1_mm (key int, key2 int) partitioned by (p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@multi1_mm -PREHOOK: query: from intermediate -insert into table multi1_mm partition(p=1) select p, key -insert into table multi1_mm partition(p=2) select key, p -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@multi1_mm@p=1 -PREHOOK: Output: default@multi1_mm@p=2 -POSTHOOK: query: from intermediate -insert into table multi1_mm partition(p=1) select p, key -insert into table multi1_mm partition(p=2) select key, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@multi1_mm@p=1 -POSTHOOK: Output: default@multi1_mm@p=2 -POSTHOOK: Lineage: multi1_mm PARTITION(p=1).key SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=1).key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=2).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=2).key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -PREHOOK: query: select * from multi1_mm order by key, key2, p -PREHOOK: type: QUERY -PREHOOK: Input: default@multi1_mm -PREHOOK: Input: default@multi1_mm@p=1 -PREHOOK: Input: default@multi1_mm@p=2 -#### A masked pattern was here #### -POSTHOOK: query: select * from multi1_mm order by key, key2, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@multi1_mm -POSTHOOK: Input: default@multi1_mm@p=1 -POSTHOOK: Input: default@multi1_mm@p=2 -#### A masked pattern was here #### -0 456 2 -10 456 2 -97 455 2 -98 455 2 -100 457 2 -103 457 2 -455 97 1 -455 98 1 -456 0 1 -456 10 1 -457 100 1 -457 103 1 -PREHOOK: query: from intermediate -insert into table multi1_mm partition(p=2) select p, key -insert overwrite table multi1_mm partition(p=1) select key, p -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@multi1_mm@p=1 -PREHOOK: Output: default@multi1_mm@p=2 -POSTHOOK: query: from intermediate -insert into table multi1_mm partition(p=2) select p, key -insert overwrite table multi1_mm partition(p=1) select key, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@multi1_mm@p=1 -POSTHOOK: Output: default@multi1_mm@p=2 -POSTHOOK: Lineage: multi1_mm PARTITION(p=1).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=1).key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=2).key SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=2).key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from multi1_mm order by key, key2, p -PREHOOK: type: QUERY -PREHOOK: Input: default@multi1_mm -PREHOOK: Input: default@multi1_mm@p=1 -PREHOOK: Input: default@multi1_mm@p=2 -#### A masked pattern was here #### -POSTHOOK: query: select * from multi1_mm order by key, key2, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@multi1_mm -POSTHOOK: Input: default@multi1_mm@p=1 -POSTHOOK: Input: default@multi1_mm@p=2 -#### A masked pattern was here #### -0 456 1 -0 456 2 -10 456 1 -10 456 2 -97 455 1 -97 455 2 -98 455 1 -98 455 2 -100 457 1 -100 457 2 -103 457 1 -103 457 2 -455 97 1 -455 97 2 -455 98 1 -455 98 2 -456 0 1 -456 0 2 -456 10 1 -456 10 2 -457 100 1 -457 100 2 -457 103 1 -457 103 2 -PREHOOK: query: from intermediate -insert into table multi1_mm partition(p) select p, key, p -insert into table multi1_mm partition(p=1) select key, p -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@multi1_mm -PREHOOK: Output: default@multi1_mm@p=1 -POSTHOOK: query: from intermediate -insert into table multi1_mm partition(p) select p, key, p -insert into table multi1_mm partition(p=1) select key, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@multi1_mm@p=1 -POSTHOOK: Output: default@multi1_mm@p=455 -POSTHOOK: Output: default@multi1_mm@p=456 -POSTHOOK: Output: default@multi1_mm@p=457 -POSTHOOK: Lineage: multi1_mm PARTITION(p=1).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=1).key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=455).key SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=455).key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=456).key SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=456).key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=457).key SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=457).key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select key, key2, p from multi1_mm order by key, key2, p -PREHOOK: type: QUERY -PREHOOK: Input: default@multi1_mm -PREHOOK: Input: default@multi1_mm@p=1 -PREHOOK: Input: default@multi1_mm@p=2 -PREHOOK: Input: default@multi1_mm@p=455 -PREHOOK: Input: default@multi1_mm@p=456 -PREHOOK: Input: default@multi1_mm@p=457 -#### A masked pattern was here #### -POSTHOOK: query: select key, key2, p from multi1_mm order by key, key2, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@multi1_mm -POSTHOOK: Input: default@multi1_mm@p=1 -POSTHOOK: Input: default@multi1_mm@p=2 -POSTHOOK: Input: default@multi1_mm@p=455 -POSTHOOK: Input: default@multi1_mm@p=456 -POSTHOOK: Input: default@multi1_mm@p=457 -#### A masked pattern was here #### -0 456 1 -0 456 1 -0 456 2 -10 456 1 -10 456 1 -10 456 2 -97 455 1 -97 455 1 -97 455 2 -98 455 1 -98 455 1 -98 455 2 -100 457 1 -100 457 1 -100 457 2 -103 457 1 -103 457 1 -103 457 2 -455 97 1 -455 97 2 -455 97 455 -455 98 1 -455 98 2 -455 98 455 -456 0 1 -456 0 2 -456 0 456 -456 10 1 -456 10 2 -456 10 456 -457 100 1 -457 100 2 -457 100 457 -457 103 1 -457 103 2 -457 103 457 -PREHOOK: query: from intermediate -insert into table multi1_mm partition(p) select p, key, 1 -insert into table multi1_mm partition(p=1) select key, p -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@multi1_mm -PREHOOK: Output: default@multi1_mm@p=1 -POSTHOOK: query: from intermediate -insert into table multi1_mm partition(p) select p, key, 1 -insert into table multi1_mm partition(p=1) select key, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@multi1_mm@p=1 -POSTHOOK: Lineage: multi1_mm PARTITION(p=1).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=1).key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=1).key SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=1).key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select key, key2, p from multi1_mm order by key, key2, p -PREHOOK: type: QUERY -PREHOOK: Input: default@multi1_mm -PREHOOK: Input: default@multi1_mm@p=1 -PREHOOK: Input: default@multi1_mm@p=2 -PREHOOK: Input: default@multi1_mm@p=455 -PREHOOK: Input: default@multi1_mm@p=456 -PREHOOK: Input: default@multi1_mm@p=457 -#### A masked pattern was here #### -POSTHOOK: query: select key, key2, p from multi1_mm order by key, key2, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@multi1_mm -POSTHOOK: Input: default@multi1_mm@p=1 -POSTHOOK: Input: default@multi1_mm@p=2 -POSTHOOK: Input: default@multi1_mm@p=455 -POSTHOOK: Input: default@multi1_mm@p=456 -POSTHOOK: Input: default@multi1_mm@p=457 -#### A masked pattern was here #### -0 456 1 -0 456 1 -0 456 1 -0 456 2 -10 456 1 -10 456 1 -10 456 1 -10 456 2 -97 455 1 -97 455 1 -97 455 1 -97 455 2 -98 455 1 -98 455 1 -98 455 1 -98 455 2 -100 457 1 -100 457 1 -100 457 1 -100 457 2 -103 457 1 -103 457 1 -103 457 1 -103 457 2 -455 97 1 -455 97 1 -455 97 2 -455 97 455 -455 98 1 -455 98 1 -455 98 2 -455 98 455 -456 0 1 -456 0 1 -456 0 2 -456 0 456 -456 10 1 -456 10 1 -456 10 2 -456 10 456 -457 100 1 -457 100 1 -457 100 2 -457 100 457 -457 103 1 -457 103 1 -457 103 2 -457 103 457 -PREHOOK: query: drop table multi1_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@multi1_mm -PREHOOK: Output: default@multi1_mm -POSTHOOK: query: drop table multi1_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@multi1_mm -POSTHOOK: Output: default@multi1_mm -PREHOOK: query: drop table stats_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table stats_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table stats_mm(key int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@stats_mm -POSTHOOK: query: create table stats_mm(key int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@stats_mm -PREHOOK: query: insert overwrite table stats_mm select key from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@stats_mm -POSTHOOK: query: insert overwrite table stats_mm select key from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@stats_mm -POSTHOOK: Lineage: stats_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: desc formatted stats_mm -PREHOOK: type: DESCTABLE -PREHOOK: Input: default@stats_mm -POSTHOOK: query: desc formatted stats_mm -POSTHOOK: type: DESCTABLE -POSTHOOK: Input: default@stats_mm -# col_name data_type comment - -key int - -# Detailed Table Information -Database: default -#### A masked pattern was here #### -Retention: 0 -#### A masked pattern was here #### -Table Type: MANAGED_TABLE -Table Parameters: - COLUMN_STATS_ACCURATE {\"BASIC_STATS\":\"true\"} - numFiles 3 - numRows 6 - rawDataSize 13 - totalSize 19 - transactional true - transactional_properties insert_only -#### A masked pattern was here #### - -# Storage Information -SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe -InputFormat: org.apache.hadoop.mapred.TextInputFormat -OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat -Compressed: No -Num Buckets: -1 -Bucket Columns: [] -Sort Columns: [] -Storage Desc Params: - serialization.format 1 -PREHOOK: query: insert into table stats_mm select key from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@stats_mm -POSTHOOK: query: insert into table stats_mm select key from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@stats_mm -POSTHOOK: Lineage: stats_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: desc formatted stats_mm -PREHOOK: type: DESCTABLE -PREHOOK: Input: default@stats_mm -POSTHOOK: query: desc formatted stats_mm -POSTHOOK: type: DESCTABLE -POSTHOOK: Input: default@stats_mm -# col_name data_type comment - -key int - -# Detailed Table Information -Database: default -#### A masked pattern was here #### -Retention: 0 -#### A masked pattern was here #### -Table Type: MANAGED_TABLE -Table Parameters: - COLUMN_STATS_ACCURATE {\"BASIC_STATS\":\"true\"} - numFiles 6 - numRows 12 - rawDataSize 26 - totalSize 38 - transactional true - transactional_properties insert_only -#### A masked pattern was here #### - -# Storage Information -SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe -InputFormat: org.apache.hadoop.mapred.TextInputFormat -OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat -Compressed: No -Num Buckets: -1 -Bucket Columns: [] -Sort Columns: [] -Storage Desc Params: - serialization.format 1 -PREHOOK: query: drop table stats_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@stats_mm -PREHOOK: Output: default@stats_mm -POSTHOOK: query: drop table stats_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@stats_mm -POSTHOOK: Output: default@stats_mm -PREHOOK: query: drop table stats2_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table stats2_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table stats2_mm tblproperties("transactional"="true", "transactional_properties"="insert_only") as select array(key, value) from src -PREHOOK: type: CREATETABLE_AS_SELECT -PREHOOK: Input: default@src -PREHOOK: Output: database:default -PREHOOK: Output: default@stats2_mm -POSTHOOK: query: create table stats2_mm tblproperties("transactional"="true", "transactional_properties"="insert_only") as select array(key, value) from src -POSTHOOK: type: CREATETABLE_AS_SELECT -POSTHOOK: Input: default@src -POSTHOOK: Output: database:default -POSTHOOK: Output: default@stats2_mm -POSTHOOK: Lineage: stats2_mm._c0 EXPRESSION [(src)src.FieldSchema(name:key, type:string, comment:default), (src)src.FieldSchema(name:value, type:string, comment:default), ] -PREHOOK: query: desc formatted stats2_mm -PREHOOK: type: DESCTABLE -PREHOOK: Input: default@stats2_mm -POSTHOOK: query: desc formatted stats2_mm -POSTHOOK: type: DESCTABLE -POSTHOOK: Input: default@stats2_mm -# col_name data_type comment - -_c0 array - -# Detailed Table Information -Database: default -#### A masked pattern was here #### -Retention: 0 -#### A masked pattern was here #### -Table Type: MANAGED_TABLE -Table Parameters: - COLUMN_STATS_ACCURATE {\"BASIC_STATS\":\"true\"} - numFiles 55 - numRows 500 - rawDataSize 5312 - totalSize 5812 - transactional true - transactional_properties insert_only -#### A masked pattern was here #### - -# Storage Information -SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe -InputFormat: org.apache.hadoop.mapred.TextInputFormat -OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat -Compressed: No -Num Buckets: -1 -Bucket Columns: [] -Sort Columns: [] -Storage Desc Params: - serialization.format 1 -PREHOOK: query: drop table stats2_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@stats2_mm -PREHOOK: Output: default@stats2_mm -POSTHOOK: query: drop table stats2_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@stats2_mm -POSTHOOK: Output: default@stats2_mm -PREHOOK: query: CREATE TABLE skewjoin_mm(key INT, value STRING) STORED AS TEXTFILE tblproperties ("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@skewjoin_mm -POSTHOOK: query: CREATE TABLE skewjoin_mm(key INT, value STRING) STORED AS TEXTFILE tblproperties ("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@skewjoin_mm -PREHOOK: query: FROM src src1 JOIN src src2 ON (src1.key = src2.key) INSERT OVERWRITE TABLE skewjoin_mm SELECT src1.key, src2.value -PREHOOK: type: QUERY -PREHOOK: Input: default@src -PREHOOK: Output: default@skewjoin_mm -POSTHOOK: query: FROM src src1 JOIN src src2 ON (src1.key = src2.key) INSERT OVERWRITE TABLE skewjoin_mm SELECT src1.key, src2.value -POSTHOOK: type: QUERY -POSTHOOK: Input: default@src -POSTHOOK: Output: default@skewjoin_mm -POSTHOOK: Lineage: skewjoin_mm.key EXPRESSION [(src)src1.FieldSchema(name:key, type:string, comment:default), ] -POSTHOOK: Lineage: skewjoin_mm.value SIMPLE [(src)src2.FieldSchema(name:value, type:string, comment:default), ] -PREHOOK: query: select count(distinct key) from skewjoin_mm -PREHOOK: type: QUERY -PREHOOK: Input: default@skewjoin_mm -#### A masked pattern was here #### -POSTHOOK: query: select count(distinct key) from skewjoin_mm -POSTHOOK: type: QUERY -POSTHOOK: Input: default@skewjoin_mm -#### A masked pattern was here #### -309 -PREHOOK: query: drop table skewjoin_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@skewjoin_mm -PREHOOK: Output: default@skewjoin_mm -POSTHOOK: query: drop table skewjoin_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@skewjoin_mm -POSTHOOK: Output: default@skewjoin_mm PREHOOK: query: CREATE TABLE parquet1_mm(id INT) STORED AS PARQUET tblproperties ("transactional"="true", "transactional_properties"="insert_only") PREHOOK: type: CREATETABLE PREHOOK: Output: database:default @@ -3114,7 +1155,6 @@ POSTHOOK: type: QUERY POSTHOOK: Input: default@parquet1_mm POSTHOOK: Input: default@parquet2_mm #### A masked pattern was here #### -1 value1 value2 PREHOOK: query: drop table parquet1_mm PREHOOK: type: DROPTABLE PREHOOK: Input: default@parquet1_mm diff --git ql/src/test/results/clientpositive/llap/mm_conversions.q.out ql/src/test/results/clientpositive/llap/mm_conversions.q.out index 2cfa06d..861acaf 100644 --- ql/src/test/results/clientpositive/llap/mm_conversions.q.out +++ ql/src/test/results/clientpositive/llap/mm_conversions.q.out @@ -37,250 +37,200 @@ POSTHOOK: type: QUERY POSTHOOK: Input: default@src POSTHOOK: Output: default@intermediate@p=457 POSTHOOK: Lineage: intermediate PARTITION(p=457).key EXPRESSION [(src)src.FieldSchema(name:key, type:string, comment:default), ] -PREHOOK: query: drop table simple_from_mm +PREHOOK: query: drop table simple_from_mm1 PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table simple_from_mm +POSTHOOK: query: drop table simple_from_mm1 POSTHOOK: type: DROPTABLE -PREHOOK: query: create table simple_from_mm(key int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only") +PREHOOK: query: create table simple_from_mm1(key int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only") PREHOOK: type: CREATETABLE PREHOOK: Output: database:default -PREHOOK: Output: default@simple_from_mm -POSTHOOK: query: create table simple_from_mm(key int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only") +PREHOOK: Output: default@simple_from_mm1 +POSTHOOK: query: create table simple_from_mm1(key int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only") POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default -POSTHOOK: Output: default@simple_from_mm -PREHOOK: query: insert into table simple_from_mm select key from intermediate +POSTHOOK: Output: default@simple_from_mm1 +PREHOOK: query: insert into table simple_from_mm1 select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@simple_from_mm -POSTHOOK: query: insert into table simple_from_mm select key from intermediate +PREHOOK: Output: default@simple_from_mm1 +POSTHOOK: query: insert into table simple_from_mm1 select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@simple_from_mm -POSTHOOK: Lineage: simple_from_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: insert into table simple_from_mm select key from intermediate +POSTHOOK: Output: default@simple_from_mm1 +POSTHOOK: Lineage: simple_from_mm1.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: insert into table simple_from_mm1 select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@simple_from_mm -POSTHOOK: query: insert into table simple_from_mm select key from intermediate +PREHOOK: Output: default@simple_from_mm1 +POSTHOOK: query: insert into table simple_from_mm1 select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@simple_from_mm -POSTHOOK: Lineage: simple_from_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from simple_from_mm s1 order by key +POSTHOOK: Output: default@simple_from_mm1 +POSTHOOK: Lineage: simple_from_mm1.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: select * from simple_from_mm1 s1 order by key PREHOOK: type: QUERY -PREHOOK: Input: default@simple_from_mm +PREHOOK: Input: default@simple_from_mm1 #### A masked pattern was here #### -POSTHOOK: query: select * from simple_from_mm s1 order by key +POSTHOOK: query: select * from simple_from_mm1 s1 order by key POSTHOOK: type: QUERY -POSTHOOK: Input: default@simple_from_mm +POSTHOOK: Input: default@simple_from_mm1 #### A masked pattern was here #### -0 -0 -98 -98 -100 -100 -PREHOOK: query: alter table simple_from_mm unset tblproperties('transactional_properties', 'transactional') +PREHOOK: query: alter table simple_from_mm1 unset tblproperties('transactional_properties', 'transactional') PREHOOK: type: ALTERTABLE_PROPERTIES -PREHOOK: Input: default@simple_from_mm -PREHOOK: Output: default@simple_from_mm -POSTHOOK: query: alter table simple_from_mm unset tblproperties('transactional_properties', 'transactional') +PREHOOK: Input: default@simple_from_mm1 +PREHOOK: Output: default@simple_from_mm1 +POSTHOOK: query: alter table simple_from_mm1 unset tblproperties('transactional_properties', 'transactional') POSTHOOK: type: ALTERTABLE_PROPERTIES -POSTHOOK: Input: default@simple_from_mm -POSTHOOK: Output: default@simple_from_mm -PREHOOK: query: select * from simple_from_mm s2 order by key +POSTHOOK: Input: default@simple_from_mm1 +POSTHOOK: Output: default@simple_from_mm1 +PREHOOK: query: select * from simple_from_mm1 s2 order by key PREHOOK: type: QUERY -PREHOOK: Input: default@simple_from_mm +PREHOOK: Input: default@simple_from_mm1 #### A masked pattern was here #### -POSTHOOK: query: select * from simple_from_mm s2 order by key +POSTHOOK: query: select * from simple_from_mm1 s2 order by key POSTHOOK: type: QUERY -POSTHOOK: Input: default@simple_from_mm +POSTHOOK: Input: default@simple_from_mm1 #### A masked pattern was here #### -0 -0 -98 -98 -100 -100 -PREHOOK: query: insert into table simple_from_mm select key from intermediate +PREHOOK: query: insert into table simple_from_mm1 select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@simple_from_mm -POSTHOOK: query: insert into table simple_from_mm select key from intermediate +PREHOOK: Output: default@simple_from_mm1 +POSTHOOK: query: insert into table simple_from_mm1 select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@simple_from_mm -POSTHOOK: Lineage: simple_from_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from simple_from_mm s3 order by key -PREHOOK: type: QUERY -PREHOOK: Input: default@simple_from_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from simple_from_mm s3 order by key -POSTHOOK: type: QUERY -POSTHOOK: Input: default@simple_from_mm -#### A masked pattern was here #### -0 -0 -0 -98 -98 -98 -100 -100 -100 -PREHOOK: query: alter table simple_from_mm set tblproperties("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: ALTERTABLE_PROPERTIES -PREHOOK: Input: default@simple_from_mm -PREHOOK: Output: default@simple_from_mm -POSTHOOK: query: alter table simple_from_mm set tblproperties("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: ALTERTABLE_PROPERTIES -POSTHOOK: Input: default@simple_from_mm -POSTHOOK: Output: default@simple_from_mm -PREHOOK: query: select * from simple_from_mm s4 order by key +POSTHOOK: Output: default@simple_from_mm1 +POSTHOOK: Lineage: simple_from_mm1.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: select * from simple_from_mm1 s3 order by key PREHOOK: type: QUERY -PREHOOK: Input: default@simple_from_mm +PREHOOK: Input: default@simple_from_mm1 #### A masked pattern was here #### -POSTHOOK: query: select * from simple_from_mm s4 order by key +POSTHOOK: query: select * from simple_from_mm1 s3 order by key POSTHOOK: type: QUERY -POSTHOOK: Input: default@simple_from_mm +POSTHOOK: Input: default@simple_from_mm1 #### A masked pattern was here #### -0 -0 -0 -98 -98 -98 -100 -100 -100 -PREHOOK: query: insert into table simple_from_mm select key from intermediate +PREHOOK: query: drop table simple_from_mm1 +PREHOOK: type: DROPTABLE +PREHOOK: Input: default@simple_from_mm1 +PREHOOK: Output: default@simple_from_mm1 +POSTHOOK: query: drop table simple_from_mm1 +POSTHOOK: type: DROPTABLE +POSTHOOK: Input: default@simple_from_mm1 +POSTHOOK: Output: default@simple_from_mm1 +PREHOOK: query: drop table simple_from_mm2 +PREHOOK: type: DROPTABLE +POSTHOOK: query: drop table simple_from_mm2 +POSTHOOK: type: DROPTABLE +PREHOOK: query: create table simple_from_mm2(key int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only") +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@simple_from_mm2 +POSTHOOK: query: create table simple_from_mm2(key int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only") +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@simple_from_mm2 +PREHOOK: query: insert into table simple_from_mm2 select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@simple_from_mm -POSTHOOK: query: insert into table simple_from_mm select key from intermediate +PREHOOK: Output: default@simple_from_mm2 +POSTHOOK: query: insert into table simple_from_mm2 select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@simple_from_mm -POSTHOOK: Lineage: simple_from_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from simple_from_mm s5 order by key -PREHOOK: type: QUERY -PREHOOK: Input: default@simple_from_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from simple_from_mm s5 order by key -POSTHOOK: type: QUERY -POSTHOOK: Input: default@simple_from_mm -#### A masked pattern was here #### -0 -0 -0 -0 -98 -98 -98 -98 -100 -100 -100 -100 -PREHOOK: query: alter table simple_from_mm set tblproperties("transactional"="false", 'transactional_properties'='false') +POSTHOOK: Output: default@simple_from_mm2 +POSTHOOK: Lineage: simple_from_mm2.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: insert into table simple_from_mm2 select key from intermediate +PREHOOK: type: QUERY +PREHOOK: Input: default@intermediate +PREHOOK: Input: default@intermediate@p=455 +PREHOOK: Input: default@intermediate@p=456 +PREHOOK: Input: default@intermediate@p=457 +PREHOOK: Output: default@simple_from_mm2 +POSTHOOK: query: insert into table simple_from_mm2 select key from intermediate +POSTHOOK: type: QUERY +POSTHOOK: Input: default@intermediate +POSTHOOK: Input: default@intermediate@p=455 +POSTHOOK: Input: default@intermediate@p=456 +POSTHOOK: Input: default@intermediate@p=457 +POSTHOOK: Output: default@simple_from_mm2 +POSTHOOK: Lineage: simple_from_mm2.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: select * from simple_from_mm2 s1 order by key +PREHOOK: type: QUERY +PREHOOK: Input: default@simple_from_mm2 +#### A masked pattern was here #### +POSTHOOK: query: select * from simple_from_mm2 s1 order by key +POSTHOOK: type: QUERY +POSTHOOK: Input: default@simple_from_mm2 +#### A masked pattern was here #### +PREHOOK: query: alter table simple_from_mm2 set tblproperties("transactional"="false", 'transactional_properties'='false') PREHOOK: type: ALTERTABLE_PROPERTIES -PREHOOK: Input: default@simple_from_mm -PREHOOK: Output: default@simple_from_mm -POSTHOOK: query: alter table simple_from_mm set tblproperties("transactional"="false", 'transactional_properties'='false') +PREHOOK: Input: default@simple_from_mm2 +PREHOOK: Output: default@simple_from_mm2 +POSTHOOK: query: alter table simple_from_mm2 set tblproperties("transactional"="false", 'transactional_properties'='false') POSTHOOK: type: ALTERTABLE_PROPERTIES -POSTHOOK: Input: default@simple_from_mm -POSTHOOK: Output: default@simple_from_mm -PREHOOK: query: select * from simple_from_mm s6 order by key -PREHOOK: type: QUERY -PREHOOK: Input: default@simple_from_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from simple_from_mm s6 order by key -POSTHOOK: type: QUERY -POSTHOOK: Input: default@simple_from_mm -#### A masked pattern was here #### -0 -0 -0 -0 -98 -98 -98 -98 -100 -100 -100 -100 -PREHOOK: query: insert into table simple_from_mm select key from intermediate +POSTHOOK: Input: default@simple_from_mm2 +POSTHOOK: Output: default@simple_from_mm2 +PREHOOK: query: select * from simple_from_mm2 s2 order by key +PREHOOK: type: QUERY +PREHOOK: Input: default@simple_from_mm2 +#### A masked pattern was here #### +POSTHOOK: query: select * from simple_from_mm2 s2 order by key +POSTHOOK: type: QUERY +POSTHOOK: Input: default@simple_from_mm2 +#### A masked pattern was here #### +PREHOOK: query: insert into table simple_from_mm2 select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@simple_from_mm -POSTHOOK: query: insert into table simple_from_mm select key from intermediate +PREHOOK: Output: default@simple_from_mm2 +POSTHOOK: query: insert into table simple_from_mm2 select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@simple_from_mm -POSTHOOK: Lineage: simple_from_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from simple_from_mm s7 order by key -PREHOOK: type: QUERY -PREHOOK: Input: default@simple_from_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from simple_from_mm s7 order by key -POSTHOOK: type: QUERY -POSTHOOK: Input: default@simple_from_mm -#### A masked pattern was here #### -0 -0 -0 -0 -0 -98 -98 -98 -98 -98 -100 -100 -100 -100 -100 -PREHOOK: query: drop table simple_from_mm +POSTHOOK: Output: default@simple_from_mm2 +POSTHOOK: Lineage: simple_from_mm2.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: select * from simple_from_mm2 s3 order by key +PREHOOK: type: QUERY +PREHOOK: Input: default@simple_from_mm2 +#### A masked pattern was here #### +POSTHOOK: query: select * from simple_from_mm2 s3 order by key +POSTHOOK: type: QUERY +POSTHOOK: Input: default@simple_from_mm2 +#### A masked pattern was here #### +PREHOOK: query: drop table simple_from_mm2 PREHOOK: type: DROPTABLE -PREHOOK: Input: default@simple_from_mm -PREHOOK: Output: default@simple_from_mm -POSTHOOK: query: drop table simple_from_mm +PREHOOK: Input: default@simple_from_mm2 +PREHOOK: Output: default@simple_from_mm2 +POSTHOOK: query: drop table simple_from_mm2 POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@simple_from_mm -POSTHOOK: Output: default@simple_from_mm +POSTHOOK: Input: default@simple_from_mm2 +POSTHOOK: Output: default@simple_from_mm2 PREHOOK: query: drop table simple_to_mm PREHOOK: type: DROPTABLE POSTHOOK: query: drop table simple_to_mm @@ -308,21 +258,6 @@ POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 POSTHOOK: Output: default@simple_to_mm POSTHOOK: Lineage: simple_to_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: insert into table simple_to_mm select key from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@simple_to_mm -POSTHOOK: query: insert into table simple_to_mm select key from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@simple_to_mm -POSTHOOK: Lineage: simple_to_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] PREHOOK: query: select * from simple_to_mm s1 order by key PREHOOK: type: QUERY PREHOOK: Input: default@simple_to_mm @@ -331,16 +266,11 @@ POSTHOOK: query: select * from simple_to_mm s1 order by key POSTHOOK: type: QUERY POSTHOOK: Input: default@simple_to_mm #### A masked pattern was here #### -0 -0 -98 -98 -100 -100 PREHOOK: query: alter table simple_to_mm set tblproperties("transactional"="true", "transactional_properties"="insert_only") PREHOOK: type: ALTERTABLE_PROPERTIES PREHOOK: Input: default@simple_to_mm PREHOOK: Output: default@simple_to_mm +FAILED: Error in acquiring locks: Transaction already opened. txnid:30 POSTHOOK: query: alter table simple_to_mm set tblproperties("transactional"="true", "transactional_properties"="insert_only") POSTHOOK: type: ALTERTABLE_PROPERTIES POSTHOOK: Input: default@simple_to_mm @@ -353,12 +283,6 @@ POSTHOOK: query: select * from simple_to_mm s2 order by key POSTHOOK: type: QUERY POSTHOOK: Input: default@simple_to_mm #### A masked pattern was here #### -0 -0 -98 -98 -100 -100 PREHOOK: query: insert into table simple_to_mm select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate @@ -397,18 +321,6 @@ POSTHOOK: query: select * from simple_to_mm s3 order by key POSTHOOK: type: QUERY POSTHOOK: Input: default@simple_to_mm #### A masked pattern was here #### -0 -0 -0 -0 -98 -98 -98 -98 -100 -100 -100 -100 PREHOOK: query: drop table simple_to_mm PREHOOK: type: DROPTABLE PREHOOK: Input: default@simple_to_mm @@ -417,378 +329,260 @@ POSTHOOK: query: drop table simple_to_mm POSTHOOK: type: DROPTABLE POSTHOOK: Input: default@simple_to_mm POSTHOOK: Output: default@simple_to_mm -PREHOOK: query: drop table part_from_mm +PREHOOK: query: drop table part_from_mm1 PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table part_from_mm +POSTHOOK: query: drop table part_from_mm1 POSTHOOK: type: DROPTABLE -PREHOOK: query: create table part_from_mm(key int) partitioned by (key_mm int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only") +PREHOOK: query: create table part_from_mm1(key int) partitioned by (key_mm int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only") PREHOOK: type: CREATETABLE PREHOOK: Output: database:default -PREHOOK: Output: default@part_from_mm -POSTHOOK: query: create table part_from_mm(key int) partitioned by (key_mm int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only") +PREHOOK: Output: default@part_from_mm1 +POSTHOOK: query: create table part_from_mm1(key int) partitioned by (key_mm int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only") POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default -POSTHOOK: Output: default@part_from_mm -PREHOOK: query: insert into table part_from_mm partition(key_mm='455') select key from intermediate +POSTHOOK: Output: default@part_from_mm1 +PREHOOK: query: insert into table part_from_mm1 partition(key_mm='455') select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@part_from_mm@key_mm=455 -POSTHOOK: query: insert into table part_from_mm partition(key_mm='455') select key from intermediate +PREHOOK: Output: default@part_from_mm1@key_mm=455 +POSTHOOK: query: insert into table part_from_mm1 partition(key_mm='455') select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@part_from_mm@key_mm=455 -POSTHOOK: Lineage: part_from_mm PARTITION(key_mm=455).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: insert into table part_from_mm partition(key_mm='455') select key from intermediate +POSTHOOK: Output: default@part_from_mm1@key_mm=455 +POSTHOOK: Lineage: part_from_mm1 PARTITION(key_mm=455).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: insert into table part_from_mm1 partition(key_mm='455') select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@part_from_mm@key_mm=455 -POSTHOOK: query: insert into table part_from_mm partition(key_mm='455') select key from intermediate +PREHOOK: Output: default@part_from_mm1@key_mm=455 +POSTHOOK: query: insert into table part_from_mm1 partition(key_mm='455') select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@part_from_mm@key_mm=455 -POSTHOOK: Lineage: part_from_mm PARTITION(key_mm=455).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: insert into table part_from_mm partition(key_mm='456') select key from intermediate +POSTHOOK: Output: default@part_from_mm1@key_mm=455 +POSTHOOK: Lineage: part_from_mm1 PARTITION(key_mm=455).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: insert into table part_from_mm1 partition(key_mm='456') select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@part_from_mm@key_mm=456 -POSTHOOK: query: insert into table part_from_mm partition(key_mm='456') select key from intermediate +PREHOOK: Output: default@part_from_mm1@key_mm=456 +POSTHOOK: query: insert into table part_from_mm1 partition(key_mm='456') select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@part_from_mm@key_mm=456 -POSTHOOK: Lineage: part_from_mm PARTITION(key_mm=456).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from part_from_mm s1 order by key, key_mm -PREHOOK: type: QUERY -PREHOOK: Input: default@part_from_mm -PREHOOK: Input: default@part_from_mm@key_mm=455 -PREHOOK: Input: default@part_from_mm@key_mm=456 -#### A masked pattern was here #### -POSTHOOK: query: select * from part_from_mm s1 order by key, key_mm -POSTHOOK: type: QUERY -POSTHOOK: Input: default@part_from_mm -POSTHOOK: Input: default@part_from_mm@key_mm=455 -POSTHOOK: Input: default@part_from_mm@key_mm=456 -#### A masked pattern was here #### -0 455 -0 455 -0 456 -98 455 -98 455 -98 456 -100 455 -100 455 -100 456 -PREHOOK: query: alter table part_from_mm unset tblproperties('transactional_properties', 'transactional') +POSTHOOK: Output: default@part_from_mm1@key_mm=456 +POSTHOOK: Lineage: part_from_mm1 PARTITION(key_mm=456).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: select * from part_from_mm1 s1 order by key, key_mm +PREHOOK: type: QUERY +PREHOOK: Input: default@part_from_mm1 +PREHOOK: Input: default@part_from_mm1@key_mm=455 +PREHOOK: Input: default@part_from_mm1@key_mm=456 +#### A masked pattern was here #### +POSTHOOK: query: select * from part_from_mm1 s1 order by key, key_mm +POSTHOOK: type: QUERY +POSTHOOK: Input: default@part_from_mm1 +POSTHOOK: Input: default@part_from_mm1@key_mm=455 +POSTHOOK: Input: default@part_from_mm1@key_mm=456 +#### A masked pattern was here #### +PREHOOK: query: alter table part_from_mm1 unset tblproperties('transactional_properties', 'transactional') PREHOOK: type: ALTERTABLE_PROPERTIES -PREHOOK: Input: default@part_from_mm -PREHOOK: Output: default@part_from_mm -POSTHOOK: query: alter table part_from_mm unset tblproperties('transactional_properties', 'transactional') +PREHOOK: Input: default@part_from_mm1 +PREHOOK: Output: default@part_from_mm1 +POSTHOOK: query: alter table part_from_mm1 unset tblproperties('transactional_properties', 'transactional') POSTHOOK: type: ALTERTABLE_PROPERTIES -POSTHOOK: Input: default@part_from_mm -POSTHOOK: Output: default@part_from_mm -PREHOOK: query: select * from part_from_mm s2 order by key, key_mm -PREHOOK: type: QUERY -PREHOOK: Input: default@part_from_mm -PREHOOK: Input: default@part_from_mm@key_mm=455 -PREHOOK: Input: default@part_from_mm@key_mm=456 -#### A masked pattern was here #### -POSTHOOK: query: select * from part_from_mm s2 order by key, key_mm -POSTHOOK: type: QUERY -POSTHOOK: Input: default@part_from_mm -POSTHOOK: Input: default@part_from_mm@key_mm=455 -POSTHOOK: Input: default@part_from_mm@key_mm=456 -#### A masked pattern was here #### -0 455 -0 455 -0 456 -98 455 -98 455 -98 456 -100 455 -100 455 -100 456 -PREHOOK: query: insert into table part_from_mm partition(key_mm='456') select key from intermediate +POSTHOOK: Input: default@part_from_mm1 +POSTHOOK: Output: default@part_from_mm1 +PREHOOK: query: select * from part_from_mm1 s2 order by key, key_mm +PREHOOK: type: QUERY +PREHOOK: Input: default@part_from_mm1 +PREHOOK: Input: default@part_from_mm1@key_mm=455 +PREHOOK: Input: default@part_from_mm1@key_mm=456 +#### A masked pattern was here #### +POSTHOOK: query: select * from part_from_mm1 s2 order by key, key_mm +POSTHOOK: type: QUERY +POSTHOOK: Input: default@part_from_mm1 +POSTHOOK: Input: default@part_from_mm1@key_mm=455 +POSTHOOK: Input: default@part_from_mm1@key_mm=456 +#### A masked pattern was here #### +PREHOOK: query: insert into table part_from_mm1 partition(key_mm='456') select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@part_from_mm@key_mm=456 -POSTHOOK: query: insert into table part_from_mm partition(key_mm='456') select key from intermediate +PREHOOK: Output: default@part_from_mm1@key_mm=456 +POSTHOOK: query: insert into table part_from_mm1 partition(key_mm='456') select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@part_from_mm@key_mm=456 -POSTHOOK: Lineage: part_from_mm PARTITION(key_mm=456).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: insert into table part_from_mm partition(key_mm='457') select key from intermediate +POSTHOOK: Output: default@part_from_mm1@key_mm=456 +POSTHOOK: Lineage: part_from_mm1 PARTITION(key_mm=456).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: insert into table part_from_mm1 partition(key_mm='457') select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@part_from_mm@key_mm=457 -POSTHOOK: query: insert into table part_from_mm partition(key_mm='457') select key from intermediate +PREHOOK: Output: default@part_from_mm1@key_mm=457 +POSTHOOK: query: insert into table part_from_mm1 partition(key_mm='457') select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@part_from_mm@key_mm=457 -POSTHOOK: Lineage: part_from_mm PARTITION(key_mm=457).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from part_from_mm s3 order by key, key_mm -PREHOOK: type: QUERY -PREHOOK: Input: default@part_from_mm -PREHOOK: Input: default@part_from_mm@key_mm=455 -PREHOOK: Input: default@part_from_mm@key_mm=456 -PREHOOK: Input: default@part_from_mm@key_mm=457 -#### A masked pattern was here #### -POSTHOOK: query: select * from part_from_mm s3 order by key, key_mm -POSTHOOK: type: QUERY -POSTHOOK: Input: default@part_from_mm -POSTHOOK: Input: default@part_from_mm@key_mm=455 -POSTHOOK: Input: default@part_from_mm@key_mm=456 -POSTHOOK: Input: default@part_from_mm@key_mm=457 -#### A masked pattern was here #### -0 455 -0 455 -0 456 -0 456 -0 457 -98 455 -98 455 -98 456 -98 456 -98 457 -100 455 -100 455 -100 456 -100 456 -100 457 -PREHOOK: query: alter table part_from_mm set tblproperties("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: ALTERTABLE_PROPERTIES -PREHOOK: Input: default@part_from_mm -PREHOOK: Output: default@part_from_mm -POSTHOOK: query: alter table part_from_mm set tblproperties("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: ALTERTABLE_PROPERTIES -POSTHOOK: Input: default@part_from_mm -POSTHOOK: Output: default@part_from_mm -PREHOOK: query: select * from part_from_mm s4 order by key, key_mm -PREHOOK: type: QUERY -PREHOOK: Input: default@part_from_mm -PREHOOK: Input: default@part_from_mm@key_mm=455 -PREHOOK: Input: default@part_from_mm@key_mm=456 -PREHOOK: Input: default@part_from_mm@key_mm=457 -#### A masked pattern was here #### -POSTHOOK: query: select * from part_from_mm s4 order by key, key_mm -POSTHOOK: type: QUERY -POSTHOOK: Input: default@part_from_mm -POSTHOOK: Input: default@part_from_mm@key_mm=455 -POSTHOOK: Input: default@part_from_mm@key_mm=456 -POSTHOOK: Input: default@part_from_mm@key_mm=457 -#### A masked pattern was here #### -0 455 -0 455 -0 456 -0 456 -0 457 -98 455 -98 455 -98 456 -98 456 -98 457 -100 455 -100 455 -100 456 -100 456 -100 457 -PREHOOK: query: insert into table part_from_mm partition(key_mm='456') select key from intermediate +POSTHOOK: Output: default@part_from_mm1@key_mm=457 +POSTHOOK: Lineage: part_from_mm1 PARTITION(key_mm=457).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: select * from part_from_mm1 s3 order by key, key_mm +PREHOOK: type: QUERY +PREHOOK: Input: default@part_from_mm1 +PREHOOK: Input: default@part_from_mm1@key_mm=455 +PREHOOK: Input: default@part_from_mm1@key_mm=456 +PREHOOK: Input: default@part_from_mm1@key_mm=457 +#### A masked pattern was here #### +POSTHOOK: query: select * from part_from_mm1 s3 order by key, key_mm +POSTHOOK: type: QUERY +POSTHOOK: Input: default@part_from_mm1 +POSTHOOK: Input: default@part_from_mm1@key_mm=455 +POSTHOOK: Input: default@part_from_mm1@key_mm=456 +POSTHOOK: Input: default@part_from_mm1@key_mm=457 +#### A masked pattern was here #### +PREHOOK: query: drop table part_from_mm1 +PREHOOK: type: DROPTABLE +PREHOOK: Input: default@part_from_mm1 +PREHOOK: Output: default@part_from_mm1 +POSTHOOK: query: drop table part_from_mm1 +POSTHOOK: type: DROPTABLE +POSTHOOK: Input: default@part_from_mm1 +POSTHOOK: Output: default@part_from_mm1 +PREHOOK: query: drop table part_from_mm2 +PREHOOK: type: DROPTABLE +POSTHOOK: query: drop table part_from_mm2 +POSTHOOK: type: DROPTABLE +PREHOOK: query: create table part_from_mm2(key int) partitioned by (key_mm int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only") +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@part_from_mm2 +POSTHOOK: query: create table part_from_mm2(key int) partitioned by (key_mm int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only") +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@part_from_mm2 +PREHOOK: query: insert into table part_from_mm2 partition(key_mm='456') select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@part_from_mm@key_mm=456 -POSTHOOK: query: insert into table part_from_mm partition(key_mm='456') select key from intermediate +PREHOOK: Output: default@part_from_mm2@key_mm=456 +POSTHOOK: query: insert into table part_from_mm2 partition(key_mm='456') select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@part_from_mm@key_mm=456 -POSTHOOK: Lineage: part_from_mm PARTITION(key_mm=456).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: insert into table part_from_mm partition(key_mm='455') select key from intermediate +POSTHOOK: Output: default@part_from_mm2@key_mm=456 +POSTHOOK: Lineage: part_from_mm2 PARTITION(key_mm=456).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: --fails here +insert into table part_from_mm2 partition(key_mm='455') select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@part_from_mm@key_mm=455 -POSTHOOK: query: insert into table part_from_mm partition(key_mm='455') select key from intermediate +PREHOOK: Output: default@part_from_mm2@key_mm=455 +POSTHOOK: query: --fails here +insert into table part_from_mm2 partition(key_mm='455') select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@part_from_mm@key_mm=455 -POSTHOOK: Lineage: part_from_mm PARTITION(key_mm=455).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from part_from_mm s5 order by key, key_mm -PREHOOK: type: QUERY -PREHOOK: Input: default@part_from_mm -PREHOOK: Input: default@part_from_mm@key_mm=455 -PREHOOK: Input: default@part_from_mm@key_mm=456 -PREHOOK: Input: default@part_from_mm@key_mm=457 -#### A masked pattern was here #### -POSTHOOK: query: select * from part_from_mm s5 order by key, key_mm -POSTHOOK: type: QUERY -POSTHOOK: Input: default@part_from_mm -POSTHOOK: Input: default@part_from_mm@key_mm=455 -POSTHOOK: Input: default@part_from_mm@key_mm=456 -POSTHOOK: Input: default@part_from_mm@key_mm=457 -#### A masked pattern was here #### -0 455 -0 455 -0 455 -0 456 -0 456 -0 456 -0 457 -98 455 -98 455 -98 455 -98 456 -98 456 -98 456 -98 457 -100 455 -100 455 -100 455 -100 456 -100 456 -100 456 -100 457 -PREHOOK: query: alter table part_from_mm set tblproperties("transactional"="false", 'transactional_properties'='false') +POSTHOOK: Output: default@part_from_mm2@key_mm=455 +POSTHOOK: Lineage: part_from_mm2 PARTITION(key_mm=455).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: select * from part_from_mm2 s1 order by key, key_mm +PREHOOK: type: QUERY +PREHOOK: Input: default@part_from_mm2 +PREHOOK: Input: default@part_from_mm2@key_mm=455 +PREHOOK: Input: default@part_from_mm2@key_mm=456 +#### A masked pattern was here #### +POSTHOOK: query: select * from part_from_mm2 s1 order by key, key_mm +POSTHOOK: type: QUERY +POSTHOOK: Input: default@part_from_mm2 +POSTHOOK: Input: default@part_from_mm2@key_mm=455 +POSTHOOK: Input: default@part_from_mm2@key_mm=456 +#### A masked pattern was here #### +PREHOOK: query: alter table part_from_mm2 set tblproperties("transactional"="false", 'transactional_properties'='false') PREHOOK: type: ALTERTABLE_PROPERTIES -PREHOOK: Input: default@part_from_mm -PREHOOK: Output: default@part_from_mm -POSTHOOK: query: alter table part_from_mm set tblproperties("transactional"="false", 'transactional_properties'='false') +PREHOOK: Input: default@part_from_mm2 +PREHOOK: Output: default@part_from_mm2 +POSTHOOK: query: alter table part_from_mm2 set tblproperties("transactional"="false", 'transactional_properties'='false') POSTHOOK: type: ALTERTABLE_PROPERTIES -POSTHOOK: Input: default@part_from_mm -POSTHOOK: Output: default@part_from_mm -PREHOOK: query: select * from part_from_mm s6 order by key, key_mm -PREHOOK: type: QUERY -PREHOOK: Input: default@part_from_mm -PREHOOK: Input: default@part_from_mm@key_mm=455 -PREHOOK: Input: default@part_from_mm@key_mm=456 -PREHOOK: Input: default@part_from_mm@key_mm=457 -#### A masked pattern was here #### -POSTHOOK: query: select * from part_from_mm s6 order by key, key_mm -POSTHOOK: type: QUERY -POSTHOOK: Input: default@part_from_mm -POSTHOOK: Input: default@part_from_mm@key_mm=455 -POSTHOOK: Input: default@part_from_mm@key_mm=456 -POSTHOOK: Input: default@part_from_mm@key_mm=457 -#### A masked pattern was here #### -0 455 -0 455 -0 455 -0 456 -0 456 -0 456 -0 457 -98 455 -98 455 -98 455 -98 456 -98 456 -98 456 -98 457 -100 455 -100 455 -100 455 -100 456 -100 456 -100 456 -100 457 -PREHOOK: query: insert into table part_from_mm partition(key_mm='457') select key from intermediate +POSTHOOK: Input: default@part_from_mm2 +POSTHOOK: Output: default@part_from_mm2 +PREHOOK: query: select * from part_from_mm2 s2 order by key, key_mm +PREHOOK: type: QUERY +PREHOOK: Input: default@part_from_mm2 +PREHOOK: Input: default@part_from_mm2@key_mm=455 +PREHOOK: Input: default@part_from_mm2@key_mm=456 +#### A masked pattern was here #### +POSTHOOK: query: select * from part_from_mm2 s2 order by key, key_mm +POSTHOOK: type: QUERY +POSTHOOK: Input: default@part_from_mm2 +POSTHOOK: Input: default@part_from_mm2@key_mm=455 +POSTHOOK: Input: default@part_from_mm2@key_mm=456 +#### A masked pattern was here #### +PREHOOK: query: insert into table part_from_mm2 partition(key_mm='457') select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@part_from_mm@key_mm=457 -POSTHOOK: query: insert into table part_from_mm partition(key_mm='457') select key from intermediate +PREHOOK: Output: default@part_from_mm2@key_mm=457 +POSTHOOK: query: insert into table part_from_mm2 partition(key_mm='457') select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@part_from_mm@key_mm=457 -POSTHOOK: Lineage: part_from_mm PARTITION(key_mm=457).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from part_from_mm s7 order by key, key_mm -PREHOOK: type: QUERY -PREHOOK: Input: default@part_from_mm -PREHOOK: Input: default@part_from_mm@key_mm=455 -PREHOOK: Input: default@part_from_mm@key_mm=456 -PREHOOK: Input: default@part_from_mm@key_mm=457 -#### A masked pattern was here #### -POSTHOOK: query: select * from part_from_mm s7 order by key, key_mm -POSTHOOK: type: QUERY -POSTHOOK: Input: default@part_from_mm -POSTHOOK: Input: default@part_from_mm@key_mm=455 -POSTHOOK: Input: default@part_from_mm@key_mm=456 -POSTHOOK: Input: default@part_from_mm@key_mm=457 -#### A masked pattern was here #### -0 455 -0 455 -0 455 -0 456 -0 456 -0 456 -0 457 -0 457 -98 455 -98 455 -98 455 -98 456 -98 456 -98 456 -98 457 -98 457 -100 455 -100 455 -100 455 -100 456 -100 456 -100 456 -100 457 -100 457 -PREHOOK: query: drop table part_from_mm +POSTHOOK: Output: default@part_from_mm2@key_mm=457 +POSTHOOK: Lineage: part_from_mm2 PARTITION(key_mm=457).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: select * from part_from_mm2 s3 order by key, key_mm +PREHOOK: type: QUERY +PREHOOK: Input: default@part_from_mm2 +PREHOOK: Input: default@part_from_mm2@key_mm=455 +PREHOOK: Input: default@part_from_mm2@key_mm=456 +PREHOOK: Input: default@part_from_mm2@key_mm=457 +#### A masked pattern was here #### +POSTHOOK: query: select * from part_from_mm2 s3 order by key, key_mm +POSTHOOK: type: QUERY +POSTHOOK: Input: default@part_from_mm2 +POSTHOOK: Input: default@part_from_mm2@key_mm=455 +POSTHOOK: Input: default@part_from_mm2@key_mm=456 +POSTHOOK: Input: default@part_from_mm2@key_mm=457 +#### A masked pattern was here #### +PREHOOK: query: drop table part_from_mm2 PREHOOK: type: DROPTABLE -PREHOOK: Input: default@part_from_mm -PREHOOK: Output: default@part_from_mm -POSTHOOK: query: drop table part_from_mm +PREHOOK: Input: default@part_from_mm2 +PREHOOK: Output: default@part_from_mm2 +POSTHOOK: query: drop table part_from_mm2 POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@part_from_mm -POSTHOOK: Output: default@part_from_mm +POSTHOOK: Input: default@part_from_mm2 +POSTHOOK: Output: default@part_from_mm2 PREHOOK: query: drop table part_to_mm PREHOOK: type: DROPTABLE POSTHOOK: query: drop table part_to_mm @@ -843,16 +637,11 @@ POSTHOOK: Input: default@part_to_mm POSTHOOK: Input: default@part_to_mm@key_mm=455 POSTHOOK: Input: default@part_to_mm@key_mm=456 #### A masked pattern was here #### -0 455 -0 456 -98 455 -98 456 -100 455 -100 456 PREHOOK: query: alter table part_to_mm set tblproperties("transactional"="true", "transactional_properties"="insert_only") PREHOOK: type: ALTERTABLE_PROPERTIES PREHOOK: Input: default@part_to_mm PREHOOK: Output: default@part_to_mm +FAILED: Error in acquiring locks: Transaction already opened. txnid:63 POSTHOOK: query: alter table part_to_mm set tblproperties("transactional"="true", "transactional_properties"="insert_only") POSTHOOK: type: ALTERTABLE_PROPERTIES POSTHOOK: Input: default@part_to_mm @@ -869,12 +658,6 @@ POSTHOOK: Input: default@part_to_mm POSTHOOK: Input: default@part_to_mm@key_mm=455 POSTHOOK: Input: default@part_to_mm@key_mm=456 #### A masked pattern was here #### -0 455 -0 456 -98 455 -98 456 -100 455 -100 456 PREHOOK: query: insert into table part_to_mm partition(key_mm='456') select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate @@ -919,18 +702,6 @@ POSTHOOK: Input: default@part_to_mm@key_mm=455 POSTHOOK: Input: default@part_to_mm@key_mm=456 POSTHOOK: Input: default@part_to_mm@key_mm=457 #### A masked pattern was here #### -0 455 -0 456 -0 456 -0 457 -98 455 -98 456 -98 456 -98 457 -100 455 -100 456 -100 456 -100 457 PREHOOK: query: drop table part_to_mm PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_to_mm diff --git ql/src/test/results/clientpositive/mm_all.q.out ql/src/test/results/clientpositive/mm_all.q.out index db5de69..71826df 100644 --- ql/src/test/results/clientpositive/mm_all.q.out +++ ql/src/test/results/clientpositive/mm_all.q.out @@ -82,6 +82,7 @@ STAGE PLANS: output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde name: default.part_mm + Write Type: INSERT Stage: Stage-7 Conditional Operator @@ -288,21 +289,6 @@ POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 POSTHOOK: Output: default@simple_mm POSTHOOK: Lineage: simple_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: insert overwrite table simple_mm select key from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@simple_mm -POSTHOOK: query: insert overwrite table simple_mm select key from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@simple_mm -POSTHOOK: Lineage: simple_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] PREHOOK: query: select * from simple_mm order by key PREHOOK: type: QUERY PREHOOK: Input: default@simple_mm @@ -1236,473 +1222,6 @@ POSTHOOK: query: drop table merge1_mm POSTHOOK: type: DROPTABLE POSTHOOK: Input: default@merge1_mm POSTHOOK: Output: default@merge1_mm -PREHOOK: query: drop table ctas0_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table ctas0_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table ctas0_mm tblproperties ("transactional"="true", "transactional_properties"="insert_only") as select * from intermediate -PREHOOK: type: CREATETABLE_AS_SELECT -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: database:default -PREHOOK: Output: default@ctas0_mm -POSTHOOK: query: create table ctas0_mm tblproperties ("transactional"="true", "transactional_properties"="insert_only") as select * from intermediate -POSTHOOK: type: CREATETABLE_AS_SELECT -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: database:default -POSTHOOK: Output: default@ctas0_mm -POSTHOOK: Lineage: ctas0_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: ctas0_mm.p SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -PREHOOK: query: select * from ctas0_mm -PREHOOK: type: QUERY -PREHOOK: Input: default@ctas0_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from ctas0_mm -POSTHOOK: type: QUERY -POSTHOOK: Input: default@ctas0_mm -#### A masked pattern was here #### -98 455 -97 455 -0 456 -10 456 -100 457 -103 457 -PREHOOK: query: drop table ctas0_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@ctas0_mm -PREHOOK: Output: default@ctas0_mm -POSTHOOK: query: drop table ctas0_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@ctas0_mm -POSTHOOK: Output: default@ctas0_mm -PREHOOK: query: drop table ctas1_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table ctas1_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table ctas1_mm tblproperties ("transactional"="true", "transactional_properties"="insert_only") as - select * from intermediate union all select * from intermediate -PREHOOK: type: CREATETABLE_AS_SELECT -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: database:default -PREHOOK: Output: default@ctas1_mm -POSTHOOK: query: create table ctas1_mm tblproperties ("transactional"="true", "transactional_properties"="insert_only") as - select * from intermediate union all select * from intermediate -POSTHOOK: type: CREATETABLE_AS_SELECT -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: database:default -POSTHOOK: Output: default@ctas1_mm -POSTHOOK: Lineage: ctas1_mm.key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: ctas1_mm.p EXPRESSION [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -PREHOOK: query: select * from ctas1_mm -PREHOOK: type: QUERY -PREHOOK: Input: default@ctas1_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from ctas1_mm -POSTHOOK: type: QUERY -POSTHOOK: Input: default@ctas1_mm -#### A masked pattern was here #### -98 455 -98 455 -97 455 -97 455 -0 456 -0 456 -10 456 -10 456 -100 457 -100 457 -103 457 -103 457 -PREHOOK: query: drop table ctas1_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@ctas1_mm -PREHOOK: Output: default@ctas1_mm -POSTHOOK: query: drop table ctas1_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@ctas1_mm -POSTHOOK: Output: default@ctas1_mm -PREHOOK: query: drop table iow0_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table iow0_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table iow0_mm(key int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@iow0_mm -POSTHOOK: query: create table iow0_mm(key int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@iow0_mm -PREHOOK: query: insert overwrite table iow0_mm select key from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@iow0_mm -POSTHOOK: query: insert overwrite table iow0_mm select key from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@iow0_mm -POSTHOOK: Lineage: iow0_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: insert into table iow0_mm select key + 1 from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@iow0_mm -POSTHOOK: query: insert into table iow0_mm select key + 1 from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@iow0_mm -POSTHOOK: Lineage: iow0_mm.key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from iow0_mm order by key -PREHOOK: type: QUERY -PREHOOK: Input: default@iow0_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from iow0_mm order by key -POSTHOOK: type: QUERY -POSTHOOK: Input: default@iow0_mm -#### A masked pattern was here #### -0 -1 -10 -11 -97 -98 -98 -99 -100 -101 -103 -104 -PREHOOK: query: insert overwrite table iow0_mm select key + 2 from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@iow0_mm -POSTHOOK: query: insert overwrite table iow0_mm select key + 2 from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@iow0_mm -POSTHOOK: Lineage: iow0_mm.key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from iow0_mm order by key -PREHOOK: type: QUERY -PREHOOK: Input: default@iow0_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from iow0_mm order by key -POSTHOOK: type: QUERY -POSTHOOK: Input: default@iow0_mm -#### A masked pattern was here #### -2 -12 -99 -100 -102 -105 -PREHOOK: query: drop table iow0_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@iow0_mm -PREHOOK: Output: default@iow0_mm -POSTHOOK: query: drop table iow0_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@iow0_mm -POSTHOOK: Output: default@iow0_mm -PREHOOK: query: drop table iow1_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table iow1_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table iow1_mm(key int) partitioned by (key2 int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@iow1_mm -POSTHOOK: query: create table iow1_mm(key int) partitioned by (key2 int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@iow1_mm -PREHOOK: query: insert overwrite table iow1_mm partition (key2) -select key as k1, key from intermediate union all select key as k1, key from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@iow1_mm -POSTHOOK: query: insert overwrite table iow1_mm partition (key2) -select key as k1, key from intermediate union all select key as k1, key from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@iow1_mm@key2=0 -POSTHOOK: Output: default@iow1_mm@key2=10 -POSTHOOK: Output: default@iow1_mm@key2=100 -POSTHOOK: Output: default@iow1_mm@key2=103 -POSTHOOK: Output: default@iow1_mm@key2=97 -POSTHOOK: Output: default@iow1_mm@key2=98 -POSTHOOK: Lineage: iow1_mm PARTITION(key2=0).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=100).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=103).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=10).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=97).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=98).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: insert into table iow1_mm partition (key2) -select key + 1 as k1, key from intermediate union all select key as k1, key from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@iow1_mm -POSTHOOK: query: insert into table iow1_mm partition (key2) -select key + 1 as k1, key from intermediate union all select key as k1, key from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@iow1_mm@key2=0 -POSTHOOK: Output: default@iow1_mm@key2=10 -POSTHOOK: Output: default@iow1_mm@key2=100 -POSTHOOK: Output: default@iow1_mm@key2=103 -POSTHOOK: Output: default@iow1_mm@key2=97 -POSTHOOK: Output: default@iow1_mm@key2=98 -POSTHOOK: Lineage: iow1_mm PARTITION(key2=0).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=100).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=103).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=10).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=97).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=98).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from iow1_mm order by key, key2 -PREHOOK: type: QUERY -PREHOOK: Input: default@iow1_mm -PREHOOK: Input: default@iow1_mm@key2=0 -PREHOOK: Input: default@iow1_mm@key2=10 -PREHOOK: Input: default@iow1_mm@key2=100 -PREHOOK: Input: default@iow1_mm@key2=103 -PREHOOK: Input: default@iow1_mm@key2=97 -PREHOOK: Input: default@iow1_mm@key2=98 -#### A masked pattern was here #### -POSTHOOK: query: select * from iow1_mm order by key, key2 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@iow1_mm -POSTHOOK: Input: default@iow1_mm@key2=0 -POSTHOOK: Input: default@iow1_mm@key2=10 -POSTHOOK: Input: default@iow1_mm@key2=100 -POSTHOOK: Input: default@iow1_mm@key2=103 -POSTHOOK: Input: default@iow1_mm@key2=97 -POSTHOOK: Input: default@iow1_mm@key2=98 -#### A masked pattern was here #### -0 0 -0 0 -0 0 -1 0 -10 10 -10 10 -10 10 -11 10 -97 97 -97 97 -97 97 -98 97 -98 98 -98 98 -98 98 -99 98 -100 100 -100 100 -100 100 -101 100 -103 103 -103 103 -103 103 -104 103 -PREHOOK: query: insert overwrite table iow1_mm partition (key2) -select key + 3 as k1, key from intermediate union all select key + 4 as k1, key from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@iow1_mm -POSTHOOK: query: insert overwrite table iow1_mm partition (key2) -select key + 3 as k1, key from intermediate union all select key + 4 as k1, key from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@iow1_mm@key2=0 -POSTHOOK: Output: default@iow1_mm@key2=10 -POSTHOOK: Output: default@iow1_mm@key2=100 -POSTHOOK: Output: default@iow1_mm@key2=103 -POSTHOOK: Output: default@iow1_mm@key2=97 -POSTHOOK: Output: default@iow1_mm@key2=98 -POSTHOOK: Lineage: iow1_mm PARTITION(key2=0).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=100).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=103).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=10).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=97).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=98).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from iow1_mm order by key, key2 -PREHOOK: type: QUERY -PREHOOK: Input: default@iow1_mm -PREHOOK: Input: default@iow1_mm@key2=0 -PREHOOK: Input: default@iow1_mm@key2=10 -PREHOOK: Input: default@iow1_mm@key2=100 -PREHOOK: Input: default@iow1_mm@key2=103 -PREHOOK: Input: default@iow1_mm@key2=97 -PREHOOK: Input: default@iow1_mm@key2=98 -#### A masked pattern was here #### -POSTHOOK: query: select * from iow1_mm order by key, key2 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@iow1_mm -POSTHOOK: Input: default@iow1_mm@key2=0 -POSTHOOK: Input: default@iow1_mm@key2=10 -POSTHOOK: Input: default@iow1_mm@key2=100 -POSTHOOK: Input: default@iow1_mm@key2=103 -POSTHOOK: Input: default@iow1_mm@key2=97 -POSTHOOK: Input: default@iow1_mm@key2=98 -#### A masked pattern was here #### -3 0 -4 0 -13 10 -14 10 -100 97 -101 97 -101 98 -102 98 -103 100 -104 100 -106 103 -107 103 -PREHOOK: query: insert overwrite table iow1_mm partition (key2) -select key + 3 as k1, key + 3 from intermediate union all select key + 2 as k1, key + 2 from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@iow1_mm -POSTHOOK: query: insert overwrite table iow1_mm partition (key2) -select key + 3 as k1, key + 3 from intermediate union all select key + 2 as k1, key + 2 from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@iow1_mm@key2=100 -POSTHOOK: Output: default@iow1_mm@key2=101 -POSTHOOK: Output: default@iow1_mm@key2=102 -POSTHOOK: Output: default@iow1_mm@key2=103 -POSTHOOK: Output: default@iow1_mm@key2=105 -POSTHOOK: Output: default@iow1_mm@key2=106 -POSTHOOK: Output: default@iow1_mm@key2=12 -POSTHOOK: Output: default@iow1_mm@key2=13 -POSTHOOK: Output: default@iow1_mm@key2=2 -POSTHOOK: Output: default@iow1_mm@key2=3 -POSTHOOK: Output: default@iow1_mm@key2=99 -POSTHOOK: Lineage: iow1_mm PARTITION(key2=100).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=101).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=102).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=103).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=105).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=106).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=12).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=13).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=2).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=3).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: iow1_mm PARTITION(key2=99).key EXPRESSION [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from iow1_mm order by key, key2 -PREHOOK: type: QUERY -PREHOOK: Input: default@iow1_mm -PREHOOK: Input: default@iow1_mm@key2=0 -PREHOOK: Input: default@iow1_mm@key2=10 -PREHOOK: Input: default@iow1_mm@key2=100 -PREHOOK: Input: default@iow1_mm@key2=101 -PREHOOK: Input: default@iow1_mm@key2=102 -PREHOOK: Input: default@iow1_mm@key2=103 -PREHOOK: Input: default@iow1_mm@key2=105 -PREHOOK: Input: default@iow1_mm@key2=106 -PREHOOK: Input: default@iow1_mm@key2=12 -PREHOOK: Input: default@iow1_mm@key2=13 -PREHOOK: Input: default@iow1_mm@key2=2 -PREHOOK: Input: default@iow1_mm@key2=3 -PREHOOK: Input: default@iow1_mm@key2=97 -PREHOOK: Input: default@iow1_mm@key2=98 -PREHOOK: Input: default@iow1_mm@key2=99 -#### A masked pattern was here #### -POSTHOOK: query: select * from iow1_mm order by key, key2 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@iow1_mm -POSTHOOK: Input: default@iow1_mm@key2=0 -POSTHOOK: Input: default@iow1_mm@key2=10 -POSTHOOK: Input: default@iow1_mm@key2=100 -POSTHOOK: Input: default@iow1_mm@key2=101 -POSTHOOK: Input: default@iow1_mm@key2=102 -POSTHOOK: Input: default@iow1_mm@key2=103 -POSTHOOK: Input: default@iow1_mm@key2=105 -POSTHOOK: Input: default@iow1_mm@key2=106 -POSTHOOK: Input: default@iow1_mm@key2=12 -POSTHOOK: Input: default@iow1_mm@key2=13 -POSTHOOK: Input: default@iow1_mm@key2=2 -POSTHOOK: Input: default@iow1_mm@key2=3 -POSTHOOK: Input: default@iow1_mm@key2=97 -POSTHOOK: Input: default@iow1_mm@key2=98 -POSTHOOK: Input: default@iow1_mm@key2=99 -#### A masked pattern was here #### -2 2 -3 0 -3 3 -4 0 -12 12 -13 10 -13 13 -14 10 -99 99 -100 97 -100 100 -100 100 -101 97 -101 98 -101 101 -102 98 -102 102 -103 103 -105 105 -106 106 -PREHOOK: query: drop table iow1_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@iow1_mm -PREHOOK: Output: default@iow1_mm -POSTHOOK: query: drop table iow1_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@iow1_mm -POSTHOOK: Output: default@iow1_mm PREHOOK: query: drop table load0_mm PREHOOK: type: DROPTABLE POSTHOOK: query: drop table load0_mm @@ -1765,7 +1284,7 @@ POSTHOOK: query: select count(1) from load0_mm POSTHOOK: type: QUERY POSTHOOK: Input: default@load0_mm #### A masked pattern was here #### -500 +1000 PREHOOK: query: drop table load0_mm PREHOOK: type: DROPTABLE PREHOOK: Input: default@load0_mm @@ -1916,7 +1435,7 @@ POSTHOOK: query: select count(1) from load1_mm POSTHOOK: type: QUERY POSTHOOK: Input: default@load1_mm #### A masked pattern was here #### -500 +1050 PREHOOK: query: drop table load1_mm PREHOOK: type: DROPTABLE PREHOOK: Input: default@load1_mm @@ -1999,1091 +1518,30 @@ POSTHOOK: query: drop table intermediate2 POSTHOOK: type: DROPTABLE POSTHOOK: Input: default@intermediate2 POSTHOOK: Output: default@intermediate2 -PREHOOK: query: drop table intermediate_nonpart -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table intermediate_nonpart -POSTHOOK: type: DROPTABLE -PREHOOK: query: drop table intermmediate_part +PREHOOK: query: drop table multi0_1_mm PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table intermmediate_part +POSTHOOK: query: drop table multi0_1_mm POSTHOOK: type: DROPTABLE -PREHOOK: query: drop table intermmediate_nonpart +PREHOOK: query: drop table multi0_2_mm PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table intermmediate_nonpart +POSTHOOK: query: drop table multi0_2_mm POSTHOOK: type: DROPTABLE -PREHOOK: query: create table intermediate_nonpart(key int, p int) -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@intermediate_nonpart -POSTHOOK: query: create table intermediate_nonpart(key int, p int) -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@intermediate_nonpart -PREHOOK: query: insert into intermediate_nonpart select * from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@intermediate_nonpart -POSTHOOK: query: insert into intermediate_nonpart select * from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@intermediate_nonpart -POSTHOOK: Lineage: intermediate_nonpart.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: intermediate_nonpart.p SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -PREHOOK: query: create table intermmediate_nonpart(key int, p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") +PREHOOK: query: create table multi0_1_mm (key int, key2 int) tblproperties("transactional"="true", "transactional_properties"="insert_only") PREHOOK: type: CREATETABLE PREHOOK: Output: database:default -PREHOOK: Output: default@intermmediate_nonpart -POSTHOOK: query: create table intermmediate_nonpart(key int, p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") +PREHOOK: Output: default@multi0_1_mm +POSTHOOK: query: create table multi0_1_mm (key int, key2 int) tblproperties("transactional"="true", "transactional_properties"="insert_only") POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default -POSTHOOK: Output: default@intermmediate_nonpart -PREHOOK: query: insert into intermmediate_nonpart select * from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@intermmediate_nonpart -POSTHOOK: query: insert into intermmediate_nonpart select * from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@intermmediate_nonpart -POSTHOOK: Lineage: intermmediate_nonpart.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: intermmediate_nonpart.p SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -PREHOOK: query: create table intermmediate(key int) partitioned by (p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") +POSTHOOK: Output: default@multi0_1_mm +PREHOOK: query: create table multi0_2_mm (key int, key2 int) tblproperties("transactional"="true", "transactional_properties"="insert_only") PREHOOK: type: CREATETABLE PREHOOK: Output: database:default -PREHOOK: Output: default@intermmediate -POSTHOOK: query: create table intermmediate(key int) partitioned by (p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") +PREHOOK: Output: default@multi0_2_mm +POSTHOOK: query: create table multi0_2_mm (key int, key2 int) tblproperties("transactional"="true", "transactional_properties"="insert_only") POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default -POSTHOOK: Output: default@intermmediate -PREHOOK: query: insert into table intermmediate partition(p) select key, p from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@intermmediate -POSTHOOK: query: insert into table intermmediate partition(p) select key, p from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@intermmediate@p=455 -POSTHOOK: Output: default@intermmediate@p=456 -POSTHOOK: Output: default@intermmediate@p=457 -POSTHOOK: Lineage: intermmediate PARTITION(p=455).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: intermmediate PARTITION(p=456).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: intermmediate PARTITION(p=457).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: export table intermediate_nonpart to 'ql/test/data/exports/intermediate_nonpart' -PREHOOK: type: EXPORT -PREHOOK: Input: default@intermediate_nonpart -#### A masked pattern was here #### -POSTHOOK: query: export table intermediate_nonpart to 'ql/test/data/exports/intermediate_nonpart' -POSTHOOK: type: EXPORT -POSTHOOK: Input: default@intermediate_nonpart -#### A masked pattern was here #### -PREHOOK: query: export table intermmediate_nonpart to 'ql/test/data/exports/intermmediate_nonpart' -PREHOOK: type: EXPORT -PREHOOK: Input: default@intermmediate_nonpart -#### A masked pattern was here #### -POSTHOOK: query: export table intermmediate_nonpart to 'ql/test/data/exports/intermmediate_nonpart' -POSTHOOK: type: EXPORT -POSTHOOK: Input: default@intermmediate_nonpart -#### A masked pattern was here #### -PREHOOK: query: export table intermediate to 'ql/test/data/exports/intermediate_part' -PREHOOK: type: EXPORT -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -#### A masked pattern was here #### -POSTHOOK: query: export table intermediate to 'ql/test/data/exports/intermediate_part' -POSTHOOK: type: EXPORT -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -#### A masked pattern was here #### -PREHOOK: query: export table intermmediate to 'ql/test/data/exports/intermmediate_part' -PREHOOK: type: EXPORT -PREHOOK: Input: default@intermmediate@p=455 -PREHOOK: Input: default@intermmediate@p=456 -PREHOOK: Input: default@intermmediate@p=457 -#### A masked pattern was here #### -POSTHOOK: query: export table intermmediate to 'ql/test/data/exports/intermmediate_part' -POSTHOOK: type: EXPORT -POSTHOOK: Input: default@intermmediate@p=455 -POSTHOOK: Input: default@intermmediate@p=456 -POSTHOOK: Input: default@intermmediate@p=457 -#### A masked pattern was here #### -PREHOOK: query: drop table intermediate_nonpart -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@intermediate_nonpart -PREHOOK: Output: default@intermediate_nonpart -POSTHOOK: query: drop table intermediate_nonpart -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@intermediate_nonpart -POSTHOOK: Output: default@intermediate_nonpart -PREHOOK: query: drop table intermmediate_part -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table intermmediate_part -POSTHOOK: type: DROPTABLE -PREHOOK: query: drop table intermmediate_nonpart -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@intermmediate_nonpart -PREHOOK: Output: default@intermmediate_nonpart -POSTHOOK: query: drop table intermmediate_nonpart -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@intermmediate_nonpart -POSTHOOK: Output: default@intermmediate_nonpart -PREHOOK: query: drop table import0_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table import0_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table import0_mm(key int, p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@import0_mm -POSTHOOK: query: create table import0_mm(key int, p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@import0_mm -PREHOOK: query: import table import0_mm from 'ql/test/data/exports/intermediate_nonpart' -PREHOOK: type: IMPORT -#### A masked pattern was here #### -PREHOOK: Output: default@import0_mm -POSTHOOK: query: import table import0_mm from 'ql/test/data/exports/intermediate_nonpart' -POSTHOOK: type: IMPORT -#### A masked pattern was here #### -POSTHOOK: Output: default@import0_mm -PREHOOK: query: select * from import0_mm order by key, p -PREHOOK: type: QUERY -PREHOOK: Input: default@import0_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from import0_mm order by key, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@import0_mm -#### A masked pattern was here #### -0 456 -10 456 -97 455 -98 455 -100 457 -103 457 -PREHOOK: query: drop table import0_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@import0_mm -PREHOOK: Output: default@import0_mm -POSTHOOK: query: drop table import0_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@import0_mm -POSTHOOK: Output: default@import0_mm -PREHOOK: query: drop table import1_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table import1_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table import1_mm(key int) partitioned by (p int) - stored as orc tblproperties("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@import1_mm -POSTHOOK: query: create table import1_mm(key int) partitioned by (p int) - stored as orc tblproperties("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@import1_mm -PREHOOK: query: import table import1_mm from 'ql/test/data/exports/intermediate_part' -PREHOOK: type: IMPORT -#### A masked pattern was here #### -PREHOOK: Output: default@import1_mm -POSTHOOK: query: import table import1_mm from 'ql/test/data/exports/intermediate_part' -POSTHOOK: type: IMPORT -#### A masked pattern was here #### -POSTHOOK: Output: default@import1_mm -POSTHOOK: Output: default@import1_mm@p=455 -POSTHOOK: Output: default@import1_mm@p=456 -POSTHOOK: Output: default@import1_mm@p=457 -PREHOOK: query: select * from import1_mm order by key, p -PREHOOK: type: QUERY -PREHOOK: Input: default@import1_mm -PREHOOK: Input: default@import1_mm@p=455 -PREHOOK: Input: default@import1_mm@p=456 -PREHOOK: Input: default@import1_mm@p=457 -#### A masked pattern was here #### -POSTHOOK: query: select * from import1_mm order by key, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@import1_mm -POSTHOOK: Input: default@import1_mm@p=455 -POSTHOOK: Input: default@import1_mm@p=456 -POSTHOOK: Input: default@import1_mm@p=457 -#### A masked pattern was here #### -0 456 -10 456 -97 455 -98 455 -100 457 -103 457 -PREHOOK: query: drop table import1_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@import1_mm -PREHOOK: Output: default@import1_mm -POSTHOOK: query: drop table import1_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@import1_mm -POSTHOOK: Output: default@import1_mm -PREHOOK: query: drop table import4_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table import4_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table import4_mm(key int, p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@import4_mm -POSTHOOK: query: create table import4_mm(key int, p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@import4_mm -PREHOOK: query: import table import4_mm from 'ql/test/data/exports/intermmediate_nonpart' -PREHOOK: type: IMPORT -#### A masked pattern was here #### -PREHOOK: Output: default@import4_mm -POSTHOOK: query: import table import4_mm from 'ql/test/data/exports/intermmediate_nonpart' -POSTHOOK: type: IMPORT -#### A masked pattern was here #### -POSTHOOK: Output: default@import4_mm -PREHOOK: query: select * from import4_mm order by key, p -PREHOOK: type: QUERY -PREHOOK: Input: default@import4_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from import4_mm order by key, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@import4_mm -#### A masked pattern was here #### -0 456 -10 456 -97 455 -98 455 -100 457 -103 457 -PREHOOK: query: drop table import4_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@import4_mm -PREHOOK: Output: default@import4_mm -POSTHOOK: query: drop table import4_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@import4_mm -POSTHOOK: Output: default@import4_mm -PREHOOK: query: drop table import5_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table import5_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table import5_mm(key int) partitioned by (p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@import5_mm -POSTHOOK: query: create table import5_mm(key int) partitioned by (p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@import5_mm -PREHOOK: query: import table import5_mm partition(p=455) from 'ql/test/data/exports/intermmediate_part' -PREHOOK: type: IMPORT -#### A masked pattern was here #### -PREHOOK: Output: default@import5_mm -POSTHOOK: query: import table import5_mm partition(p=455) from 'ql/test/data/exports/intermmediate_part' -POSTHOOK: type: IMPORT -#### A masked pattern was here #### -POSTHOOK: Output: default@import5_mm -POSTHOOK: Output: default@import5_mm@p=455 -PREHOOK: query: select * from import5_mm order by key, p -PREHOOK: type: QUERY -PREHOOK: Input: default@import5_mm -PREHOOK: Input: default@import5_mm@p=455 -#### A masked pattern was here #### -POSTHOOK: query: select * from import5_mm order by key, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@import5_mm -POSTHOOK: Input: default@import5_mm@p=455 -#### A masked pattern was here #### -97 455 -98 455 -PREHOOK: query: drop table import5_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@import5_mm -PREHOOK: Output: default@import5_mm -POSTHOOK: query: drop table import5_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@import5_mm -POSTHOOK: Output: default@import5_mm -PREHOOK: query: drop table import6_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table import6_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table import6_mm(key int, p int) -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@import6_mm -POSTHOOK: query: create table import6_mm(key int, p int) -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@import6_mm -PREHOOK: query: import table import6_mm from 'ql/test/data/exports/intermmediate_nonpart' -PREHOOK: type: IMPORT -#### A masked pattern was here #### -PREHOOK: Output: default@import6_mm -POSTHOOK: query: import table import6_mm from 'ql/test/data/exports/intermmediate_nonpart' -POSTHOOK: type: IMPORT -#### A masked pattern was here #### -POSTHOOK: Output: default@import6_mm -PREHOOK: query: select * from import6_mm order by key, p -PREHOOK: type: QUERY -PREHOOK: Input: default@import6_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from import6_mm order by key, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@import6_mm -#### A masked pattern was here #### -0 456 -10 456 -97 455 -98 455 -100 457 -103 457 -PREHOOK: query: drop table import6_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@import6_mm -PREHOOK: Output: default@import6_mm -POSTHOOK: query: drop table import6_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@import6_mm -POSTHOOK: Output: default@import6_mm -PREHOOK: query: drop table import7_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table import7_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table import7_mm(key int) partitioned by (p int) -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@import7_mm -POSTHOOK: query: create table import7_mm(key int) partitioned by (p int) -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@import7_mm -PREHOOK: query: import table import7_mm from 'ql/test/data/exports/intermmediate_part' -PREHOOK: type: IMPORT -#### A masked pattern was here #### -PREHOOK: Output: default@import7_mm -POSTHOOK: query: import table import7_mm from 'ql/test/data/exports/intermmediate_part' -POSTHOOK: type: IMPORT -#### A masked pattern was here #### -POSTHOOK: Output: default@import7_mm -POSTHOOK: Output: default@import7_mm@p=455 -POSTHOOK: Output: default@import7_mm@p=456 -POSTHOOK: Output: default@import7_mm@p=457 -PREHOOK: query: select * from import7_mm order by key, p -PREHOOK: type: QUERY -PREHOOK: Input: default@import7_mm -PREHOOK: Input: default@import7_mm@p=455 -PREHOOK: Input: default@import7_mm@p=456 -PREHOOK: Input: default@import7_mm@p=457 -#### A masked pattern was here #### -POSTHOOK: query: select * from import7_mm order by key, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@import7_mm -POSTHOOK: Input: default@import7_mm@p=455 -POSTHOOK: Input: default@import7_mm@p=456 -POSTHOOK: Input: default@import7_mm@p=457 -#### A masked pattern was here #### -0 456 -10 456 -97 455 -98 455 -100 457 -103 457 -PREHOOK: query: drop table import7_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@import7_mm -PREHOOK: Output: default@import7_mm -POSTHOOK: query: drop table import7_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@import7_mm -POSTHOOK: Output: default@import7_mm -PREHOOK: query: drop table multi0_1_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table multi0_1_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: drop table multi0_2_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table multi0_2_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table multi0_1_mm (key int, key2 int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@multi0_1_mm -POSTHOOK: query: create table multi0_1_mm (key int, key2 int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@multi0_1_mm -PREHOOK: query: create table multi0_2_mm (key int, key2 int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@multi0_2_mm -POSTHOOK: query: create table multi0_2_mm (key int, key2 int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@multi0_2_mm -PREHOOK: query: from intermediate -insert overwrite table multi0_1_mm select key, p -insert overwrite table multi0_2_mm select p, key -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@multi0_1_mm -PREHOOK: Output: default@multi0_2_mm -POSTHOOK: query: from intermediate -insert overwrite table multi0_1_mm select key, p -insert overwrite table multi0_2_mm select p, key -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@multi0_1_mm -POSTHOOK: Output: default@multi0_2_mm -POSTHOOK: Lineage: multi0_1_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: multi0_1_mm.key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -POSTHOOK: Lineage: multi0_2_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -POSTHOOK: Lineage: multi0_2_mm.key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from multi0_1_mm order by key, key2 -PREHOOK: type: QUERY -PREHOOK: Input: default@multi0_1_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from multi0_1_mm order by key, key2 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@multi0_1_mm -#### A masked pattern was here #### -0 456 -10 456 -97 455 -98 455 -100 457 -103 457 -PREHOOK: query: select * from multi0_2_mm order by key, key2 -PREHOOK: type: QUERY -PREHOOK: Input: default@multi0_2_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from multi0_2_mm order by key, key2 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@multi0_2_mm -#### A masked pattern was here #### -455 97 -455 98 -456 0 -456 10 -457 100 -457 103 -PREHOOK: query: from intermediate -insert into table multi0_1_mm select p, key -insert overwrite table multi0_2_mm select key, p -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@multi0_1_mm -PREHOOK: Output: default@multi0_2_mm -POSTHOOK: query: from intermediate -insert into table multi0_1_mm select p, key -insert overwrite table multi0_2_mm select key, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@multi0_1_mm POSTHOOK: Output: default@multi0_2_mm -POSTHOOK: Lineage: multi0_1_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -POSTHOOK: Lineage: multi0_1_mm.key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: multi0_2_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: multi0_2_mm.key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -PREHOOK: query: select * from multi0_1_mm order by key, key2 -PREHOOK: type: QUERY -PREHOOK: Input: default@multi0_1_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from multi0_1_mm order by key, key2 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@multi0_1_mm -#### A masked pattern was here #### -0 456 -10 456 -97 455 -98 455 -100 457 -103 457 -455 97 -455 98 -456 0 -456 10 -457 100 -457 103 -PREHOOK: query: select * from multi0_2_mm order by key, key2 -PREHOOK: type: QUERY -PREHOOK: Input: default@multi0_2_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from multi0_2_mm order by key, key2 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@multi0_2_mm -#### A masked pattern was here #### -0 456 -10 456 -97 455 -98 455 -100 457 -103 457 -PREHOOK: query: drop table multi0_1_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@multi0_1_mm -PREHOOK: Output: default@multi0_1_mm -POSTHOOK: query: drop table multi0_1_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@multi0_1_mm -POSTHOOK: Output: default@multi0_1_mm -PREHOOK: query: drop table multi0_2_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@multi0_2_mm -PREHOOK: Output: default@multi0_2_mm -POSTHOOK: query: drop table multi0_2_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@multi0_2_mm -POSTHOOK: Output: default@multi0_2_mm -PREHOOK: query: drop table multi1_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table multi1_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table multi1_mm (key int, key2 int) partitioned by (p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@multi1_mm -POSTHOOK: query: create table multi1_mm (key int, key2 int) partitioned by (p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@multi1_mm -PREHOOK: query: from intermediate -insert into table multi1_mm partition(p=1) select p, key -insert into table multi1_mm partition(p=2) select key, p -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@multi1_mm@p=1 -PREHOOK: Output: default@multi1_mm@p=2 -POSTHOOK: query: from intermediate -insert into table multi1_mm partition(p=1) select p, key -insert into table multi1_mm partition(p=2) select key, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@multi1_mm@p=1 -POSTHOOK: Output: default@multi1_mm@p=2 -POSTHOOK: Lineage: multi1_mm PARTITION(p=1).key SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=1).key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=2).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=2).key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -PREHOOK: query: select * from multi1_mm order by key, key2, p -PREHOOK: type: QUERY -PREHOOK: Input: default@multi1_mm -PREHOOK: Input: default@multi1_mm@p=1 -PREHOOK: Input: default@multi1_mm@p=2 -#### A masked pattern was here #### -POSTHOOK: query: select * from multi1_mm order by key, key2, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@multi1_mm -POSTHOOK: Input: default@multi1_mm@p=1 -POSTHOOK: Input: default@multi1_mm@p=2 -#### A masked pattern was here #### -0 456 2 -10 456 2 -97 455 2 -98 455 2 -100 457 2 -103 457 2 -455 97 1 -455 98 1 -456 0 1 -456 10 1 -457 100 1 -457 103 1 -PREHOOK: query: from intermediate -insert into table multi1_mm partition(p=2) select p, key -insert overwrite table multi1_mm partition(p=1) select key, p -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@multi1_mm@p=1 -PREHOOK: Output: default@multi1_mm@p=2 -POSTHOOK: query: from intermediate -insert into table multi1_mm partition(p=2) select p, key -insert overwrite table multi1_mm partition(p=1) select key, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@multi1_mm@p=1 -POSTHOOK: Output: default@multi1_mm@p=2 -POSTHOOK: Lineage: multi1_mm PARTITION(p=1).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=1).key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=2).key SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=2).key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from multi1_mm order by key, key2, p -PREHOOK: type: QUERY -PREHOOK: Input: default@multi1_mm -PREHOOK: Input: default@multi1_mm@p=1 -PREHOOK: Input: default@multi1_mm@p=2 -#### A masked pattern was here #### -POSTHOOK: query: select * from multi1_mm order by key, key2, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@multi1_mm -POSTHOOK: Input: default@multi1_mm@p=1 -POSTHOOK: Input: default@multi1_mm@p=2 -#### A masked pattern was here #### -0 456 1 -0 456 2 -10 456 1 -10 456 2 -97 455 1 -97 455 2 -98 455 1 -98 455 2 -100 457 1 -100 457 2 -103 457 1 -103 457 2 -455 97 1 -455 97 2 -455 98 1 -455 98 2 -456 0 1 -456 0 2 -456 10 1 -456 10 2 -457 100 1 -457 100 2 -457 103 1 -457 103 2 -PREHOOK: query: from intermediate -insert into table multi1_mm partition(p) select p, key, p -insert into table multi1_mm partition(p=1) select key, p -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@multi1_mm -PREHOOK: Output: default@multi1_mm@p=1 -POSTHOOK: query: from intermediate -insert into table multi1_mm partition(p) select p, key, p -insert into table multi1_mm partition(p=1) select key, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@multi1_mm@p=1 -POSTHOOK: Output: default@multi1_mm@p=455 -POSTHOOK: Output: default@multi1_mm@p=456 -POSTHOOK: Output: default@multi1_mm@p=457 -POSTHOOK: Lineage: multi1_mm PARTITION(p=1).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=1).key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=455).key SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=455).key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=456).key SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=456).key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=457).key SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=457).key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select key, key2, p from multi1_mm order by key, key2, p -PREHOOK: type: QUERY -PREHOOK: Input: default@multi1_mm -PREHOOK: Input: default@multi1_mm@p=1 -PREHOOK: Input: default@multi1_mm@p=2 -PREHOOK: Input: default@multi1_mm@p=455 -PREHOOK: Input: default@multi1_mm@p=456 -PREHOOK: Input: default@multi1_mm@p=457 -#### A masked pattern was here #### -POSTHOOK: query: select key, key2, p from multi1_mm order by key, key2, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@multi1_mm -POSTHOOK: Input: default@multi1_mm@p=1 -POSTHOOK: Input: default@multi1_mm@p=2 -POSTHOOK: Input: default@multi1_mm@p=455 -POSTHOOK: Input: default@multi1_mm@p=456 -POSTHOOK: Input: default@multi1_mm@p=457 -#### A masked pattern was here #### -0 456 1 -0 456 1 -0 456 2 -10 456 1 -10 456 1 -10 456 2 -97 455 1 -97 455 1 -97 455 2 -98 455 1 -98 455 1 -98 455 2 -100 457 1 -100 457 1 -100 457 2 -103 457 1 -103 457 1 -103 457 2 -455 97 1 -455 97 2 -455 97 455 -455 98 1 -455 98 2 -455 98 455 -456 0 1 -456 0 2 -456 0 456 -456 10 1 -456 10 2 -456 10 456 -457 100 1 -457 100 2 -457 100 457 -457 103 1 -457 103 2 -457 103 457 -PREHOOK: query: from intermediate -insert into table multi1_mm partition(p) select p, key, 1 -insert into table multi1_mm partition(p=1) select key, p -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@multi1_mm -PREHOOK: Output: default@multi1_mm@p=1 -POSTHOOK: query: from intermediate -insert into table multi1_mm partition(p) select p, key, 1 -insert into table multi1_mm partition(p=1) select key, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@multi1_mm@p=1 -POSTHOOK: Lineage: multi1_mm PARTITION(p=1).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=1).key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=1).key SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] -POSTHOOK: Lineage: multi1_mm PARTITION(p=1).key2 SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select key, key2, p from multi1_mm order by key, key2, p -PREHOOK: type: QUERY -PREHOOK: Input: default@multi1_mm -PREHOOK: Input: default@multi1_mm@p=1 -PREHOOK: Input: default@multi1_mm@p=2 -PREHOOK: Input: default@multi1_mm@p=455 -PREHOOK: Input: default@multi1_mm@p=456 -PREHOOK: Input: default@multi1_mm@p=457 -#### A masked pattern was here #### -POSTHOOK: query: select key, key2, p from multi1_mm order by key, key2, p -POSTHOOK: type: QUERY -POSTHOOK: Input: default@multi1_mm -POSTHOOK: Input: default@multi1_mm@p=1 -POSTHOOK: Input: default@multi1_mm@p=2 -POSTHOOK: Input: default@multi1_mm@p=455 -POSTHOOK: Input: default@multi1_mm@p=456 -POSTHOOK: Input: default@multi1_mm@p=457 -#### A masked pattern was here #### -0 456 1 -0 456 1 -0 456 1 -0 456 2 -10 456 1 -10 456 1 -10 456 1 -10 456 2 -97 455 1 -97 455 1 -97 455 1 -97 455 2 -98 455 1 -98 455 1 -98 455 1 -98 455 2 -100 457 1 -100 457 1 -100 457 1 -100 457 2 -103 457 1 -103 457 1 -103 457 1 -103 457 2 -455 97 1 -455 97 1 -455 97 2 -455 97 455 -455 98 1 -455 98 1 -455 98 2 -455 98 455 -456 0 1 -456 0 1 -456 0 2 -456 0 456 -456 10 1 -456 10 1 -456 10 2 -456 10 456 -457 100 1 -457 100 1 -457 100 2 -457 100 457 -457 103 1 -457 103 1 -457 103 2 -457 103 457 -PREHOOK: query: drop table multi1_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@multi1_mm -PREHOOK: Output: default@multi1_mm -POSTHOOK: query: drop table multi1_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@multi1_mm -POSTHOOK: Output: default@multi1_mm -PREHOOK: query: drop table stats_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table stats_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table stats_mm(key int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@stats_mm -POSTHOOK: query: create table stats_mm(key int) tblproperties("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@stats_mm -PREHOOK: query: insert overwrite table stats_mm select key from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@stats_mm -POSTHOOK: query: insert overwrite table stats_mm select key from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@stats_mm -POSTHOOK: Lineage: stats_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: desc formatted stats_mm -PREHOOK: type: DESCTABLE -PREHOOK: Input: default@stats_mm -POSTHOOK: query: desc formatted stats_mm -POSTHOOK: type: DESCTABLE -POSTHOOK: Input: default@stats_mm -# col_name data_type comment - -key int - -# Detailed Table Information -Database: default -#### A masked pattern was here #### -Retention: 0 -#### A masked pattern was here #### -Table Type: MANAGED_TABLE -Table Parameters: - COLUMN_STATS_ACCURATE {\"BASIC_STATS\":\"true\"} - numFiles 1 - numRows 6 - rawDataSize 13 - totalSize 19 - transactional true - transactional_properties insert_only -#### A masked pattern was here #### - -# Storage Information -SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe -InputFormat: org.apache.hadoop.mapred.TextInputFormat -OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat -Compressed: No -Num Buckets: -1 -Bucket Columns: [] -Sort Columns: [] -Storage Desc Params: - serialization.format 1 -PREHOOK: query: insert into table stats_mm select key from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@stats_mm -POSTHOOK: query: insert into table stats_mm select key from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@stats_mm -POSTHOOK: Lineage: stats_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: desc formatted stats_mm -PREHOOK: type: DESCTABLE -PREHOOK: Input: default@stats_mm -POSTHOOK: query: desc formatted stats_mm -POSTHOOK: type: DESCTABLE -POSTHOOK: Input: default@stats_mm -# col_name data_type comment - -key int - -# Detailed Table Information -Database: default -#### A masked pattern was here #### -Retention: 0 -#### A masked pattern was here #### -Table Type: MANAGED_TABLE -Table Parameters: - COLUMN_STATS_ACCURATE {\"BASIC_STATS\":\"true\"} - numFiles 2 - numRows 12 - rawDataSize 26 - totalSize 38 - transactional true - transactional_properties insert_only -#### A masked pattern was here #### - -# Storage Information -SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe -InputFormat: org.apache.hadoop.mapred.TextInputFormat -OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat -Compressed: No -Num Buckets: -1 -Bucket Columns: [] -Sort Columns: [] -Storage Desc Params: - serialization.format 1 -PREHOOK: query: drop table stats_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@stats_mm -PREHOOK: Output: default@stats_mm -POSTHOOK: query: drop table stats_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@stats_mm -POSTHOOK: Output: default@stats_mm -PREHOOK: query: drop table stats2_mm -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table stats2_mm -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table stats2_mm tblproperties("transactional"="true", "transactional_properties"="insert_only") as select array(key, value) from src -PREHOOK: type: CREATETABLE_AS_SELECT -PREHOOK: Input: default@src -PREHOOK: Output: database:default -PREHOOK: Output: default@stats2_mm -POSTHOOK: query: create table stats2_mm tblproperties("transactional"="true", "transactional_properties"="insert_only") as select array(key, value) from src -POSTHOOK: type: CREATETABLE_AS_SELECT -POSTHOOK: Input: default@src -POSTHOOK: Output: database:default -POSTHOOK: Output: default@stats2_mm -POSTHOOK: Lineage: stats2_mm._c0 EXPRESSION [(src)src.FieldSchema(name:key, type:string, comment:default), (src)src.FieldSchema(name:value, type:string, comment:default), ] -PREHOOK: query: desc formatted stats2_mm -PREHOOK: type: DESCTABLE -PREHOOK: Input: default@stats2_mm -POSTHOOK: query: desc formatted stats2_mm -POSTHOOK: type: DESCTABLE -POSTHOOK: Input: default@stats2_mm -# col_name data_type comment - -_c0 array - -# Detailed Table Information -Database: default -#### A masked pattern was here #### -Retention: 0 -#### A masked pattern was here #### -Table Type: MANAGED_TABLE -Table Parameters: - COLUMN_STATS_ACCURATE {\"BASIC_STATS\":\"true\"} - numFiles 1 - numRows 500 - rawDataSize 5312 - totalSize 5812 - transactional true - transactional_properties insert_only -#### A masked pattern was here #### - -# Storage Information -SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe -InputFormat: org.apache.hadoop.mapred.TextInputFormat -OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat -Compressed: No -Num Buckets: -1 -Bucket Columns: [] -Sort Columns: [] -Storage Desc Params: - serialization.format 1 -PREHOOK: query: drop table stats2_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@stats2_mm -PREHOOK: Output: default@stats2_mm -POSTHOOK: query: drop table stats2_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@stats2_mm -POSTHOOK: Output: default@stats2_mm -PREHOOK: query: CREATE TABLE skewjoin_mm(key INT, value STRING) STORED AS TEXTFILE tblproperties ("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@skewjoin_mm -POSTHOOK: query: CREATE TABLE skewjoin_mm(key INT, value STRING) STORED AS TEXTFILE tblproperties ("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@skewjoin_mm -PREHOOK: query: FROM src src1 JOIN src src2 ON (src1.key = src2.key) INSERT OVERWRITE TABLE skewjoin_mm SELECT src1.key, src2.value -PREHOOK: type: QUERY -PREHOOK: Input: default@src -PREHOOK: Output: default@skewjoin_mm -POSTHOOK: query: FROM src src1 JOIN src src2 ON (src1.key = src2.key) INSERT OVERWRITE TABLE skewjoin_mm SELECT src1.key, src2.value -POSTHOOK: type: QUERY -POSTHOOK: Input: default@src -POSTHOOK: Output: default@skewjoin_mm -POSTHOOK: Lineage: skewjoin_mm.key EXPRESSION [(src)src1.FieldSchema(name:key, type:string, comment:default), ] -POSTHOOK: Lineage: skewjoin_mm.value SIMPLE [(src)src2.FieldSchema(name:value, type:string, comment:default), ] -PREHOOK: query: select count(distinct key) from skewjoin_mm -PREHOOK: type: QUERY -PREHOOK: Input: default@skewjoin_mm -#### A masked pattern was here #### -POSTHOOK: query: select count(distinct key) from skewjoin_mm -POSTHOOK: type: QUERY -POSTHOOK: Input: default@skewjoin_mm -#### A masked pattern was here #### -309 -PREHOOK: query: drop table skewjoin_mm -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@skewjoin_mm -PREHOOK: Output: default@skewjoin_mm -POSTHOOK: query: drop table skewjoin_mm -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@skewjoin_mm -POSTHOOK: Output: default@skewjoin_mm PREHOOK: query: CREATE TABLE parquet1_mm(id INT) STORED AS PARQUET tblproperties ("transactional"="true", "transactional_properties"="insert_only") PREHOOK: type: CREATETABLE PREHOOK: Output: database:default diff --git ql/src/test/results/clientpositive/mm_conversions.q.out ql/src/test/results/clientpositive/mm_conversions.q.out index 2cfa06d..1610672 100644 --- ql/src/test/results/clientpositive/mm_conversions.q.out +++ ql/src/test/results/clientpositive/mm_conversions.q.out @@ -37,55 +37,55 @@ POSTHOOK: type: QUERY POSTHOOK: Input: default@src POSTHOOK: Output: default@intermediate@p=457 POSTHOOK: Lineage: intermediate PARTITION(p=457).key EXPRESSION [(src)src.FieldSchema(name:key, type:string, comment:default), ] -PREHOOK: query: drop table simple_from_mm +PREHOOK: query: drop table simple_from_mm1 PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table simple_from_mm +POSTHOOK: query: drop table simple_from_mm1 POSTHOOK: type: DROPTABLE -PREHOOK: query: create table simple_from_mm(key int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only") +PREHOOK: query: create table simple_from_mm1(key int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only") PREHOOK: type: CREATETABLE PREHOOK: Output: database:default -PREHOOK: Output: default@simple_from_mm -POSTHOOK: query: create table simple_from_mm(key int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only") +PREHOOK: Output: default@simple_from_mm1 +POSTHOOK: query: create table simple_from_mm1(key int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only") POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default -POSTHOOK: Output: default@simple_from_mm -PREHOOK: query: insert into table simple_from_mm select key from intermediate +POSTHOOK: Output: default@simple_from_mm1 +PREHOOK: query: insert into table simple_from_mm1 select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@simple_from_mm -POSTHOOK: query: insert into table simple_from_mm select key from intermediate +PREHOOK: Output: default@simple_from_mm1 +POSTHOOK: query: insert into table simple_from_mm1 select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@simple_from_mm -POSTHOOK: Lineage: simple_from_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: insert into table simple_from_mm select key from intermediate +POSTHOOK: Output: default@simple_from_mm1 +POSTHOOK: Lineage: simple_from_mm1.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: insert into table simple_from_mm1 select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@simple_from_mm -POSTHOOK: query: insert into table simple_from_mm select key from intermediate +PREHOOK: Output: default@simple_from_mm1 +POSTHOOK: query: insert into table simple_from_mm1 select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@simple_from_mm -POSTHOOK: Lineage: simple_from_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from simple_from_mm s1 order by key +POSTHOOK: Output: default@simple_from_mm1 +POSTHOOK: Lineage: simple_from_mm1.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: select * from simple_from_mm1 s1 order by key PREHOOK: type: QUERY -PREHOOK: Input: default@simple_from_mm +PREHOOK: Input: default@simple_from_mm1 #### A masked pattern was here #### -POSTHOOK: query: select * from simple_from_mm s1 order by key +POSTHOOK: query: select * from simple_from_mm1 s1 order by key POSTHOOK: type: QUERY -POSTHOOK: Input: default@simple_from_mm +POSTHOOK: Input: default@simple_from_mm1 #### A masked pattern was here #### 0 0 @@ -93,21 +93,21 @@ POSTHOOK: Input: default@simple_from_mm 98 100 100 -PREHOOK: query: alter table simple_from_mm unset tblproperties('transactional_properties', 'transactional') +PREHOOK: query: alter table simple_from_mm1 unset tblproperties('transactional_properties', 'transactional') PREHOOK: type: ALTERTABLE_PROPERTIES -PREHOOK: Input: default@simple_from_mm -PREHOOK: Output: default@simple_from_mm -POSTHOOK: query: alter table simple_from_mm unset tblproperties('transactional_properties', 'transactional') +PREHOOK: Input: default@simple_from_mm1 +PREHOOK: Output: default@simple_from_mm1 +POSTHOOK: query: alter table simple_from_mm1 unset tblproperties('transactional_properties', 'transactional') POSTHOOK: type: ALTERTABLE_PROPERTIES -POSTHOOK: Input: default@simple_from_mm -POSTHOOK: Output: default@simple_from_mm -PREHOOK: query: select * from simple_from_mm s2 order by key +POSTHOOK: Input: default@simple_from_mm1 +POSTHOOK: Output: default@simple_from_mm1 +PREHOOK: query: select * from simple_from_mm1 s2 order by key PREHOOK: type: QUERY -PREHOOK: Input: default@simple_from_mm +PREHOOK: Input: default@simple_from_mm1 #### A masked pattern was here #### -POSTHOOK: query: select * from simple_from_mm s2 order by key +POSTHOOK: query: select * from simple_from_mm1 s2 order by key POSTHOOK: type: QUERY -POSTHOOK: Input: default@simple_from_mm +POSTHOOK: Input: default@simple_from_mm1 #### A masked pattern was here #### 0 0 @@ -115,28 +115,28 @@ POSTHOOK: Input: default@simple_from_mm 98 100 100 -PREHOOK: query: insert into table simple_from_mm select key from intermediate +PREHOOK: query: insert into table simple_from_mm1 select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@simple_from_mm -POSTHOOK: query: insert into table simple_from_mm select key from intermediate +PREHOOK: Output: default@simple_from_mm1 +POSTHOOK: query: insert into table simple_from_mm1 select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@simple_from_mm -POSTHOOK: Lineage: simple_from_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from simple_from_mm s3 order by key +POSTHOOK: Output: default@simple_from_mm1 +POSTHOOK: Lineage: simple_from_mm1.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: select * from simple_from_mm1 s3 order by key PREHOOK: type: QUERY -PREHOOK: Input: default@simple_from_mm +PREHOOK: Input: default@simple_from_mm1 #### A masked pattern was here #### -POSTHOOK: query: select * from simple_from_mm s3 order by key +POSTHOOK: query: select * from simple_from_mm1 s3 order by key POSTHOOK: type: QUERY -POSTHOOK: Input: default@simple_from_mm +POSTHOOK: Input: default@simple_from_mm1 #### A masked pattern was here #### 0 0 @@ -147,140 +147,132 @@ POSTHOOK: Input: default@simple_from_mm 100 100 100 -PREHOOK: query: alter table simple_from_mm set tblproperties("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: ALTERTABLE_PROPERTIES -PREHOOK: Input: default@simple_from_mm -PREHOOK: Output: default@simple_from_mm -POSTHOOK: query: alter table simple_from_mm set tblproperties("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: ALTERTABLE_PROPERTIES -POSTHOOK: Input: default@simple_from_mm -POSTHOOK: Output: default@simple_from_mm -PREHOOK: query: select * from simple_from_mm s4 order by key +PREHOOK: query: drop table simple_from_mm1 +PREHOOK: type: DROPTABLE +PREHOOK: Input: default@simple_from_mm1 +PREHOOK: Output: default@simple_from_mm1 +POSTHOOK: query: drop table simple_from_mm1 +POSTHOOK: type: DROPTABLE +POSTHOOK: Input: default@simple_from_mm1 +POSTHOOK: Output: default@simple_from_mm1 +PREHOOK: query: drop table simple_from_mm2 +PREHOOK: type: DROPTABLE +POSTHOOK: query: drop table simple_from_mm2 +POSTHOOK: type: DROPTABLE +PREHOOK: query: create table simple_from_mm2(key int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only") +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@simple_from_mm2 +POSTHOOK: query: create table simple_from_mm2(key int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only") +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@simple_from_mm2 +PREHOOK: query: insert into table simple_from_mm2 select key from intermediate PREHOOK: type: QUERY -PREHOOK: Input: default@simple_from_mm -#### A masked pattern was here #### -POSTHOOK: query: select * from simple_from_mm s4 order by key +PREHOOK: Input: default@intermediate +PREHOOK: Input: default@intermediate@p=455 +PREHOOK: Input: default@intermediate@p=456 +PREHOOK: Input: default@intermediate@p=457 +PREHOOK: Output: default@simple_from_mm2 +POSTHOOK: query: insert into table simple_from_mm2 select key from intermediate POSTHOOK: type: QUERY -POSTHOOK: Input: default@simple_from_mm -#### A masked pattern was here #### -0 -0 -0 -98 -98 -98 -100 -100 -100 -PREHOOK: query: insert into table simple_from_mm select key from intermediate +POSTHOOK: Input: default@intermediate +POSTHOOK: Input: default@intermediate@p=455 +POSTHOOK: Input: default@intermediate@p=456 +POSTHOOK: Input: default@intermediate@p=457 +POSTHOOK: Output: default@simple_from_mm2 +POSTHOOK: Lineage: simple_from_mm2.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: insert into table simple_from_mm2 select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@simple_from_mm -POSTHOOK: query: insert into table simple_from_mm select key from intermediate +PREHOOK: Output: default@simple_from_mm2 +POSTHOOK: query: insert into table simple_from_mm2 select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@simple_from_mm -POSTHOOK: Lineage: simple_from_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from simple_from_mm s5 order by key +POSTHOOK: Output: default@simple_from_mm2 +POSTHOOK: Lineage: simple_from_mm2.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: select * from simple_from_mm2 s1 order by key PREHOOK: type: QUERY -PREHOOK: Input: default@simple_from_mm +PREHOOK: Input: default@simple_from_mm2 #### A masked pattern was here #### -POSTHOOK: query: select * from simple_from_mm s5 order by key +POSTHOOK: query: select * from simple_from_mm2 s1 order by key POSTHOOK: type: QUERY -POSTHOOK: Input: default@simple_from_mm +POSTHOOK: Input: default@simple_from_mm2 #### A masked pattern was here #### 0 0 -0 -0 -98 -98 98 98 100 100 -100 -100 -PREHOOK: query: alter table simple_from_mm set tblproperties("transactional"="false", 'transactional_properties'='false') +PREHOOK: query: alter table simple_from_mm2 set tblproperties("transactional"="false", 'transactional_properties'='false') PREHOOK: type: ALTERTABLE_PROPERTIES -PREHOOK: Input: default@simple_from_mm -PREHOOK: Output: default@simple_from_mm -POSTHOOK: query: alter table simple_from_mm set tblproperties("transactional"="false", 'transactional_properties'='false') +PREHOOK: Input: default@simple_from_mm2 +PREHOOK: Output: default@simple_from_mm2 +POSTHOOK: query: alter table simple_from_mm2 set tblproperties("transactional"="false", 'transactional_properties'='false') POSTHOOK: type: ALTERTABLE_PROPERTIES -POSTHOOK: Input: default@simple_from_mm -POSTHOOK: Output: default@simple_from_mm -PREHOOK: query: select * from simple_from_mm s6 order by key +POSTHOOK: Input: default@simple_from_mm2 +POSTHOOK: Output: default@simple_from_mm2 +PREHOOK: query: select * from simple_from_mm2 s2 order by key PREHOOK: type: QUERY -PREHOOK: Input: default@simple_from_mm +PREHOOK: Input: default@simple_from_mm2 #### A masked pattern was here #### -POSTHOOK: query: select * from simple_from_mm s6 order by key +POSTHOOK: query: select * from simple_from_mm2 s2 order by key POSTHOOK: type: QUERY -POSTHOOK: Input: default@simple_from_mm +POSTHOOK: Input: default@simple_from_mm2 #### A masked pattern was here #### 0 0 -0 -0 98 98 -98 -98 -100 100 100 -100 -PREHOOK: query: insert into table simple_from_mm select key from intermediate +PREHOOK: query: insert into table simple_from_mm2 select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@simple_from_mm -POSTHOOK: query: insert into table simple_from_mm select key from intermediate +PREHOOK: Output: default@simple_from_mm2 +POSTHOOK: query: insert into table simple_from_mm2 select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@simple_from_mm -POSTHOOK: Lineage: simple_from_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from simple_from_mm s7 order by key +POSTHOOK: Output: default@simple_from_mm2 +POSTHOOK: Lineage: simple_from_mm2.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: select * from simple_from_mm2 s3 order by key PREHOOK: type: QUERY -PREHOOK: Input: default@simple_from_mm +PREHOOK: Input: default@simple_from_mm2 #### A masked pattern was here #### -POSTHOOK: query: select * from simple_from_mm s7 order by key +POSTHOOK: query: select * from simple_from_mm2 s3 order by key POSTHOOK: type: QUERY -POSTHOOK: Input: default@simple_from_mm +POSTHOOK: Input: default@simple_from_mm2 #### A masked pattern was here #### 0 0 0 -0 -0 -98 98 98 98 -98 -100 100 100 100 -100 -PREHOOK: query: drop table simple_from_mm +PREHOOK: query: drop table simple_from_mm2 PREHOOK: type: DROPTABLE -PREHOOK: Input: default@simple_from_mm -PREHOOK: Output: default@simple_from_mm -POSTHOOK: query: drop table simple_from_mm +PREHOOK: Input: default@simple_from_mm2 +PREHOOK: Output: default@simple_from_mm2 +POSTHOOK: query: drop table simple_from_mm2 POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@simple_from_mm -POSTHOOK: Output: default@simple_from_mm +POSTHOOK: Input: default@simple_from_mm2 +POSTHOOK: Output: default@simple_from_mm2 PREHOOK: query: drop table simple_to_mm PREHOOK: type: DROPTABLE POSTHOOK: query: drop table simple_to_mm @@ -308,21 +300,6 @@ POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 POSTHOOK: Output: default@simple_to_mm POSTHOOK: Lineage: simple_to_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: insert into table simple_to_mm select key from intermediate -PREHOOK: type: QUERY -PREHOOK: Input: default@intermediate -PREHOOK: Input: default@intermediate@p=455 -PREHOOK: Input: default@intermediate@p=456 -PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@simple_to_mm -POSTHOOK: query: insert into table simple_to_mm select key from intermediate -POSTHOOK: type: QUERY -POSTHOOK: Input: default@intermediate -POSTHOOK: Input: default@intermediate@p=455 -POSTHOOK: Input: default@intermediate@p=456 -POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@simple_to_mm -POSTHOOK: Lineage: simple_to_mm.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] PREHOOK: query: select * from simple_to_mm s1 order by key PREHOOK: type: QUERY PREHOOK: Input: default@simple_to_mm @@ -332,15 +309,13 @@ POSTHOOK: type: QUERY POSTHOOK: Input: default@simple_to_mm #### A masked pattern was here #### 0 -0 -98 98 100 -100 PREHOOK: query: alter table simple_to_mm set tblproperties("transactional"="true", "transactional_properties"="insert_only") PREHOOK: type: ALTERTABLE_PROPERTIES PREHOOK: Input: default@simple_to_mm PREHOOK: Output: default@simple_to_mm +FAILED: Error in acquiring locks: Transaction already opened. txnid:30 POSTHOOK: query: alter table simple_to_mm set tblproperties("transactional"="true", "transactional_properties"="insert_only") POSTHOOK: type: ALTERTABLE_PROPERTIES POSTHOOK: Input: default@simple_to_mm @@ -354,11 +329,8 @@ POSTHOOK: type: QUERY POSTHOOK: Input: default@simple_to_mm #### A masked pattern was here #### 0 -0 -98 98 100 -100 PREHOOK: query: insert into table simple_to_mm select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate @@ -400,12 +372,9 @@ POSTHOOK: Input: default@simple_to_mm 0 0 0 -0 98 98 98 -98 -100 100 100 100 @@ -417,74 +386,74 @@ POSTHOOK: query: drop table simple_to_mm POSTHOOK: type: DROPTABLE POSTHOOK: Input: default@simple_to_mm POSTHOOK: Output: default@simple_to_mm -PREHOOK: query: drop table part_from_mm +PREHOOK: query: drop table part_from_mm1 PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table part_from_mm +POSTHOOK: query: drop table part_from_mm1 POSTHOOK: type: DROPTABLE -PREHOOK: query: create table part_from_mm(key int) partitioned by (key_mm int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only") +PREHOOK: query: create table part_from_mm1(key int) partitioned by (key_mm int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only") PREHOOK: type: CREATETABLE PREHOOK: Output: database:default -PREHOOK: Output: default@part_from_mm -POSTHOOK: query: create table part_from_mm(key int) partitioned by (key_mm int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only") +PREHOOK: Output: default@part_from_mm1 +POSTHOOK: query: create table part_from_mm1(key int) partitioned by (key_mm int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only") POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default -POSTHOOK: Output: default@part_from_mm -PREHOOK: query: insert into table part_from_mm partition(key_mm='455') select key from intermediate +POSTHOOK: Output: default@part_from_mm1 +PREHOOK: query: insert into table part_from_mm1 partition(key_mm='455') select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@part_from_mm@key_mm=455 -POSTHOOK: query: insert into table part_from_mm partition(key_mm='455') select key from intermediate +PREHOOK: Output: default@part_from_mm1@key_mm=455 +POSTHOOK: query: insert into table part_from_mm1 partition(key_mm='455') select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@part_from_mm@key_mm=455 -POSTHOOK: Lineage: part_from_mm PARTITION(key_mm=455).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: insert into table part_from_mm partition(key_mm='455') select key from intermediate +POSTHOOK: Output: default@part_from_mm1@key_mm=455 +POSTHOOK: Lineage: part_from_mm1 PARTITION(key_mm=455).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: insert into table part_from_mm1 partition(key_mm='455') select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@part_from_mm@key_mm=455 -POSTHOOK: query: insert into table part_from_mm partition(key_mm='455') select key from intermediate +PREHOOK: Output: default@part_from_mm1@key_mm=455 +POSTHOOK: query: insert into table part_from_mm1 partition(key_mm='455') select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@part_from_mm@key_mm=455 -POSTHOOK: Lineage: part_from_mm PARTITION(key_mm=455).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: insert into table part_from_mm partition(key_mm='456') select key from intermediate +POSTHOOK: Output: default@part_from_mm1@key_mm=455 +POSTHOOK: Lineage: part_from_mm1 PARTITION(key_mm=455).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: insert into table part_from_mm1 partition(key_mm='456') select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@part_from_mm@key_mm=456 -POSTHOOK: query: insert into table part_from_mm partition(key_mm='456') select key from intermediate +PREHOOK: Output: default@part_from_mm1@key_mm=456 +POSTHOOK: query: insert into table part_from_mm1 partition(key_mm='456') select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@part_from_mm@key_mm=456 -POSTHOOK: Lineage: part_from_mm PARTITION(key_mm=456).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from part_from_mm s1 order by key, key_mm +POSTHOOK: Output: default@part_from_mm1@key_mm=456 +POSTHOOK: Lineage: part_from_mm1 PARTITION(key_mm=456).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: select * from part_from_mm1 s1 order by key, key_mm PREHOOK: type: QUERY -PREHOOK: Input: default@part_from_mm -PREHOOK: Input: default@part_from_mm@key_mm=455 -PREHOOK: Input: default@part_from_mm@key_mm=456 +PREHOOK: Input: default@part_from_mm1 +PREHOOK: Input: default@part_from_mm1@key_mm=455 +PREHOOK: Input: default@part_from_mm1@key_mm=456 #### A masked pattern was here #### -POSTHOOK: query: select * from part_from_mm s1 order by key, key_mm +POSTHOOK: query: select * from part_from_mm1 s1 order by key, key_mm POSTHOOK: type: QUERY -POSTHOOK: Input: default@part_from_mm -POSTHOOK: Input: default@part_from_mm@key_mm=455 -POSTHOOK: Input: default@part_from_mm@key_mm=456 +POSTHOOK: Input: default@part_from_mm1 +POSTHOOK: Input: default@part_from_mm1@key_mm=455 +POSTHOOK: Input: default@part_from_mm1@key_mm=456 #### A masked pattern was here #### 0 455 0 455 @@ -495,25 +464,25 @@ POSTHOOK: Input: default@part_from_mm@key_mm=456 100 455 100 455 100 456 -PREHOOK: query: alter table part_from_mm unset tblproperties('transactional_properties', 'transactional') +PREHOOK: query: alter table part_from_mm1 unset tblproperties('transactional_properties', 'transactional') PREHOOK: type: ALTERTABLE_PROPERTIES -PREHOOK: Input: default@part_from_mm -PREHOOK: Output: default@part_from_mm -POSTHOOK: query: alter table part_from_mm unset tblproperties('transactional_properties', 'transactional') +PREHOOK: Input: default@part_from_mm1 +PREHOOK: Output: default@part_from_mm1 +POSTHOOK: query: alter table part_from_mm1 unset tblproperties('transactional_properties', 'transactional') POSTHOOK: type: ALTERTABLE_PROPERTIES -POSTHOOK: Input: default@part_from_mm -POSTHOOK: Output: default@part_from_mm -PREHOOK: query: select * from part_from_mm s2 order by key, key_mm +POSTHOOK: Input: default@part_from_mm1 +POSTHOOK: Output: default@part_from_mm1 +PREHOOK: query: select * from part_from_mm1 s2 order by key, key_mm PREHOOK: type: QUERY -PREHOOK: Input: default@part_from_mm -PREHOOK: Input: default@part_from_mm@key_mm=455 -PREHOOK: Input: default@part_from_mm@key_mm=456 +PREHOOK: Input: default@part_from_mm1 +PREHOOK: Input: default@part_from_mm1@key_mm=455 +PREHOOK: Input: default@part_from_mm1@key_mm=456 #### A masked pattern was here #### -POSTHOOK: query: select * from part_from_mm s2 order by key, key_mm +POSTHOOK: query: select * from part_from_mm1 s2 order by key, key_mm POSTHOOK: type: QUERY -POSTHOOK: Input: default@part_from_mm -POSTHOOK: Input: default@part_from_mm@key_mm=455 -POSTHOOK: Input: default@part_from_mm@key_mm=456 +POSTHOOK: Input: default@part_from_mm1 +POSTHOOK: Input: default@part_from_mm1@key_mm=455 +POSTHOOK: Input: default@part_from_mm1@key_mm=456 #### A masked pattern was here #### 0 455 0 455 @@ -524,49 +493,49 @@ POSTHOOK: Input: default@part_from_mm@key_mm=456 100 455 100 455 100 456 -PREHOOK: query: insert into table part_from_mm partition(key_mm='456') select key from intermediate +PREHOOK: query: insert into table part_from_mm1 partition(key_mm='456') select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@part_from_mm@key_mm=456 -POSTHOOK: query: insert into table part_from_mm partition(key_mm='456') select key from intermediate +PREHOOK: Output: default@part_from_mm1@key_mm=456 +POSTHOOK: query: insert into table part_from_mm1 partition(key_mm='456') select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@part_from_mm@key_mm=456 -POSTHOOK: Lineage: part_from_mm PARTITION(key_mm=456).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: insert into table part_from_mm partition(key_mm='457') select key from intermediate +POSTHOOK: Output: default@part_from_mm1@key_mm=456 +POSTHOOK: Lineage: part_from_mm1 PARTITION(key_mm=456).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: insert into table part_from_mm1 partition(key_mm='457') select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@part_from_mm@key_mm=457 -POSTHOOK: query: insert into table part_from_mm partition(key_mm='457') select key from intermediate +PREHOOK: Output: default@part_from_mm1@key_mm=457 +POSTHOOK: query: insert into table part_from_mm1 partition(key_mm='457') select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@part_from_mm@key_mm=457 -POSTHOOK: Lineage: part_from_mm PARTITION(key_mm=457).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from part_from_mm s3 order by key, key_mm +POSTHOOK: Output: default@part_from_mm1@key_mm=457 +POSTHOOK: Lineage: part_from_mm1 PARTITION(key_mm=457).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: select * from part_from_mm1 s3 order by key, key_mm PREHOOK: type: QUERY -PREHOOK: Input: default@part_from_mm -PREHOOK: Input: default@part_from_mm@key_mm=455 -PREHOOK: Input: default@part_from_mm@key_mm=456 -PREHOOK: Input: default@part_from_mm@key_mm=457 +PREHOOK: Input: default@part_from_mm1 +PREHOOK: Input: default@part_from_mm1@key_mm=455 +PREHOOK: Input: default@part_from_mm1@key_mm=456 +PREHOOK: Input: default@part_from_mm1@key_mm=457 #### A masked pattern was here #### -POSTHOOK: query: select * from part_from_mm s3 order by key, key_mm +POSTHOOK: query: select * from part_from_mm1 s3 order by key, key_mm POSTHOOK: type: QUERY -POSTHOOK: Input: default@part_from_mm -POSTHOOK: Input: default@part_from_mm@key_mm=455 -POSTHOOK: Input: default@part_from_mm@key_mm=456 -POSTHOOK: Input: default@part_from_mm@key_mm=457 +POSTHOOK: Input: default@part_from_mm1 +POSTHOOK: Input: default@part_from_mm1@key_mm=455 +POSTHOOK: Input: default@part_from_mm1@key_mm=456 +POSTHOOK: Input: default@part_from_mm1@key_mm=457 #### A masked pattern was here #### 0 455 0 455 @@ -583,212 +552,148 @@ POSTHOOK: Input: default@part_from_mm@key_mm=457 100 456 100 456 100 457 -PREHOOK: query: alter table part_from_mm set tblproperties("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: ALTERTABLE_PROPERTIES -PREHOOK: Input: default@part_from_mm -PREHOOK: Output: default@part_from_mm -POSTHOOK: query: alter table part_from_mm set tblproperties("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: ALTERTABLE_PROPERTIES -POSTHOOK: Input: default@part_from_mm -POSTHOOK: Output: default@part_from_mm -PREHOOK: query: select * from part_from_mm s4 order by key, key_mm -PREHOOK: type: QUERY -PREHOOK: Input: default@part_from_mm -PREHOOK: Input: default@part_from_mm@key_mm=455 -PREHOOK: Input: default@part_from_mm@key_mm=456 -PREHOOK: Input: default@part_from_mm@key_mm=457 -#### A masked pattern was here #### -POSTHOOK: query: select * from part_from_mm s4 order by key, key_mm -POSTHOOK: type: QUERY -POSTHOOK: Input: default@part_from_mm -POSTHOOK: Input: default@part_from_mm@key_mm=455 -POSTHOOK: Input: default@part_from_mm@key_mm=456 -POSTHOOK: Input: default@part_from_mm@key_mm=457 -#### A masked pattern was here #### -0 455 -0 455 -0 456 -0 456 -0 457 -98 455 -98 455 -98 456 -98 456 -98 457 -100 455 -100 455 -100 456 -100 456 -100 457 -PREHOOK: query: insert into table part_from_mm partition(key_mm='456') select key from intermediate +PREHOOK: query: drop table part_from_mm1 +PREHOOK: type: DROPTABLE +PREHOOK: Input: default@part_from_mm1 +PREHOOK: Output: default@part_from_mm1 +POSTHOOK: query: drop table part_from_mm1 +POSTHOOK: type: DROPTABLE +POSTHOOK: Input: default@part_from_mm1 +POSTHOOK: Output: default@part_from_mm1 +PREHOOK: query: drop table part_from_mm2 +PREHOOK: type: DROPTABLE +POSTHOOK: query: drop table part_from_mm2 +POSTHOOK: type: DROPTABLE +PREHOOK: query: create table part_from_mm2(key int) partitioned by (key_mm int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only") +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@part_from_mm2 +POSTHOOK: query: create table part_from_mm2(key int) partitioned by (key_mm int) stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only") +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@part_from_mm2 +PREHOOK: query: insert into table part_from_mm2 partition(key_mm='456') select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@part_from_mm@key_mm=456 -POSTHOOK: query: insert into table part_from_mm partition(key_mm='456') select key from intermediate +PREHOOK: Output: default@part_from_mm2@key_mm=456 +POSTHOOK: query: insert into table part_from_mm2 partition(key_mm='456') select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@part_from_mm@key_mm=456 -POSTHOOK: Lineage: part_from_mm PARTITION(key_mm=456).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: insert into table part_from_mm partition(key_mm='455') select key from intermediate +POSTHOOK: Output: default@part_from_mm2@key_mm=456 +POSTHOOK: Lineage: part_from_mm2 PARTITION(key_mm=456).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: --fails here +insert into table part_from_mm2 partition(key_mm='455') select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@part_from_mm@key_mm=455 -POSTHOOK: query: insert into table part_from_mm partition(key_mm='455') select key from intermediate +PREHOOK: Output: default@part_from_mm2@key_mm=455 +POSTHOOK: query: --fails here +insert into table part_from_mm2 partition(key_mm='455') select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@part_from_mm@key_mm=455 -POSTHOOK: Lineage: part_from_mm PARTITION(key_mm=455).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from part_from_mm s5 order by key, key_mm +POSTHOOK: Output: default@part_from_mm2@key_mm=455 +POSTHOOK: Lineage: part_from_mm2 PARTITION(key_mm=455).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: select * from part_from_mm2 s1 order by key, key_mm PREHOOK: type: QUERY -PREHOOK: Input: default@part_from_mm -PREHOOK: Input: default@part_from_mm@key_mm=455 -PREHOOK: Input: default@part_from_mm@key_mm=456 -PREHOOK: Input: default@part_from_mm@key_mm=457 +PREHOOK: Input: default@part_from_mm2 +PREHOOK: Input: default@part_from_mm2@key_mm=455 +PREHOOK: Input: default@part_from_mm2@key_mm=456 #### A masked pattern was here #### -POSTHOOK: query: select * from part_from_mm s5 order by key, key_mm +POSTHOOK: query: select * from part_from_mm2 s1 order by key, key_mm POSTHOOK: type: QUERY -POSTHOOK: Input: default@part_from_mm -POSTHOOK: Input: default@part_from_mm@key_mm=455 -POSTHOOK: Input: default@part_from_mm@key_mm=456 -POSTHOOK: Input: default@part_from_mm@key_mm=457 +POSTHOOK: Input: default@part_from_mm2 +POSTHOOK: Input: default@part_from_mm2@key_mm=455 +POSTHOOK: Input: default@part_from_mm2@key_mm=456 #### A masked pattern was here #### 0 455 -0 455 -0 455 -0 456 0 456 -0 456 -0 457 98 455 -98 455 -98 455 -98 456 -98 456 98 456 -98 457 -100 455 -100 455 100 455 100 456 -100 456 -100 456 -100 457 -PREHOOK: query: alter table part_from_mm set tblproperties("transactional"="false", 'transactional_properties'='false') +PREHOOK: query: alter table part_from_mm2 set tblproperties("transactional"="false", 'transactional_properties'='false') PREHOOK: type: ALTERTABLE_PROPERTIES -PREHOOK: Input: default@part_from_mm -PREHOOK: Output: default@part_from_mm -POSTHOOK: query: alter table part_from_mm set tblproperties("transactional"="false", 'transactional_properties'='false') +PREHOOK: Input: default@part_from_mm2 +PREHOOK: Output: default@part_from_mm2 +POSTHOOK: query: alter table part_from_mm2 set tblproperties("transactional"="false", 'transactional_properties'='false') POSTHOOK: type: ALTERTABLE_PROPERTIES -POSTHOOK: Input: default@part_from_mm -POSTHOOK: Output: default@part_from_mm -PREHOOK: query: select * from part_from_mm s6 order by key, key_mm +POSTHOOK: Input: default@part_from_mm2 +POSTHOOK: Output: default@part_from_mm2 +PREHOOK: query: select * from part_from_mm2 s2 order by key, key_mm PREHOOK: type: QUERY -PREHOOK: Input: default@part_from_mm -PREHOOK: Input: default@part_from_mm@key_mm=455 -PREHOOK: Input: default@part_from_mm@key_mm=456 -PREHOOK: Input: default@part_from_mm@key_mm=457 +PREHOOK: Input: default@part_from_mm2 +PREHOOK: Input: default@part_from_mm2@key_mm=455 +PREHOOK: Input: default@part_from_mm2@key_mm=456 #### A masked pattern was here #### -POSTHOOK: query: select * from part_from_mm s6 order by key, key_mm +POSTHOOK: query: select * from part_from_mm2 s2 order by key, key_mm POSTHOOK: type: QUERY -POSTHOOK: Input: default@part_from_mm -POSTHOOK: Input: default@part_from_mm@key_mm=455 -POSTHOOK: Input: default@part_from_mm@key_mm=456 -POSTHOOK: Input: default@part_from_mm@key_mm=457 +POSTHOOK: Input: default@part_from_mm2 +POSTHOOK: Input: default@part_from_mm2@key_mm=455 +POSTHOOK: Input: default@part_from_mm2@key_mm=456 #### A masked pattern was here #### 0 455 -0 455 -0 455 -0 456 0 456 -0 456 -0 457 -98 455 98 455 -98 455 -98 456 98 456 -98 456 -98 457 -100 455 -100 455 100 455 100 456 -100 456 -100 456 -100 457 -PREHOOK: query: insert into table part_from_mm partition(key_mm='457') select key from intermediate +PREHOOK: query: insert into table part_from_mm2 partition(key_mm='457') select key from intermediate PREHOOK: type: QUERY PREHOOK: Input: default@intermediate PREHOOK: Input: default@intermediate@p=455 PREHOOK: Input: default@intermediate@p=456 PREHOOK: Input: default@intermediate@p=457 -PREHOOK: Output: default@part_from_mm@key_mm=457 -POSTHOOK: query: insert into table part_from_mm partition(key_mm='457') select key from intermediate +PREHOOK: Output: default@part_from_mm2@key_mm=457 +POSTHOOK: query: insert into table part_from_mm2 partition(key_mm='457') select key from intermediate POSTHOOK: type: QUERY POSTHOOK: Input: default@intermediate POSTHOOK: Input: default@intermediate@p=455 POSTHOOK: Input: default@intermediate@p=456 POSTHOOK: Input: default@intermediate@p=457 -POSTHOOK: Output: default@part_from_mm@key_mm=457 -POSTHOOK: Lineage: part_from_mm PARTITION(key_mm=457).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] -PREHOOK: query: select * from part_from_mm s7 order by key, key_mm +POSTHOOK: Output: default@part_from_mm2@key_mm=457 +POSTHOOK: Lineage: part_from_mm2 PARTITION(key_mm=457).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: select * from part_from_mm2 s3 order by key, key_mm PREHOOK: type: QUERY -PREHOOK: Input: default@part_from_mm -PREHOOK: Input: default@part_from_mm@key_mm=455 -PREHOOK: Input: default@part_from_mm@key_mm=456 -PREHOOK: Input: default@part_from_mm@key_mm=457 +PREHOOK: Input: default@part_from_mm2 +PREHOOK: Input: default@part_from_mm2@key_mm=455 +PREHOOK: Input: default@part_from_mm2@key_mm=456 +PREHOOK: Input: default@part_from_mm2@key_mm=457 #### A masked pattern was here #### -POSTHOOK: query: select * from part_from_mm s7 order by key, key_mm +POSTHOOK: query: select * from part_from_mm2 s3 order by key, key_mm POSTHOOK: type: QUERY -POSTHOOK: Input: default@part_from_mm -POSTHOOK: Input: default@part_from_mm@key_mm=455 -POSTHOOK: Input: default@part_from_mm@key_mm=456 -POSTHOOK: Input: default@part_from_mm@key_mm=457 +POSTHOOK: Input: default@part_from_mm2 +POSTHOOK: Input: default@part_from_mm2@key_mm=455 +POSTHOOK: Input: default@part_from_mm2@key_mm=456 +POSTHOOK: Input: default@part_from_mm2@key_mm=457 #### A masked pattern was here #### 0 455 -0 455 -0 455 -0 456 -0 456 0 456 0 457 -0 457 -98 455 98 455 -98 455 -98 456 -98 456 98 456 98 457 -98 457 -100 455 100 455 -100 455 -100 456 100 456 -100 456 -100 457 100 457 -PREHOOK: query: drop table part_from_mm +PREHOOK: query: drop table part_from_mm2 PREHOOK: type: DROPTABLE -PREHOOK: Input: default@part_from_mm -PREHOOK: Output: default@part_from_mm -POSTHOOK: query: drop table part_from_mm +PREHOOK: Input: default@part_from_mm2 +PREHOOK: Output: default@part_from_mm2 +POSTHOOK: query: drop table part_from_mm2 POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@part_from_mm -POSTHOOK: Output: default@part_from_mm +POSTHOOK: Input: default@part_from_mm2 +POSTHOOK: Output: default@part_from_mm2 PREHOOK: query: drop table part_to_mm PREHOOK: type: DROPTABLE POSTHOOK: query: drop table part_to_mm @@ -853,6 +758,7 @@ PREHOOK: query: alter table part_to_mm set tblproperties("transactional"="true", PREHOOK: type: ALTERTABLE_PROPERTIES PREHOOK: Input: default@part_to_mm PREHOOK: Output: default@part_to_mm +FAILED: Error in acquiring locks: Transaction already opened. txnid:63 POSTHOOK: query: alter table part_to_mm set tblproperties("transactional"="true", "transactional_properties"="insert_only") POSTHOOK: type: ALTERTABLE_PROPERTIES POSTHOOK: Input: default@part_to_mm diff --git ql/src/test/results/clientpositive/mm_exim.q.out ql/src/test/results/clientpositive/mm_exim.q.out new file mode 100644 index 0000000..6a6e549 --- /dev/null +++ ql/src/test/results/clientpositive/mm_exim.q.out @@ -0,0 +1,457 @@ +PREHOOK: query: drop table intermediate +PREHOOK: type: DROPTABLE +POSTHOOK: query: drop table intermediate +POSTHOOK: type: DROPTABLE +PREHOOK: query: create table intermediate(key int) partitioned by (p int) stored as orc +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@intermediate +POSTHOOK: query: create table intermediate(key int) partitioned by (p int) stored as orc +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@intermediate +PREHOOK: query: insert into table intermediate partition(p='455') select distinct key from src where key >= 0 order by key desc limit 2 +PREHOOK: type: QUERY +PREHOOK: Input: default@src +PREHOOK: Output: default@intermediate@p=455 +POSTHOOK: query: insert into table intermediate partition(p='455') select distinct key from src where key >= 0 order by key desc limit 2 +POSTHOOK: type: QUERY +POSTHOOK: Input: default@src +POSTHOOK: Output: default@intermediate@p=455 +POSTHOOK: Lineage: intermediate PARTITION(p=455).key EXPRESSION [(src)src.FieldSchema(name:key, type:string, comment:default), ] +PREHOOK: query: insert into table intermediate partition(p='456') select distinct key from src where key is not null order by key asc limit 2 +PREHOOK: type: QUERY +PREHOOK: Input: default@src +PREHOOK: Output: default@intermediate@p=456 +POSTHOOK: query: insert into table intermediate partition(p='456') select distinct key from src where key is not null order by key asc limit 2 +POSTHOOK: type: QUERY +POSTHOOK: Input: default@src +POSTHOOK: Output: default@intermediate@p=456 +POSTHOOK: Lineage: intermediate PARTITION(p=456).key EXPRESSION [(src)src.FieldSchema(name:key, type:string, comment:default), ] +PREHOOK: query: insert into table intermediate partition(p='457') select distinct key from src where key >= 100 order by key asc limit 2 +PREHOOK: type: QUERY +PREHOOK: Input: default@src +PREHOOK: Output: default@intermediate@p=457 +POSTHOOK: query: insert into table intermediate partition(p='457') select distinct key from src where key >= 100 order by key asc limit 2 +POSTHOOK: type: QUERY +POSTHOOK: Input: default@src +POSTHOOK: Output: default@intermediate@p=457 +POSTHOOK: Lineage: intermediate PARTITION(p=457).key EXPRESSION [(src)src.FieldSchema(name:key, type:string, comment:default), ] +PREHOOK: query: drop table intermediate_nonpart +PREHOOK: type: DROPTABLE +POSTHOOK: query: drop table intermediate_nonpart +POSTHOOK: type: DROPTABLE +PREHOOK: query: drop table intermmediate_part +PREHOOK: type: DROPTABLE +POSTHOOK: query: drop table intermmediate_part +POSTHOOK: type: DROPTABLE +PREHOOK: query: drop table intermmediate_nonpart +PREHOOK: type: DROPTABLE +POSTHOOK: query: drop table intermmediate_nonpart +POSTHOOK: type: DROPTABLE +PREHOOK: query: create table intermediate_nonpart(key int, p int) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@intermediate_nonpart +POSTHOOK: query: create table intermediate_nonpart(key int, p int) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@intermediate_nonpart +PREHOOK: query: insert into intermediate_nonpart select * from intermediate +PREHOOK: type: QUERY +PREHOOK: Input: default@intermediate +PREHOOK: Input: default@intermediate@p=455 +PREHOOK: Input: default@intermediate@p=456 +PREHOOK: Input: default@intermediate@p=457 +PREHOOK: Output: default@intermediate_nonpart +POSTHOOK: query: insert into intermediate_nonpart select * from intermediate +POSTHOOK: type: QUERY +POSTHOOK: Input: default@intermediate +POSTHOOK: Input: default@intermediate@p=455 +POSTHOOK: Input: default@intermediate@p=456 +POSTHOOK: Input: default@intermediate@p=457 +POSTHOOK: Output: default@intermediate_nonpart +POSTHOOK: Lineage: intermediate_nonpart.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +POSTHOOK: Lineage: intermediate_nonpart.p SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] +PREHOOK: query: create table intermmediate_nonpart(key int, p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@intermmediate_nonpart +POSTHOOK: query: create table intermmediate_nonpart(key int, p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@intermmediate_nonpart +PREHOOK: query: insert into intermmediate_nonpart select * from intermediate +PREHOOK: type: QUERY +PREHOOK: Input: default@intermediate +PREHOOK: Input: default@intermediate@p=455 +PREHOOK: Input: default@intermediate@p=456 +PREHOOK: Input: default@intermediate@p=457 +PREHOOK: Output: default@intermmediate_nonpart +POSTHOOK: query: insert into intermmediate_nonpart select * from intermediate +POSTHOOK: type: QUERY +POSTHOOK: Input: default@intermediate +POSTHOOK: Input: default@intermediate@p=455 +POSTHOOK: Input: default@intermediate@p=456 +POSTHOOK: Input: default@intermediate@p=457 +POSTHOOK: Output: default@intermmediate_nonpart +POSTHOOK: Lineage: intermmediate_nonpart.key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +POSTHOOK: Lineage: intermmediate_nonpart.p SIMPLE [(intermediate)intermediate.FieldSchema(name:p, type:int, comment:null), ] +PREHOOK: query: create table intermmediate(key int) partitioned by (p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@intermmediate +POSTHOOK: query: create table intermmediate(key int) partitioned by (p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@intermmediate +PREHOOK: query: insert into table intermmediate partition(p) select key, p from intermediate +PREHOOK: type: QUERY +PREHOOK: Input: default@intermediate +PREHOOK: Input: default@intermediate@p=455 +PREHOOK: Input: default@intermediate@p=456 +PREHOOK: Input: default@intermediate@p=457 +PREHOOK: Output: default@intermmediate +POSTHOOK: query: insert into table intermmediate partition(p) select key, p from intermediate +POSTHOOK: type: QUERY +POSTHOOK: Input: default@intermediate +POSTHOOK: Input: default@intermediate@p=455 +POSTHOOK: Input: default@intermediate@p=456 +POSTHOOK: Input: default@intermediate@p=457 +POSTHOOK: Output: default@intermmediate@p=455 +POSTHOOK: Output: default@intermmediate@p=456 +POSTHOOK: Output: default@intermmediate@p=457 +POSTHOOK: Lineage: intermmediate PARTITION(p=455).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +POSTHOOK: Lineage: intermmediate PARTITION(p=456).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +POSTHOOK: Lineage: intermmediate PARTITION(p=457).key SIMPLE [(intermediate)intermediate.FieldSchema(name:key, type:int, comment:null), ] +PREHOOK: query: export table intermediate_nonpart to 'ql/test/data/exports/intermediate_nonpart' +PREHOOK: type: EXPORT +PREHOOK: Input: default@intermediate_nonpart +#### A masked pattern was here #### +POSTHOOK: query: export table intermediate_nonpart to 'ql/test/data/exports/intermediate_nonpart' +POSTHOOK: type: EXPORT +POSTHOOK: Input: default@intermediate_nonpart +#### A masked pattern was here #### +PREHOOK: query: export table intermmediate_nonpart to 'ql/test/data/exports/intermmediate_nonpart' +PREHOOK: type: EXPORT +PREHOOK: Input: default@intermmediate_nonpart +#### A masked pattern was here #### +POSTHOOK: query: export table intermmediate_nonpart to 'ql/test/data/exports/intermmediate_nonpart' +POSTHOOK: type: EXPORT +POSTHOOK: Input: default@intermmediate_nonpart +#### A masked pattern was here #### +PREHOOK: query: export table intermediate to 'ql/test/data/exports/intermediate_part' +PREHOOK: type: EXPORT +PREHOOK: Input: default@intermediate@p=455 +PREHOOK: Input: default@intermediate@p=456 +PREHOOK: Input: default@intermediate@p=457 +#### A masked pattern was here #### +POSTHOOK: query: export table intermediate to 'ql/test/data/exports/intermediate_part' +POSTHOOK: type: EXPORT +POSTHOOK: Input: default@intermediate@p=455 +POSTHOOK: Input: default@intermediate@p=456 +POSTHOOK: Input: default@intermediate@p=457 +#### A masked pattern was here #### +PREHOOK: query: export table intermmediate to 'ql/test/data/exports/intermmediate_part' +PREHOOK: type: EXPORT +PREHOOK: Input: default@intermmediate@p=455 +PREHOOK: Input: default@intermmediate@p=456 +PREHOOK: Input: default@intermmediate@p=457 +#### A masked pattern was here #### +POSTHOOK: query: export table intermmediate to 'ql/test/data/exports/intermmediate_part' +POSTHOOK: type: EXPORT +POSTHOOK: Input: default@intermmediate@p=455 +POSTHOOK: Input: default@intermmediate@p=456 +POSTHOOK: Input: default@intermmediate@p=457 +#### A masked pattern was here #### +PREHOOK: query: drop table intermediate_nonpart +PREHOOK: type: DROPTABLE +PREHOOK: Input: default@intermediate_nonpart +PREHOOK: Output: default@intermediate_nonpart +POSTHOOK: query: drop table intermediate_nonpart +POSTHOOK: type: DROPTABLE +POSTHOOK: Input: default@intermediate_nonpart +POSTHOOK: Output: default@intermediate_nonpart +PREHOOK: query: drop table intermmediate_part +PREHOOK: type: DROPTABLE +POSTHOOK: query: drop table intermmediate_part +POSTHOOK: type: DROPTABLE +PREHOOK: query: drop table intermmediate_nonpart +PREHOOK: type: DROPTABLE +PREHOOK: Input: default@intermmediate_nonpart +PREHOOK: Output: default@intermmediate_nonpart +POSTHOOK: query: drop table intermmediate_nonpart +POSTHOOK: type: DROPTABLE +POSTHOOK: Input: default@intermmediate_nonpart +POSTHOOK: Output: default@intermmediate_nonpart +PREHOOK: query: drop table import0_mm +PREHOOK: type: DROPTABLE +POSTHOOK: query: drop table import0_mm +POSTHOOK: type: DROPTABLE +PREHOOK: query: create table import0_mm(key int, p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@import0_mm +POSTHOOK: query: create table import0_mm(key int, p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@import0_mm +PREHOOK: query: import table import0_mm from 'ql/test/data/exports/intermediate_nonpart' +PREHOOK: type: IMPORT +#### A masked pattern was here #### +PREHOOK: Output: default@import0_mm +POSTHOOK: query: import table import0_mm from 'ql/test/data/exports/intermediate_nonpart' +POSTHOOK: type: IMPORT +#### A masked pattern was here #### +POSTHOOK: Output: default@import0_mm +PREHOOK: query: select * from import0_mm order by key, p +PREHOOK: type: QUERY +PREHOOK: Input: default@import0_mm +#### A masked pattern was here #### +POSTHOOK: query: select * from import0_mm order by key, p +POSTHOOK: type: QUERY +POSTHOOK: Input: default@import0_mm +#### A masked pattern was here #### +0 456 +10 456 +97 455 +98 455 +100 457 +103 457 +PREHOOK: query: drop table import0_mm +PREHOOK: type: DROPTABLE +PREHOOK: Input: default@import0_mm +PREHOOK: Output: default@import0_mm +POSTHOOK: query: drop table import0_mm +POSTHOOK: type: DROPTABLE +POSTHOOK: Input: default@import0_mm +POSTHOOK: Output: default@import0_mm +PREHOOK: query: drop table import1_mm +PREHOOK: type: DROPTABLE +POSTHOOK: query: drop table import1_mm +POSTHOOK: type: DROPTABLE +PREHOOK: query: create table import1_mm(key int) partitioned by (p int) + stored as orc tblproperties("transactional"="true", "transactional_properties"="insert_only") +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@import1_mm +POSTHOOK: query: create table import1_mm(key int) partitioned by (p int) + stored as orc tblproperties("transactional"="true", "transactional_properties"="insert_only") +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@import1_mm +PREHOOK: query: import table import1_mm from 'ql/test/data/exports/intermediate_part' +PREHOOK: type: IMPORT +#### A masked pattern was here #### +PREHOOK: Output: default@import1_mm +POSTHOOK: query: import table import1_mm from 'ql/test/data/exports/intermediate_part' +POSTHOOK: type: IMPORT +#### A masked pattern was here #### +POSTHOOK: Output: default@import1_mm +POSTHOOK: Output: default@import1_mm@p=455 +POSTHOOK: Output: default@import1_mm@p=456 +POSTHOOK: Output: default@import1_mm@p=457 +PREHOOK: query: select * from import1_mm order by key, p +PREHOOK: type: QUERY +PREHOOK: Input: default@import1_mm +PREHOOK: Input: default@import1_mm@p=455 +PREHOOK: Input: default@import1_mm@p=456 +PREHOOK: Input: default@import1_mm@p=457 +#### A masked pattern was here #### +POSTHOOK: query: select * from import1_mm order by key, p +POSTHOOK: type: QUERY +POSTHOOK: Input: default@import1_mm +POSTHOOK: Input: default@import1_mm@p=455 +POSTHOOK: Input: default@import1_mm@p=456 +POSTHOOK: Input: default@import1_mm@p=457 +#### A masked pattern was here #### +0 456 +10 456 +97 455 +98 455 +100 457 +103 457 +PREHOOK: query: drop table import1_mm +PREHOOK: type: DROPTABLE +PREHOOK: Input: default@import1_mm +PREHOOK: Output: default@import1_mm +POSTHOOK: query: drop table import1_mm +POSTHOOK: type: DROPTABLE +POSTHOOK: Input: default@import1_mm +POSTHOOK: Output: default@import1_mm +PREHOOK: query: drop table import4_mm +PREHOOK: type: DROPTABLE +POSTHOOK: query: drop table import4_mm +POSTHOOK: type: DROPTABLE +PREHOOK: query: create table import4_mm(key int, p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@import4_mm +POSTHOOK: query: create table import4_mm(key int, p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@import4_mm +PREHOOK: query: import table import4_mm from 'ql/test/data/exports/intermmediate_nonpart' +PREHOOK: type: IMPORT +#### A masked pattern was here #### +PREHOOK: Output: default@import4_mm +POSTHOOK: query: import table import4_mm from 'ql/test/data/exports/intermmediate_nonpart' +POSTHOOK: type: IMPORT +#### A masked pattern was here #### +POSTHOOK: Output: default@import4_mm +PREHOOK: query: select * from import4_mm order by key, p +PREHOOK: type: QUERY +PREHOOK: Input: default@import4_mm +#### A masked pattern was here #### +POSTHOOK: query: select * from import4_mm order by key, p +POSTHOOK: type: QUERY +POSTHOOK: Input: default@import4_mm +#### A masked pattern was here #### +0 456 +10 456 +97 455 +98 455 +100 457 +103 457 +PREHOOK: query: drop table import4_mm +PREHOOK: type: DROPTABLE +PREHOOK: Input: default@import4_mm +PREHOOK: Output: default@import4_mm +POSTHOOK: query: drop table import4_mm +POSTHOOK: type: DROPTABLE +POSTHOOK: Input: default@import4_mm +POSTHOOK: Output: default@import4_mm +PREHOOK: query: drop table import5_mm +PREHOOK: type: DROPTABLE +POSTHOOK: query: drop table import5_mm +POSTHOOK: type: DROPTABLE +PREHOOK: query: create table import5_mm(key int) partitioned by (p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@import5_mm +POSTHOOK: query: create table import5_mm(key int) partitioned by (p int) tblproperties("transactional"="true", "transactional_properties"="insert_only") +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@import5_mm +PREHOOK: query: import table import5_mm partition(p=455) from 'ql/test/data/exports/intermmediate_part' +PREHOOK: type: IMPORT +#### A masked pattern was here #### +PREHOOK: Output: default@import5_mm +POSTHOOK: query: import table import5_mm partition(p=455) from 'ql/test/data/exports/intermmediate_part' +POSTHOOK: type: IMPORT +#### A masked pattern was here #### +POSTHOOK: Output: default@import5_mm +POSTHOOK: Output: default@import5_mm@p=455 +PREHOOK: query: select * from import5_mm order by key, p +PREHOOK: type: QUERY +PREHOOK: Input: default@import5_mm +PREHOOK: Input: default@import5_mm@p=455 +#### A masked pattern was here #### +POSTHOOK: query: select * from import5_mm order by key, p +POSTHOOK: type: QUERY +POSTHOOK: Input: default@import5_mm +POSTHOOK: Input: default@import5_mm@p=455 +#### A masked pattern was here #### +97 455 +98 455 +PREHOOK: query: drop table import5_mm +PREHOOK: type: DROPTABLE +PREHOOK: Input: default@import5_mm +PREHOOK: Output: default@import5_mm +POSTHOOK: query: drop table import5_mm +POSTHOOK: type: DROPTABLE +POSTHOOK: Input: default@import5_mm +POSTHOOK: Output: default@import5_mm +PREHOOK: query: drop table import6_mm +PREHOOK: type: DROPTABLE +POSTHOOK: query: drop table import6_mm +POSTHOOK: type: DROPTABLE +PREHOOK: query: create table import6_mm(key int, p int) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@import6_mm +POSTHOOK: query: create table import6_mm(key int, p int) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@import6_mm +PREHOOK: query: import table import6_mm from 'ql/test/data/exports/intermmediate_nonpart' +PREHOOK: type: IMPORT +#### A masked pattern was here #### +PREHOOK: Output: default@import6_mm +POSTHOOK: query: import table import6_mm from 'ql/test/data/exports/intermmediate_nonpart' +POSTHOOK: type: IMPORT +#### A masked pattern was here #### +POSTHOOK: Output: default@import6_mm +PREHOOK: query: select * from import6_mm order by key, p +PREHOOK: type: QUERY +PREHOOK: Input: default@import6_mm +#### A masked pattern was here #### +POSTHOOK: query: select * from import6_mm order by key, p +POSTHOOK: type: QUERY +POSTHOOK: Input: default@import6_mm +#### A masked pattern was here #### +0 456 +10 456 +97 455 +98 455 +100 457 +103 457 +PREHOOK: query: drop table import6_mm +PREHOOK: type: DROPTABLE +PREHOOK: Input: default@import6_mm +PREHOOK: Output: default@import6_mm +POSTHOOK: query: drop table import6_mm +POSTHOOK: type: DROPTABLE +POSTHOOK: Input: default@import6_mm +POSTHOOK: Output: default@import6_mm +PREHOOK: query: drop table import7_mm +PREHOOK: type: DROPTABLE +POSTHOOK: query: drop table import7_mm +POSTHOOK: type: DROPTABLE +PREHOOK: query: create table import7_mm(key int) partitioned by (p int) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@import7_mm +POSTHOOK: query: create table import7_mm(key int) partitioned by (p int) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@import7_mm +PREHOOK: query: import table import7_mm from 'ql/test/data/exports/intermmediate_part' +PREHOOK: type: IMPORT +#### A masked pattern was here #### +PREHOOK: Output: default@import7_mm +POSTHOOK: query: import table import7_mm from 'ql/test/data/exports/intermmediate_part' +POSTHOOK: type: IMPORT +#### A masked pattern was here #### +POSTHOOK: Output: default@import7_mm +POSTHOOK: Output: default@import7_mm@p=455 +POSTHOOK: Output: default@import7_mm@p=456 +POSTHOOK: Output: default@import7_mm@p=457 +PREHOOK: query: select * from import7_mm order by key, p +PREHOOK: type: QUERY +PREHOOK: Input: default@import7_mm +PREHOOK: Input: default@import7_mm@p=455 +PREHOOK: Input: default@import7_mm@p=456 +PREHOOK: Input: default@import7_mm@p=457 +#### A masked pattern was here #### +POSTHOOK: query: select * from import7_mm order by key, p +POSTHOOK: type: QUERY +POSTHOOK: Input: default@import7_mm +POSTHOOK: Input: default@import7_mm@p=455 +POSTHOOK: Input: default@import7_mm@p=456 +POSTHOOK: Input: default@import7_mm@p=457 +#### A masked pattern was here #### +0 456 +10 456 +97 455 +98 455 +100 457 +103 457 +PREHOOK: query: drop table import7_mm +PREHOOK: type: DROPTABLE +PREHOOK: Input: default@import7_mm +PREHOOK: Output: default@import7_mm +POSTHOOK: query: drop table import7_mm +POSTHOOK: type: DROPTABLE +POSTHOOK: Input: default@import7_mm +POSTHOOK: Output: default@import7_mm diff --git ql/src/test/results/clientpositive/mm_insertonly_acid.q.out ql/src/test/results/clientpositive/mm_insertonly_acid.q.out deleted file mode 100644 index 22bdc93..0000000 --- ql/src/test/results/clientpositive/mm_insertonly_acid.q.out +++ /dev/null @@ -1,115 +0,0 @@ -PREHOOK: query: drop table qtr_acid -PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table qtr_acid -POSTHOOK: type: DROPTABLE -PREHOOK: query: create table qtr_acid (key int) partitioned by (p int) tblproperties ("transactional"="true", "transactional_properties"="insert_only") -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@qtr_acid -POSTHOOK: query: create table qtr_acid (key int) partitioned by (p int) tblproperties ("transactional"="true", "transactional_properties"="insert_only") -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@qtr_acid -PREHOOK: query: insert into table qtr_acid partition(p='123') select distinct key from src where key > 0 order by key asc limit 10 -PREHOOK: type: QUERY -PREHOOK: Input: default@src -PREHOOK: Output: default@qtr_acid@p=123 -POSTHOOK: query: insert into table qtr_acid partition(p='123') select distinct key from src where key > 0 order by key asc limit 10 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@src -POSTHOOK: Output: default@qtr_acid@p=123 -POSTHOOK: Lineage: qtr_acid PARTITION(p=123).key EXPRESSION [(src)src.FieldSchema(name:key, type:string, comment:default), ] -PREHOOK: query: insert into table qtr_acid partition(p='456') select distinct key from src where key > 0 order by key desc limit 10 -PREHOOK: type: QUERY -PREHOOK: Input: default@src -PREHOOK: Output: default@qtr_acid@p=456 -POSTHOOK: query: insert into table qtr_acid partition(p='456') select distinct key from src where key > 0 order by key desc limit 10 -POSTHOOK: type: QUERY -POSTHOOK: Input: default@src -POSTHOOK: Output: default@qtr_acid@p=456 -POSTHOOK: Lineage: qtr_acid PARTITION(p=456).key EXPRESSION [(src)src.FieldSchema(name:key, type:string, comment:default), ] -PREHOOK: query: explain -select * from qtr_acid order by key -PREHOOK: type: QUERY -POSTHOOK: query: explain -select * from qtr_acid order by key -POSTHOOK: type: QUERY -STAGE DEPENDENCIES: - Stage-1 is a root stage - Stage-0 depends on stages: Stage-1 - -STAGE PLANS: - Stage: Stage-1 - Map Reduce - Map Operator Tree: - TableScan - alias: qtr_acid - Statistics: Num rows: 20 Data size: 47 Basic stats: COMPLETE Column stats: NONE - Select Operator - expressions: key (type: int), p (type: int) - outputColumnNames: _col0, _col1 - Statistics: Num rows: 20 Data size: 47 Basic stats: COMPLETE Column stats: NONE - Reduce Output Operator - key expressions: _col0 (type: int) - sort order: + - Statistics: Num rows: 20 Data size: 47 Basic stats: COMPLETE Column stats: NONE - value expressions: _col1 (type: int) - Reduce Operator Tree: - Select Operator - expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int) - outputColumnNames: _col0, _col1 - Statistics: Num rows: 20 Data size: 47 Basic stats: COMPLETE Column stats: NONE - File Output Operator - compressed: false - Statistics: Num rows: 20 Data size: 47 Basic stats: COMPLETE Column stats: NONE - table: - input format: org.apache.hadoop.mapred.SequenceFileInputFormat - output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat - serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe - - Stage: Stage-0 - Fetch Operator - limit: -1 - Processor Tree: - ListSink - -PREHOOK: query: select * from qtr_acid order by key -PREHOOK: type: QUERY -PREHOOK: Input: default@qtr_acid -PREHOOK: Input: default@qtr_acid@p=123 -PREHOOK: Input: default@qtr_acid@p=456 -#### A masked pattern was here #### -POSTHOOK: query: select * from qtr_acid order by key -POSTHOOK: type: QUERY -POSTHOOK: Input: default@qtr_acid -POSTHOOK: Input: default@qtr_acid@p=123 -POSTHOOK: Input: default@qtr_acid@p=456 -#### A masked pattern was here #### -9 456 -10 123 -11 123 -85 456 -86 456 -87 456 -90 456 -92 456 -95 456 -96 456 -97 456 -98 456 -100 123 -103 123 -104 123 -105 123 -111 123 -113 123 -114 123 -116 123 -PREHOOK: query: drop table qtr_acid -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@qtr_acid -PREHOOK: Output: default@qtr_acid -POSTHOOK: query: drop table qtr_acid -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@qtr_acid -POSTHOOK: Output: default@qtr_acid