diff --git a/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java b/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java index a0b163d19c..dea92cd74f 100644 --- a/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java +++ b/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java @@ -1137,6 +1137,12 @@ private static void populateLlapDaemonVarsSet(Set llapDaemonVarsSetLocal // materialized views HIVE_MATERIALIZED_VIEW_ENABLE_AUTO_REWRITING("hive.materializedview.rewriting", false, "Whether to try to rewrite queries using the materialized views enabled for rewriting"), + HIVE_MATERIALIZED_VIEW_REWRITING_TIME_WINDOW("hive.materializedview.rewriting.time.window", 0, + "Time window, specified in seconds, after which outdated materialized views become invalid for automatic query rewriting.\n" + + "For instance, if a materialized view is created and afterwards one of its source tables is changed at " + + "moment in time t0, the materialized view will not be considered for rewriting anymore after t0 plus " + + "the value assigned to this property. Default value 0 means that the materialized view cannot be " + + "outdated to be used automatically in query rewriting."), HIVE_MATERIALIZED_VIEW_FILE_FORMAT("hive.materializedview.fileformat", "ORC", new StringSet("none", "TextFile", "SequenceFile", "RCfile", "ORC"), "Default file format for CREATE MATERIALIZED VIEW statement"), diff --git a/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java b/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java index 62c9172ef5..06e91d14c7 100644 --- a/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java +++ b/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java @@ -266,6 +266,12 @@ public void alterTable(String dbName, String name, Table newTable) return objectStore.getTables(dbName, pattern, tableType); } + @Override + public List getMaterializedViewsForRewriting(String dbName) + throws MetaException, NoSuchObjectException { + return objectStore.getMaterializedViewsForRewriting(dbName); + } + @Override public List getTableMeta(String dbNames, String tableNames, List tableTypes) throws MetaException { diff --git a/metastore/scripts/upgrade/derby/047-HIVE-14498.derby.sql b/metastore/scripts/upgrade/derby/047-HIVE-14498.derby.sql new file mode 100644 index 0000000000..a630480a4c --- /dev/null +++ b/metastore/scripts/upgrade/derby/047-HIVE-14498.derby.sql @@ -0,0 +1,8 @@ +-- create mv_creation_metadata table +CREATE TABLE "APP"."MV_CREATION_METADATA" ("TBL_ID" BIGINT NOT NULL, "TBL_NAME" VARCHAR(256) NOT NULL, "LAST_TRANSACTION_INFO" LONG VARCHAR NOT NULL); +ALTER TABLE "APP"."MV_CREATION_METADATA" ADD CONSTRAINT "MV_CREATION_METADATA_FK" FOREIGN KEY ("TBL_ID") REFERENCES "APP"."TBLS" ("TBL_ID") ON DELETE NO ACTION ON UPDATE NO ACTION; + +-- modify completed_txn_components table +ALTER TABLE "APP"."COMPLETED_TXN_COMPONENTS" ADD COLUMN "CTC_ID" bigint GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1) NOT NULL; +ALTER TABLE "APP"."COMPLETED_TXN_COMPONENTS" ADD COLUMN "CTC_TIMESTAMP" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL; +CREATE INDEX "APP"."CTC_ID_INDEX" ON "APP"."COMPLETED_TXN_COMPONENTS" ("CTC_ID"); diff --git a/metastore/scripts/upgrade/derby/hive-schema-3.0.0.derby.sql b/metastore/scripts/upgrade/derby/hive-schema-3.0.0.derby.sql index f93d0d1d12..edfd6cbe2e 100644 --- a/metastore/scripts/upgrade/derby/hive-schema-3.0.0.derby.sql +++ b/metastore/scripts/upgrade/derby/hive-schema-3.0.0.derby.sql @@ -120,6 +120,8 @@ CREATE TABLE "APP"."WM_POOL_TO_TRIGGER" (POOL_ID BIGINT NOT NULL, TRIGGER_ID BI CREATE TABLE "APP"."WM_MAPPING" (MAPPING_ID BIGINT NOT NULL, RP_ID BIGINT NOT NULL, ENTITY_TYPE VARCHAR(10) NOT NULL, ENTITY_NAME VARCHAR(128) NOT NULL, POOL_ID BIGINT, ORDERING INTEGER); +CREATE TABLE "APP"."MV_CREATION_METADATA" ("TBL_ID" BIGINT NOT NULL, "TBL_NAME" VARCHAR(256) NOT NULL, "LAST_TRANSACTION_INFO" LONG VARCHAR NOT NULL); + -- ---------------------------------------------- -- DML Statements -- ---------------------------------------------- @@ -372,6 +374,8 @@ ALTER TABLE "APP"."WM_MAPPING" ADD CONSTRAINT "WM_MAPPING_FK1" FOREIGN KEY ("RP_ ALTER TABLE "APP"."WM_MAPPING" ADD CONSTRAINT "WM_MAPPING_FK2" FOREIGN KEY ("POOL_ID") REFERENCES "APP"."WM_POOL" ("POOL_ID") ON DELETE NO ACTION ON UPDATE NO ACTION; +ALTER TABLE "APP"."MV_CREATION_METADATA" ADD CONSTRAINT "MV_CREATION_METADATA_FK" FOREIGN KEY ("TBL_ID") REFERENCES "APP"."TBLS" ("TBL_ID") ON DELETE NO ACTION ON UPDATE NO ACTION; + -- ---------------------------------------------- -- DDL Statements for checks -- ---------------------------------------------- diff --git a/metastore/scripts/upgrade/derby/hive-txn-schema-3.0.0.derby.sql b/metastore/scripts/upgrade/derby/hive-txn-schema-3.0.0.derby.sql index 52713df30c..d72b06cb58 100644 --- a/metastore/scripts/upgrade/derby/hive-txn-schema-3.0.0.derby.sql +++ b/metastore/scripts/upgrade/derby/hive-txn-schema-3.0.0.derby.sql @@ -42,9 +42,14 @@ CREATE TABLE COMPLETED_TXN_COMPONENTS ( CTC_TXNID bigint, CTC_DATABASE varchar(128) NOT NULL, CTC_TABLE varchar(256), - CTC_PARTITION varchar(767) + CTC_PARTITION varchar(767), + CTC_ID bigint GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1) NOT NULL, + CTC_TIMESTAMP timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL ); +CREATE INDEX COMPLETED_TXN_COMPONENTS_IDX ON COMPLETED_TXN_COMPONENTS (CTC_ID); +CREATE INDEX COMPLETED_TXN_COMPONENTS_IDX2 ON COMPLETED_TXN_COMPONENTS (CTC_DATABASE, CTC_TABLE, CTC_PARTITION); + CREATE TABLE NEXT_TXN_ID ( NTXN_NEXT bigint NOT NULL ); diff --git a/metastore/scripts/upgrade/derby/upgrade-2.3.0-to-3.0.0.derby.sql b/metastore/scripts/upgrade/derby/upgrade-2.3.0-to-3.0.0.derby.sql index 1f2647dfbf..5c273d5267 100644 --- a/metastore/scripts/upgrade/derby/upgrade-2.3.0-to-3.0.0.derby.sql +++ b/metastore/scripts/upgrade/derby/upgrade-2.3.0-to-3.0.0.derby.sql @@ -5,5 +5,6 @@ RUN '043-HIVE-16922.derby.sql'; RUN '044-HIVE-16997.derby.sql'; RUN '045-HIVE-16886.derby.sql'; RUN '046-HIVE-17566.derby.sql'; +RUN '047-HIVE-14498.derby.sql'; UPDATE "APP".VERSION SET SCHEMA_VERSION='3.0.0', VERSION_COMMENT='Hive release version 3.0.0' where VER_ID=1; diff --git a/metastore/scripts/upgrade/hive/hive-schema-3.0.0.hive.sql b/metastore/scripts/upgrade/hive/hive-schema-3.0.0.hive.sql index 7589101758..fe7e77637c 100644 --- a/metastore/scripts/upgrade/hive/hive-schema-3.0.0.hive.sql +++ b/metastore/scripts/upgrade/hive/hive-schema-3.0.0.hive.sql @@ -1057,6 +1057,23 @@ JOIN WM_RESOURCEPLAN ON WM_MAPPING.RP_ID = WM_RESOURCEPLAN.RP_ID LEFT OUTER JOIN WM_POOL ON WM_POOL.POOL_ID = WM_MAPPING.POOL_ID" ); +CREATE TABLE IF NOT EXISTS `MV_CREATION_METADATA` ( + TBL_ID bigint, + TBL_NAME string, + LAST_TRANSACTION_INFO string +) +STORED BY 'org.apache.hive.storage.jdbc.JdbcStorageHandler' +TBLPROPERTIES ( +"hive.sql.database.type" = "METASTORE", +"hive.sql.query" = +"SELECT + \"TBL_ID\", + \"TBL_NAME\", + \"LAST_TRANSACTION_INFO\" +FROM + \"MV_CREATION_METADATA\"" +); + DROP DATABASE IF EXISTS INFORMATION_SCHEMA; CREATE DATABASE INFORMATION_SCHEMA; diff --git a/metastore/scripts/upgrade/mssql/032-HIVE-14498.mssql.sql b/metastore/scripts/upgrade/mssql/032-HIVE-14498.mssql.sql new file mode 100644 index 0000000000..5a9d4d822c --- /dev/null +++ b/metastore/scripts/upgrade/mssql/032-HIVE-14498.mssql.sql @@ -0,0 +1,12 @@ +CREATE TABLE MV_CREATION_METADATA +( + TBL_ID bigint NOT NULL, + TBL_NAME nvarchar(256) NOT NULL, + LAST_TRANSACTION_INFO text NOT NULL +); +ALTER TABLE MV_CREATION_METADATA ADD CONSTRAINT MV_CREATION_METADATA_FK FOREIGN KEY (TBL_ID) REFERENCES TBLS (TBL_ID); + +ALTER TABLE COMPLETED_TXN_COMPONENTS ADD COLUMN CTC_ID bigint GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1) NOT NULL; +ALTER TABLE COMPLETED_TXN_COMPONENTS ADD COLUMN CTC_TIMESTAMP timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL; +CREATE INDEX COMPLETED_TXN_COMPONENTS_IDX ON COMPLETED_TXN_COMPONENTS (CTC_ID); +CREATE INDEX COMPLETED_TXN_COMPONENTS_IDX2 ON COMPLETED_TXN_COMPONENTS (CTC_DATABASE, CTC_TABLE, CTC_PARTITION); diff --git a/metastore/scripts/upgrade/mssql/hive-schema-3.0.0.mssql.sql b/metastore/scripts/upgrade/mssql/hive-schema-3.0.0.mssql.sql index 26c82af74c..1459e1e53c 100644 --- a/metastore/scripts/upgrade/mssql/hive-schema-3.0.0.mssql.sql +++ b/metastore/scripts/upgrade/mssql/hive-schema-3.0.0.mssql.sql @@ -651,6 +651,15 @@ CREATE TABLE WM_MAPPING ALTER TABLE WM_MAPPING ADD CONSTRAINT WM_MAPPING_PK PRIMARY KEY (MAPPING_ID); +CREATE TABLE MV_CREATION_METADATA +( + TBL_ID bigint NOT NULL, + TBL_NAME nvarchar(256) NOT NULL, + LAST_TRANSACTION_INFO text NOT NULL +); + +ALTER TABLE MV_CREATION_METADATA ADD CONSTRAINT MV_CREATION_METADATA_FK FOREIGN KEY (TBL_ID) REFERENCES TBLS (TBL_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 a/metastore/scripts/upgrade/mssql/upgrade-2.3.0-to-3.0.0.mssql.sql b/metastore/scripts/upgrade/mssql/upgrade-2.3.0-to-3.0.0.mssql.sql index 864a5e5bd5..44463ac44e 100644 --- a/metastore/scripts/upgrade/mssql/upgrade-2.3.0-to-3.0.0.mssql.sql +++ b/metastore/scripts/upgrade/mssql/upgrade-2.3.0-to-3.0.0.mssql.sql @@ -6,6 +6,7 @@ SELECT 'Upgrading MetaStore schema from 2.3.0 to 3.0.0' AS MESSAGE; :r 029-HIVE-16997.mssql.sql :r 030-HIVE-16886.mssql.sql :r 031-HIVE-17566.mssql.sql +:r 032-HIVE-14498.mssql.sql UPDATE VERSION SET SCHEMA_VERSION='3.0.0', VERSION_COMMENT='Hive release version 3.0.0' where VER_ID=1; SELECT 'Finished upgrading MetaStore schema from 2.3.0 to 3.0.0' AS MESSAGE; diff --git a/metastore/scripts/upgrade/mysql/047-HIVE-14498.mysql.sql b/metastore/scripts/upgrade/mysql/047-HIVE-14498.mysql.sql new file mode 100644 index 0000000000..b292908337 --- /dev/null +++ b/metastore/scripts/upgrade/mysql/047-HIVE-14498.mysql.sql @@ -0,0 +1,11 @@ +CREATE TABLE IF NOT EXISTS `MV_CREATION_METADATA` ( + `TBL_ID` bigint(20) NOT NULL, + `TBL_NAME` varchar(256) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `LAST_TRANSACTION_INFO` mediumtext NOT NULL, + CONSTRAINT `MV_CREATION_METADATA_FK` FOREIGN KEY (`TBL_ID`) REFERENCES `TBLS` (`TBL_ID`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +ALTER TABLE COMPLETED_TXN_COMPONENTS ADD CTC_ID bigint GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1) NOT NULL; +ALTER TABLE COMPLETED_TXN_COMPONENTS ADD CTC_TIMESTAMP timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL; +CREATE INDEX COMPLETED_TXN_COMPONENTS_IDX ON COMPLETED_TXN_COMPONENTS (CTC_ID) USING BTREE; +CREATE INDEX COMPLETED_TXN_COMPONENTS_IDX2 ON COMPLETED_TXN_COMPONENTS (CTC_DATABASE, CTC_TABLE, CTC_PARTITION) USING BTREE; diff --git a/metastore/scripts/upgrade/mysql/hive-schema-3.0.0.mysql.sql b/metastore/scripts/upgrade/mysql/hive-schema-3.0.0.mysql.sql index 915af8bf4b..cc91faaa33 100644 --- a/metastore/scripts/upgrade/mysql/hive-schema-3.0.0.mysql.sql +++ b/metastore/scripts/upgrade/mysql/hive-schema-3.0.0.mysql.sql @@ -909,6 +909,13 @@ CREATE TABLE IF NOT EXISTS WM_MAPPING CONSTRAINT `WM_MAPPING_FK2` FOREIGN KEY (`POOL_ID`) REFERENCES `WM_POOL` (`POOL_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; +CREATE TABLE IF NOT EXISTS `MV_CREATION_METADATA` ( + `TBL_ID` bigint(20) NOT NULL, + `TBL_NAME` varchar(256) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `LAST_TRANSACTION_INFO` mediumtext NOT NULL, + CONSTRAINT `MV_CREATION_METADATA_FK` FOREIGN KEY (`TBL_ID`) REFERENCES `TBLS` (`TBL_ID`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + -- ---------------------------- -- Transaction and Lock Tables -- ---------------------------- diff --git a/metastore/scripts/upgrade/mysql/hive-txn-schema-3.0.0.mysql.sql b/metastore/scripts/upgrade/mysql/hive-txn-schema-3.0.0.mysql.sql index 1df32c4b35..b8e5ee379f 100644 --- a/metastore/scripts/upgrade/mysql/hive-txn-schema-3.0.0.mysql.sql +++ b/metastore/scripts/upgrade/mysql/hive-txn-schema-3.0.0.mysql.sql @@ -44,9 +44,14 @@ CREATE TABLE COMPLETED_TXN_COMPONENTS ( CTC_TXNID bigint NOT NULL, CTC_DATABASE varchar(128) NOT NULL, CTC_TABLE varchar(256), - CTC_PARTITION varchar(767) + CTC_PARTITION varchar(767), + CTC_ID bigint GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1) NOT NULL, + CTC_TIMESTAMP timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; +CREATE INDEX COMPLETED_TXN_COMPONENTS_IDX ON COMPLETED_TXN_COMPONENTS (CTC_ID) USING BTREE; +CREATE INDEX COMPLETED_TXN_COMPONENTS_IDX2 ON COMPLETED_TXN_COMPONENTS (CTC_DATABASE, CTC_TABLE, CTC_PARTITION) USING BTREE; + CREATE TABLE NEXT_TXN_ID ( NTXN_NEXT bigint NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; diff --git a/metastore/scripts/upgrade/mysql/upgrade-2.3.0-to-3.0.0.mysql.sql b/metastore/scripts/upgrade/mysql/upgrade-2.3.0-to-3.0.0.mysql.sql index caa059d893..ac206ea16c 100644 --- a/metastore/scripts/upgrade/mysql/upgrade-2.3.0-to-3.0.0.mysql.sql +++ b/metastore/scripts/upgrade/mysql/upgrade-2.3.0-to-3.0.0.mysql.sql @@ -6,7 +6,7 @@ SOURCE 043-HIVE-16922.mysql.sql; SOURCE 044-HIVE-16997.mysql.sql; SOURCE 045-HIVE-16886.mysql.sql; SOURCE 046-HIVE-17566.mysql.sql; +SOURCE 047-HIVE-14498.mysql.sql; UPDATE VERSION SET SCHEMA_VERSION='3.0.0', VERSION_COMMENT='Hive release version 3.0.0' where VER_ID=1; SELECT 'Finished upgrading MetaStore schema from 2.3.0 to 3.0.0' AS ' '; - diff --git a/metastore/scripts/upgrade/oracle/047-HIVE-14498.oracle.sql b/metastore/scripts/upgrade/oracle/047-HIVE-14498.oracle.sql new file mode 100644 index 0000000000..b98968edf8 --- /dev/null +++ b/metastore/scripts/upgrade/oracle/047-HIVE-14498.oracle.sql @@ -0,0 +1,12 @@ +CREATE TABLE MV_CREATION_METADATA +( + TBL_ID BIGINT NOT NULL, + TBL_NAME nvarchar(256) NOT NULL, + LAST_TRANSACTION_INFO CLOB NOT NULL +); +ALTER TABLE MV_CREATION_METADATA ADD CONSTRAINT MV_CREATION_METADATA_FK FOREIGN KEY (TBL_ID) REFERENCES TBLS (TBL_ID); + +ALTER TABLE COMPLETED_TXN_COMPONENTS ADD (CTC_ID bigint GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1) NOT NULL); +ALTER TABLE COMPLETED_TXN_COMPONENTS ADD (CTC_TIMESTAMP timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL); +CREATE INDEX COMPLETED_TXN_COMPONENTS_INDEX ON COMPLETED_TXN_COMPONENTS (CTC_ID); +CREATE INDEX COMPLETED_TXN_COMPONENTS_INDEX2 ON COMPLETED_TXN_COMPONENTS (CTC_DATABASE, CTC_TABLE, CTC_PARTITION); diff --git a/metastore/scripts/upgrade/oracle/hive-schema-3.0.0.oracle.sql b/metastore/scripts/upgrade/oracle/hive-schema-3.0.0.oracle.sql index 65c72af873..0aeab57277 100644 --- a/metastore/scripts/upgrade/oracle/hive-schema-3.0.0.oracle.sql +++ b/metastore/scripts/upgrade/oracle/hive-schema-3.0.0.oracle.sql @@ -632,6 +632,15 @@ CREATE TABLE WM_MAPPING ALTER TABLE WM_MAPPING ADD CONSTRAINT WM_MAPPING_PK PRIMARY KEY (MAPPING_ID); +CREATE TABLE MV_CREATION_METADATA +( + TBL_ID BIGINT NOT NULL, + TBL_NAME nvarchar(256) NOT NULL, + LAST_TRANSACTION_INFO CLOB NOT NULL +); + +ALTER TABLE MV_CREATION_METADATA ADD CONSTRAINT MV_CREATION_METADATA_FK FOREIGN KEY (TBL_ID) REFERENCES TBLS (TBL_ID); + -- Constraints for table PART_COL_PRIVS for class(es) [org.apache.hadoop.hive.metastore.model.MPartitionColumnPrivilege] ALTER TABLE PART_COL_PRIVS ADD CONSTRAINT PART_COL_PRIVS_FK1 FOREIGN KEY (PART_ID) REFERENCES PARTITIONS (PART_ID) INITIALLY DEFERRED ; diff --git a/metastore/scripts/upgrade/oracle/hive-txn-schema-3.0.0.oracle.sql b/metastore/scripts/upgrade/oracle/hive-txn-schema-3.0.0.oracle.sql index 12c24a5863..5411bc4710 100644 --- a/metastore/scripts/upgrade/oracle/hive-txn-schema-3.0.0.oracle.sql +++ b/metastore/scripts/upgrade/oracle/hive-txn-schema-3.0.0.oracle.sql @@ -43,9 +43,14 @@ CREATE TABLE COMPLETED_TXN_COMPONENTS ( CTC_TXNID NUMBER(19), CTC_DATABASE varchar(128) NOT NULL, CTC_TABLE varchar(128), - CTC_PARTITION varchar(767) + CTC_PARTITION varchar(767), + CTC_ID bigint GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1) NOT NULL, + CTC_TIMESTAMP timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL ) ROWDEPENDENCIES; +CREATE INDEX COMPLETED_TXN_COMPONENTS_INDEX ON COMPLETED_TXN_COMPONENTS (CTC_ID); +CREATE INDEX COMPLETED_TXN_COMPONENTS_INDEX2 ON COMPLETED_TXN_COMPONENTS (CTC_DATABASE, CTC_TABLE, CTC_PARTITION); + CREATE TABLE NEXT_TXN_ID ( NTXN_NEXT NUMBER(19) NOT NULL ); diff --git a/metastore/scripts/upgrade/oracle/upgrade-2.3.0-to-3.0.0.oracle.sql b/metastore/scripts/upgrade/oracle/upgrade-2.3.0-to-3.0.0.oracle.sql index 33174c8a9a..3c7d77afc0 100644 --- a/metastore/scripts/upgrade/oracle/upgrade-2.3.0-to-3.0.0.oracle.sql +++ b/metastore/scripts/upgrade/oracle/upgrade-2.3.0-to-3.0.0.oracle.sql @@ -6,6 +6,7 @@ SELECT 'Upgrading MetaStore schema from 2.3.0 to 3.0.0' AS Status from dual; @044-HIVE-16997.oracle.sql; @045-HIVE-16886.oracle.sql; @046-HIVE-17566.oracle.sql; +@047-HIVE-14498.oracle.sql; UPDATE VERSION SET SCHEMA_VERSION='3.0.0', VERSION_COMMENT='Hive release version 3.0.0' where VER_ID=1; SELECT 'Finished upgrading MetaStore schema from 2.3.0 to 3.0.0' AS Status from dual; diff --git a/metastore/scripts/upgrade/postgres/046-HIVE-14498.postgres.sql b/metastore/scripts/upgrade/postgres/046-HIVE-14498.postgres.sql new file mode 100644 index 0000000000..fbfbcc434c --- /dev/null +++ b/metastore/scripts/upgrade/postgres/046-HIVE-14498.postgres.sql @@ -0,0 +1,12 @@ +CREATE TABLE "MV_CREATION_METADATA" ( + "TBL_ID" BIGINT NOT NULL, + "TBL_NAME" character varying(256) NOT NULL, + "LAST_TRANSACTION_INFO" TEXT NOT NULL +); +ALTER TABLE ONLY "MV_CREATION_METADATA" + ADD CONSTRAINT "MV_CREATION_METADATA_FK" FOREIGN KEY ("TBL_ID") REFERENCES "TBLS"("TBL_ID") DEFERRABLE; + +ALTER TABLE "COMPLETED_TXN_COMPONENTS" ADD COLUMN "CTC_ID" GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1) NOT NULL; +ALTER TABLE "COMPLETED_TXN_COMPONENTS" ADD COLUMN "CTC_TIMESTAMP" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL; +CREATE INDEX "COMPLETED_TXN_COMPONENTS_INDEX" ON "COMPLETED_TXN_COMPONENTS" USING btree ("CTC_ID"); +CREATE INDEX "COMPLETED_TXN_COMPONENTS_INDEX2" ON "COMPLETED_TXN_COMPONENTS" USING btree ("CTC_DATABASE", "CTC_TABLE", "CTC_PARTITION"); diff --git a/metastore/scripts/upgrade/postgres/hive-schema-3.0.0.postgres.sql b/metastore/scripts/upgrade/postgres/hive-schema-3.0.0.postgres.sql index 415b5e0189..562bf053af 100644 --- a/metastore/scripts/upgrade/postgres/hive-schema-3.0.0.postgres.sql +++ b/metastore/scripts/upgrade/postgres/hive-schema-3.0.0.postgres.sql @@ -658,6 +658,15 @@ CREATE TABLE "WM_MAPPING" ( "ORDERING" integer ); +CREATE TABLE "MV_CREATION_METADATA" ( + "TBL_ID" BIGINT NOT NULL, + "TBL_NAME" character varying(256) NOT NULL, + "LAST_TRANSACTION_INFO" TEXT NOT NULL +); + +ALTER TABLE ONLY "MV_CREATION_METADATA" + ADD CONSTRAINT "MV_CREATION_METADATA_FK" FOREIGN KEY ("TBL_ID") REFERENCES "TBLS"("TBL_ID") DEFERRABLE; + -- -- Name: BUCKETING_COLS_pkey; Type: CONSTRAINT; Schema: public; Owner: hiveuser; Tablespace: -- diff --git a/metastore/scripts/upgrade/postgres/hive-txn-schema-3.0.0.postgres.sql b/metastore/scripts/upgrade/postgres/hive-txn-schema-3.0.0.postgres.sql index 1fa99aff5f..03b6099a08 100644 --- a/metastore/scripts/upgrade/postgres/hive-txn-schema-3.0.0.postgres.sql +++ b/metastore/scripts/upgrade/postgres/hive-txn-schema-3.0.0.postgres.sql @@ -43,9 +43,14 @@ CREATE TABLE COMPLETED_TXN_COMPONENTS ( CTC_TXNID bigint, CTC_DATABASE varchar(128) NOT NULL, CTC_TABLE varchar(256), - CTC_PARTITION varchar(767) + CTC_PARTITION varchar(767), + CTC_ID bigint GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1) NOT NULL, + CTC_TIMESTAMP timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL ); +CREATE INDEX COMPLETED_TXN_COMPONENTS_INDEX ON COMPLETED_TXN_COMPONENTS USING btree (CTC_ID); +CREATE INDEX COMPLETED_TXN_COMPONENTS_INDEX2 ON COMPLETED_TXN_COMPONENTS USING btree (CTC_DATABASE, CTC_TABLE, CTC_PARTITION); + CREATE TABLE NEXT_TXN_ID ( NTXN_NEXT bigint NOT NULL ); diff --git a/metastore/scripts/upgrade/postgres/upgrade-2.3.0-to-3.0.0.postgres.sql b/metastore/scripts/upgrade/postgres/upgrade-2.3.0-to-3.0.0.postgres.sql index 01d359e5f4..f81b48fc7e 100644 --- a/metastore/scripts/upgrade/postgres/upgrade-2.3.0-to-3.0.0.postgres.sql +++ b/metastore/scripts/upgrade/postgres/upgrade-2.3.0-to-3.0.0.postgres.sql @@ -6,6 +6,7 @@ SELECT 'Upgrading MetaStore schema from 2.3.0 to 3.0.0'; \i 043-HIVE-16997.postgres.sql; \i 044-HIVE-16886.postgres.sql; \i 045-HIVE-17566.postgres.sql; +\i 046-HIVE-14498.postgres.sql; UPDATE "VERSION" SET "SCHEMA_VERSION"='3.0.0', "VERSION_COMMENT"='Hive release version 3.0.0' where "VER_ID"=1; SELECT 'Finished upgrading MetaStore schema from 2.3.0 to 3.0.0'; diff --git a/ql/src/java/org/apache/hadoop/hive/ql/Context.java b/ql/src/java/org/apache/hadoop/hive/ql/Context.java index 6d48783d48..89b0bda28a 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/Context.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/Context.java @@ -40,8 +40,8 @@ import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.fs.permission.FsPermission; -import org.apache.hadoop.hive.common.FileUtils; import org.apache.hadoop.hive.common.BlobStorageUtils; +import org.apache.hadoop.hive.common.FileUtils; import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.ql.exec.TaskRunner; import org.apache.hadoop.hive.ql.exec.Utilities; @@ -141,6 +141,9 @@ // Identify whether the query involves an UPDATE, DELETE or MERGE private boolean isUpdateDeleteMerge; + // Whether the analyzer has been instantiated to read and load materialized view plans + private boolean isLoadingMaterializedView; + /** * This determines the prefix of the * {@link org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.Phase1Ctx#dest} @@ -1027,6 +1030,15 @@ public boolean getIsUpdateDeleteMerge() { public void setIsUpdateDeleteMerge(boolean isUpdate) { this.isUpdateDeleteMerge = isUpdate; } + + public boolean isLoadingMaterializedView() { + return isLoadingMaterializedView; + } + + public void setIsLoadingMaterializedView(boolean isLoadingMaterializedView) { + this.isLoadingMaterializedView = isLoadingMaterializedView; + } + public String getExecutionId() { return executionId; } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java index 55ef8de9a5..4e4642b5c2 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java @@ -21,13 +21,6 @@ import static org.apache.commons.lang.StringUtils.join; import static org.apache.hadoop.hive.metastore.api.hive_metastoreConstants.META_TABLE_STORAGE; -import java.util.concurrent.ExecutionException; - -import com.google.common.annotations.VisibleForTesting; -import com.google.common.collect.Iterables; -import com.google.common.collect.Lists; -import com.google.common.util.concurrent.ListenableFuture; - import java.io.BufferedWriter; import java.io.DataOutputStream; import java.io.FileNotFoundException; @@ -55,6 +48,7 @@ import java.util.SortedSet; import java.util.TreeMap; import java.util.TreeSet; +import java.util.concurrent.ExecutionException; import org.apache.commons.lang.StringUtils; import org.apache.hadoop.fs.FSDataOutputStream; @@ -65,6 +59,7 @@ 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.ValidReadTxnList; import org.apache.hadoop.hive.common.ValidTxnList; import org.apache.hadoop.hive.common.type.HiveDecimal; import org.apache.hadoop.hive.conf.Constants; @@ -79,6 +74,7 @@ import org.apache.hadoop.hive.metastore.Warehouse; import org.apache.hadoop.hive.metastore.api.AggrStats; import org.apache.hadoop.hive.metastore.api.AlreadyExistsException; +import org.apache.hadoop.hive.metastore.api.BasicTxnInfo; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsData; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; import org.apache.hadoop.hive.metastore.api.CompactionResponse; @@ -184,6 +180,8 @@ import org.apache.hadoop.hive.ql.plan.CreateDatabaseDesc; import org.apache.hadoop.hive.ql.plan.CreateIndexDesc; import org.apache.hadoop.hive.ql.plan.CreateOrAlterWMMappingDesc; +import org.apache.hadoop.hive.ql.plan.CreateOrAlterWMPoolDesc; +import org.apache.hadoop.hive.ql.plan.CreateOrDropTriggerToPoolMappingDesc; import org.apache.hadoop.hive.ql.plan.CreateResourcePlanDesc; import org.apache.hadoop.hive.ql.plan.CreateTableDesc; import org.apache.hadoop.hive.ql.plan.CreateTableLikeDesc; @@ -241,8 +239,6 @@ import org.apache.hadoop.hive.ql.plan.TruncateTableDesc; import org.apache.hadoop.hive.ql.plan.UnlockDatabaseDesc; import org.apache.hadoop.hive.ql.plan.UnlockTableDesc; -import org.apache.hadoop.hive.ql.plan.CreateOrAlterWMPoolDesc; -import org.apache.hadoop.hive.ql.plan.CreateOrDropTriggerToPoolMappingDesc; import org.apache.hadoop.hive.ql.plan.api.StageType; import org.apache.hadoop.hive.ql.security.authorization.AuthorizationUtils; import org.apache.hadoop.hive.ql.security.authorization.DefaultHiveAuthorizationTranslator; @@ -286,6 +282,11 @@ import org.slf4j.LoggerFactory; import org.stringtemplate.v4.ST; +import com.google.common.annotations.VisibleForTesting; +import com.google.common.collect.Iterables; +import com.google.common.collect.Lists; +import com.google.common.util.concurrent.ListenableFuture; + /** * DDLTask implementation. * @@ -1374,11 +1375,8 @@ private int alterMaterializedView(Hive db, AlterMaterializedViewDesc alterMVDesc throw new AssertionError("Unsupported alter materialized view type! : " + alterMVDesc.getOp()); } - try { - db.alterTable(mv, environmentContext); - } catch (InvalidOperationException e) { - throw new HiveException(e, ErrorMsg.GENERIC_ERROR, "Unable to alter " + mv.getFullyQualifiedName()); - } + db.alterTable(mv, environmentContext); + return 0; } @@ -1528,11 +1526,7 @@ private int alterTableAlterPart(Hive db, AlterTableAlterPartDesc alterPartitionD tbl.getTTable().setPartitionKeys(newPartitionKeys); - try { - db.alterTable(tbl, null); - } catch (InvalidOperationException e) { - throw new HiveException(e, ErrorMsg.GENERIC_ERROR, "Unable to alter " + tbl.getFullyQualifiedName()); - } + db.alterTable(tbl, null); work.getInputs().add(new ReadEntity(tbl)); // We've already locked the table as the input, don't relock it as the output. @@ -1558,11 +1552,7 @@ private int touch(Hive db, AlterTableSimpleDesc touchDesc) environmentContext.putToProperties(StatsSetupConst.DO_NOT_UPDATE_STATS, StatsSetupConst.TRUE); if (touchDesc.getPartSpec() == null) { - try { - db.alterTable(tbl, environmentContext); - } catch (InvalidOperationException e) { - throw new HiveException("Uable to update table"); - } + db.alterTable(tbl, environmentContext); work.getInputs().add(new ReadEntity(tbl)); addIfAbsentByName(new WriteEntity(tbl, WriteEntity.WriteType.DDL_NO_LOCK)); } else { @@ -4889,11 +4879,7 @@ private int createTable(Hive db, CreateTableDesc crtTbl) throws HiveException { // create the table if (crtTbl.getReplaceMode()) { // replace-mode creates are really alters using CreateTableDesc. - try { - db.alterTable(tbl, null); - } catch (InvalidOperationException e) { - throw new HiveException("Unable to alter table. " + e.getMessage(), e); - } + db.alterTable(tbl, null); } else { if ((foreignKeys != null && foreignKeys.size() > 0 ) || (primaryKeys != null && primaryKeys.size() > 0) || @@ -5100,6 +5086,12 @@ private int createView(Hive db, CreateViewDesc crtView) throws HiveException { } if (crtView.isMaterialized()) { + // We need to update the status of the creation signature + String txnString = conf.get(ValidTxnList.VALID_TXNS_KEY); + oldview.getTTable().setCreationMetadata( + generateCreationMetadata(db, crtView.getTablesUsed(), + txnString == null ? null : new ValidReadTxnList(txnString))); + db.alterTable(crtView.getViewName(), oldview, null); // This is a replace/rebuild, so we need an exclusive lock addIfAbsentByName(new WriteEntity(oldview, WriteEntity.WriteType.DDL_EXCLUSIVE)); } else { @@ -5122,16 +5114,19 @@ private int createView(Hive db, CreateViewDesc crtView) throws HiveException { oldview.setOutputFormatClass(crtView.getOutputFormat()); } oldview.checkValidity(null); - try { - db.alterTable(crtView.getViewName(), oldview, null); - } catch (InvalidOperationException e) { - throw new HiveException(e); - } + db.alterTable(crtView.getViewName(), oldview, null); addIfAbsentByName(new WriteEntity(oldview, WriteEntity.WriteType.DDL_NO_LOCK)); } } else { // We create new view Table tbl = crtView.toTable(conf); + // We set the signature for the view if it is a materialized view + if (tbl.isMaterializedView()) { + String txnString = conf.get(ValidTxnList.VALID_TXNS_KEY); + tbl.getTTable().setCreationMetadata( + generateCreationMetadata(db, crtView.getTablesUsed(), + txnString == null ? null : new ValidReadTxnList(txnString))); + } db.createTable(tbl, crtView.getIfNotExists()); addIfAbsentByName(new WriteEntity(tbl, WriteEntity.WriteType.DDL_NO_LOCK)); @@ -5142,6 +5137,27 @@ private int createView(Hive db, CreateViewDesc crtView) throws HiveException { return 0; } + private Map generateCreationMetadata( + Hive db, List tablesUsed, ValidReadTxnList txnList) + throws SemanticException { + Map signature = new HashMap<>(); + try { + for (String fullyQualifiedName : tablesUsed) { + if (txnList == null) { + signature.put(fullyQualifiedName, null); + } else { + // Add to creation metadata + String[] names = fullyQualifiedName.split("\\."); + signature.put(fullyQualifiedName, + db.getMSC().getLastCompletedTransactionForTable(names[0], names[1], txnList)); + } + } + } catch (Exception ex) { + throw new SemanticException(ex); + } + return signature; + } + private int truncateTable(Hive db, TruncateTableDesc truncateTableDesc) throws HiveException { if (truncateTableDesc.getColumnIndexes() != null) { diff --git a/ql/src/java/org/apache/hadoop/hive/ql/hooks/MaterializedViewRegistryUpdateHook.java b/ql/src/java/org/apache/hadoop/hive/ql/hooks/MaterializedViewRegistryUpdateHook.java index a57e4c888b..c32cc837e0 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/hooks/MaterializedViewRegistryUpdateHook.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/hooks/MaterializedViewRegistryUpdateHook.java @@ -71,18 +71,17 @@ public void afterExecution(QueryLifeTimeHookContext ctx, boolean hasError) { String tableName = null; if (work.getCreateViewDesc() != null && work.getCreateViewDesc().isMaterialized()) { tableName = work.getCreateViewDesc().toTable(hiveConf).getFullyQualifiedName(); - } - if (work.getAlterMaterializedViewDesc() != null) { + } else if (work.getAlterMaterializedViewDesc() != null) { tableName = work.getAlterMaterializedViewDesc().getMaterializedViewName(); - } - if (tableName == null) { + } else { continue; } - Table mvTable = Hive.get().getTable(tableName); + Table mvTable = Hive.get().getTable(tableName); if (mvTable.isRewriteEnabled()) { - HiveMaterializedViewsRegistry.get().addMaterializedView(mvTable); - } else { + HiveMaterializedViewsRegistry.get().createMaterializedView(mvTable); + } else if (work.getAlterMaterializedViewDesc() != null) { + // Disabling rewriting, removing from cache HiveMaterializedViewsRegistry.get().dropMaterializedView(mvTable); } } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java index 50bdce89a4..370e3a554b 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java @@ -27,14 +27,11 @@ import static org.apache.hadoop.hive.serde.serdeConstants.SERIALIZATION_FORMAT; import static org.apache.hadoop.hive.serde.serdeConstants.STRING_TYPE_NAME; -import org.apache.hadoop.hive.metastore.api.WMFullResourcePlan; - import java.io.FileNotFoundException; import java.io.IOException; import java.io.PrintStream; import java.nio.ByteBuffer; import java.util.ArrayList; -import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; @@ -111,6 +108,7 @@ import org.apache.hadoop.hive.metastore.api.Index; import org.apache.hadoop.hive.metastore.api.InsertEventRequestData; import org.apache.hadoop.hive.metastore.api.InvalidOperationException; +import org.apache.hadoop.hive.metastore.api.Materialization; import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.hadoop.hive.metastore.api.MetadataPpdResult; import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; @@ -120,8 +118,6 @@ import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; import org.apache.hadoop.hive.metastore.api.PrincipalType; import org.apache.hadoop.hive.metastore.api.PrivilegeBag; -import org.apache.hadoop.hive.metastore.api.WMResourcePlan; -import org.apache.hadoop.hive.metastore.api.WMTrigger; import org.apache.hadoop.hive.metastore.api.Role; import org.apache.hadoop.hive.metastore.api.RolePrincipalGrant; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; @@ -134,8 +130,11 @@ import org.apache.hadoop.hive.metastore.api.SkewedInfo; import org.apache.hadoop.hive.metastore.api.StorageDescriptor; import org.apache.hadoop.hive.metastore.api.UniqueConstraintsRequest; +import org.apache.hadoop.hive.metastore.api.WMFullResourcePlan; import org.apache.hadoop.hive.metastore.api.WMMapping; import org.apache.hadoop.hive.metastore.api.WMPool; +import org.apache.hadoop.hive.metastore.api.WMResourcePlan; +import org.apache.hadoop.hive.metastore.api.WMTrigger; import org.apache.hadoop.hive.metastore.api.hive_metastoreConstants; import org.apache.hadoop.hive.metastore.utils.MetaStoreUtils; import org.apache.hadoop.hive.ql.ErrorMsg; @@ -149,6 +148,7 @@ import org.apache.hadoop.hive.ql.io.AcidUtils; import org.apache.hadoop.hive.ql.lockmgr.DbTxnManager; import org.apache.hadoop.hive.ql.log.PerfLogger; +import org.apache.hadoop.hive.ql.optimizer.calcite.RelOptHiveTable; import org.apache.hadoop.hive.ql.optimizer.listbucketingpruner.ListBucketingPrunerUtils; import org.apache.hadoop.hive.ql.plan.AddPartitionDesc; import org.apache.hadoop.hive.ql.plan.DropTableDesc; @@ -612,7 +612,7 @@ public void createTable(String tableName, List columns, List par } public void alterTable(Table newTbl, EnvironmentContext environmentContext) - throws InvalidOperationException, HiveException { + throws HiveException { alterTable(newTbl.getDbName(), newTbl.getTableName(), newTbl, false, environmentContext); } @@ -628,19 +628,19 @@ public void alterTable(Table newTbl, EnvironmentContext environmentContext) * @throws TException */ public void alterTable(String fullyQlfdTblName, Table newTbl, EnvironmentContext environmentContext) - throws InvalidOperationException, HiveException { + throws HiveException { alterTable(fullyQlfdTblName, newTbl, false, environmentContext); } public void alterTable(String fullyQlfdTblName, Table newTbl, boolean cascade, EnvironmentContext environmentContext) - throws InvalidOperationException, HiveException { + throws HiveException { String[] names = Utilities.getDbTableName(fullyQlfdTblName); alterTable(names[0], names[1], newTbl, cascade, environmentContext); } public void alterTable(String dbName, String tblName, Table newTbl, boolean cascade, EnvironmentContext environmentContext) - throws InvalidOperationException, HiveException { + throws HiveException { try { // Remove the DDL_TIME so it gets refreshed @@ -1448,6 +1448,21 @@ public Table apply(org.apache.hadoop.hive.metastore.api.Table table) { } } + private List getTableObjects(String dbName, List tableNames) throws HiveException { + try { + return Lists.transform(getMSC().getTableObjectsByName(dbName, tableNames), + new com.google.common.base.Function() { + @Override + public Table apply(org.apache.hadoop.hive.metastore.api.Table table) { + return new Table(table); + } + } + ); + } catch (Exception e) { + throw new HiveException(e); + } + } + /** * Returns all existing tables from default database which match the given * pattern. The matching occurs as per Java regular expressions @@ -1527,42 +1542,88 @@ public Table apply(org.apache.hadoop.hive.metastore.api.Table table) { * Get the materialized views that have been enabled for rewriting from the * metastore. If the materialized view is in the cache, we do not need to * parse it to generate a logical plan for the rewriting. Instead, we - * return the version present in the cache. + * return the version present in the cache. Further, information provided + * by the invalidation cache is useful to know whether a materialized view + * can be used for rewriting or not. * * @return the list of materialized views available for rewriting * @throws HiveException */ public List getRewritingMaterializedViews() throws HiveException { + final long diff = conf.getIntVar(HiveConf.ConfVars.HIVE_MATERIALIZED_VIEW_REWRITING_TIME_WINDOW) * 1000; + final long minTime = System.currentTimeMillis() - diff; try { // Final result List result = new ArrayList<>(); for (String dbName : getMSC().getAllDatabases()) { // From metastore (for security) - List tables = getAllMaterializedViews(dbName); - // Cached views (includes all) - Collection cachedViews = - HiveMaterializedViewsRegistry.get().getRewritingMaterializedViews(dbName); - if (cachedViews.isEmpty()) { + List materializedViewNames = getMaterializedViewsForRewriting(dbName); + if (materializedViewNames.isEmpty()) { // Bail out: empty list continue; } - Map qualifiedNameToView = - new HashMap(); - for (RelOptMaterialization materialization : cachedViews) { - qualifiedNameToView.put(materialization.qualifiedTableName.get(0), materialization); - } - for (String table : tables) { - // Compose qualified name - String fullyQualifiedName = dbName; - if (fullyQualifiedName != null && !fullyQualifiedName.isEmpty()) { - fullyQualifiedName = fullyQualifiedName + "." + table; + List
materializedViewTables = getTableObjects(dbName, materializedViewNames); + Map databaseInvalidationInfo = + getMSC().getMaterializationsInvalidationInfo(dbName, materializedViewNames); + for (Table materializedViewTable : materializedViewTables) { + // Check whether the materialized view is invalidated + Materialization materializationInvalidationInfo = + databaseInvalidationInfo.get(materializedViewTable.getTableName()); + if (materializationInvalidationInfo == null) { + LOG.info("Materialized view " + materializedViewTable.getFullyQualifiedName() + + " ignored for rewriting as there was no information loaded in the invalidation cache"); + continue; + } + long invalidationTime = materializationInvalidationInfo.getInvalidationTime(); + // If the limit is not met, we do not add the materialized view + if (diff == 0L) { + if (invalidationTime != 0L) { + // If parameter is zero, materialized view cannot be outdated at all + LOG.info("Materialized view " + materializedViewTable.getFullyQualifiedName() + + " ignored for rewriting as its contents are outdated"); + continue; + } } else { - fullyQualifiedName = table; + if (invalidationTime != 0 && minTime > invalidationTime) { + LOG.info("Materialized view " + materializedViewTable.getFullyQualifiedName() + + " ignored for rewriting as its contents are outdated"); + continue; + } } - RelOptMaterialization materialization = qualifiedNameToView.get(fullyQualifiedName); + + // It passed the test, load + RelOptMaterialization materialization = + HiveMaterializedViewsRegistry.get().getRewritingMaterializedView( + dbName, materializedViewTable.getTableName()); if (materialization != null) { - // Add to final result set - result.add(materialization); + RelOptHiveTable cachedMaterializedViewTable = + (RelOptHiveTable) materialization.tableRel.getTable(); + if (cachedMaterializedViewTable.getHiveTableMD().getCreateTime() == + materializedViewTable.getCreateTime()) { + // It is in the cache and up to date + result.add(materialization); + continue; + } + } + + // It was not present in the cache (maybe because it was added by another HS2) + // or it is not up to date. + if (HiveMaterializedViewsRegistry.get().isInitialized()) { + // But the registry was fully initialized, thus we need to add it + if (LOG.isDebugEnabled()) { + LOG.debug("Materialized view " + materializedViewTable.getFullyQualifiedName() + + " was not in the cache"); + } + materialization = HiveMaterializedViewsRegistry.get().createMaterializedView(materializedViewTable); + if (materialization != null) { + result.add(materialization); + } + } else { + // Otherwise the registry has not been initialized, skip for the time being + if (LOG.isWarnEnabled()) { + LOG.warn("Materialized view " + materializedViewTable.getFullyQualifiedName() + " was skipped " + + "because cache has not been loaded yet"); + } } } } @@ -1572,6 +1633,20 @@ public Table apply(org.apache.hadoop.hive.metastore.api.Table table) { } } + /** + * Get materialized views for the specified database that have enabled rewriting. + * @param dbName + * @return List of materialized view table objects + * @throws HiveException + */ + private List getMaterializedViewsForRewriting(String dbName) throws HiveException { + try { + return getMSC().getMaterializedViewsForRewriting(dbName); + } catch (Exception e) { + throw new HiveException(e); + } + } + /** * Get all existing database names. * @@ -2387,14 +2462,12 @@ else if(!isAcidIUDoperation && isFullAcidTable) { environmentContext = new EnvironmentContext(); environmentContext.putToProperties(StatsSetupConst.DO_NOT_UPDATE_STATS, StatsSetupConst.TRUE); } - try { - alterTable(tbl, environmentContext); - } catch (InvalidOperationException e) { - throw new HiveException(e); - } + + alterTable(tbl, environmentContext); fireInsertEvent(tbl, null, (loadFileType == LoadFileType.REPLACE_ALL), newFiles); } + /** * Creates a partition. * diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveMaterializedViewsRegistry.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveMaterializedViewsRegistry.java index 77a7b0f26b..ef1c069580 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveMaterializedViewsRegistry.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveMaterializedViewsRegistry.java @@ -19,12 +19,9 @@ import java.util.ArrayList; import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.List; -import java.util.Objects; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; @@ -81,7 +78,7 @@ * Registry for materialized views. The goal of this cache is to avoid parsing and creating * logical plans for the materialized views at query runtime. When a query arrives, we will * just need to consult this cache and extract the logical plans for the views (which had - * already been parsed) from it. + * already been parsed) from it. This cache lives in HS2. */ public final class HiveMaterializedViewsRegistry { @@ -90,13 +87,12 @@ /* Singleton */ private static final HiveMaterializedViewsRegistry SINGLETON = new HiveMaterializedViewsRegistry(); - /* Key is the database name. Value a map from a unique identifier for the view comprising - * the qualified name and the creation time, to the view object. - * Since currently we cannot alter a materialized view, that should suffice to identify - * whether the cached view is up to date or not. - * Creation time is useful to ensure correctness in case multiple HS2 instances are used. */ - private final ConcurrentMap> materializedViews = - new ConcurrentHashMap>(); + /* Key is the database name. Value a map from the qualified name to the view object. */ + private final ConcurrentMap> materializedViews = + new ConcurrentHashMap>(); + + /* Whether the cache has been initialized or not. */ + private boolean initialized; private HiveMaterializedViewsRegistry() { } @@ -135,64 +131,81 @@ private Loader(Hive db) { @Override public void run() { try { - List
materializedViews = new ArrayList
(); for (String dbName : db.getAllDatabases()) { - materializedViews.addAll(db.getAllMaterializedViewObjects(dbName)); - } - for (Table mv : materializedViews) { - addMaterializedView(mv); + for (Table mv : db.getAllMaterializedViewObjects(dbName)) { + addMaterializedView(mv, OpType.LOAD); + } } + initialized = true; } catch (HiveException e) { LOG.error("Problem connecting to the metastore when initializing the view registry"); } } } + public boolean isInitialized() { + return initialized; + } + + /** + * Adds a newly created materialized view to the cache. + * + * @param materializedViewTable the materialized view + * @param tablesUsed tables used by the materialized view + */ + public RelOptMaterialization createMaterializedView(Table materializedViewTable) { + return addMaterializedView(materializedViewTable, OpType.CREATE); + } + /** * Adds the materialized view to the cache. * * @param materializedViewTable the materialized view */ - public void addMaterializedView(Table materializedViewTable) { + private RelOptMaterialization addMaterializedView(Table materializedViewTable, OpType opType) { // Bail out if it is not enabled for rewriting if (!materializedViewTable.isRewriteEnabled()) { - return; + return null; } - materializedViewTable.getFullyQualifiedName(); - ConcurrentMap cq = - new ConcurrentHashMap(); - final ConcurrentMap prevCq = materializedViews.putIfAbsent( + // We are going to create the map for each view in the given database + ConcurrentMap cq = + new ConcurrentHashMap(); + final ConcurrentMap prevCq = materializedViews.putIfAbsent( materializedViewTable.getDbName(), cq); if (prevCq != null) { cq = prevCq; } - // Bail out if it already exists - final ViewKey vk = ViewKey.forTable(materializedViewTable); - if (cq.containsKey(vk)) { - return; - } - // Add to cache + + // Start the process to add MV to the cache + // First we parse the view query and create the materialization object final String viewQuery = materializedViewTable.getViewExpandedText(); final RelNode tableRel = createTableScan(materializedViewTable); if (tableRel == null) { LOG.warn("Materialized view " + materializedViewTable.getCompleteName() + " ignored; error creating view replacement"); - return; + return null; } final RelNode queryRel = parseQuery(viewQuery); if (queryRel == null) { LOG.warn("Materialized view " + materializedViewTable.getCompleteName() + " ignored; error parsing original query"); - return; + return null; } + RelOptMaterialization materialization = new RelOptMaterialization(tableRel, queryRel, null, tableRel.getTable().getQualifiedName()); - cq.put(vk, materialization); + if (opType == OpType.CREATE) { + // You store the materialized view + cq.put(materializedViewTable.getTableName(), materialization); + } else { + // For LOAD, you only add it if it does exist as you might be loading an outdated MV + cq.putIfAbsent(materializedViewTable.getTableName(), materialization); + } if (LOG.isDebugEnabled()) { LOG.debug("Cached materialized view for rewriting: " + tableRel.getTable().getQualifiedName()); } - return; + return materialization; } /** @@ -201,11 +214,8 @@ public void addMaterializedView(Table materializedViewTable) { * @param materializedViewTable the materialized view to remove */ public void dropMaterializedView(Table materializedViewTable) { - final ViewKey vk = ViewKey.forTable(materializedViewTable); - ConcurrentMap dbMap = materializedViews.get(materializedViewTable.getDbName()); - if (dbMap != null) { - dbMap.remove(vk); - } + materializedViews.get(materializedViewTable.getDbName()).remove( + materializedViewTable.getTableName()); } /** @@ -214,11 +224,11 @@ public void dropMaterializedView(Table materializedViewTable) { * @param dbName the database * @return the collection of materialized views, or the empty collection if none */ - Collection getRewritingMaterializedViews(String dbName) { + RelOptMaterialization getRewritingMaterializedView(String dbName, String viewName) { if (materializedViews.get(dbName) != null) { - return Collections.unmodifiableCollection(materializedViews.get(dbName).values()); + return materializedViews.get(dbName).get(viewName); } - return ImmutableList.of(); + return null; } private static RelNode createTableScan(Table viewTable) { @@ -336,7 +346,9 @@ private static RelNode parseQuery(String viewQuery) { final QueryState qs = new QueryState.Builder().withHiveConf(SessionState.get().getConf()).build(); CalcitePlanner analyzer = new CalcitePlanner(qs); - analyzer.initCtx(new Context(SessionState.get().getConf())); + Context ctx = new Context(SessionState.get().getConf()); + ctx.setIsLoadingMaterializedView(true); + analyzer.initCtx(ctx); analyzer.init(false); return analyzer.genLogicalPlan(node); } catch (Exception e) { @@ -346,45 +358,6 @@ private static RelNode parseQuery(String viewQuery) { } } - private static class ViewKey { - private String viewName; - private int creationDate; - - private ViewKey(String viewName, int creationTime) { - this.viewName = viewName; - this.creationDate = creationTime; - } - - public static ViewKey forTable(Table table) { - return new ViewKey(table.getTableName(), table.getCreateTime()); - } - - @Override - public boolean equals(Object obj) { - if(this == obj) { - return true; - } - if((obj == null) || (obj.getClass() != this.getClass())) { - return false; - } - ViewKey viewKey = (ViewKey) obj; - return creationDate == viewKey.creationDate && Objects.equals(viewName, viewKey.viewName); - } - - @Override - public int hashCode() { - int hash = 7; - hash = 31 * hash + creationDate; - hash = 31 * hash + viewName.hashCode(); - return hash; - } - - @Override - public String toString() { - return "ViewKey{" + viewName + "," + creationDate + "}"; - } - } - private static TableType obtainTableType(Table tabMetaData) { if (tabMetaData.getStorageHandler() != null && tabMetaData.getStorageHandler().toString().equals( @@ -398,4 +371,10 @@ private static TableType obtainTableType(Table tabMetaData) { DRUID, NATIVE } + + private enum OpType { + CREATE, + LOAD + } + } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java index ba64f97105..29b05e2a0d 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java @@ -90,9 +90,6 @@ import org.apache.calcite.rel.rules.LoptOptimizeJoinRule; import org.apache.calcite.rel.rules.ProjectMergeRule; import org.apache.calcite.rel.rules.ProjectRemoveRule; -import org.apache.calcite.rel.rules.SemiJoinFilterTransposeRule; -import org.apache.calcite.rel.rules.SemiJoinJoinTransposeRule; -import org.apache.calcite.rel.rules.SemiJoinProjectTransposeRule; import org.apache.calcite.rel.type.RelDataType; import org.apache.calcite.rel.type.RelDataTypeFactory; import org.apache.calcite.rel.type.RelDataTypeField; @@ -113,7 +110,6 @@ import org.apache.calcite.sql.SqlNode; import org.apache.calcite.sql.SqlOperator; import org.apache.calcite.sql.SqlWindow; -import org.apache.calcite.sql.fun.SqlStdOperatorTable; import org.apache.calcite.sql.parser.SqlParserPos; import org.apache.calcite.sql.type.SqlTypeName; import org.apache.calcite.tools.Frameworks; @@ -204,8 +200,8 @@ import org.apache.hadoop.hive.ql.optimizer.calcite.rules.HiveReduceExpressionsWithStatsRule; import org.apache.hadoop.hive.ql.optimizer.calcite.rules.HiveRelDecorrelator; import org.apache.hadoop.hive.ql.optimizer.calcite.rules.HiveRelFieldTrimmer; -import org.apache.hadoop.hive.ql.optimizer.calcite.rules.HiveRemoveSqCountCheck; import org.apache.hadoop.hive.ql.optimizer.calcite.rules.HiveRemoveGBYSemiJoinRule; +import org.apache.hadoop.hive.ql.optimizer.calcite.rules.HiveRemoveSqCountCheck; import org.apache.hadoop.hive.ql.optimizer.calcite.rules.HiveRulesRegistry; import org.apache.hadoop.hive.ql.optimizer.calcite.rules.HiveSemiJoinRule; import org.apache.hadoop.hive.ql.optimizer.calcite.rules.HiveSortJoinReduceRule; @@ -1488,7 +1484,7 @@ public RelNode apply(RelOptCluster cluster, RelOptSchema relOptSchema, SchemaPlu // We disable it for CTAS and MV creation queries (trying to avoid any problem // due to data freshness) if (conf.getBoolVar(ConfVars.HIVE_MATERIALIZED_VIEW_ENABLE_AUTO_REWRITING) && - !getQB().isMaterializedView() && !getQB().isCTAS()) { + !getQB().isMaterializedView() && !ctx.isLoadingMaterializedView() && !getQB().isCTAS()) { perfLogger.PerfLogBegin(this.getClass().getName(), PerfLogger.OPTIMIZER); // Use Calcite cost model for view rewriting RelMetadataProvider calciteMdProvider = DefaultRelMetadataProvider.INSTANCE; diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java index a09b7961c2..45146c799b 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java @@ -18,16 +18,29 @@ package org.apache.hadoop.hive.ql.parse; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.Lists; +import static org.apache.hadoop.hive.ql.parse.HiveParser.TOK_DATABASELOCATION; +import static org.apache.hadoop.hive.ql.parse.HiveParser.TOK_DATABASEPROPERTIES; + +import java.io.FileNotFoundException; +import java.io.Serializable; +import java.lang.reflect.Constructor; +import java.lang.reflect.InvocationTargetException; +import java.net.URI; +import java.net.URISyntaxException; +import java.util.ArrayList; +import java.util.Collection; +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.Map.Entry; +import java.util.Set; import org.antlr.runtime.tree.CommonTree; import org.antlr.runtime.tree.Tree; -import org.apache.hadoop.hive.metastore.api.hive_metastoreConstants; -import org.apache.hadoop.hive.metastore.utils.MetaStoreUtils; -import org.apache.hadoop.hive.ql.io.AcidUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hive.common.JavaUtils; @@ -53,6 +66,8 @@ import org.apache.hadoop.hive.metastore.api.WMResourcePlan; import org.apache.hadoop.hive.metastore.api.WMResourcePlanStatus; import org.apache.hadoop.hive.metastore.api.WMTrigger; +import org.apache.hadoop.hive.metastore.api.hive_metastoreConstants; +import org.apache.hadoop.hive.metastore.utils.MetaStoreUtils; import org.apache.hadoop.hive.ql.Driver; import org.apache.hadoop.hive.ql.ErrorMsg; import org.apache.hadoop.hive.ql.QueryState; @@ -62,13 +77,14 @@ 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.Entity.Type; import org.apache.hadoop.hive.ql.hooks.ReadEntity; import org.apache.hadoop.hive.ql.hooks.WriteEntity; -import org.apache.hadoop.hive.ql.hooks.Entity.Type; import org.apache.hadoop.hive.ql.hooks.WriteEntity.WriteType; import org.apache.hadoop.hive.ql.index.HiveIndex; import org.apache.hadoop.hive.ql.index.HiveIndex.IndexType; import org.apache.hadoop.hive.ql.index.HiveIndexHandler; +import org.apache.hadoop.hive.ql.io.AcidUtils; import org.apache.hadoop.hive.ql.io.RCFileInputFormat; import org.apache.hadoop.hive.ql.io.orc.OrcInputFormat; import org.apache.hadoop.hive.ql.lib.Node; @@ -102,10 +118,11 @@ import org.apache.hadoop.hive.ql.plan.BasicStatsWork; import org.apache.hadoop.hive.ql.plan.CacheMetadataDesc; import org.apache.hadoop.hive.ql.plan.ColumnStatsUpdateWork; -import org.apache.hadoop.hive.ql.plan.StatsWork; import org.apache.hadoop.hive.ql.plan.CreateDatabaseDesc; import org.apache.hadoop.hive.ql.plan.CreateIndexDesc; import org.apache.hadoop.hive.ql.plan.CreateOrAlterWMMappingDesc; +import org.apache.hadoop.hive.ql.plan.CreateOrAlterWMPoolDesc; +import org.apache.hadoop.hive.ql.plan.CreateOrDropTriggerToPoolMappingDesc; import org.apache.hadoop.hive.ql.plan.CreateResourcePlanDesc; import org.apache.hadoop.hive.ql.plan.CreateWMTriggerDesc; import org.apache.hadoop.hive.ql.plan.DDLWork; @@ -151,13 +168,12 @@ import org.apache.hadoop.hive.ql.plan.ShowTablesDesc; import org.apache.hadoop.hive.ql.plan.ShowTblPropertiesDesc; import org.apache.hadoop.hive.ql.plan.ShowTxnsDesc; +import org.apache.hadoop.hive.ql.plan.StatsWork; import org.apache.hadoop.hive.ql.plan.SwitchDatabaseDesc; import org.apache.hadoop.hive.ql.plan.TableDesc; import org.apache.hadoop.hive.ql.plan.TruncateTableDesc; import org.apache.hadoop.hive.ql.plan.UnlockDatabaseDesc; import org.apache.hadoop.hive.ql.plan.UnlockTableDesc; -import org.apache.hadoop.hive.ql.plan.CreateOrAlterWMPoolDesc; -import org.apache.hadoop.hive.ql.plan.CreateOrDropTriggerToPoolMappingDesc; import org.apache.hadoop.hive.ql.session.SessionState; import org.apache.hadoop.hive.ql.udf.generic.GenericUDF; import org.apache.hadoop.hive.serde.serdeConstants; @@ -172,27 +188,11 @@ import org.apache.hadoop.hive.serde2.typeinfo.VarcharTypeInfo; import org.apache.hadoop.mapred.InputFormat; import org.apache.hadoop.util.StringUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; -import java.io.FileNotFoundException; -import java.io.Serializable; -import java.lang.reflect.Constructor; -import java.lang.reflect.InvocationTargetException; -import java.net.URI; -import java.net.URISyntaxException; -import java.util.ArrayList; -import java.util.Collection; -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.Map.Entry; -import java.util.Set; - -import static org.apache.hadoop.hive.ql.parse.HiveParser.TOK_DATABASELOCATION; -import static org.apache.hadoop.hive.ql.parse.HiveParser.TOK_DATABASEPROPERTIES; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.Lists; /** * DDLSemanticAnalyzer. @@ -4229,9 +4229,22 @@ private void analyzeAlterMaterializedViewRewrite(String mvName, ASTNode ast) thr alterMVDesc.setRewriteEnableFlag(enableFlag); // It can be fully qualified name or use default database - Table tab = getTable(mvName, true); - inputs.add(new ReadEntity(tab)); - outputs.add(new WriteEntity(tab, WriteEntity.WriteType.DDL_EXCLUSIVE)); + Table materializedViewTable = getTable(mvName, true); + + // One last test: if we are enabling the rewrite, we need to check that query + // only uses transactional (MM and ACID) tables + if (enableFlag) { + for (String tableName : materializedViewTable.getTTable().getCreationMetadata().keySet()) { + Table table = getTable(tableName, true); + if (!AcidUtils.isAcidTable(table)) { + throw new SemanticException("Automatic rewriting for materialized view cannot " + + "be enabled if the materialized view uses non-transactional tables"); + } + } + } + + inputs.add(new ReadEntity(materializedViewTable)); + outputs.add(new WriteEntity(materializedViewTable, WriteEntity.WriteType.DDL_EXCLUSIVE)); rootTasks.add(TaskFactory.get(new DDLWork(getInputs(), getOutputs(), alterMVDesc), conf)); } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java index 28e3621d32..8df4a02d3d 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java @@ -42,6 +42,7 @@ import java.util.UUID; import java.util.regex.Pattern; import java.util.regex.PatternSyntaxException; + import org.antlr.runtime.ClassicToken; import org.antlr.runtime.CommonToken; import org.antlr.runtime.Token; @@ -71,6 +72,7 @@ import org.apache.hadoop.hive.metastore.api.Database; import org.apache.hadoop.hive.metastore.api.FieldSchema; import org.apache.hadoop.hive.metastore.api.MetaException; +import org.apache.hadoop.hive.metastore.api.NotificationEvent; import org.apache.hadoop.hive.metastore.api.Order; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; @@ -11656,7 +11658,9 @@ void analyzeInternal(ASTNode ast, PlannerContextFactory pcf) throws SemanticExce // all the information for semanticcheck validateCreateView(); - if (!createVwDesc.isMaterialized()) { + if (createVwDesc.isMaterialized()) { + createVwDesc.setTablesUsed(getTablesUsed(pCtx)); + } else { // Since we're only creating a view (not executing it), we don't need to // optimize or translate the plan (and in fact, those procedures can // interfere with the view creation). So skip the rest of this method. @@ -11776,7 +11780,7 @@ private void putAccessedColumnsToReadEntity(HashSet inputs, ColumnAc protected void saveViewDefinition() throws SemanticException { if (createVwDesc.isMaterialized() && createVwDesc.isReplace()) { - // This is a rebuild, there's nothing to do here. + // This is a rebuild, there's nothing to do here return; } @@ -11895,6 +11899,18 @@ protected void saveViewDefinition() throws SemanticException { createVwDesc.setViewExpandedText(expandedText); } + private List getTablesUsed(ParseContext parseCtx) throws SemanticException { + List tablesUsed = new ArrayList<>(); + for (TableScanOperator topOp : parseCtx.getTopOps().values()) { + Table table = topOp.getConf().getTableMetadata(); + if (!table.isMaterializedTable() && !table.isView()) { + // Add to signature + tablesUsed.add(table.getFullyQualifiedName()); + } + } + return tablesUsed; + } + static List convertRowSchemaToViewSchema(RowResolver rr) throws SemanticException { List fieldSchema = convertRowSchemaToResultSetSchema(rr, false); ParseUtils.validateColumnNameUniqueness(fieldSchema); @@ -12759,7 +12775,7 @@ private void validateCreateView() try { Table oldView = getTable(createVwDesc.getViewName(), false); - // Do not allow view to be defined on temp table + // Do not allow view to be defined on temp table or other materialized view Set tableAliases = qb.getTabAliases(); for (String alias : tableAliases) { try { @@ -12767,6 +12783,14 @@ private void validateCreateView() if (table.isTemporary()) { throw new SemanticException("View definition references temporary table " + alias); } + if (table.isMaterializedView()) { + throw new SemanticException("View definition references materialized view " + alias); + } + if (createVwDesc.isMaterialized() && createVwDesc.isRewriteEnabled() && + !AcidUtils.isAcidTable(table)) { + throw new SemanticException("Automatic rewriting for materialized view cannot " + + "be enabled if the materialized view uses non-transactional tables"); + } } catch (HiveException ex) { throw new SemanticException(ex); } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/plan/CreateViewDesc.java b/ql/src/java/org/apache/hadoop/hive/ql/plan/CreateViewDesc.java index 09aa82f1f0..3de282dbca 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/plan/CreateViewDesc.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/plan/CreateViewDesc.java @@ -32,7 +32,6 @@ import org.apache.hadoop.hive.ql.metadata.HiveStorageHandler; import org.apache.hadoop.hive.ql.metadata.Table; import org.apache.hadoop.hive.ql.parse.ReplicationSpec; -import org.apache.hadoop.hive.ql.parse.SemanticException; import org.apache.hadoop.hive.ql.plan.Explain.Level; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -66,6 +65,7 @@ private String serde; // only used for materialized views private String storageHandler; // only used for materialized views private Map serdeProps; // only used for materialized views + private List tablesUsed; // only used for materialized views private ReplicationSpec replicationSpec = null; /** @@ -245,6 +245,14 @@ public void setIfNotExists(boolean ifNotExists) { this.ifNotExists = ifNotExists; } + public List getTablesUsed() { + return tablesUsed; + } + + public void setTablesUsed(List tablesUsed) { + this.tablesUsed = tablesUsed; + } + @Explain(displayName = "replace", displayOnlyOnTrue = true) public boolean isReplace() { return replace; diff --git a/ql/src/java/org/apache/hadoop/hive/ql/stats/BasicStatsTask.java b/ql/src/java/org/apache/hadoop/hive/ql/stats/BasicStatsTask.java index 69b076a08a..21e6984c6a 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/stats/BasicStatsTask.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/stats/BasicStatsTask.java @@ -272,12 +272,13 @@ private int aggregateStats(Hive db) { BasicStatsProcessor basicStatsProcessor = new BasicStatsProcessor(p, work, conf, followedColStats); basicStatsProcessor.collectFileStatus(wh); - Object res = basicStatsProcessor.process(statsAggregator); - + Table res = (Table) basicStatsProcessor.process(statsAggregator); if (res == null) { return 0; } - db.alterTable(tableFullName, (Table) res, environmentContext); + // Stats task should not set creation signature + res.getTTable().unsetCreationMetadata(); + db.alterTable(tableFullName, res, environmentContext); if (conf.getBoolVar(ConfVars.TEZ_EXEC_SUMMARY)) { console.printInfo("Table " + tableFullName + " stats: [" + toString(p.getPartParameters()) + ']'); diff --git a/ql/src/test/queries/clientnegative/materialized_view_no_transactional_rewrite.q b/ql/src/test/queries/clientnegative/materialized_view_no_transactional_rewrite.q new file mode 100644 index 0000000000..bfa0b8fc66 --- /dev/null +++ b/ql/src/test/queries/clientnegative/materialized_view_no_transactional_rewrite.q @@ -0,0 +1,10 @@ +set hive.support.concurrency=true; +set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager; +set hive.strict.checks.cartesian.product=false; +set hive.materializedview.rewriting=true; + +create table cmv_basetable (a int, b varchar(256), c decimal(10,2)); + +insert into cmv_basetable values (1, 'alfred', 10.30),(2, 'bob', 3.14),(2, 'bonnie', 172342.2),(3, 'calvin', 978.76),(3, 'charlie', 9.8); + +create materialized view cmv_mat_view enable rewrite as select a, b, c from cmv_basetable; diff --git a/ql/src/test/queries/clientnegative/materialized_view_no_transactional_rewrite_2.q b/ql/src/test/queries/clientnegative/materialized_view_no_transactional_rewrite_2.q new file mode 100644 index 0000000000..943291801d --- /dev/null +++ b/ql/src/test/queries/clientnegative/materialized_view_no_transactional_rewrite_2.q @@ -0,0 +1,12 @@ +set hive.support.concurrency=true; +set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager; +set hive.strict.checks.cartesian.product=false; +set hive.materializedview.rewriting=true; + +create table cmv_basetable (a int, b varchar(256), c decimal(10,2)); + +insert into cmv_basetable values (1, 'alfred', 10.30),(2, 'bob', 3.14),(2, 'bonnie', 172342.2),(3, 'calvin', 978.76),(3, 'charlie', 9.8); + +create materialized view cmv_mat_view as select a, b, c from cmv_basetable; + +alter materialized view cmv_mat_view enable rewrite; diff --git a/ql/src/test/queries/clientpositive/materialized_view_create_rewrite.q b/ql/src/test/queries/clientpositive/materialized_view_create_rewrite.q index 761903fd58..a97ce45924 100644 --- a/ql/src/test/queries/clientpositive/materialized_view_create_rewrite.q +++ b/ql/src/test/queries/clientpositive/materialized_view_create_rewrite.q @@ -1,10 +1,11 @@ -- SORT_QUERY_RESULTS +set hive.support.concurrency=true; +set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager; set hive.strict.checks.cartesian.product=false; set hive.materializedview.rewriting=true; -set hive.stats.column.autogather=true; -create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int); +create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true'); insert into cmv_basetable values (1, 'alfred', 10.30, 2), @@ -13,6 +14,8 @@ insert into cmv_basetable values (3, 'calvin', 978.76, 3), (3, 'charlie', 9.8, 1); +analyze table cmv_basetable compute statistics for columns; + create materialized view cmv_mat_view enable rewrite as select a, b, c from cmv_basetable where a = 2; diff --git a/ql/src/test/queries/clientpositive/materialized_view_create_rewrite_2.q b/ql/src/test/queries/clientpositive/materialized_view_create_rewrite_2.q index 9983bae7a1..62aefbca2d 100644 --- a/ql/src/test/queries/clientpositive/materialized_view_create_rewrite_2.q +++ b/ql/src/test/queries/clientpositive/materialized_view_create_rewrite_2.q @@ -1,8 +1,9 @@ +set hive.support.concurrency=true; +set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager; set hive.strict.checks.cartesian.product=false; set hive.materializedview.rewriting=true; -set hive.stats.column.autogather=true; -create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int); +create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true'); insert into cmv_basetable values (1, 'alfred', 10.30, 2), @@ -11,6 +12,8 @@ insert into cmv_basetable values (3, 'calvin', 978.76, 3), (3, 'charlie', 9.8, 1); +analyze table cmv_basetable compute statistics for columns; + create materialized view cmv_mat_view enable rewrite as select b from cmv_basetable where c > 10.0 group by a, b, c; @@ -47,12 +50,14 @@ select b from cmv_basetable group by b; select b from cmv_basetable group by b; -create table cmv_basetable_2 (a int, b varchar(256), c decimal(10,2), d int); +create table cmv_basetable_2 (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true'); insert into cmv_basetable_2 values (1, 'alfred', 10.30, 2), (3, 'calvin', 978.76, 3); +analyze table cmv_basetable_2 compute statistics for columns; + create materialized view cmv_mat_view_5 enable rewrite as select cmv_basetable.a, cmv_basetable_2.c from cmv_basetable join cmv_basetable_2 on (cmv_basetable.a = cmv_basetable_2.a) diff --git a/ql/src/test/queries/clientpositive/materialized_view_create_rewrite_3.q b/ql/src/test/queries/clientpositive/materialized_view_create_rewrite_3.q index 6462d9a677..408e66208d 100644 --- a/ql/src/test/queries/clientpositive/materialized_view_create_rewrite_3.q +++ b/ql/src/test/queries/clientpositive/materialized_view_create_rewrite_3.q @@ -1,8 +1,9 @@ +set hive.support.concurrency=true; +set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager; set hive.strict.checks.cartesian.product=false; set hive.materializedview.rewriting=true; -set hive.stats.column.autogather=true; -create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int); +create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true'); insert into cmv_basetable values (1, 'alfred', 10.30, 2), @@ -11,12 +12,16 @@ insert into cmv_basetable values (3, 'calvin', 978.76, 3), (3, 'charlie', 9.8, 1); -create table cmv_basetable_2 (a int, b varchar(256), c decimal(10,2), d int); +analyze table cmv_basetable compute statistics for columns; + +create table cmv_basetable_2 (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true'); insert into cmv_basetable_2 values (1, 'alfred', 10.30, 2), (3, 'calvin', 978.76, 3); +analyze table cmv_basetable_2 compute statistics for columns; + EXPLAIN CREATE MATERIALIZED VIEW cmv_mat_view ENABLE REWRITE AS SELECT cmv_basetable.a, cmv_basetable_2.c @@ -45,7 +50,9 @@ GROUP BY cmv_basetable.a, cmv_basetable_2.c; insert into cmv_basetable_2 values (3, 'charlie', 15.8, 1); --- TODO: CANNOT USE THE VIEW, IT IS OUTDATED +analyze table cmv_basetable_2 compute statistics for columns; + +-- CANNOT USE THE VIEW, IT IS OUTDATED EXPLAIN SELECT cmv_basetable.a FROM cmv_basetable join cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) @@ -75,4 +82,66 @@ FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) WHERE cmv_basetable_2.c > 10.10 GROUP BY cmv_basetable.a, cmv_basetable_2.c; +DELETE FROM cmv_basetable_2 WHERE a = 3; + +-- CANNOT USE THE VIEW, IT IS OUTDATED +EXPLAIN +SELECT cmv_basetable.a +FROM cmv_basetable join cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c; + +SELECT cmv_basetable.a +FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c; + +-- REBUILD +ALTER MATERIALIZED VIEW cmv_mat_view REBUILD; + +-- NOW IT CAN BE USED AGAIN +EXPLAIN +SELECT cmv_basetable.a +FROM cmv_basetable join cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c; + +SELECT cmv_basetable.a +FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c; + +-- IRRELEVANT OPERATIONS +create table cmv_irrelevant_table (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true'); + +insert into cmv_irrelevant_table values + (1, 'alfred', 10.30, 2), + (3, 'charlie', 9.8, 1); + +analyze table cmv_irrelevant_table compute statistics for columns; + +-- IT CAN STILL BE USED +EXPLAIN +SELECT cmv_basetable.a +FROM cmv_basetable join cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c; + +SELECT cmv_basetable.a +FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c; + drop materialized view cmv_mat_view; + +-- NOT USED ANYMORE +EXPLAIN +SELECT cmv_basetable.a +FROM cmv_basetable join cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c; + +SELECT cmv_basetable.a +FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c; diff --git a/ql/src/test/queries/clientpositive/materialized_view_create_rewrite_4.q b/ql/src/test/queries/clientpositive/materialized_view_create_rewrite_4.q new file mode 100644 index 0000000000..efc65c4061 --- /dev/null +++ b/ql/src/test/queries/clientpositive/materialized_view_create_rewrite_4.q @@ -0,0 +1,92 @@ +set hive.support.concurrency=true; +set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager; +set hive.strict.checks.cartesian.product=false; +set hive.materializedview.rewriting=true; + +create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true'); + +insert into cmv_basetable values + (1, 'alfred', 10.30, 2), + (2, 'bob', 3.14, 3), + (2, 'bonnie', 172342.2, 3), + (3, 'calvin', 978.76, 3), + (3, 'charlie', 9.8, 1); + +analyze table cmv_basetable compute statistics for columns; + +create table cmv_basetable_2 (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true'); + +insert into cmv_basetable_2 values + (1, 'alfred', 10.30, 2), + (3, 'calvin', 978.76, 3); + +analyze table cmv_basetable_2 compute statistics for columns; + +-- CREATE VIEW WITH REWRITE DISABLED +EXPLAIN +CREATE MATERIALIZED VIEW cmv_mat_view AS + SELECT cmv_basetable.a, cmv_basetable_2.c + FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) + WHERE cmv_basetable_2.c > 10.0 + GROUP BY cmv_basetable.a, cmv_basetable_2.c; + +CREATE MATERIALIZED VIEW cmv_mat_view AS + SELECT cmv_basetable.a, cmv_basetable_2.c + FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) + WHERE cmv_basetable_2.c > 10.0 + GROUP BY cmv_basetable.a, cmv_basetable_2.c; + +-- CANNOT USE THE VIEW, IT IS DISABLED FOR REWRITE +EXPLAIN +SELECT cmv_basetable.a +FROM cmv_basetable join cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c; + +SELECT cmv_basetable.a +FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c; + +insert into cmv_basetable_2 values + (3, 'charlie', 15.8, 1); + +analyze table cmv_basetable_2 compute statistics for columns; + +-- ENABLE FOR REWRITE +EXPLAIN +ALTER MATERIALIZED VIEW cmv_mat_view ENABLE REWRITE; + +ALTER MATERIALIZED VIEW cmv_mat_view ENABLE REWRITE; + +-- CANNOT USE THE VIEW, IT IS OUTDATED +EXPLAIN +SELECT cmv_basetable.a +FROM cmv_basetable join cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c; + +SELECT cmv_basetable.a +FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c; + +-- REBUILD +EXPLAIN +ALTER MATERIALIZED VIEW cmv_mat_view REBUILD; + +ALTER MATERIALIZED VIEW cmv_mat_view REBUILD; + +-- NOW IT CAN BE USED AGAIN +EXPLAIN +SELECT cmv_basetable.a +FROM cmv_basetable join cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c; + +SELECT cmv_basetable.a +FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c; + +drop materialized view cmv_mat_view; diff --git a/ql/src/test/queries/clientpositive/materialized_view_create_rewrite_multi_db.q b/ql/src/test/queries/clientpositive/materialized_view_create_rewrite_multi_db.q index e4cdc22e3b..20cf1fc24f 100644 --- a/ql/src/test/queries/clientpositive/materialized_view_create_rewrite_multi_db.q +++ b/ql/src/test/queries/clientpositive/materialized_view_create_rewrite_multi_db.q @@ -1,3 +1,5 @@ +set hive.support.concurrency=true; +set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager; set hive.strict.checks.cartesian.product=false; set hive.materializedview.rewriting=true; set hive.stats.column.autogather=true; @@ -5,7 +7,7 @@ set hive.stats.column.autogather=true; create database db1; use db1; -create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int); +create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true'); insert into cmv_basetable values (1, 'alfred', 10.30, 2), @@ -14,6 +16,8 @@ insert into cmv_basetable values (3, 'calvin', 978.76, 3), (3, 'charlie', 9.8, 1); +analyze table cmv_basetable compute statistics for columns; + create database db2; use db2; diff --git a/ql/src/test/results/clientnegative/materialized_view_no_transactional_rewrite.q.out b/ql/src/test/results/clientnegative/materialized_view_no_transactional_rewrite.q.out new file mode 100644 index 0000000000..a22df2c072 --- /dev/null +++ b/ql/src/test/results/clientnegative/materialized_view_no_transactional_rewrite.q.out @@ -0,0 +1,18 @@ +PREHOOK: query: create table cmv_basetable (a int, b varchar(256), c decimal(10,2)) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@cmv_basetable +POSTHOOK: query: create table cmv_basetable (a int, b varchar(256), c decimal(10,2)) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@cmv_basetable +PREHOOK: query: insert into cmv_basetable values (1, 'alfred', 10.30),(2, 'bob', 3.14),(2, 'bonnie', 172342.2),(3, 'calvin', 978.76),(3, 'charlie', 9.8) +PREHOOK: type: QUERY +PREHOOK: Output: default@cmv_basetable +POSTHOOK: query: insert into cmv_basetable values (1, 'alfred', 10.30),(2, 'bob', 3.14),(2, 'bonnie', 172342.2),(3, 'calvin', 978.76),(3, 'charlie', 9.8) +POSTHOOK: type: QUERY +POSTHOOK: Output: default@cmv_basetable +POSTHOOK: Lineage: cmv_basetable.a EXPRESSION [(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col1, type:string, comment:), ] +POSTHOOK: Lineage: cmv_basetable.b EXPRESSION [(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col2, type:string, comment:), ] +POSTHOOK: Lineage: cmv_basetable.c EXPRESSION [(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col3, type:string, comment:), ] +FAILED: SemanticException org.apache.hadoop.hive.ql.parse.SemanticException: Automatic rewriting for materialized view cannot be enabled if the materialized view uses non-transactional tables diff --git a/ql/src/test/results/clientnegative/materialized_view_no_transactional_rewrite_2.q.out b/ql/src/test/results/clientnegative/materialized_view_no_transactional_rewrite_2.q.out new file mode 100644 index 0000000000..175f76a52b --- /dev/null +++ b/ql/src/test/results/clientnegative/materialized_view_no_transactional_rewrite_2.q.out @@ -0,0 +1,28 @@ +PREHOOK: query: create table cmv_basetable (a int, b varchar(256), c decimal(10,2)) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@cmv_basetable +POSTHOOK: query: create table cmv_basetable (a int, b varchar(256), c decimal(10,2)) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@cmv_basetable +PREHOOK: query: insert into cmv_basetable values (1, 'alfred', 10.30),(2, 'bob', 3.14),(2, 'bonnie', 172342.2),(3, 'calvin', 978.76),(3, 'charlie', 9.8) +PREHOOK: type: QUERY +PREHOOK: Output: default@cmv_basetable +POSTHOOK: query: insert into cmv_basetable values (1, 'alfred', 10.30),(2, 'bob', 3.14),(2, 'bonnie', 172342.2),(3, 'calvin', 978.76),(3, 'charlie', 9.8) +POSTHOOK: type: QUERY +POSTHOOK: Output: default@cmv_basetable +POSTHOOK: Lineage: cmv_basetable.a EXPRESSION [(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col1, type:string, comment:), ] +POSTHOOK: Lineage: cmv_basetable.b EXPRESSION [(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col2, type:string, comment:), ] +POSTHOOK: Lineage: cmv_basetable.c EXPRESSION [(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col3, type:string, comment:), ] +PREHOOK: query: create materialized view cmv_mat_view as select a, b, c from cmv_basetable +PREHOOK: type: CREATE_MATERIALIZED_VIEW +PREHOOK: Input: default@cmv_basetable +PREHOOK: Output: database:default +PREHOOK: Output: default@cmv_mat_view +POSTHOOK: query: create materialized view cmv_mat_view as select a, b, c from cmv_basetable +POSTHOOK: type: CREATE_MATERIALIZED_VIEW +POSTHOOK: Input: default@cmv_basetable +POSTHOOK: Output: database:default +POSTHOOK: Output: default@cmv_mat_view +FAILED: SemanticException Automatic rewriting for materialized view cannot be enabled if the materialized view uses non-transactional tables diff --git a/ql/src/test/results/clientpositive/materialized_view_create_rewrite.q.out b/ql/src/test/results/clientpositive/materialized_view_create_rewrite.q.out index 6db992128a..a55666d2bf 100644 --- a/ql/src/test/results/clientpositive/materialized_view_create_rewrite.q.out +++ b/ql/src/test/results/clientpositive/materialized_view_create_rewrite.q.out @@ -1,8 +1,8 @@ -PREHOOK: query: create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int) +PREHOOK: query: create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true') PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@cmv_basetable -POSTHOOK: query: create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int) +POSTHOOK: query: create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true') POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@cmv_basetable @@ -26,6 +26,16 @@ POSTHOOK: Lineage: cmv_basetable.a EXPRESSION [(values__tmp__table__1)values__tm POSTHOOK: Lineage: cmv_basetable.b EXPRESSION [(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col2, type:string, comment:), ] POSTHOOK: Lineage: cmv_basetable.c EXPRESSION [(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col3, type:string, comment:), ] POSTHOOK: Lineage: cmv_basetable.d EXPRESSION [(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col4, type:string, comment:), ] +PREHOOK: query: analyze table cmv_basetable compute statistics for columns +PREHOOK: type: QUERY +PREHOOK: Input: default@cmv_basetable +PREHOOK: Output: default@cmv_basetable +#### A masked pattern was here #### +POSTHOOK: query: analyze table cmv_basetable compute statistics for columns +POSTHOOK: type: QUERY +POSTHOOK: Input: default@cmv_basetable +POSTHOOK: Output: default@cmv_basetable +#### A masked pattern was here #### PREHOOK: query: create materialized view cmv_mat_view enable rewrite as select a, b, c from cmv_basetable where a = 2 PREHOOK: type: CREATE_MATERIALIZED_VIEW @@ -158,31 +168,31 @@ STAGE PLANS: Map Operator Tree: TableScan alias: cmv_basetable - Statistics: Num rows: 5 Data size: 81 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE Filter Operator predicate: (a = 3) (type: boolean) - Statistics: Num rows: 2 Data size: 32 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 2 Data size: 482 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: c (type: decimal(10,2)) outputColumnNames: _col0 - Statistics: Num rows: 2 Data size: 32 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 2 Data size: 482 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator sort order: - Statistics: Num rows: 2 Data size: 32 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 2 Data size: 482 Basic stats: COMPLETE Column stats: NONE value expressions: _col0 (type: decimal(10,2)) TableScan alias: cmv_basetable - Statistics: Num rows: 5 Data size: 81 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE Filter Operator predicate: ((3 = a) and (d = 3)) (type: boolean) - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 241 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: c (type: decimal(10,2)) outputColumnNames: _col0 - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 241 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator sort order: - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 241 Basic stats: COMPLETE Column stats: NONE value expressions: _col0 (type: decimal(10,2)) Reduce Operator Tree: Join Operator @@ -192,14 +202,14 @@ STAGE PLANS: 0 1 outputColumnNames: _col0, _col1 - Statistics: Num rows: 2 Data size: 66 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 2 Data size: 966 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: 3 (type: int), _col0 (type: decimal(10,2)), 3 (type: int), _col1 (type: decimal(10,2)) outputColumnNames: _col0, _col1, _col2, _col3 - Statistics: Num rows: 2 Data size: 66 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 2 Data size: 966 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 2 Data size: 66 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 2 Data size: 966 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -290,17 +300,17 @@ STAGE PLANS: value expressions: _col0 (type: decimal(10,2)) TableScan alias: cmv_basetable - Statistics: Num rows: 5 Data size: 81 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE Filter Operator predicate: ((3 = a) and (d = 3)) (type: boolean) - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 241 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: c (type: decimal(10,2)) outputColumnNames: _col0 - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 241 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator sort order: - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 241 Basic stats: COMPLETE Column stats: NONE value expressions: _col0 (type: decimal(10,2)) Reduce Operator Tree: Join Operator @@ -310,14 +320,14 @@ STAGE PLANS: 0 1 outputColumnNames: _col0, _col1 - Statistics: Num rows: 2 Data size: 266 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 2 Data size: 716 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: 3 (type: int), _col0 (type: decimal(10,2)), 3 (type: int), _col1 (type: decimal(10,2)) outputColumnNames: _col0, _col1, _col2, _col3 - Statistics: Num rows: 2 Data size: 266 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 2 Data size: 716 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 2 Data size: 266 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 2 Data size: 716 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -383,31 +393,31 @@ STAGE PLANS: Map Operator Tree: TableScan alias: cmv_basetable - Statistics: Num rows: 5 Data size: 81 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE Filter Operator predicate: (a = 3) (type: boolean) - Statistics: Num rows: 2 Data size: 32 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 2 Data size: 482 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: c (type: decimal(10,2)) outputColumnNames: _col0 - Statistics: Num rows: 2 Data size: 32 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 2 Data size: 482 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator sort order: - Statistics: Num rows: 2 Data size: 32 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 2 Data size: 482 Basic stats: COMPLETE Column stats: NONE value expressions: _col0 (type: decimal(10,2)) TableScan alias: cmv_basetable - Statistics: Num rows: 5 Data size: 81 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE Filter Operator predicate: ((3 = a) and (d = 3)) (type: boolean) - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 241 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: c (type: decimal(10,2)) outputColumnNames: _col0 - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 241 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator sort order: - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 241 Basic stats: COMPLETE Column stats: NONE value expressions: _col0 (type: decimal(10,2)) Reduce Operator Tree: Join Operator @@ -417,14 +427,14 @@ STAGE PLANS: 0 1 outputColumnNames: _col0, _col1 - Statistics: Num rows: 2 Data size: 66 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 2 Data size: 966 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: 3 (type: int), _col0 (type: decimal(10,2)), 3 (type: int), _col1 (type: decimal(10,2)) outputColumnNames: _col0, _col1, _col2, _col3 - Statistics: Num rows: 2 Data size: 66 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 2 Data size: 966 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 2 Data size: 66 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 2 Data size: 966 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat diff --git a/ql/src/test/results/clientpositive/materialized_view_create_rewrite_2.q.out b/ql/src/test/results/clientpositive/materialized_view_create_rewrite_2.q.out index 3d3e05d489..7fbdebeb23 100644 --- a/ql/src/test/results/clientpositive/materialized_view_create_rewrite_2.q.out +++ b/ql/src/test/results/clientpositive/materialized_view_create_rewrite_2.q.out @@ -1,8 +1,8 @@ -PREHOOK: query: create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int) +PREHOOK: query: create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true') PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@cmv_basetable -POSTHOOK: query: create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int) +POSTHOOK: query: create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true') POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@cmv_basetable @@ -26,6 +26,16 @@ POSTHOOK: Lineage: cmv_basetable.a EXPRESSION [(values__tmp__table__1)values__tm POSTHOOK: Lineage: cmv_basetable.b EXPRESSION [(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col2, type:string, comment:), ] POSTHOOK: Lineage: cmv_basetable.c EXPRESSION [(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col3, type:string, comment:), ] POSTHOOK: Lineage: cmv_basetable.d EXPRESSION [(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col4, type:string, comment:), ] +PREHOOK: query: analyze table cmv_basetable compute statistics for columns +PREHOOK: type: QUERY +PREHOOK: Input: default@cmv_basetable +PREHOOK: Output: default@cmv_basetable +#### A masked pattern was here #### +POSTHOOK: query: analyze table cmv_basetable compute statistics for columns +POSTHOOK: type: QUERY +POSTHOOK: Input: default@cmv_basetable +POSTHOOK: Output: default@cmv_basetable +#### A masked pattern was here #### PREHOOK: query: create materialized view cmv_mat_view enable rewrite as select b from cmv_basetable where c > 10.0 group by a, b, c PREHOOK: type: CREATE_MATERIALIZED_VIEW @@ -54,37 +64,37 @@ STAGE PLANS: Map Operator Tree: TableScan alias: cmv_basetable - Statistics: Num rows: 5 Data size: 81 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE Filter Operator predicate: (c > 20) (type: boolean) - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 241 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: a (type: int), b (type: varchar(256)) outputColumnNames: a, b - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 241 Basic stats: COMPLETE Column stats: NONE Group By Operator keys: a (type: int), b (type: varchar(256)) mode: hash outputColumnNames: _col0, _col1 - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 241 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int), _col1 (type: varchar(256)) sort order: ++ Map-reduce partition columns: _col0 (type: int), _col1 (type: varchar(256)) - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 241 Basic stats: COMPLETE Column stats: NONE Reduce Operator Tree: Group By Operator keys: KEY._col0 (type: int), KEY._col1 (type: varchar(256)) mode: mergepartial outputColumnNames: _col0, _col1 - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 241 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: _col1 (type: varchar(256)) outputColumnNames: _col0 - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 241 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 241 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -134,37 +144,37 @@ STAGE PLANS: Map Operator Tree: TableScan alias: cmv_basetable - Statistics: Num rows: 5 Data size: 81 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE Filter Operator predicate: (c > 20) (type: boolean) - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 241 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: a (type: int), b (type: varchar(256)) outputColumnNames: a, b - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 241 Basic stats: COMPLETE Column stats: NONE Group By Operator keys: a (type: int), b (type: varchar(256)) mode: hash outputColumnNames: _col0, _col1 - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 241 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int), _col1 (type: varchar(256)) sort order: ++ Map-reduce partition columns: _col0 (type: int), _col1 (type: varchar(256)) - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 241 Basic stats: COMPLETE Column stats: NONE Reduce Operator Tree: Group By Operator keys: KEY._col0 (type: int), KEY._col1 (type: varchar(256)) mode: mergepartial outputColumnNames: _col0, _col1 - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 241 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: _col1 (type: varchar(256)) outputColumnNames: _col0 - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 241 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 241 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -346,11 +356,11 @@ bob bonnie calvin charlie -PREHOOK: query: create table cmv_basetable_2 (a int, b varchar(256), c decimal(10,2), d int) +PREHOOK: query: create table cmv_basetable_2 (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true') PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@cmv_basetable_2 -POSTHOOK: query: create table cmv_basetable_2 (a int, b varchar(256), c decimal(10,2), d int) +POSTHOOK: query: create table cmv_basetable_2 (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true') POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@cmv_basetable_2 @@ -368,6 +378,16 @@ POSTHOOK: Lineage: cmv_basetable_2.a EXPRESSION [(values__tmp__table__2)values__ POSTHOOK: Lineage: cmv_basetable_2.b EXPRESSION [(values__tmp__table__2)values__tmp__table__2.FieldSchema(name:tmp_values_col2, type:string, comment:), ] POSTHOOK: Lineage: cmv_basetable_2.c EXPRESSION [(values__tmp__table__2)values__tmp__table__2.FieldSchema(name:tmp_values_col3, type:string, comment:), ] POSTHOOK: Lineage: cmv_basetable_2.d EXPRESSION [(values__tmp__table__2)values__tmp__table__2.FieldSchema(name:tmp_values_col4, type:string, comment:), ] +PREHOOK: query: analyze table cmv_basetable_2 compute statistics for columns +PREHOOK: type: QUERY +PREHOOK: Input: default@cmv_basetable_2 +PREHOOK: Output: default@cmv_basetable_2 +#### A masked pattern was here #### +POSTHOOK: query: analyze table cmv_basetable_2 compute statistics for columns +POSTHOOK: type: QUERY +POSTHOOK: Input: default@cmv_basetable_2 +POSTHOOK: Output: default@cmv_basetable_2 +#### A masked pattern was here #### PREHOOK: query: create materialized view cmv_mat_view_5 enable rewrite as select cmv_basetable.a, cmv_basetable_2.c from cmv_basetable join cmv_basetable_2 on (cmv_basetable.a = cmv_basetable_2.a) diff --git a/ql/src/test/results/clientpositive/materialized_view_create_rewrite_3.q.out b/ql/src/test/results/clientpositive/materialized_view_create_rewrite_3.q.out index f1cf95bd1b..a289877076 100644 --- a/ql/src/test/results/clientpositive/materialized_view_create_rewrite_3.q.out +++ b/ql/src/test/results/clientpositive/materialized_view_create_rewrite_3.q.out @@ -1,8 +1,8 @@ -PREHOOK: query: create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int) +PREHOOK: query: create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true') PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@cmv_basetable -POSTHOOK: query: create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int) +POSTHOOK: query: create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true') POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@cmv_basetable @@ -26,11 +26,21 @@ POSTHOOK: Lineage: cmv_basetable.a EXPRESSION [(values__tmp__table__1)values__tm POSTHOOK: Lineage: cmv_basetable.b EXPRESSION [(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col2, type:string, comment:), ] POSTHOOK: Lineage: cmv_basetable.c EXPRESSION [(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col3, type:string, comment:), ] POSTHOOK: Lineage: cmv_basetable.d EXPRESSION [(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col4, type:string, comment:), ] -PREHOOK: query: create table cmv_basetable_2 (a int, b varchar(256), c decimal(10,2), d int) +PREHOOK: query: analyze table cmv_basetable compute statistics for columns +PREHOOK: type: QUERY +PREHOOK: Input: default@cmv_basetable +PREHOOK: Output: default@cmv_basetable +#### A masked pattern was here #### +POSTHOOK: query: analyze table cmv_basetable compute statistics for columns +POSTHOOK: type: QUERY +POSTHOOK: Input: default@cmv_basetable +POSTHOOK: Output: default@cmv_basetable +#### A masked pattern was here #### +PREHOOK: query: create table cmv_basetable_2 (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true') PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@cmv_basetable_2 -POSTHOOK: query: create table cmv_basetable_2 (a int, b varchar(256), c decimal(10,2), d int) +POSTHOOK: query: create table cmv_basetable_2 (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true') POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@cmv_basetable_2 @@ -48,6 +58,16 @@ POSTHOOK: Lineage: cmv_basetable_2.a EXPRESSION [(values__tmp__table__2)values__ POSTHOOK: Lineage: cmv_basetable_2.b EXPRESSION [(values__tmp__table__2)values__tmp__table__2.FieldSchema(name:tmp_values_col2, type:string, comment:), ] POSTHOOK: Lineage: cmv_basetable_2.c EXPRESSION [(values__tmp__table__2)values__tmp__table__2.FieldSchema(name:tmp_values_col3, type:string, comment:), ] POSTHOOK: Lineage: cmv_basetable_2.d EXPRESSION [(values__tmp__table__2)values__tmp__table__2.FieldSchema(name:tmp_values_col4, type:string, comment:), ] +PREHOOK: query: analyze table cmv_basetable_2 compute statistics for columns +PREHOOK: type: QUERY +PREHOOK: Input: default@cmv_basetable_2 +PREHOOK: Output: default@cmv_basetable_2 +#### A masked pattern was here #### +POSTHOOK: query: analyze table cmv_basetable_2 compute statistics for columns +POSTHOOK: type: QUERY +POSTHOOK: Input: default@cmv_basetable_2 +POSTHOOK: Output: default@cmv_basetable_2 +#### A masked pattern was here #### PREHOOK: query: EXPLAIN CREATE MATERIALIZED VIEW cmv_mat_view ENABLE REWRITE AS SELECT cmv_basetable.a, cmv_basetable_2.c @@ -75,34 +95,34 @@ STAGE PLANS: Map Operator Tree: TableScan alias: cmv_basetable - Statistics: Num rows: 5 Data size: 81 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE Filter Operator predicate: a is not null (type: boolean) - Statistics: Num rows: 5 Data size: 81 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: a (type: int) outputColumnNames: _col0 - Statistics: Num rows: 5 Data size: 81 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + Map-reduce partition columns: _col0 (type: int) - Statistics: Num rows: 5 Data size: 81 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE TableScan alias: cmv_basetable_2 - Statistics: Num rows: 2 Data size: 33 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 2 Data size: 484 Basic stats: COMPLETE Column stats: NONE Filter Operator predicate: ((c > 10) and a is not null) (type: boolean) - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: a (type: int), c (type: decimal(10,2)) outputColumnNames: _col0, _col1 - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + Map-reduce partition columns: _col0 (type: int) - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: decimal(10,2)) Reduce Operator Tree: Join Operator @@ -112,12 +132,12 @@ STAGE PLANS: 0 _col0 (type: int) 1 _col0 (type: int) outputColumnNames: _col0, _col2 - Statistics: Num rows: 5 Data size: 89 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE Group By Operator keys: _col0 (type: int), _col2 (type: decimal(10,2)) mode: hash outputColumnNames: _col0, _col1 - Statistics: Num rows: 5 Data size: 89 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false table: @@ -133,16 +153,16 @@ STAGE PLANS: key expressions: _col0 (type: int), _col1 (type: decimal(10,2)) sort order: ++ Map-reduce partition columns: _col0 (type: int), _col1 (type: decimal(10,2)) - Statistics: Num rows: 5 Data size: 89 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE Reduce Operator Tree: Group By Operator keys: KEY._col0 (type: int), KEY._col1 (type: decimal(10,2)) mode: mergepartial outputColumnNames: _col0, _col1 - Statistics: Num rows: 2 Data size: 35 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 2 Data size: 530 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 2 Data size: 35 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 2 Data size: 530 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 @@ -270,6 +290,16 @@ POSTHOOK: Lineage: cmv_basetable_2.a EXPRESSION [(values__tmp__table__3)values__ POSTHOOK: Lineage: cmv_basetable_2.b EXPRESSION [(values__tmp__table__3)values__tmp__table__3.FieldSchema(name:tmp_values_col2, type:string, comment:), ] POSTHOOK: Lineage: cmv_basetable_2.c EXPRESSION [(values__tmp__table__3)values__tmp__table__3.FieldSchema(name:tmp_values_col3, type:string, comment:), ] POSTHOOK: Lineage: cmv_basetable_2.d EXPRESSION [(values__tmp__table__3)values__tmp__table__3.FieldSchema(name:tmp_values_col4, type:string, comment:), ] +PREHOOK: query: analyze table cmv_basetable_2 compute statistics for columns +PREHOOK: type: QUERY +PREHOOK: Input: default@cmv_basetable_2 +PREHOOK: Output: default@cmv_basetable_2 +#### A masked pattern was here #### +POSTHOOK: query: analyze table cmv_basetable_2 compute statistics for columns +POSTHOOK: type: QUERY +POSTHOOK: Input: default@cmv_basetable_2 +POSTHOOK: Output: default@cmv_basetable_2 +#### A masked pattern was here #### PREHOOK: query: EXPLAIN SELECT cmv_basetable.a FROM cmv_basetable join cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) @@ -284,29 +314,91 @@ GROUP BY cmv_basetable.a, cmv_basetable_2.c POSTHOOK: type: QUERY STAGE DEPENDENCIES: Stage-1 is a root stage - Stage-0 depends on stages: Stage-1 + Stage-2 depends on stages: Stage-1 + Stage-0 depends on stages: Stage-2 STAGE PLANS: Stage: Stage-1 Map Reduce Map Operator Tree: TableScan - alias: default.cmv_mat_view - Statistics: Num rows: 2 Data size: 232 Basic stats: COMPLETE Column stats: NONE + alias: cmv_basetable + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE Filter Operator - predicate: (c > 10.1) (type: boolean) - Statistics: Num rows: 1 Data size: 116 Basic stats: COMPLETE Column stats: NONE + predicate: a is not null (type: boolean) + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: a (type: int) outputColumnNames: _col0 - Statistics: Num rows: 1 Data size: 116 Basic stats: COMPLETE Column stats: NONE - File Output Operator - compressed: false - Statistics: Num rows: 1 Data size: 116 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 + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + Reduce Output Operator + key expressions: _col0 (type: int) + sort order: + + Map-reduce partition columns: _col0 (type: int) + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + TableScan + alias: cmv_basetable_2 + Statistics: Num rows: 3 Data size: 727 Basic stats: COMPLETE Column stats: NONE + Filter Operator + predicate: ((c > 10.1) and a is not null) (type: boolean) + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE + Select Operator + expressions: a (type: int), c (type: decimal(10,2)) + outputColumnNames: _col0, _col1 + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE + Reduce Output Operator + key expressions: _col0 (type: int) + sort order: + + Map-reduce partition columns: _col0 (type: int) + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE + value expressions: _col1 (type: decimal(10,2)) + Reduce Operator Tree: + Join Operator + condition map: + Inner Join 0 to 1 + keys: + 0 _col0 (type: int) + 1 _col0 (type: int) + outputColumnNames: _col0, _col2 + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE + Group By Operator + keys: _col0 (type: int), _col2 (type: decimal(10,2)) + mode: hash + outputColumnNames: _col0, _col1 + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE + File Output Operator + compressed: false + table: + input format: org.apache.hadoop.mapred.SequenceFileInputFormat + output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat + serde: org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe + + Stage: Stage-2 + Map Reduce + Map Operator Tree: + TableScan + Reduce Output Operator + key expressions: _col0 (type: int), _col1 (type: decimal(10,2)) + sort order: ++ + Map-reduce partition columns: _col0 (type: int), _col1 (type: decimal(10,2)) + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE + Reduce Operator Tree: + Group By Operator + keys: KEY._col0 (type: int), KEY._col1 (type: decimal(10,2)) + mode: mergepartial + outputColumnNames: _col0, _col1 + Statistics: Num rows: 2 Data size: 530 Basic stats: COMPLETE Column stats: NONE + Select Operator + expressions: _col0 (type: int) + outputColumnNames: _col0 + Statistics: Num rows: 2 Data size: 530 Basic stats: COMPLETE Column stats: NONE + File Output Operator + compressed: false + Statistics: Num rows: 2 Data size: 530 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 @@ -321,7 +413,6 @@ GROUP BY cmv_basetable.a, cmv_basetable_2.c PREHOOK: type: QUERY PREHOOK: Input: default@cmv_basetable PREHOOK: Input: default@cmv_basetable_2 -PREHOOK: Input: default@cmv_mat_view #### A masked pattern was here #### POSTHOOK: query: SELECT cmv_basetable.a FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) @@ -330,10 +421,10 @@ GROUP BY cmv_basetable.a, cmv_basetable_2.c POSTHOOK: type: QUERY POSTHOOK: Input: default@cmv_basetable POSTHOOK: Input: default@cmv_basetable_2 -POSTHOOK: Input: default@cmv_mat_view #### A masked pattern was here #### 1 3 +3 PREHOOK: query: EXPLAIN ALTER MATERIALIZED VIEW cmv_mat_view REBUILD PREHOOK: type: CREATE_MATERIALIZED_VIEW @@ -353,34 +444,34 @@ STAGE PLANS: Map Operator Tree: TableScan alias: cmv_basetable - Statistics: Num rows: 5 Data size: 81 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE Filter Operator predicate: a is not null (type: boolean) - Statistics: Num rows: 5 Data size: 81 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: a (type: int) outputColumnNames: _col0 - Statistics: Num rows: 5 Data size: 81 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + Map-reduce partition columns: _col0 (type: int) - Statistics: Num rows: 5 Data size: 81 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE TableScan alias: cmv_basetable_2 - Statistics: Num rows: 3 Data size: 50 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 3 Data size: 727 Basic stats: COMPLETE Column stats: NONE Filter Operator predicate: ((c > 10) and a is not null) (type: boolean) - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: a (type: int), c (type: decimal(10,2)) outputColumnNames: _col0, _col1 - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + Map-reduce partition columns: _col0 (type: int) - Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: decimal(10,2)) Reduce Operator Tree: Join Operator @@ -390,12 +481,12 @@ STAGE PLANS: 0 _col0 (type: int) 1 _col0 (type: int) outputColumnNames: _col0, _col2 - Statistics: Num rows: 5 Data size: 89 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE Group By Operator keys: _col0 (type: int), _col2 (type: decimal(10,2)) mode: hash outputColumnNames: _col0, _col1 - Statistics: Num rows: 5 Data size: 89 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false table: @@ -411,16 +502,16 @@ STAGE PLANS: key expressions: _col0 (type: int), _col1 (type: decimal(10,2)) sort order: ++ Map-reduce partition columns: _col0 (type: int), _col1 (type: decimal(10,2)) - Statistics: Num rows: 5 Data size: 89 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE Reduce Operator Tree: Group By Operator keys: KEY._col0 (type: int), KEY._col1 (type: decimal(10,2)) mode: mergepartial outputColumnNames: _col0, _col1 - Statistics: Num rows: 2 Data size: 35 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 2 Data size: 530 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 2 Data size: 35 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 2 Data size: 530 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 @@ -521,6 +612,307 @@ POSTHOOK: Input: default@cmv_mat_view 1 3 3 +PREHOOK: query: DELETE FROM cmv_basetable_2 WHERE a = 3 +PREHOOK: type: QUERY +PREHOOK: Input: default@cmv_basetable_2 +PREHOOK: Output: default@cmv_basetable_2 +POSTHOOK: query: DELETE FROM cmv_basetable_2 WHERE a = 3 +POSTHOOK: type: QUERY +POSTHOOK: Input: default@cmv_basetable_2 +POSTHOOK: Output: default@cmv_basetable_2 +PREHOOK: query: EXPLAIN +SELECT cmv_basetable.a +FROM cmv_basetable join cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +PREHOOK: type: QUERY +POSTHOOK: query: EXPLAIN +SELECT cmv_basetable.a +FROM cmv_basetable join cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +POSTHOOK: type: QUERY +STAGE DEPENDENCIES: + Stage-1 is a root stage + Stage-2 depends on stages: Stage-1 + Stage-0 depends on stages: Stage-2 + +STAGE PLANS: + Stage: Stage-1 + Map Reduce + Map Operator Tree: + TableScan + alias: cmv_basetable + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + Filter Operator + predicate: a is not null (type: boolean) + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + Select Operator + expressions: a (type: int) + outputColumnNames: _col0 + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + Reduce Output Operator + key expressions: _col0 (type: int) + sort order: + + Map-reduce partition columns: _col0 (type: int) + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + TableScan + alias: cmv_basetable_2 + Statistics: Num rows: 3 Data size: 727 Basic stats: COMPLETE Column stats: NONE + Filter Operator + predicate: ((c > 10.1) and a is not null) (type: boolean) + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE + Select Operator + expressions: a (type: int), c (type: decimal(10,2)) + outputColumnNames: _col0, _col1 + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE + Reduce Output Operator + key expressions: _col0 (type: int) + sort order: + + Map-reduce partition columns: _col0 (type: int) + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE + value expressions: _col1 (type: decimal(10,2)) + Reduce Operator Tree: + Join Operator + condition map: + Inner Join 0 to 1 + keys: + 0 _col0 (type: int) + 1 _col0 (type: int) + outputColumnNames: _col0, _col2 + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE + Group By Operator + keys: _col0 (type: int), _col2 (type: decimal(10,2)) + mode: hash + outputColumnNames: _col0, _col1 + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE + File Output Operator + compressed: false + table: + input format: org.apache.hadoop.mapred.SequenceFileInputFormat + output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat + serde: org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe + + Stage: Stage-2 + Map Reduce + Map Operator Tree: + TableScan + Reduce Output Operator + key expressions: _col0 (type: int), _col1 (type: decimal(10,2)) + sort order: ++ + Map-reduce partition columns: _col0 (type: int), _col1 (type: decimal(10,2)) + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE + Reduce Operator Tree: + Group By Operator + keys: KEY._col0 (type: int), KEY._col1 (type: decimal(10,2)) + mode: mergepartial + outputColumnNames: _col0, _col1 + Statistics: Num rows: 2 Data size: 530 Basic stats: COMPLETE Column stats: NONE + Select Operator + expressions: _col0 (type: int) + outputColumnNames: _col0 + Statistics: Num rows: 2 Data size: 530 Basic stats: COMPLETE Column stats: NONE + File Output Operator + compressed: false + Statistics: Num rows: 2 Data size: 530 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 cmv_basetable.a +FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +PREHOOK: type: QUERY +PREHOOK: Input: default@cmv_basetable +PREHOOK: Input: default@cmv_basetable_2 +#### A masked pattern was here #### +POSTHOOK: query: SELECT cmv_basetable.a +FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +POSTHOOK: type: QUERY +POSTHOOK: Input: default@cmv_basetable +POSTHOOK: Input: default@cmv_basetable_2 +#### A masked pattern was here #### +1 +PREHOOK: query: ALTER MATERIALIZED VIEW cmv_mat_view REBUILD +PREHOOK: type: CREATE_MATERIALIZED_VIEW +PREHOOK: Input: default@cmv_basetable +PREHOOK: Input: default@cmv_basetable_2 +PREHOOK: Output: database:default +PREHOOK: Output: default@cmv_mat_view +POSTHOOK: query: ALTER MATERIALIZED VIEW cmv_mat_view REBUILD +POSTHOOK: type: CREATE_MATERIALIZED_VIEW +POSTHOOK: Input: default@cmv_basetable +POSTHOOK: Input: default@cmv_basetable_2 +POSTHOOK: Output: database:default +POSTHOOK: Output: default@cmv_mat_view +PREHOOK: query: EXPLAIN +SELECT cmv_basetable.a +FROM cmv_basetable join cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +PREHOOK: type: QUERY +POSTHOOK: query: EXPLAIN +SELECT cmv_basetable.a +FROM cmv_basetable join cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +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: default.cmv_mat_view + Statistics: Num rows: 1 Data size: 116 Basic stats: COMPLETE Column stats: NONE + Filter Operator + predicate: (c > 10.1) (type: boolean) + Statistics: Num rows: 1 Data size: 116 Basic stats: COMPLETE Column stats: NONE + Select Operator + expressions: a (type: int) + outputColumnNames: _col0 + Statistics: Num rows: 1 Data size: 116 Basic stats: COMPLETE Column stats: NONE + File Output Operator + compressed: false + Statistics: Num rows: 1 Data size: 116 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 cmv_basetable.a +FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +PREHOOK: type: QUERY +PREHOOK: Input: default@cmv_basetable +PREHOOK: Input: default@cmv_basetable_2 +PREHOOK: Input: default@cmv_mat_view +#### A masked pattern was here #### +POSTHOOK: query: SELECT cmv_basetable.a +FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +POSTHOOK: type: QUERY +POSTHOOK: Input: default@cmv_basetable +POSTHOOK: Input: default@cmv_basetable_2 +POSTHOOK: Input: default@cmv_mat_view +#### A masked pattern was here #### +1 +PREHOOK: query: create table cmv_irrelevant_table (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true') +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@cmv_irrelevant_table +POSTHOOK: query: create table cmv_irrelevant_table (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true') +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@cmv_irrelevant_table +PREHOOK: query: insert into cmv_irrelevant_table values + (1, 'alfred', 10.30, 2), + (3, 'charlie', 9.8, 1) +PREHOOK: type: QUERY +PREHOOK: Output: default@cmv_irrelevant_table +POSTHOOK: query: insert into cmv_irrelevant_table values + (1, 'alfred', 10.30, 2), + (3, 'charlie', 9.8, 1) +POSTHOOK: type: QUERY +POSTHOOK: Output: default@cmv_irrelevant_table +POSTHOOK: Lineage: cmv_irrelevant_table.a EXPRESSION [(values__tmp__table__4)values__tmp__table__4.FieldSchema(name:tmp_values_col1, type:string, comment:), ] +POSTHOOK: Lineage: cmv_irrelevant_table.b EXPRESSION [(values__tmp__table__4)values__tmp__table__4.FieldSchema(name:tmp_values_col2, type:string, comment:), ] +POSTHOOK: Lineage: cmv_irrelevant_table.c EXPRESSION [(values__tmp__table__4)values__tmp__table__4.FieldSchema(name:tmp_values_col3, type:string, comment:), ] +POSTHOOK: Lineage: cmv_irrelevant_table.d EXPRESSION [(values__tmp__table__4)values__tmp__table__4.FieldSchema(name:tmp_values_col4, type:string, comment:), ] +PREHOOK: query: analyze table cmv_irrelevant_table compute statistics for columns +PREHOOK: type: QUERY +PREHOOK: Input: default@cmv_irrelevant_table +PREHOOK: Output: default@cmv_irrelevant_table +#### A masked pattern was here #### +POSTHOOK: query: analyze table cmv_irrelevant_table compute statistics for columns +POSTHOOK: type: QUERY +POSTHOOK: Input: default@cmv_irrelevant_table +POSTHOOK: Output: default@cmv_irrelevant_table +#### A masked pattern was here #### +PREHOOK: query: EXPLAIN +SELECT cmv_basetable.a +FROM cmv_basetable join cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +PREHOOK: type: QUERY +POSTHOOK: query: EXPLAIN +SELECT cmv_basetable.a +FROM cmv_basetable join cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +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: default.cmv_mat_view + Statistics: Num rows: 1 Data size: 116 Basic stats: COMPLETE Column stats: NONE + Filter Operator + predicate: (c > 10.1) (type: boolean) + Statistics: Num rows: 1 Data size: 116 Basic stats: COMPLETE Column stats: NONE + Select Operator + expressions: a (type: int) + outputColumnNames: _col0 + Statistics: Num rows: 1 Data size: 116 Basic stats: COMPLETE Column stats: NONE + File Output Operator + compressed: false + Statistics: Num rows: 1 Data size: 116 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 cmv_basetable.a +FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +PREHOOK: type: QUERY +PREHOOK: Input: default@cmv_basetable +PREHOOK: Input: default@cmv_basetable_2 +PREHOOK: Input: default@cmv_mat_view +#### A masked pattern was here #### +POSTHOOK: query: SELECT cmv_basetable.a +FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +POSTHOOK: type: QUERY +POSTHOOK: Input: default@cmv_basetable +POSTHOOK: Input: default@cmv_basetable_2 +POSTHOOK: Input: default@cmv_mat_view +#### A masked pattern was here #### +1 PREHOOK: query: drop materialized view cmv_mat_view PREHOOK: type: DROP_MATERIALIZED_VIEW PREHOOK: Input: default@cmv_mat_view @@ -529,3 +921,126 @@ POSTHOOK: query: drop materialized view cmv_mat_view POSTHOOK: type: DROP_MATERIALIZED_VIEW POSTHOOK: Input: default@cmv_mat_view POSTHOOK: Output: default@cmv_mat_view +PREHOOK: query: EXPLAIN +SELECT cmv_basetable.a +FROM cmv_basetable join cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +PREHOOK: type: QUERY +POSTHOOK: query: EXPLAIN +SELECT cmv_basetable.a +FROM cmv_basetable join cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +POSTHOOK: type: QUERY +STAGE DEPENDENCIES: + Stage-1 is a root stage + Stage-2 depends on stages: Stage-1 + Stage-0 depends on stages: Stage-2 + +STAGE PLANS: + Stage: Stage-1 + Map Reduce + Map Operator Tree: + TableScan + alias: cmv_basetable + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + Filter Operator + predicate: a is not null (type: boolean) + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + Select Operator + expressions: a (type: int) + outputColumnNames: _col0 + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + Reduce Output Operator + key expressions: _col0 (type: int) + sort order: + + Map-reduce partition columns: _col0 (type: int) + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + TableScan + alias: cmv_basetable_2 + Statistics: Num rows: 3 Data size: 727 Basic stats: COMPLETE Column stats: NONE + Filter Operator + predicate: ((c > 10.1) and a is not null) (type: boolean) + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE + Select Operator + expressions: a (type: int), c (type: decimal(10,2)) + outputColumnNames: _col0, _col1 + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE + Reduce Output Operator + key expressions: _col0 (type: int) + sort order: + + Map-reduce partition columns: _col0 (type: int) + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE + value expressions: _col1 (type: decimal(10,2)) + Reduce Operator Tree: + Join Operator + condition map: + Inner Join 0 to 1 + keys: + 0 _col0 (type: int) + 1 _col0 (type: int) + outputColumnNames: _col0, _col2 + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE + Group By Operator + keys: _col0 (type: int), _col2 (type: decimal(10,2)) + mode: hash + outputColumnNames: _col0, _col1 + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE + File Output Operator + compressed: false + table: + input format: org.apache.hadoop.mapred.SequenceFileInputFormat + output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat + serde: org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe + + Stage: Stage-2 + Map Reduce + Map Operator Tree: + TableScan + Reduce Output Operator + key expressions: _col0 (type: int), _col1 (type: decimal(10,2)) + sort order: ++ + Map-reduce partition columns: _col0 (type: int), _col1 (type: decimal(10,2)) + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE + Reduce Operator Tree: + Group By Operator + keys: KEY._col0 (type: int), KEY._col1 (type: decimal(10,2)) + mode: mergepartial + outputColumnNames: _col0, _col1 + Statistics: Num rows: 2 Data size: 530 Basic stats: COMPLETE Column stats: NONE + Select Operator + expressions: _col0 (type: int) + outputColumnNames: _col0 + Statistics: Num rows: 2 Data size: 530 Basic stats: COMPLETE Column stats: NONE + File Output Operator + compressed: false + Statistics: Num rows: 2 Data size: 530 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 cmv_basetable.a +FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +PREHOOK: type: QUERY +PREHOOK: Input: default@cmv_basetable +PREHOOK: Input: default@cmv_basetable_2 +#### A masked pattern was here #### +POSTHOOK: query: SELECT cmv_basetable.a +FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +POSTHOOK: type: QUERY +POSTHOOK: Input: default@cmv_basetable +POSTHOOK: Input: default@cmv_basetable_2 +#### A masked pattern was here #### +1 diff --git a/ql/src/test/results/clientpositive/materialized_view_create_rewrite_4.q.out b/ql/src/test/results/clientpositive/materialized_view_create_rewrite_4.q.out new file mode 100644 index 0000000000..7880fe8f12 --- /dev/null +++ b/ql/src/test/results/clientpositive/materialized_view_create_rewrite_4.q.out @@ -0,0 +1,705 @@ +PREHOOK: query: create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true') +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@cmv_basetable +POSTHOOK: query: create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true') +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@cmv_basetable +PREHOOK: query: insert into cmv_basetable values + (1, 'alfred', 10.30, 2), + (2, 'bob', 3.14, 3), + (2, 'bonnie', 172342.2, 3), + (3, 'calvin', 978.76, 3), + (3, 'charlie', 9.8, 1) +PREHOOK: type: QUERY +PREHOOK: Output: default@cmv_basetable +POSTHOOK: query: insert into cmv_basetable values + (1, 'alfred', 10.30, 2), + (2, 'bob', 3.14, 3), + (2, 'bonnie', 172342.2, 3), + (3, 'calvin', 978.76, 3), + (3, 'charlie', 9.8, 1) +POSTHOOK: type: QUERY +POSTHOOK: Output: default@cmv_basetable +POSTHOOK: Lineage: cmv_basetable.a EXPRESSION [(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col1, type:string, comment:), ] +POSTHOOK: Lineage: cmv_basetable.b EXPRESSION [(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col2, type:string, comment:), ] +POSTHOOK: Lineage: cmv_basetable.c EXPRESSION [(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col3, type:string, comment:), ] +POSTHOOK: Lineage: cmv_basetable.d EXPRESSION [(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col4, type:string, comment:), ] +PREHOOK: query: analyze table cmv_basetable compute statistics for columns +PREHOOK: type: QUERY +PREHOOK: Input: default@cmv_basetable +PREHOOK: Output: default@cmv_basetable +#### A masked pattern was here #### +POSTHOOK: query: analyze table cmv_basetable compute statistics for columns +POSTHOOK: type: QUERY +POSTHOOK: Input: default@cmv_basetable +POSTHOOK: Output: default@cmv_basetable +#### A masked pattern was here #### +PREHOOK: query: create table cmv_basetable_2 (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true') +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@cmv_basetable_2 +POSTHOOK: query: create table cmv_basetable_2 (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true') +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@cmv_basetable_2 +PREHOOK: query: insert into cmv_basetable_2 values + (1, 'alfred', 10.30, 2), + (3, 'calvin', 978.76, 3) +PREHOOK: type: QUERY +PREHOOK: Output: default@cmv_basetable_2 +POSTHOOK: query: insert into cmv_basetable_2 values + (1, 'alfred', 10.30, 2), + (3, 'calvin', 978.76, 3) +POSTHOOK: type: QUERY +POSTHOOK: Output: default@cmv_basetable_2 +POSTHOOK: Lineage: cmv_basetable_2.a EXPRESSION [(values__tmp__table__2)values__tmp__table__2.FieldSchema(name:tmp_values_col1, type:string, comment:), ] +POSTHOOK: Lineage: cmv_basetable_2.b EXPRESSION [(values__tmp__table__2)values__tmp__table__2.FieldSchema(name:tmp_values_col2, type:string, comment:), ] +POSTHOOK: Lineage: cmv_basetable_2.c EXPRESSION [(values__tmp__table__2)values__tmp__table__2.FieldSchema(name:tmp_values_col3, type:string, comment:), ] +POSTHOOK: Lineage: cmv_basetable_2.d EXPRESSION [(values__tmp__table__2)values__tmp__table__2.FieldSchema(name:tmp_values_col4, type:string, comment:), ] +PREHOOK: query: analyze table cmv_basetable_2 compute statistics for columns +PREHOOK: type: QUERY +PREHOOK: Input: default@cmv_basetable_2 +PREHOOK: Output: default@cmv_basetable_2 +#### A masked pattern was here #### +POSTHOOK: query: analyze table cmv_basetable_2 compute statistics for columns +POSTHOOK: type: QUERY +POSTHOOK: Input: default@cmv_basetable_2 +POSTHOOK: Output: default@cmv_basetable_2 +#### A masked pattern was here #### +PREHOOK: query: EXPLAIN +CREATE MATERIALIZED VIEW cmv_mat_view AS + SELECT cmv_basetable.a, cmv_basetable_2.c + FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) + WHERE cmv_basetable_2.c > 10.0 + GROUP BY cmv_basetable.a, cmv_basetable_2.c +PREHOOK: type: CREATE_MATERIALIZED_VIEW +POSTHOOK: query: EXPLAIN +CREATE MATERIALIZED VIEW cmv_mat_view AS + SELECT cmv_basetable.a, cmv_basetable_2.c + FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) + WHERE cmv_basetable_2.c > 10.0 + GROUP BY cmv_basetable.a, cmv_basetable_2.c +POSTHOOK: type: CREATE_MATERIALIZED_VIEW +STAGE DEPENDENCIES: + Stage-1 is a root stage + Stage-2 depends on stages: Stage-1 + Stage-0 depends on stages: Stage-2 + Stage-5 depends on stages: Stage-0 + Stage-3 depends on stages: Stage-5 + +STAGE PLANS: + Stage: Stage-1 + Map Reduce + Map Operator Tree: + TableScan + alias: cmv_basetable + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + Filter Operator + predicate: a is not null (type: boolean) + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + Select Operator + expressions: a (type: int) + outputColumnNames: _col0 + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + Reduce Output Operator + key expressions: _col0 (type: int) + sort order: + + Map-reduce partition columns: _col0 (type: int) + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + TableScan + alias: cmv_basetable_2 + Statistics: Num rows: 2 Data size: 484 Basic stats: COMPLETE Column stats: NONE + Filter Operator + predicate: ((c > 10) and a is not null) (type: boolean) + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE + Select Operator + expressions: a (type: int), c (type: decimal(10,2)) + outputColumnNames: _col0, _col1 + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE + Reduce Output Operator + key expressions: _col0 (type: int) + sort order: + + Map-reduce partition columns: _col0 (type: int) + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE + value expressions: _col1 (type: decimal(10,2)) + Reduce Operator Tree: + Join Operator + condition map: + Inner Join 0 to 1 + keys: + 0 _col0 (type: int) + 1 _col0 (type: int) + outputColumnNames: _col0, _col2 + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE + Group By Operator + keys: _col0 (type: int), _col2 (type: decimal(10,2)) + mode: hash + outputColumnNames: _col0, _col1 + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE + File Output Operator + compressed: false + table: + input format: org.apache.hadoop.mapred.SequenceFileInputFormat + output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat + serde: org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe + + Stage: Stage-2 + Map Reduce + Map Operator Tree: + TableScan + Reduce Output Operator + key expressions: _col0 (type: int), _col1 (type: decimal(10,2)) + sort order: ++ + Map-reduce partition columns: _col0 (type: int), _col1 (type: decimal(10,2)) + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE + Reduce Operator Tree: + Group By Operator + keys: KEY._col0 (type: int), KEY._col1 (type: decimal(10,2)) + mode: mergepartial + outputColumnNames: _col0, _col1 + Statistics: Num rows: 2 Data size: 530 Basic stats: COMPLETE Column stats: NONE + File Output Operator + compressed: false + Statistics: Num rows: 2 Data size: 530 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.cmv_mat_view + + Stage: Stage-0 + Move Operator + files: + hdfs directory: true +#### A masked pattern was here #### + + Stage: Stage-5 + Create View Operator: + Create View + columns: a int, c decimal(10,2) + expanded text: SELECT `cmv_basetable`.`a`, `cmv_basetable_2`.`c` + FROM `default`.`cmv_basetable` JOIN `default`.`cmv_basetable_2` ON (`cmv_basetable`.`a` = `cmv_basetable_2`.`a`) + WHERE `cmv_basetable_2`.`c` > 10.0 + GROUP BY `cmv_basetable`.`a`, `cmv_basetable_2`.`c` + name: default.cmv_mat_view + original text: SELECT cmv_basetable.a, cmv_basetable_2.c + FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) + WHERE cmv_basetable_2.c > 10.0 + GROUP BY cmv_basetable.a, cmv_basetable_2.c + + Stage: Stage-3 + Stats Work + Basic Stats Work: + +PREHOOK: query: CREATE MATERIALIZED VIEW cmv_mat_view AS + SELECT cmv_basetable.a, cmv_basetable_2.c + FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) + WHERE cmv_basetable_2.c > 10.0 + GROUP BY cmv_basetable.a, cmv_basetable_2.c +PREHOOK: type: CREATE_MATERIALIZED_VIEW +PREHOOK: Input: default@cmv_basetable +PREHOOK: Input: default@cmv_basetable_2 +PREHOOK: Output: database:default +PREHOOK: Output: default@cmv_mat_view +POSTHOOK: query: CREATE MATERIALIZED VIEW cmv_mat_view AS + SELECT cmv_basetable.a, cmv_basetable_2.c + FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) + WHERE cmv_basetable_2.c > 10.0 + GROUP BY cmv_basetable.a, cmv_basetable_2.c +POSTHOOK: type: CREATE_MATERIALIZED_VIEW +POSTHOOK: Input: default@cmv_basetable +POSTHOOK: Input: default@cmv_basetable_2 +POSTHOOK: Output: database:default +POSTHOOK: Output: default@cmv_mat_view +PREHOOK: query: EXPLAIN +SELECT cmv_basetable.a +FROM cmv_basetable join cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +PREHOOK: type: QUERY +POSTHOOK: query: EXPLAIN +SELECT cmv_basetable.a +FROM cmv_basetable join cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +POSTHOOK: type: QUERY +STAGE DEPENDENCIES: + Stage-1 is a root stage + Stage-2 depends on stages: Stage-1 + Stage-0 depends on stages: Stage-2 + +STAGE PLANS: + Stage: Stage-1 + Map Reduce + Map Operator Tree: + TableScan + alias: cmv_basetable + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + Filter Operator + predicate: a is not null (type: boolean) + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + Select Operator + expressions: a (type: int) + outputColumnNames: _col0 + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + Reduce Output Operator + key expressions: _col0 (type: int) + sort order: + + Map-reduce partition columns: _col0 (type: int) + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + TableScan + alias: cmv_basetable_2 + Statistics: Num rows: 2 Data size: 484 Basic stats: COMPLETE Column stats: NONE + Filter Operator + predicate: ((c > 10.1) and a is not null) (type: boolean) + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE + Select Operator + expressions: a (type: int), c (type: decimal(10,2)) + outputColumnNames: _col0, _col1 + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE + Reduce Output Operator + key expressions: _col0 (type: int) + sort order: + + Map-reduce partition columns: _col0 (type: int) + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE + value expressions: _col1 (type: decimal(10,2)) + Reduce Operator Tree: + Join Operator + condition map: + Inner Join 0 to 1 + keys: + 0 _col0 (type: int) + 1 _col0 (type: int) + outputColumnNames: _col0, _col2 + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE + Group By Operator + keys: _col0 (type: int), _col2 (type: decimal(10,2)) + mode: hash + outputColumnNames: _col0, _col1 + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE + File Output Operator + compressed: false + table: + input format: org.apache.hadoop.mapred.SequenceFileInputFormat + output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat + serde: org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe + + Stage: Stage-2 + Map Reduce + Map Operator Tree: + TableScan + Reduce Output Operator + key expressions: _col0 (type: int), _col1 (type: decimal(10,2)) + sort order: ++ + Map-reduce partition columns: _col0 (type: int), _col1 (type: decimal(10,2)) + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE + Reduce Operator Tree: + Group By Operator + keys: KEY._col0 (type: int), KEY._col1 (type: decimal(10,2)) + mode: mergepartial + outputColumnNames: _col0, _col1 + Statistics: Num rows: 2 Data size: 530 Basic stats: COMPLETE Column stats: NONE + Select Operator + expressions: _col0 (type: int) + outputColumnNames: _col0 + Statistics: Num rows: 2 Data size: 530 Basic stats: COMPLETE Column stats: NONE + File Output Operator + compressed: false + Statistics: Num rows: 2 Data size: 530 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 cmv_basetable.a +FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +PREHOOK: type: QUERY +PREHOOK: Input: default@cmv_basetable +PREHOOK: Input: default@cmv_basetable_2 +#### A masked pattern was here #### +POSTHOOK: query: SELECT cmv_basetable.a +FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +POSTHOOK: type: QUERY +POSTHOOK: Input: default@cmv_basetable +POSTHOOK: Input: default@cmv_basetable_2 +#### A masked pattern was here #### +1 +3 +PREHOOK: query: insert into cmv_basetable_2 values + (3, 'charlie', 15.8, 1) +PREHOOK: type: QUERY +PREHOOK: Output: default@cmv_basetable_2 +POSTHOOK: query: insert into cmv_basetable_2 values + (3, 'charlie', 15.8, 1) +POSTHOOK: type: QUERY +POSTHOOK: Output: default@cmv_basetable_2 +POSTHOOK: Lineage: cmv_basetable_2.a EXPRESSION [(values__tmp__table__3)values__tmp__table__3.FieldSchema(name:tmp_values_col1, type:string, comment:), ] +POSTHOOK: Lineage: cmv_basetable_2.b EXPRESSION [(values__tmp__table__3)values__tmp__table__3.FieldSchema(name:tmp_values_col2, type:string, comment:), ] +POSTHOOK: Lineage: cmv_basetable_2.c EXPRESSION [(values__tmp__table__3)values__tmp__table__3.FieldSchema(name:tmp_values_col3, type:string, comment:), ] +POSTHOOK: Lineage: cmv_basetable_2.d EXPRESSION [(values__tmp__table__3)values__tmp__table__3.FieldSchema(name:tmp_values_col4, type:string, comment:), ] +PREHOOK: query: analyze table cmv_basetable_2 compute statistics for columns +PREHOOK: type: QUERY +PREHOOK: Input: default@cmv_basetable_2 +PREHOOK: Output: default@cmv_basetable_2 +#### A masked pattern was here #### +POSTHOOK: query: analyze table cmv_basetable_2 compute statistics for columns +POSTHOOK: type: QUERY +POSTHOOK: Input: default@cmv_basetable_2 +POSTHOOK: Output: default@cmv_basetable_2 +#### A masked pattern was here #### +PREHOOK: query: EXPLAIN +ALTER MATERIALIZED VIEW cmv_mat_view ENABLE REWRITE +PREHOOK: type: ALTER_MATERIALIZED_VIEW_REWRITE +POSTHOOK: query: EXPLAIN +ALTER MATERIALIZED VIEW cmv_mat_view ENABLE REWRITE +POSTHOOK: type: ALTER_MATERIALIZED_VIEW_REWRITE +STAGE DEPENDENCIES: + Stage-0 is a root stage + +STAGE PLANS: + Stage: Stage-0 + Alter Materialized View Operator: + Alter Materialized View + name: default.cmv_mat_view + operation: UPDATE_REWRITE_FLAG + +PREHOOK: query: ALTER MATERIALIZED VIEW cmv_mat_view ENABLE REWRITE +PREHOOK: type: ALTER_MATERIALIZED_VIEW_REWRITE +PREHOOK: Input: default@cmv_mat_view +PREHOOK: Output: default@cmv_mat_view +POSTHOOK: query: ALTER MATERIALIZED VIEW cmv_mat_view ENABLE REWRITE +POSTHOOK: type: ALTER_MATERIALIZED_VIEW_REWRITE +POSTHOOK: Input: default@cmv_mat_view +POSTHOOK: Output: default@cmv_mat_view +PREHOOK: query: EXPLAIN +SELECT cmv_basetable.a +FROM cmv_basetable join cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +PREHOOK: type: QUERY +POSTHOOK: query: EXPLAIN +SELECT cmv_basetable.a +FROM cmv_basetable join cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +POSTHOOK: type: QUERY +STAGE DEPENDENCIES: + Stage-1 is a root stage + Stage-2 depends on stages: Stage-1 + Stage-0 depends on stages: Stage-2 + +STAGE PLANS: + Stage: Stage-1 + Map Reduce + Map Operator Tree: + TableScan + alias: cmv_basetable + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + Filter Operator + predicate: a is not null (type: boolean) + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + Select Operator + expressions: a (type: int) + outputColumnNames: _col0 + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + Reduce Output Operator + key expressions: _col0 (type: int) + sort order: + + Map-reduce partition columns: _col0 (type: int) + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + TableScan + alias: cmv_basetable_2 + Statistics: Num rows: 3 Data size: 727 Basic stats: COMPLETE Column stats: NONE + Filter Operator + predicate: ((c > 10.1) and a is not null) (type: boolean) + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE + Select Operator + expressions: a (type: int), c (type: decimal(10,2)) + outputColumnNames: _col0, _col1 + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE + Reduce Output Operator + key expressions: _col0 (type: int) + sort order: + + Map-reduce partition columns: _col0 (type: int) + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE + value expressions: _col1 (type: decimal(10,2)) + Reduce Operator Tree: + Join Operator + condition map: + Inner Join 0 to 1 + keys: + 0 _col0 (type: int) + 1 _col0 (type: int) + outputColumnNames: _col0, _col2 + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE + Group By Operator + keys: _col0 (type: int), _col2 (type: decimal(10,2)) + mode: hash + outputColumnNames: _col0, _col1 + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE + File Output Operator + compressed: false + table: + input format: org.apache.hadoop.mapred.SequenceFileInputFormat + output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat + serde: org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe + + Stage: Stage-2 + Map Reduce + Map Operator Tree: + TableScan + Reduce Output Operator + key expressions: _col0 (type: int), _col1 (type: decimal(10,2)) + sort order: ++ + Map-reduce partition columns: _col0 (type: int), _col1 (type: decimal(10,2)) + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE + Reduce Operator Tree: + Group By Operator + keys: KEY._col0 (type: int), KEY._col1 (type: decimal(10,2)) + mode: mergepartial + outputColumnNames: _col0, _col1 + Statistics: Num rows: 2 Data size: 530 Basic stats: COMPLETE Column stats: NONE + Select Operator + expressions: _col0 (type: int) + outputColumnNames: _col0 + Statistics: Num rows: 2 Data size: 530 Basic stats: COMPLETE Column stats: NONE + File Output Operator + compressed: false + Statistics: Num rows: 2 Data size: 530 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 cmv_basetable.a +FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +PREHOOK: type: QUERY +PREHOOK: Input: default@cmv_basetable +PREHOOK: Input: default@cmv_basetable_2 +#### A masked pattern was here #### +POSTHOOK: query: SELECT cmv_basetable.a +FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +POSTHOOK: type: QUERY +POSTHOOK: Input: default@cmv_basetable +POSTHOOK: Input: default@cmv_basetable_2 +#### A masked pattern was here #### +1 +3 +3 +PREHOOK: query: EXPLAIN +ALTER MATERIALIZED VIEW cmv_mat_view REBUILD +PREHOOK: type: CREATE_MATERIALIZED_VIEW +POSTHOOK: query: EXPLAIN +ALTER MATERIALIZED VIEW cmv_mat_view REBUILD +POSTHOOK: type: CREATE_MATERIALIZED_VIEW +STAGE DEPENDENCIES: + Stage-1 is a root stage + Stage-2 depends on stages: Stage-1 + Stage-0 depends on stages: Stage-2 + Stage-5 depends on stages: Stage-0 + Stage-3 depends on stages: Stage-5 + +STAGE PLANS: + Stage: Stage-1 + Map Reduce + Map Operator Tree: + TableScan + alias: cmv_basetable + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + Filter Operator + predicate: a is not null (type: boolean) + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + Select Operator + expressions: a (type: int) + outputColumnNames: _col0 + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + Reduce Output Operator + key expressions: _col0 (type: int) + sort order: + + Map-reduce partition columns: _col0 (type: int) + Statistics: Num rows: 5 Data size: 1205 Basic stats: COMPLETE Column stats: NONE + TableScan + alias: cmv_basetable_2 + Statistics: Num rows: 3 Data size: 727 Basic stats: COMPLETE Column stats: NONE + Filter Operator + predicate: ((c > 10) and a is not null) (type: boolean) + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE + Select Operator + expressions: a (type: int), c (type: decimal(10,2)) + outputColumnNames: _col0, _col1 + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE + Reduce Output Operator + key expressions: _col0 (type: int) + sort order: + + Map-reduce partition columns: _col0 (type: int) + Statistics: Num rows: 1 Data size: 242 Basic stats: COMPLETE Column stats: NONE + value expressions: _col1 (type: decimal(10,2)) + Reduce Operator Tree: + Join Operator + condition map: + Inner Join 0 to 1 + keys: + 0 _col0 (type: int) + 1 _col0 (type: int) + outputColumnNames: _col0, _col2 + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE + Group By Operator + keys: _col0 (type: int), _col2 (type: decimal(10,2)) + mode: hash + outputColumnNames: _col0, _col1 + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE + File Output Operator + compressed: false + table: + input format: org.apache.hadoop.mapred.SequenceFileInputFormat + output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat + serde: org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe + + Stage: Stage-2 + Map Reduce + Map Operator Tree: + TableScan + Reduce Output Operator + key expressions: _col0 (type: int), _col1 (type: decimal(10,2)) + sort order: ++ + Map-reduce partition columns: _col0 (type: int), _col1 (type: decimal(10,2)) + Statistics: Num rows: 5 Data size: 1325 Basic stats: COMPLETE Column stats: NONE + Reduce Operator Tree: + Group By Operator + keys: KEY._col0 (type: int), KEY._col1 (type: decimal(10,2)) + mode: mergepartial + outputColumnNames: _col0, _col1 + Statistics: Num rows: 2 Data size: 530 Basic stats: COMPLETE Column stats: NONE + File Output Operator + compressed: false + Statistics: Num rows: 2 Data size: 530 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.cmv_mat_view + + Stage: Stage-0 + Move Operator + files: + hdfs directory: true +#### A masked pattern was here #### + + Stage: Stage-5 + Create View Operator: + Create View + columns: a int, c decimal(10,2) + name: default.cmv_mat_view + replace: true + + Stage: Stage-3 + Stats Work + Basic Stats Work: + +PREHOOK: query: ALTER MATERIALIZED VIEW cmv_mat_view REBUILD +PREHOOK: type: CREATE_MATERIALIZED_VIEW +PREHOOK: Input: default@cmv_basetable +PREHOOK: Input: default@cmv_basetable_2 +PREHOOK: Output: database:default +PREHOOK: Output: default@cmv_mat_view +POSTHOOK: query: ALTER MATERIALIZED VIEW cmv_mat_view REBUILD +POSTHOOK: type: CREATE_MATERIALIZED_VIEW +POSTHOOK: Input: default@cmv_basetable +POSTHOOK: Input: default@cmv_basetable_2 +POSTHOOK: Output: database:default +POSTHOOK: Output: default@cmv_mat_view +PREHOOK: query: EXPLAIN +SELECT cmv_basetable.a +FROM cmv_basetable join cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +PREHOOK: type: QUERY +POSTHOOK: query: EXPLAIN +SELECT cmv_basetable.a +FROM cmv_basetable join cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +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: default.cmv_mat_view + Statistics: Num rows: 3 Data size: 348 Basic stats: COMPLETE Column stats: NONE + Filter Operator + predicate: (c > 10.1) (type: boolean) + Statistics: Num rows: 1 Data size: 116 Basic stats: COMPLETE Column stats: NONE + Select Operator + expressions: a (type: int) + outputColumnNames: _col0 + Statistics: Num rows: 1 Data size: 116 Basic stats: COMPLETE Column stats: NONE + File Output Operator + compressed: false + Statistics: Num rows: 1 Data size: 116 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 cmv_basetable.a +FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +PREHOOK: type: QUERY +PREHOOK: Input: default@cmv_basetable +PREHOOK: Input: default@cmv_basetable_2 +PREHOOK: Input: default@cmv_mat_view +#### A masked pattern was here #### +POSTHOOK: query: SELECT cmv_basetable.a +FROM cmv_basetable JOIN cmv_basetable_2 ON (cmv_basetable.a = cmv_basetable_2.a) +WHERE cmv_basetable_2.c > 10.10 +GROUP BY cmv_basetable.a, cmv_basetable_2.c +POSTHOOK: type: QUERY +POSTHOOK: Input: default@cmv_basetable +POSTHOOK: Input: default@cmv_basetable_2 +POSTHOOK: Input: default@cmv_mat_view +#### A masked pattern was here #### +1 +3 +3 +PREHOOK: query: drop materialized view cmv_mat_view +PREHOOK: type: DROP_MATERIALIZED_VIEW +PREHOOK: Input: default@cmv_mat_view +PREHOOK: Output: default@cmv_mat_view +POSTHOOK: query: drop materialized view cmv_mat_view +POSTHOOK: type: DROP_MATERIALIZED_VIEW +POSTHOOK: Input: default@cmv_mat_view +POSTHOOK: Output: default@cmv_mat_view diff --git a/ql/src/test/results/clientpositive/materialized_view_create_rewrite_multi_db.q.out b/ql/src/test/results/clientpositive/materialized_view_create_rewrite_multi_db.q.out index cc901b897e..16d077fabd 100644 --- a/ql/src/test/results/clientpositive/materialized_view_create_rewrite_multi_db.q.out +++ b/ql/src/test/results/clientpositive/materialized_view_create_rewrite_multi_db.q.out @@ -10,11 +10,11 @@ PREHOOK: Input: database:db1 POSTHOOK: query: use db1 POSTHOOK: type: SWITCHDATABASE POSTHOOK: Input: database:db1 -PREHOOK: query: create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int) +PREHOOK: query: create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true') PREHOOK: type: CREATETABLE PREHOOK: Output: database:db1 PREHOOK: Output: db1@cmv_basetable -POSTHOOK: query: create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int) +POSTHOOK: query: create table cmv_basetable (a int, b varchar(256), c decimal(10,2), d int) stored as orc TBLPROPERTIES ('transactional'='true') POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:db1 POSTHOOK: Output: db1@cmv_basetable @@ -38,6 +38,16 @@ POSTHOOK: Lineage: cmv_basetable.a EXPRESSION [(values__tmp__table__1)values__tm POSTHOOK: Lineage: cmv_basetable.b EXPRESSION [(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col2, type:string, comment:), ] POSTHOOK: Lineage: cmv_basetable.c EXPRESSION [(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col3, type:string, comment:), ] POSTHOOK: Lineage: cmv_basetable.d EXPRESSION [(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col4, type:string, comment:), ] +PREHOOK: query: analyze table cmv_basetable compute statistics for columns +PREHOOK: type: QUERY +PREHOOK: Input: db1@cmv_basetable +PREHOOK: Output: db1@cmv_basetable +#### A masked pattern was here #### +POSTHOOK: query: analyze table cmv_basetable compute statistics for columns +POSTHOOK: type: QUERY +POSTHOOK: Input: db1@cmv_basetable +POSTHOOK: Output: db1@cmv_basetable +#### A masked pattern was here #### PREHOOK: query: create database db2 PREHOOK: type: CREATEDATABASE PREHOOK: Output: database:db2 diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp index dede79bd78..ee3e0db9fa 100644 --- a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp +++ b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp @@ -1240,14 +1240,14 @@ uint32_t ThriftHiveMetastore_get_databases_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1018; - ::apache::thrift::protocol::TType _etype1021; - xfer += iprot->readListBegin(_etype1021, _size1018); - this->success.resize(_size1018); - uint32_t _i1022; - for (_i1022 = 0; _i1022 < _size1018; ++_i1022) + uint32_t _size1045; + ::apache::thrift::protocol::TType _etype1048; + xfer += iprot->readListBegin(_etype1048, _size1045); + this->success.resize(_size1045); + uint32_t _i1049; + for (_i1049 = 0; _i1049 < _size1045; ++_i1049) { - xfer += iprot->readString(this->success[_i1022]); + xfer += iprot->readString(this->success[_i1049]); } 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 _iter1023; - for (_iter1023 = this->success.begin(); _iter1023 != this->success.end(); ++_iter1023) + std::vector ::const_iterator _iter1050; + for (_iter1050 = this->success.begin(); _iter1050 != this->success.end(); ++_iter1050) { - xfer += oprot->writeString((*_iter1023)); + xfer += oprot->writeString((*_iter1050)); } 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 _size1024; - ::apache::thrift::protocol::TType _etype1027; - xfer += iprot->readListBegin(_etype1027, _size1024); - (*(this->success)).resize(_size1024); - uint32_t _i1028; - for (_i1028 = 0; _i1028 < _size1024; ++_i1028) + uint32_t _size1051; + ::apache::thrift::protocol::TType _etype1054; + xfer += iprot->readListBegin(_etype1054, _size1051); + (*(this->success)).resize(_size1051); + uint32_t _i1055; + for (_i1055 = 0; _i1055 < _size1051; ++_i1055) { - xfer += iprot->readString((*(this->success))[_i1028]); + xfer += iprot->readString((*(this->success))[_i1055]); } 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 _size1029; - ::apache::thrift::protocol::TType _etype1032; - xfer += iprot->readListBegin(_etype1032, _size1029); - this->success.resize(_size1029); - uint32_t _i1033; - for (_i1033 = 0; _i1033 < _size1029; ++_i1033) + uint32_t _size1056; + ::apache::thrift::protocol::TType _etype1059; + xfer += iprot->readListBegin(_etype1059, _size1056); + this->success.resize(_size1056); + uint32_t _i1060; + for (_i1060 = 0; _i1060 < _size1056; ++_i1060) { - xfer += iprot->readString(this->success[_i1033]); + xfer += iprot->readString(this->success[_i1060]); } 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 _iter1034; - for (_iter1034 = this->success.begin(); _iter1034 != this->success.end(); ++_iter1034) + std::vector ::const_iterator _iter1061; + for (_iter1061 = this->success.begin(); _iter1061 != this->success.end(); ++_iter1061) { - xfer += oprot->writeString((*_iter1034)); + xfer += oprot->writeString((*_iter1061)); } 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 _size1035; - ::apache::thrift::protocol::TType _etype1038; - xfer += iprot->readListBegin(_etype1038, _size1035); - (*(this->success)).resize(_size1035); - uint32_t _i1039; - for (_i1039 = 0; _i1039 < _size1035; ++_i1039) + uint32_t _size1062; + ::apache::thrift::protocol::TType _etype1065; + xfer += iprot->readListBegin(_etype1065, _size1062); + (*(this->success)).resize(_size1062); + uint32_t _i1066; + for (_i1066 = 0; _i1066 < _size1062; ++_i1066) { - xfer += iprot->readString((*(this->success))[_i1039]); + xfer += iprot->readString((*(this->success))[_i1066]); } 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 _size1040; - ::apache::thrift::protocol::TType _ktype1041; - ::apache::thrift::protocol::TType _vtype1042; - xfer += iprot->readMapBegin(_ktype1041, _vtype1042, _size1040); - uint32_t _i1044; - for (_i1044 = 0; _i1044 < _size1040; ++_i1044) + uint32_t _size1067; + ::apache::thrift::protocol::TType _ktype1068; + ::apache::thrift::protocol::TType _vtype1069; + xfer += iprot->readMapBegin(_ktype1068, _vtype1069, _size1067); + uint32_t _i1071; + for (_i1071 = 0; _i1071 < _size1067; ++_i1071) { - std::string _key1045; - xfer += iprot->readString(_key1045); - Type& _val1046 = this->success[_key1045]; - xfer += _val1046.read(iprot); + std::string _key1072; + xfer += iprot->readString(_key1072); + Type& _val1073 = this->success[_key1072]; + xfer += _val1073.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 _iter1047; - for (_iter1047 = this->success.begin(); _iter1047 != this->success.end(); ++_iter1047) + std::map ::const_iterator _iter1074; + for (_iter1074 = this->success.begin(); _iter1074 != this->success.end(); ++_iter1074) { - xfer += oprot->writeString(_iter1047->first); - xfer += _iter1047->second.write(oprot); + xfer += oprot->writeString(_iter1074->first); + xfer += _iter1074->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 _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) + uint32_t _size1075; + ::apache::thrift::protocol::TType _ktype1076; + ::apache::thrift::protocol::TType _vtype1077; + xfer += iprot->readMapBegin(_ktype1076, _vtype1077, _size1075); + uint32_t _i1079; + for (_i1079 = 0; _i1079 < _size1075; ++_i1079) { - std::string _key1053; - xfer += iprot->readString(_key1053); - Type& _val1054 = (*(this->success))[_key1053]; - xfer += _val1054.read(iprot); + std::string _key1080; + xfer += iprot->readString(_key1080); + Type& _val1081 = (*(this->success))[_key1080]; + xfer += _val1081.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 _size1055; - ::apache::thrift::protocol::TType _etype1058; - xfer += iprot->readListBegin(_etype1058, _size1055); - this->success.resize(_size1055); - uint32_t _i1059; - for (_i1059 = 0; _i1059 < _size1055; ++_i1059) + uint32_t _size1082; + ::apache::thrift::protocol::TType _etype1085; + xfer += iprot->readListBegin(_etype1085, _size1082); + this->success.resize(_size1082); + uint32_t _i1086; + for (_i1086 = 0; _i1086 < _size1082; ++_i1086) { - xfer += this->success[_i1059].read(iprot); + xfer += this->success[_i1086].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 _iter1060; - for (_iter1060 = this->success.begin(); _iter1060 != this->success.end(); ++_iter1060) + std::vector ::const_iterator _iter1087; + for (_iter1087 = this->success.begin(); _iter1087 != this->success.end(); ++_iter1087) { - xfer += (*_iter1060).write(oprot); + xfer += (*_iter1087).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 _size1061; - ::apache::thrift::protocol::TType _etype1064; - xfer += iprot->readListBegin(_etype1064, _size1061); - (*(this->success)).resize(_size1061); - uint32_t _i1065; - for (_i1065 = 0; _i1065 < _size1061; ++_i1065) + 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) { - xfer += (*(this->success))[_i1065].read(iprot); + xfer += (*(this->success))[_i1092].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 _size1066; - ::apache::thrift::protocol::TType _etype1069; - xfer += iprot->readListBegin(_etype1069, _size1066); - this->success.resize(_size1066); - uint32_t _i1070; - for (_i1070 = 0; _i1070 < _size1066; ++_i1070) + uint32_t _size1093; + ::apache::thrift::protocol::TType _etype1096; + xfer += iprot->readListBegin(_etype1096, _size1093); + this->success.resize(_size1093); + uint32_t _i1097; + for (_i1097 = 0; _i1097 < _size1093; ++_i1097) { - xfer += this->success[_i1070].read(iprot); + xfer += this->success[_i1097].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 _iter1071; - for (_iter1071 = this->success.begin(); _iter1071 != this->success.end(); ++_iter1071) + std::vector ::const_iterator _iter1098; + for (_iter1098 = this->success.begin(); _iter1098 != this->success.end(); ++_iter1098) { - xfer += (*_iter1071).write(oprot); + xfer += (*_iter1098).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 _size1072; - ::apache::thrift::protocol::TType _etype1075; - xfer += iprot->readListBegin(_etype1075, _size1072); - (*(this->success)).resize(_size1072); - uint32_t _i1076; - for (_i1076 = 0; _i1076 < _size1072; ++_i1076) + uint32_t _size1099; + ::apache::thrift::protocol::TType _etype1102; + xfer += iprot->readListBegin(_etype1102, _size1099); + (*(this->success)).resize(_size1099); + uint32_t _i1103; + for (_i1103 = 0; _i1103 < _size1099; ++_i1103) { - xfer += (*(this->success))[_i1076].read(iprot); + xfer += (*(this->success))[_i1103].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 _size1077; - ::apache::thrift::protocol::TType _etype1080; - xfer += iprot->readListBegin(_etype1080, _size1077); - this->success.resize(_size1077); - uint32_t _i1081; - for (_i1081 = 0; _i1081 < _size1077; ++_i1081) + uint32_t _size1104; + ::apache::thrift::protocol::TType _etype1107; + xfer += iprot->readListBegin(_etype1107, _size1104); + this->success.resize(_size1104); + uint32_t _i1108; + for (_i1108 = 0; _i1108 < _size1104; ++_i1108) { - xfer += this->success[_i1081].read(iprot); + xfer += this->success[_i1108].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 _iter1082; - for (_iter1082 = this->success.begin(); _iter1082 != this->success.end(); ++_iter1082) + std::vector ::const_iterator _iter1109; + for (_iter1109 = this->success.begin(); _iter1109 != this->success.end(); ++_iter1109) { - xfer += (*_iter1082).write(oprot); + xfer += (*_iter1109).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 _size1083; - ::apache::thrift::protocol::TType _etype1086; - xfer += iprot->readListBegin(_etype1086, _size1083); - (*(this->success)).resize(_size1083); - uint32_t _i1087; - for (_i1087 = 0; _i1087 < _size1083; ++_i1087) + uint32_t _size1110; + ::apache::thrift::protocol::TType _etype1113; + xfer += iprot->readListBegin(_etype1113, _size1110); + (*(this->success)).resize(_size1110); + uint32_t _i1114; + for (_i1114 = 0; _i1114 < _size1110; ++_i1114) { - xfer += (*(this->success))[_i1087].read(iprot); + xfer += (*(this->success))[_i1114].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 _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 _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[_i1092].read(iprot); + xfer += this->success[_i1119].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 _iter1093; - for (_iter1093 = this->success.begin(); _iter1093 != this->success.end(); ++_iter1093) + std::vector ::const_iterator _iter1120; + for (_iter1120 = this->success.begin(); _iter1120 != this->success.end(); ++_iter1120) { - xfer += (*_iter1093).write(oprot); + xfer += (*_iter1120).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 _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 _size1121; + ::apache::thrift::protocol::TType _etype1124; + xfer += iprot->readListBegin(_etype1124, _size1121); + (*(this->success)).resize(_size1121); + uint32_t _i1125; + for (_i1125 = 0; _i1125 < _size1121; ++_i1125) { - xfer += (*(this->success))[_i1098].read(iprot); + xfer += (*(this->success))[_i1125].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 _size1099; - ::apache::thrift::protocol::TType _etype1102; - xfer += iprot->readListBegin(_etype1102, _size1099); - this->primaryKeys.resize(_size1099); - uint32_t _i1103; - for (_i1103 = 0; _i1103 < _size1099; ++_i1103) + uint32_t _size1126; + ::apache::thrift::protocol::TType _etype1129; + xfer += iprot->readListBegin(_etype1129, _size1126); + this->primaryKeys.resize(_size1126); + uint32_t _i1130; + for (_i1130 = 0; _i1130 < _size1126; ++_i1130) { - xfer += this->primaryKeys[_i1103].read(iprot); + xfer += this->primaryKeys[_i1130].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 _size1104; - ::apache::thrift::protocol::TType _etype1107; - xfer += iprot->readListBegin(_etype1107, _size1104); - this->foreignKeys.resize(_size1104); - uint32_t _i1108; - for (_i1108 = 0; _i1108 < _size1104; ++_i1108) + uint32_t _size1131; + ::apache::thrift::protocol::TType _etype1134; + xfer += iprot->readListBegin(_etype1134, _size1131); + this->foreignKeys.resize(_size1131); + uint32_t _i1135; + for (_i1135 = 0; _i1135 < _size1131; ++_i1135) { - xfer += this->foreignKeys[_i1108].read(iprot); + xfer += this->foreignKeys[_i1135].read(iprot); } xfer += iprot->readListEnd(); } @@ -4558,14 +4558,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->uniqueConstraints.clear(); - uint32_t _size1109; - ::apache::thrift::protocol::TType _etype1112; - xfer += iprot->readListBegin(_etype1112, _size1109); - this->uniqueConstraints.resize(_size1109); - uint32_t _i1113; - for (_i1113 = 0; _i1113 < _size1109; ++_i1113) + uint32_t _size1136; + ::apache::thrift::protocol::TType _etype1139; + xfer += iprot->readListBegin(_etype1139, _size1136); + this->uniqueConstraints.resize(_size1136); + uint32_t _i1140; + for (_i1140 = 0; _i1140 < _size1136; ++_i1140) { - xfer += this->uniqueConstraints[_i1113].read(iprot); + xfer += this->uniqueConstraints[_i1140].read(iprot); } xfer += iprot->readListEnd(); } @@ -4578,14 +4578,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->notNullConstraints.clear(); - uint32_t _size1114; - ::apache::thrift::protocol::TType _etype1117; - xfer += iprot->readListBegin(_etype1117, _size1114); - this->notNullConstraints.resize(_size1114); - uint32_t _i1118; - for (_i1118 = 0; _i1118 < _size1114; ++_i1118) + uint32_t _size1141; + ::apache::thrift::protocol::TType _etype1144; + xfer += iprot->readListBegin(_etype1144, _size1141); + this->notNullConstraints.resize(_size1141); + uint32_t _i1145; + for (_i1145 = 0; _i1145 < _size1141; ++_i1145) { - xfer += this->notNullConstraints[_i1118].read(iprot); + xfer += this->notNullConstraints[_i1145].read(iprot); } xfer += iprot->readListEnd(); } @@ -4618,10 +4618,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache: xfer += oprot->writeFieldBegin("primaryKeys", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->primaryKeys.size())); - std::vector ::const_iterator _iter1119; - for (_iter1119 = this->primaryKeys.begin(); _iter1119 != this->primaryKeys.end(); ++_iter1119) + std::vector ::const_iterator _iter1146; + for (_iter1146 = this->primaryKeys.begin(); _iter1146 != this->primaryKeys.end(); ++_iter1146) { - xfer += (*_iter1119).write(oprot); + xfer += (*_iter1146).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4630,10 +4630,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache: xfer += oprot->writeFieldBegin("foreignKeys", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->foreignKeys.size())); - std::vector ::const_iterator _iter1120; - for (_iter1120 = this->foreignKeys.begin(); _iter1120 != this->foreignKeys.end(); ++_iter1120) + std::vector ::const_iterator _iter1147; + for (_iter1147 = this->foreignKeys.begin(); _iter1147 != this->foreignKeys.end(); ++_iter1147) { - xfer += (*_iter1120).write(oprot); + xfer += (*_iter1147).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4642,10 +4642,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache: xfer += oprot->writeFieldBegin("uniqueConstraints", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->uniqueConstraints.size())); - std::vector ::const_iterator _iter1121; - for (_iter1121 = this->uniqueConstraints.begin(); _iter1121 != this->uniqueConstraints.end(); ++_iter1121) + std::vector ::const_iterator _iter1148; + for (_iter1148 = this->uniqueConstraints.begin(); _iter1148 != this->uniqueConstraints.end(); ++_iter1148) { - xfer += (*_iter1121).write(oprot); + xfer += (*_iter1148).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4654,10 +4654,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache: xfer += oprot->writeFieldBegin("notNullConstraints", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->notNullConstraints.size())); - std::vector ::const_iterator _iter1122; - for (_iter1122 = this->notNullConstraints.begin(); _iter1122 != this->notNullConstraints.end(); ++_iter1122) + std::vector ::const_iterator _iter1149; + for (_iter1149 = this->notNullConstraints.begin(); _iter1149 != this->notNullConstraints.end(); ++_iter1149) { - xfer += (*_iter1122).write(oprot); + xfer += (*_iter1149).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4685,10 +4685,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache xfer += oprot->writeFieldBegin("primaryKeys", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->primaryKeys)).size())); - std::vector ::const_iterator _iter1123; - for (_iter1123 = (*(this->primaryKeys)).begin(); _iter1123 != (*(this->primaryKeys)).end(); ++_iter1123) + std::vector ::const_iterator _iter1150; + for (_iter1150 = (*(this->primaryKeys)).begin(); _iter1150 != (*(this->primaryKeys)).end(); ++_iter1150) { - xfer += (*_iter1123).write(oprot); + xfer += (*_iter1150).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4697,10 +4697,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache xfer += oprot->writeFieldBegin("foreignKeys", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->foreignKeys)).size())); - std::vector ::const_iterator _iter1124; - for (_iter1124 = (*(this->foreignKeys)).begin(); _iter1124 != (*(this->foreignKeys)).end(); ++_iter1124) + std::vector ::const_iterator _iter1151; + for (_iter1151 = (*(this->foreignKeys)).begin(); _iter1151 != (*(this->foreignKeys)).end(); ++_iter1151) { - xfer += (*_iter1124).write(oprot); + xfer += (*_iter1151).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4709,10 +4709,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache xfer += oprot->writeFieldBegin("uniqueConstraints", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->uniqueConstraints)).size())); - std::vector ::const_iterator _iter1125; - for (_iter1125 = (*(this->uniqueConstraints)).begin(); _iter1125 != (*(this->uniqueConstraints)).end(); ++_iter1125) + std::vector ::const_iterator _iter1152; + for (_iter1152 = (*(this->uniqueConstraints)).begin(); _iter1152 != (*(this->uniqueConstraints)).end(); ++_iter1152) { - xfer += (*_iter1125).write(oprot); + xfer += (*_iter1152).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4721,10 +4721,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache xfer += oprot->writeFieldBegin("notNullConstraints", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->notNullConstraints)).size())); - std::vector ::const_iterator _iter1126; - for (_iter1126 = (*(this->notNullConstraints)).begin(); _iter1126 != (*(this->notNullConstraints)).end(); ++_iter1126) + std::vector ::const_iterator _iter1153; + for (_iter1153 = (*(this->notNullConstraints)).begin(); _iter1153 != (*(this->notNullConstraints)).end(); ++_iter1153) { - xfer += (*_iter1126).write(oprot); + xfer += (*_iter1153).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6478,14 +6478,14 @@ uint32_t ThriftHiveMetastore_truncate_table_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partNames.clear(); - uint32_t _size1127; - ::apache::thrift::protocol::TType _etype1130; - xfer += iprot->readListBegin(_etype1130, _size1127); - this->partNames.resize(_size1127); - uint32_t _i1131; - for (_i1131 = 0; _i1131 < _size1127; ++_i1131) + uint32_t _size1154; + ::apache::thrift::protocol::TType _etype1157; + xfer += iprot->readListBegin(_etype1157, _size1154); + this->partNames.resize(_size1154); + uint32_t _i1158; + for (_i1158 = 0; _i1158 < _size1154; ++_i1158) { - xfer += iprot->readString(this->partNames[_i1131]); + xfer += iprot->readString(this->partNames[_i1158]); } xfer += iprot->readListEnd(); } @@ -6522,10 +6522,10 @@ uint32_t ThriftHiveMetastore_truncate_table_args::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("partNames", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partNames.size())); - std::vector ::const_iterator _iter1132; - for (_iter1132 = this->partNames.begin(); _iter1132 != this->partNames.end(); ++_iter1132) + std::vector ::const_iterator _iter1159; + for (_iter1159 = this->partNames.begin(); _iter1159 != this->partNames.end(); ++_iter1159) { - xfer += oprot->writeString((*_iter1132)); + xfer += oprot->writeString((*_iter1159)); } xfer += oprot->writeListEnd(); } @@ -6557,10 +6557,10 @@ uint32_t ThriftHiveMetastore_truncate_table_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("partNames", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->partNames)).size())); - std::vector ::const_iterator _iter1133; - for (_iter1133 = (*(this->partNames)).begin(); _iter1133 != (*(this->partNames)).end(); ++_iter1133) + std::vector ::const_iterator _iter1160; + for (_iter1160 = (*(this->partNames)).begin(); _iter1160 != (*(this->partNames)).end(); ++_iter1160) { - xfer += oprot->writeString((*_iter1133)); + xfer += oprot->writeString((*_iter1160)); } xfer += oprot->writeListEnd(); } @@ -6804,14 +6804,14 @@ uint32_t ThriftHiveMetastore_get_tables_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1134; - ::apache::thrift::protocol::TType _etype1137; - xfer += iprot->readListBegin(_etype1137, _size1134); - this->success.resize(_size1134); - uint32_t _i1138; - for (_i1138 = 0; _i1138 < _size1134; ++_i1138) + uint32_t _size1161; + ::apache::thrift::protocol::TType _etype1164; + xfer += iprot->readListBegin(_etype1164, _size1161); + this->success.resize(_size1161); + uint32_t _i1165; + for (_i1165 = 0; _i1165 < _size1161; ++_i1165) { - xfer += iprot->readString(this->success[_i1138]); + xfer += iprot->readString(this->success[_i1165]); } xfer += iprot->readListEnd(); } @@ -6850,10 +6850,10 @@ uint32_t ThriftHiveMetastore_get_tables_result::write(::apache::thrift::protocol xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1139; - for (_iter1139 = this->success.begin(); _iter1139 != this->success.end(); ++_iter1139) + std::vector ::const_iterator _iter1166; + for (_iter1166 = this->success.begin(); _iter1166 != this->success.end(); ++_iter1166) { - xfer += oprot->writeString((*_iter1139)); + xfer += oprot->writeString((*_iter1166)); } xfer += oprot->writeListEnd(); } @@ -6898,14 +6898,14 @@ uint32_t ThriftHiveMetastore_get_tables_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1140; - ::apache::thrift::protocol::TType _etype1143; - xfer += iprot->readListBegin(_etype1143, _size1140); - (*(this->success)).resize(_size1140); - uint32_t _i1144; - for (_i1144 = 0; _i1144 < _size1140; ++_i1144) + uint32_t _size1167; + ::apache::thrift::protocol::TType _etype1170; + xfer += iprot->readListBegin(_etype1170, _size1167); + (*(this->success)).resize(_size1167); + uint32_t _i1171; + for (_i1171 = 0; _i1171 < _size1167; ++_i1171) { - xfer += iprot->readString((*(this->success))[_i1144]); + xfer += iprot->readString((*(this->success))[_i1171]); } xfer += iprot->readListEnd(); } @@ -7075,14 +7075,14 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_result::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1145; - ::apache::thrift::protocol::TType _etype1148; - xfer += iprot->readListBegin(_etype1148, _size1145); - this->success.resize(_size1145); - uint32_t _i1149; - for (_i1149 = 0; _i1149 < _size1145; ++_i1149) + uint32_t _size1172; + ::apache::thrift::protocol::TType _etype1175; + xfer += iprot->readListBegin(_etype1175, _size1172); + this->success.resize(_size1172); + uint32_t _i1176; + for (_i1176 = 0; _i1176 < _size1172; ++_i1176) { - xfer += iprot->readString(this->success[_i1149]); + xfer += iprot->readString(this->success[_i1176]); } xfer += iprot->readListEnd(); } @@ -7121,10 +7121,10 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_result::write(::apache::thrift:: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1150; - for (_iter1150 = this->success.begin(); _iter1150 != this->success.end(); ++_iter1150) + std::vector ::const_iterator _iter1177; + for (_iter1177 = this->success.begin(); _iter1177 != this->success.end(); ++_iter1177) { - xfer += oprot->writeString((*_iter1150)); + xfer += oprot->writeString((*_iter1177)); } xfer += oprot->writeListEnd(); } @@ -7169,14 +7169,14 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_presult::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1151; - ::apache::thrift::protocol::TType _etype1154; - xfer += iprot->readListBegin(_etype1154, _size1151); - (*(this->success)).resize(_size1151); - uint32_t _i1155; - for (_i1155 = 0; _i1155 < _size1151; ++_i1155) + uint32_t _size1178; + ::apache::thrift::protocol::TType _etype1181; + xfer += iprot->readListBegin(_etype1181, _size1178); + (*(this->success)).resize(_size1178); + uint32_t _i1182; + for (_i1182 = 0; _i1182 < _size1178; ++_i1182) { - xfer += iprot->readString((*(this->success))[_i1155]); + xfer += iprot->readString((*(this->success))[_i1182]); } xfer += iprot->readListEnd(); } @@ -7206,11 +7206,11 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_presult::read(::apache::thrift:: } -ThriftHiveMetastore_get_table_meta_args::~ThriftHiveMetastore_get_table_meta_args() throw() { +ThriftHiveMetastore_get_materialized_views_for_rewriting_args::~ThriftHiveMetastore_get_materialized_views_for_rewriting_args() throw() { } -uint32_t ThriftHiveMetastore_get_table_meta_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_materialized_views_for_rewriting_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -7233,36 +7233,8 @@ uint32_t ThriftHiveMetastore_get_table_meta_args::read(::apache::thrift::protoco { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->db_patterns); - this->__isset.db_patterns = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->tbl_patterns); - this->__isset.tbl_patterns = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->tbl_types.clear(); - uint32_t _size1156; - ::apache::thrift::protocol::TType _etype1159; - xfer += iprot->readListBegin(_etype1159, _size1156); - this->tbl_types.resize(_size1156); - uint32_t _i1160; - for (_i1160 = 0; _i1160 < _size1156; ++_i1160) - { - xfer += iprot->readString(this->tbl_types[_i1160]); - } - xfer += iprot->readListEnd(); - } - this->__isset.tbl_types = true; + xfer += iprot->readString(this->db_name); + this->__isset.db_name = true; } else { xfer += iprot->skip(ftype); } @@ -7279,29 +7251,13 @@ uint32_t ThriftHiveMetastore_get_table_meta_args::read(::apache::thrift::protoco return xfer; } -uint32_t ThriftHiveMetastore_get_table_meta_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_materialized_views_for_rewriting_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_meta_args"); - - xfer += oprot->writeFieldBegin("db_patterns", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->db_patterns); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("tbl_patterns", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->tbl_patterns); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_materialized_views_for_rewriting_args"); - 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 _iter1161; - for (_iter1161 = this->tbl_types.begin(); _iter1161 != this->tbl_types.end(); ++_iter1161) - { - xfer += oprot->writeString((*_iter1161)); - } - xfer += oprot->writeListEnd(); - } + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->db_name); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -7310,33 +7266,17 @@ uint32_t ThriftHiveMetastore_get_table_meta_args::write(::apache::thrift::protoc } -ThriftHiveMetastore_get_table_meta_pargs::~ThriftHiveMetastore_get_table_meta_pargs() throw() { +ThriftHiveMetastore_get_materialized_views_for_rewriting_pargs::~ThriftHiveMetastore_get_materialized_views_for_rewriting_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_table_meta_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_materialized_views_for_rewriting_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_meta_pargs"); - - xfer += oprot->writeFieldBegin("db_patterns", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->db_patterns))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_materialized_views_for_rewriting_pargs"); - xfer += oprot->writeFieldBegin("tbl_patterns", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->tbl_patterns))); - xfer += oprot->writeFieldEnd(); - - 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 _iter1162; - for (_iter1162 = (*(this->tbl_types)).begin(); _iter1162 != (*(this->tbl_types)).end(); ++_iter1162) - { - xfer += oprot->writeString((*_iter1162)); - } - xfer += oprot->writeListEnd(); - } + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->db_name))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -7345,11 +7285,11 @@ uint32_t ThriftHiveMetastore_get_table_meta_pargs::write(::apache::thrift::proto } -ThriftHiveMetastore_get_table_meta_result::~ThriftHiveMetastore_get_table_meta_result() throw() { +ThriftHiveMetastore_get_materialized_views_for_rewriting_result::~ThriftHiveMetastore_get_materialized_views_for_rewriting_result() throw() { } -uint32_t ThriftHiveMetastore_get_table_meta_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_materialized_views_for_rewriting_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -7374,14 +7314,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1163; - ::apache::thrift::protocol::TType _etype1166; - xfer += iprot->readListBegin(_etype1166, _size1163); - this->success.resize(_size1163); - uint32_t _i1167; - for (_i1167 = 0; _i1167 < _size1163; ++_i1167) + uint32_t _size1183; + ::apache::thrift::protocol::TType _etype1186; + xfer += iprot->readListBegin(_etype1186, _size1183); + this->success.resize(_size1183); + uint32_t _i1187; + for (_i1187 = 0; _i1187 < _size1183; ++_i1187) { - xfer += this->success[_i1167].read(iprot); + xfer += iprot->readString(this->success[_i1187]); } xfer += iprot->readListEnd(); } @@ -7410,20 +7350,20 @@ uint32_t ThriftHiveMetastore_get_table_meta_result::read(::apache::thrift::proto return xfer; } -uint32_t ThriftHiveMetastore_get_table_meta_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_materialized_views_for_rewriting_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_meta_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_materialized_views_for_rewriting_result"); if (this->__isset.success) { 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 _iter1168; - for (_iter1168 = this->success.begin(); _iter1168 != this->success.end(); ++_iter1168) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); + std::vector ::const_iterator _iter1188; + for (_iter1188 = this->success.begin(); _iter1188 != this->success.end(); ++_iter1188) { - xfer += (*_iter1168).write(oprot); + xfer += oprot->writeString((*_iter1188)); } xfer += oprot->writeListEnd(); } @@ -7439,11 +7379,11 @@ uint32_t ThriftHiveMetastore_get_table_meta_result::write(::apache::thrift::prot } -ThriftHiveMetastore_get_table_meta_presult::~ThriftHiveMetastore_get_table_meta_presult() throw() { +ThriftHiveMetastore_get_materialized_views_for_rewriting_presult::~ThriftHiveMetastore_get_materialized_views_for_rewriting_presult() throw() { } -uint32_t ThriftHiveMetastore_get_table_meta_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_materialized_views_for_rewriting_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -7468,14 +7408,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1169; - ::apache::thrift::protocol::TType _etype1172; - xfer += iprot->readListBegin(_etype1172, _size1169); - (*(this->success)).resize(_size1169); - uint32_t _i1173; - for (_i1173 = 0; _i1173 < _size1169; ++_i1173) + uint32_t _size1189; + ::apache::thrift::protocol::TType _etype1192; + xfer += iprot->readListBegin(_etype1192, _size1189); + (*(this->success)).resize(_size1189); + uint32_t _i1193; + for (_i1193 = 0; _i1193 < _size1189; ++_i1193) { - xfer += (*(this->success))[_i1173].read(iprot); + xfer += iprot->readString((*(this->success))[_i1193]); } xfer += iprot->readListEnd(); } @@ -7505,11 +7445,11 @@ uint32_t ThriftHiveMetastore_get_table_meta_presult::read(::apache::thrift::prot } -ThriftHiveMetastore_get_all_tables_args::~ThriftHiveMetastore_get_all_tables_args() throw() { +ThriftHiveMetastore_get_table_meta_args::~ThriftHiveMetastore_get_table_meta_args() throw() { } -uint32_t ThriftHiveMetastore_get_all_tables_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_table_meta_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -7532,8 +7472,36 @@ uint32_t ThriftHiveMetastore_get_all_tables_args::read(::apache::thrift::protoco { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->db_name); - this->__isset.db_name = true; + xfer += iprot->readString(this->db_patterns); + this->__isset.db_patterns = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->tbl_patterns); + this->__isset.tbl_patterns = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->tbl_types.clear(); + uint32_t _size1194; + ::apache::thrift::protocol::TType _etype1197; + xfer += iprot->readListBegin(_etype1197, _size1194); + this->tbl_types.resize(_size1194); + uint32_t _i1198; + for (_i1198 = 0; _i1198 < _size1194; ++_i1198) + { + xfer += iprot->readString(this->tbl_types[_i1198]); + } + xfer += iprot->readListEnd(); + } + this->__isset.tbl_types = true; } else { xfer += iprot->skip(ftype); } @@ -7550,13 +7518,29 @@ uint32_t ThriftHiveMetastore_get_all_tables_args::read(::apache::thrift::protoco return xfer; } -uint32_t ThriftHiveMetastore_get_all_tables_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_table_meta_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_tables_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_meta_args"); - xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->db_name); + xfer += oprot->writeFieldBegin("db_patterns", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->db_patterns); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tbl_patterns", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->tbl_patterns); + xfer += oprot->writeFieldEnd(); + + 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 _iter1199; + for (_iter1199 = this->tbl_types.begin(); _iter1199 != this->tbl_types.end(); ++_iter1199) + { + xfer += oprot->writeString((*_iter1199)); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -7565,17 +7549,33 @@ uint32_t ThriftHiveMetastore_get_all_tables_args::write(::apache::thrift::protoc } -ThriftHiveMetastore_get_all_tables_pargs::~ThriftHiveMetastore_get_all_tables_pargs() throw() { +ThriftHiveMetastore_get_table_meta_pargs::~ThriftHiveMetastore_get_table_meta_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_all_tables_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_table_meta_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_tables_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_meta_pargs"); - xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->db_name))); + xfer += oprot->writeFieldBegin("db_patterns", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->db_patterns))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tbl_patterns", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->tbl_patterns))); + xfer += oprot->writeFieldEnd(); + + 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 _iter1200; + for (_iter1200 = (*(this->tbl_types)).begin(); _iter1200 != (*(this->tbl_types)).end(); ++_iter1200) + { + xfer += oprot->writeString((*_iter1200)); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -7584,11 +7584,11 @@ uint32_t ThriftHiveMetastore_get_all_tables_pargs::write(::apache::thrift::proto } -ThriftHiveMetastore_get_all_tables_result::~ThriftHiveMetastore_get_all_tables_result() throw() { +ThriftHiveMetastore_get_table_meta_result::~ThriftHiveMetastore_get_table_meta_result() throw() { } -uint32_t ThriftHiveMetastore_get_all_tables_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_table_meta_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -7613,14 +7613,253 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - 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) + uint32_t _size1201; + ::apache::thrift::protocol::TType _etype1204; + xfer += iprot->readListBegin(_etype1204, _size1201); + this->success.resize(_size1201); + uint32_t _i1205; + for (_i1205 = 0; _i1205 < _size1201; ++_i1205) + { + xfer += this->success[_i1205].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + 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; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_get_table_meta_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_meta_result"); + + if (this->__isset.success) { + 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 _iter1206; + for (_iter1206 = this->success.begin(); _iter1206 != this->success.end(); ++_iter1206) + { + xfer += (*_iter1206).write(oprot); + } + xfer += oprot->writeListEnd(); + } + 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(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_get_table_meta_presult::~ThriftHiveMetastore_get_table_meta_presult() throw() { +} + + +uint32_t ThriftHiveMetastore_get_table_meta_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_LIST) { + { + (*(this->success)).clear(); + uint32_t _size1207; + ::apache::thrift::protocol::TType _etype1210; + xfer += iprot->readListBegin(_etype1210, _size1207); + (*(this->success)).resize(_size1207); + uint32_t _i1211; + for (_i1211 = 0; _i1211 < _size1207; ++_i1211) { - xfer += iprot->readString(this->success[_i1178]); + xfer += (*(this->success))[_i1211].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + 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; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + + +ThriftHiveMetastore_get_all_tables_args::~ThriftHiveMetastore_get_all_tables_args() throw() { +} + + +uint32_t ThriftHiveMetastore_get_all_tables_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_STRING) { + xfer += iprot->readString(this->db_name); + this->__isset.db_name = 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_all_tables_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_tables_args"); + + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->db_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_get_all_tables_pargs::~ThriftHiveMetastore_get_all_tables_pargs() throw() { +} + + +uint32_t ThriftHiveMetastore_get_all_tables_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_tables_pargs"); + + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->db_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_get_all_tables_result::~ThriftHiveMetastore_get_all_tables_result() throw() { +} + + +uint32_t ThriftHiveMetastore_get_all_tables_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_LIST) { + { + this->success.clear(); + uint32_t _size1212; + ::apache::thrift::protocol::TType _etype1215; + xfer += iprot->readListBegin(_etype1215, _size1212); + this->success.resize(_size1212); + uint32_t _i1216; + for (_i1216 = 0; _i1216 < _size1212; ++_i1216) + { + xfer += iprot->readString(this->success[_i1216]); } xfer += iprot->readListEnd(); } @@ -7659,10 +7898,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 _iter1179; - for (_iter1179 = this->success.begin(); _iter1179 != this->success.end(); ++_iter1179) + std::vector ::const_iterator _iter1217; + for (_iter1217 = this->success.begin(); _iter1217 != this->success.end(); ++_iter1217) { - xfer += oprot->writeString((*_iter1179)); + xfer += oprot->writeString((*_iter1217)); } xfer += oprot->writeListEnd(); } @@ -7707,14 +7946,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - 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) + uint32_t _size1218; + ::apache::thrift::protocol::TType _etype1221; + xfer += iprot->readListBegin(_etype1221, _size1218); + (*(this->success)).resize(_size1218); + uint32_t _i1222; + for (_i1222 = 0; _i1222 < _size1218; ++_i1222) { - xfer += iprot->readString((*(this->success))[_i1184]); + xfer += iprot->readString((*(this->success))[_i1222]); } xfer += iprot->readListEnd(); } @@ -8024,14 +8263,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 _size1185; - ::apache::thrift::protocol::TType _etype1188; - xfer += iprot->readListBegin(_etype1188, _size1185); - this->tbl_names.resize(_size1185); - uint32_t _i1189; - for (_i1189 = 0; _i1189 < _size1185; ++_i1189) + uint32_t _size1223; + ::apache::thrift::protocol::TType _etype1226; + xfer += iprot->readListBegin(_etype1226, _size1223); + this->tbl_names.resize(_size1223); + uint32_t _i1227; + for (_i1227 = 0; _i1227 < _size1223; ++_i1227) { - xfer += iprot->readString(this->tbl_names[_i1189]); + xfer += iprot->readString(this->tbl_names[_i1227]); } xfer += iprot->readListEnd(); } @@ -8064,10 +8303,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 _iter1190; - for (_iter1190 = this->tbl_names.begin(); _iter1190 != this->tbl_names.end(); ++_iter1190) + std::vector ::const_iterator _iter1228; + for (_iter1228 = this->tbl_names.begin(); _iter1228 != this->tbl_names.end(); ++_iter1228) { - xfer += oprot->writeString((*_iter1190)); + xfer += oprot->writeString((*_iter1228)); } xfer += oprot->writeListEnd(); } @@ -8095,10 +8334,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 _iter1191; - for (_iter1191 = (*(this->tbl_names)).begin(); _iter1191 != (*(this->tbl_names)).end(); ++_iter1191) + std::vector ::const_iterator _iter1229; + for (_iter1229 = (*(this->tbl_names)).begin(); _iter1229 != (*(this->tbl_names)).end(); ++_iter1229) { - xfer += oprot->writeString((*_iter1191)); + xfer += oprot->writeString((*_iter1229)); } xfer += oprot->writeListEnd(); } @@ -8139,14 +8378,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 _size1192; - ::apache::thrift::protocol::TType _etype1195; - xfer += iprot->readListBegin(_etype1195, _size1192); - this->success.resize(_size1192); - uint32_t _i1196; - for (_i1196 = 0; _i1196 < _size1192; ++_i1196) + uint32_t _size1230; + ::apache::thrift::protocol::TType _etype1233; + xfer += iprot->readListBegin(_etype1233, _size1230); + this->success.resize(_size1230); + uint32_t _i1234; + for (_i1234 = 0; _i1234 < _size1230; ++_i1234) { - xfer += this->success[_i1196].read(iprot); + xfer += this->success[_i1234].read(iprot); } xfer += iprot->readListEnd(); } @@ -8177,10 +8416,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 _iter1197; - for (_iter1197 = this->success.begin(); _iter1197 != this->success.end(); ++_iter1197) + std::vector
::const_iterator _iter1235; + for (_iter1235 = this->success.begin(); _iter1235 != this->success.end(); ++_iter1235) { - xfer += (*_iter1197).write(oprot); + xfer += (*_iter1235).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8221,14 +8460,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 _size1198; - ::apache::thrift::protocol::TType _etype1201; - xfer += iprot->readListBegin(_etype1201, _size1198); - (*(this->success)).resize(_size1198); - uint32_t _i1202; - for (_i1202 = 0; _i1202 < _size1198; ++_i1202) + uint32_t _size1236; + ::apache::thrift::protocol::TType _etype1239; + xfer += iprot->readListBegin(_etype1239, _size1236); + (*(this->success)).resize(_size1236); + uint32_t _i1240; + for (_i1240 = 0; _i1240 < _size1236; ++_i1240) { - xfer += (*(this->success))[_i1202].read(iprot); + xfer += (*(this->success))[_i1240].read(iprot); } xfer += iprot->readListEnd(); } @@ -8724,6 +8963,336 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_req_presult::read(::apach } +ThriftHiveMetastore_get_materialization_invalidation_info_args::~ThriftHiveMetastore_get_materialization_invalidation_info_args() throw() { +} + + +uint32_t ThriftHiveMetastore_get_materialization_invalidation_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; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->dbname); + this->__isset.dbname = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->tbl_names.clear(); + uint32_t _size1241; + ::apache::thrift::protocol::TType _etype1244; + xfer += iprot->readListBegin(_etype1244, _size1241); + this->tbl_names.resize(_size1241); + uint32_t _i1245; + for (_i1245 = 0; _i1245 < _size1241; ++_i1245) + { + xfer += iprot->readString(this->tbl_names[_i1245]); + } + xfer += iprot->readListEnd(); + } + this->__isset.tbl_names = 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_materialization_invalidation_info_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_materialization_invalidation_info_args"); + + xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->dbname); + xfer += oprot->writeFieldEnd(); + + 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 _iter1246; + for (_iter1246 = this->tbl_names.begin(); _iter1246 != this->tbl_names.end(); ++_iter1246) + { + xfer += oprot->writeString((*_iter1246)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_get_materialization_invalidation_info_pargs::~ThriftHiveMetastore_get_materialization_invalidation_info_pargs() throw() { +} + + +uint32_t ThriftHiveMetastore_get_materialization_invalidation_info_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_materialization_invalidation_info_pargs"); + + xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->dbname))); + xfer += oprot->writeFieldEnd(); + + 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 _iter1247; + for (_iter1247 = (*(this->tbl_names)).begin(); _iter1247 != (*(this->tbl_names)).end(); ++_iter1247) + { + xfer += oprot->writeString((*_iter1247)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_get_materialization_invalidation_info_result::~ThriftHiveMetastore_get_materialization_invalidation_info_result() throw() { +} + + +uint32_t ThriftHiveMetastore_get_materialization_invalidation_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_MAP) { + { + this->success.clear(); + uint32_t _size1248; + ::apache::thrift::protocol::TType _ktype1249; + ::apache::thrift::protocol::TType _vtype1250; + xfer += iprot->readMapBegin(_ktype1249, _vtype1250, _size1248); + uint32_t _i1252; + for (_i1252 = 0; _i1252 < _size1248; ++_i1252) + { + std::string _key1253; + xfer += iprot->readString(_key1253); + Materialization& _val1254 = this->success[_key1253]; + xfer += _val1254.read(iprot); + } + xfer += iprot->readMapEnd(); + } + this->__isset.success = true; + } else { + 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; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_get_materialization_invalidation_info_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_materialization_invalidation_info_result"); + + if (this->__isset.success) { + 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 _iter1255; + for (_iter1255 = this->success.begin(); _iter1255 != this->success.end(); ++_iter1255) + { + xfer += oprot->writeString(_iter1255->first); + xfer += _iter1255->second.write(oprot); + } + xfer += oprot->writeMapEnd(); + } + 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(); + return xfer; +} + + +ThriftHiveMetastore_get_materialization_invalidation_info_presult::~ThriftHiveMetastore_get_materialization_invalidation_info_presult() throw() { +} + + +uint32_t ThriftHiveMetastore_get_materialization_invalidation_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_MAP) { + { + (*(this->success)).clear(); + uint32_t _size1256; + ::apache::thrift::protocol::TType _ktype1257; + ::apache::thrift::protocol::TType _vtype1258; + xfer += iprot->readMapBegin(_ktype1257, _vtype1258, _size1256); + uint32_t _i1260; + for (_i1260 = 0; _i1260 < _size1256; ++_i1260) + { + std::string _key1261; + xfer += iprot->readString(_key1261); + Materialization& _val1262 = (*(this->success))[_key1261]; + xfer += _val1262.read(iprot); + } + xfer += iprot->readMapEnd(); + } + this->__isset.success = true; + } else { + 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; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + + ThriftHiveMetastore_get_table_names_by_filter_args::~ThriftHiveMetastore_get_table_names_by_filter_args() throw() { } @@ -8864,14 +9433,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 _size1203; - ::apache::thrift::protocol::TType _etype1206; - xfer += iprot->readListBegin(_etype1206, _size1203); - this->success.resize(_size1203); - uint32_t _i1207; - for (_i1207 = 0; _i1207 < _size1203; ++_i1207) + uint32_t _size1263; + ::apache::thrift::protocol::TType _etype1266; + xfer += iprot->readListBegin(_etype1266, _size1263); + this->success.resize(_size1263); + uint32_t _i1267; + for (_i1267 = 0; _i1267 < _size1263; ++_i1267) { - xfer += iprot->readString(this->success[_i1207]); + xfer += iprot->readString(this->success[_i1267]); } xfer += iprot->readListEnd(); } @@ -8926,10 +9495,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 _iter1208; - for (_iter1208 = this->success.begin(); _iter1208 != this->success.end(); ++_iter1208) + std::vector ::const_iterator _iter1268; + for (_iter1268 = this->success.begin(); _iter1268 != this->success.end(); ++_iter1268) { - xfer += oprot->writeString((*_iter1208)); + xfer += oprot->writeString((*_iter1268)); } xfer += oprot->writeListEnd(); } @@ -8982,14 +9551,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 _size1209; - ::apache::thrift::protocol::TType _etype1212; - xfer += iprot->readListBegin(_etype1212, _size1209); - (*(this->success)).resize(_size1209); - uint32_t _i1213; - for (_i1213 = 0; _i1213 < _size1209; ++_i1213) + uint32_t _size1269; + ::apache::thrift::protocol::TType _etype1272; + xfer += iprot->readListBegin(_etype1272, _size1269); + (*(this->success)).resize(_size1269); + uint32_t _i1273; + for (_i1273 = 0; _i1273 < _size1269; ++_i1273) { - xfer += iprot->readString((*(this->success))[_i1213]); + xfer += iprot->readString((*(this->success))[_i1273]); } xfer += iprot->readListEnd(); } @@ -10323,14 +10892,14 @@ uint32_t ThriftHiveMetastore_add_partitions_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1214; - ::apache::thrift::protocol::TType _etype1217; - xfer += iprot->readListBegin(_etype1217, _size1214); - this->new_parts.resize(_size1214); - uint32_t _i1218; - for (_i1218 = 0; _i1218 < _size1214; ++_i1218) + uint32_t _size1274; + ::apache::thrift::protocol::TType _etype1277; + xfer += iprot->readListBegin(_etype1277, _size1274); + this->new_parts.resize(_size1274); + uint32_t _i1278; + for (_i1278 = 0; _i1278 < _size1274; ++_i1278) { - xfer += this->new_parts[_i1218].read(iprot); + xfer += this->new_parts[_i1278].read(iprot); } xfer += iprot->readListEnd(); } @@ -10359,10 +10928,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 _iter1219; - for (_iter1219 = this->new_parts.begin(); _iter1219 != this->new_parts.end(); ++_iter1219) + std::vector ::const_iterator _iter1279; + for (_iter1279 = this->new_parts.begin(); _iter1279 != this->new_parts.end(); ++_iter1279) { - xfer += (*_iter1219).write(oprot); + xfer += (*_iter1279).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10386,10 +10955,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 _iter1220; - for (_iter1220 = (*(this->new_parts)).begin(); _iter1220 != (*(this->new_parts)).end(); ++_iter1220) + std::vector ::const_iterator _iter1280; + for (_iter1280 = (*(this->new_parts)).begin(); _iter1280 != (*(this->new_parts)).end(); ++_iter1280) { - xfer += (*_iter1220).write(oprot); + xfer += (*_iter1280).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10598,14 +11167,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 _size1221; - ::apache::thrift::protocol::TType _etype1224; - xfer += iprot->readListBegin(_etype1224, _size1221); - this->new_parts.resize(_size1221); - uint32_t _i1225; - for (_i1225 = 0; _i1225 < _size1221; ++_i1225) + uint32_t _size1281; + ::apache::thrift::protocol::TType _etype1284; + xfer += iprot->readListBegin(_etype1284, _size1281); + this->new_parts.resize(_size1281); + uint32_t _i1285; + for (_i1285 = 0; _i1285 < _size1281; ++_i1285) { - xfer += this->new_parts[_i1225].read(iprot); + xfer += this->new_parts[_i1285].read(iprot); } xfer += iprot->readListEnd(); } @@ -10634,10 +11203,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 _iter1226; - for (_iter1226 = this->new_parts.begin(); _iter1226 != this->new_parts.end(); ++_iter1226) + std::vector ::const_iterator _iter1286; + for (_iter1286 = this->new_parts.begin(); _iter1286 != this->new_parts.end(); ++_iter1286) { - xfer += (*_iter1226).write(oprot); + xfer += (*_iter1286).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10661,10 +11230,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 _iter1227; - for (_iter1227 = (*(this->new_parts)).begin(); _iter1227 != (*(this->new_parts)).end(); ++_iter1227) + std::vector ::const_iterator _iter1287; + for (_iter1287 = (*(this->new_parts)).begin(); _iter1287 != (*(this->new_parts)).end(); ++_iter1287) { - xfer += (*_iter1227).write(oprot); + xfer += (*_iter1287).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10889,14 +11458,14 @@ uint32_t ThriftHiveMetastore_append_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1228; - ::apache::thrift::protocol::TType _etype1231; - xfer += iprot->readListBegin(_etype1231, _size1228); - this->part_vals.resize(_size1228); - uint32_t _i1232; - for (_i1232 = 0; _i1232 < _size1228; ++_i1232) + uint32_t _size1288; + ::apache::thrift::protocol::TType _etype1291; + xfer += iprot->readListBegin(_etype1291, _size1288); + this->part_vals.resize(_size1288); + uint32_t _i1292; + for (_i1292 = 0; _i1292 < _size1288; ++_i1292) { - xfer += iprot->readString(this->part_vals[_i1232]); + xfer += iprot->readString(this->part_vals[_i1292]); } xfer += iprot->readListEnd(); } @@ -10933,10 +11502,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 _iter1233; - for (_iter1233 = this->part_vals.begin(); _iter1233 != this->part_vals.end(); ++_iter1233) + std::vector ::const_iterator _iter1293; + for (_iter1293 = this->part_vals.begin(); _iter1293 != this->part_vals.end(); ++_iter1293) { - xfer += oprot->writeString((*_iter1233)); + xfer += oprot->writeString((*_iter1293)); } xfer += oprot->writeListEnd(); } @@ -10968,10 +11537,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 _iter1234; - for (_iter1234 = (*(this->part_vals)).begin(); _iter1234 != (*(this->part_vals)).end(); ++_iter1234) + std::vector ::const_iterator _iter1294; + for (_iter1294 = (*(this->part_vals)).begin(); _iter1294 != (*(this->part_vals)).end(); ++_iter1294) { - xfer += oprot->writeString((*_iter1234)); + xfer += oprot->writeString((*_iter1294)); } xfer += oprot->writeListEnd(); } @@ -11443,14 +12012,14 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::rea if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1235; - ::apache::thrift::protocol::TType _etype1238; - xfer += iprot->readListBegin(_etype1238, _size1235); - this->part_vals.resize(_size1235); - uint32_t _i1239; - for (_i1239 = 0; _i1239 < _size1235; ++_i1239) + uint32_t _size1295; + ::apache::thrift::protocol::TType _etype1298; + xfer += iprot->readListBegin(_etype1298, _size1295); + this->part_vals.resize(_size1295); + uint32_t _i1299; + for (_i1299 = 0; _i1299 < _size1295; ++_i1299) { - xfer += iprot->readString(this->part_vals[_i1239]); + xfer += iprot->readString(this->part_vals[_i1299]); } xfer += iprot->readListEnd(); } @@ -11495,10 +12064,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 _iter1240; - for (_iter1240 = this->part_vals.begin(); _iter1240 != this->part_vals.end(); ++_iter1240) + std::vector ::const_iterator _iter1300; + for (_iter1300 = this->part_vals.begin(); _iter1300 != this->part_vals.end(); ++_iter1300) { - xfer += oprot->writeString((*_iter1240)); + xfer += oprot->writeString((*_iter1300)); } xfer += oprot->writeListEnd(); } @@ -11534,10 +12103,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 _iter1241; - for (_iter1241 = (*(this->part_vals)).begin(); _iter1241 != (*(this->part_vals)).end(); ++_iter1241) + std::vector ::const_iterator _iter1301; + for (_iter1301 = (*(this->part_vals)).begin(); _iter1301 != (*(this->part_vals)).end(); ++_iter1301) { - xfer += oprot->writeString((*_iter1241)); + xfer += oprot->writeString((*_iter1301)); } xfer += oprot->writeListEnd(); } @@ -12340,14 +12909,14 @@ uint32_t ThriftHiveMetastore_drop_partition_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1242; - ::apache::thrift::protocol::TType _etype1245; - xfer += iprot->readListBegin(_etype1245, _size1242); - this->part_vals.resize(_size1242); - uint32_t _i1246; - for (_i1246 = 0; _i1246 < _size1242; ++_i1246) + uint32_t _size1302; + ::apache::thrift::protocol::TType _etype1305; + xfer += iprot->readListBegin(_etype1305, _size1302); + this->part_vals.resize(_size1302); + uint32_t _i1306; + for (_i1306 = 0; _i1306 < _size1302; ++_i1306) { - xfer += iprot->readString(this->part_vals[_i1246]); + xfer += iprot->readString(this->part_vals[_i1306]); } xfer += iprot->readListEnd(); } @@ -12392,10 +12961,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 _iter1247; - for (_iter1247 = this->part_vals.begin(); _iter1247 != this->part_vals.end(); ++_iter1247) + std::vector ::const_iterator _iter1307; + for (_iter1307 = this->part_vals.begin(); _iter1307 != this->part_vals.end(); ++_iter1307) { - xfer += oprot->writeString((*_iter1247)); + xfer += oprot->writeString((*_iter1307)); } xfer += oprot->writeListEnd(); } @@ -12431,10 +13000,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 _iter1248; - for (_iter1248 = (*(this->part_vals)).begin(); _iter1248 != (*(this->part_vals)).end(); ++_iter1248) + std::vector ::const_iterator _iter1308; + for (_iter1308 = (*(this->part_vals)).begin(); _iter1308 != (*(this->part_vals)).end(); ++_iter1308) { - xfer += oprot->writeString((*_iter1248)); + xfer += oprot->writeString((*_iter1308)); } xfer += oprot->writeListEnd(); } @@ -12643,14 +13212,14 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::read( if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1249; - ::apache::thrift::protocol::TType _etype1252; - xfer += iprot->readListBegin(_etype1252, _size1249); - this->part_vals.resize(_size1249); - uint32_t _i1253; - for (_i1253 = 0; _i1253 < _size1249; ++_i1253) + uint32_t _size1309; + ::apache::thrift::protocol::TType _etype1312; + xfer += iprot->readListBegin(_etype1312, _size1309); + this->part_vals.resize(_size1309); + uint32_t _i1313; + for (_i1313 = 0; _i1313 < _size1309; ++_i1313) { - xfer += iprot->readString(this->part_vals[_i1253]); + xfer += iprot->readString(this->part_vals[_i1313]); } xfer += iprot->readListEnd(); } @@ -12703,10 +13272,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 _iter1254; - for (_iter1254 = this->part_vals.begin(); _iter1254 != this->part_vals.end(); ++_iter1254) + std::vector ::const_iterator _iter1314; + for (_iter1314 = this->part_vals.begin(); _iter1314 != this->part_vals.end(); ++_iter1314) { - xfer += oprot->writeString((*_iter1254)); + xfer += oprot->writeString((*_iter1314)); } xfer += oprot->writeListEnd(); } @@ -12746,10 +13315,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 _iter1255; - for (_iter1255 = (*(this->part_vals)).begin(); _iter1255 != (*(this->part_vals)).end(); ++_iter1255) + std::vector ::const_iterator _iter1315; + for (_iter1315 = (*(this->part_vals)).begin(); _iter1315 != (*(this->part_vals)).end(); ++_iter1315) { - xfer += oprot->writeString((*_iter1255)); + xfer += oprot->writeString((*_iter1315)); } xfer += oprot->writeListEnd(); } @@ -13755,14 +14324,14 @@ uint32_t ThriftHiveMetastore_get_partition_args::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1256; - ::apache::thrift::protocol::TType _etype1259; - xfer += iprot->readListBegin(_etype1259, _size1256); - this->part_vals.resize(_size1256); - uint32_t _i1260; - for (_i1260 = 0; _i1260 < _size1256; ++_i1260) + uint32_t _size1316; + ::apache::thrift::protocol::TType _etype1319; + xfer += iprot->readListBegin(_etype1319, _size1316); + this->part_vals.resize(_size1316); + uint32_t _i1320; + for (_i1320 = 0; _i1320 < _size1316; ++_i1320) { - xfer += iprot->readString(this->part_vals[_i1260]); + xfer += iprot->readString(this->part_vals[_i1320]); } xfer += iprot->readListEnd(); } @@ -13799,10 +14368,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 _iter1261; - for (_iter1261 = this->part_vals.begin(); _iter1261 != this->part_vals.end(); ++_iter1261) + std::vector ::const_iterator _iter1321; + for (_iter1321 = this->part_vals.begin(); _iter1321 != this->part_vals.end(); ++_iter1321) { - xfer += oprot->writeString((*_iter1261)); + xfer += oprot->writeString((*_iter1321)); } xfer += oprot->writeListEnd(); } @@ -13834,10 +14403,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 _iter1262; - for (_iter1262 = (*(this->part_vals)).begin(); _iter1262 != (*(this->part_vals)).end(); ++_iter1262) + std::vector ::const_iterator _iter1322; + for (_iter1322 = (*(this->part_vals)).begin(); _iter1322 != (*(this->part_vals)).end(); ++_iter1322) { - xfer += oprot->writeString((*_iter1262)); + xfer += oprot->writeString((*_iter1322)); } xfer += oprot->writeListEnd(); } @@ -14026,17 +14595,17 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size1263; - ::apache::thrift::protocol::TType _ktype1264; - ::apache::thrift::protocol::TType _vtype1265; - xfer += iprot->readMapBegin(_ktype1264, _vtype1265, _size1263); - uint32_t _i1267; - for (_i1267 = 0; _i1267 < _size1263; ++_i1267) + uint32_t _size1323; + ::apache::thrift::protocol::TType _ktype1324; + ::apache::thrift::protocol::TType _vtype1325; + xfer += iprot->readMapBegin(_ktype1324, _vtype1325, _size1323); + uint32_t _i1327; + for (_i1327 = 0; _i1327 < _size1323; ++_i1327) { - std::string _key1268; - xfer += iprot->readString(_key1268); - std::string& _val1269 = this->partitionSpecs[_key1268]; - xfer += iprot->readString(_val1269); + std::string _key1328; + xfer += iprot->readString(_key1328); + std::string& _val1329 = this->partitionSpecs[_key1328]; + xfer += iprot->readString(_val1329); } xfer += iprot->readMapEnd(); } @@ -14097,11 +14666,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 _iter1270; - for (_iter1270 = this->partitionSpecs.begin(); _iter1270 != this->partitionSpecs.end(); ++_iter1270) + std::map ::const_iterator _iter1330; + for (_iter1330 = this->partitionSpecs.begin(); _iter1330 != this->partitionSpecs.end(); ++_iter1330) { - xfer += oprot->writeString(_iter1270->first); - xfer += oprot->writeString(_iter1270->second); + xfer += oprot->writeString(_iter1330->first); + xfer += oprot->writeString(_iter1330->second); } xfer += oprot->writeMapEnd(); } @@ -14141,11 +14710,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 _iter1271; - for (_iter1271 = (*(this->partitionSpecs)).begin(); _iter1271 != (*(this->partitionSpecs)).end(); ++_iter1271) + std::map ::const_iterator _iter1331; + for (_iter1331 = (*(this->partitionSpecs)).begin(); _iter1331 != (*(this->partitionSpecs)).end(); ++_iter1331) { - xfer += oprot->writeString(_iter1271->first); - xfer += oprot->writeString(_iter1271->second); + xfer += oprot->writeString(_iter1331->first); + xfer += oprot->writeString(_iter1331->second); } xfer += oprot->writeMapEnd(); } @@ -14390,17 +14959,17 @@ uint32_t ThriftHiveMetastore_exchange_partitions_args::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size1272; - ::apache::thrift::protocol::TType _ktype1273; - ::apache::thrift::protocol::TType _vtype1274; - xfer += iprot->readMapBegin(_ktype1273, _vtype1274, _size1272); - uint32_t _i1276; - for (_i1276 = 0; _i1276 < _size1272; ++_i1276) + uint32_t _size1332; + ::apache::thrift::protocol::TType _ktype1333; + ::apache::thrift::protocol::TType _vtype1334; + xfer += iprot->readMapBegin(_ktype1333, _vtype1334, _size1332); + uint32_t _i1336; + for (_i1336 = 0; _i1336 < _size1332; ++_i1336) { - std::string _key1277; - xfer += iprot->readString(_key1277); - std::string& _val1278 = this->partitionSpecs[_key1277]; - xfer += iprot->readString(_val1278); + std::string _key1337; + xfer += iprot->readString(_key1337); + std::string& _val1338 = this->partitionSpecs[_key1337]; + xfer += iprot->readString(_val1338); } xfer += iprot->readMapEnd(); } @@ -14461,11 +15030,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 _iter1279; - for (_iter1279 = this->partitionSpecs.begin(); _iter1279 != this->partitionSpecs.end(); ++_iter1279) + std::map ::const_iterator _iter1339; + for (_iter1339 = this->partitionSpecs.begin(); _iter1339 != this->partitionSpecs.end(); ++_iter1339) { - xfer += oprot->writeString(_iter1279->first); - xfer += oprot->writeString(_iter1279->second); + xfer += oprot->writeString(_iter1339->first); + xfer += oprot->writeString(_iter1339->second); } xfer += oprot->writeMapEnd(); } @@ -14505,11 +15074,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 _iter1280; - for (_iter1280 = (*(this->partitionSpecs)).begin(); _iter1280 != (*(this->partitionSpecs)).end(); ++_iter1280) + std::map ::const_iterator _iter1340; + for (_iter1340 = (*(this->partitionSpecs)).begin(); _iter1340 != (*(this->partitionSpecs)).end(); ++_iter1340) { - xfer += oprot->writeString(_iter1280->first); - xfer += oprot->writeString(_iter1280->second); + xfer += oprot->writeString(_iter1340->first); + xfer += oprot->writeString(_iter1340->second); } xfer += oprot->writeMapEnd(); } @@ -14566,14 +15135,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1281; - ::apache::thrift::protocol::TType _etype1284; - xfer += iprot->readListBegin(_etype1284, _size1281); - this->success.resize(_size1281); - uint32_t _i1285; - for (_i1285 = 0; _i1285 < _size1281; ++_i1285) + uint32_t _size1341; + ::apache::thrift::protocol::TType _etype1344; + xfer += iprot->readListBegin(_etype1344, _size1341); + this->success.resize(_size1341); + uint32_t _i1345; + for (_i1345 = 0; _i1345 < _size1341; ++_i1345) { - xfer += this->success[_i1285].read(iprot); + xfer += this->success[_i1345].read(iprot); } xfer += iprot->readListEnd(); } @@ -14636,10 +15205,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 _iter1286; - for (_iter1286 = this->success.begin(); _iter1286 != this->success.end(); ++_iter1286) + std::vector ::const_iterator _iter1346; + for (_iter1346 = this->success.begin(); _iter1346 != this->success.end(); ++_iter1346) { - xfer += (*_iter1286).write(oprot); + xfer += (*_iter1346).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14696,14 +15265,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1287; - ::apache::thrift::protocol::TType _etype1290; - xfer += iprot->readListBegin(_etype1290, _size1287); - (*(this->success)).resize(_size1287); - uint32_t _i1291; - for (_i1291 = 0; _i1291 < _size1287; ++_i1291) + uint32_t _size1347; + ::apache::thrift::protocol::TType _etype1350; + xfer += iprot->readListBegin(_etype1350, _size1347); + (*(this->success)).resize(_size1347); + uint32_t _i1351; + for (_i1351 = 0; _i1351 < _size1347; ++_i1351) { - xfer += (*(this->success))[_i1291].read(iprot); + xfer += (*(this->success))[_i1351].read(iprot); } xfer += iprot->readListEnd(); } @@ -14802,14 +15371,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 _size1292; - ::apache::thrift::protocol::TType _etype1295; - xfer += iprot->readListBegin(_etype1295, _size1292); - this->part_vals.resize(_size1292); - uint32_t _i1296; - for (_i1296 = 0; _i1296 < _size1292; ++_i1296) + uint32_t _size1352; + ::apache::thrift::protocol::TType _etype1355; + xfer += iprot->readListBegin(_etype1355, _size1352); + this->part_vals.resize(_size1352); + uint32_t _i1356; + for (_i1356 = 0; _i1356 < _size1352; ++_i1356) { - xfer += iprot->readString(this->part_vals[_i1296]); + xfer += iprot->readString(this->part_vals[_i1356]); } xfer += iprot->readListEnd(); } @@ -14830,14 +15399,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 _size1297; - ::apache::thrift::protocol::TType _etype1300; - xfer += iprot->readListBegin(_etype1300, _size1297); - this->group_names.resize(_size1297); - uint32_t _i1301; - for (_i1301 = 0; _i1301 < _size1297; ++_i1301) + uint32_t _size1357; + ::apache::thrift::protocol::TType _etype1360; + xfer += iprot->readListBegin(_etype1360, _size1357); + this->group_names.resize(_size1357); + uint32_t _i1361; + for (_i1361 = 0; _i1361 < _size1357; ++_i1361) { - xfer += iprot->readString(this->group_names[_i1301]); + xfer += iprot->readString(this->group_names[_i1361]); } xfer += iprot->readListEnd(); } @@ -14874,10 +15443,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 _iter1302; - for (_iter1302 = this->part_vals.begin(); _iter1302 != this->part_vals.end(); ++_iter1302) + std::vector ::const_iterator _iter1362; + for (_iter1362 = this->part_vals.begin(); _iter1362 != this->part_vals.end(); ++_iter1362) { - xfer += oprot->writeString((*_iter1302)); + xfer += oprot->writeString((*_iter1362)); } xfer += oprot->writeListEnd(); } @@ -14890,10 +15459,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 _iter1303; - for (_iter1303 = this->group_names.begin(); _iter1303 != this->group_names.end(); ++_iter1303) + std::vector ::const_iterator _iter1363; + for (_iter1363 = this->group_names.begin(); _iter1363 != this->group_names.end(); ++_iter1363) { - xfer += oprot->writeString((*_iter1303)); + xfer += oprot->writeString((*_iter1363)); } xfer += oprot->writeListEnd(); } @@ -14925,10 +15494,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 _iter1304; - for (_iter1304 = (*(this->part_vals)).begin(); _iter1304 != (*(this->part_vals)).end(); ++_iter1304) + std::vector ::const_iterator _iter1364; + for (_iter1364 = (*(this->part_vals)).begin(); _iter1364 != (*(this->part_vals)).end(); ++_iter1364) { - xfer += oprot->writeString((*_iter1304)); + xfer += oprot->writeString((*_iter1364)); } xfer += oprot->writeListEnd(); } @@ -14941,10 +15510,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 _iter1305; - for (_iter1305 = (*(this->group_names)).begin(); _iter1305 != (*(this->group_names)).end(); ++_iter1305) + std::vector ::const_iterator _iter1365; + for (_iter1365 = (*(this->group_names)).begin(); _iter1365 != (*(this->group_names)).end(); ++_iter1365) { - xfer += oprot->writeString((*_iter1305)); + xfer += oprot->writeString((*_iter1365)); } xfer += oprot->writeListEnd(); } @@ -15503,14 +16072,14 @@ uint32_t ThriftHiveMetastore_get_partitions_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1306; - ::apache::thrift::protocol::TType _etype1309; - xfer += iprot->readListBegin(_etype1309, _size1306); - this->success.resize(_size1306); - uint32_t _i1310; - for (_i1310 = 0; _i1310 < _size1306; ++_i1310) + uint32_t _size1366; + ::apache::thrift::protocol::TType _etype1369; + xfer += iprot->readListBegin(_etype1369, _size1366); + this->success.resize(_size1366); + uint32_t _i1370; + for (_i1370 = 0; _i1370 < _size1366; ++_i1370) { - xfer += this->success[_i1310].read(iprot); + xfer += this->success[_i1370].read(iprot); } xfer += iprot->readListEnd(); } @@ -15557,10 +16126,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 _iter1311; - for (_iter1311 = this->success.begin(); _iter1311 != this->success.end(); ++_iter1311) + std::vector ::const_iterator _iter1371; + for (_iter1371 = this->success.begin(); _iter1371 != this->success.end(); ++_iter1371) { - xfer += (*_iter1311).write(oprot); + xfer += (*_iter1371).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15609,14 +16178,14 @@ uint32_t ThriftHiveMetastore_get_partitions_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1312; - ::apache::thrift::protocol::TType _etype1315; - xfer += iprot->readListBegin(_etype1315, _size1312); - (*(this->success)).resize(_size1312); - uint32_t _i1316; - for (_i1316 = 0; _i1316 < _size1312; ++_i1316) + 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) { - xfer += (*(this->success))[_i1316].read(iprot); + xfer += (*(this->success))[_i1376].read(iprot); } xfer += iprot->readListEnd(); } @@ -15715,14 +16284,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 _size1317; - ::apache::thrift::protocol::TType _etype1320; - xfer += iprot->readListBegin(_etype1320, _size1317); - this->group_names.resize(_size1317); - uint32_t _i1321; - for (_i1321 = 0; _i1321 < _size1317; ++_i1321) + uint32_t _size1377; + ::apache::thrift::protocol::TType _etype1380; + xfer += iprot->readListBegin(_etype1380, _size1377); + this->group_names.resize(_size1377); + uint32_t _i1381; + for (_i1381 = 0; _i1381 < _size1377; ++_i1381) { - xfer += iprot->readString(this->group_names[_i1321]); + xfer += iprot->readString(this->group_names[_i1381]); } xfer += iprot->readListEnd(); } @@ -15767,10 +16336,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 _iter1322; - for (_iter1322 = this->group_names.begin(); _iter1322 != this->group_names.end(); ++_iter1322) + std::vector ::const_iterator _iter1382; + for (_iter1382 = this->group_names.begin(); _iter1382 != this->group_names.end(); ++_iter1382) { - xfer += oprot->writeString((*_iter1322)); + xfer += oprot->writeString((*_iter1382)); } xfer += oprot->writeListEnd(); } @@ -15810,10 +16379,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 _iter1323; - for (_iter1323 = (*(this->group_names)).begin(); _iter1323 != (*(this->group_names)).end(); ++_iter1323) + std::vector ::const_iterator _iter1383; + for (_iter1383 = (*(this->group_names)).begin(); _iter1383 != (*(this->group_names)).end(); ++_iter1383) { - xfer += oprot->writeString((*_iter1323)); + xfer += oprot->writeString((*_iter1383)); } xfer += oprot->writeListEnd(); } @@ -15854,14 +16423,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1324; - ::apache::thrift::protocol::TType _etype1327; - xfer += iprot->readListBegin(_etype1327, _size1324); - this->success.resize(_size1324); - uint32_t _i1328; - for (_i1328 = 0; _i1328 < _size1324; ++_i1328) + 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[_i1328].read(iprot); + xfer += this->success[_i1388].read(iprot); } xfer += iprot->readListEnd(); } @@ -15908,10 +16477,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 _iter1329; - for (_iter1329 = this->success.begin(); _iter1329 != this->success.end(); ++_iter1329) + std::vector ::const_iterator _iter1389; + for (_iter1389 = this->success.begin(); _iter1389 != this->success.end(); ++_iter1389) { - xfer += (*_iter1329).write(oprot); + xfer += (*_iter1389).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15960,14 +16529,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1330; - ::apache::thrift::protocol::TType _etype1333; - xfer += iprot->readListBegin(_etype1333, _size1330); - (*(this->success)).resize(_size1330); - uint32_t _i1334; - for (_i1334 = 0; _i1334 < _size1330; ++_i1334) + uint32_t _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))[_i1334].read(iprot); + xfer += (*(this->success))[_i1394].read(iprot); } xfer += iprot->readListEnd(); } @@ -16145,14 +16714,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_result::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1335; - ::apache::thrift::protocol::TType _etype1338; - xfer += iprot->readListBegin(_etype1338, _size1335); - this->success.resize(_size1335); - uint32_t _i1339; - for (_i1339 = 0; _i1339 < _size1335; ++_i1339) + uint32_t _size1395; + ::apache::thrift::protocol::TType _etype1398; + xfer += iprot->readListBegin(_etype1398, _size1395); + this->success.resize(_size1395); + uint32_t _i1399; + for (_i1399 = 0; _i1399 < _size1395; ++_i1399) { - xfer += this->success[_i1339].read(iprot); + xfer += this->success[_i1399].read(iprot); } xfer += iprot->readListEnd(); } @@ -16199,10 +16768,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 _iter1340; - for (_iter1340 = this->success.begin(); _iter1340 != this->success.end(); ++_iter1340) + std::vector ::const_iterator _iter1400; + for (_iter1400 = this->success.begin(); _iter1400 != this->success.end(); ++_iter1400) { - xfer += (*_iter1340).write(oprot); + xfer += (*_iter1400).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16251,14 +16820,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_presult::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1341; - ::apache::thrift::protocol::TType _etype1344; - xfer += iprot->readListBegin(_etype1344, _size1341); - (*(this->success)).resize(_size1341); - uint32_t _i1345; - for (_i1345 = 0; _i1345 < _size1341; ++_i1345) + uint32_t _size1401; + ::apache::thrift::protocol::TType _etype1404; + xfer += iprot->readListBegin(_etype1404, _size1401); + (*(this->success)).resize(_size1401); + uint32_t _i1405; + for (_i1405 = 0; _i1405 < _size1401; ++_i1405) { - xfer += (*(this->success))[_i1345].read(iprot); + xfer += (*(this->success))[_i1405].read(iprot); } xfer += iprot->readListEnd(); } @@ -16436,14 +17005,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1346; - ::apache::thrift::protocol::TType _etype1349; - xfer += iprot->readListBegin(_etype1349, _size1346); - this->success.resize(_size1346); - uint32_t _i1350; - for (_i1350 = 0; _i1350 < _size1346; ++_i1350) + 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) { - xfer += iprot->readString(this->success[_i1350]); + xfer += iprot->readString(this->success[_i1410]); } xfer += iprot->readListEnd(); } @@ -16490,10 +17059,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 _iter1351; - for (_iter1351 = this->success.begin(); _iter1351 != this->success.end(); ++_iter1351) + std::vector ::const_iterator _iter1411; + for (_iter1411 = this->success.begin(); _iter1411 != this->success.end(); ++_iter1411) { - xfer += oprot->writeString((*_iter1351)); + xfer += oprot->writeString((*_iter1411)); } xfer += oprot->writeListEnd(); } @@ -16542,14 +17111,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1352; - ::apache::thrift::protocol::TType _etype1355; - xfer += iprot->readListBegin(_etype1355, _size1352); - (*(this->success)).resize(_size1352); - uint32_t _i1356; - for (_i1356 = 0; _i1356 < _size1352; ++_i1356) + uint32_t _size1412; + ::apache::thrift::protocol::TType _etype1415; + xfer += iprot->readListBegin(_etype1415, _size1412); + (*(this->success)).resize(_size1412); + uint32_t _i1416; + for (_i1416 = 0; _i1416 < _size1412; ++_i1416) { - xfer += iprot->readString((*(this->success))[_i1356]); + xfer += iprot->readString((*(this->success))[_i1416]); } xfer += iprot->readListEnd(); } @@ -16859,14 +17428,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 _size1357; - ::apache::thrift::protocol::TType _etype1360; - xfer += iprot->readListBegin(_etype1360, _size1357); - this->part_vals.resize(_size1357); - uint32_t _i1361; - for (_i1361 = 0; _i1361 < _size1357; ++_i1361) + uint32_t _size1417; + ::apache::thrift::protocol::TType _etype1420; + xfer += iprot->readListBegin(_etype1420, _size1417); + this->part_vals.resize(_size1417); + uint32_t _i1421; + for (_i1421 = 0; _i1421 < _size1417; ++_i1421) { - xfer += iprot->readString(this->part_vals[_i1361]); + xfer += iprot->readString(this->part_vals[_i1421]); } xfer += iprot->readListEnd(); } @@ -16911,10 +17480,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 _iter1362; - for (_iter1362 = this->part_vals.begin(); _iter1362 != this->part_vals.end(); ++_iter1362) + std::vector ::const_iterator _iter1422; + for (_iter1422 = this->part_vals.begin(); _iter1422 != this->part_vals.end(); ++_iter1422) { - xfer += oprot->writeString((*_iter1362)); + xfer += oprot->writeString((*_iter1422)); } xfer += oprot->writeListEnd(); } @@ -16950,10 +17519,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 _iter1363; - for (_iter1363 = (*(this->part_vals)).begin(); _iter1363 != (*(this->part_vals)).end(); ++_iter1363) + std::vector ::const_iterator _iter1423; + for (_iter1423 = (*(this->part_vals)).begin(); _iter1423 != (*(this->part_vals)).end(); ++_iter1423) { - xfer += oprot->writeString((*_iter1363)); + xfer += oprot->writeString((*_iter1423)); } xfer += oprot->writeListEnd(); } @@ -16998,14 +17567,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1364; - ::apache::thrift::protocol::TType _etype1367; - xfer += iprot->readListBegin(_etype1367, _size1364); - this->success.resize(_size1364); - uint32_t _i1368; - for (_i1368 = 0; _i1368 < _size1364; ++_i1368) + 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 += this->success[_i1368].read(iprot); + xfer += this->success[_i1428].read(iprot); } xfer += iprot->readListEnd(); } @@ -17052,10 +17621,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 _iter1369; - for (_iter1369 = this->success.begin(); _iter1369 != this->success.end(); ++_iter1369) + std::vector ::const_iterator _iter1429; + for (_iter1429 = this->success.begin(); _iter1429 != this->success.end(); ++_iter1429) { - xfer += (*_iter1369).write(oprot); + xfer += (*_iter1429).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17104,14 +17673,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1370; - ::apache::thrift::protocol::TType _etype1373; - xfer += iprot->readListBegin(_etype1373, _size1370); - (*(this->success)).resize(_size1370); - uint32_t _i1374; - for (_i1374 = 0; _i1374 < _size1370; ++_i1374) + uint32_t _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 += (*(this->success))[_i1374].read(iprot); + xfer += (*(this->success))[_i1434].read(iprot); } xfer += iprot->readListEnd(); } @@ -17194,14 +17763,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 _size1375; - ::apache::thrift::protocol::TType _etype1378; - xfer += iprot->readListBegin(_etype1378, _size1375); - this->part_vals.resize(_size1375); - uint32_t _i1379; - for (_i1379 = 0; _i1379 < _size1375; ++_i1379) + uint32_t _size1435; + ::apache::thrift::protocol::TType _etype1438; + xfer += iprot->readListBegin(_etype1438, _size1435); + this->part_vals.resize(_size1435); + uint32_t _i1439; + for (_i1439 = 0; _i1439 < _size1435; ++_i1439) { - xfer += iprot->readString(this->part_vals[_i1379]); + xfer += iprot->readString(this->part_vals[_i1439]); } xfer += iprot->readListEnd(); } @@ -17230,14 +17799,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 _size1380; - ::apache::thrift::protocol::TType _etype1383; - xfer += iprot->readListBegin(_etype1383, _size1380); - this->group_names.resize(_size1380); - uint32_t _i1384; - for (_i1384 = 0; _i1384 < _size1380; ++_i1384) + uint32_t _size1440; + ::apache::thrift::protocol::TType _etype1443; + xfer += iprot->readListBegin(_etype1443, _size1440); + this->group_names.resize(_size1440); + uint32_t _i1444; + for (_i1444 = 0; _i1444 < _size1440; ++_i1444) { - xfer += iprot->readString(this->group_names[_i1384]); + xfer += iprot->readString(this->group_names[_i1444]); } xfer += iprot->readListEnd(); } @@ -17274,10 +17843,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 _iter1385; - for (_iter1385 = this->part_vals.begin(); _iter1385 != this->part_vals.end(); ++_iter1385) + std::vector ::const_iterator _iter1445; + for (_iter1445 = this->part_vals.begin(); _iter1445 != this->part_vals.end(); ++_iter1445) { - xfer += oprot->writeString((*_iter1385)); + xfer += oprot->writeString((*_iter1445)); } xfer += oprot->writeListEnd(); } @@ -17294,10 +17863,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 _iter1386; - for (_iter1386 = this->group_names.begin(); _iter1386 != this->group_names.end(); ++_iter1386) + std::vector ::const_iterator _iter1446; + for (_iter1446 = this->group_names.begin(); _iter1446 != this->group_names.end(); ++_iter1446) { - xfer += oprot->writeString((*_iter1386)); + xfer += oprot->writeString((*_iter1446)); } xfer += oprot->writeListEnd(); } @@ -17329,10 +17898,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 _iter1387; - for (_iter1387 = (*(this->part_vals)).begin(); _iter1387 != (*(this->part_vals)).end(); ++_iter1387) + std::vector ::const_iterator _iter1447; + for (_iter1447 = (*(this->part_vals)).begin(); _iter1447 != (*(this->part_vals)).end(); ++_iter1447) { - xfer += oprot->writeString((*_iter1387)); + xfer += oprot->writeString((*_iter1447)); } xfer += oprot->writeListEnd(); } @@ -17349,10 +17918,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 _iter1388; - for (_iter1388 = (*(this->group_names)).begin(); _iter1388 != (*(this->group_names)).end(); ++_iter1388) + std::vector ::const_iterator _iter1448; + for (_iter1448 = (*(this->group_names)).begin(); _iter1448 != (*(this->group_names)).end(); ++_iter1448) { - xfer += oprot->writeString((*_iter1388)); + xfer += oprot->writeString((*_iter1448)); } xfer += oprot->writeListEnd(); } @@ -17393,14 +17962,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1389; - ::apache::thrift::protocol::TType _etype1392; - xfer += iprot->readListBegin(_etype1392, _size1389); - this->success.resize(_size1389); - uint32_t _i1393; - for (_i1393 = 0; _i1393 < _size1389; ++_i1393) + uint32_t _size1449; + ::apache::thrift::protocol::TType _etype1452; + xfer += iprot->readListBegin(_etype1452, _size1449); + this->success.resize(_size1449); + uint32_t _i1453; + for (_i1453 = 0; _i1453 < _size1449; ++_i1453) { - xfer += this->success[_i1393].read(iprot); + xfer += this->success[_i1453].read(iprot); } xfer += iprot->readListEnd(); } @@ -17447,10 +18016,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 _iter1394; - for (_iter1394 = this->success.begin(); _iter1394 != this->success.end(); ++_iter1394) + std::vector ::const_iterator _iter1454; + for (_iter1454 = this->success.begin(); _iter1454 != this->success.end(); ++_iter1454) { - xfer += (*_iter1394).write(oprot); + xfer += (*_iter1454).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17499,14 +18068,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_presult::read(::apache: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1395; - ::apache::thrift::protocol::TType _etype1398; - xfer += iprot->readListBegin(_etype1398, _size1395); - (*(this->success)).resize(_size1395); - uint32_t _i1399; - for (_i1399 = 0; _i1399 < _size1395; ++_i1399) + uint32_t _size1455; + ::apache::thrift::protocol::TType _etype1458; + xfer += iprot->readListBegin(_etype1458, _size1455); + (*(this->success)).resize(_size1455); + uint32_t _i1459; + for (_i1459 = 0; _i1459 < _size1455; ++_i1459) { - xfer += (*(this->success))[_i1399].read(iprot); + xfer += (*(this->success))[_i1459].read(iprot); } xfer += iprot->readListEnd(); } @@ -17589,14 +18158,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 _size1400; - ::apache::thrift::protocol::TType _etype1403; - xfer += iprot->readListBegin(_etype1403, _size1400); - this->part_vals.resize(_size1400); - uint32_t _i1404; - for (_i1404 = 0; _i1404 < _size1400; ++_i1404) + uint32_t _size1460; + ::apache::thrift::protocol::TType _etype1463; + xfer += iprot->readListBegin(_etype1463, _size1460); + this->part_vals.resize(_size1460); + uint32_t _i1464; + for (_i1464 = 0; _i1464 < _size1460; ++_i1464) { - xfer += iprot->readString(this->part_vals[_i1404]); + xfer += iprot->readString(this->part_vals[_i1464]); } xfer += iprot->readListEnd(); } @@ -17641,10 +18210,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 _iter1405; - for (_iter1405 = this->part_vals.begin(); _iter1405 != this->part_vals.end(); ++_iter1405) + std::vector ::const_iterator _iter1465; + for (_iter1465 = this->part_vals.begin(); _iter1465 != this->part_vals.end(); ++_iter1465) { - xfer += oprot->writeString((*_iter1405)); + xfer += oprot->writeString((*_iter1465)); } xfer += oprot->writeListEnd(); } @@ -17680,10 +18249,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 _iter1406; - for (_iter1406 = (*(this->part_vals)).begin(); _iter1406 != (*(this->part_vals)).end(); ++_iter1406) + std::vector ::const_iterator _iter1466; + for (_iter1466 = (*(this->part_vals)).begin(); _iter1466 != (*(this->part_vals)).end(); ++_iter1466) { - xfer += oprot->writeString((*_iter1406)); + xfer += oprot->writeString((*_iter1466)); } xfer += oprot->writeListEnd(); } @@ -17728,14 +18297,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1407; - ::apache::thrift::protocol::TType _etype1410; - xfer += iprot->readListBegin(_etype1410, _size1407); - this->success.resize(_size1407); - uint32_t _i1411; - for (_i1411 = 0; _i1411 < _size1407; ++_i1411) + uint32_t _size1467; + ::apache::thrift::protocol::TType _etype1470; + xfer += iprot->readListBegin(_etype1470, _size1467); + this->success.resize(_size1467); + uint32_t _i1471; + for (_i1471 = 0; _i1471 < _size1467; ++_i1471) { - xfer += iprot->readString(this->success[_i1411]); + xfer += iprot->readString(this->success[_i1471]); } xfer += iprot->readListEnd(); } @@ -17782,10 +18351,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 _iter1412; - for (_iter1412 = this->success.begin(); _iter1412 != this->success.end(); ++_iter1412) + std::vector ::const_iterator _iter1472; + for (_iter1472 = this->success.begin(); _iter1472 != this->success.end(); ++_iter1472) { - xfer += oprot->writeString((*_iter1412)); + xfer += oprot->writeString((*_iter1472)); } xfer += oprot->writeListEnd(); } @@ -17834,14 +18403,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - 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) + uint32_t _size1473; + ::apache::thrift::protocol::TType _etype1476; + xfer += iprot->readListBegin(_etype1476, _size1473); + (*(this->success)).resize(_size1473); + uint32_t _i1477; + for (_i1477 = 0; _i1477 < _size1473; ++_i1477) { - xfer += iprot->readString((*(this->success))[_i1417]); + xfer += iprot->readString((*(this->success))[_i1477]); } xfer += iprot->readListEnd(); } @@ -18035,14 +18604,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1418; - ::apache::thrift::protocol::TType _etype1421; - xfer += iprot->readListBegin(_etype1421, _size1418); - this->success.resize(_size1418); - uint32_t _i1422; - for (_i1422 = 0; _i1422 < _size1418; ++_i1422) + uint32_t _size1478; + ::apache::thrift::protocol::TType _etype1481; + xfer += iprot->readListBegin(_etype1481, _size1478); + this->success.resize(_size1478); + uint32_t _i1482; + for (_i1482 = 0; _i1482 < _size1478; ++_i1482) { - xfer += this->success[_i1422].read(iprot); + xfer += this->success[_i1482].read(iprot); } xfer += iprot->readListEnd(); } @@ -18089,10 +18658,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 _iter1423; - for (_iter1423 = this->success.begin(); _iter1423 != this->success.end(); ++_iter1423) + std::vector ::const_iterator _iter1483; + for (_iter1483 = this->success.begin(); _iter1483 != this->success.end(); ++_iter1483) { - xfer += (*_iter1423).write(oprot); + xfer += (*_iter1483).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18141,14 +18710,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::th 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 _size1484; + ::apache::thrift::protocol::TType _etype1487; + xfer += iprot->readListBegin(_etype1487, _size1484); + (*(this->success)).resize(_size1484); + uint32_t _i1488; + for (_i1488 = 0; _i1488 < _size1484; ++_i1488) { - xfer += (*(this->success))[_i1428].read(iprot); + xfer += (*(this->success))[_i1488].read(iprot); } xfer += iprot->readListEnd(); } @@ -18342,14 +18911,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 _size1429; - ::apache::thrift::protocol::TType _etype1432; - xfer += iprot->readListBegin(_etype1432, _size1429); - this->success.resize(_size1429); - uint32_t _i1433; - for (_i1433 = 0; _i1433 < _size1429; ++_i1433) + uint32_t _size1489; + ::apache::thrift::protocol::TType _etype1492; + xfer += iprot->readListBegin(_etype1492, _size1489); + this->success.resize(_size1489); + uint32_t _i1493; + for (_i1493 = 0; _i1493 < _size1489; ++_i1493) { - xfer += this->success[_i1433].read(iprot); + xfer += this->success[_i1493].read(iprot); } xfer += iprot->readListEnd(); } @@ -18396,10 +18965,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 _iter1434; - for (_iter1434 = this->success.begin(); _iter1434 != this->success.end(); ++_iter1434) + std::vector ::const_iterator _iter1494; + for (_iter1494 = this->success.begin(); _iter1494 != this->success.end(); ++_iter1494) { - xfer += (*_iter1434).write(oprot); + xfer += (*_iter1494).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18448,14 +19017,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 _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 _size1495; + ::apache::thrift::protocol::TType _etype1498; + xfer += iprot->readListBegin(_etype1498, _size1495); + (*(this->success)).resize(_size1495); + uint32_t _i1499; + for (_i1499 = 0; _i1499 < _size1495; ++_i1499) { - xfer += (*(this->success))[_i1439].read(iprot); + xfer += (*(this->success))[_i1499].read(iprot); } xfer += iprot->readListEnd(); } @@ -19024,14 +19593,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size1440; - ::apache::thrift::protocol::TType _etype1443; - xfer += iprot->readListBegin(_etype1443, _size1440); - this->names.resize(_size1440); - uint32_t _i1444; - for (_i1444 = 0; _i1444 < _size1440; ++_i1444) + uint32_t _size1500; + ::apache::thrift::protocol::TType _etype1503; + xfer += iprot->readListBegin(_etype1503, _size1500); + this->names.resize(_size1500); + uint32_t _i1504; + for (_i1504 = 0; _i1504 < _size1500; ++_i1504) { - xfer += iprot->readString(this->names[_i1444]); + xfer += iprot->readString(this->names[_i1504]); } xfer += iprot->readListEnd(); } @@ -19068,10 +19637,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 _iter1445; - for (_iter1445 = this->names.begin(); _iter1445 != this->names.end(); ++_iter1445) + std::vector ::const_iterator _iter1505; + for (_iter1505 = this->names.begin(); _iter1505 != this->names.end(); ++_iter1505) { - xfer += oprot->writeString((*_iter1445)); + xfer += oprot->writeString((*_iter1505)); } xfer += oprot->writeListEnd(); } @@ -19103,10 +19672,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 _iter1446; - for (_iter1446 = (*(this->names)).begin(); _iter1446 != (*(this->names)).end(); ++_iter1446) + std::vector ::const_iterator _iter1506; + for (_iter1506 = (*(this->names)).begin(); _iter1506 != (*(this->names)).end(); ++_iter1506) { - xfer += oprot->writeString((*_iter1446)); + xfer += oprot->writeString((*_iter1506)); } xfer += oprot->writeListEnd(); } @@ -19147,14 +19716,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1447; - ::apache::thrift::protocol::TType _etype1450; - xfer += iprot->readListBegin(_etype1450, _size1447); - this->success.resize(_size1447); - uint32_t _i1451; - for (_i1451 = 0; _i1451 < _size1447; ++_i1451) + uint32_t _size1507; + ::apache::thrift::protocol::TType _etype1510; + xfer += iprot->readListBegin(_etype1510, _size1507); + this->success.resize(_size1507); + uint32_t _i1511; + for (_i1511 = 0; _i1511 < _size1507; ++_i1511) { - xfer += this->success[_i1451].read(iprot); + xfer += this->success[_i1511].read(iprot); } xfer += iprot->readListEnd(); } @@ -19201,10 +19770,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 _iter1452; - for (_iter1452 = this->success.begin(); _iter1452 != this->success.end(); ++_iter1452) + std::vector ::const_iterator _iter1512; + for (_iter1512 = this->success.begin(); _iter1512 != this->success.end(); ++_iter1512) { - xfer += (*_iter1452).write(oprot); + xfer += (*_iter1512).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19253,14 +19822,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_presult::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1453; - ::apache::thrift::protocol::TType _etype1456; - xfer += iprot->readListBegin(_etype1456, _size1453); - (*(this->success)).resize(_size1453); - uint32_t _i1457; - for (_i1457 = 0; _i1457 < _size1453; ++_i1457) + uint32_t _size1513; + ::apache::thrift::protocol::TType _etype1516; + xfer += iprot->readListBegin(_etype1516, _size1513); + (*(this->success)).resize(_size1513); + uint32_t _i1517; + for (_i1517 = 0; _i1517 < _size1513; ++_i1517) { - xfer += (*(this->success))[_i1457].read(iprot); + xfer += (*(this->success))[_i1517].read(iprot); } xfer += iprot->readListEnd(); } @@ -19582,14 +20151,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1458; - ::apache::thrift::protocol::TType _etype1461; - xfer += iprot->readListBegin(_etype1461, _size1458); - this->new_parts.resize(_size1458); - uint32_t _i1462; - for (_i1462 = 0; _i1462 < _size1458; ++_i1462) + uint32_t _size1518; + ::apache::thrift::protocol::TType _etype1521; + xfer += iprot->readListBegin(_etype1521, _size1518); + this->new_parts.resize(_size1518); + uint32_t _i1522; + for (_i1522 = 0; _i1522 < _size1518; ++_i1522) { - xfer += this->new_parts[_i1462].read(iprot); + xfer += this->new_parts[_i1522].read(iprot); } xfer += iprot->readListEnd(); } @@ -19626,10 +20195,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 _iter1463; - for (_iter1463 = this->new_parts.begin(); _iter1463 != this->new_parts.end(); ++_iter1463) + std::vector ::const_iterator _iter1523; + for (_iter1523 = this->new_parts.begin(); _iter1523 != this->new_parts.end(); ++_iter1523) { - xfer += (*_iter1463).write(oprot); + xfer += (*_iter1523).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19661,10 +20230,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 _iter1464; - for (_iter1464 = (*(this->new_parts)).begin(); _iter1464 != (*(this->new_parts)).end(); ++_iter1464) + std::vector ::const_iterator _iter1524; + for (_iter1524 = (*(this->new_parts)).begin(); _iter1524 != (*(this->new_parts)).end(); ++_iter1524) { - xfer += (*_iter1464).write(oprot); + xfer += (*_iter1524).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19849,14 +20418,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_with_environment_context_args::rea if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1465; - ::apache::thrift::protocol::TType _etype1468; - xfer += iprot->readListBegin(_etype1468, _size1465); - this->new_parts.resize(_size1465); - uint32_t _i1469; - for (_i1469 = 0; _i1469 < _size1465; ++_i1469) + uint32_t _size1525; + ::apache::thrift::protocol::TType _etype1528; + xfer += iprot->readListBegin(_etype1528, _size1525); + this->new_parts.resize(_size1525); + uint32_t _i1529; + for (_i1529 = 0; _i1529 < _size1525; ++_i1529) { - xfer += this->new_parts[_i1469].read(iprot); + xfer += this->new_parts[_i1529].read(iprot); } xfer += iprot->readListEnd(); } @@ -19901,10 +20470,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 _iter1470; - for (_iter1470 = this->new_parts.begin(); _iter1470 != this->new_parts.end(); ++_iter1470) + std::vector ::const_iterator _iter1530; + for (_iter1530 = this->new_parts.begin(); _iter1530 != this->new_parts.end(); ++_iter1530) { - xfer += (*_iter1470).write(oprot); + xfer += (*_iter1530).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19940,10 +20509,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 _iter1471; - for (_iter1471 = (*(this->new_parts)).begin(); _iter1471 != (*(this->new_parts)).end(); ++_iter1471) + std::vector ::const_iterator _iter1531; + for (_iter1531 = (*(this->new_parts)).begin(); _iter1531 != (*(this->new_parts)).end(); ++_iter1531) { - xfer += (*_iter1471).write(oprot); + xfer += (*_iter1531).write(oprot); } xfer += oprot->writeListEnd(); } @@ -20387,14 +20956,14 @@ uint32_t ThriftHiveMetastore_rename_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1472; - ::apache::thrift::protocol::TType _etype1475; - xfer += iprot->readListBegin(_etype1475, _size1472); - this->part_vals.resize(_size1472); - uint32_t _i1476; - for (_i1476 = 0; _i1476 < _size1472; ++_i1476) + uint32_t _size1532; + ::apache::thrift::protocol::TType _etype1535; + xfer += iprot->readListBegin(_etype1535, _size1532); + this->part_vals.resize(_size1532); + uint32_t _i1536; + for (_i1536 = 0; _i1536 < _size1532; ++_i1536) { - xfer += iprot->readString(this->part_vals[_i1476]); + xfer += iprot->readString(this->part_vals[_i1536]); } xfer += iprot->readListEnd(); } @@ -20439,10 +21008,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 _iter1477; - for (_iter1477 = this->part_vals.begin(); _iter1477 != this->part_vals.end(); ++_iter1477) + std::vector ::const_iterator _iter1537; + for (_iter1537 = this->part_vals.begin(); _iter1537 != this->part_vals.end(); ++_iter1537) { - xfer += oprot->writeString((*_iter1477)); + xfer += oprot->writeString((*_iter1537)); } xfer += oprot->writeListEnd(); } @@ -20478,10 +21047,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 _iter1478; - for (_iter1478 = (*(this->part_vals)).begin(); _iter1478 != (*(this->part_vals)).end(); ++_iter1478) + std::vector ::const_iterator _iter1538; + for (_iter1538 = (*(this->part_vals)).begin(); _iter1538 != (*(this->part_vals)).end(); ++_iter1538) { - xfer += oprot->writeString((*_iter1478)); + xfer += oprot->writeString((*_iter1538)); } xfer += oprot->writeListEnd(); } @@ -20654,14 +21223,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 _size1479; - ::apache::thrift::protocol::TType _etype1482; - xfer += iprot->readListBegin(_etype1482, _size1479); - this->part_vals.resize(_size1479); - uint32_t _i1483; - for (_i1483 = 0; _i1483 < _size1479; ++_i1483) + uint32_t _size1539; + ::apache::thrift::protocol::TType _etype1542; + xfer += iprot->readListBegin(_etype1542, _size1539); + this->part_vals.resize(_size1539); + uint32_t _i1543; + for (_i1543 = 0; _i1543 < _size1539; ++_i1543) { - xfer += iprot->readString(this->part_vals[_i1483]); + xfer += iprot->readString(this->part_vals[_i1543]); } xfer += iprot->readListEnd(); } @@ -20698,10 +21267,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 _iter1484; - for (_iter1484 = this->part_vals.begin(); _iter1484 != this->part_vals.end(); ++_iter1484) + std::vector ::const_iterator _iter1544; + for (_iter1544 = this->part_vals.begin(); _iter1544 != this->part_vals.end(); ++_iter1544) { - xfer += oprot->writeString((*_iter1484)); + xfer += oprot->writeString((*_iter1544)); } xfer += oprot->writeListEnd(); } @@ -20729,10 +21298,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 _iter1485; - for (_iter1485 = (*(this->part_vals)).begin(); _iter1485 != (*(this->part_vals)).end(); ++_iter1485) + std::vector ::const_iterator _iter1545; + for (_iter1545 = (*(this->part_vals)).begin(); _iter1545 != (*(this->part_vals)).end(); ++_iter1545) { - xfer += oprot->writeString((*_iter1485)); + xfer += oprot->writeString((*_iter1545)); } xfer += oprot->writeListEnd(); } @@ -21207,14 +21776,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1486; - ::apache::thrift::protocol::TType _etype1489; - xfer += iprot->readListBegin(_etype1489, _size1486); - this->success.resize(_size1486); - uint32_t _i1490; - for (_i1490 = 0; _i1490 < _size1486; ++_i1490) + uint32_t _size1546; + ::apache::thrift::protocol::TType _etype1549; + xfer += iprot->readListBegin(_etype1549, _size1546); + this->success.resize(_size1546); + uint32_t _i1550; + for (_i1550 = 0; _i1550 < _size1546; ++_i1550) { - xfer += iprot->readString(this->success[_i1490]); + xfer += iprot->readString(this->success[_i1550]); } xfer += iprot->readListEnd(); } @@ -21253,10 +21822,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 _iter1491; - for (_iter1491 = this->success.begin(); _iter1491 != this->success.end(); ++_iter1491) + std::vector ::const_iterator _iter1551; + for (_iter1551 = this->success.begin(); _iter1551 != this->success.end(); ++_iter1551) { - xfer += oprot->writeString((*_iter1491)); + xfer += oprot->writeString((*_iter1551)); } xfer += oprot->writeListEnd(); } @@ -21301,14 +21870,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1492; - ::apache::thrift::protocol::TType _etype1495; - xfer += iprot->readListBegin(_etype1495, _size1492); - (*(this->success)).resize(_size1492); - uint32_t _i1496; - for (_i1496 = 0; _i1496 < _size1492; ++_i1496) + uint32_t _size1552; + ::apache::thrift::protocol::TType _etype1555; + xfer += iprot->readListBegin(_etype1555, _size1552); + (*(this->success)).resize(_size1552); + uint32_t _i1556; + for (_i1556 = 0; _i1556 < _size1552; ++_i1556) { - xfer += iprot->readString((*(this->success))[_i1496]); + xfer += iprot->readString((*(this->success))[_i1556]); } xfer += iprot->readListEnd(); } @@ -21446,17 +22015,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size1497; - ::apache::thrift::protocol::TType _ktype1498; - ::apache::thrift::protocol::TType _vtype1499; - xfer += iprot->readMapBegin(_ktype1498, _vtype1499, _size1497); - uint32_t _i1501; - for (_i1501 = 0; _i1501 < _size1497; ++_i1501) + uint32_t _size1557; + ::apache::thrift::protocol::TType _ktype1558; + ::apache::thrift::protocol::TType _vtype1559; + xfer += iprot->readMapBegin(_ktype1558, _vtype1559, _size1557); + uint32_t _i1561; + for (_i1561 = 0; _i1561 < _size1557; ++_i1561) { - std::string _key1502; - xfer += iprot->readString(_key1502); - std::string& _val1503 = this->success[_key1502]; - xfer += iprot->readString(_val1503); + std::string _key1562; + xfer += iprot->readString(_key1562); + std::string& _val1563 = this->success[_key1562]; + xfer += iprot->readString(_val1563); } xfer += iprot->readMapEnd(); } @@ -21495,11 +22064,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 _iter1504; - for (_iter1504 = this->success.begin(); _iter1504 != this->success.end(); ++_iter1504) + std::map ::const_iterator _iter1564; + for (_iter1564 = this->success.begin(); _iter1564 != this->success.end(); ++_iter1564) { - xfer += oprot->writeString(_iter1504->first); - xfer += oprot->writeString(_iter1504->second); + xfer += oprot->writeString(_iter1564->first); + xfer += oprot->writeString(_iter1564->second); } xfer += oprot->writeMapEnd(); } @@ -21544,17 +22113,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size1505; - ::apache::thrift::protocol::TType _ktype1506; - ::apache::thrift::protocol::TType _vtype1507; - xfer += iprot->readMapBegin(_ktype1506, _vtype1507, _size1505); - uint32_t _i1509; - for (_i1509 = 0; _i1509 < _size1505; ++_i1509) + uint32_t _size1565; + ::apache::thrift::protocol::TType _ktype1566; + ::apache::thrift::protocol::TType _vtype1567; + xfer += iprot->readMapBegin(_ktype1566, _vtype1567, _size1565); + uint32_t _i1569; + for (_i1569 = 0; _i1569 < _size1565; ++_i1569) { - std::string _key1510; - xfer += iprot->readString(_key1510); - std::string& _val1511 = (*(this->success))[_key1510]; - xfer += iprot->readString(_val1511); + std::string _key1570; + xfer += iprot->readString(_key1570); + std::string& _val1571 = (*(this->success))[_key1570]; + xfer += iprot->readString(_val1571); } xfer += iprot->readMapEnd(); } @@ -21629,17 +22198,17 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1512; - ::apache::thrift::protocol::TType _ktype1513; - ::apache::thrift::protocol::TType _vtype1514; - xfer += iprot->readMapBegin(_ktype1513, _vtype1514, _size1512); - uint32_t _i1516; - for (_i1516 = 0; _i1516 < _size1512; ++_i1516) + uint32_t _size1572; + ::apache::thrift::protocol::TType _ktype1573; + ::apache::thrift::protocol::TType _vtype1574; + xfer += iprot->readMapBegin(_ktype1573, _vtype1574, _size1572); + uint32_t _i1576; + for (_i1576 = 0; _i1576 < _size1572; ++_i1576) { - std::string _key1517; - xfer += iprot->readString(_key1517); - std::string& _val1518 = this->part_vals[_key1517]; - xfer += iprot->readString(_val1518); + std::string _key1577; + xfer += iprot->readString(_key1577); + std::string& _val1578 = this->part_vals[_key1577]; + xfer += iprot->readString(_val1578); } xfer += iprot->readMapEnd(); } @@ -21650,9 +22219,9 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1519; - xfer += iprot->readI32(ecast1519); - this->eventType = (PartitionEventType::type)ecast1519; + int32_t ecast1579; + xfer += iprot->readI32(ecast1579); + this->eventType = (PartitionEventType::type)ecast1579; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -21686,11 +22255,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 _iter1520; - for (_iter1520 = this->part_vals.begin(); _iter1520 != this->part_vals.end(); ++_iter1520) + std::map ::const_iterator _iter1580; + for (_iter1580 = this->part_vals.begin(); _iter1580 != this->part_vals.end(); ++_iter1580) { - xfer += oprot->writeString(_iter1520->first); - xfer += oprot->writeString(_iter1520->second); + xfer += oprot->writeString(_iter1580->first); + xfer += oprot->writeString(_iter1580->second); } xfer += oprot->writeMapEnd(); } @@ -21726,11 +22295,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 _iter1521; - for (_iter1521 = (*(this->part_vals)).begin(); _iter1521 != (*(this->part_vals)).end(); ++_iter1521) + std::map ::const_iterator _iter1581; + for (_iter1581 = (*(this->part_vals)).begin(); _iter1581 != (*(this->part_vals)).end(); ++_iter1581) { - xfer += oprot->writeString(_iter1521->first); - xfer += oprot->writeString(_iter1521->second); + xfer += oprot->writeString(_iter1581->first); + xfer += oprot->writeString(_iter1581->second); } xfer += oprot->writeMapEnd(); } @@ -21999,17 +22568,17 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1522; - ::apache::thrift::protocol::TType _ktype1523; - ::apache::thrift::protocol::TType _vtype1524; - xfer += iprot->readMapBegin(_ktype1523, _vtype1524, _size1522); - uint32_t _i1526; - for (_i1526 = 0; _i1526 < _size1522; ++_i1526) + uint32_t _size1582; + ::apache::thrift::protocol::TType _ktype1583; + ::apache::thrift::protocol::TType _vtype1584; + xfer += iprot->readMapBegin(_ktype1583, _vtype1584, _size1582); + uint32_t _i1586; + for (_i1586 = 0; _i1586 < _size1582; ++_i1586) { - std::string _key1527; - xfer += iprot->readString(_key1527); - std::string& _val1528 = this->part_vals[_key1527]; - xfer += iprot->readString(_val1528); + std::string _key1587; + xfer += iprot->readString(_key1587); + std::string& _val1588 = this->part_vals[_key1587]; + xfer += iprot->readString(_val1588); } xfer += iprot->readMapEnd(); } @@ -22020,9 +22589,9 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1529; - xfer += iprot->readI32(ecast1529); - this->eventType = (PartitionEventType::type)ecast1529; + int32_t ecast1589; + xfer += iprot->readI32(ecast1589); + this->eventType = (PartitionEventType::type)ecast1589; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -22056,11 +22625,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 _iter1530; - for (_iter1530 = this->part_vals.begin(); _iter1530 != this->part_vals.end(); ++_iter1530) + std::map ::const_iterator _iter1590; + for (_iter1590 = this->part_vals.begin(); _iter1590 != this->part_vals.end(); ++_iter1590) { - xfer += oprot->writeString(_iter1530->first); - xfer += oprot->writeString(_iter1530->second); + xfer += oprot->writeString(_iter1590->first); + xfer += oprot->writeString(_iter1590->second); } xfer += oprot->writeMapEnd(); } @@ -22096,11 +22665,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 _iter1531; - for (_iter1531 = (*(this->part_vals)).begin(); _iter1531 != (*(this->part_vals)).end(); ++_iter1531) + std::map ::const_iterator _iter1591; + for (_iter1591 = (*(this->part_vals)).begin(); _iter1591 != (*(this->part_vals)).end(); ++_iter1591) { - xfer += oprot->writeString(_iter1531->first); - xfer += oprot->writeString(_iter1531->second); + xfer += oprot->writeString(_iter1591->first); + xfer += oprot->writeString(_iter1591->second); } xfer += oprot->writeMapEnd(); } @@ -23536,14 +24105,14 @@ uint32_t ThriftHiveMetastore_get_indexes_result::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1532; - ::apache::thrift::protocol::TType _etype1535; - xfer += iprot->readListBegin(_etype1535, _size1532); - this->success.resize(_size1532); - uint32_t _i1536; - for (_i1536 = 0; _i1536 < _size1532; ++_i1536) + uint32_t _size1592; + ::apache::thrift::protocol::TType _etype1595; + xfer += iprot->readListBegin(_etype1595, _size1592); + this->success.resize(_size1592); + uint32_t _i1596; + for (_i1596 = 0; _i1596 < _size1592; ++_i1596) { - xfer += this->success[_i1536].read(iprot); + xfer += this->success[_i1596].read(iprot); } xfer += iprot->readListEnd(); } @@ -23590,10 +24159,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 _iter1537; - for (_iter1537 = this->success.begin(); _iter1537 != this->success.end(); ++_iter1537) + std::vector ::const_iterator _iter1597; + for (_iter1597 = this->success.begin(); _iter1597 != this->success.end(); ++_iter1597) { - xfer += (*_iter1537).write(oprot); + xfer += (*_iter1597).write(oprot); } xfer += oprot->writeListEnd(); } @@ -23642,14 +24211,14 @@ uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1538; - ::apache::thrift::protocol::TType _etype1541; - xfer += iprot->readListBegin(_etype1541, _size1538); - (*(this->success)).resize(_size1538); - uint32_t _i1542; - for (_i1542 = 0; _i1542 < _size1538; ++_i1542) + uint32_t _size1598; + ::apache::thrift::protocol::TType _etype1601; + xfer += iprot->readListBegin(_etype1601, _size1598); + (*(this->success)).resize(_size1598); + uint32_t _i1602; + for (_i1602 = 0; _i1602 < _size1598; ++_i1602) { - xfer += (*(this->success))[_i1542].read(iprot); + xfer += (*(this->success))[_i1602].read(iprot); } xfer += iprot->readListEnd(); } @@ -23827,14 +24396,14 @@ uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1543; - ::apache::thrift::protocol::TType _etype1546; - xfer += iprot->readListBegin(_etype1546, _size1543); - this->success.resize(_size1543); - uint32_t _i1547; - for (_i1547 = 0; _i1547 < _size1543; ++_i1547) + uint32_t _size1603; + ::apache::thrift::protocol::TType _etype1606; + xfer += iprot->readListBegin(_etype1606, _size1603); + this->success.resize(_size1603); + uint32_t _i1607; + for (_i1607 = 0; _i1607 < _size1603; ++_i1607) { - xfer += iprot->readString(this->success[_i1547]); + xfer += iprot->readString(this->success[_i1607]); } xfer += iprot->readListEnd(); } @@ -23873,10 +24442,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 _iter1548; - for (_iter1548 = this->success.begin(); _iter1548 != this->success.end(); ++_iter1548) + std::vector ::const_iterator _iter1608; + for (_iter1608 = this->success.begin(); _iter1608 != this->success.end(); ++_iter1608) { - xfer += oprot->writeString((*_iter1548)); + xfer += oprot->writeString((*_iter1608)); } xfer += oprot->writeListEnd(); } @@ -23921,14 +24490,14 @@ uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1549; - ::apache::thrift::protocol::TType _etype1552; - xfer += iprot->readListBegin(_etype1552, _size1549); - (*(this->success)).resize(_size1549); - uint32_t _i1553; - for (_i1553 = 0; _i1553 < _size1549; ++_i1553) + uint32_t _size1609; + ::apache::thrift::protocol::TType _etype1612; + xfer += iprot->readListBegin(_etype1612, _size1609); + (*(this->success)).resize(_size1609); + uint32_t _i1613; + for (_i1613 = 0; _i1613 < _size1609; ++_i1613) { - xfer += iprot->readString((*(this->success))[_i1553]); + xfer += iprot->readString((*(this->success))[_i1613]); } xfer += iprot->readListEnd(); } @@ -28409,14 +28978,14 @@ uint32_t ThriftHiveMetastore_get_functions_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1554; - ::apache::thrift::protocol::TType _etype1557; - xfer += iprot->readListBegin(_etype1557, _size1554); - this->success.resize(_size1554); - uint32_t _i1558; - for (_i1558 = 0; _i1558 < _size1554; ++_i1558) + uint32_t _size1614; + ::apache::thrift::protocol::TType _etype1617; + xfer += iprot->readListBegin(_etype1617, _size1614); + this->success.resize(_size1614); + uint32_t _i1618; + for (_i1618 = 0; _i1618 < _size1614; ++_i1618) { - xfer += iprot->readString(this->success[_i1558]); + xfer += iprot->readString(this->success[_i1618]); } xfer += iprot->readListEnd(); } @@ -28455,10 +29024,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 _iter1559; - for (_iter1559 = this->success.begin(); _iter1559 != this->success.end(); ++_iter1559) + std::vector ::const_iterator _iter1619; + for (_iter1619 = this->success.begin(); _iter1619 != this->success.end(); ++_iter1619) { - xfer += oprot->writeString((*_iter1559)); + xfer += oprot->writeString((*_iter1619)); } xfer += oprot->writeListEnd(); } @@ -28503,14 +29072,14 @@ uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1560; - ::apache::thrift::protocol::TType _etype1563; - xfer += iprot->readListBegin(_etype1563, _size1560); - (*(this->success)).resize(_size1560); - uint32_t _i1564; - for (_i1564 = 0; _i1564 < _size1560; ++_i1564) + uint32_t _size1620; + ::apache::thrift::protocol::TType _etype1623; + xfer += iprot->readListBegin(_etype1623, _size1620); + (*(this->success)).resize(_size1620); + uint32_t _i1624; + for (_i1624 = 0; _i1624 < _size1620; ++_i1624) { - xfer += iprot->readString((*(this->success))[_i1564]); + xfer += iprot->readString((*(this->success))[_i1624]); } xfer += iprot->readListEnd(); } @@ -29470,14 +30039,14 @@ uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1565; - ::apache::thrift::protocol::TType _etype1568; - xfer += iprot->readListBegin(_etype1568, _size1565); - this->success.resize(_size1565); - uint32_t _i1569; - for (_i1569 = 0; _i1569 < _size1565; ++_i1569) + uint32_t _size1625; + ::apache::thrift::protocol::TType _etype1628; + xfer += iprot->readListBegin(_etype1628, _size1625); + this->success.resize(_size1625); + uint32_t _i1629; + for (_i1629 = 0; _i1629 < _size1625; ++_i1629) { - xfer += iprot->readString(this->success[_i1569]); + xfer += iprot->readString(this->success[_i1629]); } xfer += iprot->readListEnd(); } @@ -29516,10 +30085,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 _iter1570; - for (_iter1570 = this->success.begin(); _iter1570 != this->success.end(); ++_iter1570) + std::vector ::const_iterator _iter1630; + for (_iter1630 = this->success.begin(); _iter1630 != this->success.end(); ++_iter1630) { - xfer += oprot->writeString((*_iter1570)); + xfer += oprot->writeString((*_iter1630)); } xfer += oprot->writeListEnd(); } @@ -29564,14 +30133,14 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1571; - ::apache::thrift::protocol::TType _etype1574; - xfer += iprot->readListBegin(_etype1574, _size1571); - (*(this->success)).resize(_size1571); - uint32_t _i1575; - for (_i1575 = 0; _i1575 < _size1571; ++_i1575) + uint32_t _size1631; + ::apache::thrift::protocol::TType _etype1634; + xfer += iprot->readListBegin(_etype1634, _size1631); + (*(this->success)).resize(_size1631); + uint32_t _i1635; + for (_i1635 = 0; _i1635 < _size1631; ++_i1635) { - xfer += iprot->readString((*(this->success))[_i1575]); + xfer += iprot->readString((*(this->success))[_i1635]); } xfer += iprot->readListEnd(); } @@ -29644,9 +30213,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1576; - xfer += iprot->readI32(ecast1576); - this->principal_type = (PrincipalType::type)ecast1576; + int32_t ecast1636; + xfer += iprot->readI32(ecast1636); + this->principal_type = (PrincipalType::type)ecast1636; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -29662,9 +30231,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1577; - xfer += iprot->readI32(ecast1577); - this->grantorType = (PrincipalType::type)ecast1577; + int32_t ecast1637; + xfer += iprot->readI32(ecast1637); + this->grantorType = (PrincipalType::type)ecast1637; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -29935,9 +30504,9 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol:: break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1578; - xfer += iprot->readI32(ecast1578); - this->principal_type = (PrincipalType::type)ecast1578; + int32_t ecast1638; + xfer += iprot->readI32(ecast1638); + this->principal_type = (PrincipalType::type)ecast1638; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -30168,9 +30737,9 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1579; - xfer += iprot->readI32(ecast1579); - this->principal_type = (PrincipalType::type)ecast1579; + int32_t ecast1639; + xfer += iprot->readI32(ecast1639); + this->principal_type = (PrincipalType::type)ecast1639; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -30259,14 +30828,14 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1580; - ::apache::thrift::protocol::TType _etype1583; - xfer += iprot->readListBegin(_etype1583, _size1580); - this->success.resize(_size1580); - uint32_t _i1584; - for (_i1584 = 0; _i1584 < _size1580; ++_i1584) + uint32_t _size1640; + ::apache::thrift::protocol::TType _etype1643; + xfer += iprot->readListBegin(_etype1643, _size1640); + this->success.resize(_size1640); + uint32_t _i1644; + for (_i1644 = 0; _i1644 < _size1640; ++_i1644) { - xfer += this->success[_i1584].read(iprot); + xfer += this->success[_i1644].read(iprot); } xfer += iprot->readListEnd(); } @@ -30305,10 +30874,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 _iter1585; - for (_iter1585 = this->success.begin(); _iter1585 != this->success.end(); ++_iter1585) + std::vector ::const_iterator _iter1645; + for (_iter1645 = this->success.begin(); _iter1645 != this->success.end(); ++_iter1645) { - xfer += (*_iter1585).write(oprot); + xfer += (*_iter1645).write(oprot); } xfer += oprot->writeListEnd(); } @@ -30353,14 +30922,14 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1586; - ::apache::thrift::protocol::TType _etype1589; - xfer += iprot->readListBegin(_etype1589, _size1586); - (*(this->success)).resize(_size1586); - uint32_t _i1590; - for (_i1590 = 0; _i1590 < _size1586; ++_i1590) + uint32_t _size1646; + ::apache::thrift::protocol::TType _etype1649; + xfer += iprot->readListBegin(_etype1649, _size1646); + (*(this->success)).resize(_size1646); + uint32_t _i1650; + for (_i1650 = 0; _i1650 < _size1646; ++_i1650) { - xfer += (*(this->success))[_i1590].read(iprot); + xfer += (*(this->success))[_i1650].read(iprot); } xfer += iprot->readListEnd(); } @@ -31056,14 +31625,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 _size1591; - ::apache::thrift::protocol::TType _etype1594; - xfer += iprot->readListBegin(_etype1594, _size1591); - this->group_names.resize(_size1591); - uint32_t _i1595; - for (_i1595 = 0; _i1595 < _size1591; ++_i1595) + uint32_t _size1651; + ::apache::thrift::protocol::TType _etype1654; + xfer += iprot->readListBegin(_etype1654, _size1651); + this->group_names.resize(_size1651); + uint32_t _i1655; + for (_i1655 = 0; _i1655 < _size1651; ++_i1655) { - xfer += iprot->readString(this->group_names[_i1595]); + xfer += iprot->readString(this->group_names[_i1655]); } xfer += iprot->readListEnd(); } @@ -31100,10 +31669,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 _iter1596; - for (_iter1596 = this->group_names.begin(); _iter1596 != this->group_names.end(); ++_iter1596) + std::vector ::const_iterator _iter1656; + for (_iter1656 = this->group_names.begin(); _iter1656 != this->group_names.end(); ++_iter1656) { - xfer += oprot->writeString((*_iter1596)); + xfer += oprot->writeString((*_iter1656)); } xfer += oprot->writeListEnd(); } @@ -31135,10 +31704,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 _iter1597; - for (_iter1597 = (*(this->group_names)).begin(); _iter1597 != (*(this->group_names)).end(); ++_iter1597) + std::vector ::const_iterator _iter1657; + for (_iter1657 = (*(this->group_names)).begin(); _iter1657 != (*(this->group_names)).end(); ++_iter1657) { - xfer += oprot->writeString((*_iter1597)); + xfer += oprot->writeString((*_iter1657)); } xfer += oprot->writeListEnd(); } @@ -31313,9 +31882,9 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1598; - xfer += iprot->readI32(ecast1598); - this->principal_type = (PrincipalType::type)ecast1598; + int32_t ecast1658; + xfer += iprot->readI32(ecast1658); + this->principal_type = (PrincipalType::type)ecast1658; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -31420,14 +31989,14 @@ uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1599; - ::apache::thrift::protocol::TType _etype1602; - xfer += iprot->readListBegin(_etype1602, _size1599); - this->success.resize(_size1599); - uint32_t _i1603; - for (_i1603 = 0; _i1603 < _size1599; ++_i1603) + uint32_t _size1659; + ::apache::thrift::protocol::TType _etype1662; + xfer += iprot->readListBegin(_etype1662, _size1659); + this->success.resize(_size1659); + uint32_t _i1663; + for (_i1663 = 0; _i1663 < _size1659; ++_i1663) { - xfer += this->success[_i1603].read(iprot); + xfer += this->success[_i1663].read(iprot); } xfer += iprot->readListEnd(); } @@ -31466,10 +32035,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 _iter1604; - for (_iter1604 = this->success.begin(); _iter1604 != this->success.end(); ++_iter1604) + std::vector ::const_iterator _iter1664; + for (_iter1664 = this->success.begin(); _iter1664 != this->success.end(); ++_iter1664) { - xfer += (*_iter1604).write(oprot); + xfer += (*_iter1664).write(oprot); } xfer += oprot->writeListEnd(); } @@ -31514,14 +32083,14 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1605; - ::apache::thrift::protocol::TType _etype1608; - xfer += iprot->readListBegin(_etype1608, _size1605); - (*(this->success)).resize(_size1605); - uint32_t _i1609; - for (_i1609 = 0; _i1609 < _size1605; ++_i1609) + uint32_t _size1665; + ::apache::thrift::protocol::TType _etype1668; + xfer += iprot->readListBegin(_etype1668, _size1665); + (*(this->success)).resize(_size1665); + uint32_t _i1669; + for (_i1669 = 0; _i1669 < _size1665; ++_i1669) { - xfer += (*(this->success))[_i1609].read(iprot); + xfer += (*(this->success))[_i1669].read(iprot); } xfer += iprot->readListEnd(); } @@ -32209,14 +32778,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 _size1610; - ::apache::thrift::protocol::TType _etype1613; - xfer += iprot->readListBegin(_etype1613, _size1610); - this->group_names.resize(_size1610); - uint32_t _i1614; - for (_i1614 = 0; _i1614 < _size1610; ++_i1614) + uint32_t _size1670; + ::apache::thrift::protocol::TType _etype1673; + xfer += iprot->readListBegin(_etype1673, _size1670); + this->group_names.resize(_size1670); + uint32_t _i1674; + for (_i1674 = 0; _i1674 < _size1670; ++_i1674) { - xfer += iprot->readString(this->group_names[_i1614]); + xfer += iprot->readString(this->group_names[_i1674]); } xfer += iprot->readListEnd(); } @@ -32249,10 +32818,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 _iter1615; - for (_iter1615 = this->group_names.begin(); _iter1615 != this->group_names.end(); ++_iter1615) + std::vector ::const_iterator _iter1675; + for (_iter1675 = this->group_names.begin(); _iter1675 != this->group_names.end(); ++_iter1675) { - xfer += oprot->writeString((*_iter1615)); + xfer += oprot->writeString((*_iter1675)); } xfer += oprot->writeListEnd(); } @@ -32280,10 +32849,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 _iter1616; - for (_iter1616 = (*(this->group_names)).begin(); _iter1616 != (*(this->group_names)).end(); ++_iter1616) + std::vector ::const_iterator _iter1676; + for (_iter1676 = (*(this->group_names)).begin(); _iter1676 != (*(this->group_names)).end(); ++_iter1676) { - xfer += oprot->writeString((*_iter1616)); + xfer += oprot->writeString((*_iter1676)); } xfer += oprot->writeListEnd(); } @@ -32324,14 +32893,14 @@ uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TP if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1617; - ::apache::thrift::protocol::TType _etype1620; - xfer += iprot->readListBegin(_etype1620, _size1617); - this->success.resize(_size1617); - uint32_t _i1621; - for (_i1621 = 0; _i1621 < _size1617; ++_i1621) + uint32_t _size1677; + ::apache::thrift::protocol::TType _etype1680; + xfer += iprot->readListBegin(_etype1680, _size1677); + this->success.resize(_size1677); + uint32_t _i1681; + for (_i1681 = 0; _i1681 < _size1677; ++_i1681) { - xfer += iprot->readString(this->success[_i1621]); + xfer += iprot->readString(this->success[_i1681]); } xfer += iprot->readListEnd(); } @@ -32370,10 +32939,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 _iter1622; - for (_iter1622 = this->success.begin(); _iter1622 != this->success.end(); ++_iter1622) + std::vector ::const_iterator _iter1682; + for (_iter1682 = this->success.begin(); _iter1682 != this->success.end(); ++_iter1682) { - xfer += oprot->writeString((*_iter1622)); + xfer += oprot->writeString((*_iter1682)); } xfer += oprot->writeListEnd(); } @@ -32418,14 +32987,14 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1623; - ::apache::thrift::protocol::TType _etype1626; - xfer += iprot->readListBegin(_etype1626, _size1623); - (*(this->success)).resize(_size1623); - uint32_t _i1627; - for (_i1627 = 0; _i1627 < _size1623; ++_i1627) + uint32_t _size1683; + ::apache::thrift::protocol::TType _etype1686; + xfer += iprot->readListBegin(_etype1686, _size1683); + (*(this->success)).resize(_size1683); + uint32_t _i1687; + for (_i1687 = 0; _i1687 < _size1683; ++_i1687) { - xfer += iprot->readString((*(this->success))[_i1627]); + xfer += iprot->readString((*(this->success))[_i1687]); } xfer += iprot->readListEnd(); } @@ -33736,14 +34305,14 @@ uint32_t ThriftHiveMetastore_get_all_token_identifiers_result::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1628; - ::apache::thrift::protocol::TType _etype1631; - xfer += iprot->readListBegin(_etype1631, _size1628); - this->success.resize(_size1628); - uint32_t _i1632; - for (_i1632 = 0; _i1632 < _size1628; ++_i1632) + uint32_t _size1688; + ::apache::thrift::protocol::TType _etype1691; + xfer += iprot->readListBegin(_etype1691, _size1688); + this->success.resize(_size1688); + uint32_t _i1692; + for (_i1692 = 0; _i1692 < _size1688; ++_i1692) { - xfer += iprot->readString(this->success[_i1632]); + xfer += iprot->readString(this->success[_i1692]); } xfer += iprot->readListEnd(); } @@ -33774,10 +34343,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 _iter1633; - for (_iter1633 = this->success.begin(); _iter1633 != this->success.end(); ++_iter1633) + std::vector ::const_iterator _iter1693; + for (_iter1693 = this->success.begin(); _iter1693 != this->success.end(); ++_iter1693) { - xfer += oprot->writeString((*_iter1633)); + xfer += oprot->writeString((*_iter1693)); } xfer += oprot->writeListEnd(); } @@ -33818,14 +34387,14 @@ uint32_t ThriftHiveMetastore_get_all_token_identifiers_presult::read(::apache::t if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1634; - ::apache::thrift::protocol::TType _etype1637; - xfer += iprot->readListBegin(_etype1637, _size1634); - (*(this->success)).resize(_size1634); - uint32_t _i1638; - for (_i1638 = 0; _i1638 < _size1634; ++_i1638) + uint32_t _size1694; + ::apache::thrift::protocol::TType _etype1697; + xfer += iprot->readListBegin(_etype1697, _size1694); + (*(this->success)).resize(_size1694); + uint32_t _i1698; + for (_i1698 = 0; _i1698 < _size1694; ++_i1698) { - xfer += iprot->readString((*(this->success))[_i1638]); + xfer += iprot->readString((*(this->success))[_i1698]); } xfer += iprot->readListEnd(); } @@ -34551,14 +35120,14 @@ uint32_t ThriftHiveMetastore_get_master_keys_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1639; - ::apache::thrift::protocol::TType _etype1642; - xfer += iprot->readListBegin(_etype1642, _size1639); - this->success.resize(_size1639); - uint32_t _i1643; - for (_i1643 = 0; _i1643 < _size1639; ++_i1643) + uint32_t _size1699; + ::apache::thrift::protocol::TType _etype1702; + xfer += iprot->readListBegin(_etype1702, _size1699); + this->success.resize(_size1699); + uint32_t _i1703; + for (_i1703 = 0; _i1703 < _size1699; ++_i1703) { - xfer += iprot->readString(this->success[_i1643]); + xfer += iprot->readString(this->success[_i1703]); } xfer += iprot->readListEnd(); } @@ -34589,10 +35158,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 _iter1644; - for (_iter1644 = this->success.begin(); _iter1644 != this->success.end(); ++_iter1644) + std::vector ::const_iterator _iter1704; + for (_iter1704 = this->success.begin(); _iter1704 != this->success.end(); ++_iter1704) { - xfer += oprot->writeString((*_iter1644)); + xfer += oprot->writeString((*_iter1704)); } xfer += oprot->writeListEnd(); } @@ -34633,14 +35202,14 @@ uint32_t ThriftHiveMetastore_get_master_keys_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1645; - ::apache::thrift::protocol::TType _etype1648; - xfer += iprot->readListBegin(_etype1648, _size1645); - (*(this->success)).resize(_size1645); - uint32_t _i1649; - for (_i1649 = 0; _i1649 < _size1645; ++_i1649) + uint32_t _size1705; + ::apache::thrift::protocol::TType _etype1708; + xfer += iprot->readListBegin(_etype1708, _size1705); + (*(this->success)).resize(_size1705); + uint32_t _i1709; + for (_i1709 = 0; _i1709 < _size1705; ++_i1709) { - xfer += iprot->readString((*(this->success))[_i1649]); + xfer += iprot->readString((*(this->success))[_i1709]); } xfer += iprot->readListEnd(); } @@ -37432,10 +38001,197 @@ 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_show_compact_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->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_show_compact_pargs::~ThriftHiveMetastore_show_compact_pargs() throw() { +} + + +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_show_compact_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_show_compact_result::~ThriftHiveMetastore_show_compact_result() throw() { +} + + +uint32_t ThriftHiveMetastore_show_compact_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_show_compact_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_show_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_show_compact_presult::~ThriftHiveMetastore_show_compact_presult() throw() { +} + + +uint32_t ThriftHiveMetastore_show_compact_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_add_dynamic_partitions_args::~ThriftHiveMetastore_add_dynamic_partitions_args() throw() { +} + + +uint32_t ThriftHiveMetastore_add_dynamic_partitions_args::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->rqst.read(iprot); + this->__isset.rqst = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_add_dynamic_partitions_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_add_dynamic_partitions_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->rqst.write(oprot); @@ -37447,14 +38203,14 @@ uint32_t ThriftHiveMetastore_show_compact_args::write(::apache::thrift::protocol } -ThriftHiveMetastore_show_compact_pargs::~ThriftHiveMetastore_show_compact_pargs() throw() { +ThriftHiveMetastore_add_dynamic_partitions_pargs::~ThriftHiveMetastore_add_dynamic_partitions_pargs() throw() { } -uint32_t ThriftHiveMetastore_show_compact_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_show_compact_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_dynamic_partitions_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->rqst)).write(oprot); @@ -37466,11 +38222,11 @@ uint32_t ThriftHiveMetastore_show_compact_pargs::write(::apache::thrift::protoco } -ThriftHiveMetastore_show_compact_result::~ThriftHiveMetastore_show_compact_result() throw() { +ThriftHiveMetastore_add_dynamic_partitions_result::~ThriftHiveMetastore_add_dynamic_partitions_result() throw() { } -uint32_t ThriftHiveMetastore_show_compact_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; @@ -37491,10 +38247,18 @@ 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); } @@ -37511,15 +38275,19 @@ 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_add_dynamic_partitions_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_show_compact_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_dynamic_partitions_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(); @@ -37528,11 +38296,11 @@ uint32_t ThriftHiveMetastore_show_compact_result::write(::apache::thrift::protoc } -ThriftHiveMetastore_show_compact_presult::~ThriftHiveMetastore_show_compact_presult() throw() { +ThriftHiveMetastore_add_dynamic_partitions_presult::~ThriftHiveMetastore_add_dynamic_partitions_presult() throw() { } -uint32_t ThriftHiveMetastore_show_compact_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; @@ -37553,10 +38321,18 @@ 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); } @@ -37574,11 +38350,11 @@ uint32_t ThriftHiveMetastore_show_compact_presult::read(::apache::thrift::protoc } -ThriftHiveMetastore_add_dynamic_partitions_args::~ThriftHiveMetastore_add_dynamic_partitions_args() throw() { +ThriftHiveMetastore_get_last_completed_transaction_for_table_args::~ThriftHiveMetastore_get_last_completed_transaction_for_table_args() throw() { } -uint32_t ThriftHiveMetastore_add_dynamic_partitions_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_last_completed_transaction_for_table_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -37600,9 +38376,25 @@ uint32_t ThriftHiveMetastore_add_dynamic_partitions_args::read(::apache::thrift: switch (fid) { case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->db_name); + this->__isset.db_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->table_name); + this->__isset.table_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->rqst.read(iprot); - this->__isset.rqst = true; + xfer += this->txns_snapshot.read(iprot); + this->__isset.txns_snapshot = true; } else { xfer += iprot->skip(ftype); } @@ -37619,13 +38411,21 @@ 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_get_last_completed_transaction_for_table_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_get_last_completed_transaction_for_table_args"); - xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->rqst.write(oprot); + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->db_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("table_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->table_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("txns_snapshot", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->txns_snapshot.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -37634,17 +38434,25 @@ uint32_t ThriftHiveMetastore_add_dynamic_partitions_args::write(::apache::thrift } -ThriftHiveMetastore_add_dynamic_partitions_pargs::~ThriftHiveMetastore_add_dynamic_partitions_pargs() throw() { +ThriftHiveMetastore_get_last_completed_transaction_for_table_pargs::~ThriftHiveMetastore_get_last_completed_transaction_for_table_pargs() throw() { } -uint32_t ThriftHiveMetastore_add_dynamic_partitions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_last_completed_transaction_for_table_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_get_last_completed_transaction_for_table_pargs"); - xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->rqst)).write(oprot); + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->db_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("table_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->table_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("txns_snapshot", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += (*(this->txns_snapshot)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -37653,11 +38461,11 @@ uint32_t ThriftHiveMetastore_add_dynamic_partitions_pargs::write(::apache::thrif } -ThriftHiveMetastore_add_dynamic_partitions_result::~ThriftHiveMetastore_add_dynamic_partitions_result() throw() { +ThriftHiveMetastore_get_last_completed_transaction_for_table_result::~ThriftHiveMetastore_get_last_completed_transaction_for_table_result() throw() { } -uint32_t ThriftHiveMetastore_add_dynamic_partitions_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_last_completed_transaction_for_table_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -37678,18 +38486,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); } @@ -37706,19 +38506,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_get_last_completed_transaction_for_table_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_dynamic_partitions_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_last_completed_transaction_for_table_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(); @@ -37727,11 +38523,11 @@ uint32_t ThriftHiveMetastore_add_dynamic_partitions_result::write(::apache::thri } -ThriftHiveMetastore_add_dynamic_partitions_presult::~ThriftHiveMetastore_add_dynamic_partitions_presult() throw() { +ThriftHiveMetastore_get_last_completed_transaction_for_table_presult::~ThriftHiveMetastore_get_last_completed_transaction_for_table_presult() throw() { } -uint32_t ThriftHiveMetastore_add_dynamic_partitions_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_last_completed_transaction_for_table_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -37752,18 +38548,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); } @@ -38159,7 +38947,7 @@ uint32_t ThriftHiveMetastore_get_notification_events_count_args::read(::apache:: } switch (fid) { - case -1: + case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->rqst.read(iprot); this->__isset.rqst = true; @@ -38184,7 +38972,7 @@ uint32_t ThriftHiveMetastore_get_notification_events_count_args::write(::apache: apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_notification_events_count_args"); - xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, -1); + xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->rqst.write(oprot); xfer += oprot->writeFieldEnd(); @@ -38203,7 +38991,7 @@ uint32_t ThriftHiveMetastore_get_notification_events_count_pargs::write(::apache apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_notification_events_count_pargs"); - xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, -1); + xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->rqst)).write(oprot); xfer += oprot->writeFieldEnd(); @@ -45949,6 +46737,67 @@ void ThriftHiveMetastoreClient::recv_get_tables_by_type(std::vector throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_tables_by_type failed: unknown result"); } +void ThriftHiveMetastoreClient::get_materialized_views_for_rewriting(std::vector & _return, const std::string& db_name) +{ + send_get_materialized_views_for_rewriting(db_name); + recv_get_materialized_views_for_rewriting(_return); +} + +void ThriftHiveMetastoreClient::send_get_materialized_views_for_rewriting(const std::string& db_name) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("get_materialized_views_for_rewriting", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_materialized_views_for_rewriting_pargs args; + args.db_name = &db_name; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void ThriftHiveMetastoreClient::recv_get_materialized_views_for_rewriting(std::vector & _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_materialized_views_for_rewriting") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_get_materialized_views_for_rewriting_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + return; + } + if (result.__isset.o1) { + throw result.o1; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_materialized_views_for_rewriting failed: unknown result"); +} + void ThriftHiveMetastoreClient::get_table_meta(std::vector & _return, const std::string& db_patterns, const std::string& tbl_patterns, const std::vector & tbl_types) { send_get_table_meta(db_patterns, tbl_patterns, tbl_types); @@ -46328,6 +47177,74 @@ void ThriftHiveMetastoreClient::recv_get_table_objects_by_name_req(GetTablesResu throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_table_objects_by_name_req failed: unknown result"); } +void ThriftHiveMetastoreClient::get_materialization_invalidation_info(std::map & _return, const std::string& dbname, const std::vector & tbl_names) +{ + send_get_materialization_invalidation_info(dbname, tbl_names); + recv_get_materialization_invalidation_info(_return); +} + +void ThriftHiveMetastoreClient::send_get_materialization_invalidation_info(const std::string& dbname, const std::vector & tbl_names) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("get_materialization_invalidation_info", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_materialization_invalidation_info_pargs args; + args.dbname = &dbname; + args.tbl_names = &tbl_names; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void ThriftHiveMetastoreClient::recv_get_materialization_invalidation_info(std::map & _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_materialization_invalidation_info") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_get_materialization_invalidation_info_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + return; + } + if (result.__isset.o1) { + throw result.o1; + } + if (result.__isset.o2) { + throw result.o2; + } + if (result.__isset.o3) { + throw result.o3; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_materialization_invalidation_info failed: unknown result"); +} + void ThriftHiveMetastoreClient::get_table_names_by_filter(std::vector & _return, const std::string& dbname, const std::string& filter, const int16_t max_tables) { send_get_table_names_by_filter(dbname, filter, max_tables); @@ -53674,6 +54591,66 @@ void ThriftHiveMetastoreClient::recv_add_dynamic_partitions() return; } +void ThriftHiveMetastoreClient::get_last_completed_transaction_for_table(BasicTxnInfo& _return, const std::string& db_name, const std::string& table_name, const TxnsSnapshot& txns_snapshot) +{ + send_get_last_completed_transaction_for_table(db_name, table_name, txns_snapshot); + recv_get_last_completed_transaction_for_table(_return); +} + +void ThriftHiveMetastoreClient::send_get_last_completed_transaction_for_table(const std::string& db_name, const std::string& table_name, const TxnsSnapshot& txns_snapshot) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("get_last_completed_transaction_for_table", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_last_completed_transaction_for_table_pargs args; + args.db_name = &db_name; + args.table_name = &table_name; + args.txns_snapshot = &txns_snapshot; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void ThriftHiveMetastoreClient::recv_get_last_completed_transaction_for_table(BasicTxnInfo& _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_last_completed_transaction_for_table") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_get_last_completed_transaction_for_table_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_last_completed_transaction_for_table failed: unknown result"); +} + void ThriftHiveMetastoreClient::get_next_notification(NotificationEventResponse& _return, const NotificationEventRequest& rqst) { send_get_next_notification(rqst); @@ -57251,6 +58228,63 @@ void ThriftHiveMetastoreProcessor::process_get_tables_by_type(int32_t seqid, ::a } } +void ThriftHiveMetastoreProcessor::process_get_materialized_views_for_rewriting(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_materialized_views_for_rewriting", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.get_materialized_views_for_rewriting"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_materialized_views_for_rewriting"); + } + + ThriftHiveMetastore_get_materialized_views_for_rewriting_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_materialized_views_for_rewriting", bytes); + } + + ThriftHiveMetastore_get_materialized_views_for_rewriting_result result; + try { + iface_->get_materialized_views_for_rewriting(result.success, args.db_name); + result.__isset.success = true; + } catch (MetaException &o1) { + result.o1 = o1; + result.__isset.o1 = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_materialized_views_for_rewriting"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("get_materialized_views_for_rewriting", ::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_materialized_views_for_rewriting"); + } + + oprot->writeMessageBegin("get_materialized_views_for_rewriting", ::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_materialized_views_for_rewriting", bytes); + } +} + void ThriftHiveMetastoreProcessor::process_get_table_meta(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; @@ -57602,6 +58636,69 @@ void ThriftHiveMetastoreProcessor::process_get_table_objects_by_name_req(int32_t } } +void ThriftHiveMetastoreProcessor::process_get_materialization_invalidation_info(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_materialization_invalidation_info", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.get_materialization_invalidation_info"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_materialization_invalidation_info"); + } + + ThriftHiveMetastore_get_materialization_invalidation_info_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_materialization_invalidation_info", bytes); + } + + ThriftHiveMetastore_get_materialization_invalidation_info_result result; + try { + iface_->get_materialization_invalidation_info(result.success, args.dbname, args.tbl_names); + result.__isset.success = true; + } catch (MetaException &o1) { + result.o1 = o1; + result.__isset.o1 = true; + } catch (InvalidOperationException &o2) { + result.o2 = o2; + result.__isset.o2 = true; + } catch (UnknownDBException &o3) { + result.o3 = o3; + result.__isset.o3 = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_materialization_invalidation_info"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("get_materialization_invalidation_info", ::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_materialization_invalidation_info"); + } + + oprot->writeMessageBegin("get_materialization_invalidation_info", ::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_materialization_invalidation_info", bytes); + } +} + void ThriftHiveMetastoreProcessor::process_get_table_names_by_filter(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; @@ -64435,6 +65532,60 @@ void ThriftHiveMetastoreProcessor::process_add_dynamic_partitions(int32_t seqid, } } +void ThriftHiveMetastoreProcessor::process_get_last_completed_transaction_for_table(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_last_completed_transaction_for_table", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.get_last_completed_transaction_for_table"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_last_completed_transaction_for_table"); + } + + ThriftHiveMetastore_get_last_completed_transaction_for_table_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_last_completed_transaction_for_table", bytes); + } + + ThriftHiveMetastore_get_last_completed_transaction_for_table_result result; + try { + iface_->get_last_completed_transaction_for_table(result.success, args.db_name, args.table_name, args.txns_snapshot); + result.__isset.success = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_last_completed_transaction_for_table"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("get_last_completed_transaction_for_table", ::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_last_completed_transaction_for_table"); + } + + oprot->writeMessageBegin("get_last_completed_transaction_for_table", ::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_last_completed_transaction_for_table", bytes); + } +} + void ThriftHiveMetastoreProcessor::process_get_next_notification(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; @@ -68430,23 +69581,111 @@ void ThriftHiveMetastoreConcurrentClient::recv_drop_table(const int32_t seqid) } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::drop_table_with_environment_context(const std::string& dbname, const std::string& name, const bool deleteData, const EnvironmentContext& environment_context) +void ThriftHiveMetastoreConcurrentClient::drop_table_with_environment_context(const std::string& dbname, const std::string& name, const bool deleteData, const EnvironmentContext& environment_context) +{ + int32_t seqid = send_drop_table_with_environment_context(dbname, name, deleteData, environment_context); + recv_drop_table_with_environment_context(seqid); +} + +int32_t ThriftHiveMetastoreConcurrentClient::send_drop_table_with_environment_context(const std::string& dbname, const std::string& name, const bool deleteData, const EnvironmentContext& environment_context) +{ + int32_t cseqid = this->sync_.generateSeqId(); + ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); + oprot_->writeMessageBegin("drop_table_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_drop_table_with_environment_context_pargs args; + args.dbname = &dbname; + args.name = &name; + args.deleteData = &deleteData; + args.environment_context = &environment_context; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); + + sentry.commit(); + return cseqid; +} + +void ThriftHiveMetastoreConcurrentClient::recv_drop_table_with_environment_context(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("drop_table_with_environment_context") != 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_drop_table_with_environment_context_presult result; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.o1) { + sentry.commit(); + throw result.o1; + } + if (result.__isset.o3) { + sentry.commit(); + throw result.o3; + } + 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::truncate_table(const std::string& dbName, const std::string& tableName, const std::vector & partNames) { - int32_t seqid = send_drop_table_with_environment_context(dbname, name, deleteData, environment_context); - recv_drop_table_with_environment_context(seqid); + int32_t seqid = send_truncate_table(dbName, tableName, partNames); + recv_truncate_table(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_drop_table_with_environment_context(const std::string& dbname, const std::string& name, const bool deleteData, const EnvironmentContext& environment_context) +int32_t ThriftHiveMetastoreConcurrentClient::send_truncate_table(const std::string& dbName, const std::string& tableName, const std::vector & partNames) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("drop_table_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("truncate_table", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_drop_table_with_environment_context_pargs args; - args.dbname = &dbname; - args.name = &name; - args.deleteData = &deleteData; - args.environment_context = &environment_context; + ThriftHiveMetastore_truncate_table_pargs args; + args.dbName = &dbName; + args.tableName = &tableName; + args.partNames = &partNames; args.write(oprot_); oprot_->writeMessageEnd(); @@ -68457,7 +69696,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_drop_table_with_environment_co return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_drop_table_with_environment_context(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_truncate_table(const int32_t seqid) { int32_t rseqid = 0; @@ -68486,7 +69725,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_drop_table_with_environment_conte iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("drop_table_with_environment_context") != 0) { + if (fname.compare("truncate_table") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -68495,7 +69734,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_drop_table_with_environment_conte using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_drop_table_with_environment_context_presult result; + ThriftHiveMetastore_truncate_table_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -68504,10 +69743,6 @@ void ThriftHiveMetastoreConcurrentClient::recv_drop_table_with_environment_conte sentry.commit(); throw result.o1; } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } sentry.commit(); return; } @@ -68519,22 +69754,21 @@ void ThriftHiveMetastoreConcurrentClient::recv_drop_table_with_environment_conte } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::truncate_table(const std::string& dbName, const std::string& tableName, const std::vector & partNames) +void ThriftHiveMetastoreConcurrentClient::get_tables(std::vector & _return, const std::string& db_name, const std::string& pattern) { - int32_t seqid = send_truncate_table(dbName, tableName, partNames); - recv_truncate_table(seqid); + int32_t seqid = send_get_tables(db_name, pattern); + recv_get_tables(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_truncate_table(const std::string& dbName, const std::string& tableName, const std::vector & partNames) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_tables(const std::string& db_name, const std::string& pattern) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("truncate_table", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_tables", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_truncate_table_pargs args; - args.dbName = &dbName; - args.tableName = &tableName; - args.partNames = &partNames; + ThriftHiveMetastore_get_tables_pargs args; + args.db_name = &db_name; + args.pattern = &pattern; args.write(oprot_); oprot_->writeMessageEnd(); @@ -68545,7 +69779,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_truncate_table(const std::stri return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_truncate_table(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_tables(std::vector & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -68574,7 +69808,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_truncate_table(const int32_t seqi iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("truncate_table") != 0) { + if (fname.compare("get_tables") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -68583,17 +69817,23 @@ void ThriftHiveMetastoreConcurrentClient::recv_truncate_table(const int32_t seqi using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_truncate_table_presult result; + ThriftHiveMetastore_get_tables_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_tables failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -68603,21 +69843,22 @@ void ThriftHiveMetastoreConcurrentClient::recv_truncate_table(const int32_t seqi } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_tables(std::vector & _return, const std::string& db_name, const std::string& pattern) +void ThriftHiveMetastoreConcurrentClient::get_tables_by_type(std::vector & _return, const std::string& db_name, const std::string& pattern, const std::string& tableType) { - int32_t seqid = send_get_tables(db_name, pattern); - recv_get_tables(_return, seqid); + int32_t seqid = send_get_tables_by_type(db_name, pattern, tableType); + recv_get_tables_by_type(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_tables(const std::string& db_name, const std::string& pattern) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_tables_by_type(const std::string& db_name, const std::string& pattern, const std::string& tableType) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_tables", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_tables_by_type", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_tables_pargs args; + ThriftHiveMetastore_get_tables_by_type_pargs args; args.db_name = &db_name; args.pattern = &pattern; + args.tableType = &tableType; args.write(oprot_); oprot_->writeMessageEnd(); @@ -68628,7 +69869,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_tables(const std::string& return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_tables(std::vector & _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_tables_by_type(std::vector & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -68657,7 +69898,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_tables(std::vectorreadMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_tables") != 0) { + if (fname.compare("get_tables_by_type") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -68666,7 +69907,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_tables(std::vectorreadMessageEnd(); @@ -68682,7 +69923,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_tables(std::vectorsync_.updatePending(fname, mtype, rseqid); @@ -68692,22 +69933,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_tables(std::vector & _return, const std::string& db_name, const std::string& pattern, const std::string& tableType) +void ThriftHiveMetastoreConcurrentClient::get_materialized_views_for_rewriting(std::vector & _return, const std::string& db_name) { - int32_t seqid = send_get_tables_by_type(db_name, pattern, tableType); - recv_get_tables_by_type(_return, seqid); + int32_t seqid = send_get_materialized_views_for_rewriting(db_name); + recv_get_materialized_views_for_rewriting(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_tables_by_type(const std::string& db_name, const std::string& pattern, const std::string& tableType) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_materialized_views_for_rewriting(const std::string& db_name) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_tables_by_type", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_materialized_views_for_rewriting", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_tables_by_type_pargs args; + ThriftHiveMetastore_get_materialized_views_for_rewriting_pargs args; args.db_name = &db_name; - args.pattern = &pattern; - args.tableType = &tableType; args.write(oprot_); oprot_->writeMessageEnd(); @@ -68718,7 +69957,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_tables_by_type(const std:: return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_tables_by_type(std::vector & _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_materialized_views_for_rewriting(std::vector & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -68747,7 +69986,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_tables_by_type(std::vectorreadMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_tables_by_type") != 0) { + if (fname.compare("get_materialized_views_for_rewriting") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -68756,7 +69995,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_tables_by_type(std::vectorreadMessageEnd(); @@ -68772,7 +70011,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_tables_by_type(std::vectorsync_.updatePending(fname, mtype, rseqid); @@ -69326,6 +70565,103 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_table_objects_by_name_req(Get } // end while(true) } +void ThriftHiveMetastoreConcurrentClient::get_materialization_invalidation_info(std::map & _return, const std::string& dbname, const std::vector & tbl_names) +{ + int32_t seqid = send_get_materialization_invalidation_info(dbname, tbl_names); + recv_get_materialization_invalidation_info(_return, seqid); +} + +int32_t ThriftHiveMetastoreConcurrentClient::send_get_materialization_invalidation_info(const std::string& dbname, const std::vector & tbl_names) +{ + int32_t cseqid = this->sync_.generateSeqId(); + ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); + oprot_->writeMessageBegin("get_materialization_invalidation_info", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_materialization_invalidation_info_pargs args; + args.dbname = &dbname; + args.tbl_names = &tbl_names; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); + + sentry.commit(); + return cseqid; +} + +void ThriftHiveMetastoreConcurrentClient::recv_get_materialization_invalidation_info(std::map & _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_materialization_invalidation_info") != 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_materialization_invalidation_info_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; + } + 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, "get_materialization_invalidation_info 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_table_names_by_filter(std::vector & _return, const std::string& dbname, const std::string& filter, const int16_t max_tables) { int32_t seqid = send_get_table_names_by_filter(dbname, filter, max_tables); @@ -79855,6 +81191,92 @@ void ThriftHiveMetastoreConcurrentClient::recv_add_dynamic_partitions(const int3 } // end while(true) } +void ThriftHiveMetastoreConcurrentClient::get_last_completed_transaction_for_table(BasicTxnInfo& _return, const std::string& db_name, const std::string& table_name, const TxnsSnapshot& txns_snapshot) +{ + int32_t seqid = send_get_last_completed_transaction_for_table(db_name, table_name, txns_snapshot); + recv_get_last_completed_transaction_for_table(_return, seqid); +} + +int32_t ThriftHiveMetastoreConcurrentClient::send_get_last_completed_transaction_for_table(const std::string& db_name, const std::string& table_name, const TxnsSnapshot& txns_snapshot) +{ + int32_t cseqid = this->sync_.generateSeqId(); + ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); + oprot_->writeMessageBegin("get_last_completed_transaction_for_table", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_last_completed_transaction_for_table_pargs args; + args.db_name = &db_name; + args.table_name = &table_name; + args.txns_snapshot = &txns_snapshot; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); + + sentry.commit(); + return cseqid; +} + +void ThriftHiveMetastoreConcurrentClient::recv_get_last_completed_transaction_for_table(BasicTxnInfo& _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_last_completed_transaction_for_table") != 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_last_completed_transaction_for_table_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + sentry.commit(); + return; + } + // in a bad state, don't commit + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_last_completed_transaction_for_table 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_next_notification(NotificationEventResponse& _return, const NotificationEventRequest& rqst) { int32_t seqid = send_get_next_notification(rqst); diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h index dc9540da83..acd3b17844 100644 --- a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h +++ b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h @@ -51,12 +51,14 @@ class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookService virtual void truncate_table(const std::string& dbName, const std::string& tableName, const std::vector & partNames) = 0; virtual void get_tables(std::vector & _return, const std::string& db_name, const std::string& pattern) = 0; virtual void get_tables_by_type(std::vector & _return, const std::string& db_name, const std::string& pattern, const std::string& tableType) = 0; + virtual void get_materialized_views_for_rewriting(std::vector & _return, const std::string& db_name) = 0; virtual void get_table_meta(std::vector & _return, const std::string& db_patterns, const std::string& tbl_patterns, const std::vector & tbl_types) = 0; virtual void get_all_tables(std::vector & _return, const std::string& db_name) = 0; virtual void get_table(Table& _return, const std::string& dbname, const std::string& tbl_name) = 0; virtual void get_table_objects_by_name(std::vector
& _return, const std::string& dbname, const std::vector & tbl_names) = 0; virtual void get_table_req(GetTableResult& _return, const GetTableRequest& req) = 0; virtual void get_table_objects_by_name_req(GetTablesResult& _return, const GetTablesRequest& req) = 0; + virtual void get_materialization_invalidation_info(std::map & _return, const std::string& dbname, const std::vector & tbl_names) = 0; virtual void get_table_names_by_filter(std::vector & _return, const std::string& dbname, const std::string& filter, const int16_t max_tables) = 0; virtual void alter_table(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl) = 0; virtual void alter_table_with_environment_context(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl, const EnvironmentContext& environment_context) = 0; @@ -172,6 +174,7 @@ class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookService virtual void compact2(CompactionResponse& _return, const CompactionRequest& rqst) = 0; virtual void show_compact(ShowCompactResponse& _return, const ShowCompactRequest& rqst) = 0; virtual void add_dynamic_partitions(const AddDynamicPartitions& rqst) = 0; + virtual void get_last_completed_transaction_for_table(BasicTxnInfo& _return, const std::string& db_name, const std::string& table_name, const TxnsSnapshot& txns_snapshot) = 0; virtual void get_next_notification(NotificationEventResponse& _return, const NotificationEventRequest& rqst) = 0; virtual void get_current_notificationEventId(CurrentNotificationEventId& _return) = 0; virtual void get_notification_events_count(NotificationEventsCountResponse& _return, const NotificationEventsCountRequest& rqst) = 0; @@ -319,6 +322,9 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p void get_tables_by_type(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* pattern */, const std::string& /* tableType */) { return; } + void get_materialized_views_for_rewriting(std::vector & /* _return */, const std::string& /* db_name */) { + return; + } void get_table_meta(std::vector & /* _return */, const std::string& /* db_patterns */, const std::string& /* tbl_patterns */, const std::vector & /* tbl_types */) { return; } @@ -337,6 +343,9 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p void get_table_objects_by_name_req(GetTablesResult& /* _return */, const GetTablesRequest& /* req */) { return; } + void get_materialization_invalidation_info(std::map & /* _return */, const std::string& /* dbname */, const std::vector & /* tbl_names */) { + return; + } void get_table_names_by_filter(std::vector & /* _return */, const std::string& /* dbname */, const std::string& /* filter */, const int16_t /* max_tables */) { return; } @@ -708,6 +717,9 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p void add_dynamic_partitions(const AddDynamicPartitions& /* rqst */) { return; } + void get_last_completed_transaction_for_table(BasicTxnInfo& /* _return */, const std::string& /* db_name */, const std::string& /* table_name */, const TxnsSnapshot& /* txns_snapshot */) { + return; + } void get_next_notification(NotificationEventResponse& /* _return */, const NotificationEventRequest& /* rqst */) { return; } @@ -4360,6 +4372,118 @@ class ThriftHiveMetastore_get_tables_by_type_presult { }; +typedef struct _ThriftHiveMetastore_get_materialized_views_for_rewriting_args__isset { + _ThriftHiveMetastore_get_materialized_views_for_rewriting_args__isset() : db_name(false) {} + bool db_name :1; +} _ThriftHiveMetastore_get_materialized_views_for_rewriting_args__isset; + +class ThriftHiveMetastore_get_materialized_views_for_rewriting_args { + public: + + ThriftHiveMetastore_get_materialized_views_for_rewriting_args(const ThriftHiveMetastore_get_materialized_views_for_rewriting_args&); + ThriftHiveMetastore_get_materialized_views_for_rewriting_args& operator=(const ThriftHiveMetastore_get_materialized_views_for_rewriting_args&); + ThriftHiveMetastore_get_materialized_views_for_rewriting_args() : db_name() { + } + + virtual ~ThriftHiveMetastore_get_materialized_views_for_rewriting_args() throw(); + std::string db_name; + + _ThriftHiveMetastore_get_materialized_views_for_rewriting_args__isset __isset; + + void __set_db_name(const std::string& val); + + bool operator == (const ThriftHiveMetastore_get_materialized_views_for_rewriting_args & rhs) const + { + if (!(db_name == rhs.db_name)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_materialized_views_for_rewriting_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_materialized_views_for_rewriting_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_get_materialized_views_for_rewriting_pargs { + public: + + + virtual ~ThriftHiveMetastore_get_materialized_views_for_rewriting_pargs() throw(); + const std::string* db_name; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_materialized_views_for_rewriting_result__isset { + _ThriftHiveMetastore_get_materialized_views_for_rewriting_result__isset() : success(false), o1(false) {} + bool success :1; + bool o1 :1; +} _ThriftHiveMetastore_get_materialized_views_for_rewriting_result__isset; + +class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { + public: + + ThriftHiveMetastore_get_materialized_views_for_rewriting_result(const ThriftHiveMetastore_get_materialized_views_for_rewriting_result&); + ThriftHiveMetastore_get_materialized_views_for_rewriting_result& operator=(const ThriftHiveMetastore_get_materialized_views_for_rewriting_result&); + ThriftHiveMetastore_get_materialized_views_for_rewriting_result() { + } + + virtual ~ThriftHiveMetastore_get_materialized_views_for_rewriting_result() throw(); + std::vector success; + MetaException o1; + + _ThriftHiveMetastore_get_materialized_views_for_rewriting_result__isset __isset; + + void __set_success(const std::vector & val); + + void __set_o1(const MetaException& val); + + bool operator == (const ThriftHiveMetastore_get_materialized_views_for_rewriting_result & rhs) const + { + if (!(success == rhs.success)) + return false; + if (!(o1 == rhs.o1)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_materialized_views_for_rewriting_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_materialized_views_for_rewriting_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_materialized_views_for_rewriting_presult__isset { + _ThriftHiveMetastore_get_materialized_views_for_rewriting_presult__isset() : success(false), o1(false) {} + bool success :1; + bool o1 :1; +} _ThriftHiveMetastore_get_materialized_views_for_rewriting_presult__isset; + +class ThriftHiveMetastore_get_materialized_views_for_rewriting_presult { + public: + + + virtual ~ThriftHiveMetastore_get_materialized_views_for_rewriting_presult() throw(); + std::vector * success; + MetaException o1; + + _ThriftHiveMetastore_get_materialized_views_for_rewriting_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + typedef struct _ThriftHiveMetastore_get_table_meta_args__isset { _ThriftHiveMetastore_get_table_meta_args__isset() : db_patterns(false), tbl_patterns(false), tbl_types(false) {} bool db_patterns :1; @@ -5084,6 +5208,141 @@ class ThriftHiveMetastore_get_table_objects_by_name_req_presult { }; +typedef struct _ThriftHiveMetastore_get_materialization_invalidation_info_args__isset { + _ThriftHiveMetastore_get_materialization_invalidation_info_args__isset() : dbname(false), tbl_names(false) {} + bool dbname :1; + bool tbl_names :1; +} _ThriftHiveMetastore_get_materialization_invalidation_info_args__isset; + +class ThriftHiveMetastore_get_materialization_invalidation_info_args { + public: + + ThriftHiveMetastore_get_materialization_invalidation_info_args(const ThriftHiveMetastore_get_materialization_invalidation_info_args&); + ThriftHiveMetastore_get_materialization_invalidation_info_args& operator=(const ThriftHiveMetastore_get_materialization_invalidation_info_args&); + ThriftHiveMetastore_get_materialization_invalidation_info_args() : dbname() { + } + + virtual ~ThriftHiveMetastore_get_materialization_invalidation_info_args() throw(); + std::string dbname; + std::vector tbl_names; + + _ThriftHiveMetastore_get_materialization_invalidation_info_args__isset __isset; + + void __set_dbname(const std::string& val); + + void __set_tbl_names(const std::vector & val); + + bool operator == (const ThriftHiveMetastore_get_materialization_invalidation_info_args & rhs) const + { + if (!(dbname == rhs.dbname)) + return false; + if (!(tbl_names == rhs.tbl_names)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_materialization_invalidation_info_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_materialization_invalidation_info_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_get_materialization_invalidation_info_pargs { + public: + + + virtual ~ThriftHiveMetastore_get_materialization_invalidation_info_pargs() throw(); + const std::string* dbname; + const std::vector * tbl_names; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_materialization_invalidation_info_result__isset { + _ThriftHiveMetastore_get_materialization_invalidation_info_result__isset() : success(false), o1(false), o2(false), o3(false) {} + bool success :1; + bool o1 :1; + bool o2 :1; + bool o3 :1; +} _ThriftHiveMetastore_get_materialization_invalidation_info_result__isset; + +class ThriftHiveMetastore_get_materialization_invalidation_info_result { + public: + + ThriftHiveMetastore_get_materialization_invalidation_info_result(const ThriftHiveMetastore_get_materialization_invalidation_info_result&); + ThriftHiveMetastore_get_materialization_invalidation_info_result& operator=(const ThriftHiveMetastore_get_materialization_invalidation_info_result&); + ThriftHiveMetastore_get_materialization_invalidation_info_result() { + } + + virtual ~ThriftHiveMetastore_get_materialization_invalidation_info_result() throw(); + std::map success; + MetaException o1; + InvalidOperationException o2; + UnknownDBException o3; + + _ThriftHiveMetastore_get_materialization_invalidation_info_result__isset __isset; + + void __set_success(const std::map & val); + + void __set_o1(const MetaException& val); + + void __set_o2(const InvalidOperationException& val); + + void __set_o3(const UnknownDBException& val); + + bool operator == (const ThriftHiveMetastore_get_materialization_invalidation_info_result & rhs) const + { + if (!(success == rhs.success)) + return false; + if (!(o1 == rhs.o1)) + return false; + if (!(o2 == rhs.o2)) + return false; + if (!(o3 == rhs.o3)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_materialization_invalidation_info_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_materialization_invalidation_info_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_materialization_invalidation_info_presult__isset { + _ThriftHiveMetastore_get_materialization_invalidation_info_presult__isset() : success(false), o1(false), o2(false), o3(false) {} + bool success :1; + bool o1 :1; + bool o2 :1; + bool o3 :1; +} _ThriftHiveMetastore_get_materialization_invalidation_info_presult__isset; + +class ThriftHiveMetastore_get_materialization_invalidation_info_presult { + public: + + + virtual ~ThriftHiveMetastore_get_materialization_invalidation_info_presult() throw(); + std::map * success; + MetaException o1; + InvalidOperationException o2; + UnknownDBException o3; + + _ThriftHiveMetastore_get_materialization_invalidation_info_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + typedef struct _ThriftHiveMetastore_get_table_names_by_filter_args__isset { _ThriftHiveMetastore_get_table_names_by_filter_args__isset() : dbname(false), filter(false), max_tables(true) {} bool dbname :1; @@ -19535,6 +19794,124 @@ class ThriftHiveMetastore_add_dynamic_partitions_presult { }; +typedef struct _ThriftHiveMetastore_get_last_completed_transaction_for_table_args__isset { + _ThriftHiveMetastore_get_last_completed_transaction_for_table_args__isset() : db_name(false), table_name(false), txns_snapshot(false) {} + bool db_name :1; + bool table_name :1; + bool txns_snapshot :1; +} _ThriftHiveMetastore_get_last_completed_transaction_for_table_args__isset; + +class ThriftHiveMetastore_get_last_completed_transaction_for_table_args { + public: + + ThriftHiveMetastore_get_last_completed_transaction_for_table_args(const ThriftHiveMetastore_get_last_completed_transaction_for_table_args&); + ThriftHiveMetastore_get_last_completed_transaction_for_table_args& operator=(const ThriftHiveMetastore_get_last_completed_transaction_for_table_args&); + ThriftHiveMetastore_get_last_completed_transaction_for_table_args() : db_name(), table_name() { + } + + virtual ~ThriftHiveMetastore_get_last_completed_transaction_for_table_args() throw(); + std::string db_name; + std::string table_name; + TxnsSnapshot txns_snapshot; + + _ThriftHiveMetastore_get_last_completed_transaction_for_table_args__isset __isset; + + void __set_db_name(const std::string& val); + + void __set_table_name(const std::string& val); + + void __set_txns_snapshot(const TxnsSnapshot& val); + + bool operator == (const ThriftHiveMetastore_get_last_completed_transaction_for_table_args & rhs) const + { + if (!(db_name == rhs.db_name)) + return false; + if (!(table_name == rhs.table_name)) + return false; + if (!(txns_snapshot == rhs.txns_snapshot)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_last_completed_transaction_for_table_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_last_completed_transaction_for_table_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_get_last_completed_transaction_for_table_pargs { + public: + + + virtual ~ThriftHiveMetastore_get_last_completed_transaction_for_table_pargs() throw(); + const std::string* db_name; + const std::string* table_name; + const TxnsSnapshot* txns_snapshot; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_last_completed_transaction_for_table_result__isset { + _ThriftHiveMetastore_get_last_completed_transaction_for_table_result__isset() : success(false) {} + bool success :1; +} _ThriftHiveMetastore_get_last_completed_transaction_for_table_result__isset; + +class ThriftHiveMetastore_get_last_completed_transaction_for_table_result { + public: + + ThriftHiveMetastore_get_last_completed_transaction_for_table_result(const ThriftHiveMetastore_get_last_completed_transaction_for_table_result&); + ThriftHiveMetastore_get_last_completed_transaction_for_table_result& operator=(const ThriftHiveMetastore_get_last_completed_transaction_for_table_result&); + ThriftHiveMetastore_get_last_completed_transaction_for_table_result() { + } + + virtual ~ThriftHiveMetastore_get_last_completed_transaction_for_table_result() throw(); + BasicTxnInfo success; + + _ThriftHiveMetastore_get_last_completed_transaction_for_table_result__isset __isset; + + void __set_success(const BasicTxnInfo& val); + + bool operator == (const ThriftHiveMetastore_get_last_completed_transaction_for_table_result & rhs) const + { + if (!(success == rhs.success)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_last_completed_transaction_for_table_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_last_completed_transaction_for_table_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_last_completed_transaction_for_table_presult__isset { + _ThriftHiveMetastore_get_last_completed_transaction_for_table_presult__isset() : success(false) {} + bool success :1; +} _ThriftHiveMetastore_get_last_completed_transaction_for_table_presult__isset; + +class ThriftHiveMetastore_get_last_completed_transaction_for_table_presult { + public: + + + virtual ~ThriftHiveMetastore_get_last_completed_transaction_for_table_presult() throw(); + BasicTxnInfo* success; + + _ThriftHiveMetastore_get_last_completed_transaction_for_table_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + typedef struct _ThriftHiveMetastore_get_next_notification_args__isset { _ThriftHiveMetastore_get_next_notification_args__isset() : rqst(false) {} bool rqst :1; @@ -23003,6 +23380,9 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public void get_tables_by_type(std::vector & _return, const std::string& db_name, const std::string& pattern, const std::string& tableType); void send_get_tables_by_type(const std::string& db_name, const std::string& pattern, const std::string& tableType); void recv_get_tables_by_type(std::vector & _return); + void get_materialized_views_for_rewriting(std::vector & _return, const std::string& db_name); + void send_get_materialized_views_for_rewriting(const std::string& db_name); + void recv_get_materialized_views_for_rewriting(std::vector & _return); void get_table_meta(std::vector & _return, const std::string& db_patterns, const std::string& tbl_patterns, const std::vector & tbl_types); void send_get_table_meta(const std::string& db_patterns, const std::string& tbl_patterns, const std::vector & tbl_types); void recv_get_table_meta(std::vector & _return); @@ -23021,6 +23401,9 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public void get_table_objects_by_name_req(GetTablesResult& _return, const GetTablesRequest& req); void send_get_table_objects_by_name_req(const GetTablesRequest& req); void recv_get_table_objects_by_name_req(GetTablesResult& _return); + void get_materialization_invalidation_info(std::map & _return, const std::string& dbname, const std::vector & tbl_names); + void send_get_materialization_invalidation_info(const std::string& dbname, const std::vector & tbl_names); + void recv_get_materialization_invalidation_info(std::map & _return); void get_table_names_by_filter(std::vector & _return, const std::string& dbname, const std::string& filter, const int16_t max_tables); void send_get_table_names_by_filter(const std::string& dbname, const std::string& filter, const int16_t max_tables); void recv_get_table_names_by_filter(std::vector & _return); @@ -23366,6 +23749,9 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public void add_dynamic_partitions(const AddDynamicPartitions& rqst); void send_add_dynamic_partitions(const AddDynamicPartitions& rqst); void recv_add_dynamic_partitions(); + void get_last_completed_transaction_for_table(BasicTxnInfo& _return, const std::string& db_name, const std::string& table_name, const TxnsSnapshot& txns_snapshot); + void send_get_last_completed_transaction_for_table(const std::string& db_name, const std::string& table_name, const TxnsSnapshot& txns_snapshot); + void recv_get_last_completed_transaction_for_table(BasicTxnInfo& _return); void get_next_notification(NotificationEventResponse& _return, const NotificationEventRequest& rqst); void send_get_next_notification(const NotificationEventRequest& rqst); void recv_get_next_notification(NotificationEventResponse& _return); @@ -23492,12 +23878,14 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP void process_truncate_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_tables(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_tables_by_type(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_materialized_views_for_rewriting(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_table_meta(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_all_tables(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_table_objects_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_table_req(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_table_objects_by_name_req(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_materialization_invalidation_info(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_table_names_by_filter(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_alter_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_alter_table_with_environment_context(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); @@ -23613,6 +24001,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP void process_compact2(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_show_compact(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_add_dynamic_partitions(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_last_completed_transaction_for_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_next_notification(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_current_notificationEventId(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_notification_events_count(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); @@ -23675,12 +24064,14 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP processMap_["truncate_table"] = &ThriftHiveMetastoreProcessor::process_truncate_table; processMap_["get_tables"] = &ThriftHiveMetastoreProcessor::process_get_tables; processMap_["get_tables_by_type"] = &ThriftHiveMetastoreProcessor::process_get_tables_by_type; + processMap_["get_materialized_views_for_rewriting"] = &ThriftHiveMetastoreProcessor::process_get_materialized_views_for_rewriting; processMap_["get_table_meta"] = &ThriftHiveMetastoreProcessor::process_get_table_meta; processMap_["get_all_tables"] = &ThriftHiveMetastoreProcessor::process_get_all_tables; processMap_["get_table"] = &ThriftHiveMetastoreProcessor::process_get_table; processMap_["get_table_objects_by_name"] = &ThriftHiveMetastoreProcessor::process_get_table_objects_by_name; processMap_["get_table_req"] = &ThriftHiveMetastoreProcessor::process_get_table_req; processMap_["get_table_objects_by_name_req"] = &ThriftHiveMetastoreProcessor::process_get_table_objects_by_name_req; + processMap_["get_materialization_invalidation_info"] = &ThriftHiveMetastoreProcessor::process_get_materialization_invalidation_info; processMap_["get_table_names_by_filter"] = &ThriftHiveMetastoreProcessor::process_get_table_names_by_filter; processMap_["alter_table"] = &ThriftHiveMetastoreProcessor::process_alter_table; processMap_["alter_table_with_environment_context"] = &ThriftHiveMetastoreProcessor::process_alter_table_with_environment_context; @@ -23796,6 +24187,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP processMap_["compact2"] = &ThriftHiveMetastoreProcessor::process_compact2; processMap_["show_compact"] = &ThriftHiveMetastoreProcessor::process_show_compact; processMap_["add_dynamic_partitions"] = &ThriftHiveMetastoreProcessor::process_add_dynamic_partitions; + processMap_["get_last_completed_transaction_for_table"] = &ThriftHiveMetastoreProcessor::process_get_last_completed_transaction_for_table; processMap_["get_next_notification"] = &ThriftHiveMetastoreProcessor::process_get_next_notification; processMap_["get_current_notificationEventId"] = &ThriftHiveMetastoreProcessor::process_get_current_notificationEventId; processMap_["get_notification_events_count"] = &ThriftHiveMetastoreProcessor::process_get_notification_events_count; @@ -24131,6 +24523,16 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi return; } + void get_materialized_views_for_rewriting(std::vector & _return, const std::string& db_name) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->get_materialized_views_for_rewriting(_return, db_name); + } + ifaces_[i]->get_materialized_views_for_rewriting(_return, db_name); + return; + } + void get_table_meta(std::vector & _return, const std::string& db_patterns, const std::string& tbl_patterns, const std::vector & tbl_types) { size_t sz = ifaces_.size(); size_t i = 0; @@ -24191,6 +24593,16 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi return; } + void get_materialization_invalidation_info(std::map & _return, const std::string& dbname, const std::vector & tbl_names) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->get_materialization_invalidation_info(_return, dbname, tbl_names); + } + ifaces_[i]->get_materialization_invalidation_info(_return, dbname, tbl_names); + return; + } + void get_table_names_by_filter(std::vector & _return, const std::string& dbname, const std::string& filter, const int16_t max_tables) { size_t sz = ifaces_.size(); size_t i = 0; @@ -25293,6 +25705,16 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi ifaces_[i]->add_dynamic_partitions(rqst); } + void get_last_completed_transaction_for_table(BasicTxnInfo& _return, const std::string& db_name, const std::string& table_name, const TxnsSnapshot& txns_snapshot) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->get_last_completed_transaction_for_table(_return, db_name, table_name, txns_snapshot); + } + ifaces_[i]->get_last_completed_transaction_for_table(_return, db_name, table_name, txns_snapshot); + return; + } + void get_next_notification(NotificationEventResponse& _return, const NotificationEventRequest& rqst) { size_t sz = ifaces_.size(); size_t i = 0; @@ -25685,6 +26107,9 @@ class ThriftHiveMetastoreConcurrentClient : virtual public ThriftHiveMetastoreIf void get_tables_by_type(std::vector & _return, const std::string& db_name, const std::string& pattern, const std::string& tableType); int32_t send_get_tables_by_type(const std::string& db_name, const std::string& pattern, const std::string& tableType); void recv_get_tables_by_type(std::vector & _return, const int32_t seqid); + void get_materialized_views_for_rewriting(std::vector & _return, const std::string& db_name); + int32_t send_get_materialized_views_for_rewriting(const std::string& db_name); + void recv_get_materialized_views_for_rewriting(std::vector & _return, const int32_t seqid); void get_table_meta(std::vector & _return, const std::string& db_patterns, const std::string& tbl_patterns, const std::vector & tbl_types); int32_t send_get_table_meta(const std::string& db_patterns, const std::string& tbl_patterns, const std::vector & tbl_types); void recv_get_table_meta(std::vector & _return, const int32_t seqid); @@ -25703,6 +26128,9 @@ class ThriftHiveMetastoreConcurrentClient : virtual public ThriftHiveMetastoreIf void get_table_objects_by_name_req(GetTablesResult& _return, const GetTablesRequest& req); int32_t send_get_table_objects_by_name_req(const GetTablesRequest& req); void recv_get_table_objects_by_name_req(GetTablesResult& _return, const int32_t seqid); + void get_materialization_invalidation_info(std::map & _return, const std::string& dbname, const std::vector & tbl_names); + int32_t send_get_materialization_invalidation_info(const std::string& dbname, const std::vector & tbl_names); + void recv_get_materialization_invalidation_info(std::map & _return, const int32_t seqid); void get_table_names_by_filter(std::vector & _return, const std::string& dbname, const std::string& filter, const int16_t max_tables); int32_t send_get_table_names_by_filter(const std::string& dbname, const std::string& filter, const int16_t max_tables); void recv_get_table_names_by_filter(std::vector & _return, const int32_t seqid); @@ -26048,6 +26476,9 @@ class ThriftHiveMetastoreConcurrentClient : virtual public ThriftHiveMetastoreIf void add_dynamic_partitions(const AddDynamicPartitions& rqst); int32_t send_add_dynamic_partitions(const AddDynamicPartitions& rqst); void recv_add_dynamic_partitions(const int32_t seqid); + void get_last_completed_transaction_for_table(BasicTxnInfo& _return, const std::string& db_name, const std::string& table_name, const TxnsSnapshot& txns_snapshot); + int32_t send_get_last_completed_transaction_for_table(const std::string& db_name, const std::string& table_name, const TxnsSnapshot& txns_snapshot); + void recv_get_last_completed_transaction_for_table(BasicTxnInfo& _return, const int32_t seqid); void get_next_notification(NotificationEventResponse& _return, const NotificationEventRequest& rqst); int32_t send_get_next_notification(const NotificationEventRequest& rqst); void recv_get_next_notification(NotificationEventResponse& _return, const int32_t seqid); diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp index bf4bd7a37d..03cbbe1176 100644 --- a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp +++ b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp @@ -167,6 +167,11 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("get_tables_by_type\n"); } + void get_materialized_views_for_rewriting(std::vector & _return, const std::string& db_name) { + // Your implementation goes here + printf("get_materialized_views_for_rewriting\n"); + } + void get_table_meta(std::vector & _return, const std::string& db_patterns, const std::string& tbl_patterns, const std::vector & tbl_types) { // Your implementation goes here printf("get_table_meta\n"); @@ -197,6 +202,11 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("get_table_objects_by_name_req\n"); } + void get_materialization_invalidation_info(std::map & _return, const std::string& dbname, const std::vector & tbl_names) { + // Your implementation goes here + printf("get_materialization_invalidation_info\n"); + } + void get_table_names_by_filter(std::vector & _return, const std::string& dbname, const std::string& filter, const int16_t max_tables) { // Your implementation goes here printf("get_table_names_by_filter\n"); @@ -772,6 +782,11 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("add_dynamic_partitions\n"); } + void get_last_completed_transaction_for_table(BasicTxnInfo& _return, const std::string& db_name, const std::string& table_name, const TxnsSnapshot& txns_snapshot) { + // Your implementation goes here + printf("get_last_completed_transaction_for_table\n"); + } + void get_next_notification(NotificationEventResponse& _return, const NotificationEventRequest& rqst) { // Your implementation goes here printf("get_next_notification\n"); diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp b/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp index 913e3ccaca..df312df1bc 100644 --- a/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp +++ b/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp @@ -4930,6 +4930,11 @@ void Table::__set_rewriteEnabled(const bool val) { __isset.rewriteEnabled = true; } +void Table::__set_creationMetadata(const std::map & val) { + this->creationMetadata = val; +__isset.creationMetadata = true; +} + uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); @@ -5098,6 +5103,29 @@ uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) { xfer += iprot->skip(ftype); } break; + case 16: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->creationMetadata.clear(); + uint32_t _size223; + ::apache::thrift::protocol::TType _ktype224; + ::apache::thrift::protocol::TType _vtype225; + xfer += iprot->readMapBegin(_ktype224, _vtype225, _size223); + uint32_t _i227; + for (_i227 = 0; _i227 < _size223; ++_i227) + { + std::string _key228; + xfer += iprot->readString(_key228); + BasicTxnInfo& _val229 = this->creationMetadata[_key228]; + xfer += _val229.read(iprot); + } + xfer += iprot->readMapEnd(); + } + this->__isset.creationMetadata = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -5146,10 +5174,10 @@ uint32_t Table::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("partitionKeys", ::apache::thrift::protocol::T_LIST, 8); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitionKeys.size())); - std::vector ::const_iterator _iter223; - for (_iter223 = this->partitionKeys.begin(); _iter223 != this->partitionKeys.end(); ++_iter223) + std::vector ::const_iterator _iter230; + for (_iter230 = this->partitionKeys.begin(); _iter230 != this->partitionKeys.end(); ++_iter230) { - xfer += (*_iter223).write(oprot); + xfer += (*_iter230).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5158,11 +5186,11 @@ uint32_t Table::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 9); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter224; - for (_iter224 = this->parameters.begin(); _iter224 != this->parameters.end(); ++_iter224) + std::map ::const_iterator _iter231; + for (_iter231 = this->parameters.begin(); _iter231 != this->parameters.end(); ++_iter231) { - xfer += oprot->writeString(_iter224->first); - xfer += oprot->writeString(_iter224->second); + xfer += oprot->writeString(_iter231->first); + xfer += oprot->writeString(_iter231->second); } xfer += oprot->writeMapEnd(); } @@ -5195,6 +5223,20 @@ uint32_t Table::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeBool(this->rewriteEnabled); xfer += oprot->writeFieldEnd(); } + if (this->__isset.creationMetadata) { + xfer += oprot->writeFieldBegin("creationMetadata", ::apache::thrift::protocol::T_MAP, 16); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast(this->creationMetadata.size())); + std::map ::const_iterator _iter232; + for (_iter232 = this->creationMetadata.begin(); _iter232 != this->creationMetadata.end(); ++_iter232) + { + xfer += oprot->writeString(_iter232->first); + xfer += _iter232->second.write(oprot); + } + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); + } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -5217,44 +5259,47 @@ void swap(Table &a, Table &b) { swap(a.privileges, b.privileges); swap(a.temporary, b.temporary); swap(a.rewriteEnabled, b.rewriteEnabled); + swap(a.creationMetadata, b.creationMetadata); swap(a.__isset, b.__isset); } -Table::Table(const Table& other225) { - tableName = other225.tableName; - dbName = other225.dbName; - owner = other225.owner; - createTime = other225.createTime; - lastAccessTime = other225.lastAccessTime; - retention = other225.retention; - sd = other225.sd; - partitionKeys = other225.partitionKeys; - parameters = other225.parameters; - viewOriginalText = other225.viewOriginalText; - viewExpandedText = other225.viewExpandedText; - tableType = other225.tableType; - privileges = other225.privileges; - temporary = other225.temporary; - rewriteEnabled = other225.rewriteEnabled; - __isset = other225.__isset; -} -Table& Table::operator=(const Table& other226) { - tableName = other226.tableName; - dbName = other226.dbName; - owner = other226.owner; - createTime = other226.createTime; - lastAccessTime = other226.lastAccessTime; - retention = other226.retention; - sd = other226.sd; - partitionKeys = other226.partitionKeys; - parameters = other226.parameters; - viewOriginalText = other226.viewOriginalText; - viewExpandedText = other226.viewExpandedText; - tableType = other226.tableType; - privileges = other226.privileges; - temporary = other226.temporary; - rewriteEnabled = other226.rewriteEnabled; - __isset = other226.__isset; +Table::Table(const Table& other233) { + tableName = other233.tableName; + dbName = other233.dbName; + owner = other233.owner; + createTime = other233.createTime; + lastAccessTime = other233.lastAccessTime; + retention = other233.retention; + sd = other233.sd; + partitionKeys = other233.partitionKeys; + parameters = other233.parameters; + viewOriginalText = other233.viewOriginalText; + viewExpandedText = other233.viewExpandedText; + tableType = other233.tableType; + privileges = other233.privileges; + temporary = other233.temporary; + rewriteEnabled = other233.rewriteEnabled; + creationMetadata = other233.creationMetadata; + __isset = other233.__isset; +} +Table& Table::operator=(const Table& other234) { + tableName = other234.tableName; + dbName = other234.dbName; + owner = other234.owner; + createTime = other234.createTime; + lastAccessTime = other234.lastAccessTime; + retention = other234.retention; + sd = other234.sd; + partitionKeys = other234.partitionKeys; + parameters = other234.parameters; + viewOriginalText = other234.viewOriginalText; + viewExpandedText = other234.viewExpandedText; + tableType = other234.tableType; + privileges = other234.privileges; + temporary = other234.temporary; + rewriteEnabled = other234.rewriteEnabled; + creationMetadata = other234.creationMetadata; + __isset = other234.__isset; return *this; } void Table::printTo(std::ostream& out) const { @@ -5275,6 +5320,7 @@ 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 << ", " << "creationMetadata="; (__isset.creationMetadata ? (out << to_string(creationMetadata)) : (out << "")); out << ")"; } @@ -5341,14 +5387,14 @@ uint32_t Partition::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size227; - ::apache::thrift::protocol::TType _etype230; - xfer += iprot->readListBegin(_etype230, _size227); - this->values.resize(_size227); - uint32_t _i231; - for (_i231 = 0; _i231 < _size227; ++_i231) + uint32_t _size235; + ::apache::thrift::protocol::TType _etype238; + xfer += iprot->readListBegin(_etype238, _size235); + this->values.resize(_size235); + uint32_t _i239; + for (_i239 = 0; _i239 < _size235; ++_i239) { - xfer += iprot->readString(this->values[_i231]); + xfer += iprot->readString(this->values[_i239]); } xfer += iprot->readListEnd(); } @@ -5401,17 +5447,17 @@ uint32_t Partition::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size232; - ::apache::thrift::protocol::TType _ktype233; - ::apache::thrift::protocol::TType _vtype234; - xfer += iprot->readMapBegin(_ktype233, _vtype234, _size232); - uint32_t _i236; - for (_i236 = 0; _i236 < _size232; ++_i236) + uint32_t _size240; + ::apache::thrift::protocol::TType _ktype241; + ::apache::thrift::protocol::TType _vtype242; + xfer += iprot->readMapBegin(_ktype241, _vtype242, _size240); + uint32_t _i244; + for (_i244 = 0; _i244 < _size240; ++_i244) { - std::string _key237; - xfer += iprot->readString(_key237); - std::string& _val238 = this->parameters[_key237]; - xfer += iprot->readString(_val238); + std::string _key245; + xfer += iprot->readString(_key245); + std::string& _val246 = this->parameters[_key245]; + xfer += iprot->readString(_val246); } xfer += iprot->readMapEnd(); } @@ -5448,10 +5494,10 @@ uint32_t Partition::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->values.size())); - std::vector ::const_iterator _iter239; - for (_iter239 = this->values.begin(); _iter239 != this->values.end(); ++_iter239) + std::vector ::const_iterator _iter247; + for (_iter247 = this->values.begin(); _iter247 != this->values.end(); ++_iter247) { - xfer += oprot->writeString((*_iter239)); + xfer += oprot->writeString((*_iter247)); } xfer += oprot->writeListEnd(); } @@ -5480,11 +5526,11 @@ uint32_t Partition::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 7); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter240; - for (_iter240 = this->parameters.begin(); _iter240 != this->parameters.end(); ++_iter240) + std::map ::const_iterator _iter248; + for (_iter248 = this->parameters.begin(); _iter248 != this->parameters.end(); ++_iter248) { - xfer += oprot->writeString(_iter240->first); - xfer += oprot->writeString(_iter240->second); + xfer += oprot->writeString(_iter248->first); + xfer += oprot->writeString(_iter248->second); } xfer += oprot->writeMapEnd(); } @@ -5513,27 +5559,27 @@ void swap(Partition &a, Partition &b) { swap(a.__isset, b.__isset); } -Partition::Partition(const Partition& other241) { - values = other241.values; - dbName = other241.dbName; - tableName = other241.tableName; - createTime = other241.createTime; - lastAccessTime = other241.lastAccessTime; - sd = other241.sd; - parameters = other241.parameters; - privileges = other241.privileges; - __isset = other241.__isset; -} -Partition& Partition::operator=(const Partition& other242) { - values = other242.values; - dbName = other242.dbName; - tableName = other242.tableName; - createTime = other242.createTime; - lastAccessTime = other242.lastAccessTime; - sd = other242.sd; - parameters = other242.parameters; - privileges = other242.privileges; - __isset = other242.__isset; +Partition::Partition(const Partition& other249) { + values = other249.values; + dbName = other249.dbName; + tableName = other249.tableName; + createTime = other249.createTime; + lastAccessTime = other249.lastAccessTime; + sd = other249.sd; + parameters = other249.parameters; + privileges = other249.privileges; + __isset = other249.__isset; +} +Partition& Partition::operator=(const Partition& other250) { + values = other250.values; + dbName = other250.dbName; + tableName = other250.tableName; + createTime = other250.createTime; + lastAccessTime = other250.lastAccessTime; + sd = other250.sd; + parameters = other250.parameters; + privileges = other250.privileges; + __isset = other250.__isset; return *this; } void Partition::printTo(std::ostream& out) const { @@ -5605,14 +5651,14 @@ uint32_t PartitionWithoutSD::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size243; - ::apache::thrift::protocol::TType _etype246; - xfer += iprot->readListBegin(_etype246, _size243); - this->values.resize(_size243); - uint32_t _i247; - for (_i247 = 0; _i247 < _size243; ++_i247) + uint32_t _size251; + ::apache::thrift::protocol::TType _etype254; + xfer += iprot->readListBegin(_etype254, _size251); + this->values.resize(_size251); + uint32_t _i255; + for (_i255 = 0; _i255 < _size251; ++_i255) { - xfer += iprot->readString(this->values[_i247]); + xfer += iprot->readString(this->values[_i255]); } xfer += iprot->readListEnd(); } @@ -5649,17 +5695,17 @@ uint32_t PartitionWithoutSD::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size248; - ::apache::thrift::protocol::TType _ktype249; - ::apache::thrift::protocol::TType _vtype250; - xfer += iprot->readMapBegin(_ktype249, _vtype250, _size248); - uint32_t _i252; - for (_i252 = 0; _i252 < _size248; ++_i252) + uint32_t _size256; + ::apache::thrift::protocol::TType _ktype257; + ::apache::thrift::protocol::TType _vtype258; + xfer += iprot->readMapBegin(_ktype257, _vtype258, _size256); + uint32_t _i260; + for (_i260 = 0; _i260 < _size256; ++_i260) { - std::string _key253; - xfer += iprot->readString(_key253); - std::string& _val254 = this->parameters[_key253]; - xfer += iprot->readString(_val254); + std::string _key261; + xfer += iprot->readString(_key261); + std::string& _val262 = this->parameters[_key261]; + xfer += iprot->readString(_val262); } xfer += iprot->readMapEnd(); } @@ -5696,10 +5742,10 @@ uint32_t PartitionWithoutSD::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->values.size())); - std::vector ::const_iterator _iter255; - for (_iter255 = this->values.begin(); _iter255 != this->values.end(); ++_iter255) + std::vector ::const_iterator _iter263; + for (_iter263 = this->values.begin(); _iter263 != this->values.end(); ++_iter263) { - xfer += oprot->writeString((*_iter255)); + xfer += oprot->writeString((*_iter263)); } xfer += oprot->writeListEnd(); } @@ -5720,11 +5766,11 @@ uint32_t PartitionWithoutSD::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 5); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter256; - for (_iter256 = this->parameters.begin(); _iter256 != this->parameters.end(); ++_iter256) + std::map ::const_iterator _iter264; + for (_iter264 = this->parameters.begin(); _iter264 != this->parameters.end(); ++_iter264) { - xfer += oprot->writeString(_iter256->first); - xfer += oprot->writeString(_iter256->second); + xfer += oprot->writeString(_iter264->first); + xfer += oprot->writeString(_iter264->second); } xfer += oprot->writeMapEnd(); } @@ -5751,23 +5797,23 @@ void swap(PartitionWithoutSD &a, PartitionWithoutSD &b) { swap(a.__isset, b.__isset); } -PartitionWithoutSD::PartitionWithoutSD(const PartitionWithoutSD& other257) { - values = other257.values; - createTime = other257.createTime; - lastAccessTime = other257.lastAccessTime; - relativePath = other257.relativePath; - parameters = other257.parameters; - privileges = other257.privileges; - __isset = other257.__isset; -} -PartitionWithoutSD& PartitionWithoutSD::operator=(const PartitionWithoutSD& other258) { - values = other258.values; - createTime = other258.createTime; - lastAccessTime = other258.lastAccessTime; - relativePath = other258.relativePath; - parameters = other258.parameters; - privileges = other258.privileges; - __isset = other258.__isset; +PartitionWithoutSD::PartitionWithoutSD(const PartitionWithoutSD& other265) { + values = other265.values; + createTime = other265.createTime; + lastAccessTime = other265.lastAccessTime; + relativePath = other265.relativePath; + parameters = other265.parameters; + privileges = other265.privileges; + __isset = other265.__isset; +} +PartitionWithoutSD& PartitionWithoutSD::operator=(const PartitionWithoutSD& other266) { + values = other266.values; + createTime = other266.createTime; + lastAccessTime = other266.lastAccessTime; + relativePath = other266.relativePath; + parameters = other266.parameters; + privileges = other266.privileges; + __isset = other266.__isset; return *this; } void PartitionWithoutSD::printTo(std::ostream& out) const { @@ -5820,14 +5866,14 @@ uint32_t PartitionSpecWithSharedSD::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size259; - ::apache::thrift::protocol::TType _etype262; - xfer += iprot->readListBegin(_etype262, _size259); - this->partitions.resize(_size259); - uint32_t _i263; - for (_i263 = 0; _i263 < _size259; ++_i263) + uint32_t _size267; + ::apache::thrift::protocol::TType _etype270; + xfer += iprot->readListBegin(_etype270, _size267); + this->partitions.resize(_size267); + uint32_t _i271; + for (_i271 = 0; _i271 < _size267; ++_i271) { - xfer += this->partitions[_i263].read(iprot); + xfer += this->partitions[_i271].read(iprot); } xfer += iprot->readListEnd(); } @@ -5864,10 +5910,10 @@ uint32_t PartitionSpecWithSharedSD::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitions.size())); - std::vector ::const_iterator _iter264; - for (_iter264 = this->partitions.begin(); _iter264 != this->partitions.end(); ++_iter264) + std::vector ::const_iterator _iter272; + for (_iter272 = this->partitions.begin(); _iter272 != this->partitions.end(); ++_iter272) { - xfer += (*_iter264).write(oprot); + xfer += (*_iter272).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5889,15 +5935,15 @@ void swap(PartitionSpecWithSharedSD &a, PartitionSpecWithSharedSD &b) { swap(a.__isset, b.__isset); } -PartitionSpecWithSharedSD::PartitionSpecWithSharedSD(const PartitionSpecWithSharedSD& other265) { - partitions = other265.partitions; - sd = other265.sd; - __isset = other265.__isset; +PartitionSpecWithSharedSD::PartitionSpecWithSharedSD(const PartitionSpecWithSharedSD& other273) { + partitions = other273.partitions; + sd = other273.sd; + __isset = other273.__isset; } -PartitionSpecWithSharedSD& PartitionSpecWithSharedSD::operator=(const PartitionSpecWithSharedSD& other266) { - partitions = other266.partitions; - sd = other266.sd; - __isset = other266.__isset; +PartitionSpecWithSharedSD& PartitionSpecWithSharedSD::operator=(const PartitionSpecWithSharedSD& other274) { + partitions = other274.partitions; + sd = other274.sd; + __isset = other274.__isset; return *this; } void PartitionSpecWithSharedSD::printTo(std::ostream& out) const { @@ -5942,14 +5988,14 @@ uint32_t PartitionListComposingSpec::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size267; - ::apache::thrift::protocol::TType _etype270; - xfer += iprot->readListBegin(_etype270, _size267); - this->partitions.resize(_size267); - uint32_t _i271; - for (_i271 = 0; _i271 < _size267; ++_i271) + uint32_t _size275; + ::apache::thrift::protocol::TType _etype278; + xfer += iprot->readListBegin(_etype278, _size275); + this->partitions.resize(_size275); + uint32_t _i279; + for (_i279 = 0; _i279 < _size275; ++_i279) { - xfer += this->partitions[_i271].read(iprot); + xfer += this->partitions[_i279].read(iprot); } xfer += iprot->readListEnd(); } @@ -5978,10 +6024,10 @@ uint32_t PartitionListComposingSpec::write(::apache::thrift::protocol::TProtocol xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitions.size())); - std::vector ::const_iterator _iter272; - for (_iter272 = this->partitions.begin(); _iter272 != this->partitions.end(); ++_iter272) + std::vector ::const_iterator _iter280; + for (_iter280 = this->partitions.begin(); _iter280 != this->partitions.end(); ++_iter280) { - xfer += (*_iter272).write(oprot); + xfer += (*_iter280).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5998,13 +6044,13 @@ void swap(PartitionListComposingSpec &a, PartitionListComposingSpec &b) { swap(a.__isset, b.__isset); } -PartitionListComposingSpec::PartitionListComposingSpec(const PartitionListComposingSpec& other273) { - partitions = other273.partitions; - __isset = other273.__isset; +PartitionListComposingSpec::PartitionListComposingSpec(const PartitionListComposingSpec& other281) { + partitions = other281.partitions; + __isset = other281.__isset; } -PartitionListComposingSpec& PartitionListComposingSpec::operator=(const PartitionListComposingSpec& other274) { - partitions = other274.partitions; - __isset = other274.__isset; +PartitionListComposingSpec& PartitionListComposingSpec::operator=(const PartitionListComposingSpec& other282) { + partitions = other282.partitions; + __isset = other282.__isset; return *this; } void PartitionListComposingSpec::printTo(std::ostream& out) const { @@ -6156,21 +6202,21 @@ void swap(PartitionSpec &a, PartitionSpec &b) { swap(a.__isset, b.__isset); } -PartitionSpec::PartitionSpec(const PartitionSpec& other275) { - dbName = other275.dbName; - tableName = other275.tableName; - rootPath = other275.rootPath; - sharedSDPartitionSpec = other275.sharedSDPartitionSpec; - partitionList = other275.partitionList; - __isset = other275.__isset; -} -PartitionSpec& PartitionSpec::operator=(const PartitionSpec& other276) { - dbName = other276.dbName; - tableName = other276.tableName; - rootPath = other276.rootPath; - sharedSDPartitionSpec = other276.sharedSDPartitionSpec; - partitionList = other276.partitionList; - __isset = other276.__isset; +PartitionSpec::PartitionSpec(const PartitionSpec& other283) { + dbName = other283.dbName; + tableName = other283.tableName; + rootPath = other283.rootPath; + sharedSDPartitionSpec = other283.sharedSDPartitionSpec; + partitionList = other283.partitionList; + __isset = other283.__isset; +} +PartitionSpec& PartitionSpec::operator=(const PartitionSpec& other284) { + dbName = other284.dbName; + tableName = other284.tableName; + rootPath = other284.rootPath; + sharedSDPartitionSpec = other284.sharedSDPartitionSpec; + partitionList = other284.partitionList; + __isset = other284.__isset; return *this; } void PartitionSpec::printTo(std::ostream& out) const { @@ -6318,17 +6364,17 @@ uint32_t Index::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size277; - ::apache::thrift::protocol::TType _ktype278; - ::apache::thrift::protocol::TType _vtype279; - xfer += iprot->readMapBegin(_ktype278, _vtype279, _size277); - uint32_t _i281; - for (_i281 = 0; _i281 < _size277; ++_i281) + uint32_t _size285; + ::apache::thrift::protocol::TType _ktype286; + ::apache::thrift::protocol::TType _vtype287; + xfer += iprot->readMapBegin(_ktype286, _vtype287, _size285); + uint32_t _i289; + for (_i289 = 0; _i289 < _size285; ++_i289) { - std::string _key282; - xfer += iprot->readString(_key282); - std::string& _val283 = this->parameters[_key282]; - xfer += iprot->readString(_val283); + std::string _key290; + xfer += iprot->readString(_key290); + std::string& _val291 = this->parameters[_key290]; + xfer += iprot->readString(_val291); } xfer += iprot->readMapEnd(); } @@ -6397,11 +6443,11 @@ uint32_t Index::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 9); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter284; - for (_iter284 = this->parameters.begin(); _iter284 != this->parameters.end(); ++_iter284) + std::map ::const_iterator _iter292; + for (_iter292 = this->parameters.begin(); _iter292 != this->parameters.end(); ++_iter292) { - xfer += oprot->writeString(_iter284->first); - xfer += oprot->writeString(_iter284->second); + xfer += oprot->writeString(_iter292->first); + xfer += oprot->writeString(_iter292->second); } xfer += oprot->writeMapEnd(); } @@ -6431,31 +6477,31 @@ void swap(Index &a, Index &b) { swap(a.__isset, b.__isset); } -Index::Index(const Index& other285) { - indexName = other285.indexName; - indexHandlerClass = other285.indexHandlerClass; - dbName = other285.dbName; - origTableName = other285.origTableName; - createTime = other285.createTime; - lastAccessTime = other285.lastAccessTime; - indexTableName = other285.indexTableName; - sd = other285.sd; - parameters = other285.parameters; - deferredRebuild = other285.deferredRebuild; - __isset = other285.__isset; -} -Index& Index::operator=(const Index& other286) { - indexName = other286.indexName; - indexHandlerClass = other286.indexHandlerClass; - dbName = other286.dbName; - origTableName = other286.origTableName; - createTime = other286.createTime; - lastAccessTime = other286.lastAccessTime; - indexTableName = other286.indexTableName; - sd = other286.sd; - parameters = other286.parameters; - deferredRebuild = other286.deferredRebuild; - __isset = other286.__isset; +Index::Index(const Index& other293) { + indexName = other293.indexName; + indexHandlerClass = other293.indexHandlerClass; + dbName = other293.dbName; + origTableName = other293.origTableName; + createTime = other293.createTime; + lastAccessTime = other293.lastAccessTime; + indexTableName = other293.indexTableName; + sd = other293.sd; + parameters = other293.parameters; + deferredRebuild = other293.deferredRebuild; + __isset = other293.__isset; +} +Index& Index::operator=(const Index& other294) { + indexName = other294.indexName; + indexHandlerClass = other294.indexHandlerClass; + dbName = other294.dbName; + origTableName = other294.origTableName; + createTime = other294.createTime; + lastAccessTime = other294.lastAccessTime; + indexTableName = other294.indexTableName; + sd = other294.sd; + parameters = other294.parameters; + deferredRebuild = other294.deferredRebuild; + __isset = other294.__isset; return *this; } void Index::printTo(std::ostream& out) const { @@ -6606,19 +6652,19 @@ void swap(BooleanColumnStatsData &a, BooleanColumnStatsData &b) { swap(a.__isset, b.__isset); } -BooleanColumnStatsData::BooleanColumnStatsData(const BooleanColumnStatsData& other287) { - numTrues = other287.numTrues; - numFalses = other287.numFalses; - numNulls = other287.numNulls; - bitVectors = other287.bitVectors; - __isset = other287.__isset; +BooleanColumnStatsData::BooleanColumnStatsData(const BooleanColumnStatsData& other295) { + numTrues = other295.numTrues; + numFalses = other295.numFalses; + numNulls = other295.numNulls; + bitVectors = other295.bitVectors; + __isset = other295.__isset; } -BooleanColumnStatsData& BooleanColumnStatsData::operator=(const BooleanColumnStatsData& other288) { - numTrues = other288.numTrues; - numFalses = other288.numFalses; - numNulls = other288.numNulls; - bitVectors = other288.bitVectors; - __isset = other288.__isset; +BooleanColumnStatsData& BooleanColumnStatsData::operator=(const BooleanColumnStatsData& other296) { + numTrues = other296.numTrues; + numFalses = other296.numFalses; + numNulls = other296.numNulls; + bitVectors = other296.bitVectors; + __isset = other296.__isset; return *this; } void BooleanColumnStatsData::printTo(std::ostream& out) const { @@ -6781,21 +6827,21 @@ void swap(DoubleColumnStatsData &a, DoubleColumnStatsData &b) { swap(a.__isset, b.__isset); } -DoubleColumnStatsData::DoubleColumnStatsData(const DoubleColumnStatsData& other289) { - lowValue = other289.lowValue; - highValue = other289.highValue; - numNulls = other289.numNulls; - numDVs = other289.numDVs; - bitVectors = other289.bitVectors; - __isset = other289.__isset; -} -DoubleColumnStatsData& DoubleColumnStatsData::operator=(const DoubleColumnStatsData& other290) { - lowValue = other290.lowValue; - highValue = other290.highValue; - numNulls = other290.numNulls; - numDVs = other290.numDVs; - bitVectors = other290.bitVectors; - __isset = other290.__isset; +DoubleColumnStatsData::DoubleColumnStatsData(const DoubleColumnStatsData& other297) { + lowValue = other297.lowValue; + highValue = other297.highValue; + numNulls = other297.numNulls; + numDVs = other297.numDVs; + bitVectors = other297.bitVectors; + __isset = other297.__isset; +} +DoubleColumnStatsData& DoubleColumnStatsData::operator=(const DoubleColumnStatsData& other298) { + lowValue = other298.lowValue; + highValue = other298.highValue; + numNulls = other298.numNulls; + numDVs = other298.numDVs; + bitVectors = other298.bitVectors; + __isset = other298.__isset; return *this; } void DoubleColumnStatsData::printTo(std::ostream& out) const { @@ -6959,21 +7005,21 @@ void swap(LongColumnStatsData &a, LongColumnStatsData &b) { swap(a.__isset, b.__isset); } -LongColumnStatsData::LongColumnStatsData(const LongColumnStatsData& other291) { - lowValue = other291.lowValue; - highValue = other291.highValue; - numNulls = other291.numNulls; - numDVs = other291.numDVs; - bitVectors = other291.bitVectors; - __isset = other291.__isset; -} -LongColumnStatsData& LongColumnStatsData::operator=(const LongColumnStatsData& other292) { - lowValue = other292.lowValue; - highValue = other292.highValue; - numNulls = other292.numNulls; - numDVs = other292.numDVs; - bitVectors = other292.bitVectors; - __isset = other292.__isset; +LongColumnStatsData::LongColumnStatsData(const LongColumnStatsData& other299) { + lowValue = other299.lowValue; + highValue = other299.highValue; + numNulls = other299.numNulls; + numDVs = other299.numDVs; + bitVectors = other299.bitVectors; + __isset = other299.__isset; +} +LongColumnStatsData& LongColumnStatsData::operator=(const LongColumnStatsData& other300) { + lowValue = other300.lowValue; + highValue = other300.highValue; + numNulls = other300.numNulls; + numDVs = other300.numDVs; + bitVectors = other300.bitVectors; + __isset = other300.__isset; return *this; } void LongColumnStatsData::printTo(std::ostream& out) const { @@ -7139,21 +7185,21 @@ void swap(StringColumnStatsData &a, StringColumnStatsData &b) { swap(a.__isset, b.__isset); } -StringColumnStatsData::StringColumnStatsData(const StringColumnStatsData& other293) { - maxColLen = other293.maxColLen; - avgColLen = other293.avgColLen; - numNulls = other293.numNulls; - numDVs = other293.numDVs; - bitVectors = other293.bitVectors; - __isset = other293.__isset; -} -StringColumnStatsData& StringColumnStatsData::operator=(const StringColumnStatsData& other294) { - maxColLen = other294.maxColLen; - avgColLen = other294.avgColLen; - numNulls = other294.numNulls; - numDVs = other294.numDVs; - bitVectors = other294.bitVectors; - __isset = other294.__isset; +StringColumnStatsData::StringColumnStatsData(const StringColumnStatsData& other301) { + maxColLen = other301.maxColLen; + avgColLen = other301.avgColLen; + numNulls = other301.numNulls; + numDVs = other301.numDVs; + bitVectors = other301.bitVectors; + __isset = other301.__isset; +} +StringColumnStatsData& StringColumnStatsData::operator=(const StringColumnStatsData& other302) { + maxColLen = other302.maxColLen; + avgColLen = other302.avgColLen; + numNulls = other302.numNulls; + numDVs = other302.numDVs; + bitVectors = other302.bitVectors; + __isset = other302.__isset; return *this; } void StringColumnStatsData::printTo(std::ostream& out) const { @@ -7299,19 +7345,19 @@ void swap(BinaryColumnStatsData &a, BinaryColumnStatsData &b) { swap(a.__isset, b.__isset); } -BinaryColumnStatsData::BinaryColumnStatsData(const BinaryColumnStatsData& other295) { - maxColLen = other295.maxColLen; - avgColLen = other295.avgColLen; - numNulls = other295.numNulls; - bitVectors = other295.bitVectors; - __isset = other295.__isset; +BinaryColumnStatsData::BinaryColumnStatsData(const BinaryColumnStatsData& other303) { + maxColLen = other303.maxColLen; + avgColLen = other303.avgColLen; + numNulls = other303.numNulls; + bitVectors = other303.bitVectors; + __isset = other303.__isset; } -BinaryColumnStatsData& BinaryColumnStatsData::operator=(const BinaryColumnStatsData& other296) { - maxColLen = other296.maxColLen; - avgColLen = other296.avgColLen; - numNulls = other296.numNulls; - bitVectors = other296.bitVectors; - __isset = other296.__isset; +BinaryColumnStatsData& BinaryColumnStatsData::operator=(const BinaryColumnStatsData& other304) { + maxColLen = other304.maxColLen; + avgColLen = other304.avgColLen; + numNulls = other304.numNulls; + bitVectors = other304.bitVectors; + __isset = other304.__isset; return *this; } void BinaryColumnStatsData::printTo(std::ostream& out) const { @@ -7416,13 +7462,13 @@ void swap(Decimal &a, Decimal &b) { swap(a.scale, b.scale); } -Decimal::Decimal(const Decimal& other297) { - unscaled = other297.unscaled; - scale = other297.scale; +Decimal::Decimal(const Decimal& other305) { + unscaled = other305.unscaled; + scale = other305.scale; } -Decimal& Decimal::operator=(const Decimal& other298) { - unscaled = other298.unscaled; - scale = other298.scale; +Decimal& Decimal::operator=(const Decimal& other306) { + unscaled = other306.unscaled; + scale = other306.scale; return *this; } void Decimal::printTo(std::ostream& out) const { @@ -7583,21 +7629,21 @@ void swap(DecimalColumnStatsData &a, DecimalColumnStatsData &b) { swap(a.__isset, b.__isset); } -DecimalColumnStatsData::DecimalColumnStatsData(const DecimalColumnStatsData& other299) { - lowValue = other299.lowValue; - highValue = other299.highValue; - numNulls = other299.numNulls; - numDVs = other299.numDVs; - bitVectors = other299.bitVectors; - __isset = other299.__isset; -} -DecimalColumnStatsData& DecimalColumnStatsData::operator=(const DecimalColumnStatsData& other300) { - lowValue = other300.lowValue; - highValue = other300.highValue; - numNulls = other300.numNulls; - numDVs = other300.numDVs; - bitVectors = other300.bitVectors; - __isset = other300.__isset; +DecimalColumnStatsData::DecimalColumnStatsData(const DecimalColumnStatsData& other307) { + lowValue = other307.lowValue; + highValue = other307.highValue; + numNulls = other307.numNulls; + numDVs = other307.numDVs; + bitVectors = other307.bitVectors; + __isset = other307.__isset; +} +DecimalColumnStatsData& DecimalColumnStatsData::operator=(const DecimalColumnStatsData& other308) { + lowValue = other308.lowValue; + highValue = other308.highValue; + numNulls = other308.numNulls; + numDVs = other308.numDVs; + bitVectors = other308.bitVectors; + __isset = other308.__isset; return *this; } void DecimalColumnStatsData::printTo(std::ostream& out) const { @@ -7683,11 +7729,11 @@ void swap(Date &a, Date &b) { swap(a.daysSinceEpoch, b.daysSinceEpoch); } -Date::Date(const Date& other301) { - daysSinceEpoch = other301.daysSinceEpoch; +Date::Date(const Date& other309) { + daysSinceEpoch = other309.daysSinceEpoch; } -Date& Date::operator=(const Date& other302) { - daysSinceEpoch = other302.daysSinceEpoch; +Date& Date::operator=(const Date& other310) { + daysSinceEpoch = other310.daysSinceEpoch; return *this; } void Date::printTo(std::ostream& out) const { @@ -7847,21 +7893,21 @@ void swap(DateColumnStatsData &a, DateColumnStatsData &b) { swap(a.__isset, b.__isset); } -DateColumnStatsData::DateColumnStatsData(const DateColumnStatsData& other303) { - lowValue = other303.lowValue; - highValue = other303.highValue; - numNulls = other303.numNulls; - numDVs = other303.numDVs; - bitVectors = other303.bitVectors; - __isset = other303.__isset; -} -DateColumnStatsData& DateColumnStatsData::operator=(const DateColumnStatsData& other304) { - lowValue = other304.lowValue; - highValue = other304.highValue; - numNulls = other304.numNulls; - numDVs = other304.numDVs; - bitVectors = other304.bitVectors; - __isset = other304.__isset; +DateColumnStatsData::DateColumnStatsData(const DateColumnStatsData& other311) { + lowValue = other311.lowValue; + highValue = other311.highValue; + numNulls = other311.numNulls; + numDVs = other311.numDVs; + bitVectors = other311.bitVectors; + __isset = other311.__isset; +} +DateColumnStatsData& DateColumnStatsData::operator=(const DateColumnStatsData& other312) { + lowValue = other312.lowValue; + highValue = other312.highValue; + numNulls = other312.numNulls; + numDVs = other312.numDVs; + bitVectors = other312.bitVectors; + __isset = other312.__isset; return *this; } void DateColumnStatsData::printTo(std::ostream& out) const { @@ -8047,25 +8093,25 @@ void swap(ColumnStatisticsData &a, ColumnStatisticsData &b) { swap(a.__isset, b.__isset); } -ColumnStatisticsData::ColumnStatisticsData(const ColumnStatisticsData& other305) { - booleanStats = other305.booleanStats; - longStats = other305.longStats; - doubleStats = other305.doubleStats; - stringStats = other305.stringStats; - binaryStats = other305.binaryStats; - decimalStats = other305.decimalStats; - dateStats = other305.dateStats; - __isset = other305.__isset; -} -ColumnStatisticsData& ColumnStatisticsData::operator=(const ColumnStatisticsData& other306) { - booleanStats = other306.booleanStats; - longStats = other306.longStats; - doubleStats = other306.doubleStats; - stringStats = other306.stringStats; - binaryStats = other306.binaryStats; - decimalStats = other306.decimalStats; - dateStats = other306.dateStats; - __isset = other306.__isset; +ColumnStatisticsData::ColumnStatisticsData(const ColumnStatisticsData& other313) { + booleanStats = other313.booleanStats; + longStats = other313.longStats; + doubleStats = other313.doubleStats; + stringStats = other313.stringStats; + binaryStats = other313.binaryStats; + decimalStats = other313.decimalStats; + dateStats = other313.dateStats; + __isset = other313.__isset; +} +ColumnStatisticsData& ColumnStatisticsData::operator=(const ColumnStatisticsData& other314) { + booleanStats = other314.booleanStats; + longStats = other314.longStats; + doubleStats = other314.doubleStats; + stringStats = other314.stringStats; + binaryStats = other314.binaryStats; + decimalStats = other314.decimalStats; + dateStats = other314.dateStats; + __isset = other314.__isset; return *this; } void ColumnStatisticsData::printTo(std::ostream& out) const { @@ -8193,15 +8239,15 @@ void swap(ColumnStatisticsObj &a, ColumnStatisticsObj &b) { swap(a.statsData, b.statsData); } -ColumnStatisticsObj::ColumnStatisticsObj(const ColumnStatisticsObj& other307) { - colName = other307.colName; - colType = other307.colType; - statsData = other307.statsData; +ColumnStatisticsObj::ColumnStatisticsObj(const ColumnStatisticsObj& other315) { + colName = other315.colName; + colType = other315.colType; + statsData = other315.statsData; } -ColumnStatisticsObj& ColumnStatisticsObj::operator=(const ColumnStatisticsObj& other308) { - colName = other308.colName; - colType = other308.colType; - statsData = other308.statsData; +ColumnStatisticsObj& ColumnStatisticsObj::operator=(const ColumnStatisticsObj& other316) { + colName = other316.colName; + colType = other316.colType; + statsData = other316.statsData; return *this; } void ColumnStatisticsObj::printTo(std::ostream& out) const { @@ -8364,21 +8410,21 @@ void swap(ColumnStatisticsDesc &a, ColumnStatisticsDesc &b) { swap(a.__isset, b.__isset); } -ColumnStatisticsDesc::ColumnStatisticsDesc(const ColumnStatisticsDesc& other309) { - isTblLevel = other309.isTblLevel; - dbName = other309.dbName; - tableName = other309.tableName; - partName = other309.partName; - lastAnalyzed = other309.lastAnalyzed; - __isset = other309.__isset; -} -ColumnStatisticsDesc& ColumnStatisticsDesc::operator=(const ColumnStatisticsDesc& other310) { - isTblLevel = other310.isTblLevel; - dbName = other310.dbName; - tableName = other310.tableName; - partName = other310.partName; - lastAnalyzed = other310.lastAnalyzed; - __isset = other310.__isset; +ColumnStatisticsDesc::ColumnStatisticsDesc(const ColumnStatisticsDesc& other317) { + isTblLevel = other317.isTblLevel; + dbName = other317.dbName; + tableName = other317.tableName; + partName = other317.partName; + lastAnalyzed = other317.lastAnalyzed; + __isset = other317.__isset; +} +ColumnStatisticsDesc& ColumnStatisticsDesc::operator=(const ColumnStatisticsDesc& other318) { + isTblLevel = other318.isTblLevel; + dbName = other318.dbName; + tableName = other318.tableName; + partName = other318.partName; + lastAnalyzed = other318.lastAnalyzed; + __isset = other318.__isset; return *this; } void ColumnStatisticsDesc::printTo(std::ostream& out) const { @@ -8440,14 +8486,14 @@ uint32_t ColumnStatistics::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->statsObj.clear(); - uint32_t _size311; - ::apache::thrift::protocol::TType _etype314; - xfer += iprot->readListBegin(_etype314, _size311); - this->statsObj.resize(_size311); - uint32_t _i315; - for (_i315 = 0; _i315 < _size311; ++_i315) + uint32_t _size319; + ::apache::thrift::protocol::TType _etype322; + xfer += iprot->readListBegin(_etype322, _size319); + this->statsObj.resize(_size319); + uint32_t _i323; + for (_i323 = 0; _i323 < _size319; ++_i323) { - xfer += this->statsObj[_i315].read(iprot); + xfer += this->statsObj[_i323].read(iprot); } xfer += iprot->readListEnd(); } @@ -8484,10 +8530,10 @@ uint32_t ColumnStatistics::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("statsObj", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->statsObj.size())); - std::vector ::const_iterator _iter316; - for (_iter316 = this->statsObj.begin(); _iter316 != this->statsObj.end(); ++_iter316) + std::vector ::const_iterator _iter324; + for (_iter324 = this->statsObj.begin(); _iter324 != this->statsObj.end(); ++_iter324) { - xfer += (*_iter316).write(oprot); + xfer += (*_iter324).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8504,13 +8550,13 @@ void swap(ColumnStatistics &a, ColumnStatistics &b) { swap(a.statsObj, b.statsObj); } -ColumnStatistics::ColumnStatistics(const ColumnStatistics& other317) { - statsDesc = other317.statsDesc; - statsObj = other317.statsObj; +ColumnStatistics::ColumnStatistics(const ColumnStatistics& other325) { + statsDesc = other325.statsDesc; + statsObj = other325.statsObj; } -ColumnStatistics& ColumnStatistics::operator=(const ColumnStatistics& other318) { - statsDesc = other318.statsDesc; - statsObj = other318.statsObj; +ColumnStatistics& ColumnStatistics::operator=(const ColumnStatistics& other326) { + statsDesc = other326.statsDesc; + statsObj = other326.statsObj; return *this; } void ColumnStatistics::printTo(std::ostream& out) const { @@ -8561,14 +8607,14 @@ uint32_t AggrStats::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colStats.clear(); - uint32_t _size319; - ::apache::thrift::protocol::TType _etype322; - xfer += iprot->readListBegin(_etype322, _size319); - this->colStats.resize(_size319); - uint32_t _i323; - for (_i323 = 0; _i323 < _size319; ++_i323) + uint32_t _size327; + ::apache::thrift::protocol::TType _etype330; + xfer += iprot->readListBegin(_etype330, _size327); + this->colStats.resize(_size327); + uint32_t _i331; + for (_i331 = 0; _i331 < _size327; ++_i331) { - xfer += this->colStats[_i323].read(iprot); + xfer += this->colStats[_i331].read(iprot); } xfer += iprot->readListEnd(); } @@ -8609,10 +8655,10 @@ uint32_t AggrStats::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("colStats", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->colStats.size())); - std::vector ::const_iterator _iter324; - for (_iter324 = this->colStats.begin(); _iter324 != this->colStats.end(); ++_iter324) + std::vector ::const_iterator _iter332; + for (_iter332 = this->colStats.begin(); _iter332 != this->colStats.end(); ++_iter332) { - xfer += (*_iter324).write(oprot); + xfer += (*_iter332).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8633,13 +8679,13 @@ void swap(AggrStats &a, AggrStats &b) { swap(a.partsFound, b.partsFound); } -AggrStats::AggrStats(const AggrStats& other325) { - colStats = other325.colStats; - partsFound = other325.partsFound; +AggrStats::AggrStats(const AggrStats& other333) { + colStats = other333.colStats; + partsFound = other333.partsFound; } -AggrStats& AggrStats::operator=(const AggrStats& other326) { - colStats = other326.colStats; - partsFound = other326.partsFound; +AggrStats& AggrStats::operator=(const AggrStats& other334) { + colStats = other334.colStats; + partsFound = other334.partsFound; return *this; } void AggrStats::printTo(std::ostream& out) const { @@ -8690,14 +8736,14 @@ uint32_t SetPartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colStats.clear(); - uint32_t _size327; - ::apache::thrift::protocol::TType _etype330; - xfer += iprot->readListBegin(_etype330, _size327); - this->colStats.resize(_size327); - uint32_t _i331; - for (_i331 = 0; _i331 < _size327; ++_i331) + uint32_t _size335; + ::apache::thrift::protocol::TType _etype338; + xfer += iprot->readListBegin(_etype338, _size335); + this->colStats.resize(_size335); + uint32_t _i339; + for (_i339 = 0; _i339 < _size335; ++_i339) { - xfer += this->colStats[_i331].read(iprot); + xfer += this->colStats[_i339].read(iprot); } xfer += iprot->readListEnd(); } @@ -8736,10 +8782,10 @@ uint32_t SetPartitionsStatsRequest::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("colStats", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->colStats.size())); - std::vector ::const_iterator _iter332; - for (_iter332 = this->colStats.begin(); _iter332 != this->colStats.end(); ++_iter332) + std::vector ::const_iterator _iter340; + for (_iter340 = this->colStats.begin(); _iter340 != this->colStats.end(); ++_iter340) { - xfer += (*_iter332).write(oprot); + xfer += (*_iter340).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8762,15 +8808,15 @@ void swap(SetPartitionsStatsRequest &a, SetPartitionsStatsRequest &b) { swap(a.__isset, b.__isset); } -SetPartitionsStatsRequest::SetPartitionsStatsRequest(const SetPartitionsStatsRequest& other333) { - colStats = other333.colStats; - needMerge = other333.needMerge; - __isset = other333.__isset; +SetPartitionsStatsRequest::SetPartitionsStatsRequest(const SetPartitionsStatsRequest& other341) { + colStats = other341.colStats; + needMerge = other341.needMerge; + __isset = other341.__isset; } -SetPartitionsStatsRequest& SetPartitionsStatsRequest::operator=(const SetPartitionsStatsRequest& other334) { - colStats = other334.colStats; - needMerge = other334.needMerge; - __isset = other334.__isset; +SetPartitionsStatsRequest& SetPartitionsStatsRequest::operator=(const SetPartitionsStatsRequest& other342) { + colStats = other342.colStats; + needMerge = other342.needMerge; + __isset = other342.__isset; return *this; } void SetPartitionsStatsRequest::printTo(std::ostream& out) const { @@ -8819,14 +8865,14 @@ uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fieldSchemas.clear(); - uint32_t _size335; - ::apache::thrift::protocol::TType _etype338; - xfer += iprot->readListBegin(_etype338, _size335); - this->fieldSchemas.resize(_size335); - uint32_t _i339; - for (_i339 = 0; _i339 < _size335; ++_i339) + uint32_t _size343; + ::apache::thrift::protocol::TType _etype346; + xfer += iprot->readListBegin(_etype346, _size343); + this->fieldSchemas.resize(_size343); + uint32_t _i347; + for (_i347 = 0; _i347 < _size343; ++_i347) { - xfer += this->fieldSchemas[_i339].read(iprot); + xfer += this->fieldSchemas[_i347].read(iprot); } xfer += iprot->readListEnd(); } @@ -8839,17 +8885,17 @@ uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->properties.clear(); - uint32_t _size340; - ::apache::thrift::protocol::TType _ktype341; - ::apache::thrift::protocol::TType _vtype342; - xfer += iprot->readMapBegin(_ktype341, _vtype342, _size340); - uint32_t _i344; - for (_i344 = 0; _i344 < _size340; ++_i344) + uint32_t _size348; + ::apache::thrift::protocol::TType _ktype349; + ::apache::thrift::protocol::TType _vtype350; + xfer += iprot->readMapBegin(_ktype349, _vtype350, _size348); + uint32_t _i352; + for (_i352 = 0; _i352 < _size348; ++_i352) { - std::string _key345; - xfer += iprot->readString(_key345); - std::string& _val346 = this->properties[_key345]; - xfer += iprot->readString(_val346); + std::string _key353; + xfer += iprot->readString(_key353); + std::string& _val354 = this->properties[_key353]; + xfer += iprot->readString(_val354); } xfer += iprot->readMapEnd(); } @@ -8878,10 +8924,10 @@ uint32_t Schema::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("fieldSchemas", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->fieldSchemas.size())); - std::vector ::const_iterator _iter347; - for (_iter347 = this->fieldSchemas.begin(); _iter347 != this->fieldSchemas.end(); ++_iter347) + std::vector ::const_iterator _iter355; + for (_iter355 = this->fieldSchemas.begin(); _iter355 != this->fieldSchemas.end(); ++_iter355) { - xfer += (*_iter347).write(oprot); + xfer += (*_iter355).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8890,11 +8936,11 @@ uint32_t Schema::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("properties", ::apache::thrift::protocol::T_MAP, 2); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->properties.size())); - std::map ::const_iterator _iter348; - for (_iter348 = this->properties.begin(); _iter348 != this->properties.end(); ++_iter348) + std::map ::const_iterator _iter356; + for (_iter356 = this->properties.begin(); _iter356 != this->properties.end(); ++_iter356) { - xfer += oprot->writeString(_iter348->first); - xfer += oprot->writeString(_iter348->second); + xfer += oprot->writeString(_iter356->first); + xfer += oprot->writeString(_iter356->second); } xfer += oprot->writeMapEnd(); } @@ -8912,15 +8958,15 @@ void swap(Schema &a, Schema &b) { swap(a.__isset, b.__isset); } -Schema::Schema(const Schema& other349) { - fieldSchemas = other349.fieldSchemas; - properties = other349.properties; - __isset = other349.__isset; +Schema::Schema(const Schema& other357) { + fieldSchemas = other357.fieldSchemas; + properties = other357.properties; + __isset = other357.__isset; } -Schema& Schema::operator=(const Schema& other350) { - fieldSchemas = other350.fieldSchemas; - properties = other350.properties; - __isset = other350.__isset; +Schema& Schema::operator=(const Schema& other358) { + fieldSchemas = other358.fieldSchemas; + properties = other358.properties; + __isset = other358.__isset; return *this; } void Schema::printTo(std::ostream& out) const { @@ -8965,17 +9011,17 @@ uint32_t EnvironmentContext::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_MAP) { { this->properties.clear(); - uint32_t _size351; - ::apache::thrift::protocol::TType _ktype352; - ::apache::thrift::protocol::TType _vtype353; - xfer += iprot->readMapBegin(_ktype352, _vtype353, _size351); - uint32_t _i355; - for (_i355 = 0; _i355 < _size351; ++_i355) + uint32_t _size359; + ::apache::thrift::protocol::TType _ktype360; + ::apache::thrift::protocol::TType _vtype361; + xfer += iprot->readMapBegin(_ktype360, _vtype361, _size359); + uint32_t _i363; + for (_i363 = 0; _i363 < _size359; ++_i363) { - std::string _key356; - xfer += iprot->readString(_key356); - std::string& _val357 = this->properties[_key356]; - xfer += iprot->readString(_val357); + std::string _key364; + xfer += iprot->readString(_key364); + std::string& _val365 = this->properties[_key364]; + xfer += iprot->readString(_val365); } xfer += iprot->readMapEnd(); } @@ -9004,11 +9050,11 @@ uint32_t EnvironmentContext::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("properties", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->properties.size())); - std::map ::const_iterator _iter358; - for (_iter358 = this->properties.begin(); _iter358 != this->properties.end(); ++_iter358) + std::map ::const_iterator _iter366; + for (_iter366 = this->properties.begin(); _iter366 != this->properties.end(); ++_iter366) { - xfer += oprot->writeString(_iter358->first); - xfer += oprot->writeString(_iter358->second); + xfer += oprot->writeString(_iter366->first); + xfer += oprot->writeString(_iter366->second); } xfer += oprot->writeMapEnd(); } @@ -9025,13 +9071,13 @@ void swap(EnvironmentContext &a, EnvironmentContext &b) { swap(a.__isset, b.__isset); } -EnvironmentContext::EnvironmentContext(const EnvironmentContext& other359) { - properties = other359.properties; - __isset = other359.__isset; +EnvironmentContext::EnvironmentContext(const EnvironmentContext& other367) { + properties = other367.properties; + __isset = other367.__isset; } -EnvironmentContext& EnvironmentContext::operator=(const EnvironmentContext& other360) { - properties = other360.properties; - __isset = other360.__isset; +EnvironmentContext& EnvironmentContext::operator=(const EnvironmentContext& other368) { + properties = other368.properties; + __isset = other368.__isset; return *this; } void EnvironmentContext::printTo(std::ostream& out) const { @@ -9133,13 +9179,13 @@ void swap(PrimaryKeysRequest &a, PrimaryKeysRequest &b) { swap(a.tbl_name, b.tbl_name); } -PrimaryKeysRequest::PrimaryKeysRequest(const PrimaryKeysRequest& other361) { - db_name = other361.db_name; - tbl_name = other361.tbl_name; +PrimaryKeysRequest::PrimaryKeysRequest(const PrimaryKeysRequest& other369) { + db_name = other369.db_name; + tbl_name = other369.tbl_name; } -PrimaryKeysRequest& PrimaryKeysRequest::operator=(const PrimaryKeysRequest& other362) { - db_name = other362.db_name; - tbl_name = other362.tbl_name; +PrimaryKeysRequest& PrimaryKeysRequest::operator=(const PrimaryKeysRequest& other370) { + db_name = other370.db_name; + tbl_name = other370.tbl_name; return *this; } void PrimaryKeysRequest::printTo(std::ostream& out) const { @@ -9185,14 +9231,14 @@ uint32_t PrimaryKeysResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->primaryKeys.clear(); - uint32_t _size363; - ::apache::thrift::protocol::TType _etype366; - xfer += iprot->readListBegin(_etype366, _size363); - this->primaryKeys.resize(_size363); - uint32_t _i367; - for (_i367 = 0; _i367 < _size363; ++_i367) + uint32_t _size371; + ::apache::thrift::protocol::TType _etype374; + xfer += iprot->readListBegin(_etype374, _size371); + this->primaryKeys.resize(_size371); + uint32_t _i375; + for (_i375 = 0; _i375 < _size371; ++_i375) { - xfer += this->primaryKeys[_i367].read(iprot); + xfer += this->primaryKeys[_i375].read(iprot); } xfer += iprot->readListEnd(); } @@ -9223,10 +9269,10 @@ uint32_t PrimaryKeysResponse::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldBegin("primaryKeys", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->primaryKeys.size())); - std::vector ::const_iterator _iter368; - for (_iter368 = this->primaryKeys.begin(); _iter368 != this->primaryKeys.end(); ++_iter368) + std::vector ::const_iterator _iter376; + for (_iter376 = this->primaryKeys.begin(); _iter376 != this->primaryKeys.end(); ++_iter376) { - xfer += (*_iter368).write(oprot); + xfer += (*_iter376).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9242,11 +9288,11 @@ void swap(PrimaryKeysResponse &a, PrimaryKeysResponse &b) { swap(a.primaryKeys, b.primaryKeys); } -PrimaryKeysResponse::PrimaryKeysResponse(const PrimaryKeysResponse& other369) { - primaryKeys = other369.primaryKeys; +PrimaryKeysResponse::PrimaryKeysResponse(const PrimaryKeysResponse& other377) { + primaryKeys = other377.primaryKeys; } -PrimaryKeysResponse& PrimaryKeysResponse::operator=(const PrimaryKeysResponse& other370) { - primaryKeys = other370.primaryKeys; +PrimaryKeysResponse& PrimaryKeysResponse::operator=(const PrimaryKeysResponse& other378) { + primaryKeys = other378.primaryKeys; return *this; } void PrimaryKeysResponse::printTo(std::ostream& out) const { @@ -9377,19 +9423,19 @@ void swap(ForeignKeysRequest &a, ForeignKeysRequest &b) { swap(a.__isset, b.__isset); } -ForeignKeysRequest::ForeignKeysRequest(const ForeignKeysRequest& other371) { - parent_db_name = other371.parent_db_name; - parent_tbl_name = other371.parent_tbl_name; - foreign_db_name = other371.foreign_db_name; - foreign_tbl_name = other371.foreign_tbl_name; - __isset = other371.__isset; +ForeignKeysRequest::ForeignKeysRequest(const ForeignKeysRequest& other379) { + parent_db_name = other379.parent_db_name; + parent_tbl_name = other379.parent_tbl_name; + foreign_db_name = other379.foreign_db_name; + foreign_tbl_name = other379.foreign_tbl_name; + __isset = other379.__isset; } -ForeignKeysRequest& ForeignKeysRequest::operator=(const ForeignKeysRequest& other372) { - parent_db_name = other372.parent_db_name; - parent_tbl_name = other372.parent_tbl_name; - foreign_db_name = other372.foreign_db_name; - foreign_tbl_name = other372.foreign_tbl_name; - __isset = other372.__isset; +ForeignKeysRequest& ForeignKeysRequest::operator=(const ForeignKeysRequest& other380) { + parent_db_name = other380.parent_db_name; + parent_tbl_name = other380.parent_tbl_name; + foreign_db_name = other380.foreign_db_name; + foreign_tbl_name = other380.foreign_tbl_name; + __isset = other380.__isset; return *this; } void ForeignKeysRequest::printTo(std::ostream& out) const { @@ -9437,14 +9483,14 @@ uint32_t ForeignKeysResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->foreignKeys.clear(); - uint32_t _size373; - ::apache::thrift::protocol::TType _etype376; - xfer += iprot->readListBegin(_etype376, _size373); - this->foreignKeys.resize(_size373); - uint32_t _i377; - for (_i377 = 0; _i377 < _size373; ++_i377) + uint32_t _size381; + ::apache::thrift::protocol::TType _etype384; + xfer += iprot->readListBegin(_etype384, _size381); + this->foreignKeys.resize(_size381); + uint32_t _i385; + for (_i385 = 0; _i385 < _size381; ++_i385) { - xfer += this->foreignKeys[_i377].read(iprot); + xfer += this->foreignKeys[_i385].read(iprot); } xfer += iprot->readListEnd(); } @@ -9475,10 +9521,10 @@ uint32_t ForeignKeysResponse::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldBegin("foreignKeys", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->foreignKeys.size())); - std::vector ::const_iterator _iter378; - for (_iter378 = this->foreignKeys.begin(); _iter378 != this->foreignKeys.end(); ++_iter378) + std::vector ::const_iterator _iter386; + for (_iter386 = this->foreignKeys.begin(); _iter386 != this->foreignKeys.end(); ++_iter386) { - xfer += (*_iter378).write(oprot); + xfer += (*_iter386).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9494,11 +9540,11 @@ void swap(ForeignKeysResponse &a, ForeignKeysResponse &b) { swap(a.foreignKeys, b.foreignKeys); } -ForeignKeysResponse::ForeignKeysResponse(const ForeignKeysResponse& other379) { - foreignKeys = other379.foreignKeys; +ForeignKeysResponse::ForeignKeysResponse(const ForeignKeysResponse& other387) { + foreignKeys = other387.foreignKeys; } -ForeignKeysResponse& ForeignKeysResponse::operator=(const ForeignKeysResponse& other380) { - foreignKeys = other380.foreignKeys; +ForeignKeysResponse& ForeignKeysResponse::operator=(const ForeignKeysResponse& other388) { + foreignKeys = other388.foreignKeys; return *this; } void ForeignKeysResponse::printTo(std::ostream& out) const { @@ -9600,13 +9646,13 @@ void swap(UniqueConstraintsRequest &a, UniqueConstraintsRequest &b) { swap(a.tbl_name, b.tbl_name); } -UniqueConstraintsRequest::UniqueConstraintsRequest(const UniqueConstraintsRequest& other381) { - db_name = other381.db_name; - tbl_name = other381.tbl_name; +UniqueConstraintsRequest::UniqueConstraintsRequest(const UniqueConstraintsRequest& other389) { + db_name = other389.db_name; + tbl_name = other389.tbl_name; } -UniqueConstraintsRequest& UniqueConstraintsRequest::operator=(const UniqueConstraintsRequest& other382) { - db_name = other382.db_name; - tbl_name = other382.tbl_name; +UniqueConstraintsRequest& UniqueConstraintsRequest::operator=(const UniqueConstraintsRequest& other390) { + db_name = other390.db_name; + tbl_name = other390.tbl_name; return *this; } void UniqueConstraintsRequest::printTo(std::ostream& out) const { @@ -9652,14 +9698,14 @@ uint32_t UniqueConstraintsResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->uniqueConstraints.clear(); - uint32_t _size383; - ::apache::thrift::protocol::TType _etype386; - xfer += iprot->readListBegin(_etype386, _size383); - this->uniqueConstraints.resize(_size383); - uint32_t _i387; - for (_i387 = 0; _i387 < _size383; ++_i387) + uint32_t _size391; + ::apache::thrift::protocol::TType _etype394; + xfer += iprot->readListBegin(_etype394, _size391); + this->uniqueConstraints.resize(_size391); + uint32_t _i395; + for (_i395 = 0; _i395 < _size391; ++_i395) { - xfer += this->uniqueConstraints[_i387].read(iprot); + xfer += this->uniqueConstraints[_i395].read(iprot); } xfer += iprot->readListEnd(); } @@ -9690,10 +9736,10 @@ uint32_t UniqueConstraintsResponse::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("uniqueConstraints", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->uniqueConstraints.size())); - std::vector ::const_iterator _iter388; - for (_iter388 = this->uniqueConstraints.begin(); _iter388 != this->uniqueConstraints.end(); ++_iter388) + std::vector ::const_iterator _iter396; + for (_iter396 = this->uniqueConstraints.begin(); _iter396 != this->uniqueConstraints.end(); ++_iter396) { - xfer += (*_iter388).write(oprot); + xfer += (*_iter396).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9709,11 +9755,11 @@ void swap(UniqueConstraintsResponse &a, UniqueConstraintsResponse &b) { swap(a.uniqueConstraints, b.uniqueConstraints); } -UniqueConstraintsResponse::UniqueConstraintsResponse(const UniqueConstraintsResponse& other389) { - uniqueConstraints = other389.uniqueConstraints; +UniqueConstraintsResponse::UniqueConstraintsResponse(const UniqueConstraintsResponse& other397) { + uniqueConstraints = other397.uniqueConstraints; } -UniqueConstraintsResponse& UniqueConstraintsResponse::operator=(const UniqueConstraintsResponse& other390) { - uniqueConstraints = other390.uniqueConstraints; +UniqueConstraintsResponse& UniqueConstraintsResponse::operator=(const UniqueConstraintsResponse& other398) { + uniqueConstraints = other398.uniqueConstraints; return *this; } void UniqueConstraintsResponse::printTo(std::ostream& out) const { @@ -9815,13 +9861,13 @@ void swap(NotNullConstraintsRequest &a, NotNullConstraintsRequest &b) { swap(a.tbl_name, b.tbl_name); } -NotNullConstraintsRequest::NotNullConstraintsRequest(const NotNullConstraintsRequest& other391) { - db_name = other391.db_name; - tbl_name = other391.tbl_name; +NotNullConstraintsRequest::NotNullConstraintsRequest(const NotNullConstraintsRequest& other399) { + db_name = other399.db_name; + tbl_name = other399.tbl_name; } -NotNullConstraintsRequest& NotNullConstraintsRequest::operator=(const NotNullConstraintsRequest& other392) { - db_name = other392.db_name; - tbl_name = other392.tbl_name; +NotNullConstraintsRequest& NotNullConstraintsRequest::operator=(const NotNullConstraintsRequest& other400) { + db_name = other400.db_name; + tbl_name = other400.tbl_name; return *this; } void NotNullConstraintsRequest::printTo(std::ostream& out) const { @@ -9867,14 +9913,14 @@ uint32_t NotNullConstraintsResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->notNullConstraints.clear(); - uint32_t _size393; - ::apache::thrift::protocol::TType _etype396; - xfer += iprot->readListBegin(_etype396, _size393); - this->notNullConstraints.resize(_size393); - uint32_t _i397; - for (_i397 = 0; _i397 < _size393; ++_i397) + uint32_t _size401; + ::apache::thrift::protocol::TType _etype404; + xfer += iprot->readListBegin(_etype404, _size401); + this->notNullConstraints.resize(_size401); + uint32_t _i405; + for (_i405 = 0; _i405 < _size401; ++_i405) { - xfer += this->notNullConstraints[_i397].read(iprot); + xfer += this->notNullConstraints[_i405].read(iprot); } xfer += iprot->readListEnd(); } @@ -9905,10 +9951,10 @@ uint32_t NotNullConstraintsResponse::write(::apache::thrift::protocol::TProtocol xfer += oprot->writeFieldBegin("notNullConstraints", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->notNullConstraints.size())); - std::vector ::const_iterator _iter398; - for (_iter398 = this->notNullConstraints.begin(); _iter398 != this->notNullConstraints.end(); ++_iter398) + std::vector ::const_iterator _iter406; + for (_iter406 = this->notNullConstraints.begin(); _iter406 != this->notNullConstraints.end(); ++_iter406) { - xfer += (*_iter398).write(oprot); + xfer += (*_iter406).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9924,11 +9970,11 @@ void swap(NotNullConstraintsResponse &a, NotNullConstraintsResponse &b) { swap(a.notNullConstraints, b.notNullConstraints); } -NotNullConstraintsResponse::NotNullConstraintsResponse(const NotNullConstraintsResponse& other399) { - notNullConstraints = other399.notNullConstraints; +NotNullConstraintsResponse::NotNullConstraintsResponse(const NotNullConstraintsResponse& other407) { + notNullConstraints = other407.notNullConstraints; } -NotNullConstraintsResponse& NotNullConstraintsResponse::operator=(const NotNullConstraintsResponse& other400) { - notNullConstraints = other400.notNullConstraints; +NotNullConstraintsResponse& NotNullConstraintsResponse::operator=(const NotNullConstraintsResponse& other408) { + notNullConstraints = other408.notNullConstraints; return *this; } void NotNullConstraintsResponse::printTo(std::ostream& out) const { @@ -10050,15 +10096,15 @@ void swap(DropConstraintRequest &a, DropConstraintRequest &b) { swap(a.constraintname, b.constraintname); } -DropConstraintRequest::DropConstraintRequest(const DropConstraintRequest& other401) { - dbname = other401.dbname; - tablename = other401.tablename; - constraintname = other401.constraintname; +DropConstraintRequest::DropConstraintRequest(const DropConstraintRequest& other409) { + dbname = other409.dbname; + tablename = other409.tablename; + constraintname = other409.constraintname; } -DropConstraintRequest& DropConstraintRequest::operator=(const DropConstraintRequest& other402) { - dbname = other402.dbname; - tablename = other402.tablename; - constraintname = other402.constraintname; +DropConstraintRequest& DropConstraintRequest::operator=(const DropConstraintRequest& other410) { + dbname = other410.dbname; + tablename = other410.tablename; + constraintname = other410.constraintname; return *this; } void DropConstraintRequest::printTo(std::ostream& out) const { @@ -10105,14 +10151,14 @@ uint32_t AddPrimaryKeyRequest::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->primaryKeyCols.clear(); - uint32_t _size403; - ::apache::thrift::protocol::TType _etype406; - xfer += iprot->readListBegin(_etype406, _size403); - this->primaryKeyCols.resize(_size403); - uint32_t _i407; - for (_i407 = 0; _i407 < _size403; ++_i407) + uint32_t _size411; + ::apache::thrift::protocol::TType _etype414; + xfer += iprot->readListBegin(_etype414, _size411); + this->primaryKeyCols.resize(_size411); + uint32_t _i415; + for (_i415 = 0; _i415 < _size411; ++_i415) { - xfer += this->primaryKeyCols[_i407].read(iprot); + xfer += this->primaryKeyCols[_i415].read(iprot); } xfer += iprot->readListEnd(); } @@ -10143,10 +10189,10 @@ uint32_t AddPrimaryKeyRequest::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldBegin("primaryKeyCols", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->primaryKeyCols.size())); - std::vector ::const_iterator _iter408; - for (_iter408 = this->primaryKeyCols.begin(); _iter408 != this->primaryKeyCols.end(); ++_iter408) + std::vector ::const_iterator _iter416; + for (_iter416 = this->primaryKeyCols.begin(); _iter416 != this->primaryKeyCols.end(); ++_iter416) { - xfer += (*_iter408).write(oprot); + xfer += (*_iter416).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10162,11 +10208,11 @@ void swap(AddPrimaryKeyRequest &a, AddPrimaryKeyRequest &b) { swap(a.primaryKeyCols, b.primaryKeyCols); } -AddPrimaryKeyRequest::AddPrimaryKeyRequest(const AddPrimaryKeyRequest& other409) { - primaryKeyCols = other409.primaryKeyCols; +AddPrimaryKeyRequest::AddPrimaryKeyRequest(const AddPrimaryKeyRequest& other417) { + primaryKeyCols = other417.primaryKeyCols; } -AddPrimaryKeyRequest& AddPrimaryKeyRequest::operator=(const AddPrimaryKeyRequest& other410) { - primaryKeyCols = other410.primaryKeyCols; +AddPrimaryKeyRequest& AddPrimaryKeyRequest::operator=(const AddPrimaryKeyRequest& other418) { + primaryKeyCols = other418.primaryKeyCols; return *this; } void AddPrimaryKeyRequest::printTo(std::ostream& out) const { @@ -10211,14 +10257,14 @@ uint32_t AddForeignKeyRequest::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->foreignKeyCols.clear(); - uint32_t _size411; - ::apache::thrift::protocol::TType _etype414; - xfer += iprot->readListBegin(_etype414, _size411); - this->foreignKeyCols.resize(_size411); - uint32_t _i415; - for (_i415 = 0; _i415 < _size411; ++_i415) + uint32_t _size419; + ::apache::thrift::protocol::TType _etype422; + xfer += iprot->readListBegin(_etype422, _size419); + this->foreignKeyCols.resize(_size419); + uint32_t _i423; + for (_i423 = 0; _i423 < _size419; ++_i423) { - xfer += this->foreignKeyCols[_i415].read(iprot); + xfer += this->foreignKeyCols[_i423].read(iprot); } xfer += iprot->readListEnd(); } @@ -10249,10 +10295,10 @@ uint32_t AddForeignKeyRequest::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldBegin("foreignKeyCols", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->foreignKeyCols.size())); - std::vector ::const_iterator _iter416; - for (_iter416 = this->foreignKeyCols.begin(); _iter416 != this->foreignKeyCols.end(); ++_iter416) + std::vector ::const_iterator _iter424; + for (_iter424 = this->foreignKeyCols.begin(); _iter424 != this->foreignKeyCols.end(); ++_iter424) { - xfer += (*_iter416).write(oprot); + xfer += (*_iter424).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10268,11 +10314,11 @@ void swap(AddForeignKeyRequest &a, AddForeignKeyRequest &b) { swap(a.foreignKeyCols, b.foreignKeyCols); } -AddForeignKeyRequest::AddForeignKeyRequest(const AddForeignKeyRequest& other417) { - foreignKeyCols = other417.foreignKeyCols; +AddForeignKeyRequest::AddForeignKeyRequest(const AddForeignKeyRequest& other425) { + foreignKeyCols = other425.foreignKeyCols; } -AddForeignKeyRequest& AddForeignKeyRequest::operator=(const AddForeignKeyRequest& other418) { - foreignKeyCols = other418.foreignKeyCols; +AddForeignKeyRequest& AddForeignKeyRequest::operator=(const AddForeignKeyRequest& other426) { + foreignKeyCols = other426.foreignKeyCols; return *this; } void AddForeignKeyRequest::printTo(std::ostream& out) const { @@ -10317,14 +10363,14 @@ uint32_t AddUniqueConstraintRequest::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->uniqueConstraintCols.clear(); - uint32_t _size419; - ::apache::thrift::protocol::TType _etype422; - xfer += iprot->readListBegin(_etype422, _size419); - this->uniqueConstraintCols.resize(_size419); - uint32_t _i423; - for (_i423 = 0; _i423 < _size419; ++_i423) + uint32_t _size427; + ::apache::thrift::protocol::TType _etype430; + xfer += iprot->readListBegin(_etype430, _size427); + this->uniqueConstraintCols.resize(_size427); + uint32_t _i431; + for (_i431 = 0; _i431 < _size427; ++_i431) { - xfer += this->uniqueConstraintCols[_i423].read(iprot); + xfer += this->uniqueConstraintCols[_i431].read(iprot); } xfer += iprot->readListEnd(); } @@ -10355,10 +10401,10 @@ uint32_t AddUniqueConstraintRequest::write(::apache::thrift::protocol::TProtocol xfer += oprot->writeFieldBegin("uniqueConstraintCols", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->uniqueConstraintCols.size())); - std::vector ::const_iterator _iter424; - for (_iter424 = this->uniqueConstraintCols.begin(); _iter424 != this->uniqueConstraintCols.end(); ++_iter424) + std::vector ::const_iterator _iter432; + for (_iter432 = this->uniqueConstraintCols.begin(); _iter432 != this->uniqueConstraintCols.end(); ++_iter432) { - xfer += (*_iter424).write(oprot); + xfer += (*_iter432).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10374,11 +10420,11 @@ void swap(AddUniqueConstraintRequest &a, AddUniqueConstraintRequest &b) { swap(a.uniqueConstraintCols, b.uniqueConstraintCols); } -AddUniqueConstraintRequest::AddUniqueConstraintRequest(const AddUniqueConstraintRequest& other425) { - uniqueConstraintCols = other425.uniqueConstraintCols; +AddUniqueConstraintRequest::AddUniqueConstraintRequest(const AddUniqueConstraintRequest& other433) { + uniqueConstraintCols = other433.uniqueConstraintCols; } -AddUniqueConstraintRequest& AddUniqueConstraintRequest::operator=(const AddUniqueConstraintRequest& other426) { - uniqueConstraintCols = other426.uniqueConstraintCols; +AddUniqueConstraintRequest& AddUniqueConstraintRequest::operator=(const AddUniqueConstraintRequest& other434) { + uniqueConstraintCols = other434.uniqueConstraintCols; return *this; } void AddUniqueConstraintRequest::printTo(std::ostream& out) const { @@ -10423,14 +10469,14 @@ uint32_t AddNotNullConstraintRequest::read(::apache::thrift::protocol::TProtocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->notNullConstraintCols.clear(); - uint32_t _size427; - ::apache::thrift::protocol::TType _etype430; - xfer += iprot->readListBegin(_etype430, _size427); - this->notNullConstraintCols.resize(_size427); - uint32_t _i431; - for (_i431 = 0; _i431 < _size427; ++_i431) + uint32_t _size435; + ::apache::thrift::protocol::TType _etype438; + xfer += iprot->readListBegin(_etype438, _size435); + this->notNullConstraintCols.resize(_size435); + uint32_t _i439; + for (_i439 = 0; _i439 < _size435; ++_i439) { - xfer += this->notNullConstraintCols[_i431].read(iprot); + xfer += this->notNullConstraintCols[_i439].read(iprot); } xfer += iprot->readListEnd(); } @@ -10461,10 +10507,10 @@ uint32_t AddNotNullConstraintRequest::write(::apache::thrift::protocol::TProtoco xfer += oprot->writeFieldBegin("notNullConstraintCols", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->notNullConstraintCols.size())); - std::vector ::const_iterator _iter432; - for (_iter432 = this->notNullConstraintCols.begin(); _iter432 != this->notNullConstraintCols.end(); ++_iter432) + std::vector ::const_iterator _iter440; + for (_iter440 = this->notNullConstraintCols.begin(); _iter440 != this->notNullConstraintCols.end(); ++_iter440) { - xfer += (*_iter432).write(oprot); + xfer += (*_iter440).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10480,11 +10526,11 @@ void swap(AddNotNullConstraintRequest &a, AddNotNullConstraintRequest &b) { swap(a.notNullConstraintCols, b.notNullConstraintCols); } -AddNotNullConstraintRequest::AddNotNullConstraintRequest(const AddNotNullConstraintRequest& other433) { - notNullConstraintCols = other433.notNullConstraintCols; +AddNotNullConstraintRequest::AddNotNullConstraintRequest(const AddNotNullConstraintRequest& other441) { + notNullConstraintCols = other441.notNullConstraintCols; } -AddNotNullConstraintRequest& AddNotNullConstraintRequest::operator=(const AddNotNullConstraintRequest& other434) { - notNullConstraintCols = other434.notNullConstraintCols; +AddNotNullConstraintRequest& AddNotNullConstraintRequest::operator=(const AddNotNullConstraintRequest& other442) { + notNullConstraintCols = other442.notNullConstraintCols; return *this; } void AddNotNullConstraintRequest::printTo(std::ostream& out) const { @@ -10534,14 +10580,14 @@ uint32_t PartitionsByExprResult::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size435; - ::apache::thrift::protocol::TType _etype438; - xfer += iprot->readListBegin(_etype438, _size435); - this->partitions.resize(_size435); - uint32_t _i439; - for (_i439 = 0; _i439 < _size435; ++_i439) + uint32_t _size443; + ::apache::thrift::protocol::TType _etype446; + xfer += iprot->readListBegin(_etype446, _size443); + this->partitions.resize(_size443); + uint32_t _i447; + for (_i447 = 0; _i447 < _size443; ++_i447) { - xfer += this->partitions[_i439].read(iprot); + xfer += this->partitions[_i447].read(iprot); } xfer += iprot->readListEnd(); } @@ -10582,10 +10628,10 @@ uint32_t PartitionsByExprResult::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitions.size())); - std::vector ::const_iterator _iter440; - for (_iter440 = this->partitions.begin(); _iter440 != this->partitions.end(); ++_iter440) + std::vector ::const_iterator _iter448; + for (_iter448 = this->partitions.begin(); _iter448 != this->partitions.end(); ++_iter448) { - xfer += (*_iter440).write(oprot); + xfer += (*_iter448).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10606,13 +10652,13 @@ void swap(PartitionsByExprResult &a, PartitionsByExprResult &b) { swap(a.hasUnknownPartitions, b.hasUnknownPartitions); } -PartitionsByExprResult::PartitionsByExprResult(const PartitionsByExprResult& other441) { - partitions = other441.partitions; - hasUnknownPartitions = other441.hasUnknownPartitions; +PartitionsByExprResult::PartitionsByExprResult(const PartitionsByExprResult& other449) { + partitions = other449.partitions; + hasUnknownPartitions = other449.hasUnknownPartitions; } -PartitionsByExprResult& PartitionsByExprResult::operator=(const PartitionsByExprResult& other442) { - partitions = other442.partitions; - hasUnknownPartitions = other442.hasUnknownPartitions; +PartitionsByExprResult& PartitionsByExprResult::operator=(const PartitionsByExprResult& other450) { + partitions = other450.partitions; + hasUnknownPartitions = other450.hasUnknownPartitions; return *this; } void PartitionsByExprResult::printTo(std::ostream& out) const { @@ -10774,21 +10820,21 @@ void swap(PartitionsByExprRequest &a, PartitionsByExprRequest &b) { swap(a.__isset, b.__isset); } -PartitionsByExprRequest::PartitionsByExprRequest(const PartitionsByExprRequest& other443) { - dbName = other443.dbName; - tblName = other443.tblName; - expr = other443.expr; - defaultPartitionName = other443.defaultPartitionName; - maxParts = other443.maxParts; - __isset = other443.__isset; -} -PartitionsByExprRequest& PartitionsByExprRequest::operator=(const PartitionsByExprRequest& other444) { - dbName = other444.dbName; - tblName = other444.tblName; - expr = other444.expr; - defaultPartitionName = other444.defaultPartitionName; - maxParts = other444.maxParts; - __isset = other444.__isset; +PartitionsByExprRequest::PartitionsByExprRequest(const PartitionsByExprRequest& other451) { + dbName = other451.dbName; + tblName = other451.tblName; + expr = other451.expr; + defaultPartitionName = other451.defaultPartitionName; + maxParts = other451.maxParts; + __isset = other451.__isset; +} +PartitionsByExprRequest& PartitionsByExprRequest::operator=(const PartitionsByExprRequest& other452) { + dbName = other452.dbName; + tblName = other452.tblName; + expr = other452.expr; + defaultPartitionName = other452.defaultPartitionName; + maxParts = other452.maxParts; + __isset = other452.__isset; return *this; } void PartitionsByExprRequest::printTo(std::ostream& out) const { @@ -10837,14 +10883,14 @@ uint32_t TableStatsResult::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tableStats.clear(); - uint32_t _size445; - ::apache::thrift::protocol::TType _etype448; - xfer += iprot->readListBegin(_etype448, _size445); - this->tableStats.resize(_size445); - uint32_t _i449; - for (_i449 = 0; _i449 < _size445; ++_i449) + uint32_t _size453; + ::apache::thrift::protocol::TType _etype456; + xfer += iprot->readListBegin(_etype456, _size453); + this->tableStats.resize(_size453); + uint32_t _i457; + for (_i457 = 0; _i457 < _size453; ++_i457) { - xfer += this->tableStats[_i449].read(iprot); + xfer += this->tableStats[_i457].read(iprot); } xfer += iprot->readListEnd(); } @@ -10875,10 +10921,10 @@ uint32_t TableStatsResult::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("tableStats", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->tableStats.size())); - std::vector ::const_iterator _iter450; - for (_iter450 = this->tableStats.begin(); _iter450 != this->tableStats.end(); ++_iter450) + std::vector ::const_iterator _iter458; + for (_iter458 = this->tableStats.begin(); _iter458 != this->tableStats.end(); ++_iter458) { - xfer += (*_iter450).write(oprot); + xfer += (*_iter458).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10894,11 +10940,11 @@ void swap(TableStatsResult &a, TableStatsResult &b) { swap(a.tableStats, b.tableStats); } -TableStatsResult::TableStatsResult(const TableStatsResult& other451) { - tableStats = other451.tableStats; +TableStatsResult::TableStatsResult(const TableStatsResult& other459) { + tableStats = other459.tableStats; } -TableStatsResult& TableStatsResult::operator=(const TableStatsResult& other452) { - tableStats = other452.tableStats; +TableStatsResult& TableStatsResult::operator=(const TableStatsResult& other460) { + tableStats = other460.tableStats; return *this; } void TableStatsResult::printTo(std::ostream& out) const { @@ -10943,26 +10989,26 @@ uint32_t PartitionsStatsResult::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partStats.clear(); - uint32_t _size453; - ::apache::thrift::protocol::TType _ktype454; - ::apache::thrift::protocol::TType _vtype455; - xfer += iprot->readMapBegin(_ktype454, _vtype455, _size453); - uint32_t _i457; - for (_i457 = 0; _i457 < _size453; ++_i457) + uint32_t _size461; + ::apache::thrift::protocol::TType _ktype462; + ::apache::thrift::protocol::TType _vtype463; + xfer += iprot->readMapBegin(_ktype462, _vtype463, _size461); + uint32_t _i465; + for (_i465 = 0; _i465 < _size461; ++_i465) { - std::string _key458; - xfer += iprot->readString(_key458); - std::vector & _val459 = this->partStats[_key458]; + std::string _key466; + xfer += iprot->readString(_key466); + std::vector & _val467 = this->partStats[_key466]; { - _val459.clear(); - uint32_t _size460; - ::apache::thrift::protocol::TType _etype463; - xfer += iprot->readListBegin(_etype463, _size460); - _val459.resize(_size460); - uint32_t _i464; - for (_i464 = 0; _i464 < _size460; ++_i464) + _val467.clear(); + uint32_t _size468; + ::apache::thrift::protocol::TType _etype471; + xfer += iprot->readListBegin(_etype471, _size468); + _val467.resize(_size468); + uint32_t _i472; + for (_i472 = 0; _i472 < _size468; ++_i472) { - xfer += _val459[_i464].read(iprot); + xfer += _val467[_i472].read(iprot); } xfer += iprot->readListEnd(); } @@ -10996,16 +11042,16 @@ uint32_t PartitionsStatsResult::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldBegin("partStats", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast(this->partStats.size())); - std::map > ::const_iterator _iter465; - for (_iter465 = this->partStats.begin(); _iter465 != this->partStats.end(); ++_iter465) + std::map > ::const_iterator _iter473; + for (_iter473 = this->partStats.begin(); _iter473 != this->partStats.end(); ++_iter473) { - xfer += oprot->writeString(_iter465->first); + xfer += oprot->writeString(_iter473->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter465->second.size())); - std::vector ::const_iterator _iter466; - for (_iter466 = _iter465->second.begin(); _iter466 != _iter465->second.end(); ++_iter466) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter473->second.size())); + std::vector ::const_iterator _iter474; + for (_iter474 = _iter473->second.begin(); _iter474 != _iter473->second.end(); ++_iter474) { - xfer += (*_iter466).write(oprot); + xfer += (*_iter474).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11024,11 +11070,11 @@ void swap(PartitionsStatsResult &a, PartitionsStatsResult &b) { swap(a.partStats, b.partStats); } -PartitionsStatsResult::PartitionsStatsResult(const PartitionsStatsResult& other467) { - partStats = other467.partStats; +PartitionsStatsResult::PartitionsStatsResult(const PartitionsStatsResult& other475) { + partStats = other475.partStats; } -PartitionsStatsResult& PartitionsStatsResult::operator=(const PartitionsStatsResult& other468) { - partStats = other468.partStats; +PartitionsStatsResult& PartitionsStatsResult::operator=(const PartitionsStatsResult& other476) { + partStats = other476.partStats; return *this; } void PartitionsStatsResult::printTo(std::ostream& out) const { @@ -11099,14 +11145,14 @@ uint32_t TableStatsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colNames.clear(); - uint32_t _size469; - ::apache::thrift::protocol::TType _etype472; - xfer += iprot->readListBegin(_etype472, _size469); - this->colNames.resize(_size469); - uint32_t _i473; - for (_i473 = 0; _i473 < _size469; ++_i473) + uint32_t _size477; + ::apache::thrift::protocol::TType _etype480; + xfer += iprot->readListBegin(_etype480, _size477); + this->colNames.resize(_size477); + uint32_t _i481; + for (_i481 = 0; _i481 < _size477; ++_i481) { - xfer += iprot->readString(this->colNames[_i473]); + xfer += iprot->readString(this->colNames[_i481]); } xfer += iprot->readListEnd(); } @@ -11149,10 +11195,10 @@ uint32_t TableStatsRequest::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("colNames", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->colNames.size())); - std::vector ::const_iterator _iter474; - for (_iter474 = this->colNames.begin(); _iter474 != this->colNames.end(); ++_iter474) + std::vector ::const_iterator _iter482; + for (_iter482 = this->colNames.begin(); _iter482 != this->colNames.end(); ++_iter482) { - xfer += oprot->writeString((*_iter474)); + xfer += oprot->writeString((*_iter482)); } xfer += oprot->writeListEnd(); } @@ -11170,15 +11216,15 @@ void swap(TableStatsRequest &a, TableStatsRequest &b) { swap(a.colNames, b.colNames); } -TableStatsRequest::TableStatsRequest(const TableStatsRequest& other475) { - dbName = other475.dbName; - tblName = other475.tblName; - colNames = other475.colNames; +TableStatsRequest::TableStatsRequest(const TableStatsRequest& other483) { + dbName = other483.dbName; + tblName = other483.tblName; + colNames = other483.colNames; } -TableStatsRequest& TableStatsRequest::operator=(const TableStatsRequest& other476) { - dbName = other476.dbName; - tblName = other476.tblName; - colNames = other476.colNames; +TableStatsRequest& TableStatsRequest::operator=(const TableStatsRequest& other484) { + dbName = other484.dbName; + tblName = other484.tblName; + colNames = other484.colNames; return *this; } void TableStatsRequest::printTo(std::ostream& out) const { @@ -11256,14 +11302,14 @@ uint32_t PartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colNames.clear(); - uint32_t _size477; - ::apache::thrift::protocol::TType _etype480; - xfer += iprot->readListBegin(_etype480, _size477); - this->colNames.resize(_size477); - uint32_t _i481; - for (_i481 = 0; _i481 < _size477; ++_i481) + uint32_t _size485; + ::apache::thrift::protocol::TType _etype488; + xfer += iprot->readListBegin(_etype488, _size485); + this->colNames.resize(_size485); + uint32_t _i489; + for (_i489 = 0; _i489 < _size485; ++_i489) { - xfer += iprot->readString(this->colNames[_i481]); + xfer += iprot->readString(this->colNames[_i489]); } xfer += iprot->readListEnd(); } @@ -11276,14 +11322,14 @@ uint32_t PartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partNames.clear(); - uint32_t _size482; - ::apache::thrift::protocol::TType _etype485; - xfer += iprot->readListBegin(_etype485, _size482); - this->partNames.resize(_size482); - uint32_t _i486; - for (_i486 = 0; _i486 < _size482; ++_i486) + uint32_t _size490; + ::apache::thrift::protocol::TType _etype493; + xfer += iprot->readListBegin(_etype493, _size490); + this->partNames.resize(_size490); + uint32_t _i494; + for (_i494 = 0; _i494 < _size490; ++_i494) { - xfer += iprot->readString(this->partNames[_i486]); + xfer += iprot->readString(this->partNames[_i494]); } xfer += iprot->readListEnd(); } @@ -11328,10 +11374,10 @@ uint32_t PartitionsStatsRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("colNames", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->colNames.size())); - std::vector ::const_iterator _iter487; - for (_iter487 = this->colNames.begin(); _iter487 != this->colNames.end(); ++_iter487) + std::vector ::const_iterator _iter495; + for (_iter495 = this->colNames.begin(); _iter495 != this->colNames.end(); ++_iter495) { - xfer += oprot->writeString((*_iter487)); + xfer += oprot->writeString((*_iter495)); } xfer += oprot->writeListEnd(); } @@ -11340,10 +11386,10 @@ uint32_t PartitionsStatsRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("partNames", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partNames.size())); - std::vector ::const_iterator _iter488; - for (_iter488 = this->partNames.begin(); _iter488 != this->partNames.end(); ++_iter488) + std::vector ::const_iterator _iter496; + for (_iter496 = this->partNames.begin(); _iter496 != this->partNames.end(); ++_iter496) { - xfer += oprot->writeString((*_iter488)); + xfer += oprot->writeString((*_iter496)); } xfer += oprot->writeListEnd(); } @@ -11362,17 +11408,17 @@ void swap(PartitionsStatsRequest &a, PartitionsStatsRequest &b) { swap(a.partNames, b.partNames); } -PartitionsStatsRequest::PartitionsStatsRequest(const PartitionsStatsRequest& other489) { - dbName = other489.dbName; - tblName = other489.tblName; - colNames = other489.colNames; - partNames = other489.partNames; +PartitionsStatsRequest::PartitionsStatsRequest(const PartitionsStatsRequest& other497) { + dbName = other497.dbName; + tblName = other497.tblName; + colNames = other497.colNames; + partNames = other497.partNames; } -PartitionsStatsRequest& PartitionsStatsRequest::operator=(const PartitionsStatsRequest& other490) { - dbName = other490.dbName; - tblName = other490.tblName; - colNames = other490.colNames; - partNames = other490.partNames; +PartitionsStatsRequest& PartitionsStatsRequest::operator=(const PartitionsStatsRequest& other498) { + dbName = other498.dbName; + tblName = other498.tblName; + colNames = other498.colNames; + partNames = other498.partNames; return *this; } void PartitionsStatsRequest::printTo(std::ostream& out) const { @@ -11420,14 +11466,14 @@ uint32_t AddPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size491; - ::apache::thrift::protocol::TType _etype494; - xfer += iprot->readListBegin(_etype494, _size491); - this->partitions.resize(_size491); - uint32_t _i495; - for (_i495 = 0; _i495 < _size491; ++_i495) + uint32_t _size499; + ::apache::thrift::protocol::TType _etype502; + xfer += iprot->readListBegin(_etype502, _size499); + this->partitions.resize(_size499); + uint32_t _i503; + for (_i503 = 0; _i503 < _size499; ++_i503) { - xfer += this->partitions[_i495].read(iprot); + xfer += this->partitions[_i503].read(iprot); } xfer += iprot->readListEnd(); } @@ -11457,10 +11503,10 @@ uint32_t AddPartitionsResult::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitions.size())); - std::vector ::const_iterator _iter496; - for (_iter496 = this->partitions.begin(); _iter496 != this->partitions.end(); ++_iter496) + std::vector ::const_iterator _iter504; + for (_iter504 = this->partitions.begin(); _iter504 != this->partitions.end(); ++_iter504) { - xfer += (*_iter496).write(oprot); + xfer += (*_iter504).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11477,13 +11523,13 @@ void swap(AddPartitionsResult &a, AddPartitionsResult &b) { swap(a.__isset, b.__isset); } -AddPartitionsResult::AddPartitionsResult(const AddPartitionsResult& other497) { - partitions = other497.partitions; - __isset = other497.__isset; +AddPartitionsResult::AddPartitionsResult(const AddPartitionsResult& other505) { + partitions = other505.partitions; + __isset = other505.__isset; } -AddPartitionsResult& AddPartitionsResult::operator=(const AddPartitionsResult& other498) { - partitions = other498.partitions; - __isset = other498.__isset; +AddPartitionsResult& AddPartitionsResult::operator=(const AddPartitionsResult& other506) { + partitions = other506.partitions; + __isset = other506.__isset; return *this; } void AddPartitionsResult::printTo(std::ostream& out) const { @@ -11564,14 +11610,14 @@ uint32_t AddPartitionsRequest::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->parts.clear(); - uint32_t _size499; - ::apache::thrift::protocol::TType _etype502; - xfer += iprot->readListBegin(_etype502, _size499); - this->parts.resize(_size499); - uint32_t _i503; - for (_i503 = 0; _i503 < _size499; ++_i503) + uint32_t _size507; + ::apache::thrift::protocol::TType _etype510; + xfer += iprot->readListBegin(_etype510, _size507); + this->parts.resize(_size507); + uint32_t _i511; + for (_i511 = 0; _i511 < _size507; ++_i511) { - xfer += this->parts[_i503].read(iprot); + xfer += this->parts[_i511].read(iprot); } xfer += iprot->readListEnd(); } @@ -11632,10 +11678,10 @@ uint32_t AddPartitionsRequest::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldBegin("parts", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->parts.size())); - std::vector ::const_iterator _iter504; - for (_iter504 = this->parts.begin(); _iter504 != this->parts.end(); ++_iter504) + std::vector ::const_iterator _iter512; + for (_iter512 = this->parts.begin(); _iter512 != this->parts.end(); ++_iter512) { - xfer += (*_iter504).write(oprot); + xfer += (*_iter512).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11665,21 +11711,21 @@ void swap(AddPartitionsRequest &a, AddPartitionsRequest &b) { swap(a.__isset, b.__isset); } -AddPartitionsRequest::AddPartitionsRequest(const AddPartitionsRequest& other505) { - dbName = other505.dbName; - tblName = other505.tblName; - parts = other505.parts; - ifNotExists = other505.ifNotExists; - needResult = other505.needResult; - __isset = other505.__isset; +AddPartitionsRequest::AddPartitionsRequest(const AddPartitionsRequest& other513) { + dbName = other513.dbName; + tblName = other513.tblName; + parts = other513.parts; + ifNotExists = other513.ifNotExists; + needResult = other513.needResult; + __isset = other513.__isset; } -AddPartitionsRequest& AddPartitionsRequest::operator=(const AddPartitionsRequest& other506) { - dbName = other506.dbName; - tblName = other506.tblName; - parts = other506.parts; - ifNotExists = other506.ifNotExists; - needResult = other506.needResult; - __isset = other506.__isset; +AddPartitionsRequest& AddPartitionsRequest::operator=(const AddPartitionsRequest& other514) { + dbName = other514.dbName; + tblName = other514.tblName; + parts = other514.parts; + ifNotExists = other514.ifNotExists; + needResult = other514.needResult; + __isset = other514.__isset; return *this; } void AddPartitionsRequest::printTo(std::ostream& out) const { @@ -11728,14 +11774,14 @@ uint32_t DropPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size507; - ::apache::thrift::protocol::TType _etype510; - xfer += iprot->readListBegin(_etype510, _size507); - this->partitions.resize(_size507); - uint32_t _i511; - for (_i511 = 0; _i511 < _size507; ++_i511) + uint32_t _size515; + ::apache::thrift::protocol::TType _etype518; + xfer += iprot->readListBegin(_etype518, _size515); + this->partitions.resize(_size515); + uint32_t _i519; + for (_i519 = 0; _i519 < _size515; ++_i519) { - xfer += this->partitions[_i511].read(iprot); + xfer += this->partitions[_i519].read(iprot); } xfer += iprot->readListEnd(); } @@ -11765,10 +11811,10 @@ uint32_t DropPartitionsResult::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitions.size())); - std::vector ::const_iterator _iter512; - for (_iter512 = this->partitions.begin(); _iter512 != this->partitions.end(); ++_iter512) + std::vector ::const_iterator _iter520; + for (_iter520 = this->partitions.begin(); _iter520 != this->partitions.end(); ++_iter520) { - xfer += (*_iter512).write(oprot); + xfer += (*_iter520).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11785,13 +11831,13 @@ void swap(DropPartitionsResult &a, DropPartitionsResult &b) { swap(a.__isset, b.__isset); } -DropPartitionsResult::DropPartitionsResult(const DropPartitionsResult& other513) { - partitions = other513.partitions; - __isset = other513.__isset; +DropPartitionsResult::DropPartitionsResult(const DropPartitionsResult& other521) { + partitions = other521.partitions; + __isset = other521.__isset; } -DropPartitionsResult& DropPartitionsResult::operator=(const DropPartitionsResult& other514) { - partitions = other514.partitions; - __isset = other514.__isset; +DropPartitionsResult& DropPartitionsResult::operator=(const DropPartitionsResult& other522) { + partitions = other522.partitions; + __isset = other522.__isset; return *this; } void DropPartitionsResult::printTo(std::ostream& out) const { @@ -11893,15 +11939,15 @@ void swap(DropPartitionsExpr &a, DropPartitionsExpr &b) { swap(a.__isset, b.__isset); } -DropPartitionsExpr::DropPartitionsExpr(const DropPartitionsExpr& other515) { - expr = other515.expr; - partArchiveLevel = other515.partArchiveLevel; - __isset = other515.__isset; +DropPartitionsExpr::DropPartitionsExpr(const DropPartitionsExpr& other523) { + expr = other523.expr; + partArchiveLevel = other523.partArchiveLevel; + __isset = other523.__isset; } -DropPartitionsExpr& DropPartitionsExpr::operator=(const DropPartitionsExpr& other516) { - expr = other516.expr; - partArchiveLevel = other516.partArchiveLevel; - __isset = other516.__isset; +DropPartitionsExpr& DropPartitionsExpr::operator=(const DropPartitionsExpr& other524) { + expr = other524.expr; + partArchiveLevel = other524.partArchiveLevel; + __isset = other524.__isset; return *this; } void DropPartitionsExpr::printTo(std::ostream& out) const { @@ -11950,14 +11996,14 @@ uint32_t RequestPartsSpec::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size517; - ::apache::thrift::protocol::TType _etype520; - xfer += iprot->readListBegin(_etype520, _size517); - this->names.resize(_size517); - uint32_t _i521; - for (_i521 = 0; _i521 < _size517; ++_i521) + uint32_t _size525; + ::apache::thrift::protocol::TType _etype528; + xfer += iprot->readListBegin(_etype528, _size525); + this->names.resize(_size525); + uint32_t _i529; + for (_i529 = 0; _i529 < _size525; ++_i529) { - xfer += iprot->readString(this->names[_i521]); + xfer += iprot->readString(this->names[_i529]); } xfer += iprot->readListEnd(); } @@ -11970,14 +12016,14 @@ uint32_t RequestPartsSpec::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->exprs.clear(); - uint32_t _size522; - ::apache::thrift::protocol::TType _etype525; - xfer += iprot->readListBegin(_etype525, _size522); - this->exprs.resize(_size522); - uint32_t _i526; - for (_i526 = 0; _i526 < _size522; ++_i526) + uint32_t _size530; + ::apache::thrift::protocol::TType _etype533; + xfer += iprot->readListBegin(_etype533, _size530); + this->exprs.resize(_size530); + uint32_t _i534; + for (_i534 = 0; _i534 < _size530; ++_i534) { - xfer += this->exprs[_i526].read(iprot); + xfer += this->exprs[_i534].read(iprot); } xfer += iprot->readListEnd(); } @@ -12006,10 +12052,10 @@ uint32_t RequestPartsSpec::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->names.size())); - std::vector ::const_iterator _iter527; - for (_iter527 = this->names.begin(); _iter527 != this->names.end(); ++_iter527) + std::vector ::const_iterator _iter535; + for (_iter535 = this->names.begin(); _iter535 != this->names.end(); ++_iter535) { - xfer += oprot->writeString((*_iter527)); + xfer += oprot->writeString((*_iter535)); } xfer += oprot->writeListEnd(); } @@ -12018,10 +12064,10 @@ uint32_t RequestPartsSpec::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("exprs", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->exprs.size())); - std::vector ::const_iterator _iter528; - for (_iter528 = this->exprs.begin(); _iter528 != this->exprs.end(); ++_iter528) + std::vector ::const_iterator _iter536; + for (_iter536 = this->exprs.begin(); _iter536 != this->exprs.end(); ++_iter536) { - xfer += (*_iter528).write(oprot); + xfer += (*_iter536).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12039,15 +12085,15 @@ void swap(RequestPartsSpec &a, RequestPartsSpec &b) { swap(a.__isset, b.__isset); } -RequestPartsSpec::RequestPartsSpec(const RequestPartsSpec& other529) { - names = other529.names; - exprs = other529.exprs; - __isset = other529.__isset; +RequestPartsSpec::RequestPartsSpec(const RequestPartsSpec& other537) { + names = other537.names; + exprs = other537.exprs; + __isset = other537.__isset; } -RequestPartsSpec& RequestPartsSpec::operator=(const RequestPartsSpec& other530) { - names = other530.names; - exprs = other530.exprs; - __isset = other530.__isset; +RequestPartsSpec& RequestPartsSpec::operator=(const RequestPartsSpec& other538) { + names = other538.names; + exprs = other538.exprs; + __isset = other538.__isset; return *this; } void RequestPartsSpec::printTo(std::ostream& out) const { @@ -12266,27 +12312,27 @@ void swap(DropPartitionsRequest &a, DropPartitionsRequest &b) { swap(a.__isset, b.__isset); } -DropPartitionsRequest::DropPartitionsRequest(const DropPartitionsRequest& other531) { - dbName = other531.dbName; - tblName = other531.tblName; - parts = other531.parts; - deleteData = other531.deleteData; - ifExists = other531.ifExists; - ignoreProtection = other531.ignoreProtection; - environmentContext = other531.environmentContext; - needResult = other531.needResult; - __isset = other531.__isset; -} -DropPartitionsRequest& DropPartitionsRequest::operator=(const DropPartitionsRequest& other532) { - dbName = other532.dbName; - tblName = other532.tblName; - parts = other532.parts; - deleteData = other532.deleteData; - ifExists = other532.ifExists; - ignoreProtection = other532.ignoreProtection; - environmentContext = other532.environmentContext; - needResult = other532.needResult; - __isset = other532.__isset; +DropPartitionsRequest::DropPartitionsRequest(const DropPartitionsRequest& other539) { + dbName = other539.dbName; + tblName = other539.tblName; + parts = other539.parts; + deleteData = other539.deleteData; + ifExists = other539.ifExists; + ignoreProtection = other539.ignoreProtection; + environmentContext = other539.environmentContext; + needResult = other539.needResult; + __isset = other539.__isset; +} +DropPartitionsRequest& DropPartitionsRequest::operator=(const DropPartitionsRequest& other540) { + dbName = other540.dbName; + tblName = other540.tblName; + parts = other540.parts; + deleteData = other540.deleteData; + ifExists = other540.ifExists; + ignoreProtection = other540.ignoreProtection; + environmentContext = other540.environmentContext; + needResult = other540.needResult; + __isset = other540.__isset; return *this; } void DropPartitionsRequest::printTo(std::ostream& out) const { @@ -12389,14 +12435,14 @@ uint32_t PartitionValuesRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionKeys.clear(); - uint32_t _size533; - ::apache::thrift::protocol::TType _etype536; - xfer += iprot->readListBegin(_etype536, _size533); - this->partitionKeys.resize(_size533); - uint32_t _i537; - for (_i537 = 0; _i537 < _size533; ++_i537) + uint32_t _size541; + ::apache::thrift::protocol::TType _etype544; + xfer += iprot->readListBegin(_etype544, _size541); + this->partitionKeys.resize(_size541); + uint32_t _i545; + for (_i545 = 0; _i545 < _size541; ++_i545) { - xfer += this->partitionKeys[_i537].read(iprot); + xfer += this->partitionKeys[_i545].read(iprot); } xfer += iprot->readListEnd(); } @@ -12425,14 +12471,14 @@ uint32_t PartitionValuesRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionOrder.clear(); - uint32_t _size538; - ::apache::thrift::protocol::TType _etype541; - xfer += iprot->readListBegin(_etype541, _size538); - this->partitionOrder.resize(_size538); - uint32_t _i542; - for (_i542 = 0; _i542 < _size538; ++_i542) + uint32_t _size546; + ::apache::thrift::protocol::TType _etype549; + xfer += iprot->readListBegin(_etype549, _size546); + this->partitionOrder.resize(_size546); + uint32_t _i550; + for (_i550 = 0; _i550 < _size546; ++_i550) { - xfer += this->partitionOrder[_i542].read(iprot); + xfer += this->partitionOrder[_i550].read(iprot); } xfer += iprot->readListEnd(); } @@ -12491,10 +12537,10 @@ uint32_t PartitionValuesRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("partitionKeys", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitionKeys.size())); - std::vector ::const_iterator _iter543; - for (_iter543 = this->partitionKeys.begin(); _iter543 != this->partitionKeys.end(); ++_iter543) + std::vector ::const_iterator _iter551; + for (_iter551 = this->partitionKeys.begin(); _iter551 != this->partitionKeys.end(); ++_iter551) { - xfer += (*_iter543).write(oprot); + xfer += (*_iter551).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12514,10 +12560,10 @@ uint32_t PartitionValuesRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("partitionOrder", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitionOrder.size())); - std::vector ::const_iterator _iter544; - for (_iter544 = this->partitionOrder.begin(); _iter544 != this->partitionOrder.end(); ++_iter544) + std::vector ::const_iterator _iter552; + for (_iter552 = this->partitionOrder.begin(); _iter552 != this->partitionOrder.end(); ++_iter552) { - xfer += (*_iter544).write(oprot); + xfer += (*_iter552).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12551,27 +12597,27 @@ void swap(PartitionValuesRequest &a, PartitionValuesRequest &b) { swap(a.__isset, b.__isset); } -PartitionValuesRequest::PartitionValuesRequest(const PartitionValuesRequest& other545) { - dbName = other545.dbName; - tblName = other545.tblName; - partitionKeys = other545.partitionKeys; - applyDistinct = other545.applyDistinct; - filter = other545.filter; - partitionOrder = other545.partitionOrder; - ascending = other545.ascending; - maxParts = other545.maxParts; - __isset = other545.__isset; -} -PartitionValuesRequest& PartitionValuesRequest::operator=(const PartitionValuesRequest& other546) { - dbName = other546.dbName; - tblName = other546.tblName; - partitionKeys = other546.partitionKeys; - applyDistinct = other546.applyDistinct; - filter = other546.filter; - partitionOrder = other546.partitionOrder; - ascending = other546.ascending; - maxParts = other546.maxParts; - __isset = other546.__isset; +PartitionValuesRequest::PartitionValuesRequest(const PartitionValuesRequest& other553) { + dbName = other553.dbName; + tblName = other553.tblName; + partitionKeys = other553.partitionKeys; + applyDistinct = other553.applyDistinct; + filter = other553.filter; + partitionOrder = other553.partitionOrder; + ascending = other553.ascending; + maxParts = other553.maxParts; + __isset = other553.__isset; +} +PartitionValuesRequest& PartitionValuesRequest::operator=(const PartitionValuesRequest& other554) { + dbName = other554.dbName; + tblName = other554.tblName; + partitionKeys = other554.partitionKeys; + applyDistinct = other554.applyDistinct; + filter = other554.filter; + partitionOrder = other554.partitionOrder; + ascending = other554.ascending; + maxParts = other554.maxParts; + __isset = other554.__isset; return *this; } void PartitionValuesRequest::printTo(std::ostream& out) const { @@ -12623,14 +12669,14 @@ uint32_t PartitionValuesRow::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->row.clear(); - uint32_t _size547; - ::apache::thrift::protocol::TType _etype550; - xfer += iprot->readListBegin(_etype550, _size547); - this->row.resize(_size547); - uint32_t _i551; - for (_i551 = 0; _i551 < _size547; ++_i551) + uint32_t _size555; + ::apache::thrift::protocol::TType _etype558; + xfer += iprot->readListBegin(_etype558, _size555); + this->row.resize(_size555); + uint32_t _i559; + for (_i559 = 0; _i559 < _size555; ++_i559) { - xfer += iprot->readString(this->row[_i551]); + xfer += iprot->readString(this->row[_i559]); } xfer += iprot->readListEnd(); } @@ -12661,10 +12707,10 @@ uint32_t PartitionValuesRow::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("row", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->row.size())); - std::vector ::const_iterator _iter552; - for (_iter552 = this->row.begin(); _iter552 != this->row.end(); ++_iter552) + std::vector ::const_iterator _iter560; + for (_iter560 = this->row.begin(); _iter560 != this->row.end(); ++_iter560) { - xfer += oprot->writeString((*_iter552)); + xfer += oprot->writeString((*_iter560)); } xfer += oprot->writeListEnd(); } @@ -12680,11 +12726,11 @@ void swap(PartitionValuesRow &a, PartitionValuesRow &b) { swap(a.row, b.row); } -PartitionValuesRow::PartitionValuesRow(const PartitionValuesRow& other553) { - row = other553.row; +PartitionValuesRow::PartitionValuesRow(const PartitionValuesRow& other561) { + row = other561.row; } -PartitionValuesRow& PartitionValuesRow::operator=(const PartitionValuesRow& other554) { - row = other554.row; +PartitionValuesRow& PartitionValuesRow::operator=(const PartitionValuesRow& other562) { + row = other562.row; return *this; } void PartitionValuesRow::printTo(std::ostream& out) const { @@ -12729,14 +12775,14 @@ uint32_t PartitionValuesResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionValues.clear(); - uint32_t _size555; - ::apache::thrift::protocol::TType _etype558; - xfer += iprot->readListBegin(_etype558, _size555); - this->partitionValues.resize(_size555); - uint32_t _i559; - for (_i559 = 0; _i559 < _size555; ++_i559) + uint32_t _size563; + ::apache::thrift::protocol::TType _etype566; + xfer += iprot->readListBegin(_etype566, _size563); + this->partitionValues.resize(_size563); + uint32_t _i567; + for (_i567 = 0; _i567 < _size563; ++_i567) { - xfer += this->partitionValues[_i559].read(iprot); + xfer += this->partitionValues[_i567].read(iprot); } xfer += iprot->readListEnd(); } @@ -12767,10 +12813,10 @@ uint32_t PartitionValuesResponse::write(::apache::thrift::protocol::TProtocol* o xfer += oprot->writeFieldBegin("partitionValues", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitionValues.size())); - std::vector ::const_iterator _iter560; - for (_iter560 = this->partitionValues.begin(); _iter560 != this->partitionValues.end(); ++_iter560) + std::vector ::const_iterator _iter568; + for (_iter568 = this->partitionValues.begin(); _iter568 != this->partitionValues.end(); ++_iter568) { - xfer += (*_iter560).write(oprot); + xfer += (*_iter568).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12786,11 +12832,11 @@ void swap(PartitionValuesResponse &a, PartitionValuesResponse &b) { swap(a.partitionValues, b.partitionValues); } -PartitionValuesResponse::PartitionValuesResponse(const PartitionValuesResponse& other561) { - partitionValues = other561.partitionValues; +PartitionValuesResponse::PartitionValuesResponse(const PartitionValuesResponse& other569) { + partitionValues = other569.partitionValues; } -PartitionValuesResponse& PartitionValuesResponse::operator=(const PartitionValuesResponse& other562) { - partitionValues = other562.partitionValues; +PartitionValuesResponse& PartitionValuesResponse::operator=(const PartitionValuesResponse& other570) { + partitionValues = other570.partitionValues; return *this; } void PartitionValuesResponse::printTo(std::ostream& out) const { @@ -12836,9 +12882,9 @@ uint32_t ResourceUri::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast563; - xfer += iprot->readI32(ecast563); - this->resourceType = (ResourceType::type)ecast563; + int32_t ecast571; + xfer += iprot->readI32(ecast571); + this->resourceType = (ResourceType::type)ecast571; this->__isset.resourceType = true; } else { xfer += iprot->skip(ftype); @@ -12889,15 +12935,15 @@ void swap(ResourceUri &a, ResourceUri &b) { swap(a.__isset, b.__isset); } -ResourceUri::ResourceUri(const ResourceUri& other564) { - resourceType = other564.resourceType; - uri = other564.uri; - __isset = other564.__isset; +ResourceUri::ResourceUri(const ResourceUri& other572) { + resourceType = other572.resourceType; + uri = other572.uri; + __isset = other572.__isset; } -ResourceUri& ResourceUri::operator=(const ResourceUri& other565) { - resourceType = other565.resourceType; - uri = other565.uri; - __isset = other565.__isset; +ResourceUri& ResourceUri::operator=(const ResourceUri& other573) { + resourceType = other573.resourceType; + uri = other573.uri; + __isset = other573.__isset; return *this; } void ResourceUri::printTo(std::ostream& out) const { @@ -13000,9 +13046,9 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast566; - xfer += iprot->readI32(ecast566); - this->ownerType = (PrincipalType::type)ecast566; + int32_t ecast574; + xfer += iprot->readI32(ecast574); + this->ownerType = (PrincipalType::type)ecast574; this->__isset.ownerType = true; } else { xfer += iprot->skip(ftype); @@ -13018,9 +13064,9 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 7: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast567; - xfer += iprot->readI32(ecast567); - this->functionType = (FunctionType::type)ecast567; + int32_t ecast575; + xfer += iprot->readI32(ecast575); + this->functionType = (FunctionType::type)ecast575; this->__isset.functionType = true; } else { xfer += iprot->skip(ftype); @@ -13030,14 +13076,14 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->resourceUris.clear(); - uint32_t _size568; - ::apache::thrift::protocol::TType _etype571; - xfer += iprot->readListBegin(_etype571, _size568); - this->resourceUris.resize(_size568); - uint32_t _i572; - for (_i572 = 0; _i572 < _size568; ++_i572) + uint32_t _size576; + ::apache::thrift::protocol::TType _etype579; + xfer += iprot->readListBegin(_etype579, _size576); + this->resourceUris.resize(_size576); + uint32_t _i580; + for (_i580 = 0; _i580 < _size576; ++_i580) { - xfer += this->resourceUris[_i572].read(iprot); + xfer += this->resourceUris[_i580].read(iprot); } xfer += iprot->readListEnd(); } @@ -13094,10 +13140,10 @@ uint32_t Function::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("resourceUris", ::apache::thrift::protocol::T_LIST, 8); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->resourceUris.size())); - std::vector ::const_iterator _iter573; - for (_iter573 = this->resourceUris.begin(); _iter573 != this->resourceUris.end(); ++_iter573) + std::vector ::const_iterator _iter581; + for (_iter581 = this->resourceUris.begin(); _iter581 != this->resourceUris.end(); ++_iter581) { - xfer += (*_iter573).write(oprot); + xfer += (*_iter581).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13121,27 +13167,27 @@ void swap(Function &a, Function &b) { swap(a.__isset, b.__isset); } -Function::Function(const Function& other574) { - functionName = other574.functionName; - dbName = other574.dbName; - className = other574.className; - ownerName = other574.ownerName; - ownerType = other574.ownerType; - createTime = other574.createTime; - functionType = other574.functionType; - resourceUris = other574.resourceUris; - __isset = other574.__isset; -} -Function& Function::operator=(const Function& other575) { - functionName = other575.functionName; - dbName = other575.dbName; - className = other575.className; - ownerName = other575.ownerName; - ownerType = other575.ownerType; - createTime = other575.createTime; - functionType = other575.functionType; - resourceUris = other575.resourceUris; - __isset = other575.__isset; +Function::Function(const Function& other582) { + functionName = other582.functionName; + dbName = other582.dbName; + className = other582.className; + ownerName = other582.ownerName; + ownerType = other582.ownerType; + createTime = other582.createTime; + functionType = other582.functionType; + resourceUris = other582.resourceUris; + __isset = other582.__isset; +} +Function& Function::operator=(const Function& other583) { + functionName = other583.functionName; + dbName = other583.dbName; + className = other583.className; + ownerName = other583.ownerName; + ownerType = other583.ownerType; + createTime = other583.createTime; + functionType = other583.functionType; + resourceUris = other583.resourceUris; + __isset = other583.__isset; return *this; } void Function::printTo(std::ostream& out) const { @@ -13239,9 +13285,9 @@ uint32_t TxnInfo::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast576; - xfer += iprot->readI32(ecast576); - this->state = (TxnState::type)ecast576; + int32_t ecast584; + xfer += iprot->readI32(ecast584); + this->state = (TxnState::type)ecast584; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -13388,29 +13434,29 @@ void swap(TxnInfo &a, TxnInfo &b) { swap(a.__isset, b.__isset); } -TxnInfo::TxnInfo(const TxnInfo& other577) { - id = other577.id; - state = other577.state; - user = other577.user; - hostname = other577.hostname; - agentInfo = other577.agentInfo; - heartbeatCount = other577.heartbeatCount; - metaInfo = other577.metaInfo; - startedTime = other577.startedTime; - lastHeartbeatTime = other577.lastHeartbeatTime; - __isset = other577.__isset; -} -TxnInfo& TxnInfo::operator=(const TxnInfo& other578) { - id = other578.id; - state = other578.state; - user = other578.user; - hostname = other578.hostname; - agentInfo = other578.agentInfo; - heartbeatCount = other578.heartbeatCount; - metaInfo = other578.metaInfo; - startedTime = other578.startedTime; - lastHeartbeatTime = other578.lastHeartbeatTime; - __isset = other578.__isset; +TxnInfo::TxnInfo(const TxnInfo& other585) { + id = other585.id; + state = other585.state; + user = other585.user; + hostname = other585.hostname; + agentInfo = other585.agentInfo; + heartbeatCount = other585.heartbeatCount; + metaInfo = other585.metaInfo; + startedTime = other585.startedTime; + lastHeartbeatTime = other585.lastHeartbeatTime; + __isset = other585.__isset; +} +TxnInfo& TxnInfo::operator=(const TxnInfo& other586) { + id = other586.id; + state = other586.state; + user = other586.user; + hostname = other586.hostname; + agentInfo = other586.agentInfo; + heartbeatCount = other586.heartbeatCount; + metaInfo = other586.metaInfo; + startedTime = other586.startedTime; + lastHeartbeatTime = other586.lastHeartbeatTime; + __isset = other586.__isset; return *this; } void TxnInfo::printTo(std::ostream& out) const { @@ -13476,14 +13522,14 @@ uint32_t GetOpenTxnsInfoResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->open_txns.clear(); - uint32_t _size579; - ::apache::thrift::protocol::TType _etype582; - xfer += iprot->readListBegin(_etype582, _size579); - this->open_txns.resize(_size579); - uint32_t _i583; - for (_i583 = 0; _i583 < _size579; ++_i583) + uint32_t _size587; + ::apache::thrift::protocol::TType _etype590; + xfer += iprot->readListBegin(_etype590, _size587); + this->open_txns.resize(_size587); + uint32_t _i591; + for (_i591 = 0; _i591 < _size587; ++_i591) { - xfer += this->open_txns[_i583].read(iprot); + xfer += this->open_txns[_i591].read(iprot); } xfer += iprot->readListEnd(); } @@ -13520,10 +13566,10 @@ uint32_t GetOpenTxnsInfoResponse::write(::apache::thrift::protocol::TProtocol* o xfer += oprot->writeFieldBegin("open_txns", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->open_txns.size())); - std::vector ::const_iterator _iter584; - for (_iter584 = this->open_txns.begin(); _iter584 != this->open_txns.end(); ++_iter584) + std::vector ::const_iterator _iter592; + for (_iter592 = this->open_txns.begin(); _iter592 != this->open_txns.end(); ++_iter592) { - xfer += (*_iter584).write(oprot); + xfer += (*_iter592).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13540,13 +13586,13 @@ void swap(GetOpenTxnsInfoResponse &a, GetOpenTxnsInfoResponse &b) { swap(a.open_txns, b.open_txns); } -GetOpenTxnsInfoResponse::GetOpenTxnsInfoResponse(const GetOpenTxnsInfoResponse& other585) { - txn_high_water_mark = other585.txn_high_water_mark; - open_txns = other585.open_txns; +GetOpenTxnsInfoResponse::GetOpenTxnsInfoResponse(const GetOpenTxnsInfoResponse& other593) { + txn_high_water_mark = other593.txn_high_water_mark; + open_txns = other593.open_txns; } -GetOpenTxnsInfoResponse& GetOpenTxnsInfoResponse::operator=(const GetOpenTxnsInfoResponse& other586) { - txn_high_water_mark = other586.txn_high_water_mark; - open_txns = other586.open_txns; +GetOpenTxnsInfoResponse& GetOpenTxnsInfoResponse::operator=(const GetOpenTxnsInfoResponse& other594) { + txn_high_water_mark = other594.txn_high_water_mark; + open_txns = other594.open_txns; return *this; } void GetOpenTxnsInfoResponse::printTo(std::ostream& out) const { @@ -13615,14 +13661,14 @@ uint32_t GetOpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->open_txns.clear(); - uint32_t _size587; - ::apache::thrift::protocol::TType _etype590; - xfer += iprot->readListBegin(_etype590, _size587); - this->open_txns.resize(_size587); - uint32_t _i591; - for (_i591 = 0; _i591 < _size587; ++_i591) + uint32_t _size595; + ::apache::thrift::protocol::TType _etype598; + xfer += iprot->readListBegin(_etype598, _size595); + this->open_txns.resize(_size595); + uint32_t _i599; + for (_i599 = 0; _i599 < _size595; ++_i599) { - xfer += iprot->readI64(this->open_txns[_i591]); + xfer += iprot->readI64(this->open_txns[_i599]); } xfer += iprot->readListEnd(); } @@ -13677,10 +13723,10 @@ uint32_t GetOpenTxnsResponse::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldBegin("open_txns", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->open_txns.size())); - std::vector ::const_iterator _iter592; - for (_iter592 = this->open_txns.begin(); _iter592 != this->open_txns.end(); ++_iter592) + std::vector ::const_iterator _iter600; + for (_iter600 = this->open_txns.begin(); _iter600 != this->open_txns.end(); ++_iter600) { - xfer += oprot->writeI64((*_iter592)); + xfer += oprot->writeI64((*_iter600)); } xfer += oprot->writeListEnd(); } @@ -13709,19 +13755,19 @@ void swap(GetOpenTxnsResponse &a, GetOpenTxnsResponse &b) { swap(a.__isset, b.__isset); } -GetOpenTxnsResponse::GetOpenTxnsResponse(const GetOpenTxnsResponse& other593) { - txn_high_water_mark = other593.txn_high_water_mark; - open_txns = other593.open_txns; - min_open_txn = other593.min_open_txn; - abortedBits = other593.abortedBits; - __isset = other593.__isset; +GetOpenTxnsResponse::GetOpenTxnsResponse(const GetOpenTxnsResponse& other601) { + txn_high_water_mark = other601.txn_high_water_mark; + open_txns = other601.open_txns; + min_open_txn = other601.min_open_txn; + abortedBits = other601.abortedBits; + __isset = other601.__isset; } -GetOpenTxnsResponse& GetOpenTxnsResponse::operator=(const GetOpenTxnsResponse& other594) { - txn_high_water_mark = other594.txn_high_water_mark; - open_txns = other594.open_txns; - min_open_txn = other594.min_open_txn; - abortedBits = other594.abortedBits; - __isset = other594.__isset; +GetOpenTxnsResponse& GetOpenTxnsResponse::operator=(const GetOpenTxnsResponse& other602) { + txn_high_water_mark = other602.txn_high_water_mark; + open_txns = other602.open_txns; + min_open_txn = other602.min_open_txn; + abortedBits = other602.abortedBits; + __isset = other602.__isset; return *this; } void GetOpenTxnsResponse::printTo(std::ostream& out) const { @@ -13866,19 +13912,19 @@ void swap(OpenTxnRequest &a, OpenTxnRequest &b) { swap(a.__isset, b.__isset); } -OpenTxnRequest::OpenTxnRequest(const OpenTxnRequest& other595) { - num_txns = other595.num_txns; - user = other595.user; - hostname = other595.hostname; - agentInfo = other595.agentInfo; - __isset = other595.__isset; +OpenTxnRequest::OpenTxnRequest(const OpenTxnRequest& other603) { + num_txns = other603.num_txns; + user = other603.user; + hostname = other603.hostname; + agentInfo = other603.agentInfo; + __isset = other603.__isset; } -OpenTxnRequest& OpenTxnRequest::operator=(const OpenTxnRequest& other596) { - num_txns = other596.num_txns; - user = other596.user; - hostname = other596.hostname; - agentInfo = other596.agentInfo; - __isset = other596.__isset; +OpenTxnRequest& OpenTxnRequest::operator=(const OpenTxnRequest& other604) { + num_txns = other604.num_txns; + user = other604.user; + hostname = other604.hostname; + agentInfo = other604.agentInfo; + __isset = other604.__isset; return *this; } void OpenTxnRequest::printTo(std::ostream& out) const { @@ -13926,14 +13972,14 @@ uint32_t OpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->txn_ids.clear(); - uint32_t _size597; - ::apache::thrift::protocol::TType _etype600; - xfer += iprot->readListBegin(_etype600, _size597); - this->txn_ids.resize(_size597); - uint32_t _i601; - for (_i601 = 0; _i601 < _size597; ++_i601) + uint32_t _size605; + ::apache::thrift::protocol::TType _etype608; + xfer += iprot->readListBegin(_etype608, _size605); + this->txn_ids.resize(_size605); + uint32_t _i609; + for (_i609 = 0; _i609 < _size605; ++_i609) { - xfer += iprot->readI64(this->txn_ids[_i601]); + xfer += iprot->readI64(this->txn_ids[_i609]); } xfer += iprot->readListEnd(); } @@ -13964,10 +14010,10 @@ uint32_t OpenTxnsResponse::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("txn_ids", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->txn_ids.size())); - std::vector ::const_iterator _iter602; - for (_iter602 = this->txn_ids.begin(); _iter602 != this->txn_ids.end(); ++_iter602) + std::vector ::const_iterator _iter610; + for (_iter610 = this->txn_ids.begin(); _iter610 != this->txn_ids.end(); ++_iter610) { - xfer += oprot->writeI64((*_iter602)); + xfer += oprot->writeI64((*_iter610)); } xfer += oprot->writeListEnd(); } @@ -13983,11 +14029,11 @@ void swap(OpenTxnsResponse &a, OpenTxnsResponse &b) { swap(a.txn_ids, b.txn_ids); } -OpenTxnsResponse::OpenTxnsResponse(const OpenTxnsResponse& other603) { - txn_ids = other603.txn_ids; +OpenTxnsResponse::OpenTxnsResponse(const OpenTxnsResponse& other611) { + txn_ids = other611.txn_ids; } -OpenTxnsResponse& OpenTxnsResponse::operator=(const OpenTxnsResponse& other604) { - txn_ids = other604.txn_ids; +OpenTxnsResponse& OpenTxnsResponse::operator=(const OpenTxnsResponse& other612) { + txn_ids = other612.txn_ids; return *this; } void OpenTxnsResponse::printTo(std::ostream& out) const { @@ -14069,11 +14115,11 @@ void swap(AbortTxnRequest &a, AbortTxnRequest &b) { swap(a.txnid, b.txnid); } -AbortTxnRequest::AbortTxnRequest(const AbortTxnRequest& other605) { - txnid = other605.txnid; +AbortTxnRequest::AbortTxnRequest(const AbortTxnRequest& other613) { + txnid = other613.txnid; } -AbortTxnRequest& AbortTxnRequest::operator=(const AbortTxnRequest& other606) { - txnid = other606.txnid; +AbortTxnRequest& AbortTxnRequest::operator=(const AbortTxnRequest& other614) { + txnid = other614.txnid; return *this; } void AbortTxnRequest::printTo(std::ostream& out) const { @@ -14118,14 +14164,14 @@ uint32_t AbortTxnsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->txn_ids.clear(); - uint32_t _size607; - ::apache::thrift::protocol::TType _etype610; - xfer += iprot->readListBegin(_etype610, _size607); - this->txn_ids.resize(_size607); - uint32_t _i611; - for (_i611 = 0; _i611 < _size607; ++_i611) + uint32_t _size615; + ::apache::thrift::protocol::TType _etype618; + xfer += iprot->readListBegin(_etype618, _size615); + this->txn_ids.resize(_size615); + uint32_t _i619; + for (_i619 = 0; _i619 < _size615; ++_i619) { - xfer += iprot->readI64(this->txn_ids[_i611]); + xfer += iprot->readI64(this->txn_ids[_i619]); } xfer += iprot->readListEnd(); } @@ -14156,10 +14202,10 @@ uint32_t AbortTxnsRequest::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("txn_ids", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->txn_ids.size())); - std::vector ::const_iterator _iter612; - for (_iter612 = this->txn_ids.begin(); _iter612 != this->txn_ids.end(); ++_iter612) + std::vector ::const_iterator _iter620; + for (_iter620 = this->txn_ids.begin(); _iter620 != this->txn_ids.end(); ++_iter620) { - xfer += oprot->writeI64((*_iter612)); + xfer += oprot->writeI64((*_iter620)); } xfer += oprot->writeListEnd(); } @@ -14175,11 +14221,11 @@ void swap(AbortTxnsRequest &a, AbortTxnsRequest &b) { swap(a.txn_ids, b.txn_ids); } -AbortTxnsRequest::AbortTxnsRequest(const AbortTxnsRequest& other613) { - txn_ids = other613.txn_ids; +AbortTxnsRequest::AbortTxnsRequest(const AbortTxnsRequest& other621) { + txn_ids = other621.txn_ids; } -AbortTxnsRequest& AbortTxnsRequest::operator=(const AbortTxnsRequest& other614) { - txn_ids = other614.txn_ids; +AbortTxnsRequest& AbortTxnsRequest::operator=(const AbortTxnsRequest& other622) { + txn_ids = other622.txn_ids; return *this; } void AbortTxnsRequest::printTo(std::ostream& out) const { @@ -14261,11 +14307,11 @@ void swap(CommitTxnRequest &a, CommitTxnRequest &b) { swap(a.txnid, b.txnid); } -CommitTxnRequest::CommitTxnRequest(const CommitTxnRequest& other615) { - txnid = other615.txnid; +CommitTxnRequest::CommitTxnRequest(const CommitTxnRequest& other623) { + txnid = other623.txnid; } -CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other616) { - txnid = other616.txnid; +CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other624) { + txnid = other624.txnid; return *this; } void CommitTxnRequest::printTo(std::ostream& out) const { @@ -14343,9 +14389,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast617; - xfer += iprot->readI32(ecast617); - this->type = (LockType::type)ecast617; + int32_t ecast625; + xfer += iprot->readI32(ecast625); + this->type = (LockType::type)ecast625; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -14353,9 +14399,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast618; - xfer += iprot->readI32(ecast618); - this->level = (LockLevel::type)ecast618; + int32_t ecast626; + xfer += iprot->readI32(ecast626); + this->level = (LockLevel::type)ecast626; isset_level = true; } else { xfer += iprot->skip(ftype); @@ -14387,9 +14433,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast619; - xfer += iprot->readI32(ecast619); - this->operationType = (DataOperationType::type)ecast619; + int32_t ecast627; + xfer += iprot->readI32(ecast627); + this->operationType = (DataOperationType::type)ecast627; this->__isset.operationType = true; } else { xfer += iprot->skip(ftype); @@ -14489,27 +14535,27 @@ void swap(LockComponent &a, LockComponent &b) { swap(a.__isset, b.__isset); } -LockComponent::LockComponent(const LockComponent& other620) { - type = other620.type; - level = other620.level; - dbname = other620.dbname; - tablename = other620.tablename; - partitionname = other620.partitionname; - operationType = other620.operationType; - isAcid = other620.isAcid; - isDynamicPartitionWrite = other620.isDynamicPartitionWrite; - __isset = other620.__isset; -} -LockComponent& LockComponent::operator=(const LockComponent& other621) { - type = other621.type; - level = other621.level; - dbname = other621.dbname; - tablename = other621.tablename; - partitionname = other621.partitionname; - operationType = other621.operationType; - isAcid = other621.isAcid; - isDynamicPartitionWrite = other621.isDynamicPartitionWrite; - __isset = other621.__isset; +LockComponent::LockComponent(const LockComponent& other628) { + type = other628.type; + level = other628.level; + dbname = other628.dbname; + tablename = other628.tablename; + partitionname = other628.partitionname; + operationType = other628.operationType; + isAcid = other628.isAcid; + isDynamicPartitionWrite = other628.isDynamicPartitionWrite; + __isset = other628.__isset; +} +LockComponent& LockComponent::operator=(const LockComponent& other629) { + type = other629.type; + level = other629.level; + dbname = other629.dbname; + tablename = other629.tablename; + partitionname = other629.partitionname; + operationType = other629.operationType; + isAcid = other629.isAcid; + isDynamicPartitionWrite = other629.isDynamicPartitionWrite; + __isset = other629.__isset; return *this; } void LockComponent::printTo(std::ostream& out) const { @@ -14581,14 +14627,14 @@ uint32_t LockRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->component.clear(); - uint32_t _size622; - ::apache::thrift::protocol::TType _etype625; - xfer += iprot->readListBegin(_etype625, _size622); - this->component.resize(_size622); - uint32_t _i626; - for (_i626 = 0; _i626 < _size622; ++_i626) + uint32_t _size630; + ::apache::thrift::protocol::TType _etype633; + xfer += iprot->readListBegin(_etype633, _size630); + this->component.resize(_size630); + uint32_t _i634; + for (_i634 = 0; _i634 < _size630; ++_i634) { - xfer += this->component[_i626].read(iprot); + xfer += this->component[_i634].read(iprot); } xfer += iprot->readListEnd(); } @@ -14655,10 +14701,10 @@ uint32_t LockRequest::write(::apache::thrift::protocol::TProtocol* oprot) const xfer += oprot->writeFieldBegin("component", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->component.size())); - std::vector ::const_iterator _iter627; - for (_iter627 = this->component.begin(); _iter627 != this->component.end(); ++_iter627) + std::vector ::const_iterator _iter635; + for (_iter635 = this->component.begin(); _iter635 != this->component.end(); ++_iter635) { - xfer += (*_iter627).write(oprot); + xfer += (*_iter635).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14697,21 +14743,21 @@ void swap(LockRequest &a, LockRequest &b) { swap(a.__isset, b.__isset); } -LockRequest::LockRequest(const LockRequest& other628) { - component = other628.component; - txnid = other628.txnid; - user = other628.user; - hostname = other628.hostname; - agentInfo = other628.agentInfo; - __isset = other628.__isset; -} -LockRequest& LockRequest::operator=(const LockRequest& other629) { - component = other629.component; - txnid = other629.txnid; - user = other629.user; - hostname = other629.hostname; - agentInfo = other629.agentInfo; - __isset = other629.__isset; +LockRequest::LockRequest(const LockRequest& other636) { + component = other636.component; + txnid = other636.txnid; + user = other636.user; + hostname = other636.hostname; + agentInfo = other636.agentInfo; + __isset = other636.__isset; +} +LockRequest& LockRequest::operator=(const LockRequest& other637) { + component = other637.component; + txnid = other637.txnid; + user = other637.user; + hostname = other637.hostname; + agentInfo = other637.agentInfo; + __isset = other637.__isset; return *this; } void LockRequest::printTo(std::ostream& out) const { @@ -14771,9 +14817,9 @@ uint32_t LockResponse::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast630; - xfer += iprot->readI32(ecast630); - this->state = (LockState::type)ecast630; + int32_t ecast638; + xfer += iprot->readI32(ecast638); + this->state = (LockState::type)ecast638; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -14819,13 +14865,13 @@ void swap(LockResponse &a, LockResponse &b) { swap(a.state, b.state); } -LockResponse::LockResponse(const LockResponse& other631) { - lockid = other631.lockid; - state = other631.state; +LockResponse::LockResponse(const LockResponse& other639) { + lockid = other639.lockid; + state = other639.state; } -LockResponse& LockResponse::operator=(const LockResponse& other632) { - lockid = other632.lockid; - state = other632.state; +LockResponse& LockResponse::operator=(const LockResponse& other640) { + lockid = other640.lockid; + state = other640.state; return *this; } void LockResponse::printTo(std::ostream& out) const { @@ -14947,17 +14993,17 @@ void swap(CheckLockRequest &a, CheckLockRequest &b) { swap(a.__isset, b.__isset); } -CheckLockRequest::CheckLockRequest(const CheckLockRequest& other633) { - lockid = other633.lockid; - txnid = other633.txnid; - elapsed_ms = other633.elapsed_ms; - __isset = other633.__isset; +CheckLockRequest::CheckLockRequest(const CheckLockRequest& other641) { + lockid = other641.lockid; + txnid = other641.txnid; + elapsed_ms = other641.elapsed_ms; + __isset = other641.__isset; } -CheckLockRequest& CheckLockRequest::operator=(const CheckLockRequest& other634) { - lockid = other634.lockid; - txnid = other634.txnid; - elapsed_ms = other634.elapsed_ms; - __isset = other634.__isset; +CheckLockRequest& CheckLockRequest::operator=(const CheckLockRequest& other642) { + lockid = other642.lockid; + txnid = other642.txnid; + elapsed_ms = other642.elapsed_ms; + __isset = other642.__isset; return *this; } void CheckLockRequest::printTo(std::ostream& out) const { @@ -15041,11 +15087,11 @@ void swap(UnlockRequest &a, UnlockRequest &b) { swap(a.lockid, b.lockid); } -UnlockRequest::UnlockRequest(const UnlockRequest& other635) { - lockid = other635.lockid; +UnlockRequest::UnlockRequest(const UnlockRequest& other643) { + lockid = other643.lockid; } -UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other636) { - lockid = other636.lockid; +UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other644) { + lockid = other644.lockid; return *this; } void UnlockRequest::printTo(std::ostream& out) const { @@ -15184,19 +15230,19 @@ void swap(ShowLocksRequest &a, ShowLocksRequest &b) { swap(a.__isset, b.__isset); } -ShowLocksRequest::ShowLocksRequest(const ShowLocksRequest& other637) { - dbname = other637.dbname; - tablename = other637.tablename; - partname = other637.partname; - isExtended = other637.isExtended; - __isset = other637.__isset; +ShowLocksRequest::ShowLocksRequest(const ShowLocksRequest& other645) { + dbname = other645.dbname; + tablename = other645.tablename; + partname = other645.partname; + isExtended = other645.isExtended; + __isset = other645.__isset; } -ShowLocksRequest& ShowLocksRequest::operator=(const ShowLocksRequest& other638) { - dbname = other638.dbname; - tablename = other638.tablename; - partname = other638.partname; - isExtended = other638.isExtended; - __isset = other638.__isset; +ShowLocksRequest& ShowLocksRequest::operator=(const ShowLocksRequest& other646) { + dbname = other646.dbname; + tablename = other646.tablename; + partname = other646.partname; + isExtended = other646.isExtended; + __isset = other646.__isset; return *this; } void ShowLocksRequest::printTo(std::ostream& out) const { @@ -15349,9 +15395,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast639; - xfer += iprot->readI32(ecast639); - this->state = (LockState::type)ecast639; + int32_t ecast647; + xfer += iprot->readI32(ecast647); + this->state = (LockState::type)ecast647; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -15359,9 +15405,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast640; - xfer += iprot->readI32(ecast640); - this->type = (LockType::type)ecast640; + int32_t ecast648; + xfer += iprot->readI32(ecast648); + this->type = (LockType::type)ecast648; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -15577,43 +15623,43 @@ void swap(ShowLocksResponseElement &a, ShowLocksResponseElement &b) { swap(a.__isset, b.__isset); } -ShowLocksResponseElement::ShowLocksResponseElement(const ShowLocksResponseElement& other641) { - lockid = other641.lockid; - dbname = other641.dbname; - tablename = other641.tablename; - partname = other641.partname; - state = other641.state; - type = other641.type; - txnid = other641.txnid; - lastheartbeat = other641.lastheartbeat; - acquiredat = other641.acquiredat; - user = other641.user; - hostname = other641.hostname; - heartbeatCount = other641.heartbeatCount; - agentInfo = other641.agentInfo; - blockedByExtId = other641.blockedByExtId; - blockedByIntId = other641.blockedByIntId; - lockIdInternal = other641.lockIdInternal; - __isset = other641.__isset; +ShowLocksResponseElement::ShowLocksResponseElement(const ShowLocksResponseElement& other649) { + lockid = other649.lockid; + dbname = other649.dbname; + tablename = other649.tablename; + partname = other649.partname; + state = other649.state; + type = other649.type; + txnid = other649.txnid; + lastheartbeat = other649.lastheartbeat; + acquiredat = other649.acquiredat; + user = other649.user; + hostname = other649.hostname; + heartbeatCount = other649.heartbeatCount; + agentInfo = other649.agentInfo; + blockedByExtId = other649.blockedByExtId; + blockedByIntId = other649.blockedByIntId; + lockIdInternal = other649.lockIdInternal; + __isset = other649.__isset; } -ShowLocksResponseElement& ShowLocksResponseElement::operator=(const ShowLocksResponseElement& other642) { - lockid = other642.lockid; - dbname = other642.dbname; - tablename = other642.tablename; - partname = other642.partname; - state = other642.state; - type = other642.type; - txnid = other642.txnid; - lastheartbeat = other642.lastheartbeat; - acquiredat = other642.acquiredat; - user = other642.user; - hostname = other642.hostname; - heartbeatCount = other642.heartbeatCount; - agentInfo = other642.agentInfo; - blockedByExtId = other642.blockedByExtId; - blockedByIntId = other642.blockedByIntId; - lockIdInternal = other642.lockIdInternal; - __isset = other642.__isset; +ShowLocksResponseElement& ShowLocksResponseElement::operator=(const ShowLocksResponseElement& other650) { + lockid = other650.lockid; + dbname = other650.dbname; + tablename = other650.tablename; + partname = other650.partname; + state = other650.state; + type = other650.type; + txnid = other650.txnid; + lastheartbeat = other650.lastheartbeat; + acquiredat = other650.acquiredat; + user = other650.user; + hostname = other650.hostname; + heartbeatCount = other650.heartbeatCount; + agentInfo = other650.agentInfo; + blockedByExtId = other650.blockedByExtId; + blockedByIntId = other650.blockedByIntId; + lockIdInternal = other650.lockIdInternal; + __isset = other650.__isset; return *this; } void ShowLocksResponseElement::printTo(std::ostream& out) const { @@ -15672,14 +15718,14 @@ uint32_t ShowLocksResponse::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->locks.clear(); - uint32_t _size643; - ::apache::thrift::protocol::TType _etype646; - xfer += iprot->readListBegin(_etype646, _size643); - this->locks.resize(_size643); - uint32_t _i647; - for (_i647 = 0; _i647 < _size643; ++_i647) + uint32_t _size651; + ::apache::thrift::protocol::TType _etype654; + xfer += iprot->readListBegin(_etype654, _size651); + this->locks.resize(_size651); + uint32_t _i655; + for (_i655 = 0; _i655 < _size651; ++_i655) { - xfer += this->locks[_i647].read(iprot); + xfer += this->locks[_i655].read(iprot); } xfer += iprot->readListEnd(); } @@ -15708,10 +15754,10 @@ uint32_t ShowLocksResponse::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("locks", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->locks.size())); - std::vector ::const_iterator _iter648; - for (_iter648 = this->locks.begin(); _iter648 != this->locks.end(); ++_iter648) + std::vector ::const_iterator _iter656; + for (_iter656 = this->locks.begin(); _iter656 != this->locks.end(); ++_iter656) { - xfer += (*_iter648).write(oprot); + xfer += (*_iter656).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15728,13 +15774,13 @@ void swap(ShowLocksResponse &a, ShowLocksResponse &b) { swap(a.__isset, b.__isset); } -ShowLocksResponse::ShowLocksResponse(const ShowLocksResponse& other649) { - locks = other649.locks; - __isset = other649.__isset; +ShowLocksResponse::ShowLocksResponse(const ShowLocksResponse& other657) { + locks = other657.locks; + __isset = other657.__isset; } -ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other650) { - locks = other650.locks; - __isset = other650.__isset; +ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other658) { + locks = other658.locks; + __isset = other658.__isset; return *this; } void ShowLocksResponse::printTo(std::ostream& out) const { @@ -15835,15 +15881,15 @@ void swap(HeartbeatRequest &a, HeartbeatRequest &b) { swap(a.__isset, b.__isset); } -HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& other651) { - lockid = other651.lockid; - txnid = other651.txnid; - __isset = other651.__isset; +HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& other659) { + lockid = other659.lockid; + txnid = other659.txnid; + __isset = other659.__isset; } -HeartbeatRequest& HeartbeatRequest::operator=(const HeartbeatRequest& other652) { - lockid = other652.lockid; - txnid = other652.txnid; - __isset = other652.__isset; +HeartbeatRequest& HeartbeatRequest::operator=(const HeartbeatRequest& other660) { + lockid = other660.lockid; + txnid = other660.txnid; + __isset = other660.__isset; return *this; } void HeartbeatRequest::printTo(std::ostream& out) const { @@ -15946,13 +15992,13 @@ void swap(HeartbeatTxnRangeRequest &a, HeartbeatTxnRangeRequest &b) { swap(a.max, b.max); } -HeartbeatTxnRangeRequest::HeartbeatTxnRangeRequest(const HeartbeatTxnRangeRequest& other653) { - min = other653.min; - max = other653.max; +HeartbeatTxnRangeRequest::HeartbeatTxnRangeRequest(const HeartbeatTxnRangeRequest& other661) { + min = other661.min; + max = other661.max; } -HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other654) { - min = other654.min; - max = other654.max; +HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other662) { + min = other662.min; + max = other662.max; return *this; } void HeartbeatTxnRangeRequest::printTo(std::ostream& out) const { @@ -16003,15 +16049,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_SET) { { this->aborted.clear(); - uint32_t _size655; - ::apache::thrift::protocol::TType _etype658; - xfer += iprot->readSetBegin(_etype658, _size655); - uint32_t _i659; - for (_i659 = 0; _i659 < _size655; ++_i659) + uint32_t _size663; + ::apache::thrift::protocol::TType _etype666; + xfer += iprot->readSetBegin(_etype666, _size663); + uint32_t _i667; + for (_i667 = 0; _i667 < _size663; ++_i667) { - int64_t _elem660; - xfer += iprot->readI64(_elem660); - this->aborted.insert(_elem660); + int64_t _elem668; + xfer += iprot->readI64(_elem668); + this->aborted.insert(_elem668); } xfer += iprot->readSetEnd(); } @@ -16024,15 +16070,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_SET) { { this->nosuch.clear(); - uint32_t _size661; - ::apache::thrift::protocol::TType _etype664; - xfer += iprot->readSetBegin(_etype664, _size661); - uint32_t _i665; - for (_i665 = 0; _i665 < _size661; ++_i665) + uint32_t _size669; + ::apache::thrift::protocol::TType _etype672; + xfer += iprot->readSetBegin(_etype672, _size669); + uint32_t _i673; + for (_i673 = 0; _i673 < _size669; ++_i673) { - int64_t _elem666; - xfer += iprot->readI64(_elem666); - this->nosuch.insert(_elem666); + int64_t _elem674; + xfer += iprot->readI64(_elem674); + this->nosuch.insert(_elem674); } xfer += iprot->readSetEnd(); } @@ -16065,10 +16111,10 @@ uint32_t HeartbeatTxnRangeResponse::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("aborted", ::apache::thrift::protocol::T_SET, 1); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I64, static_cast(this->aborted.size())); - std::set ::const_iterator _iter667; - for (_iter667 = this->aborted.begin(); _iter667 != this->aborted.end(); ++_iter667) + std::set ::const_iterator _iter675; + for (_iter675 = this->aborted.begin(); _iter675 != this->aborted.end(); ++_iter675) { - xfer += oprot->writeI64((*_iter667)); + xfer += oprot->writeI64((*_iter675)); } xfer += oprot->writeSetEnd(); } @@ -16077,10 +16123,10 @@ uint32_t HeartbeatTxnRangeResponse::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("nosuch", ::apache::thrift::protocol::T_SET, 2); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I64, static_cast(this->nosuch.size())); - std::set ::const_iterator _iter668; - for (_iter668 = this->nosuch.begin(); _iter668 != this->nosuch.end(); ++_iter668) + std::set ::const_iterator _iter676; + for (_iter676 = this->nosuch.begin(); _iter676 != this->nosuch.end(); ++_iter676) { - xfer += oprot->writeI64((*_iter668)); + xfer += oprot->writeI64((*_iter676)); } xfer += oprot->writeSetEnd(); } @@ -16097,13 +16143,13 @@ void swap(HeartbeatTxnRangeResponse &a, HeartbeatTxnRangeResponse &b) { swap(a.nosuch, b.nosuch); } -HeartbeatTxnRangeResponse::HeartbeatTxnRangeResponse(const HeartbeatTxnRangeResponse& other669) { - aborted = other669.aborted; - nosuch = other669.nosuch; +HeartbeatTxnRangeResponse::HeartbeatTxnRangeResponse(const HeartbeatTxnRangeResponse& other677) { + aborted = other677.aborted; + nosuch = other677.nosuch; } -HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other670) { - aborted = other670.aborted; - nosuch = other670.nosuch; +HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other678) { + aborted = other678.aborted; + nosuch = other678.nosuch; return *this; } void HeartbeatTxnRangeResponse::printTo(std::ostream& out) const { @@ -16196,9 +16242,9 @@ uint32_t CompactionRequest::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast671; - xfer += iprot->readI32(ecast671); - this->type = (CompactionType::type)ecast671; + int32_t ecast679; + xfer += iprot->readI32(ecast679); + this->type = (CompactionType::type)ecast679; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -16216,17 +16262,17 @@ uint32_t CompactionRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->properties.clear(); - uint32_t _size672; - ::apache::thrift::protocol::TType _ktype673; - ::apache::thrift::protocol::TType _vtype674; - xfer += iprot->readMapBegin(_ktype673, _vtype674, _size672); - uint32_t _i676; - for (_i676 = 0; _i676 < _size672; ++_i676) + uint32_t _size680; + ::apache::thrift::protocol::TType _ktype681; + ::apache::thrift::protocol::TType _vtype682; + xfer += iprot->readMapBegin(_ktype681, _vtype682, _size680); + uint32_t _i684; + for (_i684 = 0; _i684 < _size680; ++_i684) { - std::string _key677; - xfer += iprot->readString(_key677); - std::string& _val678 = this->properties[_key677]; - xfer += iprot->readString(_val678); + std::string _key685; + xfer += iprot->readString(_key685); + std::string& _val686 = this->properties[_key685]; + xfer += iprot->readString(_val686); } xfer += iprot->readMapEnd(); } @@ -16284,11 +16330,11 @@ uint32_t CompactionRequest::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("properties", ::apache::thrift::protocol::T_MAP, 6); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->properties.size())); - std::map ::const_iterator _iter679; - for (_iter679 = this->properties.begin(); _iter679 != this->properties.end(); ++_iter679) + std::map ::const_iterator _iter687; + for (_iter687 = this->properties.begin(); _iter687 != this->properties.end(); ++_iter687) { - xfer += oprot->writeString(_iter679->first); - xfer += oprot->writeString(_iter679->second); + xfer += oprot->writeString(_iter687->first); + xfer += oprot->writeString(_iter687->second); } xfer += oprot->writeMapEnd(); } @@ -16310,23 +16356,23 @@ void swap(CompactionRequest &a, CompactionRequest &b) { swap(a.__isset, b.__isset); } -CompactionRequest::CompactionRequest(const CompactionRequest& other680) { - dbname = other680.dbname; - tablename = other680.tablename; - partitionname = other680.partitionname; - type = other680.type; - runas = other680.runas; - properties = other680.properties; - __isset = other680.__isset; -} -CompactionRequest& CompactionRequest::operator=(const CompactionRequest& other681) { - dbname = other681.dbname; - tablename = other681.tablename; - partitionname = other681.partitionname; - type = other681.type; - runas = other681.runas; - properties = other681.properties; - __isset = other681.__isset; +CompactionRequest::CompactionRequest(const CompactionRequest& other688) { + dbname = other688.dbname; + tablename = other688.tablename; + partitionname = other688.partitionname; + type = other688.type; + runas = other688.runas; + properties = other688.properties; + __isset = other688.__isset; +} +CompactionRequest& CompactionRequest::operator=(const CompactionRequest& other689) { + dbname = other689.dbname; + tablename = other689.tablename; + partitionname = other689.partitionname; + type = other689.type; + runas = other689.runas; + properties = other689.properties; + __isset = other689.__isset; return *this; } void CompactionRequest::printTo(std::ostream& out) const { @@ -16453,15 +16499,15 @@ void swap(CompactionResponse &a, CompactionResponse &b) { swap(a.accepted, b.accepted); } -CompactionResponse::CompactionResponse(const CompactionResponse& other682) { - id = other682.id; - state = other682.state; - accepted = other682.accepted; +CompactionResponse::CompactionResponse(const CompactionResponse& other690) { + id = other690.id; + state = other690.state; + accepted = other690.accepted; } -CompactionResponse& CompactionResponse::operator=(const CompactionResponse& other683) { - id = other683.id; - state = other683.state; - accepted = other683.accepted; +CompactionResponse& CompactionResponse::operator=(const CompactionResponse& other691) { + id = other691.id; + state = other691.state; + accepted = other691.accepted; return *this; } void CompactionResponse::printTo(std::ostream& out) const { @@ -16522,11 +16568,11 @@ void swap(ShowCompactRequest &a, ShowCompactRequest &b) { (void) b; } -ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other684) { - (void) other684; +ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other692) { + (void) other692; } -ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other685) { - (void) other685; +ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other693) { + (void) other693; return *this; } void ShowCompactRequest::printTo(std::ostream& out) const { @@ -16652,9 +16698,9 @@ uint32_t ShowCompactResponseElement::read(::apache::thrift::protocol::TProtocol* break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast686; - xfer += iprot->readI32(ecast686); - this->type = (CompactionType::type)ecast686; + int32_t ecast694; + xfer += iprot->readI32(ecast694); + this->type = (CompactionType::type)ecast694; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -16841,37 +16887,37 @@ void swap(ShowCompactResponseElement &a, ShowCompactResponseElement &b) { swap(a.__isset, b.__isset); } -ShowCompactResponseElement::ShowCompactResponseElement(const ShowCompactResponseElement& other687) { - dbname = other687.dbname; - tablename = other687.tablename; - partitionname = other687.partitionname; - type = other687.type; - state = other687.state; - workerid = other687.workerid; - start = other687.start; - runAs = other687.runAs; - hightestTxnId = other687.hightestTxnId; - metaInfo = other687.metaInfo; - endTime = other687.endTime; - hadoopJobId = other687.hadoopJobId; - id = other687.id; - __isset = other687.__isset; -} -ShowCompactResponseElement& ShowCompactResponseElement::operator=(const ShowCompactResponseElement& other688) { - dbname = other688.dbname; - tablename = other688.tablename; - partitionname = other688.partitionname; - type = other688.type; - state = other688.state; - workerid = other688.workerid; - start = other688.start; - runAs = other688.runAs; - hightestTxnId = other688.hightestTxnId; - metaInfo = other688.metaInfo; - endTime = other688.endTime; - hadoopJobId = other688.hadoopJobId; - id = other688.id; - __isset = other688.__isset; +ShowCompactResponseElement::ShowCompactResponseElement(const ShowCompactResponseElement& other695) { + dbname = other695.dbname; + tablename = other695.tablename; + partitionname = other695.partitionname; + type = other695.type; + state = other695.state; + workerid = other695.workerid; + start = other695.start; + runAs = other695.runAs; + hightestTxnId = other695.hightestTxnId; + metaInfo = other695.metaInfo; + endTime = other695.endTime; + hadoopJobId = other695.hadoopJobId; + id = other695.id; + __isset = other695.__isset; +} +ShowCompactResponseElement& ShowCompactResponseElement::operator=(const ShowCompactResponseElement& other696) { + dbname = other696.dbname; + tablename = other696.tablename; + partitionname = other696.partitionname; + type = other696.type; + state = other696.state; + workerid = other696.workerid; + start = other696.start; + runAs = other696.runAs; + hightestTxnId = other696.hightestTxnId; + metaInfo = other696.metaInfo; + endTime = other696.endTime; + hadoopJobId = other696.hadoopJobId; + id = other696.id; + __isset = other696.__isset; return *this; } void ShowCompactResponseElement::printTo(std::ostream& out) const { @@ -16928,14 +16974,14 @@ uint32_t ShowCompactResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->compacts.clear(); - uint32_t _size689; - ::apache::thrift::protocol::TType _etype692; - xfer += iprot->readListBegin(_etype692, _size689); - this->compacts.resize(_size689); - uint32_t _i693; - for (_i693 = 0; _i693 < _size689; ++_i693) + uint32_t _size697; + ::apache::thrift::protocol::TType _etype700; + xfer += iprot->readListBegin(_etype700, _size697); + this->compacts.resize(_size697); + uint32_t _i701; + for (_i701 = 0; _i701 < _size697; ++_i701) { - xfer += this->compacts[_i693].read(iprot); + xfer += this->compacts[_i701].read(iprot); } xfer += iprot->readListEnd(); } @@ -16966,10 +17012,10 @@ uint32_t ShowCompactResponse::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldBegin("compacts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->compacts.size())); - std::vector ::const_iterator _iter694; - for (_iter694 = this->compacts.begin(); _iter694 != this->compacts.end(); ++_iter694) + std::vector ::const_iterator _iter702; + for (_iter702 = this->compacts.begin(); _iter702 != this->compacts.end(); ++_iter702) { - xfer += (*_iter694).write(oprot); + xfer += (*_iter702).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16985,11 +17031,11 @@ void swap(ShowCompactResponse &a, ShowCompactResponse &b) { swap(a.compacts, b.compacts); } -ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other695) { - compacts = other695.compacts; +ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other703) { + compacts = other703.compacts; } -ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other696) { - compacts = other696.compacts; +ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other704) { + compacts = other704.compacts; return *this; } void ShowCompactResponse::printTo(std::ostream& out) const { @@ -17078,14 +17124,14 @@ uint32_t AddDynamicPartitions::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionnames.clear(); - uint32_t _size697; - ::apache::thrift::protocol::TType _etype700; - xfer += iprot->readListBegin(_etype700, _size697); - this->partitionnames.resize(_size697); - uint32_t _i701; - for (_i701 = 0; _i701 < _size697; ++_i701) + uint32_t _size705; + ::apache::thrift::protocol::TType _etype708; + xfer += iprot->readListBegin(_etype708, _size705); + this->partitionnames.resize(_size705); + uint32_t _i709; + for (_i709 = 0; _i709 < _size705; ++_i709) { - xfer += iprot->readString(this->partitionnames[_i701]); + xfer += iprot->readString(this->partitionnames[_i709]); } xfer += iprot->readListEnd(); } @@ -17096,9 +17142,9 @@ uint32_t AddDynamicPartitions::read(::apache::thrift::protocol::TProtocol* iprot break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast702; - xfer += iprot->readI32(ecast702); - this->operationType = (DataOperationType::type)ecast702; + int32_t ecast710; + xfer += iprot->readI32(ecast710); + this->operationType = (DataOperationType::type)ecast710; this->__isset.operationType = true; } else { xfer += iprot->skip(ftype); @@ -17143,61 +17189,393 @@ uint32_t AddDynamicPartitions::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldBegin("partitionnames", ::apache::thrift::protocol::T_LIST, 4); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partitionnames.size())); - std::vector ::const_iterator _iter703; - for (_iter703 = this->partitionnames.begin(); _iter703 != this->partitionnames.end(); ++_iter703) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partitionnames.size())); + std::vector ::const_iterator _iter711; + for (_iter711 = this->partitionnames.begin(); _iter711 != this->partitionnames.end(); ++_iter711) + { + xfer += oprot->writeString((*_iter711)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + if (this->__isset.operationType) { + xfer += oprot->writeFieldBegin("operationType", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32((int32_t)this->operationType); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(AddDynamicPartitions &a, AddDynamicPartitions &b) { + using ::std::swap; + swap(a.txnid, b.txnid); + swap(a.dbname, b.dbname); + swap(a.tablename, b.tablename); + swap(a.partitionnames, b.partitionnames); + swap(a.operationType, b.operationType); + swap(a.__isset, b.__isset); +} + +AddDynamicPartitions::AddDynamicPartitions(const AddDynamicPartitions& other712) { + txnid = other712.txnid; + dbname = other712.dbname; + tablename = other712.tablename; + partitionnames = other712.partitionnames; + operationType = other712.operationType; + __isset = other712.__isset; +} +AddDynamicPartitions& AddDynamicPartitions::operator=(const AddDynamicPartitions& other713) { + txnid = other713.txnid; + dbname = other713.dbname; + tablename = other713.tablename; + partitionnames = other713.partitionnames; + operationType = other713.operationType; + __isset = other713.__isset; + return *this; +} +void AddDynamicPartitions::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "AddDynamicPartitions("; + out << "txnid=" << to_string(txnid); + out << ", " << "dbname=" << to_string(dbname); + out << ", " << "tablename=" << to_string(tablename); + out << ", " << "partitionnames=" << to_string(partitionnames); + out << ", " << "operationType="; (__isset.operationType ? (out << to_string(operationType)) : (out << "")); + out << ")"; +} + + +BasicTxnInfo::~BasicTxnInfo() throw() { +} + + +void BasicTxnInfo::__set_id(const int64_t val) { + this->id = val; +} + +void BasicTxnInfo::__set_time(const int64_t val) { + this->time = val; +} + +void BasicTxnInfo::__set_txnid(const int64_t val) { + this->txnid = val; +} + +void BasicTxnInfo::__set_dbname(const std::string& val) { + this->dbname = val; +} + +void BasicTxnInfo::__set_tablename(const std::string& val) { + this->tablename = val; +} + +void BasicTxnInfo::__set_partitionname(const std::string& val) { + this->partitionname = val; +__isset.partitionname = true; +} + +uint32_t BasicTxnInfo::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_id = false; + bool isset_time = false; + bool isset_txnid = false; + bool isset_dbname = false; + bool isset_tablename = 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->id); + isset_id = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->time); + isset_time = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->txnid); + isset_txnid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->dbname); + isset_dbname = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->tablename); + isset_tablename = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->partitionname); + this->__isset.partitionname = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_id) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_time) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_txnid) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_dbname) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_tablename) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t BasicTxnInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("BasicTxnInfo"); + + xfer += oprot->writeFieldBegin("id", ::apache::thrift::protocol::T_I64, 1); + xfer += oprot->writeI64(this->id); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("time", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->time); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("txnid", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->txnid); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->dbname); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tablename", ::apache::thrift::protocol::T_STRING, 5); + xfer += oprot->writeString(this->tablename); + xfer += oprot->writeFieldEnd(); + + if (this->__isset.partitionname) { + xfer += oprot->writeFieldBegin("partitionname", ::apache::thrift::protocol::T_STRING, 6); + xfer += oprot->writeString(this->partitionname); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(BasicTxnInfo &a, BasicTxnInfo &b) { + using ::std::swap; + swap(a.id, b.id); + swap(a.time, b.time); + swap(a.txnid, b.txnid); + swap(a.dbname, b.dbname); + swap(a.tablename, b.tablename); + swap(a.partitionname, b.partitionname); + swap(a.__isset, b.__isset); +} + +BasicTxnInfo::BasicTxnInfo(const BasicTxnInfo& other714) { + id = other714.id; + time = other714.time; + txnid = other714.txnid; + dbname = other714.dbname; + tablename = other714.tablename; + partitionname = other714.partitionname; + __isset = other714.__isset; +} +BasicTxnInfo& BasicTxnInfo::operator=(const BasicTxnInfo& other715) { + id = other715.id; + time = other715.time; + txnid = other715.txnid; + dbname = other715.dbname; + tablename = other715.tablename; + partitionname = other715.partitionname; + __isset = other715.__isset; + return *this; +} +void BasicTxnInfo::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "BasicTxnInfo("; + out << "id=" << to_string(id); + out << ", " << "time=" << to_string(time); + out << ", " << "txnid=" << to_string(txnid); + out << ", " << "dbname=" << to_string(dbname); + out << ", " << "tablename=" << to_string(tablename); + out << ", " << "partitionname="; (__isset.partitionname ? (out << to_string(partitionname)) : (out << "")); + out << ")"; +} + + +TxnsSnapshot::~TxnsSnapshot() throw() { +} + + +void TxnsSnapshot::__set_txn_high_water_mark(const int64_t val) { + this->txn_high_water_mark = val; +} + +void TxnsSnapshot::__set_open_txns(const std::vector & val) { + this->open_txns = val; +} + +uint32_t TxnsSnapshot::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_txn_high_water_mark = false; + bool isset_open_txns = 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->txn_high_water_mark); + isset_txn_high_water_mark = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->open_txns.clear(); + uint32_t _size716; + ::apache::thrift::protocol::TType _etype719; + xfer += iprot->readListBegin(_etype719, _size716); + this->open_txns.resize(_size716); + uint32_t _i720; + for (_i720 = 0; _i720 < _size716; ++_i720) + { + xfer += iprot->readI64(this->open_txns[_i720]); + } + xfer += iprot->readListEnd(); + } + isset_open_txns = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_txn_high_water_mark) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_open_txns) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t TxnsSnapshot::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("TxnsSnapshot"); + + xfer += oprot->writeFieldBegin("txn_high_water_mark", ::apache::thrift::protocol::T_I64, 1); + xfer += oprot->writeI64(this->txn_high_water_mark); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("open_txns", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->open_txns.size())); + std::vector ::const_iterator _iter721; + for (_iter721 = this->open_txns.begin(); _iter721 != this->open_txns.end(); ++_iter721) { - xfer += oprot->writeString((*_iter703)); + xfer += oprot->writeI64((*_iter721)); } xfer += oprot->writeListEnd(); } xfer += oprot->writeFieldEnd(); - if (this->__isset.operationType) { - xfer += oprot->writeFieldBegin("operationType", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32((int32_t)this->operationType); - xfer += oprot->writeFieldEnd(); - } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -void swap(AddDynamicPartitions &a, AddDynamicPartitions &b) { +void swap(TxnsSnapshot &a, TxnsSnapshot &b) { using ::std::swap; - swap(a.txnid, b.txnid); - swap(a.dbname, b.dbname); - swap(a.tablename, b.tablename); - swap(a.partitionnames, b.partitionnames); - swap(a.operationType, b.operationType); - swap(a.__isset, b.__isset); + swap(a.txn_high_water_mark, b.txn_high_water_mark); + swap(a.open_txns, b.open_txns); } -AddDynamicPartitions::AddDynamicPartitions(const AddDynamicPartitions& other704) { - txnid = other704.txnid; - dbname = other704.dbname; - tablename = other704.tablename; - partitionnames = other704.partitionnames; - operationType = other704.operationType; - __isset = other704.__isset; -} -AddDynamicPartitions& AddDynamicPartitions::operator=(const AddDynamicPartitions& other705) { - txnid = other705.txnid; - dbname = other705.dbname; - tablename = other705.tablename; - partitionnames = other705.partitionnames; - operationType = other705.operationType; - __isset = other705.__isset; +TxnsSnapshot::TxnsSnapshot(const TxnsSnapshot& other722) { + txn_high_water_mark = other722.txn_high_water_mark; + open_txns = other722.open_txns; +} +TxnsSnapshot& TxnsSnapshot::operator=(const TxnsSnapshot& other723) { + txn_high_water_mark = other723.txn_high_water_mark; + open_txns = other723.open_txns; return *this; } -void AddDynamicPartitions::printTo(std::ostream& out) const { +void TxnsSnapshot::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "AddDynamicPartitions("; - out << "txnid=" << to_string(txnid); - out << ", " << "dbname=" << to_string(dbname); - out << ", " << "tablename=" << to_string(tablename); - out << ", " << "partitionnames=" << to_string(partitionnames); - out << ", " << "operationType="; (__isset.operationType ? (out << to_string(operationType)) : (out << "")); + out << "TxnsSnapshot("; + out << "txn_high_water_mark=" << to_string(txn_high_water_mark); + out << ", " << "open_txns=" << to_string(open_txns); out << ")"; } @@ -17293,15 +17671,15 @@ void swap(NotificationEventRequest &a, NotificationEventRequest &b) { swap(a.__isset, b.__isset); } -NotificationEventRequest::NotificationEventRequest(const NotificationEventRequest& other706) { - lastEvent = other706.lastEvent; - maxEvents = other706.maxEvents; - __isset = other706.__isset; +NotificationEventRequest::NotificationEventRequest(const NotificationEventRequest& other724) { + lastEvent = other724.lastEvent; + maxEvents = other724.maxEvents; + __isset = other724.__isset; } -NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other707) { - lastEvent = other707.lastEvent; - maxEvents = other707.maxEvents; - __isset = other707.__isset; +NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other725) { + lastEvent = other725.lastEvent; + maxEvents = other725.maxEvents; + __isset = other725.__isset; return *this; } void NotificationEventRequest::printTo(std::ostream& out) const { @@ -17502,25 +17880,25 @@ void swap(NotificationEvent &a, NotificationEvent &b) { swap(a.__isset, b.__isset); } -NotificationEvent::NotificationEvent(const NotificationEvent& other708) { - eventId = other708.eventId; - eventTime = other708.eventTime; - eventType = other708.eventType; - dbName = other708.dbName; - tableName = other708.tableName; - message = other708.message; - messageFormat = other708.messageFormat; - __isset = other708.__isset; -} -NotificationEvent& NotificationEvent::operator=(const NotificationEvent& other709) { - eventId = other709.eventId; - eventTime = other709.eventTime; - eventType = other709.eventType; - dbName = other709.dbName; - tableName = other709.tableName; - message = other709.message; - messageFormat = other709.messageFormat; - __isset = other709.__isset; +NotificationEvent::NotificationEvent(const NotificationEvent& other726) { + eventId = other726.eventId; + eventTime = other726.eventTime; + eventType = other726.eventType; + dbName = other726.dbName; + tableName = other726.tableName; + message = other726.message; + messageFormat = other726.messageFormat; + __isset = other726.__isset; +} +NotificationEvent& NotificationEvent::operator=(const NotificationEvent& other727) { + eventId = other727.eventId; + eventTime = other727.eventTime; + eventType = other727.eventType; + dbName = other727.dbName; + tableName = other727.tableName; + message = other727.message; + messageFormat = other727.messageFormat; + __isset = other727.__isset; return *this; } void NotificationEvent::printTo(std::ostream& out) const { @@ -17571,14 +17949,14 @@ uint32_t NotificationEventResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->events.clear(); - uint32_t _size710; - ::apache::thrift::protocol::TType _etype713; - xfer += iprot->readListBegin(_etype713, _size710); - this->events.resize(_size710); - uint32_t _i714; - for (_i714 = 0; _i714 < _size710; ++_i714) + uint32_t _size728; + ::apache::thrift::protocol::TType _etype731; + xfer += iprot->readListBegin(_etype731, _size728); + this->events.resize(_size728); + uint32_t _i732; + for (_i732 = 0; _i732 < _size728; ++_i732) { - xfer += this->events[_i714].read(iprot); + xfer += this->events[_i732].read(iprot); } xfer += iprot->readListEnd(); } @@ -17609,10 +17987,10 @@ uint32_t NotificationEventResponse::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("events", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->events.size())); - std::vector ::const_iterator _iter715; - for (_iter715 = this->events.begin(); _iter715 != this->events.end(); ++_iter715) + std::vector ::const_iterator _iter733; + for (_iter733 = this->events.begin(); _iter733 != this->events.end(); ++_iter733) { - xfer += (*_iter715).write(oprot); + xfer += (*_iter733).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17628,11 +18006,11 @@ void swap(NotificationEventResponse &a, NotificationEventResponse &b) { swap(a.events, b.events); } -NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other716) { - events = other716.events; +NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other734) { + events = other734.events; } -NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other717) { - events = other717.events; +NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other735) { + events = other735.events; return *this; } void NotificationEventResponse::printTo(std::ostream& out) const { @@ -17714,11 +18092,11 @@ void swap(CurrentNotificationEventId &a, CurrentNotificationEventId &b) { swap(a.eventId, b.eventId); } -CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other718) { - eventId = other718.eventId; +CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other736) { + eventId = other736.eventId; } -CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other719) { - eventId = other719.eventId; +CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other737) { + eventId = other737.eventId; return *this; } void CurrentNotificationEventId::printTo(std::ostream& out) const { @@ -17820,13 +18198,13 @@ void swap(NotificationEventsCountRequest &a, NotificationEventsCountRequest &b) swap(a.dbName, b.dbName); } -NotificationEventsCountRequest::NotificationEventsCountRequest(const NotificationEventsCountRequest& other720) { - fromEventId = other720.fromEventId; - dbName = other720.dbName; +NotificationEventsCountRequest::NotificationEventsCountRequest(const NotificationEventsCountRequest& other738) { + fromEventId = other738.fromEventId; + dbName = other738.dbName; } -NotificationEventsCountRequest& NotificationEventsCountRequest::operator=(const NotificationEventsCountRequest& other721) { - fromEventId = other721.fromEventId; - dbName = other721.dbName; +NotificationEventsCountRequest& NotificationEventsCountRequest::operator=(const NotificationEventsCountRequest& other739) { + fromEventId = other739.fromEventId; + dbName = other739.dbName; return *this; } void NotificationEventsCountRequest::printTo(std::ostream& out) const { @@ -17909,11 +18287,11 @@ void swap(NotificationEventsCountResponse &a, NotificationEventsCountResponse &b swap(a.eventsCount, b.eventsCount); } -NotificationEventsCountResponse::NotificationEventsCountResponse(const NotificationEventsCountResponse& other722) { - eventsCount = other722.eventsCount; +NotificationEventsCountResponse::NotificationEventsCountResponse(const NotificationEventsCountResponse& other740) { + eventsCount = other740.eventsCount; } -NotificationEventsCountResponse& NotificationEventsCountResponse::operator=(const NotificationEventsCountResponse& other723) { - eventsCount = other723.eventsCount; +NotificationEventsCountResponse& NotificationEventsCountResponse::operator=(const NotificationEventsCountResponse& other741) { + eventsCount = other741.eventsCount; return *this; } void NotificationEventsCountResponse::printTo(std::ostream& out) const { @@ -17976,14 +18354,14 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->filesAdded.clear(); - uint32_t _size724; - ::apache::thrift::protocol::TType _etype727; - xfer += iprot->readListBegin(_etype727, _size724); - this->filesAdded.resize(_size724); - uint32_t _i728; - for (_i728 = 0; _i728 < _size724; ++_i728) + uint32_t _size742; + ::apache::thrift::protocol::TType _etype745; + xfer += iprot->readListBegin(_etype745, _size742); + this->filesAdded.resize(_size742); + uint32_t _i746; + for (_i746 = 0; _i746 < _size742; ++_i746) { - xfer += iprot->readString(this->filesAdded[_i728]); + xfer += iprot->readString(this->filesAdded[_i746]); } xfer += iprot->readListEnd(); } @@ -17996,14 +18374,14 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->filesAddedChecksum.clear(); - uint32_t _size729; - ::apache::thrift::protocol::TType _etype732; - xfer += iprot->readListBegin(_etype732, _size729); - this->filesAddedChecksum.resize(_size729); - uint32_t _i733; - for (_i733 = 0; _i733 < _size729; ++_i733) + uint32_t _size747; + ::apache::thrift::protocol::TType _etype750; + xfer += iprot->readListBegin(_etype750, _size747); + this->filesAddedChecksum.resize(_size747); + uint32_t _i751; + for (_i751 = 0; _i751 < _size747; ++_i751) { - xfer += iprot->readString(this->filesAddedChecksum[_i733]); + xfer += iprot->readString(this->filesAddedChecksum[_i751]); } xfer += iprot->readListEnd(); } @@ -18039,10 +18417,10 @@ uint32_t InsertEventRequestData::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("filesAdded", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->filesAdded.size())); - std::vector ::const_iterator _iter734; - for (_iter734 = this->filesAdded.begin(); _iter734 != this->filesAdded.end(); ++_iter734) + std::vector ::const_iterator _iter752; + for (_iter752 = this->filesAdded.begin(); _iter752 != this->filesAdded.end(); ++_iter752) { - xfer += oprot->writeString((*_iter734)); + xfer += oprot->writeString((*_iter752)); } xfer += oprot->writeListEnd(); } @@ -18052,10 +18430,10 @@ uint32_t InsertEventRequestData::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("filesAddedChecksum", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->filesAddedChecksum.size())); - std::vector ::const_iterator _iter735; - for (_iter735 = this->filesAddedChecksum.begin(); _iter735 != this->filesAddedChecksum.end(); ++_iter735) + std::vector ::const_iterator _iter753; + for (_iter753 = this->filesAddedChecksum.begin(); _iter753 != this->filesAddedChecksum.end(); ++_iter753) { - xfer += oprot->writeString((*_iter735)); + xfer += oprot->writeString((*_iter753)); } xfer += oprot->writeListEnd(); } @@ -18074,17 +18452,17 @@ void swap(InsertEventRequestData &a, InsertEventRequestData &b) { swap(a.__isset, b.__isset); } -InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other736) { - replace = other736.replace; - filesAdded = other736.filesAdded; - filesAddedChecksum = other736.filesAddedChecksum; - __isset = other736.__isset; +InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other754) { + replace = other754.replace; + filesAdded = other754.filesAdded; + filesAddedChecksum = other754.filesAddedChecksum; + __isset = other754.__isset; } -InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other737) { - replace = other737.replace; - filesAdded = other737.filesAdded; - filesAddedChecksum = other737.filesAddedChecksum; - __isset = other737.__isset; +InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other755) { + replace = other755.replace; + filesAdded = other755.filesAdded; + filesAddedChecksum = other755.filesAddedChecksum; + __isset = other755.__isset; return *this; } void InsertEventRequestData::printTo(std::ostream& out) const { @@ -18166,13 +18544,13 @@ void swap(FireEventRequestData &a, FireEventRequestData &b) { swap(a.__isset, b.__isset); } -FireEventRequestData::FireEventRequestData(const FireEventRequestData& other738) { - insertData = other738.insertData; - __isset = other738.__isset; +FireEventRequestData::FireEventRequestData(const FireEventRequestData& other756) { + insertData = other756.insertData; + __isset = other756.__isset; } -FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other739) { - insertData = other739.insertData; - __isset = other739.__isset; +FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other757) { + insertData = other757.insertData; + __isset = other757.__isset; return *this; } void FireEventRequestData::printTo(std::ostream& out) const { @@ -18269,14 +18647,14 @@ uint32_t FireEventRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionVals.clear(); - uint32_t _size740; - ::apache::thrift::protocol::TType _etype743; - xfer += iprot->readListBegin(_etype743, _size740); - this->partitionVals.resize(_size740); - uint32_t _i744; - for (_i744 = 0; _i744 < _size740; ++_i744) + uint32_t _size758; + ::apache::thrift::protocol::TType _etype761; + xfer += iprot->readListBegin(_etype761, _size758); + this->partitionVals.resize(_size758); + uint32_t _i762; + for (_i762 = 0; _i762 < _size758; ++_i762) { - xfer += iprot->readString(this->partitionVals[_i744]); + xfer += iprot->readString(this->partitionVals[_i762]); } xfer += iprot->readListEnd(); } @@ -18328,10 +18706,10 @@ uint32_t FireEventRequest::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("partitionVals", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partitionVals.size())); - std::vector ::const_iterator _iter745; - for (_iter745 = this->partitionVals.begin(); _iter745 != this->partitionVals.end(); ++_iter745) + std::vector ::const_iterator _iter763; + for (_iter763 = this->partitionVals.begin(); _iter763 != this->partitionVals.end(); ++_iter763) { - xfer += oprot->writeString((*_iter745)); + xfer += oprot->writeString((*_iter763)); } xfer += oprot->writeListEnd(); } @@ -18352,21 +18730,21 @@ void swap(FireEventRequest &a, FireEventRequest &b) { swap(a.__isset, b.__isset); } -FireEventRequest::FireEventRequest(const FireEventRequest& other746) { - successful = other746.successful; - data = other746.data; - dbName = other746.dbName; - tableName = other746.tableName; - partitionVals = other746.partitionVals; - __isset = other746.__isset; -} -FireEventRequest& FireEventRequest::operator=(const FireEventRequest& other747) { - successful = other747.successful; - data = other747.data; - dbName = other747.dbName; - tableName = other747.tableName; - partitionVals = other747.partitionVals; - __isset = other747.__isset; +FireEventRequest::FireEventRequest(const FireEventRequest& other764) { + successful = other764.successful; + data = other764.data; + dbName = other764.dbName; + tableName = other764.tableName; + partitionVals = other764.partitionVals; + __isset = other764.__isset; +} +FireEventRequest& FireEventRequest::operator=(const FireEventRequest& other765) { + successful = other765.successful; + data = other765.data; + dbName = other765.dbName; + tableName = other765.tableName; + partitionVals = other765.partitionVals; + __isset = other765.__isset; return *this; } void FireEventRequest::printTo(std::ostream& out) const { @@ -18429,11 +18807,11 @@ void swap(FireEventResponse &a, FireEventResponse &b) { (void) b; } -FireEventResponse::FireEventResponse(const FireEventResponse& other748) { - (void) other748; +FireEventResponse::FireEventResponse(const FireEventResponse& other766) { + (void) other766; } -FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other749) { - (void) other749; +FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other767) { + (void) other767; return *this; } void FireEventResponse::printTo(std::ostream& out) const { @@ -18533,15 +18911,15 @@ void swap(MetadataPpdResult &a, MetadataPpdResult &b) { swap(a.__isset, b.__isset); } -MetadataPpdResult::MetadataPpdResult(const MetadataPpdResult& other750) { - metadata = other750.metadata; - includeBitset = other750.includeBitset; - __isset = other750.__isset; +MetadataPpdResult::MetadataPpdResult(const MetadataPpdResult& other768) { + metadata = other768.metadata; + includeBitset = other768.includeBitset; + __isset = other768.__isset; } -MetadataPpdResult& MetadataPpdResult::operator=(const MetadataPpdResult& other751) { - metadata = other751.metadata; - includeBitset = other751.includeBitset; - __isset = other751.__isset; +MetadataPpdResult& MetadataPpdResult::operator=(const MetadataPpdResult& other769) { + metadata = other769.metadata; + includeBitset = other769.includeBitset; + __isset = other769.__isset; return *this; } void MetadataPpdResult::printTo(std::ostream& out) const { @@ -18592,17 +18970,17 @@ uint32_t GetFileMetadataByExprResult::read(::apache::thrift::protocol::TProtocol if (ftype == ::apache::thrift::protocol::T_MAP) { { this->metadata.clear(); - uint32_t _size752; - ::apache::thrift::protocol::TType _ktype753; - ::apache::thrift::protocol::TType _vtype754; - xfer += iprot->readMapBegin(_ktype753, _vtype754, _size752); - uint32_t _i756; - for (_i756 = 0; _i756 < _size752; ++_i756) + uint32_t _size770; + ::apache::thrift::protocol::TType _ktype771; + ::apache::thrift::protocol::TType _vtype772; + xfer += iprot->readMapBegin(_ktype771, _vtype772, _size770); + uint32_t _i774; + for (_i774 = 0; _i774 < _size770; ++_i774) { - int64_t _key757; - xfer += iprot->readI64(_key757); - MetadataPpdResult& _val758 = this->metadata[_key757]; - xfer += _val758.read(iprot); + int64_t _key775; + xfer += iprot->readI64(_key775); + MetadataPpdResult& _val776 = this->metadata[_key775]; + xfer += _val776.read(iprot); } xfer += iprot->readMapEnd(); } @@ -18643,11 +19021,11 @@ uint32_t GetFileMetadataByExprResult::write(::apache::thrift::protocol::TProtoco xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I64, ::apache::thrift::protocol::T_STRUCT, static_cast(this->metadata.size())); - std::map ::const_iterator _iter759; - for (_iter759 = this->metadata.begin(); _iter759 != this->metadata.end(); ++_iter759) + std::map ::const_iterator _iter777; + for (_iter777 = this->metadata.begin(); _iter777 != this->metadata.end(); ++_iter777) { - xfer += oprot->writeI64(_iter759->first); - xfer += _iter759->second.write(oprot); + xfer += oprot->writeI64(_iter777->first); + xfer += _iter777->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -18668,13 +19046,13 @@ void swap(GetFileMetadataByExprResult &a, GetFileMetadataByExprResult &b) { swap(a.isSupported, b.isSupported); } -GetFileMetadataByExprResult::GetFileMetadataByExprResult(const GetFileMetadataByExprResult& other760) { - metadata = other760.metadata; - isSupported = other760.isSupported; +GetFileMetadataByExprResult::GetFileMetadataByExprResult(const GetFileMetadataByExprResult& other778) { + metadata = other778.metadata; + isSupported = other778.isSupported; } -GetFileMetadataByExprResult& GetFileMetadataByExprResult::operator=(const GetFileMetadataByExprResult& other761) { - metadata = other761.metadata; - isSupported = other761.isSupported; +GetFileMetadataByExprResult& GetFileMetadataByExprResult::operator=(const GetFileMetadataByExprResult& other779) { + metadata = other779.metadata; + isSupported = other779.isSupported; return *this; } void GetFileMetadataByExprResult::printTo(std::ostream& out) const { @@ -18735,14 +19113,14 @@ uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size762; - ::apache::thrift::protocol::TType _etype765; - xfer += iprot->readListBegin(_etype765, _size762); - this->fileIds.resize(_size762); - uint32_t _i766; - for (_i766 = 0; _i766 < _size762; ++_i766) + uint32_t _size780; + ::apache::thrift::protocol::TType _etype783; + xfer += iprot->readListBegin(_etype783, _size780); + this->fileIds.resize(_size780); + uint32_t _i784; + for (_i784 = 0; _i784 < _size780; ++_i784) { - xfer += iprot->readI64(this->fileIds[_i766]); + xfer += iprot->readI64(this->fileIds[_i784]); } xfer += iprot->readListEnd(); } @@ -18769,9 +19147,9 @@ uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtoco break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast767; - xfer += iprot->readI32(ecast767); - this->type = (FileMetadataExprType::type)ecast767; + int32_t ecast785; + xfer += iprot->readI32(ecast785); + this->type = (FileMetadataExprType::type)ecast785; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -18801,10 +19179,10 @@ uint32_t GetFileMetadataByExprRequest::write(::apache::thrift::protocol::TProtoc xfer += oprot->writeFieldBegin("fileIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->fileIds.size())); - std::vector ::const_iterator _iter768; - for (_iter768 = this->fileIds.begin(); _iter768 != this->fileIds.end(); ++_iter768) + std::vector ::const_iterator _iter786; + for (_iter786 = this->fileIds.begin(); _iter786 != this->fileIds.end(); ++_iter786) { - xfer += oprot->writeI64((*_iter768)); + xfer += oprot->writeI64((*_iter786)); } xfer += oprot->writeListEnd(); } @@ -18838,19 +19216,19 @@ void swap(GetFileMetadataByExprRequest &a, GetFileMetadataByExprRequest &b) { swap(a.__isset, b.__isset); } -GetFileMetadataByExprRequest::GetFileMetadataByExprRequest(const GetFileMetadataByExprRequest& other769) { - fileIds = other769.fileIds; - expr = other769.expr; - doGetFooters = other769.doGetFooters; - type = other769.type; - __isset = other769.__isset; +GetFileMetadataByExprRequest::GetFileMetadataByExprRequest(const GetFileMetadataByExprRequest& other787) { + fileIds = other787.fileIds; + expr = other787.expr; + doGetFooters = other787.doGetFooters; + type = other787.type; + __isset = other787.__isset; } -GetFileMetadataByExprRequest& GetFileMetadataByExprRequest::operator=(const GetFileMetadataByExprRequest& other770) { - fileIds = other770.fileIds; - expr = other770.expr; - doGetFooters = other770.doGetFooters; - type = other770.type; - __isset = other770.__isset; +GetFileMetadataByExprRequest& GetFileMetadataByExprRequest::operator=(const GetFileMetadataByExprRequest& other788) { + fileIds = other788.fileIds; + expr = other788.expr; + doGetFooters = other788.doGetFooters; + type = other788.type; + __isset = other788.__isset; return *this; } void GetFileMetadataByExprRequest::printTo(std::ostream& out) const { @@ -18903,17 +19281,17 @@ uint32_t GetFileMetadataResult::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->metadata.clear(); - uint32_t _size771; - ::apache::thrift::protocol::TType _ktype772; - ::apache::thrift::protocol::TType _vtype773; - xfer += iprot->readMapBegin(_ktype772, _vtype773, _size771); - uint32_t _i775; - for (_i775 = 0; _i775 < _size771; ++_i775) + uint32_t _size789; + ::apache::thrift::protocol::TType _ktype790; + ::apache::thrift::protocol::TType _vtype791; + xfer += iprot->readMapBegin(_ktype790, _vtype791, _size789); + uint32_t _i793; + for (_i793 = 0; _i793 < _size789; ++_i793) { - int64_t _key776; - xfer += iprot->readI64(_key776); - std::string& _val777 = this->metadata[_key776]; - xfer += iprot->readBinary(_val777); + int64_t _key794; + xfer += iprot->readI64(_key794); + std::string& _val795 = this->metadata[_key794]; + xfer += iprot->readBinary(_val795); } xfer += iprot->readMapEnd(); } @@ -18954,11 +19332,11 @@ uint32_t GetFileMetadataResult::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I64, ::apache::thrift::protocol::T_STRING, static_cast(this->metadata.size())); - std::map ::const_iterator _iter778; - for (_iter778 = this->metadata.begin(); _iter778 != this->metadata.end(); ++_iter778) + std::map ::const_iterator _iter796; + for (_iter796 = this->metadata.begin(); _iter796 != this->metadata.end(); ++_iter796) { - xfer += oprot->writeI64(_iter778->first); - xfer += oprot->writeBinary(_iter778->second); + xfer += oprot->writeI64(_iter796->first); + xfer += oprot->writeBinary(_iter796->second); } xfer += oprot->writeMapEnd(); } @@ -18979,13 +19357,13 @@ void swap(GetFileMetadataResult &a, GetFileMetadataResult &b) { swap(a.isSupported, b.isSupported); } -GetFileMetadataResult::GetFileMetadataResult(const GetFileMetadataResult& other779) { - metadata = other779.metadata; - isSupported = other779.isSupported; +GetFileMetadataResult::GetFileMetadataResult(const GetFileMetadataResult& other797) { + metadata = other797.metadata; + isSupported = other797.isSupported; } -GetFileMetadataResult& GetFileMetadataResult::operator=(const GetFileMetadataResult& other780) { - metadata = other780.metadata; - isSupported = other780.isSupported; +GetFileMetadataResult& GetFileMetadataResult::operator=(const GetFileMetadataResult& other798) { + metadata = other798.metadata; + isSupported = other798.isSupported; return *this; } void GetFileMetadataResult::printTo(std::ostream& out) const { @@ -19031,14 +19409,14 @@ uint32_t GetFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size781; - ::apache::thrift::protocol::TType _etype784; - xfer += iprot->readListBegin(_etype784, _size781); - this->fileIds.resize(_size781); - uint32_t _i785; - for (_i785 = 0; _i785 < _size781; ++_i785) + uint32_t _size799; + ::apache::thrift::protocol::TType _etype802; + xfer += iprot->readListBegin(_etype802, _size799); + this->fileIds.resize(_size799); + uint32_t _i803; + for (_i803 = 0; _i803 < _size799; ++_i803) { - xfer += iprot->readI64(this->fileIds[_i785]); + xfer += iprot->readI64(this->fileIds[_i803]); } xfer += iprot->readListEnd(); } @@ -19069,10 +19447,10 @@ uint32_t GetFileMetadataRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("fileIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->fileIds.size())); - std::vector ::const_iterator _iter786; - for (_iter786 = this->fileIds.begin(); _iter786 != this->fileIds.end(); ++_iter786) + std::vector ::const_iterator _iter804; + for (_iter804 = this->fileIds.begin(); _iter804 != this->fileIds.end(); ++_iter804) { - xfer += oprot->writeI64((*_iter786)); + xfer += oprot->writeI64((*_iter804)); } xfer += oprot->writeListEnd(); } @@ -19088,11 +19466,11 @@ void swap(GetFileMetadataRequest &a, GetFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -GetFileMetadataRequest::GetFileMetadataRequest(const GetFileMetadataRequest& other787) { - fileIds = other787.fileIds; +GetFileMetadataRequest::GetFileMetadataRequest(const GetFileMetadataRequest& other805) { + fileIds = other805.fileIds; } -GetFileMetadataRequest& GetFileMetadataRequest::operator=(const GetFileMetadataRequest& other788) { - fileIds = other788.fileIds; +GetFileMetadataRequest& GetFileMetadataRequest::operator=(const GetFileMetadataRequest& other806) { + fileIds = other806.fileIds; return *this; } void GetFileMetadataRequest::printTo(std::ostream& out) const { @@ -19151,11 +19529,11 @@ void swap(PutFileMetadataResult &a, PutFileMetadataResult &b) { (void) b; } -PutFileMetadataResult::PutFileMetadataResult(const PutFileMetadataResult& other789) { - (void) other789; +PutFileMetadataResult::PutFileMetadataResult(const PutFileMetadataResult& other807) { + (void) other807; } -PutFileMetadataResult& PutFileMetadataResult::operator=(const PutFileMetadataResult& other790) { - (void) other790; +PutFileMetadataResult& PutFileMetadataResult::operator=(const PutFileMetadataResult& other808) { + (void) other808; return *this; } void PutFileMetadataResult::printTo(std::ostream& out) const { @@ -19209,14 +19587,14 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size791; - ::apache::thrift::protocol::TType _etype794; - xfer += iprot->readListBegin(_etype794, _size791); - this->fileIds.resize(_size791); - uint32_t _i795; - for (_i795 = 0; _i795 < _size791; ++_i795) + uint32_t _size809; + ::apache::thrift::protocol::TType _etype812; + xfer += iprot->readListBegin(_etype812, _size809); + this->fileIds.resize(_size809); + uint32_t _i813; + for (_i813 = 0; _i813 < _size809; ++_i813) { - xfer += iprot->readI64(this->fileIds[_i795]); + xfer += iprot->readI64(this->fileIds[_i813]); } xfer += iprot->readListEnd(); } @@ -19229,14 +19607,14 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->metadata.clear(); - uint32_t _size796; - ::apache::thrift::protocol::TType _etype799; - xfer += iprot->readListBegin(_etype799, _size796); - this->metadata.resize(_size796); - uint32_t _i800; - for (_i800 = 0; _i800 < _size796; ++_i800) + uint32_t _size814; + ::apache::thrift::protocol::TType _etype817; + xfer += iprot->readListBegin(_etype817, _size814); + this->metadata.resize(_size814); + uint32_t _i818; + for (_i818 = 0; _i818 < _size814; ++_i818) { - xfer += iprot->readBinary(this->metadata[_i800]); + xfer += iprot->readBinary(this->metadata[_i818]); } xfer += iprot->readListEnd(); } @@ -19247,9 +19625,9 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast801; - xfer += iprot->readI32(ecast801); - this->type = (FileMetadataExprType::type)ecast801; + int32_t ecast819; + xfer += iprot->readI32(ecast819); + this->type = (FileMetadataExprType::type)ecast819; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -19279,10 +19657,10 @@ uint32_t PutFileMetadataRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("fileIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->fileIds.size())); - std::vector ::const_iterator _iter802; - for (_iter802 = this->fileIds.begin(); _iter802 != this->fileIds.end(); ++_iter802) + std::vector ::const_iterator _iter820; + for (_iter820 = this->fileIds.begin(); _iter820 != this->fileIds.end(); ++_iter820) { - xfer += oprot->writeI64((*_iter802)); + xfer += oprot->writeI64((*_iter820)); } xfer += oprot->writeListEnd(); } @@ -19291,10 +19669,10 @@ uint32_t PutFileMetadataRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->metadata.size())); - std::vector ::const_iterator _iter803; - for (_iter803 = this->metadata.begin(); _iter803 != this->metadata.end(); ++_iter803) + std::vector ::const_iterator _iter821; + for (_iter821 = this->metadata.begin(); _iter821 != this->metadata.end(); ++_iter821) { - xfer += oprot->writeBinary((*_iter803)); + xfer += oprot->writeBinary((*_iter821)); } xfer += oprot->writeListEnd(); } @@ -19318,17 +19696,17 @@ void swap(PutFileMetadataRequest &a, PutFileMetadataRequest &b) { swap(a.__isset, b.__isset); } -PutFileMetadataRequest::PutFileMetadataRequest(const PutFileMetadataRequest& other804) { - fileIds = other804.fileIds; - metadata = other804.metadata; - type = other804.type; - __isset = other804.__isset; +PutFileMetadataRequest::PutFileMetadataRequest(const PutFileMetadataRequest& other822) { + fileIds = other822.fileIds; + metadata = other822.metadata; + type = other822.type; + __isset = other822.__isset; } -PutFileMetadataRequest& PutFileMetadataRequest::operator=(const PutFileMetadataRequest& other805) { - fileIds = other805.fileIds; - metadata = other805.metadata; - type = other805.type; - __isset = other805.__isset; +PutFileMetadataRequest& PutFileMetadataRequest::operator=(const PutFileMetadataRequest& other823) { + fileIds = other823.fileIds; + metadata = other823.metadata; + type = other823.type; + __isset = other823.__isset; return *this; } void PutFileMetadataRequest::printTo(std::ostream& out) const { @@ -19389,11 +19767,11 @@ void swap(ClearFileMetadataResult &a, ClearFileMetadataResult &b) { (void) b; } -ClearFileMetadataResult::ClearFileMetadataResult(const ClearFileMetadataResult& other806) { - (void) other806; +ClearFileMetadataResult::ClearFileMetadataResult(const ClearFileMetadataResult& other824) { + (void) other824; } -ClearFileMetadataResult& ClearFileMetadataResult::operator=(const ClearFileMetadataResult& other807) { - (void) other807; +ClearFileMetadataResult& ClearFileMetadataResult::operator=(const ClearFileMetadataResult& other825) { + (void) other825; return *this; } void ClearFileMetadataResult::printTo(std::ostream& out) const { @@ -19437,14 +19815,14 @@ uint32_t ClearFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* i if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size808; - ::apache::thrift::protocol::TType _etype811; - xfer += iprot->readListBegin(_etype811, _size808); - this->fileIds.resize(_size808); - uint32_t _i812; - for (_i812 = 0; _i812 < _size808; ++_i812) + uint32_t _size826; + ::apache::thrift::protocol::TType _etype829; + xfer += iprot->readListBegin(_etype829, _size826); + this->fileIds.resize(_size826); + uint32_t _i830; + for (_i830 = 0; _i830 < _size826; ++_i830) { - xfer += iprot->readI64(this->fileIds[_i812]); + xfer += iprot->readI64(this->fileIds[_i830]); } xfer += iprot->readListEnd(); } @@ -19475,10 +19853,10 @@ uint32_t ClearFileMetadataRequest::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("fileIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->fileIds.size())); - std::vector ::const_iterator _iter813; - for (_iter813 = this->fileIds.begin(); _iter813 != this->fileIds.end(); ++_iter813) + std::vector ::const_iterator _iter831; + for (_iter831 = this->fileIds.begin(); _iter831 != this->fileIds.end(); ++_iter831) { - xfer += oprot->writeI64((*_iter813)); + xfer += oprot->writeI64((*_iter831)); } xfer += oprot->writeListEnd(); } @@ -19494,11 +19872,11 @@ void swap(ClearFileMetadataRequest &a, ClearFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -ClearFileMetadataRequest::ClearFileMetadataRequest(const ClearFileMetadataRequest& other814) { - fileIds = other814.fileIds; +ClearFileMetadataRequest::ClearFileMetadataRequest(const ClearFileMetadataRequest& other832) { + fileIds = other832.fileIds; } -ClearFileMetadataRequest& ClearFileMetadataRequest::operator=(const ClearFileMetadataRequest& other815) { - fileIds = other815.fileIds; +ClearFileMetadataRequest& ClearFileMetadataRequest::operator=(const ClearFileMetadataRequest& other833) { + fileIds = other833.fileIds; return *this; } void ClearFileMetadataRequest::printTo(std::ostream& out) const { @@ -19580,11 +19958,11 @@ void swap(CacheFileMetadataResult &a, CacheFileMetadataResult &b) { swap(a.isSupported, b.isSupported); } -CacheFileMetadataResult::CacheFileMetadataResult(const CacheFileMetadataResult& other816) { - isSupported = other816.isSupported; +CacheFileMetadataResult::CacheFileMetadataResult(const CacheFileMetadataResult& other834) { + isSupported = other834.isSupported; } -CacheFileMetadataResult& CacheFileMetadataResult::operator=(const CacheFileMetadataResult& other817) { - isSupported = other817.isSupported; +CacheFileMetadataResult& CacheFileMetadataResult::operator=(const CacheFileMetadataResult& other835) { + isSupported = other835.isSupported; return *this; } void CacheFileMetadataResult::printTo(std::ostream& out) const { @@ -19725,19 +20103,19 @@ void swap(CacheFileMetadataRequest &a, CacheFileMetadataRequest &b) { swap(a.__isset, b.__isset); } -CacheFileMetadataRequest::CacheFileMetadataRequest(const CacheFileMetadataRequest& other818) { - dbName = other818.dbName; - tblName = other818.tblName; - partName = other818.partName; - isAllParts = other818.isAllParts; - __isset = other818.__isset; +CacheFileMetadataRequest::CacheFileMetadataRequest(const CacheFileMetadataRequest& other836) { + dbName = other836.dbName; + tblName = other836.tblName; + partName = other836.partName; + isAllParts = other836.isAllParts; + __isset = other836.__isset; } -CacheFileMetadataRequest& CacheFileMetadataRequest::operator=(const CacheFileMetadataRequest& other819) { - dbName = other819.dbName; - tblName = other819.tblName; - partName = other819.partName; - isAllParts = other819.isAllParts; - __isset = other819.__isset; +CacheFileMetadataRequest& CacheFileMetadataRequest::operator=(const CacheFileMetadataRequest& other837) { + dbName = other837.dbName; + tblName = other837.tblName; + partName = other837.partName; + isAllParts = other837.isAllParts; + __isset = other837.__isset; return *this; } void CacheFileMetadataRequest::printTo(std::ostream& out) const { @@ -19785,14 +20163,14 @@ uint32_t GetAllFunctionsResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->functions.clear(); - uint32_t _size820; - ::apache::thrift::protocol::TType _etype823; - xfer += iprot->readListBegin(_etype823, _size820); - this->functions.resize(_size820); - uint32_t _i824; - for (_i824 = 0; _i824 < _size820; ++_i824) + uint32_t _size838; + ::apache::thrift::protocol::TType _etype841; + xfer += iprot->readListBegin(_etype841, _size838); + this->functions.resize(_size838); + uint32_t _i842; + for (_i842 = 0; _i842 < _size838; ++_i842) { - xfer += this->functions[_i824].read(iprot); + xfer += this->functions[_i842].read(iprot); } xfer += iprot->readListEnd(); } @@ -19822,10 +20200,10 @@ uint32_t GetAllFunctionsResponse::write(::apache::thrift::protocol::TProtocol* o xfer += oprot->writeFieldBegin("functions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->functions.size())); - std::vector ::const_iterator _iter825; - for (_iter825 = this->functions.begin(); _iter825 != this->functions.end(); ++_iter825) + std::vector ::const_iterator _iter843; + for (_iter843 = this->functions.begin(); _iter843 != this->functions.end(); ++_iter843) { - xfer += (*_iter825).write(oprot); + xfer += (*_iter843).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19842,13 +20220,13 @@ void swap(GetAllFunctionsResponse &a, GetAllFunctionsResponse &b) { swap(a.__isset, b.__isset); } -GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other826) { - functions = other826.functions; - __isset = other826.__isset; +GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other844) { + functions = other844.functions; + __isset = other844.__isset; } -GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other827) { - functions = other827.functions; - __isset = other827.__isset; +GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other845) { + functions = other845.functions; + __isset = other845.__isset; return *this; } void GetAllFunctionsResponse::printTo(std::ostream& out) const { @@ -19893,16 +20271,16 @@ uint32_t ClientCapabilities::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size828; - ::apache::thrift::protocol::TType _etype831; - xfer += iprot->readListBegin(_etype831, _size828); - this->values.resize(_size828); - uint32_t _i832; - for (_i832 = 0; _i832 < _size828; ++_i832) + uint32_t _size846; + ::apache::thrift::protocol::TType _etype849; + xfer += iprot->readListBegin(_etype849, _size846); + this->values.resize(_size846); + uint32_t _i850; + for (_i850 = 0; _i850 < _size846; ++_i850) { - int32_t ecast833; - xfer += iprot->readI32(ecast833); - this->values[_i832] = (ClientCapability::type)ecast833; + int32_t ecast851; + xfer += iprot->readI32(ecast851); + this->values[_i850] = (ClientCapability::type)ecast851; } xfer += iprot->readListEnd(); } @@ -19933,10 +20311,10 @@ uint32_t ClientCapabilities::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, static_cast(this->values.size())); - std::vector ::const_iterator _iter834; - for (_iter834 = this->values.begin(); _iter834 != this->values.end(); ++_iter834) + std::vector ::const_iterator _iter852; + for (_iter852 = this->values.begin(); _iter852 != this->values.end(); ++_iter852) { - xfer += oprot->writeI32((int32_t)(*_iter834)); + xfer += oprot->writeI32((int32_t)(*_iter852)); } xfer += oprot->writeListEnd(); } @@ -19952,11 +20330,11 @@ void swap(ClientCapabilities &a, ClientCapabilities &b) { swap(a.values, b.values); } -ClientCapabilities::ClientCapabilities(const ClientCapabilities& other835) { - values = other835.values; +ClientCapabilities::ClientCapabilities(const ClientCapabilities& other853) { + values = other853.values; } -ClientCapabilities& ClientCapabilities::operator=(const ClientCapabilities& other836) { - values = other836.values; +ClientCapabilities& ClientCapabilities::operator=(const ClientCapabilities& other854) { + values = other854.values; return *this; } void ClientCapabilities::printTo(std::ostream& out) const { @@ -20078,17 +20456,17 @@ void swap(GetTableRequest &a, GetTableRequest &b) { swap(a.__isset, b.__isset); } -GetTableRequest::GetTableRequest(const GetTableRequest& other837) { - dbName = other837.dbName; - tblName = other837.tblName; - capabilities = other837.capabilities; - __isset = other837.__isset; +GetTableRequest::GetTableRequest(const GetTableRequest& other855) { + dbName = other855.dbName; + tblName = other855.tblName; + capabilities = other855.capabilities; + __isset = other855.__isset; } -GetTableRequest& GetTableRequest::operator=(const GetTableRequest& other838) { - dbName = other838.dbName; - tblName = other838.tblName; - capabilities = other838.capabilities; - __isset = other838.__isset; +GetTableRequest& GetTableRequest::operator=(const GetTableRequest& other856) { + dbName = other856.dbName; + tblName = other856.tblName; + capabilities = other856.capabilities; + __isset = other856.__isset; return *this; } void GetTableRequest::printTo(std::ostream& out) const { @@ -20172,11 +20550,11 @@ void swap(GetTableResult &a, GetTableResult &b) { swap(a.table, b.table); } -GetTableResult::GetTableResult(const GetTableResult& other839) { - table = other839.table; +GetTableResult::GetTableResult(const GetTableResult& other857) { + table = other857.table; } -GetTableResult& GetTableResult::operator=(const GetTableResult& other840) { - table = other840.table; +GetTableResult& GetTableResult::operator=(const GetTableResult& other858) { + table = other858.table; return *this; } void GetTableResult::printTo(std::ostream& out) const { @@ -20239,14 +20617,14 @@ uint32_t GetTablesRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tblNames.clear(); - uint32_t _size841; - ::apache::thrift::protocol::TType _etype844; - xfer += iprot->readListBegin(_etype844, _size841); - this->tblNames.resize(_size841); - uint32_t _i845; - for (_i845 = 0; _i845 < _size841; ++_i845) + uint32_t _size859; + ::apache::thrift::protocol::TType _etype862; + xfer += iprot->readListBegin(_etype862, _size859); + this->tblNames.resize(_size859); + uint32_t _i863; + for (_i863 = 0; _i863 < _size859; ++_i863) { - xfer += iprot->readString(this->tblNames[_i845]); + xfer += iprot->readString(this->tblNames[_i863]); } xfer += iprot->readListEnd(); } @@ -20290,10 +20668,10 @@ uint32_t GetTablesRequest::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("tblNames", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tblNames.size())); - std::vector ::const_iterator _iter846; - for (_iter846 = this->tblNames.begin(); _iter846 != this->tblNames.end(); ++_iter846) + std::vector ::const_iterator _iter864; + for (_iter864 = this->tblNames.begin(); _iter864 != this->tblNames.end(); ++_iter864) { - xfer += oprot->writeString((*_iter846)); + xfer += oprot->writeString((*_iter864)); } xfer += oprot->writeListEnd(); } @@ -20317,17 +20695,17 @@ void swap(GetTablesRequest &a, GetTablesRequest &b) { swap(a.__isset, b.__isset); } -GetTablesRequest::GetTablesRequest(const GetTablesRequest& other847) { - dbName = other847.dbName; - tblNames = other847.tblNames; - capabilities = other847.capabilities; - __isset = other847.__isset; +GetTablesRequest::GetTablesRequest(const GetTablesRequest& other865) { + dbName = other865.dbName; + tblNames = other865.tblNames; + capabilities = other865.capabilities; + __isset = other865.__isset; } -GetTablesRequest& GetTablesRequest::operator=(const GetTablesRequest& other848) { - dbName = other848.dbName; - tblNames = other848.tblNames; - capabilities = other848.capabilities; - __isset = other848.__isset; +GetTablesRequest& GetTablesRequest::operator=(const GetTablesRequest& other866) { + dbName = other866.dbName; + tblNames = other866.tblNames; + capabilities = other866.capabilities; + __isset = other866.__isset; return *this; } void GetTablesRequest::printTo(std::ostream& out) const { @@ -20374,14 +20752,14 @@ uint32_t GetTablesResult::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tables.clear(); - uint32_t _size849; - ::apache::thrift::protocol::TType _etype852; - xfer += iprot->readListBegin(_etype852, _size849); - this->tables.resize(_size849); - uint32_t _i853; - for (_i853 = 0; _i853 < _size849; ++_i853) + uint32_t _size867; + ::apache::thrift::protocol::TType _etype870; + xfer += iprot->readListBegin(_etype870, _size867); + this->tables.resize(_size867); + uint32_t _i871; + for (_i871 = 0; _i871 < _size867; ++_i871) { - xfer += this->tables[_i853].read(iprot); + xfer += this->tables[_i871].read(iprot); } xfer += iprot->readListEnd(); } @@ -20412,10 +20790,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 _iter854; - for (_iter854 = this->tables.begin(); _iter854 != this->tables.end(); ++_iter854) + std::vector
::const_iterator _iter872; + for (_iter872 = this->tables.begin(); _iter872 != this->tables.end(); ++_iter872) { - xfer += (*_iter854).write(oprot); + xfer += (*_iter872).write(oprot); } xfer += oprot->writeListEnd(); } @@ -20431,11 +20809,11 @@ void swap(GetTablesResult &a, GetTablesResult &b) { swap(a.tables, b.tables); } -GetTablesResult::GetTablesResult(const GetTablesResult& other855) { - tables = other855.tables; +GetTablesResult::GetTablesResult(const GetTablesResult& other873) { + tables = other873.tables; } -GetTablesResult& GetTablesResult::operator=(const GetTablesResult& other856) { - tables = other856.tables; +GetTablesResult& GetTablesResult::operator=(const GetTablesResult& other874) { + tables = other874.tables; return *this; } void GetTablesResult::printTo(std::ostream& out) const { @@ -20537,13 +20915,13 @@ void swap(CmRecycleRequest &a, CmRecycleRequest &b) { swap(a.purge, b.purge); } -CmRecycleRequest::CmRecycleRequest(const CmRecycleRequest& other857) { - dataPath = other857.dataPath; - purge = other857.purge; +CmRecycleRequest::CmRecycleRequest(const CmRecycleRequest& other875) { + dataPath = other875.dataPath; + purge = other875.purge; } -CmRecycleRequest& CmRecycleRequest::operator=(const CmRecycleRequest& other858) { - dataPath = other858.dataPath; - purge = other858.purge; +CmRecycleRequest& CmRecycleRequest::operator=(const CmRecycleRequest& other876) { + dataPath = other876.dataPath; + purge = other876.purge; return *this; } void CmRecycleRequest::printTo(std::ostream& out) const { @@ -20603,11 +20981,11 @@ void swap(CmRecycleResponse &a, CmRecycleResponse &b) { (void) b; } -CmRecycleResponse::CmRecycleResponse(const CmRecycleResponse& other859) { - (void) other859; +CmRecycleResponse::CmRecycleResponse(const CmRecycleResponse& other877) { + (void) other877; } -CmRecycleResponse& CmRecycleResponse::operator=(const CmRecycleResponse& other860) { - (void) other860; +CmRecycleResponse& CmRecycleResponse::operator=(const CmRecycleResponse& other878) { + (void) other878; return *this; } void CmRecycleResponse::printTo(std::ostream& out) const { @@ -20748,19 +21126,19 @@ void swap(TableMeta &a, TableMeta &b) { swap(a.__isset, b.__isset); } -TableMeta::TableMeta(const TableMeta& other861) { - dbName = other861.dbName; - tableName = other861.tableName; - tableType = other861.tableType; - comments = other861.comments; - __isset = other861.__isset; +TableMeta::TableMeta(const TableMeta& other879) { + dbName = other879.dbName; + tableName = other879.tableName; + tableType = other879.tableType; + comments = other879.comments; + __isset = other879.__isset; } -TableMeta& TableMeta::operator=(const TableMeta& other862) { - dbName = other862.dbName; - tableName = other862.tableName; - tableType = other862.tableType; - comments = other862.comments; - __isset = other862.__isset; +TableMeta& TableMeta::operator=(const TableMeta& other880) { + dbName = other880.dbName; + tableName = other880.tableName; + tableType = other880.tableType; + comments = other880.comments; + __isset = other880.__isset; return *this; } void TableMeta::printTo(std::ostream& out) const { @@ -20774,6 +21152,159 @@ void TableMeta::printTo(std::ostream& out) const { } +Materialization::~Materialization() throw() { +} + + +void Materialization::__set_materializationTable(const Table& val) { + this->materializationTable = val; +} + +void Materialization::__set_tablesUsed(const std::set & val) { + this->tablesUsed = val; +} + +void Materialization::__set_invalidationTime(const int64_t val) { + this->invalidationTime = val; +} + +uint32_t Materialization::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_materializationTable = false; + bool isset_tablesUsed = false; + bool isset_invalidationTime = 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->materializationTable.read(iprot); + isset_materializationTable = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_SET) { + { + this->tablesUsed.clear(); + uint32_t _size881; + ::apache::thrift::protocol::TType _etype884; + xfer += iprot->readSetBegin(_etype884, _size881); + uint32_t _i885; + for (_i885 = 0; _i885 < _size881; ++_i885) + { + std::string _elem886; + xfer += iprot->readString(_elem886); + this->tablesUsed.insert(_elem886); + } + xfer += iprot->readSetEnd(); + } + isset_tablesUsed = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->invalidationTime); + isset_invalidationTime = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_materializationTable) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_tablesUsed) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_invalidationTime) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t Materialization::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("Materialization"); + + xfer += oprot->writeFieldBegin("materializationTable", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->materializationTable.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tablesUsed", ::apache::thrift::protocol::T_SET, 2); + { + xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tablesUsed.size())); + std::set ::const_iterator _iter887; + for (_iter887 = this->tablesUsed.begin(); _iter887 != this->tablesUsed.end(); ++_iter887) + { + xfer += oprot->writeString((*_iter887)); + } + xfer += oprot->writeSetEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("invalidationTime", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->invalidationTime); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(Materialization &a, Materialization &b) { + using ::std::swap; + swap(a.materializationTable, b.materializationTable); + swap(a.tablesUsed, b.tablesUsed); + swap(a.invalidationTime, b.invalidationTime); +} + +Materialization::Materialization(const Materialization& other888) { + materializationTable = other888.materializationTable; + tablesUsed = other888.tablesUsed; + invalidationTime = other888.invalidationTime; +} +Materialization& Materialization::operator=(const Materialization& other889) { + materializationTable = other889.materializationTable; + tablesUsed = other889.tablesUsed; + invalidationTime = other889.invalidationTime; + return *this; +} +void Materialization::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "Materialization("; + out << "materializationTable=" << to_string(materializationTable); + out << ", " << "tablesUsed=" << to_string(tablesUsed); + out << ", " << "invalidationTime=" << to_string(invalidationTime); + out << ")"; +} + + WMResourcePlan::~WMResourcePlan() throw() { } @@ -20829,9 +21360,9 @@ uint32_t WMResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast863; - xfer += iprot->readI32(ecast863); - this->status = (WMResourcePlanStatus::type)ecast863; + int32_t ecast890; + xfer += iprot->readI32(ecast890); + this->status = (WMResourcePlanStatus::type)ecast890; this->__isset.status = true; } else { xfer += iprot->skip(ftype); @@ -20905,19 +21436,19 @@ void swap(WMResourcePlan &a, WMResourcePlan &b) { swap(a.__isset, b.__isset); } -WMResourcePlan::WMResourcePlan(const WMResourcePlan& other864) { - name = other864.name; - status = other864.status; - queryParallelism = other864.queryParallelism; - defaultPoolPath = other864.defaultPoolPath; - __isset = other864.__isset; +WMResourcePlan::WMResourcePlan(const WMResourcePlan& other891) { + name = other891.name; + status = other891.status; + queryParallelism = other891.queryParallelism; + defaultPoolPath = other891.defaultPoolPath; + __isset = other891.__isset; } -WMResourcePlan& WMResourcePlan::operator=(const WMResourcePlan& other865) { - name = other865.name; - status = other865.status; - queryParallelism = other865.queryParallelism; - defaultPoolPath = other865.defaultPoolPath; - __isset = other865.__isset; +WMResourcePlan& WMResourcePlan::operator=(const WMResourcePlan& other892) { + name = other892.name; + status = other892.status; + queryParallelism = other892.queryParallelism; + defaultPoolPath = other892.defaultPoolPath; + __isset = other892.__isset; return *this; } void WMResourcePlan::printTo(std::ostream& out) const { @@ -21080,21 +21611,21 @@ void swap(WMPool &a, WMPool &b) { swap(a.__isset, b.__isset); } -WMPool::WMPool(const WMPool& other866) { - resourcePlanName = other866.resourcePlanName; - poolPath = other866.poolPath; - allocFraction = other866.allocFraction; - queryParallelism = other866.queryParallelism; - schedulingPolicy = other866.schedulingPolicy; - __isset = other866.__isset; -} -WMPool& WMPool::operator=(const WMPool& other867) { - resourcePlanName = other867.resourcePlanName; - poolPath = other867.poolPath; - allocFraction = other867.allocFraction; - queryParallelism = other867.queryParallelism; - schedulingPolicy = other867.schedulingPolicy; - __isset = other867.__isset; +WMPool::WMPool(const WMPool& other893) { + resourcePlanName = other893.resourcePlanName; + poolPath = other893.poolPath; + allocFraction = other893.allocFraction; + queryParallelism = other893.queryParallelism; + schedulingPolicy = other893.schedulingPolicy; + __isset = other893.__isset; +} +WMPool& WMPool::operator=(const WMPool& other894) { + resourcePlanName = other894.resourcePlanName; + poolPath = other894.poolPath; + allocFraction = other894.allocFraction; + queryParallelism = other894.queryParallelism; + schedulingPolicy = other894.schedulingPolicy; + __isset = other894.__isset; return *this; } void WMPool::printTo(std::ostream& out) const { @@ -21239,19 +21770,19 @@ void swap(WMTrigger &a, WMTrigger &b) { swap(a.__isset, b.__isset); } -WMTrigger::WMTrigger(const WMTrigger& other868) { - resourcePlanName = other868.resourcePlanName; - triggerName = other868.triggerName; - triggerExpression = other868.triggerExpression; - actionExpression = other868.actionExpression; - __isset = other868.__isset; +WMTrigger::WMTrigger(const WMTrigger& other895) { + resourcePlanName = other895.resourcePlanName; + triggerName = other895.triggerName; + triggerExpression = other895.triggerExpression; + actionExpression = other895.actionExpression; + __isset = other895.__isset; } -WMTrigger& WMTrigger::operator=(const WMTrigger& other869) { - resourcePlanName = other869.resourcePlanName; - triggerName = other869.triggerName; - triggerExpression = other869.triggerExpression; - actionExpression = other869.actionExpression; - __isset = other869.__isset; +WMTrigger& WMTrigger::operator=(const WMTrigger& other896) { + resourcePlanName = other896.resourcePlanName; + triggerName = other896.triggerName; + triggerExpression = other896.triggerExpression; + actionExpression = other896.actionExpression; + __isset = other896.__isset; return *this; } void WMTrigger::printTo(std::ostream& out) const { @@ -21415,21 +21946,21 @@ void swap(WMMapping &a, WMMapping &b) { swap(a.__isset, b.__isset); } -WMMapping::WMMapping(const WMMapping& other870) { - resourcePlanName = other870.resourcePlanName; - entityType = other870.entityType; - entityName = other870.entityName; - poolPath = other870.poolPath; - ordering = other870.ordering; - __isset = other870.__isset; -} -WMMapping& WMMapping::operator=(const WMMapping& other871) { - resourcePlanName = other871.resourcePlanName; - entityType = other871.entityType; - entityName = other871.entityName; - poolPath = other871.poolPath; - ordering = other871.ordering; - __isset = other871.__isset; +WMMapping::WMMapping(const WMMapping& other897) { + resourcePlanName = other897.resourcePlanName; + entityType = other897.entityType; + entityName = other897.entityName; + poolPath = other897.poolPath; + ordering = other897.ordering; + __isset = other897.__isset; +} +WMMapping& WMMapping::operator=(const WMMapping& other898) { + resourcePlanName = other898.resourcePlanName; + entityType = other898.entityType; + entityName = other898.entityName; + poolPath = other898.poolPath; + ordering = other898.ordering; + __isset = other898.__isset; return *this; } void WMMapping::printTo(std::ostream& out) const { @@ -21535,13 +22066,13 @@ void swap(WMPoolTrigger &a, WMPoolTrigger &b) { swap(a.trigger, b.trigger); } -WMPoolTrigger::WMPoolTrigger(const WMPoolTrigger& other872) { - pool = other872.pool; - trigger = other872.trigger; +WMPoolTrigger::WMPoolTrigger(const WMPoolTrigger& other899) { + pool = other899.pool; + trigger = other899.trigger; } -WMPoolTrigger& WMPoolTrigger::operator=(const WMPoolTrigger& other873) { - pool = other873.pool; - trigger = other873.trigger; +WMPoolTrigger& WMPoolTrigger::operator=(const WMPoolTrigger& other900) { + pool = other900.pool; + trigger = other900.trigger; return *this; } void WMPoolTrigger::printTo(std::ostream& out) const { @@ -21615,14 +22146,14 @@ uint32_t WMFullResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->pools.clear(); - uint32_t _size874; - ::apache::thrift::protocol::TType _etype877; - xfer += iprot->readListBegin(_etype877, _size874); - this->pools.resize(_size874); - uint32_t _i878; - for (_i878 = 0; _i878 < _size874; ++_i878) + uint32_t _size901; + ::apache::thrift::protocol::TType _etype904; + xfer += iprot->readListBegin(_etype904, _size901); + this->pools.resize(_size901); + uint32_t _i905; + for (_i905 = 0; _i905 < _size901; ++_i905) { - xfer += this->pools[_i878].read(iprot); + xfer += this->pools[_i905].read(iprot); } xfer += iprot->readListEnd(); } @@ -21635,14 +22166,14 @@ uint32_t WMFullResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->mappings.clear(); - uint32_t _size879; - ::apache::thrift::protocol::TType _etype882; - xfer += iprot->readListBegin(_etype882, _size879); - this->mappings.resize(_size879); - uint32_t _i883; - for (_i883 = 0; _i883 < _size879; ++_i883) + uint32_t _size906; + ::apache::thrift::protocol::TType _etype909; + xfer += iprot->readListBegin(_etype909, _size906); + this->mappings.resize(_size906); + uint32_t _i910; + for (_i910 = 0; _i910 < _size906; ++_i910) { - xfer += this->mappings[_i883].read(iprot); + xfer += this->mappings[_i910].read(iprot); } xfer += iprot->readListEnd(); } @@ -21655,14 +22186,14 @@ uint32_t WMFullResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->triggers.clear(); - uint32_t _size884; - ::apache::thrift::protocol::TType _etype887; - xfer += iprot->readListBegin(_etype887, _size884); - this->triggers.resize(_size884); - uint32_t _i888; - for (_i888 = 0; _i888 < _size884; ++_i888) + uint32_t _size911; + ::apache::thrift::protocol::TType _etype914; + xfer += iprot->readListBegin(_etype914, _size911); + this->triggers.resize(_size911); + uint32_t _i915; + for (_i915 = 0; _i915 < _size911; ++_i915) { - xfer += this->triggers[_i888].read(iprot); + xfer += this->triggers[_i915].read(iprot); } xfer += iprot->readListEnd(); } @@ -21675,14 +22206,14 @@ uint32_t WMFullResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->poolTriggers.clear(); - uint32_t _size889; - ::apache::thrift::protocol::TType _etype892; - xfer += iprot->readListBegin(_etype892, _size889); - this->poolTriggers.resize(_size889); - uint32_t _i893; - for (_i893 = 0; _i893 < _size889; ++_i893) + uint32_t _size916; + ::apache::thrift::protocol::TType _etype919; + xfer += iprot->readListBegin(_etype919, _size916); + this->poolTriggers.resize(_size916); + uint32_t _i920; + for (_i920 = 0; _i920 < _size916; ++_i920) { - xfer += this->poolTriggers[_i893].read(iprot); + xfer += this->poolTriggers[_i920].read(iprot); } xfer += iprot->readListEnd(); } @@ -21719,10 +22250,10 @@ uint32_t WMFullResourcePlan::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("pools", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->pools.size())); - std::vector ::const_iterator _iter894; - for (_iter894 = this->pools.begin(); _iter894 != this->pools.end(); ++_iter894) + std::vector ::const_iterator _iter921; + for (_iter921 = this->pools.begin(); _iter921 != this->pools.end(); ++_iter921) { - xfer += (*_iter894).write(oprot); + xfer += (*_iter921).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21732,10 +22263,10 @@ uint32_t WMFullResourcePlan::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("mappings", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->mappings.size())); - std::vector ::const_iterator _iter895; - for (_iter895 = this->mappings.begin(); _iter895 != this->mappings.end(); ++_iter895) + std::vector ::const_iterator _iter922; + for (_iter922 = this->mappings.begin(); _iter922 != this->mappings.end(); ++_iter922) { - xfer += (*_iter895).write(oprot); + xfer += (*_iter922).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21745,10 +22276,10 @@ uint32_t WMFullResourcePlan::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("triggers", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->triggers.size())); - std::vector ::const_iterator _iter896; - for (_iter896 = this->triggers.begin(); _iter896 != this->triggers.end(); ++_iter896) + std::vector ::const_iterator _iter923; + for (_iter923 = this->triggers.begin(); _iter923 != this->triggers.end(); ++_iter923) { - xfer += (*_iter896).write(oprot); + xfer += (*_iter923).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21758,10 +22289,10 @@ uint32_t WMFullResourcePlan::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("poolTriggers", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->poolTriggers.size())); - std::vector ::const_iterator _iter897; - for (_iter897 = this->poolTriggers.begin(); _iter897 != this->poolTriggers.end(); ++_iter897) + std::vector ::const_iterator _iter924; + for (_iter924 = this->poolTriggers.begin(); _iter924 != this->poolTriggers.end(); ++_iter924) { - xfer += (*_iter897).write(oprot); + xfer += (*_iter924).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21782,21 +22313,21 @@ void swap(WMFullResourcePlan &a, WMFullResourcePlan &b) { swap(a.__isset, b.__isset); } -WMFullResourcePlan::WMFullResourcePlan(const WMFullResourcePlan& other898) { - plan = other898.plan; - pools = other898.pools; - mappings = other898.mappings; - triggers = other898.triggers; - poolTriggers = other898.poolTriggers; - __isset = other898.__isset; +WMFullResourcePlan::WMFullResourcePlan(const WMFullResourcePlan& other925) { + plan = other925.plan; + pools = other925.pools; + mappings = other925.mappings; + triggers = other925.triggers; + poolTriggers = other925.poolTriggers; + __isset = other925.__isset; } -WMFullResourcePlan& WMFullResourcePlan::operator=(const WMFullResourcePlan& other899) { - plan = other899.plan; - pools = other899.pools; - mappings = other899.mappings; - triggers = other899.triggers; - poolTriggers = other899.poolTriggers; - __isset = other899.__isset; +WMFullResourcePlan& WMFullResourcePlan::operator=(const WMFullResourcePlan& other926) { + plan = other926.plan; + pools = other926.pools; + mappings = other926.mappings; + triggers = other926.triggers; + poolTriggers = other926.poolTriggers; + __isset = other926.__isset; return *this; } void WMFullResourcePlan::printTo(std::ostream& out) const { @@ -21882,13 +22413,13 @@ void swap(WMCreateResourcePlanRequest &a, WMCreateResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMCreateResourcePlanRequest::WMCreateResourcePlanRequest(const WMCreateResourcePlanRequest& other900) { - resourcePlan = other900.resourcePlan; - __isset = other900.__isset; +WMCreateResourcePlanRequest::WMCreateResourcePlanRequest(const WMCreateResourcePlanRequest& other927) { + resourcePlan = other927.resourcePlan; + __isset = other927.__isset; } -WMCreateResourcePlanRequest& WMCreateResourcePlanRequest::operator=(const WMCreateResourcePlanRequest& other901) { - resourcePlan = other901.resourcePlan; - __isset = other901.__isset; +WMCreateResourcePlanRequest& WMCreateResourcePlanRequest::operator=(const WMCreateResourcePlanRequest& other928) { + resourcePlan = other928.resourcePlan; + __isset = other928.__isset; return *this; } void WMCreateResourcePlanRequest::printTo(std::ostream& out) const { @@ -21947,11 +22478,11 @@ void swap(WMCreateResourcePlanResponse &a, WMCreateResourcePlanResponse &b) { (void) b; } -WMCreateResourcePlanResponse::WMCreateResourcePlanResponse(const WMCreateResourcePlanResponse& other902) { - (void) other902; +WMCreateResourcePlanResponse::WMCreateResourcePlanResponse(const WMCreateResourcePlanResponse& other929) { + (void) other929; } -WMCreateResourcePlanResponse& WMCreateResourcePlanResponse::operator=(const WMCreateResourcePlanResponse& other903) { - (void) other903; +WMCreateResourcePlanResponse& WMCreateResourcePlanResponse::operator=(const WMCreateResourcePlanResponse& other930) { + (void) other930; return *this; } void WMCreateResourcePlanResponse::printTo(std::ostream& out) const { @@ -22009,11 +22540,11 @@ void swap(WMGetActiveResourcePlanRequest &a, WMGetActiveResourcePlanRequest &b) (void) b; } -WMGetActiveResourcePlanRequest::WMGetActiveResourcePlanRequest(const WMGetActiveResourcePlanRequest& other904) { - (void) other904; +WMGetActiveResourcePlanRequest::WMGetActiveResourcePlanRequest(const WMGetActiveResourcePlanRequest& other931) { + (void) other931; } -WMGetActiveResourcePlanRequest& WMGetActiveResourcePlanRequest::operator=(const WMGetActiveResourcePlanRequest& other905) { - (void) other905; +WMGetActiveResourcePlanRequest& WMGetActiveResourcePlanRequest::operator=(const WMGetActiveResourcePlanRequest& other932) { + (void) other932; return *this; } void WMGetActiveResourcePlanRequest::printTo(std::ostream& out) const { @@ -22094,13 +22625,13 @@ void swap(WMGetActiveResourcePlanResponse &a, WMGetActiveResourcePlanResponse &b swap(a.__isset, b.__isset); } -WMGetActiveResourcePlanResponse::WMGetActiveResourcePlanResponse(const WMGetActiveResourcePlanResponse& other906) { - resourcePlan = other906.resourcePlan; - __isset = other906.__isset; +WMGetActiveResourcePlanResponse::WMGetActiveResourcePlanResponse(const WMGetActiveResourcePlanResponse& other933) { + resourcePlan = other933.resourcePlan; + __isset = other933.__isset; } -WMGetActiveResourcePlanResponse& WMGetActiveResourcePlanResponse::operator=(const WMGetActiveResourcePlanResponse& other907) { - resourcePlan = other907.resourcePlan; - __isset = other907.__isset; +WMGetActiveResourcePlanResponse& WMGetActiveResourcePlanResponse::operator=(const WMGetActiveResourcePlanResponse& other934) { + resourcePlan = other934.resourcePlan; + __isset = other934.__isset; return *this; } void WMGetActiveResourcePlanResponse::printTo(std::ostream& out) const { @@ -22182,13 +22713,13 @@ void swap(WMGetResourcePlanRequest &a, WMGetResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMGetResourcePlanRequest::WMGetResourcePlanRequest(const WMGetResourcePlanRequest& other908) { - resourcePlanName = other908.resourcePlanName; - __isset = other908.__isset; +WMGetResourcePlanRequest::WMGetResourcePlanRequest(const WMGetResourcePlanRequest& other935) { + resourcePlanName = other935.resourcePlanName; + __isset = other935.__isset; } -WMGetResourcePlanRequest& WMGetResourcePlanRequest::operator=(const WMGetResourcePlanRequest& other909) { - resourcePlanName = other909.resourcePlanName; - __isset = other909.__isset; +WMGetResourcePlanRequest& WMGetResourcePlanRequest::operator=(const WMGetResourcePlanRequest& other936) { + resourcePlanName = other936.resourcePlanName; + __isset = other936.__isset; return *this; } void WMGetResourcePlanRequest::printTo(std::ostream& out) const { @@ -22270,13 +22801,13 @@ void swap(WMGetResourcePlanResponse &a, WMGetResourcePlanResponse &b) { swap(a.__isset, b.__isset); } -WMGetResourcePlanResponse::WMGetResourcePlanResponse(const WMGetResourcePlanResponse& other910) { - resourcePlan = other910.resourcePlan; - __isset = other910.__isset; +WMGetResourcePlanResponse::WMGetResourcePlanResponse(const WMGetResourcePlanResponse& other937) { + resourcePlan = other937.resourcePlan; + __isset = other937.__isset; } -WMGetResourcePlanResponse& WMGetResourcePlanResponse::operator=(const WMGetResourcePlanResponse& other911) { - resourcePlan = other911.resourcePlan; - __isset = other911.__isset; +WMGetResourcePlanResponse& WMGetResourcePlanResponse::operator=(const WMGetResourcePlanResponse& other938) { + resourcePlan = other938.resourcePlan; + __isset = other938.__isset; return *this; } void WMGetResourcePlanResponse::printTo(std::ostream& out) const { @@ -22335,11 +22866,11 @@ void swap(WMGetAllResourcePlanRequest &a, WMGetAllResourcePlanRequest &b) { (void) b; } -WMGetAllResourcePlanRequest::WMGetAllResourcePlanRequest(const WMGetAllResourcePlanRequest& other912) { - (void) other912; +WMGetAllResourcePlanRequest::WMGetAllResourcePlanRequest(const WMGetAllResourcePlanRequest& other939) { + (void) other939; } -WMGetAllResourcePlanRequest& WMGetAllResourcePlanRequest::operator=(const WMGetAllResourcePlanRequest& other913) { - (void) other913; +WMGetAllResourcePlanRequest& WMGetAllResourcePlanRequest::operator=(const WMGetAllResourcePlanRequest& other940) { + (void) other940; return *this; } void WMGetAllResourcePlanRequest::printTo(std::ostream& out) const { @@ -22383,14 +22914,14 @@ uint32_t WMGetAllResourcePlanResponse::read(::apache::thrift::protocol::TProtoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->resourcePlans.clear(); - uint32_t _size914; - ::apache::thrift::protocol::TType _etype917; - xfer += iprot->readListBegin(_etype917, _size914); - this->resourcePlans.resize(_size914); - uint32_t _i918; - for (_i918 = 0; _i918 < _size914; ++_i918) + uint32_t _size941; + ::apache::thrift::protocol::TType _etype944; + xfer += iprot->readListBegin(_etype944, _size941); + this->resourcePlans.resize(_size941); + uint32_t _i945; + for (_i945 = 0; _i945 < _size941; ++_i945) { - xfer += this->resourcePlans[_i918].read(iprot); + xfer += this->resourcePlans[_i945].read(iprot); } xfer += iprot->readListEnd(); } @@ -22420,10 +22951,10 @@ uint32_t WMGetAllResourcePlanResponse::write(::apache::thrift::protocol::TProtoc xfer += oprot->writeFieldBegin("resourcePlans", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->resourcePlans.size())); - std::vector ::const_iterator _iter919; - for (_iter919 = this->resourcePlans.begin(); _iter919 != this->resourcePlans.end(); ++_iter919) + std::vector ::const_iterator _iter946; + for (_iter946 = this->resourcePlans.begin(); _iter946 != this->resourcePlans.end(); ++_iter946) { - xfer += (*_iter919).write(oprot); + xfer += (*_iter946).write(oprot); } xfer += oprot->writeListEnd(); } @@ -22440,13 +22971,13 @@ void swap(WMGetAllResourcePlanResponse &a, WMGetAllResourcePlanResponse &b) { swap(a.__isset, b.__isset); } -WMGetAllResourcePlanResponse::WMGetAllResourcePlanResponse(const WMGetAllResourcePlanResponse& other920) { - resourcePlans = other920.resourcePlans; - __isset = other920.__isset; +WMGetAllResourcePlanResponse::WMGetAllResourcePlanResponse(const WMGetAllResourcePlanResponse& other947) { + resourcePlans = other947.resourcePlans; + __isset = other947.__isset; } -WMGetAllResourcePlanResponse& WMGetAllResourcePlanResponse::operator=(const WMGetAllResourcePlanResponse& other921) { - resourcePlans = other921.resourcePlans; - __isset = other921.__isset; +WMGetAllResourcePlanResponse& WMGetAllResourcePlanResponse::operator=(const WMGetAllResourcePlanResponse& other948) { + resourcePlans = other948.resourcePlans; + __isset = other948.__isset; return *this; } void WMGetAllResourcePlanResponse::printTo(std::ostream& out) const { @@ -22566,17 +23097,17 @@ void swap(WMAlterResourcePlanRequest &a, WMAlterResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMAlterResourcePlanRequest::WMAlterResourcePlanRequest(const WMAlterResourcePlanRequest& other922) { - resourcePlanName = other922.resourcePlanName; - resourcePlan = other922.resourcePlan; - isEnableAndActivate = other922.isEnableAndActivate; - __isset = other922.__isset; +WMAlterResourcePlanRequest::WMAlterResourcePlanRequest(const WMAlterResourcePlanRequest& other949) { + resourcePlanName = other949.resourcePlanName; + resourcePlan = other949.resourcePlan; + isEnableAndActivate = other949.isEnableAndActivate; + __isset = other949.__isset; } -WMAlterResourcePlanRequest& WMAlterResourcePlanRequest::operator=(const WMAlterResourcePlanRequest& other923) { - resourcePlanName = other923.resourcePlanName; - resourcePlan = other923.resourcePlan; - isEnableAndActivate = other923.isEnableAndActivate; - __isset = other923.__isset; +WMAlterResourcePlanRequest& WMAlterResourcePlanRequest::operator=(const WMAlterResourcePlanRequest& other950) { + resourcePlanName = other950.resourcePlanName; + resourcePlan = other950.resourcePlan; + isEnableAndActivate = other950.isEnableAndActivate; + __isset = other950.__isset; return *this; } void WMAlterResourcePlanRequest::printTo(std::ostream& out) const { @@ -22660,13 +23191,13 @@ void swap(WMAlterResourcePlanResponse &a, WMAlterResourcePlanResponse &b) { swap(a.__isset, b.__isset); } -WMAlterResourcePlanResponse::WMAlterResourcePlanResponse(const WMAlterResourcePlanResponse& other924) { - fullResourcePlan = other924.fullResourcePlan; - __isset = other924.__isset; +WMAlterResourcePlanResponse::WMAlterResourcePlanResponse(const WMAlterResourcePlanResponse& other951) { + fullResourcePlan = other951.fullResourcePlan; + __isset = other951.__isset; } -WMAlterResourcePlanResponse& WMAlterResourcePlanResponse::operator=(const WMAlterResourcePlanResponse& other925) { - fullResourcePlan = other925.fullResourcePlan; - __isset = other925.__isset; +WMAlterResourcePlanResponse& WMAlterResourcePlanResponse::operator=(const WMAlterResourcePlanResponse& other952) { + fullResourcePlan = other952.fullResourcePlan; + __isset = other952.__isset; return *this; } void WMAlterResourcePlanResponse::printTo(std::ostream& out) const { @@ -22748,13 +23279,13 @@ void swap(WMValidateResourcePlanRequest &a, WMValidateResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMValidateResourcePlanRequest::WMValidateResourcePlanRequest(const WMValidateResourcePlanRequest& other926) { - resourcePlanName = other926.resourcePlanName; - __isset = other926.__isset; +WMValidateResourcePlanRequest::WMValidateResourcePlanRequest(const WMValidateResourcePlanRequest& other953) { + resourcePlanName = other953.resourcePlanName; + __isset = other953.__isset; } -WMValidateResourcePlanRequest& WMValidateResourcePlanRequest::operator=(const WMValidateResourcePlanRequest& other927) { - resourcePlanName = other927.resourcePlanName; - __isset = other927.__isset; +WMValidateResourcePlanRequest& WMValidateResourcePlanRequest::operator=(const WMValidateResourcePlanRequest& other954) { + resourcePlanName = other954.resourcePlanName; + __isset = other954.__isset; return *this; } void WMValidateResourcePlanRequest::printTo(std::ostream& out) const { @@ -22799,14 +23330,14 @@ uint32_t WMValidateResourcePlanResponse::read(::apache::thrift::protocol::TProto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->errors.clear(); - uint32_t _size928; - ::apache::thrift::protocol::TType _etype931; - xfer += iprot->readListBegin(_etype931, _size928); - this->errors.resize(_size928); - uint32_t _i932; - for (_i932 = 0; _i932 < _size928; ++_i932) + uint32_t _size955; + ::apache::thrift::protocol::TType _etype958; + xfer += iprot->readListBegin(_etype958, _size955); + this->errors.resize(_size955); + uint32_t _i959; + for (_i959 = 0; _i959 < _size955; ++_i959) { - xfer += iprot->readString(this->errors[_i932]); + xfer += iprot->readString(this->errors[_i959]); } xfer += iprot->readListEnd(); } @@ -22836,10 +23367,10 @@ uint32_t WMValidateResourcePlanResponse::write(::apache::thrift::protocol::TProt xfer += oprot->writeFieldBegin("errors", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->errors.size())); - std::vector ::const_iterator _iter933; - for (_iter933 = this->errors.begin(); _iter933 != this->errors.end(); ++_iter933) + std::vector ::const_iterator _iter960; + for (_iter960 = this->errors.begin(); _iter960 != this->errors.end(); ++_iter960) { - xfer += oprot->writeString((*_iter933)); + xfer += oprot->writeString((*_iter960)); } xfer += oprot->writeListEnd(); } @@ -22856,13 +23387,13 @@ void swap(WMValidateResourcePlanResponse &a, WMValidateResourcePlanResponse &b) swap(a.__isset, b.__isset); } -WMValidateResourcePlanResponse::WMValidateResourcePlanResponse(const WMValidateResourcePlanResponse& other934) { - errors = other934.errors; - __isset = other934.__isset; +WMValidateResourcePlanResponse::WMValidateResourcePlanResponse(const WMValidateResourcePlanResponse& other961) { + errors = other961.errors; + __isset = other961.__isset; } -WMValidateResourcePlanResponse& WMValidateResourcePlanResponse::operator=(const WMValidateResourcePlanResponse& other935) { - errors = other935.errors; - __isset = other935.__isset; +WMValidateResourcePlanResponse& WMValidateResourcePlanResponse::operator=(const WMValidateResourcePlanResponse& other962) { + errors = other962.errors; + __isset = other962.__isset; return *this; } void WMValidateResourcePlanResponse::printTo(std::ostream& out) const { @@ -22944,13 +23475,13 @@ void swap(WMDropResourcePlanRequest &a, WMDropResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMDropResourcePlanRequest::WMDropResourcePlanRequest(const WMDropResourcePlanRequest& other936) { - resourcePlanName = other936.resourcePlanName; - __isset = other936.__isset; +WMDropResourcePlanRequest::WMDropResourcePlanRequest(const WMDropResourcePlanRequest& other963) { + resourcePlanName = other963.resourcePlanName; + __isset = other963.__isset; } -WMDropResourcePlanRequest& WMDropResourcePlanRequest::operator=(const WMDropResourcePlanRequest& other937) { - resourcePlanName = other937.resourcePlanName; - __isset = other937.__isset; +WMDropResourcePlanRequest& WMDropResourcePlanRequest::operator=(const WMDropResourcePlanRequest& other964) { + resourcePlanName = other964.resourcePlanName; + __isset = other964.__isset; return *this; } void WMDropResourcePlanRequest::printTo(std::ostream& out) const { @@ -23009,11 +23540,11 @@ void swap(WMDropResourcePlanResponse &a, WMDropResourcePlanResponse &b) { (void) b; } -WMDropResourcePlanResponse::WMDropResourcePlanResponse(const WMDropResourcePlanResponse& other938) { - (void) other938; +WMDropResourcePlanResponse::WMDropResourcePlanResponse(const WMDropResourcePlanResponse& other965) { + (void) other965; } -WMDropResourcePlanResponse& WMDropResourcePlanResponse::operator=(const WMDropResourcePlanResponse& other939) { - (void) other939; +WMDropResourcePlanResponse& WMDropResourcePlanResponse::operator=(const WMDropResourcePlanResponse& other966) { + (void) other966; return *this; } void WMDropResourcePlanResponse::printTo(std::ostream& out) const { @@ -23094,13 +23625,13 @@ void swap(WMCreateTriggerRequest &a, WMCreateTriggerRequest &b) { swap(a.__isset, b.__isset); } -WMCreateTriggerRequest::WMCreateTriggerRequest(const WMCreateTriggerRequest& other940) { - trigger = other940.trigger; - __isset = other940.__isset; +WMCreateTriggerRequest::WMCreateTriggerRequest(const WMCreateTriggerRequest& other967) { + trigger = other967.trigger; + __isset = other967.__isset; } -WMCreateTriggerRequest& WMCreateTriggerRequest::operator=(const WMCreateTriggerRequest& other941) { - trigger = other941.trigger; - __isset = other941.__isset; +WMCreateTriggerRequest& WMCreateTriggerRequest::operator=(const WMCreateTriggerRequest& other968) { + trigger = other968.trigger; + __isset = other968.__isset; return *this; } void WMCreateTriggerRequest::printTo(std::ostream& out) const { @@ -23159,11 +23690,11 @@ void swap(WMCreateTriggerResponse &a, WMCreateTriggerResponse &b) { (void) b; } -WMCreateTriggerResponse::WMCreateTriggerResponse(const WMCreateTriggerResponse& other942) { - (void) other942; +WMCreateTriggerResponse::WMCreateTriggerResponse(const WMCreateTriggerResponse& other969) { + (void) other969; } -WMCreateTriggerResponse& WMCreateTriggerResponse::operator=(const WMCreateTriggerResponse& other943) { - (void) other943; +WMCreateTriggerResponse& WMCreateTriggerResponse::operator=(const WMCreateTriggerResponse& other970) { + (void) other970; return *this; } void WMCreateTriggerResponse::printTo(std::ostream& out) const { @@ -23244,13 +23775,13 @@ void swap(WMAlterTriggerRequest &a, WMAlterTriggerRequest &b) { swap(a.__isset, b.__isset); } -WMAlterTriggerRequest::WMAlterTriggerRequest(const WMAlterTriggerRequest& other944) { - trigger = other944.trigger; - __isset = other944.__isset; +WMAlterTriggerRequest::WMAlterTriggerRequest(const WMAlterTriggerRequest& other971) { + trigger = other971.trigger; + __isset = other971.__isset; } -WMAlterTriggerRequest& WMAlterTriggerRequest::operator=(const WMAlterTriggerRequest& other945) { - trigger = other945.trigger; - __isset = other945.__isset; +WMAlterTriggerRequest& WMAlterTriggerRequest::operator=(const WMAlterTriggerRequest& other972) { + trigger = other972.trigger; + __isset = other972.__isset; return *this; } void WMAlterTriggerRequest::printTo(std::ostream& out) const { @@ -23309,11 +23840,11 @@ void swap(WMAlterTriggerResponse &a, WMAlterTriggerResponse &b) { (void) b; } -WMAlterTriggerResponse::WMAlterTriggerResponse(const WMAlterTriggerResponse& other946) { - (void) other946; +WMAlterTriggerResponse::WMAlterTriggerResponse(const WMAlterTriggerResponse& other973) { + (void) other973; } -WMAlterTriggerResponse& WMAlterTriggerResponse::operator=(const WMAlterTriggerResponse& other947) { - (void) other947; +WMAlterTriggerResponse& WMAlterTriggerResponse::operator=(const WMAlterTriggerResponse& other974) { + (void) other974; return *this; } void WMAlterTriggerResponse::printTo(std::ostream& out) const { @@ -23413,15 +23944,15 @@ void swap(WMDropTriggerRequest &a, WMDropTriggerRequest &b) { swap(a.__isset, b.__isset); } -WMDropTriggerRequest::WMDropTriggerRequest(const WMDropTriggerRequest& other948) { - resourcePlanName = other948.resourcePlanName; - triggerName = other948.triggerName; - __isset = other948.__isset; +WMDropTriggerRequest::WMDropTriggerRequest(const WMDropTriggerRequest& other975) { + resourcePlanName = other975.resourcePlanName; + triggerName = other975.triggerName; + __isset = other975.__isset; } -WMDropTriggerRequest& WMDropTriggerRequest::operator=(const WMDropTriggerRequest& other949) { - resourcePlanName = other949.resourcePlanName; - triggerName = other949.triggerName; - __isset = other949.__isset; +WMDropTriggerRequest& WMDropTriggerRequest::operator=(const WMDropTriggerRequest& other976) { + resourcePlanName = other976.resourcePlanName; + triggerName = other976.triggerName; + __isset = other976.__isset; return *this; } void WMDropTriggerRequest::printTo(std::ostream& out) const { @@ -23481,11 +24012,11 @@ void swap(WMDropTriggerResponse &a, WMDropTriggerResponse &b) { (void) b; } -WMDropTriggerResponse::WMDropTriggerResponse(const WMDropTriggerResponse& other950) { - (void) other950; +WMDropTriggerResponse::WMDropTriggerResponse(const WMDropTriggerResponse& other977) { + (void) other977; } -WMDropTriggerResponse& WMDropTriggerResponse::operator=(const WMDropTriggerResponse& other951) { - (void) other951; +WMDropTriggerResponse& WMDropTriggerResponse::operator=(const WMDropTriggerResponse& other978) { + (void) other978; return *this; } void WMDropTriggerResponse::printTo(std::ostream& out) const { @@ -23566,13 +24097,13 @@ void swap(WMGetTriggersForResourePlanRequest &a, WMGetTriggersForResourePlanRequ swap(a.__isset, b.__isset); } -WMGetTriggersForResourePlanRequest::WMGetTriggersForResourePlanRequest(const WMGetTriggersForResourePlanRequest& other952) { - resourcePlanName = other952.resourcePlanName; - __isset = other952.__isset; +WMGetTriggersForResourePlanRequest::WMGetTriggersForResourePlanRequest(const WMGetTriggersForResourePlanRequest& other979) { + resourcePlanName = other979.resourcePlanName; + __isset = other979.__isset; } -WMGetTriggersForResourePlanRequest& WMGetTriggersForResourePlanRequest::operator=(const WMGetTriggersForResourePlanRequest& other953) { - resourcePlanName = other953.resourcePlanName; - __isset = other953.__isset; +WMGetTriggersForResourePlanRequest& WMGetTriggersForResourePlanRequest::operator=(const WMGetTriggersForResourePlanRequest& other980) { + resourcePlanName = other980.resourcePlanName; + __isset = other980.__isset; return *this; } void WMGetTriggersForResourePlanRequest::printTo(std::ostream& out) const { @@ -23617,14 +24148,14 @@ uint32_t WMGetTriggersForResourePlanResponse::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { this->triggers.clear(); - uint32_t _size954; - ::apache::thrift::protocol::TType _etype957; - xfer += iprot->readListBegin(_etype957, _size954); - this->triggers.resize(_size954); - uint32_t _i958; - for (_i958 = 0; _i958 < _size954; ++_i958) + uint32_t _size981; + ::apache::thrift::protocol::TType _etype984; + xfer += iprot->readListBegin(_etype984, _size981); + this->triggers.resize(_size981); + uint32_t _i985; + for (_i985 = 0; _i985 < _size981; ++_i985) { - xfer += this->triggers[_i958].read(iprot); + xfer += this->triggers[_i985].read(iprot); } xfer += iprot->readListEnd(); } @@ -23654,10 +24185,10 @@ uint32_t WMGetTriggersForResourePlanResponse::write(::apache::thrift::protocol:: xfer += oprot->writeFieldBegin("triggers", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->triggers.size())); - std::vector ::const_iterator _iter959; - for (_iter959 = this->triggers.begin(); _iter959 != this->triggers.end(); ++_iter959) + std::vector ::const_iterator _iter986; + for (_iter986 = this->triggers.begin(); _iter986 != this->triggers.end(); ++_iter986) { - xfer += (*_iter959).write(oprot); + xfer += (*_iter986).write(oprot); } xfer += oprot->writeListEnd(); } @@ -23674,13 +24205,13 @@ void swap(WMGetTriggersForResourePlanResponse &a, WMGetTriggersForResourePlanRes swap(a.__isset, b.__isset); } -WMGetTriggersForResourePlanResponse::WMGetTriggersForResourePlanResponse(const WMGetTriggersForResourePlanResponse& other960) { - triggers = other960.triggers; - __isset = other960.__isset; +WMGetTriggersForResourePlanResponse::WMGetTriggersForResourePlanResponse(const WMGetTriggersForResourePlanResponse& other987) { + triggers = other987.triggers; + __isset = other987.__isset; } -WMGetTriggersForResourePlanResponse& WMGetTriggersForResourePlanResponse::operator=(const WMGetTriggersForResourePlanResponse& other961) { - triggers = other961.triggers; - __isset = other961.__isset; +WMGetTriggersForResourePlanResponse& WMGetTriggersForResourePlanResponse::operator=(const WMGetTriggersForResourePlanResponse& other988) { + triggers = other988.triggers; + __isset = other988.__isset; return *this; } void WMGetTriggersForResourePlanResponse::printTo(std::ostream& out) const { @@ -23762,13 +24293,13 @@ void swap(WMCreatePoolRequest &a, WMCreatePoolRequest &b) { swap(a.__isset, b.__isset); } -WMCreatePoolRequest::WMCreatePoolRequest(const WMCreatePoolRequest& other962) { - pool = other962.pool; - __isset = other962.__isset; +WMCreatePoolRequest::WMCreatePoolRequest(const WMCreatePoolRequest& other989) { + pool = other989.pool; + __isset = other989.__isset; } -WMCreatePoolRequest& WMCreatePoolRequest::operator=(const WMCreatePoolRequest& other963) { - pool = other963.pool; - __isset = other963.__isset; +WMCreatePoolRequest& WMCreatePoolRequest::operator=(const WMCreatePoolRequest& other990) { + pool = other990.pool; + __isset = other990.__isset; return *this; } void WMCreatePoolRequest::printTo(std::ostream& out) const { @@ -23827,11 +24358,11 @@ void swap(WMCreatePoolResponse &a, WMCreatePoolResponse &b) { (void) b; } -WMCreatePoolResponse::WMCreatePoolResponse(const WMCreatePoolResponse& other964) { - (void) other964; +WMCreatePoolResponse::WMCreatePoolResponse(const WMCreatePoolResponse& other991) { + (void) other991; } -WMCreatePoolResponse& WMCreatePoolResponse::operator=(const WMCreatePoolResponse& other965) { - (void) other965; +WMCreatePoolResponse& WMCreatePoolResponse::operator=(const WMCreatePoolResponse& other992) { + (void) other992; return *this; } void WMCreatePoolResponse::printTo(std::ostream& out) const { @@ -23931,15 +24462,15 @@ void swap(WMAlterPoolRequest &a, WMAlterPoolRequest &b) { swap(a.__isset, b.__isset); } -WMAlterPoolRequest::WMAlterPoolRequest(const WMAlterPoolRequest& other966) { - pool = other966.pool; - poolPath = other966.poolPath; - __isset = other966.__isset; +WMAlterPoolRequest::WMAlterPoolRequest(const WMAlterPoolRequest& other993) { + pool = other993.pool; + poolPath = other993.poolPath; + __isset = other993.__isset; } -WMAlterPoolRequest& WMAlterPoolRequest::operator=(const WMAlterPoolRequest& other967) { - pool = other967.pool; - poolPath = other967.poolPath; - __isset = other967.__isset; +WMAlterPoolRequest& WMAlterPoolRequest::operator=(const WMAlterPoolRequest& other994) { + pool = other994.pool; + poolPath = other994.poolPath; + __isset = other994.__isset; return *this; } void WMAlterPoolRequest::printTo(std::ostream& out) const { @@ -23999,11 +24530,11 @@ void swap(WMAlterPoolResponse &a, WMAlterPoolResponse &b) { (void) b; } -WMAlterPoolResponse::WMAlterPoolResponse(const WMAlterPoolResponse& other968) { - (void) other968; +WMAlterPoolResponse::WMAlterPoolResponse(const WMAlterPoolResponse& other995) { + (void) other995; } -WMAlterPoolResponse& WMAlterPoolResponse::operator=(const WMAlterPoolResponse& other969) { - (void) other969; +WMAlterPoolResponse& WMAlterPoolResponse::operator=(const WMAlterPoolResponse& other996) { + (void) other996; return *this; } void WMAlterPoolResponse::printTo(std::ostream& out) const { @@ -24103,15 +24634,15 @@ void swap(WMDropPoolRequest &a, WMDropPoolRequest &b) { swap(a.__isset, b.__isset); } -WMDropPoolRequest::WMDropPoolRequest(const WMDropPoolRequest& other970) { - resourcePlanName = other970.resourcePlanName; - poolPath = other970.poolPath; - __isset = other970.__isset; +WMDropPoolRequest::WMDropPoolRequest(const WMDropPoolRequest& other997) { + resourcePlanName = other997.resourcePlanName; + poolPath = other997.poolPath; + __isset = other997.__isset; } -WMDropPoolRequest& WMDropPoolRequest::operator=(const WMDropPoolRequest& other971) { - resourcePlanName = other971.resourcePlanName; - poolPath = other971.poolPath; - __isset = other971.__isset; +WMDropPoolRequest& WMDropPoolRequest::operator=(const WMDropPoolRequest& other998) { + resourcePlanName = other998.resourcePlanName; + poolPath = other998.poolPath; + __isset = other998.__isset; return *this; } void WMDropPoolRequest::printTo(std::ostream& out) const { @@ -24171,11 +24702,11 @@ void swap(WMDropPoolResponse &a, WMDropPoolResponse &b) { (void) b; } -WMDropPoolResponse::WMDropPoolResponse(const WMDropPoolResponse& other972) { - (void) other972; +WMDropPoolResponse::WMDropPoolResponse(const WMDropPoolResponse& other999) { + (void) other999; } -WMDropPoolResponse& WMDropPoolResponse::operator=(const WMDropPoolResponse& other973) { - (void) other973; +WMDropPoolResponse& WMDropPoolResponse::operator=(const WMDropPoolResponse& other1000) { + (void) other1000; return *this; } void WMDropPoolResponse::printTo(std::ostream& out) const { @@ -24275,15 +24806,15 @@ void swap(WMCreateOrUpdateMappingRequest &a, WMCreateOrUpdateMappingRequest &b) swap(a.__isset, b.__isset); } -WMCreateOrUpdateMappingRequest::WMCreateOrUpdateMappingRequest(const WMCreateOrUpdateMappingRequest& other974) { - mapping = other974.mapping; - update = other974.update; - __isset = other974.__isset; +WMCreateOrUpdateMappingRequest::WMCreateOrUpdateMappingRequest(const WMCreateOrUpdateMappingRequest& other1001) { + mapping = other1001.mapping; + update = other1001.update; + __isset = other1001.__isset; } -WMCreateOrUpdateMappingRequest& WMCreateOrUpdateMappingRequest::operator=(const WMCreateOrUpdateMappingRequest& other975) { - mapping = other975.mapping; - update = other975.update; - __isset = other975.__isset; +WMCreateOrUpdateMappingRequest& WMCreateOrUpdateMappingRequest::operator=(const WMCreateOrUpdateMappingRequest& other1002) { + mapping = other1002.mapping; + update = other1002.update; + __isset = other1002.__isset; return *this; } void WMCreateOrUpdateMappingRequest::printTo(std::ostream& out) const { @@ -24343,11 +24874,11 @@ void swap(WMCreateOrUpdateMappingResponse &a, WMCreateOrUpdateMappingResponse &b (void) b; } -WMCreateOrUpdateMappingResponse::WMCreateOrUpdateMappingResponse(const WMCreateOrUpdateMappingResponse& other976) { - (void) other976; +WMCreateOrUpdateMappingResponse::WMCreateOrUpdateMappingResponse(const WMCreateOrUpdateMappingResponse& other1003) { + (void) other1003; } -WMCreateOrUpdateMappingResponse& WMCreateOrUpdateMappingResponse::operator=(const WMCreateOrUpdateMappingResponse& other977) { - (void) other977; +WMCreateOrUpdateMappingResponse& WMCreateOrUpdateMappingResponse::operator=(const WMCreateOrUpdateMappingResponse& other1004) { + (void) other1004; return *this; } void WMCreateOrUpdateMappingResponse::printTo(std::ostream& out) const { @@ -24428,13 +24959,13 @@ void swap(WMDropMappingRequest &a, WMDropMappingRequest &b) { swap(a.__isset, b.__isset); } -WMDropMappingRequest::WMDropMappingRequest(const WMDropMappingRequest& other978) { - mapping = other978.mapping; - __isset = other978.__isset; +WMDropMappingRequest::WMDropMappingRequest(const WMDropMappingRequest& other1005) { + mapping = other1005.mapping; + __isset = other1005.__isset; } -WMDropMappingRequest& WMDropMappingRequest::operator=(const WMDropMappingRequest& other979) { - mapping = other979.mapping; - __isset = other979.__isset; +WMDropMappingRequest& WMDropMappingRequest::operator=(const WMDropMappingRequest& other1006) { + mapping = other1006.mapping; + __isset = other1006.__isset; return *this; } void WMDropMappingRequest::printTo(std::ostream& out) const { @@ -24493,11 +25024,11 @@ void swap(WMDropMappingResponse &a, WMDropMappingResponse &b) { (void) b; } -WMDropMappingResponse::WMDropMappingResponse(const WMDropMappingResponse& other980) { - (void) other980; +WMDropMappingResponse::WMDropMappingResponse(const WMDropMappingResponse& other1007) { + (void) other1007; } -WMDropMappingResponse& WMDropMappingResponse::operator=(const WMDropMappingResponse& other981) { - (void) other981; +WMDropMappingResponse& WMDropMappingResponse::operator=(const WMDropMappingResponse& other1008) { + (void) other1008; return *this; } void WMDropMappingResponse::printTo(std::ostream& out) const { @@ -24635,19 +25166,19 @@ void swap(WMCreateOrDropTriggerToPoolMappingRequest &a, WMCreateOrDropTriggerToP swap(a.__isset, b.__isset); } -WMCreateOrDropTriggerToPoolMappingRequest::WMCreateOrDropTriggerToPoolMappingRequest(const WMCreateOrDropTriggerToPoolMappingRequest& other982) { - resourcePlanName = other982.resourcePlanName; - triggerName = other982.triggerName; - poolPath = other982.poolPath; - drop = other982.drop; - __isset = other982.__isset; +WMCreateOrDropTriggerToPoolMappingRequest::WMCreateOrDropTriggerToPoolMappingRequest(const WMCreateOrDropTriggerToPoolMappingRequest& other1009) { + resourcePlanName = other1009.resourcePlanName; + triggerName = other1009.triggerName; + poolPath = other1009.poolPath; + drop = other1009.drop; + __isset = other1009.__isset; } -WMCreateOrDropTriggerToPoolMappingRequest& WMCreateOrDropTriggerToPoolMappingRequest::operator=(const WMCreateOrDropTriggerToPoolMappingRequest& other983) { - resourcePlanName = other983.resourcePlanName; - triggerName = other983.triggerName; - poolPath = other983.poolPath; - drop = other983.drop; - __isset = other983.__isset; +WMCreateOrDropTriggerToPoolMappingRequest& WMCreateOrDropTriggerToPoolMappingRequest::operator=(const WMCreateOrDropTriggerToPoolMappingRequest& other1010) { + resourcePlanName = other1010.resourcePlanName; + triggerName = other1010.triggerName; + poolPath = other1010.poolPath; + drop = other1010.drop; + __isset = other1010.__isset; return *this; } void WMCreateOrDropTriggerToPoolMappingRequest::printTo(std::ostream& out) const { @@ -24709,11 +25240,11 @@ void swap(WMCreateOrDropTriggerToPoolMappingResponse &a, WMCreateOrDropTriggerTo (void) b; } -WMCreateOrDropTriggerToPoolMappingResponse::WMCreateOrDropTriggerToPoolMappingResponse(const WMCreateOrDropTriggerToPoolMappingResponse& other984) { - (void) other984; +WMCreateOrDropTriggerToPoolMappingResponse::WMCreateOrDropTriggerToPoolMappingResponse(const WMCreateOrDropTriggerToPoolMappingResponse& other1011) { + (void) other1011; } -WMCreateOrDropTriggerToPoolMappingResponse& WMCreateOrDropTriggerToPoolMappingResponse::operator=(const WMCreateOrDropTriggerToPoolMappingResponse& other985) { - (void) other985; +WMCreateOrDropTriggerToPoolMappingResponse& WMCreateOrDropTriggerToPoolMappingResponse::operator=(const WMCreateOrDropTriggerToPoolMappingResponse& other1012) { + (void) other1012; return *this; } void WMCreateOrDropTriggerToPoolMappingResponse::printTo(std::ostream& out) const { @@ -24792,13 +25323,13 @@ void swap(MetaException &a, MetaException &b) { swap(a.__isset, b.__isset); } -MetaException::MetaException(const MetaException& other986) : TException() { - message = other986.message; - __isset = other986.__isset; +MetaException::MetaException(const MetaException& other1013) : TException() { + message = other1013.message; + __isset = other1013.__isset; } -MetaException& MetaException::operator=(const MetaException& other987) { - message = other987.message; - __isset = other987.__isset; +MetaException& MetaException::operator=(const MetaException& other1014) { + message = other1014.message; + __isset = other1014.__isset; return *this; } void MetaException::printTo(std::ostream& out) const { @@ -24889,13 +25420,13 @@ void swap(UnknownTableException &a, UnknownTableException &b) { swap(a.__isset, b.__isset); } -UnknownTableException::UnknownTableException(const UnknownTableException& other988) : TException() { - message = other988.message; - __isset = other988.__isset; +UnknownTableException::UnknownTableException(const UnknownTableException& other1015) : TException() { + message = other1015.message; + __isset = other1015.__isset; } -UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other989) { - message = other989.message; - __isset = other989.__isset; +UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other1016) { + message = other1016.message; + __isset = other1016.__isset; return *this; } void UnknownTableException::printTo(std::ostream& out) const { @@ -24986,13 +25517,13 @@ void swap(UnknownDBException &a, UnknownDBException &b) { swap(a.__isset, b.__isset); } -UnknownDBException::UnknownDBException(const UnknownDBException& other990) : TException() { - message = other990.message; - __isset = other990.__isset; +UnknownDBException::UnknownDBException(const UnknownDBException& other1017) : TException() { + message = other1017.message; + __isset = other1017.__isset; } -UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other991) { - message = other991.message; - __isset = other991.__isset; +UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other1018) { + message = other1018.message; + __isset = other1018.__isset; return *this; } void UnknownDBException::printTo(std::ostream& out) const { @@ -25083,13 +25614,13 @@ void swap(AlreadyExistsException &a, AlreadyExistsException &b) { swap(a.__isset, b.__isset); } -AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other992) : TException() { - message = other992.message; - __isset = other992.__isset; +AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other1019) : TException() { + message = other1019.message; + __isset = other1019.__isset; } -AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other993) { - message = other993.message; - __isset = other993.__isset; +AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other1020) { + message = other1020.message; + __isset = other1020.__isset; return *this; } void AlreadyExistsException::printTo(std::ostream& out) const { @@ -25180,13 +25711,13 @@ void swap(InvalidPartitionException &a, InvalidPartitionException &b) { swap(a.__isset, b.__isset); } -InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other994) : TException() { - message = other994.message; - __isset = other994.__isset; +InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other1021) : TException() { + message = other1021.message; + __isset = other1021.__isset; } -InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other995) { - message = other995.message; - __isset = other995.__isset; +InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other1022) { + message = other1022.message; + __isset = other1022.__isset; return *this; } void InvalidPartitionException::printTo(std::ostream& out) const { @@ -25277,13 +25808,13 @@ void swap(UnknownPartitionException &a, UnknownPartitionException &b) { swap(a.__isset, b.__isset); } -UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other996) : TException() { - message = other996.message; - __isset = other996.__isset; +UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other1023) : TException() { + message = other1023.message; + __isset = other1023.__isset; } -UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other997) { - message = other997.message; - __isset = other997.__isset; +UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other1024) { + message = other1024.message; + __isset = other1024.__isset; return *this; } void UnknownPartitionException::printTo(std::ostream& out) const { @@ -25374,13 +25905,13 @@ void swap(InvalidObjectException &a, InvalidObjectException &b) { swap(a.__isset, b.__isset); } -InvalidObjectException::InvalidObjectException(const InvalidObjectException& other998) : TException() { - message = other998.message; - __isset = other998.__isset; +InvalidObjectException::InvalidObjectException(const InvalidObjectException& other1025) : TException() { + message = other1025.message; + __isset = other1025.__isset; } -InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other999) { - message = other999.message; - __isset = other999.__isset; +InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other1026) { + message = other1026.message; + __isset = other1026.__isset; return *this; } void InvalidObjectException::printTo(std::ostream& out) const { @@ -25471,13 +26002,13 @@ void swap(NoSuchObjectException &a, NoSuchObjectException &b) { swap(a.__isset, b.__isset); } -NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other1000) : TException() { - message = other1000.message; - __isset = other1000.__isset; +NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other1027) : TException() { + message = other1027.message; + __isset = other1027.__isset; } -NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other1001) { - message = other1001.message; - __isset = other1001.__isset; +NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other1028) { + message = other1028.message; + __isset = other1028.__isset; return *this; } void NoSuchObjectException::printTo(std::ostream& out) const { @@ -25568,13 +26099,13 @@ void swap(IndexAlreadyExistsException &a, IndexAlreadyExistsException &b) { swap(a.__isset, b.__isset); } -IndexAlreadyExistsException::IndexAlreadyExistsException(const IndexAlreadyExistsException& other1002) : TException() { - message = other1002.message; - __isset = other1002.__isset; +IndexAlreadyExistsException::IndexAlreadyExistsException(const IndexAlreadyExistsException& other1029) : TException() { + message = other1029.message; + __isset = other1029.__isset; } -IndexAlreadyExistsException& IndexAlreadyExistsException::operator=(const IndexAlreadyExistsException& other1003) { - message = other1003.message; - __isset = other1003.__isset; +IndexAlreadyExistsException& IndexAlreadyExistsException::operator=(const IndexAlreadyExistsException& other1030) { + message = other1030.message; + __isset = other1030.__isset; return *this; } void IndexAlreadyExistsException::printTo(std::ostream& out) const { @@ -25665,13 +26196,13 @@ void swap(InvalidOperationException &a, InvalidOperationException &b) { swap(a.__isset, b.__isset); } -InvalidOperationException::InvalidOperationException(const InvalidOperationException& other1004) : TException() { - message = other1004.message; - __isset = other1004.__isset; +InvalidOperationException::InvalidOperationException(const InvalidOperationException& other1031) : TException() { + message = other1031.message; + __isset = other1031.__isset; } -InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other1005) { - message = other1005.message; - __isset = other1005.__isset; +InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other1032) { + message = other1032.message; + __isset = other1032.__isset; return *this; } void InvalidOperationException::printTo(std::ostream& out) const { @@ -25762,13 +26293,13 @@ void swap(ConfigValSecurityException &a, ConfigValSecurityException &b) { swap(a.__isset, b.__isset); } -ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other1006) : TException() { - message = other1006.message; - __isset = other1006.__isset; +ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other1033) : TException() { + message = other1033.message; + __isset = other1033.__isset; } -ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other1007) { - message = other1007.message; - __isset = other1007.__isset; +ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other1034) { + message = other1034.message; + __isset = other1034.__isset; return *this; } void ConfigValSecurityException::printTo(std::ostream& out) const { @@ -25859,13 +26390,13 @@ void swap(InvalidInputException &a, InvalidInputException &b) { swap(a.__isset, b.__isset); } -InvalidInputException::InvalidInputException(const InvalidInputException& other1008) : TException() { - message = other1008.message; - __isset = other1008.__isset; +InvalidInputException::InvalidInputException(const InvalidInputException& other1035) : TException() { + message = other1035.message; + __isset = other1035.__isset; } -InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other1009) { - message = other1009.message; - __isset = other1009.__isset; +InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other1036) { + message = other1036.message; + __isset = other1036.__isset; return *this; } void InvalidInputException::printTo(std::ostream& out) const { @@ -25956,13 +26487,13 @@ void swap(NoSuchTxnException &a, NoSuchTxnException &b) { swap(a.__isset, b.__isset); } -NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other1010) : TException() { - message = other1010.message; - __isset = other1010.__isset; +NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other1037) : TException() { + message = other1037.message; + __isset = other1037.__isset; } -NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other1011) { - message = other1011.message; - __isset = other1011.__isset; +NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other1038) { + message = other1038.message; + __isset = other1038.__isset; return *this; } void NoSuchTxnException::printTo(std::ostream& out) const { @@ -26053,13 +26584,13 @@ void swap(TxnAbortedException &a, TxnAbortedException &b) { swap(a.__isset, b.__isset); } -TxnAbortedException::TxnAbortedException(const TxnAbortedException& other1012) : TException() { - message = other1012.message; - __isset = other1012.__isset; +TxnAbortedException::TxnAbortedException(const TxnAbortedException& other1039) : TException() { + message = other1039.message; + __isset = other1039.__isset; } -TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other1013) { - message = other1013.message; - __isset = other1013.__isset; +TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other1040) { + message = other1040.message; + __isset = other1040.__isset; return *this; } void TxnAbortedException::printTo(std::ostream& out) const { @@ -26150,13 +26681,13 @@ void swap(TxnOpenException &a, TxnOpenException &b) { swap(a.__isset, b.__isset); } -TxnOpenException::TxnOpenException(const TxnOpenException& other1014) : TException() { - message = other1014.message; - __isset = other1014.__isset; +TxnOpenException::TxnOpenException(const TxnOpenException& other1041) : TException() { + message = other1041.message; + __isset = other1041.__isset; } -TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other1015) { - message = other1015.message; - __isset = other1015.__isset; +TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other1042) { + message = other1042.message; + __isset = other1042.__isset; return *this; } void TxnOpenException::printTo(std::ostream& out) const { @@ -26247,13 +26778,13 @@ void swap(NoSuchLockException &a, NoSuchLockException &b) { swap(a.__isset, b.__isset); } -NoSuchLockException::NoSuchLockException(const NoSuchLockException& other1016) : TException() { - message = other1016.message; - __isset = other1016.__isset; +NoSuchLockException::NoSuchLockException(const NoSuchLockException& other1043) : TException() { + message = other1043.message; + __isset = other1043.__isset; } -NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other1017) { - message = other1017.message; - __isset = other1017.__isset; +NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other1044) { + message = other1044.message; + __isset = other1044.__isset; return *this; } void NoSuchLockException::printTo(std::ostream& out) const { diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h b/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h index 221981176a..2e9f089d3a 100644 --- a/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h +++ b/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h @@ -389,6 +389,10 @@ class ShowCompactResponse; class AddDynamicPartitions; +class BasicTxnInfo; + +class TxnsSnapshot; + class NotificationEventRequest; class NotificationEvent; @@ -449,6 +453,8 @@ class CmRecycleResponse; class TableMeta; +class Materialization; + class WMResourcePlan; class WMPool; @@ -2353,7 +2359,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) {} + _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), creationMetadata(false) {} bool tableName :1; bool dbName :1; bool owner :1; @@ -2369,6 +2375,7 @@ typedef struct _Table__isset { bool privileges :1; bool temporary :1; bool rewriteEnabled :1; + bool creationMetadata :1; } _Table__isset; class Table { @@ -2395,6 +2402,7 @@ class Table { PrincipalPrivilegeSet privileges; bool temporary; bool rewriteEnabled; + std::map creationMetadata; _Table__isset __isset; @@ -2428,6 +2436,8 @@ class Table { void __set_rewriteEnabled(const bool val); + void __set_creationMetadata(const std::map & val); + bool operator == (const Table & rhs) const { if (!(tableName == rhs.tableName)) @@ -2466,6 +2476,10 @@ class Table { return false; else if (__isset.rewriteEnabled && !(rewriteEnabled == rhs.rewriteEnabled)) return false; + if (__isset.creationMetadata != rhs.__isset.creationMetadata) + return false; + else if (__isset.creationMetadata && !(creationMetadata == rhs.creationMetadata)) + return false; return true; } bool operator != (const Table &rhs) const { @@ -7058,6 +7072,124 @@ inline std::ostream& operator<<(std::ostream& out, const AddDynamicPartitions& o return out; } +typedef struct _BasicTxnInfo__isset { + _BasicTxnInfo__isset() : partitionname(false) {} + bool partitionname :1; +} _BasicTxnInfo__isset; + +class BasicTxnInfo { + public: + + BasicTxnInfo(const BasicTxnInfo&); + BasicTxnInfo& operator=(const BasicTxnInfo&); + BasicTxnInfo() : id(0), time(0), txnid(0), dbname(), tablename(), partitionname() { + } + + virtual ~BasicTxnInfo() throw(); + int64_t id; + int64_t time; + int64_t txnid; + std::string dbname; + std::string tablename; + std::string partitionname; + + _BasicTxnInfo__isset __isset; + + void __set_id(const int64_t val); + + void __set_time(const int64_t val); + + void __set_txnid(const int64_t val); + + void __set_dbname(const std::string& val); + + void __set_tablename(const std::string& val); + + void __set_partitionname(const std::string& val); + + bool operator == (const BasicTxnInfo & rhs) const + { + if (!(id == rhs.id)) + return false; + if (!(time == rhs.time)) + return false; + if (!(txnid == rhs.txnid)) + return false; + if (!(dbname == rhs.dbname)) + return false; + if (!(tablename == rhs.tablename)) + return false; + if (__isset.partitionname != rhs.__isset.partitionname) + return false; + else if (__isset.partitionname && !(partitionname == rhs.partitionname)) + return false; + return true; + } + bool operator != (const BasicTxnInfo &rhs) const { + return !(*this == rhs); + } + + bool operator < (const BasicTxnInfo & ) 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(BasicTxnInfo &a, BasicTxnInfo &b); + +inline std::ostream& operator<<(std::ostream& out, const BasicTxnInfo& obj) +{ + obj.printTo(out); + return out; +} + + +class TxnsSnapshot { + public: + + TxnsSnapshot(const TxnsSnapshot&); + TxnsSnapshot& operator=(const TxnsSnapshot&); + TxnsSnapshot() : txn_high_water_mark(0) { + } + + virtual ~TxnsSnapshot() throw(); + int64_t txn_high_water_mark; + std::vector open_txns; + + void __set_txn_high_water_mark(const int64_t val); + + void __set_open_txns(const std::vector & val); + + bool operator == (const TxnsSnapshot & rhs) const + { + if (!(txn_high_water_mark == rhs.txn_high_water_mark)) + return false; + if (!(open_txns == rhs.open_txns)) + return false; + return true; + } + bool operator != (const TxnsSnapshot &rhs) const { + return !(*this == rhs); + } + + bool operator < (const TxnsSnapshot & ) 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(TxnsSnapshot &a, TxnsSnapshot &b); + +inline std::ostream& operator<<(std::ostream& out, const TxnsSnapshot& obj) +{ + obj.printTo(out); + return out; +} + typedef struct _NotificationEventRequest__isset { _NotificationEventRequest__isset() : maxEvents(false) {} bool maxEvents :1; @@ -8532,6 +8664,56 @@ inline std::ostream& operator<<(std::ostream& out, const TableMeta& obj) return out; } + +class Materialization { + public: + + Materialization(const Materialization&); + Materialization& operator=(const Materialization&); + Materialization() : invalidationTime(0) { + } + + virtual ~Materialization() throw(); + Table materializationTable; + std::set tablesUsed; + int64_t invalidationTime; + + void __set_materializationTable(const Table& val); + + void __set_tablesUsed(const std::set & val); + + void __set_invalidationTime(const int64_t val); + + bool operator == (const Materialization & rhs) const + { + if (!(materializationTable == rhs.materializationTable)) + return false; + if (!(tablesUsed == rhs.tablesUsed)) + return false; + if (!(invalidationTime == rhs.invalidationTime)) + return false; + return true; + } + bool operator != (const Materialization &rhs) const { + return !(*this == rhs); + } + + bool operator < (const Materialization & ) 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(Materialization &a, Materialization &b); + +inline std::ostream& operator<<(std::ostream& out, const Materialization& obj) +{ + obj.printTo(out); + return out; +} + typedef struct _WMResourcePlan__isset { _WMResourcePlan__isset() : status(false), queryParallelism(false), defaultPoolPath(false) {} bool status :1; diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java index 0e5dbf7ae6..398f8d4e93 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java @@ -351,13 +351,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AbortTxnsRequest st case 1: // TXN_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list548 = iprot.readListBegin(); - struct.txn_ids = new ArrayList(_list548.size); - long _elem549; - for (int _i550 = 0; _i550 < _list548.size; ++_i550) + org.apache.thrift.protocol.TList _list558 = iprot.readListBegin(); + struct.txn_ids = new ArrayList(_list558.size); + long _elem559; + for (int _i560 = 0; _i560 < _list558.size; ++_i560) { - _elem549 = iprot.readI64(); - struct.txn_ids.add(_elem549); + _elem559 = iprot.readI64(); + struct.txn_ids.add(_elem559); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AbortTxnsRequest s oprot.writeFieldBegin(TXN_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.txn_ids.size())); - for (long _iter551 : struct.txn_ids) + for (long _iter561 : struct.txn_ids) { - oprot.writeI64(_iter551); + oprot.writeI64(_iter561); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AbortTxnsRequest st TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.txn_ids.size()); - for (long _iter552 : struct.txn_ids) + for (long _iter562 : struct.txn_ids) { - oprot.writeI64(_iter552); + oprot.writeI64(_iter562); } } } @@ -421,13 +421,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AbortTxnsRequest st public void read(org.apache.thrift.protocol.TProtocol prot, AbortTxnsRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list553 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.txn_ids = new ArrayList(_list553.size); - long _elem554; - for (int _i555 = 0; _i555 < _list553.size; ++_i555) + org.apache.thrift.protocol.TList _list563 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txn_ids = new ArrayList(_list563.size); + long _elem564; + for (int _i565 = 0; _i565 < _list563.size; ++_i565) { - _elem554 = iprot.readI64(); - struct.txn_ids.add(_elem554); + _elem564 = iprot.readI64(); + struct.txn_ids.add(_elem564); } } struct.setTxn_idsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java index dae233a123..2102aa5215 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java @@ -727,13 +727,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddDynamicPartition case 4: // PARTITIONNAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list606 = iprot.readListBegin(); - struct.partitionnames = new ArrayList(_list606.size); - String _elem607; - for (int _i608 = 0; _i608 < _list606.size; ++_i608) + org.apache.thrift.protocol.TList _list616 = iprot.readListBegin(); + struct.partitionnames = new ArrayList(_list616.size); + String _elem617; + for (int _i618 = 0; _i618 < _list616.size; ++_i618) { - _elem607 = iprot.readString(); - struct.partitionnames.add(_elem607); + _elem617 = iprot.readString(); + struct.partitionnames.add(_elem617); } iprot.readListEnd(); } @@ -780,9 +780,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AddDynamicPartitio oprot.writeFieldBegin(PARTITIONNAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitionnames.size())); - for (String _iter609 : struct.partitionnames) + for (String _iter619 : struct.partitionnames) { - oprot.writeString(_iter609); + oprot.writeString(_iter619); } oprot.writeListEnd(); } @@ -817,9 +817,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddDynamicPartition oprot.writeString(struct.tablename); { oprot.writeI32(struct.partitionnames.size()); - for (String _iter610 : struct.partitionnames) + for (String _iter620 : struct.partitionnames) { - oprot.writeString(_iter610); + oprot.writeString(_iter620); } } BitSet optionals = new BitSet(); @@ -842,13 +842,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AddDynamicPartitions struct.tablename = iprot.readString(); struct.setTablenameIsSet(true); { - org.apache.thrift.protocol.TList _list611 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionnames = new ArrayList(_list611.size); - String _elem612; - for (int _i613 = 0; _i613 < _list611.size; ++_i613) + org.apache.thrift.protocol.TList _list621 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionnames = new ArrayList(_list621.size); + String _elem622; + for (int _i623 = 0; _i623 < _list621.size; ++_i623) { - _elem612 = iprot.readString(); - struct.partitionnames.add(_elem612); + _elem622 = iprot.readString(); + struct.partitionnames.add(_elem622); } } struct.setPartitionnamesIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddForeignKeyRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddForeignKeyRequest.java index c1c0dbf229..a2225298e7 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddForeignKeyRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddForeignKeyRequest.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddForeignKeyReques case 1: // FOREIGN_KEY_COLS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list362 = iprot.readListBegin(); - struct.foreignKeyCols = new ArrayList(_list362.size); - SQLForeignKey _elem363; - for (int _i364 = 0; _i364 < _list362.size; ++_i364) + org.apache.thrift.protocol.TList _list372 = iprot.readListBegin(); + struct.foreignKeyCols = new ArrayList(_list372.size); + SQLForeignKey _elem373; + for (int _i374 = 0; _i374 < _list372.size; ++_i374) { - _elem363 = new SQLForeignKey(); - _elem363.read(iprot); - struct.foreignKeyCols.add(_elem363); + _elem373 = new SQLForeignKey(); + _elem373.read(iprot); + struct.foreignKeyCols.add(_elem373); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AddForeignKeyReque oprot.writeFieldBegin(FOREIGN_KEY_COLS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.foreignKeyCols.size())); - for (SQLForeignKey _iter365 : struct.foreignKeyCols) + for (SQLForeignKey _iter375 : struct.foreignKeyCols) { - _iter365.write(oprot); + _iter375.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddForeignKeyReques TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.foreignKeyCols.size()); - for (SQLForeignKey _iter366 : struct.foreignKeyCols) + for (SQLForeignKey _iter376 : struct.foreignKeyCols) { - _iter366.write(oprot); + _iter376.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddForeignKeyReques public void read(org.apache.thrift.protocol.TProtocol prot, AddForeignKeyRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list367 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.foreignKeyCols = new ArrayList(_list367.size); - SQLForeignKey _elem368; - for (int _i369 = 0; _i369 < _list367.size; ++_i369) + org.apache.thrift.protocol.TList _list377 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.foreignKeyCols = new ArrayList(_list377.size); + SQLForeignKey _elem378; + for (int _i379 = 0; _i379 < _list377.size; ++_i379) { - _elem368 = new SQLForeignKey(); - _elem368.read(iprot); - struct.foreignKeyCols.add(_elem368); + _elem378 = new SQLForeignKey(); + _elem378.read(iprot); + struct.foreignKeyCols.add(_elem378); } } struct.setForeignKeyColsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddNotNullConstraintRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddNotNullConstraintRequest.java index 0bd85f3140..ef23d3025a 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddNotNullConstraintRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddNotNullConstraintRequest.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddNotNullConstrain case 1: // NOT_NULL_CONSTRAINT_COLS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list378 = iprot.readListBegin(); - struct.notNullConstraintCols = new ArrayList(_list378.size); - SQLNotNullConstraint _elem379; - for (int _i380 = 0; _i380 < _list378.size; ++_i380) + org.apache.thrift.protocol.TList _list388 = iprot.readListBegin(); + struct.notNullConstraintCols = new ArrayList(_list388.size); + SQLNotNullConstraint _elem389; + for (int _i390 = 0; _i390 < _list388.size; ++_i390) { - _elem379 = new SQLNotNullConstraint(); - _elem379.read(iprot); - struct.notNullConstraintCols.add(_elem379); + _elem389 = new SQLNotNullConstraint(); + _elem389.read(iprot); + struct.notNullConstraintCols.add(_elem389); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AddNotNullConstrai oprot.writeFieldBegin(NOT_NULL_CONSTRAINT_COLS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.notNullConstraintCols.size())); - for (SQLNotNullConstraint _iter381 : struct.notNullConstraintCols) + for (SQLNotNullConstraint _iter391 : struct.notNullConstraintCols) { - _iter381.write(oprot); + _iter391.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddNotNullConstrain TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.notNullConstraintCols.size()); - for (SQLNotNullConstraint _iter382 : struct.notNullConstraintCols) + for (SQLNotNullConstraint _iter392 : struct.notNullConstraintCols) { - _iter382.write(oprot); + _iter392.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddNotNullConstrain public void read(org.apache.thrift.protocol.TProtocol prot, AddNotNullConstraintRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list383 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.notNullConstraintCols = new ArrayList(_list383.size); - SQLNotNullConstraint _elem384; - for (int _i385 = 0; _i385 < _list383.size; ++_i385) + org.apache.thrift.protocol.TList _list393 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.notNullConstraintCols = new ArrayList(_list393.size); + SQLNotNullConstraint _elem394; + for (int _i395 = 0; _i395 < _list393.size; ++_i395) { - _elem384 = new SQLNotNullConstraint(); - _elem384.read(iprot); - struct.notNullConstraintCols.add(_elem384); + _elem394 = new SQLNotNullConstraint(); + _elem394.read(iprot); + struct.notNullConstraintCols.add(_elem394); } } struct.setNotNullConstraintColsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java index 9119336a46..13a2318248 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java @@ -704,14 +704,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddPartitionsReques case 3: // PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list452 = iprot.readListBegin(); - struct.parts = new ArrayList(_list452.size); - Partition _elem453; - for (int _i454 = 0; _i454 < _list452.size; ++_i454) + org.apache.thrift.protocol.TList _list462 = iprot.readListBegin(); + struct.parts = new ArrayList(_list462.size); + Partition _elem463; + for (int _i464 = 0; _i464 < _list462.size; ++_i464) { - _elem453 = new Partition(); - _elem453.read(iprot); - struct.parts.add(_elem453); + _elem463 = new Partition(); + _elem463.read(iprot); + struct.parts.add(_elem463); } iprot.readListEnd(); } @@ -763,9 +763,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AddPartitionsReque oprot.writeFieldBegin(PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.parts.size())); - for (Partition _iter455 : struct.parts) + for (Partition _iter465 : struct.parts) { - _iter455.write(oprot); + _iter465.write(oprot); } oprot.writeListEnd(); } @@ -800,9 +800,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddPartitionsReques oprot.writeString(struct.tblName); { oprot.writeI32(struct.parts.size()); - for (Partition _iter456 : struct.parts) + for (Partition _iter466 : struct.parts) { - _iter456.write(oprot); + _iter466.write(oprot); } } oprot.writeBool(struct.ifNotExists); @@ -824,14 +824,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AddPartitionsRequest struct.tblName = iprot.readString(); struct.setTblNameIsSet(true); { - org.apache.thrift.protocol.TList _list457 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.parts = new ArrayList(_list457.size); - Partition _elem458; - for (int _i459 = 0; _i459 < _list457.size; ++_i459) + org.apache.thrift.protocol.TList _list467 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.parts = new ArrayList(_list467.size); + Partition _elem468; + for (int _i469 = 0; _i469 < _list467.size; ++_i469) { - _elem458 = new Partition(); - _elem458.read(iprot); - struct.parts.add(_elem458); + _elem468 = new Partition(); + _elem468.read(iprot); + struct.parts.add(_elem468); } } struct.setPartsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java index 57d4953af6..49ce6e1a6c 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java @@ -346,14 +346,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddPartitionsResult case 1: // PARTITIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list444 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list444.size); - Partition _elem445; - for (int _i446 = 0; _i446 < _list444.size; ++_i446) + org.apache.thrift.protocol.TList _list454 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list454.size); + Partition _elem455; + for (int _i456 = 0; _i456 < _list454.size; ++_i456) { - _elem445 = new Partition(); - _elem445.read(iprot); - struct.partitions.add(_elem445); + _elem455 = new Partition(); + _elem455.read(iprot); + struct.partitions.add(_elem455); } iprot.readListEnd(); } @@ -380,9 +380,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AddPartitionsResul oprot.writeFieldBegin(PARTITIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size())); - for (Partition _iter447 : struct.partitions) + for (Partition _iter457 : struct.partitions) { - _iter447.write(oprot); + _iter457.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddPartitionsResult if (struct.isSetPartitions()) { { oprot.writeI32(struct.partitions.size()); - for (Partition _iter448 : struct.partitions) + for (Partition _iter458 : struct.partitions) { - _iter448.write(oprot); + _iter458.write(oprot); } } } @@ -428,14 +428,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AddPartitionsResult BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list449 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list449.size); - Partition _elem450; - for (int _i451 = 0; _i451 < _list449.size; ++_i451) + org.apache.thrift.protocol.TList _list459 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list459.size); + Partition _elem460; + for (int _i461 = 0; _i461 < _list459.size; ++_i461) { - _elem450 = new Partition(); - _elem450.read(iprot); - struct.partitions.add(_elem450); + _elem460 = new Partition(); + _elem460.read(iprot); + struct.partitions.add(_elem460); } } struct.setPartitionsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPrimaryKeyRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPrimaryKeyRequest.java index 900985bb39..478032a987 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPrimaryKeyRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPrimaryKeyRequest.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddPrimaryKeyReques case 1: // PRIMARY_KEY_COLS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list354 = iprot.readListBegin(); - struct.primaryKeyCols = new ArrayList(_list354.size); - SQLPrimaryKey _elem355; - for (int _i356 = 0; _i356 < _list354.size; ++_i356) + org.apache.thrift.protocol.TList _list364 = iprot.readListBegin(); + struct.primaryKeyCols = new ArrayList(_list364.size); + SQLPrimaryKey _elem365; + for (int _i366 = 0; _i366 < _list364.size; ++_i366) { - _elem355 = new SQLPrimaryKey(); - _elem355.read(iprot); - struct.primaryKeyCols.add(_elem355); + _elem365 = new SQLPrimaryKey(); + _elem365.read(iprot); + struct.primaryKeyCols.add(_elem365); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AddPrimaryKeyReque oprot.writeFieldBegin(PRIMARY_KEY_COLS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.primaryKeyCols.size())); - for (SQLPrimaryKey _iter357 : struct.primaryKeyCols) + for (SQLPrimaryKey _iter367 : struct.primaryKeyCols) { - _iter357.write(oprot); + _iter367.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddPrimaryKeyReques TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.primaryKeyCols.size()); - for (SQLPrimaryKey _iter358 : struct.primaryKeyCols) + for (SQLPrimaryKey _iter368 : struct.primaryKeyCols) { - _iter358.write(oprot); + _iter368.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddPrimaryKeyReques public void read(org.apache.thrift.protocol.TProtocol prot, AddPrimaryKeyRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list359 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.primaryKeyCols = new ArrayList(_list359.size); - SQLPrimaryKey _elem360; - for (int _i361 = 0; _i361 < _list359.size; ++_i361) + org.apache.thrift.protocol.TList _list369 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.primaryKeyCols = new ArrayList(_list369.size); + SQLPrimaryKey _elem370; + for (int _i371 = 0; _i371 < _list369.size; ++_i371) { - _elem360 = new SQLPrimaryKey(); - _elem360.read(iprot); - struct.primaryKeyCols.add(_elem360); + _elem370 = new SQLPrimaryKey(); + _elem370.read(iprot); + struct.primaryKeyCols.add(_elem370); } } struct.setPrimaryKeyColsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddUniqueConstraintRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddUniqueConstraintRequest.java index df4f54465c..b58f39f7b0 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddUniqueConstraintRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddUniqueConstraintRequest.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddUniqueConstraint case 1: // UNIQUE_CONSTRAINT_COLS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list370 = iprot.readListBegin(); - struct.uniqueConstraintCols = new ArrayList(_list370.size); - SQLUniqueConstraint _elem371; - for (int _i372 = 0; _i372 < _list370.size; ++_i372) + org.apache.thrift.protocol.TList _list380 = iprot.readListBegin(); + struct.uniqueConstraintCols = new ArrayList(_list380.size); + SQLUniqueConstraint _elem381; + for (int _i382 = 0; _i382 < _list380.size; ++_i382) { - _elem371 = new SQLUniqueConstraint(); - _elem371.read(iprot); - struct.uniqueConstraintCols.add(_elem371); + _elem381 = new SQLUniqueConstraint(); + _elem381.read(iprot); + struct.uniqueConstraintCols.add(_elem381); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AddUniqueConstrain oprot.writeFieldBegin(UNIQUE_CONSTRAINT_COLS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.uniqueConstraintCols.size())); - for (SQLUniqueConstraint _iter373 : struct.uniqueConstraintCols) + for (SQLUniqueConstraint _iter383 : struct.uniqueConstraintCols) { - _iter373.write(oprot); + _iter383.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddUniqueConstraint TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.uniqueConstraintCols.size()); - for (SQLUniqueConstraint _iter374 : struct.uniqueConstraintCols) + for (SQLUniqueConstraint _iter384 : struct.uniqueConstraintCols) { - _iter374.write(oprot); + _iter384.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddUniqueConstraint public void read(org.apache.thrift.protocol.TProtocol prot, AddUniqueConstraintRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list375 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.uniqueConstraintCols = new ArrayList(_list375.size); - SQLUniqueConstraint _elem376; - for (int _i377 = 0; _i377 < _list375.size; ++_i377) + org.apache.thrift.protocol.TList _list385 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.uniqueConstraintCols = new ArrayList(_list385.size); + SQLUniqueConstraint _elem386; + for (int _i387 = 0; _i387 < _list385.size; ++_i387) { - _elem376 = new SQLUniqueConstraint(); - _elem376.read(iprot); - struct.uniqueConstraintCols.add(_elem376); + _elem386 = new SQLUniqueConstraint(); + _elem386.read(iprot); + struct.uniqueConstraintCols.add(_elem386); } } struct.setUniqueConstraintColsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AggrStats.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AggrStats.java index c38c8c6eb6..54ef01f3ce 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AggrStats.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AggrStats.java @@ -439,14 +439,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AggrStats struct) t case 1: // COL_STATS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list278 = iprot.readListBegin(); - struct.colStats = new ArrayList(_list278.size); - ColumnStatisticsObj _elem279; - for (int _i280 = 0; _i280 < _list278.size; ++_i280) + org.apache.thrift.protocol.TList _list288 = iprot.readListBegin(); + struct.colStats = new ArrayList(_list288.size); + ColumnStatisticsObj _elem289; + for (int _i290 = 0; _i290 < _list288.size; ++_i290) { - _elem279 = new ColumnStatisticsObj(); - _elem279.read(iprot); - struct.colStats.add(_elem279); + _elem289 = new ColumnStatisticsObj(); + _elem289.read(iprot); + struct.colStats.add(_elem289); } iprot.readListEnd(); } @@ -480,9 +480,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AggrStats struct) oprot.writeFieldBegin(COL_STATS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.colStats.size())); - for (ColumnStatisticsObj _iter281 : struct.colStats) + for (ColumnStatisticsObj _iter291 : struct.colStats) { - _iter281.write(oprot); + _iter291.write(oprot); } oprot.writeListEnd(); } @@ -510,9 +510,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AggrStats struct) t TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.colStats.size()); - for (ColumnStatisticsObj _iter282 : struct.colStats) + for (ColumnStatisticsObj _iter292 : struct.colStats) { - _iter282.write(oprot); + _iter292.write(oprot); } } oprot.writeI64(struct.partsFound); @@ -522,14 +522,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AggrStats struct) t public void read(org.apache.thrift.protocol.TProtocol prot, AggrStats struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list283 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.colStats = new ArrayList(_list283.size); - ColumnStatisticsObj _elem284; - for (int _i285 = 0; _i285 < _list283.size; ++_i285) + org.apache.thrift.protocol.TList _list293 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.colStats = new ArrayList(_list293.size); + ColumnStatisticsObj _elem294; + for (int _i295 = 0; _i295 < _list293.size; ++_i295) { - _elem284 = new ColumnStatisticsObj(); - _elem284.read(iprot); - struct.colStats.add(_elem284); + _elem294 = new ColumnStatisticsObj(); + _elem294.read(iprot); + struct.colStats.add(_elem294); } } struct.setColStatsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/BasicTxnInfo.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/BasicTxnInfo.java new file mode 100644 index 0000000000..95daa96dca --- /dev/null +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/BasicTxnInfo.java @@ -0,0 +1,889 @@ +/** + * Autogenerated by Thrift Compiler (0.9.3) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.apache.hadoop.hive.metastore.api; + +import org.apache.thrift.scheme.IScheme; +import org.apache.thrift.scheme.SchemeFactory; +import org.apache.thrift.scheme.StandardScheme; + +import org.apache.thrift.scheme.TupleScheme; +import org.apache.thrift.protocol.TTupleProtocol; +import org.apache.thrift.protocol.TProtocolException; +import org.apache.thrift.EncodingUtils; +import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.EnumMap; +import java.util.Set; +import java.util.HashSet; +import java.util.EnumSet; +import java.util.Collections; +import java.util.BitSet; +import java.nio.ByteBuffer; +import java.util.Arrays; +import javax.annotation.Generated; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") +@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class BasicTxnInfo 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("BasicTxnInfo"); + + private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1); + private static final org.apache.thrift.protocol.TField TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("time", org.apache.thrift.protocol.TType.I64, (short)2); + private static final org.apache.thrift.protocol.TField TXNID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnid", org.apache.thrift.protocol.TType.I64, (short)3); + private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField TABLENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tablename", org.apache.thrift.protocol.TType.STRING, (short)5); + private static final org.apache.thrift.protocol.TField PARTITIONNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionname", org.apache.thrift.protocol.TType.STRING, (short)6); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new BasicTxnInfoStandardSchemeFactory()); + schemes.put(TupleScheme.class, new BasicTxnInfoTupleSchemeFactory()); + } + + private long id; // required + private long time; // required + private long txnid; // required + private String dbname; // required + private String tablename; // required + private String partitionname; // 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 { + ID((short)1, "id"), + TIME((short)2, "time"), + TXNID((short)3, "txnid"), + DBNAME((short)4, "dbname"), + TABLENAME((short)5, "tablename"), + PARTITIONNAME((short)6, "partitionname"); + + 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: // ID + return ID; + case 2: // TIME + return TIME; + case 3: // TXNID + return TXNID; + case 4: // DBNAME + return DBNAME; + case 5: // TABLENAME + return TABLENAME; + case 6: // PARTITIONNAME + return PARTITIONNAME; + 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 __ID_ISSET_ID = 0; + private static final int __TIME_ISSET_ID = 1; + private static final int __TXNID_ISSET_ID = 2; + private byte __isset_bitfield = 0; + private static final _Fields optionals[] = {_Fields.PARTITIONNAME}; + 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.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.TIME, new org.apache.thrift.meta_data.FieldMetaData("time", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.TXNID, new org.apache.thrift.meta_data.FieldMetaData("txnid", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.DBNAME, 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.TABLENAME, new org.apache.thrift.meta_data.FieldMetaData("tablename", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PARTITIONNAME, new org.apache.thrift.meta_data.FieldMetaData("partitionname", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(BasicTxnInfo.class, metaDataMap); + } + + public BasicTxnInfo() { + } + + public BasicTxnInfo( + long id, + long time, + long txnid, + String dbname, + String tablename) + { + this(); + this.id = id; + setIdIsSet(true); + this.time = time; + setTimeIsSet(true); + this.txnid = txnid; + setTxnidIsSet(true); + this.dbname = dbname; + this.tablename = tablename; + } + + /** + * Performs a deep copy on other. + */ + public BasicTxnInfo(BasicTxnInfo other) { + __isset_bitfield = other.__isset_bitfield; + this.id = other.id; + this.time = other.time; + this.txnid = other.txnid; + if (other.isSetDbname()) { + this.dbname = other.dbname; + } + if (other.isSetTablename()) { + this.tablename = other.tablename; + } + if (other.isSetPartitionname()) { + this.partitionname = other.partitionname; + } + } + + public BasicTxnInfo deepCopy() { + return new BasicTxnInfo(this); + } + + @Override + public void clear() { + setIdIsSet(false); + this.id = 0; + setTimeIsSet(false); + this.time = 0; + setTxnidIsSet(false); + this.txnid = 0; + this.dbname = null; + this.tablename = null; + this.partitionname = null; + } + + public long getId() { + return this.id; + } + + public void setId(long id) { + this.id = id; + setIdIsSet(true); + } + + public void unsetId() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ID_ISSET_ID); + } + + /** Returns true if field id is set (has been assigned a value) and false otherwise */ + public boolean isSetId() { + return EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID); + } + + public void setIdIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ID_ISSET_ID, value); + } + + public long getTime() { + return this.time; + } + + public void setTime(long time) { + this.time = time; + setTimeIsSet(true); + } + + public void unsetTime() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIME_ISSET_ID); + } + + /** Returns true if field time is set (has been assigned a value) and false otherwise */ + public boolean isSetTime() { + return EncodingUtils.testBit(__isset_bitfield, __TIME_ISSET_ID); + } + + public void setTimeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIME_ISSET_ID, value); + } + + public long getTxnid() { + return this.txnid; + } + + public void setTxnid(long txnid) { + this.txnid = txnid; + setTxnidIsSet(true); + } + + public void unsetTxnid() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TXNID_ISSET_ID); + } + + /** Returns true if field txnid is set (has been assigned a value) and false otherwise */ + public boolean isSetTxnid() { + return EncodingUtils.testBit(__isset_bitfield, __TXNID_ISSET_ID); + } + + public void setTxnidIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TXNID_ISSET_ID, value); + } + + public 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 getTablename() { + return this.tablename; + } + + public void setTablename(String tablename) { + this.tablename = tablename; + } + + public void unsetTablename() { + this.tablename = null; + } + + /** Returns true if field tablename is set (has been assigned a value) and false otherwise */ + public boolean isSetTablename() { + return this.tablename != null; + } + + public void setTablenameIsSet(boolean value) { + if (!value) { + this.tablename = null; + } + } + + public String getPartitionname() { + return this.partitionname; + } + + public void setPartitionname(String partitionname) { + this.partitionname = partitionname; + } + + public void unsetPartitionname() { + this.partitionname = null; + } + + /** Returns true if field partitionname is set (has been assigned a value) and false otherwise */ + public boolean isSetPartitionname() { + return this.partitionname != null; + } + + public void setPartitionnameIsSet(boolean value) { + if (!value) { + this.partitionname = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case ID: + if (value == null) { + unsetId(); + } else { + setId((Long)value); + } + break; + + case TIME: + if (value == null) { + unsetTime(); + } else { + setTime((Long)value); + } + break; + + case TXNID: + if (value == null) { + unsetTxnid(); + } else { + setTxnid((Long)value); + } + break; + + case DBNAME: + if (value == null) { + unsetDbname(); + } else { + setDbname((String)value); + } + break; + + case TABLENAME: + if (value == null) { + unsetTablename(); + } else { + setTablename((String)value); + } + break; + + case PARTITIONNAME: + if (value == null) { + unsetPartitionname(); + } else { + setPartitionname((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case ID: + return getId(); + + case TIME: + return getTime(); + + case TXNID: + return getTxnid(); + + case DBNAME: + return getDbname(); + + case TABLENAME: + return getTablename(); + + case PARTITIONNAME: + return getPartitionname(); + + } + 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 ID: + return isSetId(); + case TIME: + return isSetTime(); + case TXNID: + return isSetTxnid(); + case DBNAME: + return isSetDbname(); + case TABLENAME: + return isSetTablename(); + case PARTITIONNAME: + return isSetPartitionname(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof BasicTxnInfo) + return this.equals((BasicTxnInfo)that); + return false; + } + + public boolean equals(BasicTxnInfo that) { + if (that == null) + return false; + + boolean this_present_id = true; + boolean that_present_id = true; + if (this_present_id || that_present_id) { + if (!(this_present_id && that_present_id)) + return false; + if (this.id != that.id) + return false; + } + + boolean this_present_time = true; + boolean that_present_time = true; + if (this_present_time || that_present_time) { + if (!(this_present_time && that_present_time)) + return false; + if (this.time != that.time) + return false; + } + + boolean this_present_txnid = true; + boolean that_present_txnid = true; + if (this_present_txnid || that_present_txnid) { + if (!(this_present_txnid && that_present_txnid)) + return false; + if (this.txnid != that.txnid) + return false; + } + + boolean this_present_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_tablename = true && this.isSetTablename(); + boolean that_present_tablename = true && that.isSetTablename(); + if (this_present_tablename || that_present_tablename) { + if (!(this_present_tablename && that_present_tablename)) + return false; + if (!this.tablename.equals(that.tablename)) + return false; + } + + boolean this_present_partitionname = true && this.isSetPartitionname(); + boolean that_present_partitionname = true && that.isSetPartitionname(); + if (this_present_partitionname || that_present_partitionname) { + if (!(this_present_partitionname && that_present_partitionname)) + return false; + if (!this.partitionname.equals(that.partitionname)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_id = true; + list.add(present_id); + if (present_id) + list.add(id); + + boolean present_time = true; + list.add(present_time); + if (present_time) + list.add(time); + + boolean present_txnid = true; + list.add(present_txnid); + if (present_txnid) + list.add(txnid); + + boolean present_dbname = true && (isSetDbname()); + list.add(present_dbname); + if (present_dbname) + list.add(dbname); + + boolean present_tablename = true && (isSetTablename()); + list.add(present_tablename); + if (present_tablename) + list.add(tablename); + + boolean present_partitionname = true && (isSetPartitionname()); + list.add(present_partitionname); + if (present_partitionname) + list.add(partitionname); + + return list.hashCode(); + } + + @Override + public int compareTo(BasicTxnInfo other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTime()).compareTo(other.isSetTime()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTime()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.time, other.time); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(other.isSetTxnid()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTxnid()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, other.txnid); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(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(isSetTablename()).compareTo(other.isSetTablename()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTablename()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, other.tablename); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPartitionname()).compareTo(other.isSetPartitionname()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPartitionname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionname, other.partitionname); + 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("BasicTxnInfo("); + boolean first = true; + + sb.append("id:"); + sb.append(this.id); + first = false; + if (!first) sb.append(", "); + sb.append("time:"); + sb.append(this.time); + first = false; + if (!first) sb.append(", "); + sb.append("txnid:"); + sb.append(this.txnid); + first = false; + if (!first) sb.append(", "); + sb.append("dbname:"); + if (this.dbname == null) { + sb.append("null"); + } else { + sb.append(this.dbname); + } + first = false; + if (!first) sb.append(", "); + sb.append("tablename:"); + if (this.tablename == null) { + sb.append("null"); + } else { + sb.append(this.tablename); + } + first = false; + if (isSetPartitionname()) { + if (!first) sb.append(", "); + sb.append("partitionname:"); + if (this.partitionname == null) { + sb.append("null"); + } else { + sb.append(this.partitionname); + } + first = false; + } + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetId()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'id' is unset! Struct:" + toString()); + } + + if (!isSetTime()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'time' is unset! Struct:" + toString()); + } + + if (!isSetTxnid()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'txnid' is unset! Struct:" + toString()); + } + + if (!isSetDbname()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbname' is unset! Struct:" + toString()); + } + + if (!isSetTablename()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tablename' 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 BasicTxnInfoStandardSchemeFactory implements SchemeFactory { + public BasicTxnInfoStandardScheme getScheme() { + return new BasicTxnInfoStandardScheme(); + } + } + + private static class BasicTxnInfoStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, BasicTxnInfo 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: // ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.id = iprot.readI64(); + struct.setIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TIME + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.time = iprot.readI64(); + struct.setTimeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TXNID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.txnid = iprot.readI64(); + struct.setTxnidIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // DBNAME + 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 5: // TABLENAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tablename = iprot.readString(); + struct.setTablenameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // PARTITIONNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.partitionname = iprot.readString(); + struct.setPartitionnameIsSet(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, BasicTxnInfo struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldBegin(ID_FIELD_DESC); + oprot.writeI64(struct.id); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(TIME_FIELD_DESC); + oprot.writeI64(struct.time); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(TXNID_FIELD_DESC); + oprot.writeI64(struct.txnid); + oprot.writeFieldEnd(); + if (struct.dbname != null) { + oprot.writeFieldBegin(DBNAME_FIELD_DESC); + oprot.writeString(struct.dbname); + oprot.writeFieldEnd(); + } + if (struct.tablename != null) { + oprot.writeFieldBegin(TABLENAME_FIELD_DESC); + oprot.writeString(struct.tablename); + oprot.writeFieldEnd(); + } + if (struct.partitionname != null) { + if (struct.isSetPartitionname()) { + oprot.writeFieldBegin(PARTITIONNAME_FIELD_DESC); + oprot.writeString(struct.partitionname); + oprot.writeFieldEnd(); + } + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class BasicTxnInfoTupleSchemeFactory implements SchemeFactory { + public BasicTxnInfoTupleScheme getScheme() { + return new BasicTxnInfoTupleScheme(); + } + } + + private static class BasicTxnInfoTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, BasicTxnInfo struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeI64(struct.id); + oprot.writeI64(struct.time); + oprot.writeI64(struct.txnid); + oprot.writeString(struct.dbname); + oprot.writeString(struct.tablename); + BitSet optionals = new BitSet(); + if (struct.isSetPartitionname()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetPartitionname()) { + oprot.writeString(struct.partitionname); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, BasicTxnInfo struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.id = iprot.readI64(); + struct.setIdIsSet(true); + struct.time = iprot.readI64(); + struct.setTimeIsSet(true); + struct.txnid = iprot.readI64(); + struct.setTxnidIsSet(true); + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + struct.tablename = iprot.readString(); + struct.setTablenameIsSet(true); + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.partitionname = iprot.readString(); + struct.setPartitionnameIsSet(true); + } + } + } + +} + diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java index 7773dc6355..dbda2ab741 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java @@ -351,13 +351,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ClearFileMetadataRe case 1: // FILE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list698 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list698.size); - long _elem699; - for (int _i700 = 0; _i700 < _list698.size; ++_i700) + org.apache.thrift.protocol.TList _list716 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list716.size); + long _elem717; + for (int _i718 = 0; _i718 < _list716.size; ++_i718) { - _elem699 = iprot.readI64(); - struct.fileIds.add(_elem699); + _elem717 = iprot.readI64(); + struct.fileIds.add(_elem717); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ClearFileMetadataR oprot.writeFieldBegin(FILE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.fileIds.size())); - for (long _iter701 : struct.fileIds) + for (long _iter719 : struct.fileIds) { - oprot.writeI64(_iter701); + oprot.writeI64(_iter719); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ClearFileMetadataRe TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.fileIds.size()); - for (long _iter702 : struct.fileIds) + for (long _iter720 : struct.fileIds) { - oprot.writeI64(_iter702); + oprot.writeI64(_iter720); } } } @@ -421,13 +421,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ClearFileMetadataRe public void read(org.apache.thrift.protocol.TProtocol prot, ClearFileMetadataRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list703 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list703.size); - long _elem704; - for (int _i705 = 0; _i705 < _list703.size; ++_i705) + org.apache.thrift.protocol.TList _list721 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list721.size); + long _elem722; + for (int _i723 = 0; _i723 < _list721.size; ++_i723) { - _elem704 = iprot.readI64(); - struct.fileIds.add(_elem704); + _elem722 = iprot.readI64(); + struct.fileIds.add(_elem722); } } struct.setFileIdsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java index 194106535d..0df33f1c8b 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java @@ -354,13 +354,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ClientCapabilities case 1: // VALUES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list714 = iprot.readListBegin(); - struct.values = new ArrayList(_list714.size); - ClientCapability _elem715; - for (int _i716 = 0; _i716 < _list714.size; ++_i716) + org.apache.thrift.protocol.TList _list732 = iprot.readListBegin(); + struct.values = new ArrayList(_list732.size); + ClientCapability _elem733; + for (int _i734 = 0; _i734 < _list732.size; ++_i734) { - _elem715 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem715); + _elem733 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem733); } 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 _iter717 : struct.values) + for (ClientCapability _iter735 : struct.values) { - oprot.writeI32(_iter717.getValue()); + oprot.writeI32(_iter735.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 _iter718 : struct.values) + for (ClientCapability _iter736 : struct.values) { - oprot.writeI32(_iter718.getValue()); + oprot.writeI32(_iter736.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 _list719 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.values = new ArrayList(_list719.size); - ClientCapability _elem720; - for (int _i721 = 0; _i721 < _list719.size; ++_i721) + org.apache.thrift.protocol.TList _list737 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.values = new ArrayList(_list737.size); + ClientCapability _elem738; + for (int _i739 = 0; _i739 < _list737.size; ++_i739) { - _elem720 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem720); + _elem738 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem738); } } struct.setValuesIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java index 765889e5b9..962bb1cc17 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java @@ -451,14 +451,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ColumnStatistics st case 2: // STATS_OBJ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list270 = iprot.readListBegin(); - struct.statsObj = new ArrayList(_list270.size); - ColumnStatisticsObj _elem271; - for (int _i272 = 0; _i272 < _list270.size; ++_i272) + org.apache.thrift.protocol.TList _list280 = iprot.readListBegin(); + struct.statsObj = new ArrayList(_list280.size); + ColumnStatisticsObj _elem281; + for (int _i282 = 0; _i282 < _list280.size; ++_i282) { - _elem271 = new ColumnStatisticsObj(); - _elem271.read(iprot); - struct.statsObj.add(_elem271); + _elem281 = new ColumnStatisticsObj(); + _elem281.read(iprot); + struct.statsObj.add(_elem281); } iprot.readListEnd(); } @@ -489,9 +489,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ColumnStatistics s oprot.writeFieldBegin(STATS_OBJ_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.statsObj.size())); - for (ColumnStatisticsObj _iter273 : struct.statsObj) + for (ColumnStatisticsObj _iter283 : struct.statsObj) { - _iter273.write(oprot); + _iter283.write(oprot); } oprot.writeListEnd(); } @@ -517,9 +517,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ColumnStatistics st struct.statsDesc.write(oprot); { oprot.writeI32(struct.statsObj.size()); - for (ColumnStatisticsObj _iter274 : struct.statsObj) + for (ColumnStatisticsObj _iter284 : struct.statsObj) { - _iter274.write(oprot); + _iter284.write(oprot); } } } @@ -531,14 +531,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ColumnStatistics str struct.statsDesc.read(iprot); struct.setStatsDescIsSet(true); { - org.apache.thrift.protocol.TList _list275 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.statsObj = new ArrayList(_list275.size); - ColumnStatisticsObj _elem276; - for (int _i277 = 0; _i277 < _list275.size; ++_i277) + org.apache.thrift.protocol.TList _list285 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.statsObj = new ArrayList(_list285.size); + ColumnStatisticsObj _elem286; + for (int _i287 = 0; _i287 < _list285.size; ++_i287) { - _elem276 = new ColumnStatisticsObj(); - _elem276.read(iprot); - struct.statsObj.add(_elem276); + _elem286 = new ColumnStatisticsObj(); + _elem286.read(iprot); + struct.statsObj.add(_elem286); } } struct.setStatsObjIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java index 6da2b88e40..b92293e6a7 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java @@ -814,15 +814,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, CompactionRequest s case 6: // PROPERTIES if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map588 = iprot.readMapBegin(); - struct.properties = new HashMap(2*_map588.size); - String _key589; - String _val590; - for (int _i591 = 0; _i591 < _map588.size; ++_i591) + org.apache.thrift.protocol.TMap _map598 = iprot.readMapBegin(); + struct.properties = new HashMap(2*_map598.size); + String _key599; + String _val600; + for (int _i601 = 0; _i601 < _map598.size; ++_i601) { - _key589 = iprot.readString(); - _val590 = iprot.readString(); - struct.properties.put(_key589, _val590); + _key599 = iprot.readString(); + _val600 = iprot.readString(); + struct.properties.put(_key599, _val600); } iprot.readMapEnd(); } @@ -878,10 +878,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, CompactionRequest oprot.writeFieldBegin(PROPERTIES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.properties.size())); - for (Map.Entry _iter592 : struct.properties.entrySet()) + for (Map.Entry _iter602 : struct.properties.entrySet()) { - oprot.writeString(_iter592.getKey()); - oprot.writeString(_iter592.getValue()); + oprot.writeString(_iter602.getKey()); + oprot.writeString(_iter602.getValue()); } oprot.writeMapEnd(); } @@ -928,10 +928,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, CompactionRequest s if (struct.isSetProperties()) { { oprot.writeI32(struct.properties.size()); - for (Map.Entry _iter593 : struct.properties.entrySet()) + for (Map.Entry _iter603 : struct.properties.entrySet()) { - oprot.writeString(_iter593.getKey()); - oprot.writeString(_iter593.getValue()); + oprot.writeString(_iter603.getKey()); + oprot.writeString(_iter603.getValue()); } } } @@ -957,15 +957,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CompactionRequest st } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map594 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.properties = new HashMap(2*_map594.size); - String _key595; - String _val596; - for (int _i597 = 0; _i597 < _map594.size; ++_i597) + org.apache.thrift.protocol.TMap _map604 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.properties = new HashMap(2*_map604.size); + String _key605; + String _val606; + for (int _i607 = 0; _i607 < _map604.size; ++_i607) { - _key595 = iprot.readString(); - _val596 = iprot.readString(); - struct.properties.put(_key595, _val596); + _key605 = iprot.readString(); + _val606 = iprot.readString(); + struct.properties.put(_key605, _val606); } } struct.setPropertiesIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java index b9dc04a317..83ff494ce4 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java @@ -346,14 +346,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, DropPartitionsResul case 1: // PARTITIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list460 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list460.size); - Partition _elem461; - for (int _i462 = 0; _i462 < _list460.size; ++_i462) + org.apache.thrift.protocol.TList _list470 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list470.size); + Partition _elem471; + for (int _i472 = 0; _i472 < _list470.size; ++_i472) { - _elem461 = new Partition(); - _elem461.read(iprot); - struct.partitions.add(_elem461); + _elem471 = new Partition(); + _elem471.read(iprot); + struct.partitions.add(_elem471); } iprot.readListEnd(); } @@ -380,9 +380,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, DropPartitionsResu oprot.writeFieldBegin(PARTITIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size())); - for (Partition _iter463 : struct.partitions) + for (Partition _iter473 : struct.partitions) { - _iter463.write(oprot); + _iter473.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, DropPartitionsResul if (struct.isSetPartitions()) { { oprot.writeI32(struct.partitions.size()); - for (Partition _iter464 : struct.partitions) + for (Partition _iter474 : struct.partitions) { - _iter464.write(oprot); + _iter474.write(oprot); } } } @@ -428,14 +428,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, DropPartitionsResult BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list465 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list465.size); - Partition _elem466; - for (int _i467 = 0; _i467 < _list465.size; ++_i467) + org.apache.thrift.protocol.TList _list475 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list475.size); + Partition _elem476; + for (int _i477 = 0; _i477 < _list475.size; ++_i477) { - _elem466 = new Partition(); - _elem466.read(iprot); - struct.partitions.add(_elem466); + _elem476 = new Partition(); + _elem476.read(iprot); + struct.partitions.add(_elem476); } } struct.setPartitionsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java index 6829cfeec4..d7c4febc87 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java @@ -344,15 +344,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, EnvironmentContext case 1: // PROPERTIES if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map312 = iprot.readMapBegin(); - struct.properties = new HashMap(2*_map312.size); - String _key313; - String _val314; - for (int _i315 = 0; _i315 < _map312.size; ++_i315) + org.apache.thrift.protocol.TMap _map322 = iprot.readMapBegin(); + struct.properties = new HashMap(2*_map322.size); + String _key323; + String _val324; + for (int _i325 = 0; _i325 < _map322.size; ++_i325) { - _key313 = iprot.readString(); - _val314 = iprot.readString(); - struct.properties.put(_key313, _val314); + _key323 = iprot.readString(); + _val324 = iprot.readString(); + struct.properties.put(_key323, _val324); } iprot.readMapEnd(); } @@ -378,10 +378,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, EnvironmentContext oprot.writeFieldBegin(PROPERTIES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.properties.size())); - for (Map.Entry _iter316 : struct.properties.entrySet()) + for (Map.Entry _iter326 : struct.properties.entrySet()) { - oprot.writeString(_iter316.getKey()); - oprot.writeString(_iter316.getValue()); + oprot.writeString(_iter326.getKey()); + oprot.writeString(_iter326.getValue()); } oprot.writeMapEnd(); } @@ -412,10 +412,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, EnvironmentContext if (struct.isSetProperties()) { { oprot.writeI32(struct.properties.size()); - for (Map.Entry _iter317 : struct.properties.entrySet()) + for (Map.Entry _iter327 : struct.properties.entrySet()) { - oprot.writeString(_iter317.getKey()); - oprot.writeString(_iter317.getValue()); + oprot.writeString(_iter327.getKey()); + oprot.writeString(_iter327.getValue()); } } } @@ -427,15 +427,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, EnvironmentContext s BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map318 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.properties = new HashMap(2*_map318.size); - String _key319; - String _val320; - for (int _i321 = 0; _i321 < _map318.size; ++_i321) + org.apache.thrift.protocol.TMap _map328 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.properties = new HashMap(2*_map328.size); + String _key329; + String _val330; + for (int _i331 = 0; _i331 < _map328.size; ++_i331) { - _key319 = iprot.readString(); - _val320 = iprot.readString(); - struct.properties.put(_key319, _val320); + _key329 = iprot.readString(); + _val330 = iprot.readString(); + struct.properties.put(_key329, _val330); } } struct.setPropertiesIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java index cbfd7ef3fa..4efec9d7b9 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java @@ -713,13 +713,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, FireEventRequest st case 5: // PARTITION_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list638 = iprot.readListBegin(); - struct.partitionVals = new ArrayList(_list638.size); - String _elem639; - for (int _i640 = 0; _i640 < _list638.size; ++_i640) + org.apache.thrift.protocol.TList _list656 = iprot.readListBegin(); + struct.partitionVals = new ArrayList(_list656.size); + String _elem657; + for (int _i658 = 0; _i658 < _list656.size; ++_i658) { - _elem639 = iprot.readString(); - struct.partitionVals.add(_elem639); + _elem657 = iprot.readString(); + struct.partitionVals.add(_elem657); } iprot.readListEnd(); } @@ -768,9 +768,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, FireEventRequest s oprot.writeFieldBegin(PARTITION_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitionVals.size())); - for (String _iter641 : struct.partitionVals) + for (String _iter659 : struct.partitionVals) { - oprot.writeString(_iter641); + oprot.writeString(_iter659); } oprot.writeListEnd(); } @@ -816,9 +816,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, FireEventRequest st if (struct.isSetPartitionVals()) { { oprot.writeI32(struct.partitionVals.size()); - for (String _iter642 : struct.partitionVals) + for (String _iter660 : struct.partitionVals) { - oprot.writeString(_iter642); + oprot.writeString(_iter660); } } } @@ -843,13 +843,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, FireEventRequest str } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list643 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionVals = new ArrayList(_list643.size); - String _elem644; - for (int _i645 = 0; _i645 < _list643.size; ++_i645) + org.apache.thrift.protocol.TList _list661 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionVals = new ArrayList(_list661.size); + String _elem662; + for (int _i663 = 0; _i663 < _list661.size; ++_i663) { - _elem644 = iprot.readString(); - struct.partitionVals.add(_elem644); + _elem662 = iprot.readString(); + struct.partitionVals.add(_elem662); } } struct.setPartitionValsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ForeignKeysResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ForeignKeysResponse.java index 75b2404e5a..2b921c5081 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ForeignKeysResponse.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ForeignKeysResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ForeignKeysResponse case 1: // FOREIGN_KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list330 = iprot.readListBegin(); - struct.foreignKeys = new ArrayList(_list330.size); - SQLForeignKey _elem331; - for (int _i332 = 0; _i332 < _list330.size; ++_i332) + org.apache.thrift.protocol.TList _list340 = iprot.readListBegin(); + struct.foreignKeys = new ArrayList(_list340.size); + SQLForeignKey _elem341; + for (int _i342 = 0; _i342 < _list340.size; ++_i342) { - _elem331 = new SQLForeignKey(); - _elem331.read(iprot); - struct.foreignKeys.add(_elem331); + _elem341 = new SQLForeignKey(); + _elem341.read(iprot); + struct.foreignKeys.add(_elem341); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ForeignKeysRespons 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 _iter333 : struct.foreignKeys) + for (SQLForeignKey _iter343 : struct.foreignKeys) { - _iter333.write(oprot); + _iter343.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ForeignKeysResponse TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.foreignKeys.size()); - for (SQLForeignKey _iter334 : struct.foreignKeys) + for (SQLForeignKey _iter344 : struct.foreignKeys) { - _iter334.write(oprot); + _iter344.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ForeignKeysResponse public void read(org.apache.thrift.protocol.TProtocol prot, ForeignKeysResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list335 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.foreignKeys = new ArrayList(_list335.size); - SQLForeignKey _elem336; - for (int _i337 = 0; _i337 < _list335.size; ++_i337) + org.apache.thrift.protocol.TList _list345 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.foreignKeys = new ArrayList(_list345.size); + SQLForeignKey _elem346; + for (int _i347 = 0; _i347 < _list345.size; ++_i347) { - _elem336 = new SQLForeignKey(); - _elem336.read(iprot); - struct.foreignKeys.add(_elem336); + _elem346 = new SQLForeignKey(); + _elem346.read(iprot); + struct.foreignKeys.add(_elem346); } } struct.setForeignKeysIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java index ca62b882c0..0f5d5ebb3c 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java @@ -997,14 +997,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Function struct) th case 8: // RESOURCE_URIS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list516 = iprot.readListBegin(); - struct.resourceUris = new ArrayList(_list516.size); - ResourceUri _elem517; - for (int _i518 = 0; _i518 < _list516.size; ++_i518) + org.apache.thrift.protocol.TList _list526 = iprot.readListBegin(); + struct.resourceUris = new ArrayList(_list526.size); + ResourceUri _elem527; + for (int _i528 = 0; _i528 < _list526.size; ++_i528) { - _elem517 = new ResourceUri(); - _elem517.read(iprot); - struct.resourceUris.add(_elem517); + _elem527 = new ResourceUri(); + _elem527.read(iprot); + struct.resourceUris.add(_elem527); } iprot.readListEnd(); } @@ -1063,9 +1063,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Function struct) t oprot.writeFieldBegin(RESOURCE_URIS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.resourceUris.size())); - for (ResourceUri _iter519 : struct.resourceUris) + for (ResourceUri _iter529 : struct.resourceUris) { - _iter519.write(oprot); + _iter529.write(oprot); } oprot.writeListEnd(); } @@ -1138,9 +1138,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Function struct) th if (struct.isSetResourceUris()) { { oprot.writeI32(struct.resourceUris.size()); - for (ResourceUri _iter520 : struct.resourceUris) + for (ResourceUri _iter530 : struct.resourceUris) { - _iter520.write(oprot); + _iter530.write(oprot); } } } @@ -1180,14 +1180,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Function struct) thr } if (incoming.get(7)) { { - org.apache.thrift.protocol.TList _list521 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.resourceUris = new ArrayList(_list521.size); - ResourceUri _elem522; - for (int _i523 = 0; _i523 < _list521.size; ++_i523) + org.apache.thrift.protocol.TList _list531 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.resourceUris = new ArrayList(_list531.size); + ResourceUri _elem532; + for (int _i533 = 0; _i533 < _list531.size; ++_i533) { - _elem522 = new ResourceUri(); - _elem522.read(iprot); - struct.resourceUris.add(_elem522); + _elem532 = new ResourceUri(); + _elem532.read(iprot); + struct.resourceUris.add(_elem532); } } struct.setResourceUrisIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java index 16a95ad3a6..bff424fe15 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java @@ -346,14 +346,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetAllFunctionsResp case 1: // FUNCTIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list706 = iprot.readListBegin(); - struct.functions = new ArrayList(_list706.size); - Function _elem707; - for (int _i708 = 0; _i708 < _list706.size; ++_i708) + org.apache.thrift.protocol.TList _list724 = iprot.readListBegin(); + struct.functions = new ArrayList(_list724.size); + Function _elem725; + for (int _i726 = 0; _i726 < _list724.size; ++_i726) { - _elem707 = new Function(); - _elem707.read(iprot); - struct.functions.add(_elem707); + _elem725 = new Function(); + _elem725.read(iprot); + struct.functions.add(_elem725); } 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 _iter709 : struct.functions) + for (Function _iter727 : struct.functions) { - _iter709.write(oprot); + _iter727.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 _iter710 : struct.functions) + for (Function _iter728 : struct.functions) { - _iter710.write(oprot); + _iter728.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 _list711 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.functions = new ArrayList(_list711.size); - Function _elem712; - for (int _i713 = 0; _i713 < _list711.size; ++_i713) + org.apache.thrift.protocol.TList _list729 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.functions = new ArrayList(_list729.size); + Function _elem730; + for (int _i731 = 0; _i731 < _list729.size; ++_i731) { - _elem712 = new Function(); - _elem712.read(iprot); - struct.functions.add(_elem712); + _elem730 = new Function(); + _elem730.read(iprot); + struct.functions.add(_elem730); } } struct.setFunctionsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java index 77262491c4..38a5ed9d10 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java @@ -619,13 +619,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetFileMetadataByEx case 1: // FILE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list656 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list656.size); - long _elem657; - for (int _i658 = 0; _i658 < _list656.size; ++_i658) + org.apache.thrift.protocol.TList _list674 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list674.size); + long _elem675; + for (int _i676 = 0; _i676 < _list674.size; ++_i676) { - _elem657 = iprot.readI64(); - struct.fileIds.add(_elem657); + _elem675 = iprot.readI64(); + struct.fileIds.add(_elem675); } iprot.readListEnd(); } @@ -675,9 +675,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetFileMetadataByE oprot.writeFieldBegin(FILE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.fileIds.size())); - for (long _iter659 : struct.fileIds) + for (long _iter677 : struct.fileIds) { - oprot.writeI64(_iter659); + oprot.writeI64(_iter677); } oprot.writeListEnd(); } @@ -719,9 +719,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByEx TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.fileIds.size()); - for (long _iter660 : struct.fileIds) + for (long _iter678 : struct.fileIds) { - oprot.writeI64(_iter660); + oprot.writeI64(_iter678); } } oprot.writeBinary(struct.expr); @@ -745,13 +745,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByEx public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByExprRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list661 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list661.size); - long _elem662; - for (int _i663 = 0; _i663 < _list661.size; ++_i663) + org.apache.thrift.protocol.TList _list679 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list679.size); + long _elem680; + for (int _i681 = 0; _i681 < _list679.size; ++_i681) { - _elem662 = iprot.readI64(); - struct.fileIds.add(_elem662); + _elem680 = iprot.readI64(); + struct.fileIds.add(_elem680); } } struct.setFileIdsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java index c26acd41ed..a3dc7436f3 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java @@ -444,16 +444,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetFileMetadataByEx case 1: // METADATA if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map646 = iprot.readMapBegin(); - struct.metadata = new HashMap(2*_map646.size); - long _key647; - MetadataPpdResult _val648; - for (int _i649 = 0; _i649 < _map646.size; ++_i649) + org.apache.thrift.protocol.TMap _map664 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map664.size); + long _key665; + MetadataPpdResult _val666; + for (int _i667 = 0; _i667 < _map664.size; ++_i667) { - _key647 = iprot.readI64(); - _val648 = new MetadataPpdResult(); - _val648.read(iprot); - struct.metadata.put(_key647, _val648); + _key665 = iprot.readI64(); + _val666 = new MetadataPpdResult(); + _val666.read(iprot); + struct.metadata.put(_key665, _val666); } iprot.readMapEnd(); } @@ -487,10 +487,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetFileMetadataByE oprot.writeFieldBegin(METADATA_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.metadata.size())); - for (Map.Entry _iter650 : struct.metadata.entrySet()) + for (Map.Entry _iter668 : struct.metadata.entrySet()) { - oprot.writeI64(_iter650.getKey()); - _iter650.getValue().write(oprot); + oprot.writeI64(_iter668.getKey()); + _iter668.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -518,10 +518,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByEx TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.metadata.size()); - for (Map.Entry _iter651 : struct.metadata.entrySet()) + for (Map.Entry _iter669 : struct.metadata.entrySet()) { - oprot.writeI64(_iter651.getKey()); - _iter651.getValue().write(oprot); + oprot.writeI64(_iter669.getKey()); + _iter669.getValue().write(oprot); } } oprot.writeBool(struct.isSupported); @@ -531,16 +531,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByEx public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByExprResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TMap _map652 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.metadata = new HashMap(2*_map652.size); - long _key653; - MetadataPpdResult _val654; - for (int _i655 = 0; _i655 < _map652.size; ++_i655) + org.apache.thrift.protocol.TMap _map670 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.metadata = new HashMap(2*_map670.size); + long _key671; + MetadataPpdResult _val672; + for (int _i673 = 0; _i673 < _map670.size; ++_i673) { - _key653 = iprot.readI64(); - _val654 = new MetadataPpdResult(); - _val654.read(iprot); - struct.metadata.put(_key653, _val654); + _key671 = iprot.readI64(); + _val672 = new MetadataPpdResult(); + _val672.read(iprot); + struct.metadata.put(_key671, _val672); } } struct.setMetadataIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java index 965bb75fb7..53603afce3 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java @@ -351,13 +351,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetFileMetadataRequ case 1: // FILE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list674 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list674.size); - long _elem675; - for (int _i676 = 0; _i676 < _list674.size; ++_i676) + org.apache.thrift.protocol.TList _list692 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list692.size); + long _elem693; + for (int _i694 = 0; _i694 < _list692.size; ++_i694) { - _elem675 = iprot.readI64(); - struct.fileIds.add(_elem675); + _elem693 = iprot.readI64(); + struct.fileIds.add(_elem693); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetFileMetadataReq oprot.writeFieldBegin(FILE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.fileIds.size())); - for (long _iter677 : struct.fileIds) + for (long _iter695 : struct.fileIds) { - oprot.writeI64(_iter677); + oprot.writeI64(_iter695); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataRequ TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.fileIds.size()); - for (long _iter678 : struct.fileIds) + for (long _iter696 : struct.fileIds) { - oprot.writeI64(_iter678); + oprot.writeI64(_iter696); } } } @@ -421,13 +421,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataRequ public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list679 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list679.size); - long _elem680; - for (int _i681 = 0; _i681 < _list679.size; ++_i681) + org.apache.thrift.protocol.TList _list697 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list697.size); + long _elem698; + for (int _i699 = 0; _i699 < _list697.size; ++_i699) { - _elem680 = iprot.readI64(); - struct.fileIds.add(_elem680); + _elem698 = iprot.readI64(); + struct.fileIds.add(_elem698); } } struct.setFileIdsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java index 85e4a623ba..440965ed96 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java @@ -433,15 +433,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetFileMetadataResu case 1: // METADATA if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map664 = iprot.readMapBegin(); - struct.metadata = new HashMap(2*_map664.size); - long _key665; - ByteBuffer _val666; - for (int _i667 = 0; _i667 < _map664.size; ++_i667) + org.apache.thrift.protocol.TMap _map682 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map682.size); + long _key683; + ByteBuffer _val684; + for (int _i685 = 0; _i685 < _map682.size; ++_i685) { - _key665 = iprot.readI64(); - _val666 = iprot.readBinary(); - struct.metadata.put(_key665, _val666); + _key683 = iprot.readI64(); + _val684 = iprot.readBinary(); + struct.metadata.put(_key683, _val684); } iprot.readMapEnd(); } @@ -475,10 +475,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetFileMetadataRes oprot.writeFieldBegin(METADATA_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.metadata.size())); - for (Map.Entry _iter668 : struct.metadata.entrySet()) + for (Map.Entry _iter686 : struct.metadata.entrySet()) { - oprot.writeI64(_iter668.getKey()); - oprot.writeBinary(_iter668.getValue()); + oprot.writeI64(_iter686.getKey()); + oprot.writeBinary(_iter686.getValue()); } oprot.writeMapEnd(); } @@ -506,10 +506,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataResu TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.metadata.size()); - for (Map.Entry _iter669 : struct.metadata.entrySet()) + for (Map.Entry _iter687 : struct.metadata.entrySet()) { - oprot.writeI64(_iter669.getKey()); - oprot.writeBinary(_iter669.getValue()); + oprot.writeI64(_iter687.getKey()); + oprot.writeBinary(_iter687.getValue()); } } oprot.writeBool(struct.isSupported); @@ -519,15 +519,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataResu public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TMap _map670 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.metadata = new HashMap(2*_map670.size); - long _key671; - ByteBuffer _val672; - for (int _i673 = 0; _i673 < _map670.size; ++_i673) + org.apache.thrift.protocol.TMap _map688 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.metadata = new HashMap(2*_map688.size); + long _key689; + ByteBuffer _val690; + for (int _i691 = 0; _i691 < _map688.size; ++_i691) { - _key671 = iprot.readI64(); - _val672 = iprot.readBinary(); - struct.metadata.put(_key671, _val672); + _key689 = iprot.readI64(); + _val690 = iprot.readBinary(); + struct.metadata.put(_key689, _val690); } } struct.setMetadataIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java index ae644df9b3..a77f661b7d 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java @@ -447,14 +447,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetOpenTxnsInfoResp case 2: // OPEN_TXNS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list524 = iprot.readListBegin(); - struct.open_txns = new ArrayList(_list524.size); - TxnInfo _elem525; - for (int _i526 = 0; _i526 < _list524.size; ++_i526) + org.apache.thrift.protocol.TList _list534 = iprot.readListBegin(); + struct.open_txns = new ArrayList(_list534.size); + TxnInfo _elem535; + for (int _i536 = 0; _i536 < _list534.size; ++_i536) { - _elem525 = new TxnInfo(); - _elem525.read(iprot); - struct.open_txns.add(_elem525); + _elem535 = new TxnInfo(); + _elem535.read(iprot); + struct.open_txns.add(_elem535); } iprot.readListEnd(); } @@ -483,9 +483,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetOpenTxnsInfoRes oprot.writeFieldBegin(OPEN_TXNS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.open_txns.size())); - for (TxnInfo _iter527 : struct.open_txns) + for (TxnInfo _iter537 : struct.open_txns) { - _iter527.write(oprot); + _iter537.write(oprot); } oprot.writeListEnd(); } @@ -511,9 +511,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetOpenTxnsInfoResp oprot.writeI64(struct.txn_high_water_mark); { oprot.writeI32(struct.open_txns.size()); - for (TxnInfo _iter528 : struct.open_txns) + for (TxnInfo _iter538 : struct.open_txns) { - _iter528.write(oprot); + _iter538.write(oprot); } } } @@ -524,14 +524,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetOpenTxnsInfoRespo struct.txn_high_water_mark = iprot.readI64(); struct.setTxn_high_water_markIsSet(true); { - org.apache.thrift.protocol.TList _list529 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.open_txns = new ArrayList(_list529.size); - TxnInfo _elem530; - for (int _i531 = 0; _i531 < _list529.size; ++_i531) + org.apache.thrift.protocol.TList _list539 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.open_txns = new ArrayList(_list539.size); + TxnInfo _elem540; + for (int _i541 = 0; _i541 < _list539.size; ++_i541) { - _elem530 = new TxnInfo(); - _elem530.read(iprot); - struct.open_txns.add(_elem530); + _elem540 = new TxnInfo(); + _elem540.read(iprot); + struct.open_txns.add(_elem540); } } struct.setOpen_txnsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java index 662c093e4a..70ea1de7d3 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java @@ -615,13 +615,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetOpenTxnsResponse case 2: // OPEN_TXNS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list532 = iprot.readListBegin(); - struct.open_txns = new ArrayList(_list532.size); - long _elem533; - for (int _i534 = 0; _i534 < _list532.size; ++_i534) + org.apache.thrift.protocol.TList _list542 = iprot.readListBegin(); + struct.open_txns = new ArrayList(_list542.size); + long _elem543; + for (int _i544 = 0; _i544 < _list542.size; ++_i544) { - _elem533 = iprot.readI64(); - struct.open_txns.add(_elem533); + _elem543 = iprot.readI64(); + struct.open_txns.add(_elem543); } iprot.readListEnd(); } @@ -666,9 +666,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetOpenTxnsRespons oprot.writeFieldBegin(OPEN_TXNS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.open_txns.size())); - for (long _iter535 : struct.open_txns) + for (long _iter545 : struct.open_txns) { - oprot.writeI64(_iter535); + oprot.writeI64(_iter545); } oprot.writeListEnd(); } @@ -704,9 +704,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetOpenTxnsResponse oprot.writeI64(struct.txn_high_water_mark); { oprot.writeI32(struct.open_txns.size()); - for (long _iter536 : struct.open_txns) + for (long _iter546 : struct.open_txns) { - oprot.writeI64(_iter536); + oprot.writeI64(_iter546); } } oprot.writeBinary(struct.abortedBits); @@ -726,13 +726,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetOpenTxnsResponse struct.txn_high_water_mark = iprot.readI64(); struct.setTxn_high_water_markIsSet(true); { - org.apache.thrift.protocol.TList _list537 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.open_txns = new ArrayList(_list537.size); - long _elem538; - for (int _i539 = 0; _i539 < _list537.size; ++_i539) + org.apache.thrift.protocol.TList _list547 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.open_txns = new ArrayList(_list547.size); + long _elem548; + for (int _i549 = 0; _i549 < _list547.size; ++_i549) { - _elem538 = iprot.readI64(); - struct.open_txns.add(_elem538); + _elem548 = iprot.readI64(); + struct.open_txns.add(_elem548); } } struct.setOpen_txnsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java index a20940f061..575737dc67 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java @@ -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 _list722 = iprot.readListBegin(); - struct.tblNames = new ArrayList(_list722.size); - String _elem723; - for (int _i724 = 0; _i724 < _list722.size; ++_i724) + org.apache.thrift.protocol.TList _list740 = iprot.readListBegin(); + struct.tblNames = new ArrayList(_list740.size); + String _elem741; + for (int _i742 = 0; _i742 < _list740.size; ++_i742) { - _elem723 = iprot.readString(); - struct.tblNames.add(_elem723); + _elem741 = iprot.readString(); + struct.tblNames.add(_elem741); } 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 _iter725 : struct.tblNames) + for (String _iter743 : struct.tblNames) { - oprot.writeString(_iter725); + oprot.writeString(_iter743); } 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 _iter726 : struct.tblNames) + for (String _iter744 : struct.tblNames) { - oprot.writeString(_iter726); + oprot.writeString(_iter744); } } } @@ -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 _list727 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tblNames = new ArrayList(_list727.size); - String _elem728; - for (int _i729 = 0; _i729 < _list727.size; ++_i729) + org.apache.thrift.protocol.TList _list745 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tblNames = new ArrayList(_list745.size); + String _elem746; + for (int _i747 = 0; _i747 < _list745.size; ++_i747) { - _elem728 = iprot.readString(); - struct.tblNames.add(_elem728); + _elem746 = iprot.readString(); + struct.tblNames.add(_elem746); } } struct.setTblNamesIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java index 95c20dd6fe..050d093d84 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetTablesResult str case 1: // TABLES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list730 = iprot.readListBegin(); - struct.tables = new ArrayList
(_list730.size); - Table _elem731; - for (int _i732 = 0; _i732 < _list730.size; ++_i732) + org.apache.thrift.protocol.TList _list748 = iprot.readListBegin(); + struct.tables = new ArrayList
(_list748.size); + Table _elem749; + for (int _i750 = 0; _i750 < _list748.size; ++_i750) { - _elem731 = new Table(); - _elem731.read(iprot); - struct.tables.add(_elem731); + _elem749 = new Table(); + _elem749.read(iprot); + struct.tables.add(_elem749); } 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 _iter733 : struct.tables) + for (Table _iter751 : struct.tables) { - _iter733.write(oprot); + _iter751.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 _iter734 : struct.tables) + for (Table _iter752 : struct.tables) { - _iter734.write(oprot); + _iter752.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 _list735 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tables = new ArrayList
(_list735.size); - Table _elem736; - for (int _i737 = 0; _i737 < _list735.size; ++_i737) + org.apache.thrift.protocol.TList _list753 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tables = new ArrayList
(_list753.size); + Table _elem754; + for (int _i755 = 0; _i755 < _list753.size; ++_i755) { - _elem736 = new Table(); - _elem736.read(iprot); - struct.tables.add(_elem736); + _elem754 = new Table(); + _elem754.read(iprot); + struct.tables.add(_elem754); } } struct.setTablesIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java index 762f4651b7..828e94e9e2 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java @@ -453,13 +453,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, HeartbeatTxnRangeRe case 1: // ABORTED if (schemeField.type == org.apache.thrift.protocol.TType.SET) { { - org.apache.thrift.protocol.TSet _set572 = iprot.readSetBegin(); - struct.aborted = new HashSet(2*_set572.size); - long _elem573; - for (int _i574 = 0; _i574 < _set572.size; ++_i574) + org.apache.thrift.protocol.TSet _set582 = iprot.readSetBegin(); + struct.aborted = new HashSet(2*_set582.size); + long _elem583; + for (int _i584 = 0; _i584 < _set582.size; ++_i584) { - _elem573 = iprot.readI64(); - struct.aborted.add(_elem573); + _elem583 = iprot.readI64(); + struct.aborted.add(_elem583); } iprot.readSetEnd(); } @@ -471,13 +471,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, HeartbeatTxnRangeRe case 2: // NOSUCH if (schemeField.type == org.apache.thrift.protocol.TType.SET) { { - org.apache.thrift.protocol.TSet _set575 = iprot.readSetBegin(); - struct.nosuch = new HashSet(2*_set575.size); - long _elem576; - for (int _i577 = 0; _i577 < _set575.size; ++_i577) + org.apache.thrift.protocol.TSet _set585 = iprot.readSetBegin(); + struct.nosuch = new HashSet(2*_set585.size); + long _elem586; + for (int _i587 = 0; _i587 < _set585.size; ++_i587) { - _elem576 = iprot.readI64(); - struct.nosuch.add(_elem576); + _elem586 = iprot.readI64(); + struct.nosuch.add(_elem586); } iprot.readSetEnd(); } @@ -503,9 +503,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, HeartbeatTxnRangeR oprot.writeFieldBegin(ABORTED_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, struct.aborted.size())); - for (long _iter578 : struct.aborted) + for (long _iter588 : struct.aborted) { - oprot.writeI64(_iter578); + oprot.writeI64(_iter588); } oprot.writeSetEnd(); } @@ -515,9 +515,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, HeartbeatTxnRangeR oprot.writeFieldBegin(NOSUCH_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, struct.nosuch.size())); - for (long _iter579 : struct.nosuch) + for (long _iter589 : struct.nosuch) { - oprot.writeI64(_iter579); + oprot.writeI64(_iter589); } oprot.writeSetEnd(); } @@ -542,16 +542,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, HeartbeatTxnRangeRe TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.aborted.size()); - for (long _iter580 : struct.aborted) + for (long _iter590 : struct.aborted) { - oprot.writeI64(_iter580); + oprot.writeI64(_iter590); } } { oprot.writeI32(struct.nosuch.size()); - for (long _iter581 : struct.nosuch) + for (long _iter591 : struct.nosuch) { - oprot.writeI64(_iter581); + oprot.writeI64(_iter591); } } } @@ -560,24 +560,24 @@ public void write(org.apache.thrift.protocol.TProtocol prot, HeartbeatTxnRangeRe public void read(org.apache.thrift.protocol.TProtocol prot, HeartbeatTxnRangeResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TSet _set582 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.aborted = new HashSet(2*_set582.size); - long _elem583; - for (int _i584 = 0; _i584 < _set582.size; ++_i584) + org.apache.thrift.protocol.TSet _set592 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.aborted = new HashSet(2*_set592.size); + long _elem593; + for (int _i594 = 0; _i594 < _set592.size; ++_i594) { - _elem583 = iprot.readI64(); - struct.aborted.add(_elem583); + _elem593 = iprot.readI64(); + struct.aborted.add(_elem593); } } struct.setAbortedIsSet(true); { - org.apache.thrift.protocol.TSet _set585 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.nosuch = new HashSet(2*_set585.size); - long _elem586; - for (int _i587 = 0; _i587 < _set585.size; ++_i587) + org.apache.thrift.protocol.TSet _set595 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.nosuch = new HashSet(2*_set595.size); + long _elem596; + for (int _i597 = 0; _i597 < _set595.size; ++_i597) { - _elem586 = iprot.readI64(); - struct.nosuch.add(_elem586); + _elem596 = iprot.readI64(); + struct.nosuch.add(_elem596); } } struct.setNosuchIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java index 8f2af25d5e..556e7c6729 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java @@ -1133,15 +1133,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Index struct) throw case 9: // PARAMETERS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map260 = iprot.readMapBegin(); - struct.parameters = new HashMap(2*_map260.size); - String _key261; - String _val262; - for (int _i263 = 0; _i263 < _map260.size; ++_i263) + org.apache.thrift.protocol.TMap _map270 = iprot.readMapBegin(); + struct.parameters = new HashMap(2*_map270.size); + String _key271; + String _val272; + for (int _i273 = 0; _i273 < _map270.size; ++_i273) { - _key261 = iprot.readString(); - _val262 = iprot.readString(); - struct.parameters.put(_key261, _val262); + _key271 = iprot.readString(); + _val272 = iprot.readString(); + struct.parameters.put(_key271, _val272); } iprot.readMapEnd(); } @@ -1211,10 +1211,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Index struct) thro oprot.writeFieldBegin(PARAMETERS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.parameters.size())); - for (Map.Entry _iter264 : struct.parameters.entrySet()) + for (Map.Entry _iter274 : struct.parameters.entrySet()) { - oprot.writeString(_iter264.getKey()); - oprot.writeString(_iter264.getValue()); + oprot.writeString(_iter274.getKey()); + oprot.writeString(_iter274.getValue()); } oprot.writeMapEnd(); } @@ -1299,10 +1299,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Index struct) throw if (struct.isSetParameters()) { { oprot.writeI32(struct.parameters.size()); - for (Map.Entry _iter265 : struct.parameters.entrySet()) + for (Map.Entry _iter275 : struct.parameters.entrySet()) { - oprot.writeString(_iter265.getKey()); - oprot.writeString(_iter265.getValue()); + oprot.writeString(_iter275.getKey()); + oprot.writeString(_iter275.getValue()); } } } @@ -1350,15 +1350,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Index struct) throws } if (incoming.get(8)) { { - org.apache.thrift.protocol.TMap _map266 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.parameters = new HashMap(2*_map266.size); - String _key267; - String _val268; - for (int _i269 = 0; _i269 < _map266.size; ++_i269) + org.apache.thrift.protocol.TMap _map276 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.parameters = new HashMap(2*_map276.size); + String _key277; + String _val278; + for (int _i279 = 0; _i279 < _map276.size; ++_i279) { - _key267 = iprot.readString(); - _val268 = iprot.readString(); - struct.parameters.put(_key267, _val268); + _key277 = iprot.readString(); + _val278 = iprot.readString(); + struct.parameters.put(_key277, _val278); } } struct.setParametersIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java index c171384e49..184f9d52a5 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java @@ -538,13 +538,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, InsertEventRequestD case 2: // FILES_ADDED if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list622 = iprot.readListBegin(); - struct.filesAdded = new ArrayList(_list622.size); - String _elem623; - for (int _i624 = 0; _i624 < _list622.size; ++_i624) + org.apache.thrift.protocol.TList _list640 = iprot.readListBegin(); + struct.filesAdded = new ArrayList(_list640.size); + String _elem641; + for (int _i642 = 0; _i642 < _list640.size; ++_i642) { - _elem623 = iprot.readString(); - struct.filesAdded.add(_elem623); + _elem641 = iprot.readString(); + struct.filesAdded.add(_elem641); } iprot.readListEnd(); } @@ -556,13 +556,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, InsertEventRequestD case 3: // FILES_ADDED_CHECKSUM if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list625 = iprot.readListBegin(); - struct.filesAddedChecksum = new ArrayList(_list625.size); - String _elem626; - for (int _i627 = 0; _i627 < _list625.size; ++_i627) + org.apache.thrift.protocol.TList _list643 = iprot.readListBegin(); + struct.filesAddedChecksum = new ArrayList(_list643.size); + String _elem644; + for (int _i645 = 0; _i645 < _list643.size; ++_i645) { - _elem626 = iprot.readString(); - struct.filesAddedChecksum.add(_elem626); + _elem644 = iprot.readString(); + struct.filesAddedChecksum.add(_elem644); } iprot.readListEnd(); } @@ -593,9 +593,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, InsertEventRequest oprot.writeFieldBegin(FILES_ADDED_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.filesAdded.size())); - for (String _iter628 : struct.filesAdded) + for (String _iter646 : struct.filesAdded) { - oprot.writeString(_iter628); + oprot.writeString(_iter646); } oprot.writeListEnd(); } @@ -606,9 +606,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, InsertEventRequest oprot.writeFieldBegin(FILES_ADDED_CHECKSUM_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.filesAddedChecksum.size())); - for (String _iter629 : struct.filesAddedChecksum) + for (String _iter647 : struct.filesAddedChecksum) { - oprot.writeString(_iter629); + oprot.writeString(_iter647); } oprot.writeListEnd(); } @@ -634,9 +634,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestD TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.filesAdded.size()); - for (String _iter630 : struct.filesAdded) + for (String _iter648 : struct.filesAdded) { - oprot.writeString(_iter630); + oprot.writeString(_iter648); } } BitSet optionals = new BitSet(); @@ -653,9 +653,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestD if (struct.isSetFilesAddedChecksum()) { { oprot.writeI32(struct.filesAddedChecksum.size()); - for (String _iter631 : struct.filesAddedChecksum) + for (String _iter649 : struct.filesAddedChecksum) { - oprot.writeString(_iter631); + oprot.writeString(_iter649); } } } @@ -665,13 +665,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestD public void read(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestData struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list632 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filesAdded = new ArrayList(_list632.size); - String _elem633; - for (int _i634 = 0; _i634 < _list632.size; ++_i634) + org.apache.thrift.protocol.TList _list650 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filesAdded = new ArrayList(_list650.size); + String _elem651; + for (int _i652 = 0; _i652 < _list650.size; ++_i652) { - _elem633 = iprot.readString(); - struct.filesAdded.add(_elem633); + _elem651 = iprot.readString(); + struct.filesAdded.add(_elem651); } } struct.setFilesAddedIsSet(true); @@ -682,13 +682,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestDa } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list635 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filesAddedChecksum = new ArrayList(_list635.size); - String _elem636; - for (int _i637 = 0; _i637 < _list635.size; ++_i637) + org.apache.thrift.protocol.TList _list653 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filesAddedChecksum = new ArrayList(_list653.size); + String _elem654; + for (int _i655 = 0; _i655 < _list653.size; ++_i655) { - _elem636 = iprot.readString(); - struct.filesAddedChecksum.add(_elem636); + _elem654 = iprot.readString(); + struct.filesAddedChecksum.add(_elem654); } } struct.setFilesAddedChecksumIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java index 6aaed5cc9f..b5d17cc0ff 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java @@ -689,14 +689,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, LockRequest struct) case 1: // COMPONENT if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list556 = iprot.readListBegin(); - struct.component = new ArrayList(_list556.size); - LockComponent _elem557; - for (int _i558 = 0; _i558 < _list556.size; ++_i558) + org.apache.thrift.protocol.TList _list566 = iprot.readListBegin(); + struct.component = new ArrayList(_list566.size); + LockComponent _elem567; + for (int _i568 = 0; _i568 < _list566.size; ++_i568) { - _elem557 = new LockComponent(); - _elem557.read(iprot); - struct.component.add(_elem557); + _elem567 = new LockComponent(); + _elem567.read(iprot); + struct.component.add(_elem567); } iprot.readListEnd(); } @@ -754,9 +754,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, LockRequest struct oprot.writeFieldBegin(COMPONENT_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.component.size())); - for (LockComponent _iter559 : struct.component) + for (LockComponent _iter569 : struct.component) { - _iter559.write(oprot); + _iter569.write(oprot); } oprot.writeListEnd(); } @@ -803,9 +803,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, LockRequest struct) TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.component.size()); - for (LockComponent _iter560 : struct.component) + for (LockComponent _iter570 : struct.component) { - _iter560.write(oprot); + _iter570.write(oprot); } } oprot.writeString(struct.user); @@ -830,14 +830,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, LockRequest struct) public void read(org.apache.thrift.protocol.TProtocol prot, LockRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list561 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.component = new ArrayList(_list561.size); - LockComponent _elem562; - for (int _i563 = 0; _i563 < _list561.size; ++_i563) + org.apache.thrift.protocol.TList _list571 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.component = new ArrayList(_list571.size); + LockComponent _elem572; + for (int _i573 = 0; _i573 < _list571.size; ++_i573) { - _elem562 = new LockComponent(); - _elem562.read(iprot); - struct.component.add(_elem562); + _elem572 = new LockComponent(); + _elem572.read(iprot); + struct.component.add(_elem572); } } struct.setComponentIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Materialization.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Materialization.java new file mode 100644 index 0000000000..f217bf0028 --- /dev/null +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Materialization.java @@ -0,0 +1,643 @@ +/** + * Autogenerated by Thrift Compiler (0.9.3) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.apache.hadoop.hive.metastore.api; + +import org.apache.thrift.scheme.IScheme; +import org.apache.thrift.scheme.SchemeFactory; +import org.apache.thrift.scheme.StandardScheme; + +import org.apache.thrift.scheme.TupleScheme; +import org.apache.thrift.protocol.TTupleProtocol; +import org.apache.thrift.protocol.TProtocolException; +import org.apache.thrift.EncodingUtils; +import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.EnumMap; +import java.util.Set; +import java.util.HashSet; +import java.util.EnumSet; +import java.util.Collections; +import java.util.BitSet; +import java.nio.ByteBuffer; +import java.util.Arrays; +import javax.annotation.Generated; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") +@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class Materialization 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("Materialization"); + + private static final org.apache.thrift.protocol.TField MATERIALIZATION_TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("materializationTable", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField TABLES_USED_FIELD_DESC = new org.apache.thrift.protocol.TField("tablesUsed", org.apache.thrift.protocol.TType.SET, (short)2); + private static final org.apache.thrift.protocol.TField INVALIDATION_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("invalidationTime", org.apache.thrift.protocol.TType.I64, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new MaterializationStandardSchemeFactory()); + schemes.put(TupleScheme.class, new MaterializationTupleSchemeFactory()); + } + + private Table materializationTable; // required + private Set tablesUsed; // required + private long invalidationTime; // 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 { + MATERIALIZATION_TABLE((short)1, "materializationTable"), + TABLES_USED((short)2, "tablesUsed"), + INVALIDATION_TIME((short)3, "invalidationTime"); + + 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: // MATERIALIZATION_TABLE + return MATERIALIZATION_TABLE; + case 2: // TABLES_USED + return TABLES_USED; + case 3: // INVALIDATION_TIME + return INVALIDATION_TIME; + 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 __INVALIDATIONTIME_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.MATERIALIZATION_TABLE, new org.apache.thrift.meta_data.FieldMetaData("materializationTable", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); + tmpMap.put(_Fields.TABLES_USED, new org.apache.thrift.meta_data.FieldMetaData("tablesUsed", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.INVALIDATION_TIME, new org.apache.thrift.meta_data.FieldMetaData("invalidationTime", 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(Materialization.class, metaDataMap); + } + + public Materialization() { + } + + public Materialization( + Table materializationTable, + Set tablesUsed, + long invalidationTime) + { + this(); + this.materializationTable = materializationTable; + this.tablesUsed = tablesUsed; + this.invalidationTime = invalidationTime; + setInvalidationTimeIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public Materialization(Materialization other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetMaterializationTable()) { + this.materializationTable = new Table(other.materializationTable); + } + if (other.isSetTablesUsed()) { + Set __this__tablesUsed = new HashSet(other.tablesUsed); + this.tablesUsed = __this__tablesUsed; + } + this.invalidationTime = other.invalidationTime; + } + + public Materialization deepCopy() { + return new Materialization(this); + } + + @Override + public void clear() { + this.materializationTable = null; + this.tablesUsed = null; + setInvalidationTimeIsSet(false); + this.invalidationTime = 0; + } + + public Table getMaterializationTable() { + return this.materializationTable; + } + + public void setMaterializationTable(Table materializationTable) { + this.materializationTable = materializationTable; + } + + public void unsetMaterializationTable() { + this.materializationTable = null; + } + + /** Returns true if field materializationTable is set (has been assigned a value) and false otherwise */ + public boolean isSetMaterializationTable() { + return this.materializationTable != null; + } + + public void setMaterializationTableIsSet(boolean value) { + if (!value) { + this.materializationTable = null; + } + } + + public int getTablesUsedSize() { + return (this.tablesUsed == null) ? 0 : this.tablesUsed.size(); + } + + public java.util.Iterator getTablesUsedIterator() { + return (this.tablesUsed == null) ? null : this.tablesUsed.iterator(); + } + + public void addToTablesUsed(String elem) { + if (this.tablesUsed == null) { + this.tablesUsed = new HashSet(); + } + this.tablesUsed.add(elem); + } + + public Set getTablesUsed() { + return this.tablesUsed; + } + + public void setTablesUsed(Set tablesUsed) { + this.tablesUsed = tablesUsed; + } + + public void unsetTablesUsed() { + this.tablesUsed = null; + } + + /** Returns true if field tablesUsed is set (has been assigned a value) and false otherwise */ + public boolean isSetTablesUsed() { + return this.tablesUsed != null; + } + + public void setTablesUsedIsSet(boolean value) { + if (!value) { + this.tablesUsed = null; + } + } + + public long getInvalidationTime() { + return this.invalidationTime; + } + + public void setInvalidationTime(long invalidationTime) { + this.invalidationTime = invalidationTime; + setInvalidationTimeIsSet(true); + } + + public void unsetInvalidationTime() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __INVALIDATIONTIME_ISSET_ID); + } + + /** Returns true if field invalidationTime is set (has been assigned a value) and false otherwise */ + public boolean isSetInvalidationTime() { + return EncodingUtils.testBit(__isset_bitfield, __INVALIDATIONTIME_ISSET_ID); + } + + public void setInvalidationTimeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __INVALIDATIONTIME_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case MATERIALIZATION_TABLE: + if (value == null) { + unsetMaterializationTable(); + } else { + setMaterializationTable((Table)value); + } + break; + + case TABLES_USED: + if (value == null) { + unsetTablesUsed(); + } else { + setTablesUsed((Set)value); + } + break; + + case INVALIDATION_TIME: + if (value == null) { + unsetInvalidationTime(); + } else { + setInvalidationTime((Long)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case MATERIALIZATION_TABLE: + return getMaterializationTable(); + + case TABLES_USED: + return getTablesUsed(); + + case INVALIDATION_TIME: + return getInvalidationTime(); + + } + 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 MATERIALIZATION_TABLE: + return isSetMaterializationTable(); + case TABLES_USED: + return isSetTablesUsed(); + case INVALIDATION_TIME: + return isSetInvalidationTime(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof Materialization) + return this.equals((Materialization)that); + return false; + } + + public boolean equals(Materialization that) { + if (that == null) + return false; + + boolean this_present_materializationTable = true && this.isSetMaterializationTable(); + boolean that_present_materializationTable = true && that.isSetMaterializationTable(); + if (this_present_materializationTable || that_present_materializationTable) { + if (!(this_present_materializationTable && that_present_materializationTable)) + return false; + if (!this.materializationTable.equals(that.materializationTable)) + return false; + } + + boolean this_present_tablesUsed = true && this.isSetTablesUsed(); + boolean that_present_tablesUsed = true && that.isSetTablesUsed(); + if (this_present_tablesUsed || that_present_tablesUsed) { + if (!(this_present_tablesUsed && that_present_tablesUsed)) + return false; + if (!this.tablesUsed.equals(that.tablesUsed)) + return false; + } + + boolean this_present_invalidationTime = true; + boolean that_present_invalidationTime = true; + if (this_present_invalidationTime || that_present_invalidationTime) { + if (!(this_present_invalidationTime && that_present_invalidationTime)) + return false; + if (this.invalidationTime != that.invalidationTime) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_materializationTable = true && (isSetMaterializationTable()); + list.add(present_materializationTable); + if (present_materializationTable) + list.add(materializationTable); + + boolean present_tablesUsed = true && (isSetTablesUsed()); + list.add(present_tablesUsed); + if (present_tablesUsed) + list.add(tablesUsed); + + boolean present_invalidationTime = true; + list.add(present_invalidationTime); + if (present_invalidationTime) + list.add(invalidationTime); + + return list.hashCode(); + } + + @Override + public int compareTo(Materialization other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetMaterializationTable()).compareTo(other.isSetMaterializationTable()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetMaterializationTable()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.materializationTable, other.materializationTable); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTablesUsed()).compareTo(other.isSetTablesUsed()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTablesUsed()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablesUsed, other.tablesUsed); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetInvalidationTime()).compareTo(other.isSetInvalidationTime()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetInvalidationTime()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invalidationTime, other.invalidationTime); + 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("Materialization("); + boolean first = true; + + sb.append("materializationTable:"); + if (this.materializationTable == null) { + sb.append("null"); + } else { + sb.append(this.materializationTable); + } + first = false; + if (!first) sb.append(", "); + sb.append("tablesUsed:"); + if (this.tablesUsed == null) { + sb.append("null"); + } else { + sb.append(this.tablesUsed); + } + first = false; + if (!first) sb.append(", "); + sb.append("invalidationTime:"); + sb.append(this.invalidationTime); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetMaterializationTable()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'materializationTable' is unset! Struct:" + toString()); + } + + if (!isSetTablesUsed()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tablesUsed' is unset! Struct:" + toString()); + } + + if (!isSetInvalidationTime()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'invalidationTime' is unset! Struct:" + toString()); + } + + // check for sub-struct validity + if (materializationTable != null) { + materializationTable.validate(); + } + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class MaterializationStandardSchemeFactory implements SchemeFactory { + public MaterializationStandardScheme getScheme() { + return new MaterializationStandardScheme(); + } + } + + private static class MaterializationStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, Materialization 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: // MATERIALIZATION_TABLE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.materializationTable = new Table(); + struct.materializationTable.read(iprot); + struct.setMaterializationTableIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TABLES_USED + if (schemeField.type == org.apache.thrift.protocol.TType.SET) { + { + org.apache.thrift.protocol.TSet _set756 = iprot.readSetBegin(); + struct.tablesUsed = new HashSet(2*_set756.size); + String _elem757; + for (int _i758 = 0; _i758 < _set756.size; ++_i758) + { + _elem757 = iprot.readString(); + struct.tablesUsed.add(_elem757); + } + iprot.readSetEnd(); + } + struct.setTablesUsedIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // INVALIDATION_TIME + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.invalidationTime = iprot.readI64(); + struct.setInvalidationTimeIsSet(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, Materialization struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.materializationTable != null) { + oprot.writeFieldBegin(MATERIALIZATION_TABLE_FIELD_DESC); + struct.materializationTable.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.tablesUsed != null) { + oprot.writeFieldBegin(TABLES_USED_FIELD_DESC); + { + oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.tablesUsed.size())); + for (String _iter759 : struct.tablesUsed) + { + oprot.writeString(_iter759); + } + oprot.writeSetEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(INVALIDATION_TIME_FIELD_DESC); + oprot.writeI64(struct.invalidationTime); + oprot.writeFieldEnd(); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class MaterializationTupleSchemeFactory implements SchemeFactory { + public MaterializationTupleScheme getScheme() { + return new MaterializationTupleScheme(); + } + } + + private static class MaterializationTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, Materialization struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + struct.materializationTable.write(oprot); + { + oprot.writeI32(struct.tablesUsed.size()); + for (String _iter760 : struct.tablesUsed) + { + oprot.writeString(_iter760); + } + } + oprot.writeI64(struct.invalidationTime); + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, Materialization struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.materializationTable = new Table(); + struct.materializationTable.read(iprot); + struct.setMaterializationTableIsSet(true); + { + org.apache.thrift.protocol.TSet _set761 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tablesUsed = new HashSet(2*_set761.size); + String _elem762; + for (int _i763 = 0; _i763 < _set761.size; ++_i763) + { + _elem762 = iprot.readString(); + struct.tablesUsed.add(_elem762); + } + } + struct.setTablesUsedIsSet(true); + struct.invalidationTime = iprot.readI64(); + struct.setInvalidationTimeIsSet(true); + } + } + +} + diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotNullConstraintsResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotNullConstraintsResponse.java index 8566d3da49..3257a411f6 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotNullConstraintsResponse.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotNullConstraintsResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, NotNullConstraintsR case 1: // NOT_NULL_CONSTRAINTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list346 = iprot.readListBegin(); - struct.notNullConstraints = new ArrayList(_list346.size); - SQLNotNullConstraint _elem347; - for (int _i348 = 0; _i348 < _list346.size; ++_i348) + org.apache.thrift.protocol.TList _list356 = iprot.readListBegin(); + struct.notNullConstraints = new ArrayList(_list356.size); + SQLNotNullConstraint _elem357; + for (int _i358 = 0; _i358 < _list356.size; ++_i358) { - _elem347 = new SQLNotNullConstraint(); - _elem347.read(iprot); - struct.notNullConstraints.add(_elem347); + _elem357 = new SQLNotNullConstraint(); + _elem357.read(iprot); + struct.notNullConstraints.add(_elem357); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, NotNullConstraints oprot.writeFieldBegin(NOT_NULL_CONSTRAINTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.notNullConstraints.size())); - for (SQLNotNullConstraint _iter349 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter359 : struct.notNullConstraints) { - _iter349.write(oprot); + _iter359.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, NotNullConstraintsR TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.notNullConstraints.size()); - for (SQLNotNullConstraint _iter350 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter360 : struct.notNullConstraints) { - _iter350.write(oprot); + _iter360.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, NotNullConstraintsR public void read(org.apache.thrift.protocol.TProtocol prot, NotNullConstraintsResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list351 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.notNullConstraints = new ArrayList(_list351.size); - SQLNotNullConstraint _elem352; - for (int _i353 = 0; _i353 < _list351.size; ++_i353) + org.apache.thrift.protocol.TList _list361 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.notNullConstraints = new ArrayList(_list361.size); + SQLNotNullConstraint _elem362; + for (int _i363 = 0; _i363 < _list361.size; ++_i363) { - _elem352 = new SQLNotNullConstraint(); - _elem352.read(iprot); - struct.notNullConstraints.add(_elem352); + _elem362 = new SQLNotNullConstraint(); + _elem362.read(iprot); + struct.notNullConstraints.add(_elem362); } } struct.setNotNullConstraintsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java index 54e09d8f7d..eb578449ec 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, NotificationEventRe case 1: // EVENTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list614 = iprot.readListBegin(); - struct.events = new ArrayList(_list614.size); - NotificationEvent _elem615; - for (int _i616 = 0; _i616 < _list614.size; ++_i616) + org.apache.thrift.protocol.TList _list632 = iprot.readListBegin(); + struct.events = new ArrayList(_list632.size); + NotificationEvent _elem633; + for (int _i634 = 0; _i634 < _list632.size; ++_i634) { - _elem615 = new NotificationEvent(); - _elem615.read(iprot); - struct.events.add(_elem615); + _elem633 = new NotificationEvent(); + _elem633.read(iprot); + struct.events.add(_elem633); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, NotificationEventR oprot.writeFieldBegin(EVENTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.events.size())); - for (NotificationEvent _iter617 : struct.events) + for (NotificationEvent _iter635 : struct.events) { - _iter617.write(oprot); + _iter635.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, NotificationEventRe TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.events.size()); - for (NotificationEvent _iter618 : struct.events) + for (NotificationEvent _iter636 : struct.events) { - _iter618.write(oprot); + _iter636.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, NotificationEventRe public void read(org.apache.thrift.protocol.TProtocol prot, NotificationEventResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list619 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.events = new ArrayList(_list619.size); - NotificationEvent _elem620; - for (int _i621 = 0; _i621 < _list619.size; ++_i621) + org.apache.thrift.protocol.TList _list637 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.events = new ArrayList(_list637.size); + NotificationEvent _elem638; + for (int _i639 = 0; _i639 < _list637.size; ++_i639) { - _elem620 = new NotificationEvent(); - _elem620.read(iprot); - struct.events.add(_elem620); + _elem638 = new NotificationEvent(); + _elem638.read(iprot); + struct.events.add(_elem638); } } struct.setEventsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java index ee7ae396f1..d1a1bf8788 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java @@ -351,13 +351,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, OpenTxnsResponse st case 1: // TXN_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list540 = iprot.readListBegin(); - struct.txn_ids = new ArrayList(_list540.size); - long _elem541; - for (int _i542 = 0; _i542 < _list540.size; ++_i542) + org.apache.thrift.protocol.TList _list550 = iprot.readListBegin(); + struct.txn_ids = new ArrayList(_list550.size); + long _elem551; + for (int _i552 = 0; _i552 < _list550.size; ++_i552) { - _elem541 = iprot.readI64(); - struct.txn_ids.add(_elem541); + _elem551 = iprot.readI64(); + struct.txn_ids.add(_elem551); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, OpenTxnsResponse s oprot.writeFieldBegin(TXN_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.txn_ids.size())); - for (long _iter543 : struct.txn_ids) + for (long _iter553 : struct.txn_ids) { - oprot.writeI64(_iter543); + oprot.writeI64(_iter553); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, OpenTxnsResponse st TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.txn_ids.size()); - for (long _iter544 : struct.txn_ids) + for (long _iter554 : struct.txn_ids) { - oprot.writeI64(_iter544); + oprot.writeI64(_iter554); } } } @@ -421,13 +421,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, OpenTxnsResponse st public void read(org.apache.thrift.protocol.TProtocol prot, OpenTxnsResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list545 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.txn_ids = new ArrayList(_list545.size); - long _elem546; - for (int _i547 = 0; _i547 < _list545.size; ++_i547) + org.apache.thrift.protocol.TList _list555 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txn_ids = new ArrayList(_list555.size); + long _elem556; + for (int _i557 = 0; _i557 < _list555.size; ++_i557) { - _elem546 = iprot.readI64(); - struct.txn_ids.add(_elem546); + _elem556 = iprot.readI64(); + struct.txn_ids.add(_elem556); } } struct.setTxn_idsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java index 3a13753647..7ec61722e9 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java @@ -931,13 +931,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Partition struct) t case 1: // VALUES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list208 = iprot.readListBegin(); - struct.values = new ArrayList(_list208.size); - String _elem209; - for (int _i210 = 0; _i210 < _list208.size; ++_i210) + org.apache.thrift.protocol.TList _list218 = iprot.readListBegin(); + struct.values = new ArrayList(_list218.size); + String _elem219; + for (int _i220 = 0; _i220 < _list218.size; ++_i220) { - _elem209 = iprot.readString(); - struct.values.add(_elem209); + _elem219 = iprot.readString(); + struct.values.add(_elem219); } iprot.readListEnd(); } @@ -990,15 +990,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Partition struct) t case 7: // PARAMETERS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map211 = iprot.readMapBegin(); - struct.parameters = new HashMap(2*_map211.size); - String _key212; - String _val213; - for (int _i214 = 0; _i214 < _map211.size; ++_i214) + org.apache.thrift.protocol.TMap _map221 = iprot.readMapBegin(); + struct.parameters = new HashMap(2*_map221.size); + String _key222; + String _val223; + for (int _i224 = 0; _i224 < _map221.size; ++_i224) { - _key212 = iprot.readString(); - _val213 = iprot.readString(); - struct.parameters.put(_key212, _val213); + _key222 = iprot.readString(); + _val223 = iprot.readString(); + struct.parameters.put(_key222, _val223); } iprot.readMapEnd(); } @@ -1033,9 +1033,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Partition struct) oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.values.size())); - for (String _iter215 : struct.values) + for (String _iter225 : struct.values) { - oprot.writeString(_iter215); + oprot.writeString(_iter225); } oprot.writeListEnd(); } @@ -1066,10 +1066,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Partition struct) oprot.writeFieldBegin(PARAMETERS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.parameters.size())); - for (Map.Entry _iter216 : struct.parameters.entrySet()) + for (Map.Entry _iter226 : struct.parameters.entrySet()) { - oprot.writeString(_iter216.getKey()); - oprot.writeString(_iter216.getValue()); + oprot.writeString(_iter226.getKey()); + oprot.writeString(_iter226.getValue()); } oprot.writeMapEnd(); } @@ -1128,9 +1128,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Partition struct) t if (struct.isSetValues()) { { oprot.writeI32(struct.values.size()); - for (String _iter217 : struct.values) + for (String _iter227 : struct.values) { - oprot.writeString(_iter217); + oprot.writeString(_iter227); } } } @@ -1152,10 +1152,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Partition struct) t if (struct.isSetParameters()) { { oprot.writeI32(struct.parameters.size()); - for (Map.Entry _iter218 : struct.parameters.entrySet()) + for (Map.Entry _iter228 : struct.parameters.entrySet()) { - oprot.writeString(_iter218.getKey()); - oprot.writeString(_iter218.getValue()); + oprot.writeString(_iter228.getKey()); + oprot.writeString(_iter228.getValue()); } } } @@ -1170,13 +1170,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Partition struct) th BitSet incoming = iprot.readBitSet(8); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list219 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.values = new ArrayList(_list219.size); - String _elem220; - for (int _i221 = 0; _i221 < _list219.size; ++_i221) + org.apache.thrift.protocol.TList _list229 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.values = new ArrayList(_list229.size); + String _elem230; + for (int _i231 = 0; _i231 < _list229.size; ++_i231) { - _elem220 = iprot.readString(); - struct.values.add(_elem220); + _elem230 = iprot.readString(); + struct.values.add(_elem230); } } struct.setValuesIsSet(true); @@ -1204,15 +1204,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Partition struct) th } if (incoming.get(6)) { { - org.apache.thrift.protocol.TMap _map222 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.parameters = new HashMap(2*_map222.size); - String _key223; - String _val224; - for (int _i225 = 0; _i225 < _map222.size; ++_i225) + org.apache.thrift.protocol.TMap _map232 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.parameters = new HashMap(2*_map232.size); + String _key233; + String _val234; + for (int _i235 = 0; _i235 < _map232.size; ++_i235) { - _key223 = iprot.readString(); - _val224 = iprot.readString(); - struct.parameters.put(_key223, _val224); + _key233 = iprot.readString(); + _val234 = iprot.readString(); + struct.parameters.put(_key233, _val234); } } struct.parameters = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(struct.parameters); struct.setParametersIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionListComposingSpec.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionListComposingSpec.java index 186eb23a4e..17b6c44cf2 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionListComposingSpec.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionListComposingSpec.java @@ -350,14 +350,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionListCompos case 1: // PARTITIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list252 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list252.size); - Partition _elem253; - for (int _i254 = 0; _i254 < _list252.size; ++_i254) + org.apache.thrift.protocol.TList _list262 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list262.size); + Partition _elem263; + for (int _i264 = 0; _i264 < _list262.size; ++_i264) { - _elem253 = new Partition(); - _elem253.read(iprot); - struct.partitions.add(_elem253); + _elem263 = new Partition(); + _elem263.read(iprot); + struct.partitions.add(_elem263); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionListCompo oprot.writeFieldBegin(PARTITIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size())); - for (Partition _iter255 : struct.partitions) + for (Partition _iter265 : struct.partitions) { - _iter255.write(oprot); + _iter265.write(oprot); } oprot.writeListEnd(); } @@ -416,9 +416,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionListCompos if (struct.isSetPartitions()) { { oprot.writeI32(struct.partitions.size()); - for (Partition _iter256 : struct.partitions) + for (Partition _iter266 : struct.partitions) { - _iter256.write(oprot); + _iter266.write(oprot); } } } @@ -430,14 +430,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionListComposi BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list257 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list257.size); - Partition _elem258; - for (int _i259 = 0; _i259 < _list257.size; ++_i259) + org.apache.thrift.protocol.TList _list267 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list267.size); + Partition _elem268; + for (int _i269 = 0; _i269 < _list267.size; ++_i269) { - _elem258 = new Partition(); - _elem258.read(iprot); - struct.partitions.add(_elem258); + _elem268 = new Partition(); + _elem268.read(iprot); + struct.partitions.add(_elem268); } } struct.setPartitionsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpecWithSharedSD.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpecWithSharedSD.java index e7ab52afa2..71bd08b48a 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpecWithSharedSD.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpecWithSharedSD.java @@ -434,14 +434,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionSpecWithSh case 1: // PARTITIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list244 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list244.size); - PartitionWithoutSD _elem245; - for (int _i246 = 0; _i246 < _list244.size; ++_i246) + org.apache.thrift.protocol.TList _list254 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list254.size); + PartitionWithoutSD _elem255; + for (int _i256 = 0; _i256 < _list254.size; ++_i256) { - _elem245 = new PartitionWithoutSD(); - _elem245.read(iprot); - struct.partitions.add(_elem245); + _elem255 = new PartitionWithoutSD(); + _elem255.read(iprot); + struct.partitions.add(_elem255); } iprot.readListEnd(); } @@ -476,9 +476,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionSpecWithS oprot.writeFieldBegin(PARTITIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size())); - for (PartitionWithoutSD _iter247 : struct.partitions) + for (PartitionWithoutSD _iter257 : struct.partitions) { - _iter247.write(oprot); + _iter257.write(oprot); } oprot.writeListEnd(); } @@ -517,9 +517,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionSpecWithSh if (struct.isSetPartitions()) { { oprot.writeI32(struct.partitions.size()); - for (PartitionWithoutSD _iter248 : struct.partitions) + for (PartitionWithoutSD _iter258 : struct.partitions) { - _iter248.write(oprot); + _iter258.write(oprot); } } } @@ -534,14 +534,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionSpecWithSha BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list249 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list249.size); - PartitionWithoutSD _elem250; - for (int _i251 = 0; _i251 < _list249.size; ++_i251) + org.apache.thrift.protocol.TList _list259 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list259.size); + PartitionWithoutSD _elem260; + for (int _i261 = 0; _i261 < _list259.size; ++_i261) { - _elem250 = new PartitionWithoutSD(); - _elem250.read(iprot); - struct.partitions.add(_elem250); + _elem260 = new PartitionWithoutSD(); + _elem260.read(iprot); + struct.partitions.add(_elem260); } } struct.setPartitionsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRequest.java index 2283c24e0c..9db256d9bb 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRequest.java @@ -961,14 +961,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionValuesRequ case 3: // PARTITION_KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list484 = iprot.readListBegin(); - struct.partitionKeys = new ArrayList(_list484.size); - FieldSchema _elem485; - for (int _i486 = 0; _i486 < _list484.size; ++_i486) + org.apache.thrift.protocol.TList _list494 = iprot.readListBegin(); + struct.partitionKeys = new ArrayList(_list494.size); + FieldSchema _elem495; + for (int _i496 = 0; _i496 < _list494.size; ++_i496) { - _elem485 = new FieldSchema(); - _elem485.read(iprot); - struct.partitionKeys.add(_elem485); + _elem495 = new FieldSchema(); + _elem495.read(iprot); + struct.partitionKeys.add(_elem495); } iprot.readListEnd(); } @@ -996,14 +996,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionValuesRequ case 6: // PARTITION_ORDER if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list487 = iprot.readListBegin(); - struct.partitionOrder = new ArrayList(_list487.size); - FieldSchema _elem488; - for (int _i489 = 0; _i489 < _list487.size; ++_i489) + org.apache.thrift.protocol.TList _list497 = iprot.readListBegin(); + struct.partitionOrder = new ArrayList(_list497.size); + FieldSchema _elem498; + for (int _i499 = 0; _i499 < _list497.size; ++_i499) { - _elem488 = new FieldSchema(); - _elem488.read(iprot); - struct.partitionOrder.add(_elem488); + _elem498 = new FieldSchema(); + _elem498.read(iprot); + struct.partitionOrder.add(_elem498); } iprot.readListEnd(); } @@ -1055,9 +1055,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionValuesReq oprot.writeFieldBegin(PARTITION_KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitionKeys.size())); - for (FieldSchema _iter490 : struct.partitionKeys) + for (FieldSchema _iter500 : struct.partitionKeys) { - _iter490.write(oprot); + _iter500.write(oprot); } oprot.writeListEnd(); } @@ -1080,9 +1080,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionValuesReq oprot.writeFieldBegin(PARTITION_ORDER_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitionOrder.size())); - for (FieldSchema _iter491 : struct.partitionOrder) + for (FieldSchema _iter501 : struct.partitionOrder) { - _iter491.write(oprot); + _iter501.write(oprot); } oprot.writeListEnd(); } @@ -1120,9 +1120,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionValuesRequ oprot.writeString(struct.tblName); { oprot.writeI32(struct.partitionKeys.size()); - for (FieldSchema _iter492 : struct.partitionKeys) + for (FieldSchema _iter502 : struct.partitionKeys) { - _iter492.write(oprot); + _iter502.write(oprot); } } BitSet optionals = new BitSet(); @@ -1151,9 +1151,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionValuesRequ if (struct.isSetPartitionOrder()) { { oprot.writeI32(struct.partitionOrder.size()); - for (FieldSchema _iter493 : struct.partitionOrder) + for (FieldSchema _iter503 : struct.partitionOrder) { - _iter493.write(oprot); + _iter503.write(oprot); } } } @@ -1173,14 +1173,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionValuesReque struct.tblName = iprot.readString(); struct.setTblNameIsSet(true); { - org.apache.thrift.protocol.TList _list494 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitionKeys = new ArrayList(_list494.size); - FieldSchema _elem495; - for (int _i496 = 0; _i496 < _list494.size; ++_i496) + org.apache.thrift.protocol.TList _list504 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitionKeys = new ArrayList(_list504.size); + FieldSchema _elem505; + for (int _i506 = 0; _i506 < _list504.size; ++_i506) { - _elem495 = new FieldSchema(); - _elem495.read(iprot); - struct.partitionKeys.add(_elem495); + _elem505 = new FieldSchema(); + _elem505.read(iprot); + struct.partitionKeys.add(_elem505); } } struct.setPartitionKeysIsSet(true); @@ -1195,14 +1195,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionValuesReque } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list497 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitionOrder = new ArrayList(_list497.size); - FieldSchema _elem498; - for (int _i499 = 0; _i499 < _list497.size; ++_i499) + org.apache.thrift.protocol.TList _list507 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitionOrder = new ArrayList(_list507.size); + FieldSchema _elem508; + for (int _i509 = 0; _i509 < _list507.size; ++_i509) { - _elem498 = new FieldSchema(); - _elem498.read(iprot); - struct.partitionOrder.add(_elem498); + _elem508 = new FieldSchema(); + _elem508.read(iprot); + struct.partitionOrder.add(_elem508); } } struct.setPartitionOrderIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesResponse.java index f551156768..278118045a 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesResponse.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionValuesResp case 1: // PARTITION_VALUES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list508 = iprot.readListBegin(); - struct.partitionValues = new ArrayList(_list508.size); - PartitionValuesRow _elem509; - for (int _i510 = 0; _i510 < _list508.size; ++_i510) + org.apache.thrift.protocol.TList _list518 = iprot.readListBegin(); + struct.partitionValues = new ArrayList(_list518.size); + PartitionValuesRow _elem519; + for (int _i520 = 0; _i520 < _list518.size; ++_i520) { - _elem509 = new PartitionValuesRow(); - _elem509.read(iprot); - struct.partitionValues.add(_elem509); + _elem519 = new PartitionValuesRow(); + _elem519.read(iprot); + struct.partitionValues.add(_elem519); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionValuesRes oprot.writeFieldBegin(PARTITION_VALUES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitionValues.size())); - for (PartitionValuesRow _iter511 : struct.partitionValues) + for (PartitionValuesRow _iter521 : struct.partitionValues) { - _iter511.write(oprot); + _iter521.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionValuesResp TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.partitionValues.size()); - for (PartitionValuesRow _iter512 : struct.partitionValues) + for (PartitionValuesRow _iter522 : struct.partitionValues) { - _iter512.write(oprot); + _iter522.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionValuesResp public void read(org.apache.thrift.protocol.TProtocol prot, PartitionValuesResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list513 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitionValues = new ArrayList(_list513.size); - PartitionValuesRow _elem514; - for (int _i515 = 0; _i515 < _list513.size; ++_i515) + org.apache.thrift.protocol.TList _list523 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitionValues = new ArrayList(_list523.size); + PartitionValuesRow _elem524; + for (int _i525 = 0; _i525 < _list523.size; ++_i525) { - _elem514 = new PartitionValuesRow(); - _elem514.read(iprot); - struct.partitionValues.add(_elem514); + _elem524 = new PartitionValuesRow(); + _elem524.read(iprot); + struct.partitionValues.add(_elem524); } } struct.setPartitionValuesIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRow.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRow.java index 3f3c3b9e4d..595f35044b 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRow.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRow.java @@ -351,13 +351,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionValuesRow case 1: // ROW if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list500 = iprot.readListBegin(); - struct.row = new ArrayList(_list500.size); - String _elem501; - for (int _i502 = 0; _i502 < _list500.size; ++_i502) + org.apache.thrift.protocol.TList _list510 = iprot.readListBegin(); + struct.row = new ArrayList(_list510.size); + String _elem511; + for (int _i512 = 0; _i512 < _list510.size; ++_i512) { - _elem501 = iprot.readString(); - struct.row.add(_elem501); + _elem511 = iprot.readString(); + struct.row.add(_elem511); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionValuesRow oprot.writeFieldBegin(ROW_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.row.size())); - for (String _iter503 : struct.row) + for (String _iter513 : struct.row) { - oprot.writeString(_iter503); + oprot.writeString(_iter513); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionValuesRow TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.row.size()); - for (String _iter504 : struct.row) + for (String _iter514 : struct.row) { - oprot.writeString(_iter504); + oprot.writeString(_iter514); } } } @@ -421,13 +421,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionValuesRow public void read(org.apache.thrift.protocol.TProtocol prot, PartitionValuesRow struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list505 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.row = new ArrayList(_list505.size); - String _elem506; - for (int _i507 = 0; _i507 < _list505.size; ++_i507) + org.apache.thrift.protocol.TList _list515 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.row = new ArrayList(_list515.size); + String _elem516; + for (int _i517 = 0; _i517 < _list515.size; ++_i517) { - _elem506 = iprot.readString(); - struct.row.add(_elem506); + _elem516 = iprot.readString(); + struct.row.add(_elem516); } } struct.setRowIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionWithoutSD.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionWithoutSD.java index ba8a7ca616..1f5d31491f 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionWithoutSD.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionWithoutSD.java @@ -766,13 +766,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionWithoutSD case 1: // VALUES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list226 = iprot.readListBegin(); - struct.values = new ArrayList(_list226.size); - String _elem227; - for (int _i228 = 0; _i228 < _list226.size; ++_i228) + org.apache.thrift.protocol.TList _list236 = iprot.readListBegin(); + struct.values = new ArrayList(_list236.size); + String _elem237; + for (int _i238 = 0; _i238 < _list236.size; ++_i238) { - _elem227 = iprot.readString(); - struct.values.add(_elem227); + _elem237 = iprot.readString(); + struct.values.add(_elem237); } iprot.readListEnd(); } @@ -808,15 +808,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionWithoutSD case 5: // PARAMETERS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map229 = iprot.readMapBegin(); - struct.parameters = new HashMap(2*_map229.size); - String _key230; - String _val231; - for (int _i232 = 0; _i232 < _map229.size; ++_i232) + org.apache.thrift.protocol.TMap _map239 = iprot.readMapBegin(); + struct.parameters = new HashMap(2*_map239.size); + String _key240; + String _val241; + for (int _i242 = 0; _i242 < _map239.size; ++_i242) { - _key230 = iprot.readString(); - _val231 = iprot.readString(); - struct.parameters.put(_key230, _val231); + _key240 = iprot.readString(); + _val241 = iprot.readString(); + struct.parameters.put(_key240, _val241); } iprot.readMapEnd(); } @@ -851,9 +851,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionWithoutSD oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.values.size())); - for (String _iter233 : struct.values) + for (String _iter243 : struct.values) { - oprot.writeString(_iter233); + oprot.writeString(_iter243); } oprot.writeListEnd(); } @@ -874,10 +874,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionWithoutSD oprot.writeFieldBegin(PARAMETERS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.parameters.size())); - for (Map.Entry _iter234 : struct.parameters.entrySet()) + for (Map.Entry _iter244 : struct.parameters.entrySet()) { - oprot.writeString(_iter234.getKey()); - oprot.writeString(_iter234.getValue()); + oprot.writeString(_iter244.getKey()); + oprot.writeString(_iter244.getValue()); } oprot.writeMapEnd(); } @@ -930,9 +930,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionWithoutSD if (struct.isSetValues()) { { oprot.writeI32(struct.values.size()); - for (String _iter235 : struct.values) + for (String _iter245 : struct.values) { - oprot.writeString(_iter235); + oprot.writeString(_iter245); } } } @@ -948,10 +948,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionWithoutSD if (struct.isSetParameters()) { { oprot.writeI32(struct.parameters.size()); - for (Map.Entry _iter236 : struct.parameters.entrySet()) + for (Map.Entry _iter246 : struct.parameters.entrySet()) { - oprot.writeString(_iter236.getKey()); - oprot.writeString(_iter236.getValue()); + oprot.writeString(_iter246.getKey()); + oprot.writeString(_iter246.getValue()); } } } @@ -966,13 +966,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionWithoutSD s BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list237 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.values = new ArrayList(_list237.size); - String _elem238; - for (int _i239 = 0; _i239 < _list237.size; ++_i239) + org.apache.thrift.protocol.TList _list247 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.values = new ArrayList(_list247.size); + String _elem248; + for (int _i249 = 0; _i249 < _list247.size; ++_i249) { - _elem238 = iprot.readString(); - struct.values.add(_elem238); + _elem248 = iprot.readString(); + struct.values.add(_elem248); } } struct.setValuesIsSet(true); @@ -991,15 +991,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionWithoutSD s } if (incoming.get(4)) { { - org.apache.thrift.protocol.TMap _map240 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.parameters = new HashMap(2*_map240.size); - String _key241; - String _val242; - for (int _i243 = 0; _i243 < _map240.size; ++_i243) + org.apache.thrift.protocol.TMap _map250 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.parameters = new HashMap(2*_map250.size); + String _key251; + String _val252; + for (int _i253 = 0; _i253 < _map250.size; ++_i253) { - _key241 = iprot.readString(); - _val242 = iprot.readString(); - struct.parameters.put(_key241, _val242); + _key251 = iprot.readString(); + _val252 = iprot.readString(); + struct.parameters.put(_key251, _val252); } } struct.setParametersIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java index 3ccf5ee5cb..9be6b48d27 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java @@ -439,14 +439,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionsByExprRes case 1: // PARTITIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list386 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list386.size); - Partition _elem387; - for (int _i388 = 0; _i388 < _list386.size; ++_i388) + org.apache.thrift.protocol.TList _list396 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list396.size); + Partition _elem397; + for (int _i398 = 0; _i398 < _list396.size; ++_i398) { - _elem387 = new Partition(); - _elem387.read(iprot); - struct.partitions.add(_elem387); + _elem397 = new Partition(); + _elem397.read(iprot); + struct.partitions.add(_elem397); } iprot.readListEnd(); } @@ -480,9 +480,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionsByExprRe oprot.writeFieldBegin(PARTITIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size())); - for (Partition _iter389 : struct.partitions) + for (Partition _iter399 : struct.partitions) { - _iter389.write(oprot); + _iter399.write(oprot); } oprot.writeListEnd(); } @@ -510,9 +510,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionsByExprRes TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.partitions.size()); - for (Partition _iter390 : struct.partitions) + for (Partition _iter400 : struct.partitions) { - _iter390.write(oprot); + _iter400.write(oprot); } } oprot.writeBool(struct.hasUnknownPartitions); @@ -522,14 +522,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionsByExprRes public void read(org.apache.thrift.protocol.TProtocol prot, PartitionsByExprResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list391 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list391.size); - Partition _elem392; - for (int _i393 = 0; _i393 < _list391.size; ++_i393) + org.apache.thrift.protocol.TList _list401 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list401.size); + Partition _elem402; + for (int _i403 = 0; _i403 < _list401.size; ++_i403) { - _elem392 = new Partition(); - _elem392.read(iprot); - struct.partitions.add(_elem392); + _elem402 = new Partition(); + _elem402.read(iprot); + struct.partitions.add(_elem402); } } struct.setPartitionsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java index 9941fa5603..80910f8157 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java @@ -639,13 +639,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionsStatsRequ case 3: // COL_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list428 = iprot.readListBegin(); - struct.colNames = new ArrayList(_list428.size); - String _elem429; - for (int _i430 = 0; _i430 < _list428.size; ++_i430) + org.apache.thrift.protocol.TList _list438 = iprot.readListBegin(); + struct.colNames = new ArrayList(_list438.size); + String _elem439; + for (int _i440 = 0; _i440 < _list438.size; ++_i440) { - _elem429 = iprot.readString(); - struct.colNames.add(_elem429); + _elem439 = iprot.readString(); + struct.colNames.add(_elem439); } iprot.readListEnd(); } @@ -657,13 +657,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionsStatsRequ case 4: // PART_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list431 = iprot.readListBegin(); - struct.partNames = new ArrayList(_list431.size); - String _elem432; - for (int _i433 = 0; _i433 < _list431.size; ++_i433) + org.apache.thrift.protocol.TList _list441 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list441.size); + String _elem442; + for (int _i443 = 0; _i443 < _list441.size; ++_i443) { - _elem432 = iprot.readString(); - struct.partNames.add(_elem432); + _elem442 = iprot.readString(); + struct.partNames.add(_elem442); } iprot.readListEnd(); } @@ -699,9 +699,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionsStatsReq oprot.writeFieldBegin(COL_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.colNames.size())); - for (String _iter434 : struct.colNames) + for (String _iter444 : struct.colNames) { - oprot.writeString(_iter434); + oprot.writeString(_iter444); } oprot.writeListEnd(); } @@ -711,9 +711,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionsStatsReq 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 _iter435 : struct.partNames) + for (String _iter445 : struct.partNames) { - oprot.writeString(_iter435); + oprot.writeString(_iter445); } oprot.writeListEnd(); } @@ -740,16 +740,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsRequ oprot.writeString(struct.tblName); { oprot.writeI32(struct.colNames.size()); - for (String _iter436 : struct.colNames) + for (String _iter446 : struct.colNames) { - oprot.writeString(_iter436); + oprot.writeString(_iter446); } } { oprot.writeI32(struct.partNames.size()); - for (String _iter437 : struct.partNames) + for (String _iter447 : struct.partNames) { - oprot.writeString(_iter437); + oprot.writeString(_iter447); } } } @@ -762,24 +762,24 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsReque struct.tblName = iprot.readString(); struct.setTblNameIsSet(true); { - org.apache.thrift.protocol.TList _list438 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.colNames = new ArrayList(_list438.size); - String _elem439; - for (int _i440 = 0; _i440 < _list438.size; ++_i440) + org.apache.thrift.protocol.TList _list448 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.colNames = new ArrayList(_list448.size); + String _elem449; + for (int _i450 = 0; _i450 < _list448.size; ++_i450) { - _elem439 = iprot.readString(); - struct.colNames.add(_elem439); + _elem449 = iprot.readString(); + struct.colNames.add(_elem449); } } struct.setColNamesIsSet(true); { - org.apache.thrift.protocol.TList _list441 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partNames = new ArrayList(_list441.size); - String _elem442; - for (int _i443 = 0; _i443 < _list441.size; ++_i443) + org.apache.thrift.protocol.TList _list451 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partNames = new ArrayList(_list451.size); + String _elem452; + for (int _i453 = 0; _i453 < _list451.size; ++_i453) { - _elem442 = iprot.readString(); - struct.partNames.add(_elem442); + _elem452 = iprot.readString(); + struct.partNames.add(_elem452); } } struct.setPartNamesIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java index 8a0e5a5e79..41408eb244 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java @@ -363,26 +363,26 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionsStatsResu case 1: // PART_STATS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map402 = iprot.readMapBegin(); - struct.partStats = new HashMap>(2*_map402.size); - String _key403; - List _val404; - for (int _i405 = 0; _i405 < _map402.size; ++_i405) + org.apache.thrift.protocol.TMap _map412 = iprot.readMapBegin(); + struct.partStats = new HashMap>(2*_map412.size); + String _key413; + List _val414; + for (int _i415 = 0; _i415 < _map412.size; ++_i415) { - _key403 = iprot.readString(); + _key413 = iprot.readString(); { - org.apache.thrift.protocol.TList _list406 = iprot.readListBegin(); - _val404 = new ArrayList(_list406.size); - ColumnStatisticsObj _elem407; - for (int _i408 = 0; _i408 < _list406.size; ++_i408) + org.apache.thrift.protocol.TList _list416 = iprot.readListBegin(); + _val414 = new ArrayList(_list416.size); + ColumnStatisticsObj _elem417; + for (int _i418 = 0; _i418 < _list416.size; ++_i418) { - _elem407 = new ColumnStatisticsObj(); - _elem407.read(iprot); - _val404.add(_elem407); + _elem417 = new ColumnStatisticsObj(); + _elem417.read(iprot); + _val414.add(_elem417); } iprot.readListEnd(); } - struct.partStats.put(_key403, _val404); + struct.partStats.put(_key413, _val414); } iprot.readMapEnd(); } @@ -408,14 +408,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionsStatsRes oprot.writeFieldBegin(PART_STATS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, struct.partStats.size())); - for (Map.Entry> _iter409 : struct.partStats.entrySet()) + for (Map.Entry> _iter419 : struct.partStats.entrySet()) { - oprot.writeString(_iter409.getKey()); + oprot.writeString(_iter419.getKey()); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter409.getValue().size())); - for (ColumnStatisticsObj _iter410 : _iter409.getValue()) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter419.getValue().size())); + for (ColumnStatisticsObj _iter420 : _iter419.getValue()) { - _iter410.write(oprot); + _iter420.write(oprot); } oprot.writeListEnd(); } @@ -443,14 +443,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsResu TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.partStats.size()); - for (Map.Entry> _iter411 : struct.partStats.entrySet()) + for (Map.Entry> _iter421 : struct.partStats.entrySet()) { - oprot.writeString(_iter411.getKey()); + oprot.writeString(_iter421.getKey()); { - oprot.writeI32(_iter411.getValue().size()); - for (ColumnStatisticsObj _iter412 : _iter411.getValue()) + oprot.writeI32(_iter421.getValue().size()); + for (ColumnStatisticsObj _iter422 : _iter421.getValue()) { - _iter412.write(oprot); + _iter422.write(oprot); } } } @@ -461,25 +461,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsResu public void read(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TMap _map413 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, iprot.readI32()); - struct.partStats = new HashMap>(2*_map413.size); - String _key414; - List _val415; - for (int _i416 = 0; _i416 < _map413.size; ++_i416) + org.apache.thrift.protocol.TMap _map423 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, iprot.readI32()); + struct.partStats = new HashMap>(2*_map423.size); + String _key424; + List _val425; + for (int _i426 = 0; _i426 < _map423.size; ++_i426) { - _key414 = iprot.readString(); + _key424 = iprot.readString(); { - org.apache.thrift.protocol.TList _list417 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - _val415 = new ArrayList(_list417.size); - ColumnStatisticsObj _elem418; - for (int _i419 = 0; _i419 < _list417.size; ++_i419) + org.apache.thrift.protocol.TList _list427 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + _val425 = new ArrayList(_list427.size); + ColumnStatisticsObj _elem428; + for (int _i429 = 0; _i429 < _list427.size; ++_i429) { - _elem418 = new ColumnStatisticsObj(); - _elem418.read(iprot); - _val415.add(_elem418); + _elem428 = new ColumnStatisticsObj(); + _elem428.read(iprot); + _val425.add(_elem428); } } - struct.partStats.put(_key414, _val415); + struct.partStats.put(_key424, _val425); } } struct.setPartStatsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrimaryKeysResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrimaryKeysResponse.java index 43f070c126..8005270e71 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrimaryKeysResponse.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrimaryKeysResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PrimaryKeysResponse case 1: // PRIMARY_KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list322 = iprot.readListBegin(); - struct.primaryKeys = new ArrayList(_list322.size); - SQLPrimaryKey _elem323; - for (int _i324 = 0; _i324 < _list322.size; ++_i324) + org.apache.thrift.protocol.TList _list332 = iprot.readListBegin(); + struct.primaryKeys = new ArrayList(_list332.size); + SQLPrimaryKey _elem333; + for (int _i334 = 0; _i334 < _list332.size; ++_i334) { - _elem323 = new SQLPrimaryKey(); - _elem323.read(iprot); - struct.primaryKeys.add(_elem323); + _elem333 = new SQLPrimaryKey(); + _elem333.read(iprot); + struct.primaryKeys.add(_elem333); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PrimaryKeysRespons 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 _iter325 : struct.primaryKeys) + for (SQLPrimaryKey _iter335 : struct.primaryKeys) { - _iter325.write(oprot); + _iter335.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PrimaryKeysResponse TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.primaryKeys.size()); - for (SQLPrimaryKey _iter326 : struct.primaryKeys) + for (SQLPrimaryKey _iter336 : struct.primaryKeys) { - _iter326.write(oprot); + _iter336.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PrimaryKeysResponse public void read(org.apache.thrift.protocol.TProtocol prot, PrimaryKeysResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list327 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.primaryKeys = new ArrayList(_list327.size); - SQLPrimaryKey _elem328; - for (int _i329 = 0; _i329 < _list327.size; ++_i329) + org.apache.thrift.protocol.TList _list337 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.primaryKeys = new ArrayList(_list337.size); + SQLPrimaryKey _elem338; + for (int _i339 = 0; _i339 < _list337.size; ++_i339) { - _elem328 = new SQLPrimaryKey(); - _elem328.read(iprot); - struct.primaryKeys.add(_elem328); + _elem338 = new SQLPrimaryKey(); + _elem338.read(iprot); + struct.primaryKeys.add(_elem338); } } struct.setPrimaryKeysIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java index 42b1a1fe5a..5896fd9476 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java @@ -547,13 +547,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PutFileMetadataRequ case 1: // FILE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list682 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list682.size); - long _elem683; - for (int _i684 = 0; _i684 < _list682.size; ++_i684) + org.apache.thrift.protocol.TList _list700 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list700.size); + long _elem701; + for (int _i702 = 0; _i702 < _list700.size; ++_i702) { - _elem683 = iprot.readI64(); - struct.fileIds.add(_elem683); + _elem701 = iprot.readI64(); + struct.fileIds.add(_elem701); } iprot.readListEnd(); } @@ -565,13 +565,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PutFileMetadataRequ case 2: // METADATA if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list685 = iprot.readListBegin(); - struct.metadata = new ArrayList(_list685.size); - ByteBuffer _elem686; - for (int _i687 = 0; _i687 < _list685.size; ++_i687) + org.apache.thrift.protocol.TList _list703 = iprot.readListBegin(); + struct.metadata = new ArrayList(_list703.size); + ByteBuffer _elem704; + for (int _i705 = 0; _i705 < _list703.size; ++_i705) { - _elem686 = iprot.readBinary(); - struct.metadata.add(_elem686); + _elem704 = iprot.readBinary(); + struct.metadata.add(_elem704); } iprot.readListEnd(); } @@ -605,9 +605,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PutFileMetadataReq oprot.writeFieldBegin(FILE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.fileIds.size())); - for (long _iter688 : struct.fileIds) + for (long _iter706 : struct.fileIds) { - oprot.writeI64(_iter688); + oprot.writeI64(_iter706); } oprot.writeListEnd(); } @@ -617,9 +617,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PutFileMetadataReq oprot.writeFieldBegin(METADATA_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.metadata.size())); - for (ByteBuffer _iter689 : struct.metadata) + for (ByteBuffer _iter707 : struct.metadata) { - oprot.writeBinary(_iter689); + oprot.writeBinary(_iter707); } oprot.writeListEnd(); } @@ -651,16 +651,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PutFileMetadataRequ TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.fileIds.size()); - for (long _iter690 : struct.fileIds) + for (long _iter708 : struct.fileIds) { - oprot.writeI64(_iter690); + oprot.writeI64(_iter708); } } { oprot.writeI32(struct.metadata.size()); - for (ByteBuffer _iter691 : struct.metadata) + for (ByteBuffer _iter709 : struct.metadata) { - oprot.writeBinary(_iter691); + oprot.writeBinary(_iter709); } } BitSet optionals = new BitSet(); @@ -677,24 +677,24 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PutFileMetadataRequ public void read(org.apache.thrift.protocol.TProtocol prot, PutFileMetadataRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list692 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list692.size); - long _elem693; - for (int _i694 = 0; _i694 < _list692.size; ++_i694) + org.apache.thrift.protocol.TList _list710 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list710.size); + long _elem711; + for (int _i712 = 0; _i712 < _list710.size; ++_i712) { - _elem693 = iprot.readI64(); - struct.fileIds.add(_elem693); + _elem711 = iprot.readI64(); + struct.fileIds.add(_elem711); } } struct.setFileIdsIsSet(true); { - org.apache.thrift.protocol.TList _list695 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.metadata = new ArrayList(_list695.size); - ByteBuffer _elem696; - for (int _i697 = 0; _i697 < _list695.size; ++_i697) + org.apache.thrift.protocol.TList _list713 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.metadata = new ArrayList(_list713.size); + ByteBuffer _elem714; + for (int _i715 = 0; _i715 < _list713.size; ++_i715) { - _elem696 = iprot.readBinary(); - struct.metadata.add(_elem696); + _elem714 = iprot.readBinary(); + struct.metadata.add(_elem714); } } struct.setMetadataIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java index d1b52476e4..f9c237091f 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java @@ -168,13 +168,13 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip if (field.type == NAMES_FIELD_DESC.type) { List names; { - org.apache.thrift.protocol.TList _list468 = iprot.readListBegin(); - names = new ArrayList(_list468.size); - String _elem469; - for (int _i470 = 0; _i470 < _list468.size; ++_i470) + org.apache.thrift.protocol.TList _list478 = iprot.readListBegin(); + names = new ArrayList(_list478.size); + String _elem479; + for (int _i480 = 0; _i480 < _list478.size; ++_i480) { - _elem469 = iprot.readString(); - names.add(_elem469); + _elem479 = iprot.readString(); + names.add(_elem479); } iprot.readListEnd(); } @@ -187,14 +187,14 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip if (field.type == EXPRS_FIELD_DESC.type) { List exprs; { - org.apache.thrift.protocol.TList _list471 = iprot.readListBegin(); - exprs = new ArrayList(_list471.size); - DropPartitionsExpr _elem472; - for (int _i473 = 0; _i473 < _list471.size; ++_i473) + org.apache.thrift.protocol.TList _list481 = iprot.readListBegin(); + exprs = new ArrayList(_list481.size); + DropPartitionsExpr _elem482; + for (int _i483 = 0; _i483 < _list481.size; ++_i483) { - _elem472 = new DropPartitionsExpr(); - _elem472.read(iprot); - exprs.add(_elem472); + _elem482 = new DropPartitionsExpr(); + _elem482.read(iprot); + exprs.add(_elem482); } iprot.readListEnd(); } @@ -219,9 +219,9 @@ protected void standardSchemeWriteValue(org.apache.thrift.protocol.TProtocol opr List names = (List)value_; { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, names.size())); - for (String _iter474 : names) + for (String _iter484 : names) { - oprot.writeString(_iter474); + oprot.writeString(_iter484); } oprot.writeListEnd(); } @@ -230,9 +230,9 @@ protected void standardSchemeWriteValue(org.apache.thrift.protocol.TProtocol opr List exprs = (List)value_; { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, exprs.size())); - for (DropPartitionsExpr _iter475 : exprs) + for (DropPartitionsExpr _iter485 : exprs) { - _iter475.write(oprot); + _iter485.write(oprot); } oprot.writeListEnd(); } @@ -250,13 +250,13 @@ protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot case NAMES: List names; { - org.apache.thrift.protocol.TList _list476 = iprot.readListBegin(); - names = new ArrayList(_list476.size); - String _elem477; - for (int _i478 = 0; _i478 < _list476.size; ++_i478) + org.apache.thrift.protocol.TList _list486 = iprot.readListBegin(); + names = new ArrayList(_list486.size); + String _elem487; + for (int _i488 = 0; _i488 < _list486.size; ++_i488) { - _elem477 = iprot.readString(); - names.add(_elem477); + _elem487 = iprot.readString(); + names.add(_elem487); } iprot.readListEnd(); } @@ -264,14 +264,14 @@ protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot case EXPRS: List exprs; { - org.apache.thrift.protocol.TList _list479 = iprot.readListBegin(); - exprs = new ArrayList(_list479.size); - DropPartitionsExpr _elem480; - for (int _i481 = 0; _i481 < _list479.size; ++_i481) + org.apache.thrift.protocol.TList _list489 = iprot.readListBegin(); + exprs = new ArrayList(_list489.size); + DropPartitionsExpr _elem490; + for (int _i491 = 0; _i491 < _list489.size; ++_i491) { - _elem480 = new DropPartitionsExpr(); - _elem480.read(iprot); - exprs.add(_elem480); + _elem490 = new DropPartitionsExpr(); + _elem490.read(iprot); + exprs.add(_elem490); } iprot.readListEnd(); } @@ -291,9 +291,9 @@ protected void tupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) List names = (List)value_; { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, names.size())); - for (String _iter482 : names) + for (String _iter492 : names) { - oprot.writeString(_iter482); + oprot.writeString(_iter492); } oprot.writeListEnd(); } @@ -302,9 +302,9 @@ protected void tupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) List exprs = (List)value_; { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, exprs.size())); - for (DropPartitionsExpr _iter483 : exprs) + for (DropPartitionsExpr _iter493 : exprs) { - _iter483.write(oprot); + _iter493.write(oprot); } oprot.writeListEnd(); } diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java index eaae445297..c95216fead 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java @@ -445,14 +445,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Schema struct) thro case 1: // FIELD_SCHEMAS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list294 = iprot.readListBegin(); - struct.fieldSchemas = new ArrayList(_list294.size); - FieldSchema _elem295; - for (int _i296 = 0; _i296 < _list294.size; ++_i296) + org.apache.thrift.protocol.TList _list304 = iprot.readListBegin(); + struct.fieldSchemas = new ArrayList(_list304.size); + FieldSchema _elem305; + for (int _i306 = 0; _i306 < _list304.size; ++_i306) { - _elem295 = new FieldSchema(); - _elem295.read(iprot); - struct.fieldSchemas.add(_elem295); + _elem305 = new FieldSchema(); + _elem305.read(iprot); + struct.fieldSchemas.add(_elem305); } iprot.readListEnd(); } @@ -464,15 +464,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Schema struct) thro case 2: // PROPERTIES if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map297 = iprot.readMapBegin(); - struct.properties = new HashMap(2*_map297.size); - String _key298; - String _val299; - for (int _i300 = 0; _i300 < _map297.size; ++_i300) + org.apache.thrift.protocol.TMap _map307 = iprot.readMapBegin(); + struct.properties = new HashMap(2*_map307.size); + String _key308; + String _val309; + for (int _i310 = 0; _i310 < _map307.size; ++_i310) { - _key298 = iprot.readString(); - _val299 = iprot.readString(); - struct.properties.put(_key298, _val299); + _key308 = iprot.readString(); + _val309 = iprot.readString(); + struct.properties.put(_key308, _val309); } iprot.readMapEnd(); } @@ -498,9 +498,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Schema struct) thr oprot.writeFieldBegin(FIELD_SCHEMAS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.fieldSchemas.size())); - for (FieldSchema _iter301 : struct.fieldSchemas) + for (FieldSchema _iter311 : struct.fieldSchemas) { - _iter301.write(oprot); + _iter311.write(oprot); } oprot.writeListEnd(); } @@ -510,10 +510,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Schema struct) thr oprot.writeFieldBegin(PROPERTIES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.properties.size())); - for (Map.Entry _iter302 : struct.properties.entrySet()) + for (Map.Entry _iter312 : struct.properties.entrySet()) { - oprot.writeString(_iter302.getKey()); - oprot.writeString(_iter302.getValue()); + oprot.writeString(_iter312.getKey()); + oprot.writeString(_iter312.getValue()); } oprot.writeMapEnd(); } @@ -547,19 +547,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Schema struct) thro if (struct.isSetFieldSchemas()) { { oprot.writeI32(struct.fieldSchemas.size()); - for (FieldSchema _iter303 : struct.fieldSchemas) + for (FieldSchema _iter313 : struct.fieldSchemas) { - _iter303.write(oprot); + _iter313.write(oprot); } } } if (struct.isSetProperties()) { { oprot.writeI32(struct.properties.size()); - for (Map.Entry _iter304 : struct.properties.entrySet()) + for (Map.Entry _iter314 : struct.properties.entrySet()) { - oprot.writeString(_iter304.getKey()); - oprot.writeString(_iter304.getValue()); + oprot.writeString(_iter314.getKey()); + oprot.writeString(_iter314.getValue()); } } } @@ -571,29 +571,29 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Schema struct) throw BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list305 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.fieldSchemas = new ArrayList(_list305.size); - FieldSchema _elem306; - for (int _i307 = 0; _i307 < _list305.size; ++_i307) + org.apache.thrift.protocol.TList _list315 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.fieldSchemas = new ArrayList(_list315.size); + FieldSchema _elem316; + for (int _i317 = 0; _i317 < _list315.size; ++_i317) { - _elem306 = new FieldSchema(); - _elem306.read(iprot); - struct.fieldSchemas.add(_elem306); + _elem316 = new FieldSchema(); + _elem316.read(iprot); + struct.fieldSchemas.add(_elem316); } } struct.setFieldSchemasIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TMap _map308 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.properties = new HashMap(2*_map308.size); - String _key309; - String _val310; - for (int _i311 = 0; _i311 < _map308.size; ++_i311) + org.apache.thrift.protocol.TMap _map318 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.properties = new HashMap(2*_map318.size); + String _key319; + String _val320; + for (int _i321 = 0; _i321 < _map318.size; ++_i321) { - _key309 = iprot.readString(); - _val310 = iprot.readString(); - struct.properties.put(_key309, _val310); + _key319 = iprot.readString(); + _val320 = iprot.readString(); + struct.properties.put(_key319, _val320); } } struct.setPropertiesIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SetPartitionsStatsRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SetPartitionsStatsRequest.java index ae0fbb4c4e..f4a66ed7af 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SetPartitionsStatsRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SetPartitionsStatsRequest.java @@ -435,14 +435,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SetPartitionsStatsR case 1: // COL_STATS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list286 = iprot.readListBegin(); - struct.colStats = new ArrayList(_list286.size); - ColumnStatistics _elem287; - for (int _i288 = 0; _i288 < _list286.size; ++_i288) + org.apache.thrift.protocol.TList _list296 = iprot.readListBegin(); + struct.colStats = new ArrayList(_list296.size); + ColumnStatistics _elem297; + for (int _i298 = 0; _i298 < _list296.size; ++_i298) { - _elem287 = new ColumnStatistics(); - _elem287.read(iprot); - struct.colStats.add(_elem287); + _elem297 = new ColumnStatistics(); + _elem297.read(iprot); + struct.colStats.add(_elem297); } iprot.readListEnd(); } @@ -476,9 +476,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, SetPartitionsStats oprot.writeFieldBegin(COL_STATS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.colStats.size())); - for (ColumnStatistics _iter289 : struct.colStats) + for (ColumnStatistics _iter299 : struct.colStats) { - _iter289.write(oprot); + _iter299.write(oprot); } oprot.writeListEnd(); } @@ -508,9 +508,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, SetPartitionsStatsR TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.colStats.size()); - for (ColumnStatistics _iter290 : struct.colStats) + for (ColumnStatistics _iter300 : struct.colStats) { - _iter290.write(oprot); + _iter300.write(oprot); } } BitSet optionals = new BitSet(); @@ -527,14 +527,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, SetPartitionsStatsR public void read(org.apache.thrift.protocol.TProtocol prot, SetPartitionsStatsRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list291 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.colStats = new ArrayList(_list291.size); - ColumnStatistics _elem292; - for (int _i293 = 0; _i293 < _list291.size; ++_i293) + org.apache.thrift.protocol.TList _list301 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.colStats = new ArrayList(_list301.size); + ColumnStatistics _elem302; + for (int _i303 = 0; _i303 < _list301.size; ++_i303) { - _elem292 = new ColumnStatistics(); - _elem292.read(iprot); - struct.colStats.add(_elem292); + _elem302 = new ColumnStatistics(); + _elem302.read(iprot); + struct.colStats.add(_elem302); } } struct.setColStatsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java index 5687b1958d..1b506024f9 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ShowCompactResponse case 1: // COMPACTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list598 = iprot.readListBegin(); - struct.compacts = new ArrayList(_list598.size); - ShowCompactResponseElement _elem599; - for (int _i600 = 0; _i600 < _list598.size; ++_i600) + org.apache.thrift.protocol.TList _list608 = iprot.readListBegin(); + struct.compacts = new ArrayList(_list608.size); + ShowCompactResponseElement _elem609; + for (int _i610 = 0; _i610 < _list608.size; ++_i610) { - _elem599 = new ShowCompactResponseElement(); - _elem599.read(iprot); - struct.compacts.add(_elem599); + _elem609 = new ShowCompactResponseElement(); + _elem609.read(iprot); + struct.compacts.add(_elem609); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ShowCompactRespons oprot.writeFieldBegin(COMPACTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.compacts.size())); - for (ShowCompactResponseElement _iter601 : struct.compacts) + for (ShowCompactResponseElement _iter611 : struct.compacts) { - _iter601.write(oprot); + _iter611.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ShowCompactResponse TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.compacts.size()); - for (ShowCompactResponseElement _iter602 : struct.compacts) + for (ShowCompactResponseElement _iter612 : struct.compacts) { - _iter602.write(oprot); + _iter612.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ShowCompactResponse public void read(org.apache.thrift.protocol.TProtocol prot, ShowCompactResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list603 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.compacts = new ArrayList(_list603.size); - ShowCompactResponseElement _elem604; - for (int _i605 = 0; _i605 < _list603.size; ++_i605) + org.apache.thrift.protocol.TList _list613 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.compacts = new ArrayList(_list613.size); + ShowCompactResponseElement _elem614; + for (int _i615 = 0; _i615 < _list613.size; ++_i615) { - _elem604 = new ShowCompactResponseElement(); - _elem604.read(iprot); - struct.compacts.add(_elem604); + _elem614 = new ShowCompactResponseElement(); + _elem614.read(iprot); + struct.compacts.add(_elem614); } } struct.setCompactsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java index f22deb2976..a21a191b1d 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java @@ -350,14 +350,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ShowLocksResponse s case 1: // LOCKS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list564 = iprot.readListBegin(); - struct.locks = new ArrayList(_list564.size); - ShowLocksResponseElement _elem565; - for (int _i566 = 0; _i566 < _list564.size; ++_i566) + org.apache.thrift.protocol.TList _list574 = iprot.readListBegin(); + struct.locks = new ArrayList(_list574.size); + ShowLocksResponseElement _elem575; + for (int _i576 = 0; _i576 < _list574.size; ++_i576) { - _elem565 = new ShowLocksResponseElement(); - _elem565.read(iprot); - struct.locks.add(_elem565); + _elem575 = new ShowLocksResponseElement(); + _elem575.read(iprot); + struct.locks.add(_elem575); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ShowLocksResponse oprot.writeFieldBegin(LOCKS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.locks.size())); - for (ShowLocksResponseElement _iter567 : struct.locks) + for (ShowLocksResponseElement _iter577 : struct.locks) { - _iter567.write(oprot); + _iter577.write(oprot); } oprot.writeListEnd(); } @@ -416,9 +416,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ShowLocksResponse s if (struct.isSetLocks()) { { oprot.writeI32(struct.locks.size()); - for (ShowLocksResponseElement _iter568 : struct.locks) + for (ShowLocksResponseElement _iter578 : struct.locks) { - _iter568.write(oprot); + _iter578.write(oprot); } } } @@ -430,14 +430,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ShowLocksResponse st BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list569 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.locks = new ArrayList(_list569.size); - ShowLocksResponseElement _elem570; - for (int _i571 = 0; _i571 < _list569.size; ++_i571) + org.apache.thrift.protocol.TList _list579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.locks = new ArrayList(_list579.size); + ShowLocksResponseElement _elem580; + for (int _i581 = 0; _i581 < _list579.size; ++_i581) { - _elem570 = new ShowLocksResponseElement(); - _elem570.read(iprot); - struct.locks.add(_elem570); + _elem580 = new ShowLocksResponseElement(); + _elem580.read(iprot); + struct.locks.add(_elem580); } } struct.setLocksIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java index a4a9ed05e3..f317b0393f 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java @@ -53,6 +53,7 @@ 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 CREATION_METADATA_FIELD_DESC = new org.apache.thrift.protocol.TField("creationMetadata", org.apache.thrift.protocol.TType.MAP, (short)16); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -75,6 +76,7 @@ private PrincipalPrivilegeSet privileges; // optional private boolean temporary; // optional private boolean rewriteEnabled; // optional + private Map creationMetadata; // 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 { @@ -92,7 +94,8 @@ TABLE_TYPE((short)12, "tableType"), PRIVILEGES((short)13, "privileges"), TEMPORARY((short)14, "temporary"), - REWRITE_ENABLED((short)15, "rewriteEnabled"); + REWRITE_ENABLED((short)15, "rewriteEnabled"), + CREATION_METADATA((short)16, "creationMetadata"); private static final Map byName = new HashMap(); @@ -137,6 +140,8 @@ public static _Fields findByThriftId(int fieldId) { return TEMPORARY; case 15: // REWRITE_ENABLED return REWRITE_ENABLED; + case 16: // CREATION_METADATA + return CREATION_METADATA; default: return null; } @@ -183,7 +188,7 @@ public String getFieldName() { private static final int __TEMPORARY_ISSET_ID = 3; private static final int __REWRITEENABLED_ISSET_ID = 4; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.PRIVILEGES,_Fields.TEMPORARY,_Fields.REWRITE_ENABLED}; + private static final _Fields optionals[] = {_Fields.PRIVILEGES,_Fields.TEMPORARY,_Fields.REWRITE_ENABLED,_Fields.CREATION_METADATA}; 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); @@ -220,6 +225,10 @@ 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.CREATION_METADATA, new org.apache.thrift.meta_data.FieldMetaData("creationMetadata", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT , "BasicTxnInfo")))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Table.class, metaDataMap); } @@ -306,6 +315,21 @@ public Table(Table other) { } this.temporary = other.temporary; this.rewriteEnabled = other.rewriteEnabled; + if (other.isSetCreationMetadata()) { + Map __this__creationMetadata = new HashMap(other.creationMetadata.size()); + for (Map.Entry other_element : other.creationMetadata.entrySet()) { + + String other_element_key = other_element.getKey(); + BasicTxnInfo other_element_value = other_element.getValue(); + + String __this__creationMetadata_copy_key = other_element_key; + + BasicTxnInfo __this__creationMetadata_copy_value = other_element_value; + + __this__creationMetadata.put(__this__creationMetadata_copy_key, __this__creationMetadata_copy_value); + } + this.creationMetadata = __this__creationMetadata; + } } public Table deepCopy() { @@ -334,6 +358,7 @@ public void clear() { setRewriteEnabledIsSet(false); this.rewriteEnabled = false; + this.creationMetadata = null; } public String getTableName() { @@ -702,6 +727,40 @@ public void setRewriteEnabledIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __REWRITEENABLED_ISSET_ID, value); } + public int getCreationMetadataSize() { + return (this.creationMetadata == null) ? 0 : this.creationMetadata.size(); + } + + public void putToCreationMetadata(String key, BasicTxnInfo val) { + if (this.creationMetadata == null) { + this.creationMetadata = new HashMap(); + } + this.creationMetadata.put(key, val); + } + + public Map getCreationMetadata() { + return this.creationMetadata; + } + + public void setCreationMetadata(Map creationMetadata) { + this.creationMetadata = creationMetadata; + } + + public void unsetCreationMetadata() { + this.creationMetadata = null; + } + + /** Returns true if field creationMetadata is set (has been assigned a value) and false otherwise */ + public boolean isSetCreationMetadata() { + return this.creationMetadata != null; + } + + public void setCreationMetadataIsSet(boolean value) { + if (!value) { + this.creationMetadata = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case TABLE_NAME: @@ -824,6 +883,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case CREATION_METADATA: + if (value == null) { + unsetCreationMetadata(); + } else { + setCreationMetadata((Map)value); + } + break; + } } @@ -874,6 +941,9 @@ public Object getFieldValue(_Fields field) { case REWRITE_ENABLED: return isRewriteEnabled(); + case CREATION_METADATA: + return getCreationMetadata(); + } throw new IllegalStateException(); } @@ -915,6 +985,8 @@ public boolean isSet(_Fields field) { return isSetTemporary(); case REWRITE_ENABLED: return isSetRewriteEnabled(); + case CREATION_METADATA: + return isSetCreationMetadata(); } throw new IllegalStateException(); } @@ -1067,6 +1139,15 @@ public boolean equals(Table that) { return false; } + boolean this_present_creationMetadata = true && this.isSetCreationMetadata(); + boolean that_present_creationMetadata = true && that.isSetCreationMetadata(); + if (this_present_creationMetadata || that_present_creationMetadata) { + if (!(this_present_creationMetadata && that_present_creationMetadata)) + return false; + if (!this.creationMetadata.equals(that.creationMetadata)) + return false; + } + return true; } @@ -1149,6 +1230,11 @@ public int hashCode() { if (present_rewriteEnabled) list.add(rewriteEnabled); + boolean present_creationMetadata = true && (isSetCreationMetadata()); + list.add(present_creationMetadata); + if (present_creationMetadata) + list.add(creationMetadata); + return list.hashCode(); } @@ -1310,6 +1396,16 @@ public int compareTo(Table other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetCreationMetadata()).compareTo(other.isSetCreationMetadata()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCreationMetadata()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creationMetadata, other.creationMetadata); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -1435,6 +1531,16 @@ public String toString() { sb.append(this.rewriteEnabled); first = false; } + if (isSetCreationMetadata()) { + if (!first) sb.append(", "); + sb.append("creationMetadata:"); + if (this.creationMetadata == null) { + sb.append("null"); + } else { + sb.append(this.creationMetadata); + } + first = false; + } sb.append(")"); return sb.toString(); } @@ -1631,6 +1737,27 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Table struct) throw org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 16: // CREATION_METADATA + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { + { + org.apache.thrift.protocol.TMap _map197 = iprot.readMapBegin(); + struct.creationMetadata = new HashMap(2*_map197.size); + String _key198; + BasicTxnInfo _val199; + for (int _i200 = 0; _i200 < _map197.size; ++_i200) + { + _key198 = iprot.readString(); + _val199 = new BasicTxnInfo(); + _val199.read(iprot); + struct.creationMetadata.put(_key198, _val199); + } + iprot.readMapEnd(); + } + struct.setCreationMetadataIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -1677,9 +1804,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Table struct) thro oprot.writeFieldBegin(PARTITION_KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitionKeys.size())); - for (FieldSchema _iter197 : struct.partitionKeys) + for (FieldSchema _iter201 : struct.partitionKeys) { - _iter197.write(oprot); + _iter201.write(oprot); } oprot.writeListEnd(); } @@ -1689,10 +1816,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Table struct) thro oprot.writeFieldBegin(PARAMETERS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.parameters.size())); - for (Map.Entry _iter198 : struct.parameters.entrySet()) + for (Map.Entry _iter202 : struct.parameters.entrySet()) { - oprot.writeString(_iter198.getKey()); - oprot.writeString(_iter198.getValue()); + oprot.writeString(_iter202.getKey()); + oprot.writeString(_iter202.getValue()); } oprot.writeMapEnd(); } @@ -1730,6 +1857,21 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Table struct) thro oprot.writeBool(struct.rewriteEnabled); oprot.writeFieldEnd(); } + if (struct.creationMetadata != null) { + if (struct.isSetCreationMetadata()) { + oprot.writeFieldBegin(CREATION_METADATA_FIELD_DESC); + { + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.creationMetadata.size())); + for (Map.Entry _iter203 : struct.creationMetadata.entrySet()) + { + oprot.writeString(_iter203.getKey()); + _iter203.getValue().write(oprot); + } + oprot.writeMapEnd(); + } + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -1793,7 +1935,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Table struct) throw if (struct.isSetRewriteEnabled()) { optionals.set(14); } - oprot.writeBitSet(optionals, 15); + if (struct.isSetCreationMetadata()) { + optionals.set(15); + } + oprot.writeBitSet(optionals, 16); if (struct.isSetTableName()) { oprot.writeString(struct.tableName); } @@ -1818,19 +1963,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Table struct) throw if (struct.isSetPartitionKeys()) { { oprot.writeI32(struct.partitionKeys.size()); - for (FieldSchema _iter199 : struct.partitionKeys) + for (FieldSchema _iter204 : struct.partitionKeys) { - _iter199.write(oprot); + _iter204.write(oprot); } } } if (struct.isSetParameters()) { { oprot.writeI32(struct.parameters.size()); - for (Map.Entry _iter200 : struct.parameters.entrySet()) + for (Map.Entry _iter205 : struct.parameters.entrySet()) { - oprot.writeString(_iter200.getKey()); - oprot.writeString(_iter200.getValue()); + oprot.writeString(_iter205.getKey()); + oprot.writeString(_iter205.getValue()); } } } @@ -1852,12 +1997,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Table struct) throw if (struct.isSetRewriteEnabled()) { oprot.writeBool(struct.rewriteEnabled); } + if (struct.isSetCreationMetadata()) { + { + oprot.writeI32(struct.creationMetadata.size()); + for (Map.Entry _iter206 : struct.creationMetadata.entrySet()) + { + oprot.writeString(_iter206.getKey()); + _iter206.getValue().write(oprot); + } + } + } } @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(15); + BitSet incoming = iprot.readBitSet(16); if (incoming.get(0)) { struct.tableName = iprot.readString(); struct.setTableNameIsSet(true); @@ -1889,29 +2044,29 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Table struct) throws } if (incoming.get(7)) { { - org.apache.thrift.protocol.TList _list201 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitionKeys = new ArrayList(_list201.size); - FieldSchema _elem202; - for (int _i203 = 0; _i203 < _list201.size; ++_i203) + org.apache.thrift.protocol.TList _list207 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitionKeys = new ArrayList(_list207.size); + FieldSchema _elem208; + for (int _i209 = 0; _i209 < _list207.size; ++_i209) { - _elem202 = new FieldSchema(); - _elem202.read(iprot); - struct.partitionKeys.add(_elem202); + _elem208 = new FieldSchema(); + _elem208.read(iprot); + struct.partitionKeys.add(_elem208); } } struct.setPartitionKeysIsSet(true); } if (incoming.get(8)) { { - org.apache.thrift.protocol.TMap _map204 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.parameters = new HashMap(2*_map204.size); - String _key205; - String _val206; - for (int _i207 = 0; _i207 < _map204.size; ++_i207) + org.apache.thrift.protocol.TMap _map210 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.parameters = new HashMap(2*_map210.size); + String _key211; + String _val212; + for (int _i213 = 0; _i213 < _map210.size; ++_i213) { - _key205 = iprot.readString(); - _val206 = iprot.readString(); - struct.parameters.put(_key205, _val206); + _key211 = iprot.readString(); + _val212 = iprot.readString(); + struct.parameters.put(_key211, _val212); } } struct.setParametersIsSet(true); @@ -1941,6 +2096,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Table struct) throws struct.rewriteEnabled = iprot.readBool(); struct.setRewriteEnabledIsSet(true); } + if (incoming.get(15)) { + { + org.apache.thrift.protocol.TMap _map214 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.creationMetadata = new HashMap(2*_map214.size); + String _key215; + BasicTxnInfo _val216; + for (int _i217 = 0; _i217 < _map214.size; ++_i217) + { + _key215 = iprot.readString(); + _val216 = new BasicTxnInfo(); + _val216.read(iprot); + struct.creationMetadata.put(_key215, _val216); + } + } + struct.setCreationMetadataIsSet(true); + } } } diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java index 69be837ef9..575fa9f852 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java @@ -537,13 +537,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TableStatsRequest s case 3: // COL_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list420 = iprot.readListBegin(); - struct.colNames = new ArrayList(_list420.size); - String _elem421; - for (int _i422 = 0; _i422 < _list420.size; ++_i422) + org.apache.thrift.protocol.TList _list430 = iprot.readListBegin(); + struct.colNames = new ArrayList(_list430.size); + String _elem431; + for (int _i432 = 0; _i432 < _list430.size; ++_i432) { - _elem421 = iprot.readString(); - struct.colNames.add(_elem421); + _elem431 = iprot.readString(); + struct.colNames.add(_elem431); } iprot.readListEnd(); } @@ -579,9 +579,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, TableStatsRequest oprot.writeFieldBegin(COL_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.colNames.size())); - for (String _iter423 : struct.colNames) + for (String _iter433 : struct.colNames) { - oprot.writeString(_iter423); + oprot.writeString(_iter433); } oprot.writeListEnd(); } @@ -608,9 +608,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TableStatsRequest s oprot.writeString(struct.tblName); { oprot.writeI32(struct.colNames.size()); - for (String _iter424 : struct.colNames) + for (String _iter434 : struct.colNames) { - oprot.writeString(_iter424); + oprot.writeString(_iter434); } } } @@ -623,13 +623,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TableStatsRequest st struct.tblName = iprot.readString(); struct.setTblNameIsSet(true); { - org.apache.thrift.protocol.TList _list425 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.colNames = new ArrayList(_list425.size); - String _elem426; - for (int _i427 = 0; _i427 < _list425.size; ++_i427) + org.apache.thrift.protocol.TList _list435 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.colNames = new ArrayList(_list435.size); + String _elem436; + for (int _i437 = 0; _i437 < _list435.size; ++_i437) { - _elem426 = iprot.readString(); - struct.colNames.add(_elem426); + _elem436 = iprot.readString(); + struct.colNames.add(_elem436); } } struct.setColNamesIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java index e65166ea0e..32aeb9db7e 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TableStatsResult st case 1: // TABLE_STATS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list394 = iprot.readListBegin(); - struct.tableStats = new ArrayList(_list394.size); - ColumnStatisticsObj _elem395; - for (int _i396 = 0; _i396 < _list394.size; ++_i396) + org.apache.thrift.protocol.TList _list404 = iprot.readListBegin(); + struct.tableStats = new ArrayList(_list404.size); + ColumnStatisticsObj _elem405; + for (int _i406 = 0; _i406 < _list404.size; ++_i406) { - _elem395 = new ColumnStatisticsObj(); - _elem395.read(iprot); - struct.tableStats.add(_elem395); + _elem405 = new ColumnStatisticsObj(); + _elem405.read(iprot); + struct.tableStats.add(_elem405); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, TableStatsResult s oprot.writeFieldBegin(TABLE_STATS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tableStats.size())); - for (ColumnStatisticsObj _iter397 : struct.tableStats) + for (ColumnStatisticsObj _iter407 : struct.tableStats) { - _iter397.write(oprot); + _iter407.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TableStatsResult st TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.tableStats.size()); - for (ColumnStatisticsObj _iter398 : struct.tableStats) + for (ColumnStatisticsObj _iter408 : struct.tableStats) { - _iter398.write(oprot); + _iter408.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TableStatsResult st public void read(org.apache.thrift.protocol.TProtocol prot, TableStatsResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list399 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tableStats = new ArrayList(_list399.size); - ColumnStatisticsObj _elem400; - for (int _i401 = 0; _i401 < _list399.size; ++_i401) + org.apache.thrift.protocol.TList _list409 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tableStats = new ArrayList(_list409.size); + ColumnStatisticsObj _elem410; + for (int _i411 = 0; _i411 < _list409.size; ++_i411) { - _elem400 = new ColumnStatisticsObj(); - _elem400.read(iprot); - struct.tableStats.add(_elem400); + _elem410 = new ColumnStatisticsObj(); + _elem410.read(iprot); + struct.tableStats.add(_elem410); } } struct.setTableStatsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java index fc57141c7a..7d3d5d4aba 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java @@ -100,6 +100,8 @@ public List get_tables_by_type(String db_name, String pattern, String tableType) throws MetaException, org.apache.thrift.TException; + public List get_materialized_views_for_rewriting(String db_name) throws MetaException, org.apache.thrift.TException; + public List get_table_meta(String db_patterns, String tbl_patterns, List tbl_types) throws MetaException, org.apache.thrift.TException; public List get_all_tables(String db_name) throws MetaException, org.apache.thrift.TException; @@ -112,6 +114,8 @@ public GetTablesResult get_table_objects_by_name_req(GetTablesRequest req) throws MetaException, InvalidOperationException, UnknownDBException, org.apache.thrift.TException; + public Map get_materialization_invalidation_info(String dbname, List tbl_names) throws MetaException, InvalidOperationException, UnknownDBException, org.apache.thrift.TException; + public List get_table_names_by_filter(String dbname, String filter, short max_tables) throws MetaException, InvalidOperationException, UnknownDBException, org.apache.thrift.TException; public void alter_table(String dbname, String tbl_name, Table new_tbl) throws InvalidOperationException, MetaException, org.apache.thrift.TException; @@ -342,6 +346,8 @@ public void add_dynamic_partitions(AddDynamicPartitions rqst) throws NoSuchTxnException, TxnAbortedException, org.apache.thrift.TException; + public BasicTxnInfo get_last_completed_transaction_for_table(String db_name, String table_name, TxnsSnapshot txns_snapshot) throws org.apache.thrift.TException; + public NotificationEventResponse get_next_notification(NotificationEventRequest rqst) throws org.apache.thrift.TException; public CurrentNotificationEventId get_current_notificationEventId() throws org.apache.thrift.TException; @@ -462,6 +468,8 @@ public void get_tables_by_type(String db_name, String pattern, String tableType, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_materialized_views_for_rewriting(String db_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_table_meta(String db_patterns, String tbl_patterns, List tbl_types, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void get_all_tables(String db_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -474,6 +482,8 @@ public void get_table_objects_by_name_req(GetTablesRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_materialization_invalidation_info(String dbname, List tbl_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_table_names_by_filter(String dbname, String filter, short max_tables, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void alter_table(String dbname, String tbl_name, Table new_tbl, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -704,6 +714,8 @@ public void add_dynamic_partitions(AddDynamicPartitions rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_last_completed_transaction_for_table(String db_name, String table_name, TxnsSnapshot txns_snapshot, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_next_notification(NotificationEventRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void get_current_notificationEventId(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -1619,6 +1631,32 @@ public void send_get_tables_by_type(String db_name, String pattern, String table throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_tables_by_type failed: unknown result"); } + public List get_materialized_views_for_rewriting(String db_name) throws MetaException, org.apache.thrift.TException + { + send_get_materialized_views_for_rewriting(db_name); + return recv_get_materialized_views_for_rewriting(); + } + + public void send_get_materialized_views_for_rewriting(String db_name) throws org.apache.thrift.TException + { + get_materialized_views_for_rewriting_args args = new get_materialized_views_for_rewriting_args(); + args.setDb_name(db_name); + sendBase("get_materialized_views_for_rewriting", args); + } + + public List recv_get_materialized_views_for_rewriting() throws MetaException, org.apache.thrift.TException + { + get_materialized_views_for_rewriting_result result = new get_materialized_views_for_rewriting_result(); + receiveBase(result, "get_materialized_views_for_rewriting"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.o1 != null) { + throw result.o1; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_materialized_views_for_rewriting failed: unknown result"); + } + public List get_table_meta(String db_patterns, String tbl_patterns, List tbl_types) throws MetaException, org.apache.thrift.TException { send_get_table_meta(db_patterns, tbl_patterns, tbl_types); @@ -1788,6 +1826,39 @@ public GetTablesResult recv_get_table_objects_by_name_req() throws MetaException throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_table_objects_by_name_req failed: unknown result"); } + public Map get_materialization_invalidation_info(String dbname, List tbl_names) throws MetaException, InvalidOperationException, UnknownDBException, org.apache.thrift.TException + { + send_get_materialization_invalidation_info(dbname, tbl_names); + return recv_get_materialization_invalidation_info(); + } + + public void send_get_materialization_invalidation_info(String dbname, List tbl_names) throws org.apache.thrift.TException + { + get_materialization_invalidation_info_args args = new get_materialization_invalidation_info_args(); + args.setDbname(dbname); + args.setTbl_names(tbl_names); + sendBase("get_materialization_invalidation_info", args); + } + + public Map recv_get_materialization_invalidation_info() throws MetaException, InvalidOperationException, UnknownDBException, org.apache.thrift.TException + { + get_materialization_invalidation_info_result result = new get_materialization_invalidation_info_result(); + receiveBase(result, "get_materialization_invalidation_info"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.o1 != null) { + throw result.o1; + } + if (result.o2 != null) { + throw result.o2; + } + if (result.o3 != null) { + throw result.o3; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_materialization_invalidation_info failed: unknown result"); + } + public List get_table_names_by_filter(String dbname, String filter, short max_tables) throws MetaException, InvalidOperationException, UnknownDBException, org.apache.thrift.TException { send_get_table_names_by_filter(dbname, filter, max_tables); @@ -5153,6 +5224,31 @@ public void recv_add_dynamic_partitions() throws NoSuchTxnException, TxnAbortedE return; } + public BasicTxnInfo get_last_completed_transaction_for_table(String db_name, String table_name, TxnsSnapshot txns_snapshot) throws org.apache.thrift.TException + { + send_get_last_completed_transaction_for_table(db_name, table_name, txns_snapshot); + return recv_get_last_completed_transaction_for_table(); + } + + public void send_get_last_completed_transaction_for_table(String db_name, String table_name, TxnsSnapshot txns_snapshot) throws org.apache.thrift.TException + { + get_last_completed_transaction_for_table_args args = new get_last_completed_transaction_for_table_args(); + args.setDb_name(db_name); + args.setTable_name(table_name); + args.setTxns_snapshot(txns_snapshot); + sendBase("get_last_completed_transaction_for_table", args); + } + + public BasicTxnInfo recv_get_last_completed_transaction_for_table() throws org.apache.thrift.TException + { + get_last_completed_transaction_for_table_result result = new get_last_completed_transaction_for_table_result(); + receiveBase(result, "get_last_completed_transaction_for_table"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_last_completed_transaction_for_table failed: unknown result"); + } + public NotificationEventResponse get_next_notification(NotificationEventRequest rqst) throws org.apache.thrift.TException { send_get_next_notification(rqst); @@ -6985,6 +7081,38 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } + public void get_materialized_views_for_rewriting(String db_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + get_materialized_views_for_rewriting_call method_call = new get_materialized_views_for_rewriting_call(db_name, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialized_views_for_rewriting_call extends org.apache.thrift.async.TAsyncMethodCall { + private String db_name; + public get_materialized_views_for_rewriting_call(String db_name, 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.db_name = db_name; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_materialized_views_for_rewriting", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_materialized_views_for_rewriting_args args = new get_materialized_views_for_rewriting_args(); + args.setDb_name(db_name); + args.write(prot); + prot.writeMessageEnd(); + } + + public List getResult() throws MetaException, 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_materialized_views_for_rewriting(); + } + } + public void get_table_meta(String db_patterns, String tbl_patterns, List tbl_types, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_table_meta_call method_call = new get_table_meta_call(db_patterns, tbl_patterns, tbl_types, resultHandler, this, ___protocolFactory, ___transport); @@ -7189,6 +7317,41 @@ public GetTablesResult getResult() throws MetaException, InvalidOperationExcepti } } + public void get_materialization_invalidation_info(String dbname, List tbl_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + get_materialization_invalidation_info_call method_call = new get_materialization_invalidation_info_call(dbname, tbl_names, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialization_invalidation_info_call extends org.apache.thrift.async.TAsyncMethodCall { + private String dbname; + private List tbl_names; + public get_materialization_invalidation_info_call(String dbname, List tbl_names, 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.dbname = dbname; + this.tbl_names = tbl_names; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_materialization_invalidation_info", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_materialization_invalidation_info_args args = new get_materialization_invalidation_info_args(); + args.setDbname(dbname); + args.setTbl_names(tbl_names); + args.write(prot); + prot.writeMessageEnd(); + } + + public Map getResult() throws MetaException, InvalidOperationException, UnknownDBException, 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_materialization_invalidation_info(); + } + } + public void get_table_names_by_filter(String dbname, String filter, short max_tables, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_table_names_by_filter_call method_call = new get_table_names_by_filter_call(dbname, filter, max_tables, resultHandler, this, ___protocolFactory, ___transport); @@ -11292,6 +11455,44 @@ public void getResult() throws NoSuchTxnException, TxnAbortedException, org.apac } } + public void get_last_completed_transaction_for_table(String db_name, String table_name, TxnsSnapshot txns_snapshot, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + get_last_completed_transaction_for_table_call method_call = new get_last_completed_transaction_for_table_call(db_name, table_name, txns_snapshot, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_last_completed_transaction_for_table_call extends org.apache.thrift.async.TAsyncMethodCall { + private String db_name; + private String table_name; + private TxnsSnapshot txns_snapshot; + public get_last_completed_transaction_for_table_call(String db_name, String table_name, TxnsSnapshot txns_snapshot, 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.db_name = db_name; + this.table_name = table_name; + this.txns_snapshot = txns_snapshot; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_last_completed_transaction_for_table", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_last_completed_transaction_for_table_args args = new get_last_completed_transaction_for_table_args(); + args.setDb_name(db_name); + args.setTable_name(table_name); + args.setTxns_snapshot(txns_snapshot); + args.write(prot); + prot.writeMessageEnd(); + } + + public BasicTxnInfo 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_last_completed_transaction_for_table(); + } + } + public void get_next_notification(NotificationEventRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_next_notification_call method_call = new get_next_notification_call(rqst, resultHandler, this, ___protocolFactory, ___transport); @@ -12253,12 +12454,14 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { + public get_materialized_views_for_rewriting() { + super("get_materialized_views_for_rewriting"); + } + + public get_materialized_views_for_rewriting_args getEmptyArgsInstance() { + return new get_materialized_views_for_rewriting_args(); + } + + protected boolean isOneway() { + return false; + } + + public get_materialized_views_for_rewriting_result getResult(I iface, get_materialized_views_for_rewriting_args args) throws org.apache.thrift.TException { + get_materialized_views_for_rewriting_result result = new get_materialized_views_for_rewriting_result(); + try { + result.success = iface.get_materialized_views_for_rewriting(args.db_name); + } catch (MetaException o1) { + result.o1 = o1; + } + return result; + } + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_meta extends org.apache.thrift.ProcessFunction { public get_table_meta() { super("get_table_meta"); @@ -13320,6 +13548,34 @@ public get_table_objects_by_name_req_result getResult(I iface, get_table_objects } } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialization_invalidation_info extends org.apache.thrift.ProcessFunction { + public get_materialization_invalidation_info() { + super("get_materialization_invalidation_info"); + } + + public get_materialization_invalidation_info_args getEmptyArgsInstance() { + return new get_materialization_invalidation_info_args(); + } + + protected boolean isOneway() { + return false; + } + + public get_materialization_invalidation_info_result getResult(I iface, get_materialization_invalidation_info_args args) throws org.apache.thrift.TException { + get_materialization_invalidation_info_result result = new get_materialization_invalidation_info_result(); + try { + result.success = iface.get_materialization_invalidation_info(args.dbname, args.tbl_names); + } catch (MetaException o1) { + result.o1 = o1; + } catch (InvalidOperationException o2) { + result.o2 = o2; + } catch (UnknownDBException o3) { + result.o3 = o3; + } + return result; + } + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_names_by_filter extends org.apache.thrift.ProcessFunction { public get_table_names_by_filter() { super("get_table_names_by_filter"); @@ -16278,6 +16534,26 @@ public add_dynamic_partitions_result getResult(I iface, add_dynamic_partitions_a } } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_last_completed_transaction_for_table extends org.apache.thrift.ProcessFunction { + public get_last_completed_transaction_for_table() { + super("get_last_completed_transaction_for_table"); + } + + public get_last_completed_transaction_for_table_args getEmptyArgsInstance() { + return new get_last_completed_transaction_for_table_args(); + } + + protected boolean isOneway() { + return false; + } + + public get_last_completed_transaction_for_table_result getResult(I iface, get_last_completed_transaction_for_table_args args) throws org.apache.thrift.TException { + get_last_completed_transaction_for_table_result result = new get_last_completed_transaction_for_table_result(); + result.success = iface.get_last_completed_transaction_for_table(args.db_name, args.table_name, args.txns_snapshot); + return result; + } + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_next_notification extends org.apache.thrift.ProcessFunction { public get_next_notification() { super("get_next_notification"); @@ -17040,12 +17316,14 @@ protected AsyncProcessor(I iface, Map extends org.apache.thrift.AsyncProcessFunction> { + public get_materialized_views_for_rewriting() { + super("get_materialized_views_for_rewriting"); + } + + public get_materialized_views_for_rewriting_args getEmptyArgsInstance() { + return new get_materialized_views_for_rewriting_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + get_materialized_views_for_rewriting_result result = new get_materialized_views_for_rewriting_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_materialized_views_for_rewriting_result result = new get_materialized_views_for_rewriting_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; + result.setO1IsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, get_materialized_views_for_rewriting_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_materialized_views_for_rewriting(args.db_name,resultHandler); + } + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_meta extends org.apache.thrift.AsyncProcessFunction> { public get_table_meta() { super("get_table_meta"); @@ -19359,6 +19695,73 @@ public void start(I iface, get_table_objects_by_name_req_args args, org.apache.t } } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialization_invalidation_info extends org.apache.thrift.AsyncProcessFunction> { + public get_materialization_invalidation_info() { + super("get_materialization_invalidation_info"); + } + + public get_materialization_invalidation_info_args getEmptyArgsInstance() { + return new get_materialization_invalidation_info_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(Map o) { + get_materialization_invalidation_info_result result = new get_materialization_invalidation_info_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_materialization_invalidation_info_result result = new get_materialization_invalidation_info_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; + result.setO1IsSet(true); + msg = result; + } + else if (e instanceof InvalidOperationException) { + result.o2 = (InvalidOperationException) e; + result.setO2IsSet(true); + msg = result; + } + else if (e instanceof UnknownDBException) { + result.o3 = (UnknownDBException) e; + result.setO3IsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, get_materialization_invalidation_info_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_materialization_invalidation_info(args.dbname, args.tbl_names,resultHandler); + } + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_names_by_filter extends org.apache.thrift.AsyncProcessFunction> { public get_table_names_by_filter() { super("get_table_names_by_filter"); @@ -26404,6 +26807,57 @@ public void start(I iface, add_dynamic_partitions_args args, org.apache.thrift.a } } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_last_completed_transaction_for_table extends org.apache.thrift.AsyncProcessFunction { + public get_last_completed_transaction_for_table() { + super("get_last_completed_transaction_for_table"); + } + + public get_last_completed_transaction_for_table_args getEmptyArgsInstance() { + return new get_last_completed_transaction_for_table_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(BasicTxnInfo o) { + get_last_completed_transaction_for_table_result result = new get_last_completed_transaction_for_table_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_last_completed_transaction_for_table_result result = new get_last_completed_transaction_for_table_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_last_completed_transaction_for_table_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get_last_completed_transaction_for_table(args.db_name, args.table_name, args.txns_snapshot,resultHandler); + } + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_next_notification extends org.apache.thrift.AsyncProcessFunction { public get_next_notification() { super("get_next_notification"); @@ -33551,13 +34005,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 _list794 = iprot.readListBegin(); - struct.success = new ArrayList(_list794.size); - String _elem795; - for (int _i796 = 0; _i796 < _list794.size; ++_i796) + org.apache.thrift.protocol.TList _list820 = iprot.readListBegin(); + struct.success = new ArrayList(_list820.size); + String _elem821; + for (int _i822 = 0; _i822 < _list820.size; ++_i822) { - _elem795 = iprot.readString(); - struct.success.add(_elem795); + _elem821 = iprot.readString(); + struct.success.add(_elem821); } iprot.readListEnd(); } @@ -33592,9 +34046,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 _iter797 : struct.success) + for (String _iter823 : struct.success) { - oprot.writeString(_iter797); + oprot.writeString(_iter823); } oprot.writeListEnd(); } @@ -33633,9 +34087,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_databases_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter798 : struct.success) + for (String _iter824 : struct.success) { - oprot.writeString(_iter798); + oprot.writeString(_iter824); } } } @@ -33650,13 +34104,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 _list799 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list799.size); - String _elem800; - for (int _i801 = 0; _i801 < _list799.size; ++_i801) + 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) { - _elem800 = iprot.readString(); - struct.success.add(_elem800); + _elem826 = iprot.readString(); + struct.success.add(_elem826); } } struct.setSuccessIsSet(true); @@ -34310,13 +34764,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 _list802 = iprot.readListBegin(); - struct.success = new ArrayList(_list802.size); - String _elem803; - for (int _i804 = 0; _i804 < _list802.size; ++_i804) + org.apache.thrift.protocol.TList _list828 = iprot.readListBegin(); + struct.success = new ArrayList(_list828.size); + String _elem829; + for (int _i830 = 0; _i830 < _list828.size; ++_i830) { - _elem803 = iprot.readString(); - struct.success.add(_elem803); + _elem829 = iprot.readString(); + struct.success.add(_elem829); } iprot.readListEnd(); } @@ -34351,9 +34805,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 _iter805 : struct.success) + for (String _iter831 : struct.success) { - oprot.writeString(_iter805); + oprot.writeString(_iter831); } oprot.writeListEnd(); } @@ -34392,9 +34846,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_databases_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter806 : struct.success) + for (String _iter832 : struct.success) { - oprot.writeString(_iter806); + oprot.writeString(_iter832); } } } @@ -34409,13 +34863,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 _list807 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list807.size); - String _elem808; - for (int _i809 = 0; _i809 < _list807.size; ++_i809) + org.apache.thrift.protocol.TList _list833 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list833.size); + String _elem834; + for (int _i835 = 0; _i835 < _list833.size; ++_i835) { - _elem808 = iprot.readString(); - struct.success.add(_elem808); + _elem834 = iprot.readString(); + struct.success.add(_elem834); } } struct.setSuccessIsSet(true); @@ -39022,16 +39476,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 _map810 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map810.size); - String _key811; - Type _val812; - for (int _i813 = 0; _i813 < _map810.size; ++_i813) + org.apache.thrift.protocol.TMap _map836 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map836.size); + String _key837; + Type _val838; + for (int _i839 = 0; _i839 < _map836.size; ++_i839) { - _key811 = iprot.readString(); - _val812 = new Type(); - _val812.read(iprot); - struct.success.put(_key811, _val812); + _key837 = iprot.readString(); + _val838 = new Type(); + _val838.read(iprot); + struct.success.put(_key837, _val838); } iprot.readMapEnd(); } @@ -39066,10 +39520,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 _iter814 : struct.success.entrySet()) + for (Map.Entry _iter840 : struct.success.entrySet()) { - oprot.writeString(_iter814.getKey()); - _iter814.getValue().write(oprot); + oprot.writeString(_iter840.getKey()); + _iter840.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -39108,10 +39562,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 _iter815 : struct.success.entrySet()) + for (Map.Entry _iter841 : struct.success.entrySet()) { - oprot.writeString(_iter815.getKey()); - _iter815.getValue().write(oprot); + oprot.writeString(_iter841.getKey()); + _iter841.getValue().write(oprot); } } } @@ -39126,16 +39580,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 _map816 = 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*_map816.size); - String _key817; - Type _val818; - for (int _i819 = 0; _i819 < _map816.size; ++_i819) + org.apache.thrift.protocol.TMap _map842 = 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*_map842.size); + String _key843; + Type _val844; + for (int _i845 = 0; _i845 < _map842.size; ++_i845) { - _key817 = iprot.readString(); - _val818 = new Type(); - _val818.read(iprot); - struct.success.put(_key817, _val818); + _key843 = iprot.readString(); + _val844 = new Type(); + _val844.read(iprot); + struct.success.put(_key843, _val844); } } struct.setSuccessIsSet(true); @@ -40170,14 +40624,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 _list820 = iprot.readListBegin(); - struct.success = new ArrayList(_list820.size); - FieldSchema _elem821; - for (int _i822 = 0; _i822 < _list820.size; ++_i822) + org.apache.thrift.protocol.TList _list846 = iprot.readListBegin(); + struct.success = new ArrayList(_list846.size); + FieldSchema _elem847; + for (int _i848 = 0; _i848 < _list846.size; ++_i848) { - _elem821 = new FieldSchema(); - _elem821.read(iprot); - struct.success.add(_elem821); + _elem847 = new FieldSchema(); + _elem847.read(iprot); + struct.success.add(_elem847); } iprot.readListEnd(); } @@ -40230,9 +40684,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 _iter823 : struct.success) + for (FieldSchema _iter849 : struct.success) { - _iter823.write(oprot); + _iter849.write(oprot); } oprot.writeListEnd(); } @@ -40287,9 +40741,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter824 : struct.success) + for (FieldSchema _iter850 : struct.success) { - _iter824.write(oprot); + _iter850.write(oprot); } } } @@ -40310,14 +40764,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 _list825 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list825.size); - FieldSchema _elem826; - for (int _i827 = 0; _i827 < _list825.size; ++_i827) + org.apache.thrift.protocol.TList _list851 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list851.size); + FieldSchema _elem852; + for (int _i853 = 0; _i853 < _list851.size; ++_i853) { - _elem826 = new FieldSchema(); - _elem826.read(iprot); - struct.success.add(_elem826); + _elem852 = new FieldSchema(); + _elem852.read(iprot); + struct.success.add(_elem852); } } struct.setSuccessIsSet(true); @@ -41471,14 +41925,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 _list828 = iprot.readListBegin(); - struct.success = new ArrayList(_list828.size); - FieldSchema _elem829; - for (int _i830 = 0; _i830 < _list828.size; ++_i830) + org.apache.thrift.protocol.TList _list854 = iprot.readListBegin(); + struct.success = new ArrayList(_list854.size); + FieldSchema _elem855; + for (int _i856 = 0; _i856 < _list854.size; ++_i856) { - _elem829 = new FieldSchema(); - _elem829.read(iprot); - struct.success.add(_elem829); + _elem855 = new FieldSchema(); + _elem855.read(iprot); + struct.success.add(_elem855); } iprot.readListEnd(); } @@ -41531,9 +41985,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 _iter831 : struct.success) + for (FieldSchema _iter857 : struct.success) { - _iter831.write(oprot); + _iter857.write(oprot); } oprot.writeListEnd(); } @@ -41588,9 +42042,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter832 : struct.success) + for (FieldSchema _iter858 : struct.success) { - _iter832.write(oprot); + _iter858.write(oprot); } } } @@ -41611,14 +42065,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 _list833 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list833.size); - FieldSchema _elem834; - for (int _i835 = 0; _i835 < _list833.size; ++_i835) + org.apache.thrift.protocol.TList _list859 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list859.size); + FieldSchema _elem860; + for (int _i861 = 0; _i861 < _list859.size; ++_i861) { - _elem834 = new FieldSchema(); - _elem834.read(iprot); - struct.success.add(_elem834); + _elem860 = new FieldSchema(); + _elem860.read(iprot); + struct.success.add(_elem860); } } struct.setSuccessIsSet(true); @@ -42663,14 +43117,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 _list836 = iprot.readListBegin(); - struct.success = new ArrayList(_list836.size); - FieldSchema _elem837; - for (int _i838 = 0; _i838 < _list836.size; ++_i838) + org.apache.thrift.protocol.TList _list862 = iprot.readListBegin(); + struct.success = new ArrayList(_list862.size); + FieldSchema _elem863; + for (int _i864 = 0; _i864 < _list862.size; ++_i864) { - _elem837 = new FieldSchema(); - _elem837.read(iprot); - struct.success.add(_elem837); + _elem863 = new FieldSchema(); + _elem863.read(iprot); + struct.success.add(_elem863); } iprot.readListEnd(); } @@ -42723,9 +43177,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 _iter839 : struct.success) + for (FieldSchema _iter865 : struct.success) { - _iter839.write(oprot); + _iter865.write(oprot); } oprot.writeListEnd(); } @@ -42780,9 +43234,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter840 : struct.success) + for (FieldSchema _iter866 : struct.success) { - _iter840.write(oprot); + _iter866.write(oprot); } } } @@ -42803,14 +43257,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 _list841 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list841.size); - FieldSchema _elem842; - for (int _i843 = 0; _i843 < _list841.size; ++_i843) + org.apache.thrift.protocol.TList _list867 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list867.size); + FieldSchema _elem868; + for (int _i869 = 0; _i869 < _list867.size; ++_i869) { - _elem842 = new FieldSchema(); - _elem842.read(iprot); - struct.success.add(_elem842); + _elem868 = new FieldSchema(); + _elem868.read(iprot); + struct.success.add(_elem868); } } struct.setSuccessIsSet(true); @@ -43964,14 +44418,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 _list844 = iprot.readListBegin(); - struct.success = new ArrayList(_list844.size); - FieldSchema _elem845; - for (int _i846 = 0; _i846 < _list844.size; ++_i846) + org.apache.thrift.protocol.TList _list870 = iprot.readListBegin(); + struct.success = new ArrayList(_list870.size); + FieldSchema _elem871; + for (int _i872 = 0; _i872 < _list870.size; ++_i872) { - _elem845 = new FieldSchema(); - _elem845.read(iprot); - struct.success.add(_elem845); + _elem871 = new FieldSchema(); + _elem871.read(iprot); + struct.success.add(_elem871); } iprot.readListEnd(); } @@ -44024,9 +44478,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 _iter847 : struct.success) + for (FieldSchema _iter873 : struct.success) { - _iter847.write(oprot); + _iter873.write(oprot); } oprot.writeListEnd(); } @@ -44081,9 +44535,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter848 : struct.success) + for (FieldSchema _iter874 : struct.success) { - _iter848.write(oprot); + _iter874.write(oprot); } } } @@ -44104,14 +44558,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 _list849 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list849.size); - FieldSchema _elem850; - for (int _i851 = 0; _i851 < _list849.size; ++_i851) + org.apache.thrift.protocol.TList _list875 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list875.size); + FieldSchema _elem876; + for (int _i877 = 0; _i877 < _list875.size; ++_i877) { - _elem850 = new FieldSchema(); - _elem850.read(iprot); - struct.success.add(_elem850); + _elem876 = new FieldSchema(); + _elem876.read(iprot); + struct.success.add(_elem876); } } struct.setSuccessIsSet(true); @@ -47038,14 +47492,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 _list852 = iprot.readListBegin(); - struct.primaryKeys = new ArrayList(_list852.size); - SQLPrimaryKey _elem853; - for (int _i854 = 0; _i854 < _list852.size; ++_i854) + org.apache.thrift.protocol.TList _list878 = iprot.readListBegin(); + struct.primaryKeys = new ArrayList(_list878.size); + SQLPrimaryKey _elem879; + for (int _i880 = 0; _i880 < _list878.size; ++_i880) { - _elem853 = new SQLPrimaryKey(); - _elem853.read(iprot); - struct.primaryKeys.add(_elem853); + _elem879 = new SQLPrimaryKey(); + _elem879.read(iprot); + struct.primaryKeys.add(_elem879); } iprot.readListEnd(); } @@ -47057,14 +47511,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 _list855 = iprot.readListBegin(); - struct.foreignKeys = new ArrayList(_list855.size); - SQLForeignKey _elem856; - for (int _i857 = 0; _i857 < _list855.size; ++_i857) + org.apache.thrift.protocol.TList _list881 = iprot.readListBegin(); + struct.foreignKeys = new ArrayList(_list881.size); + SQLForeignKey _elem882; + for (int _i883 = 0; _i883 < _list881.size; ++_i883) { - _elem856 = new SQLForeignKey(); - _elem856.read(iprot); - struct.foreignKeys.add(_elem856); + _elem882 = new SQLForeignKey(); + _elem882.read(iprot); + struct.foreignKeys.add(_elem882); } iprot.readListEnd(); } @@ -47076,14 +47530,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c case 4: // UNIQUE_CONSTRAINTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list858 = iprot.readListBegin(); - struct.uniqueConstraints = new ArrayList(_list858.size); - SQLUniqueConstraint _elem859; - for (int _i860 = 0; _i860 < _list858.size; ++_i860) + org.apache.thrift.protocol.TList _list884 = iprot.readListBegin(); + struct.uniqueConstraints = new ArrayList(_list884.size); + SQLUniqueConstraint _elem885; + for (int _i886 = 0; _i886 < _list884.size; ++_i886) { - _elem859 = new SQLUniqueConstraint(); - _elem859.read(iprot); - struct.uniqueConstraints.add(_elem859); + _elem885 = new SQLUniqueConstraint(); + _elem885.read(iprot); + struct.uniqueConstraints.add(_elem885); } iprot.readListEnd(); } @@ -47095,14 +47549,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c case 5: // NOT_NULL_CONSTRAINTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list861 = iprot.readListBegin(); - struct.notNullConstraints = new ArrayList(_list861.size); - SQLNotNullConstraint _elem862; - for (int _i863 = 0; _i863 < _list861.size; ++_i863) + org.apache.thrift.protocol.TList _list887 = iprot.readListBegin(); + struct.notNullConstraints = new ArrayList(_list887.size); + SQLNotNullConstraint _elem888; + for (int _i889 = 0; _i889 < _list887.size; ++_i889) { - _elem862 = new SQLNotNullConstraint(); - _elem862.read(iprot); - struct.notNullConstraints.add(_elem862); + _elem888 = new SQLNotNullConstraint(); + _elem888.read(iprot); + struct.notNullConstraints.add(_elem888); } iprot.readListEnd(); } @@ -47133,9 +47587,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 _iter864 : struct.primaryKeys) + for (SQLPrimaryKey _iter890 : struct.primaryKeys) { - _iter864.write(oprot); + _iter890.write(oprot); } oprot.writeListEnd(); } @@ -47145,9 +47599,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 _iter865 : struct.foreignKeys) + for (SQLForeignKey _iter891 : struct.foreignKeys) { - _iter865.write(oprot); + _iter891.write(oprot); } oprot.writeListEnd(); } @@ -47157,9 +47611,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(UNIQUE_CONSTRAINTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.uniqueConstraints.size())); - for (SQLUniqueConstraint _iter866 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter892 : struct.uniqueConstraints) { - _iter866.write(oprot); + _iter892.write(oprot); } oprot.writeListEnd(); } @@ -47169,9 +47623,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(NOT_NULL_CONSTRAINTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.notNullConstraints.size())); - for (SQLNotNullConstraint _iter867 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter893 : struct.notNullConstraints) { - _iter867.write(oprot); + _iter893.write(oprot); } oprot.writeListEnd(); } @@ -47217,36 +47671,36 @@ public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_c if (struct.isSetPrimaryKeys()) { { oprot.writeI32(struct.primaryKeys.size()); - for (SQLPrimaryKey _iter868 : struct.primaryKeys) + for (SQLPrimaryKey _iter894 : struct.primaryKeys) { - _iter868.write(oprot); + _iter894.write(oprot); } } } if (struct.isSetForeignKeys()) { { oprot.writeI32(struct.foreignKeys.size()); - for (SQLForeignKey _iter869 : struct.foreignKeys) + for (SQLForeignKey _iter895 : struct.foreignKeys) { - _iter869.write(oprot); + _iter895.write(oprot); } } } if (struct.isSetUniqueConstraints()) { { oprot.writeI32(struct.uniqueConstraints.size()); - for (SQLUniqueConstraint _iter870 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter896 : struct.uniqueConstraints) { - _iter870.write(oprot); + _iter896.write(oprot); } } } if (struct.isSetNotNullConstraints()) { { oprot.writeI32(struct.notNullConstraints.size()); - for (SQLNotNullConstraint _iter871 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter897 : struct.notNullConstraints) { - _iter871.write(oprot); + _iter897.write(oprot); } } } @@ -47263,56 +47717,56 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_co } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list872 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.primaryKeys = new ArrayList(_list872.size); - SQLPrimaryKey _elem873; - for (int _i874 = 0; _i874 < _list872.size; ++_i874) + org.apache.thrift.protocol.TList _list898 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.primaryKeys = new ArrayList(_list898.size); + SQLPrimaryKey _elem899; + for (int _i900 = 0; _i900 < _list898.size; ++_i900) { - _elem873 = new SQLPrimaryKey(); - _elem873.read(iprot); - struct.primaryKeys.add(_elem873); + _elem899 = new SQLPrimaryKey(); + _elem899.read(iprot); + struct.primaryKeys.add(_elem899); } } struct.setPrimaryKeysIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list875 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.foreignKeys = new ArrayList(_list875.size); - SQLForeignKey _elem876; - for (int _i877 = 0; _i877 < _list875.size; ++_i877) + org.apache.thrift.protocol.TList _list901 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.foreignKeys = new ArrayList(_list901.size); + SQLForeignKey _elem902; + for (int _i903 = 0; _i903 < _list901.size; ++_i903) { - _elem876 = new SQLForeignKey(); - _elem876.read(iprot); - struct.foreignKeys.add(_elem876); + _elem902 = new SQLForeignKey(); + _elem902.read(iprot); + struct.foreignKeys.add(_elem902); } } struct.setForeignKeysIsSet(true); } if (incoming.get(3)) { { - org.apache.thrift.protocol.TList _list878 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.uniqueConstraints = new ArrayList(_list878.size); - SQLUniqueConstraint _elem879; - for (int _i880 = 0; _i880 < _list878.size; ++_i880) + org.apache.thrift.protocol.TList _list904 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.uniqueConstraints = new ArrayList(_list904.size); + SQLUniqueConstraint _elem905; + for (int _i906 = 0; _i906 < _list904.size; ++_i906) { - _elem879 = new SQLUniqueConstraint(); - _elem879.read(iprot); - struct.uniqueConstraints.add(_elem879); + _elem905 = new SQLUniqueConstraint(); + _elem905.read(iprot); + struct.uniqueConstraints.add(_elem905); } } struct.setUniqueConstraintsIsSet(true); } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list881 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.notNullConstraints = new ArrayList(_list881.size); - SQLNotNullConstraint _elem882; - for (int _i883 = 0; _i883 < _list881.size; ++_i883) + org.apache.thrift.protocol.TList _list907 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.notNullConstraints = new ArrayList(_list907.size); + SQLNotNullConstraint _elem908; + for (int _i909 = 0; _i909 < _list907.size; ++_i909) { - _elem882 = new SQLNotNullConstraint(); - _elem882.read(iprot); - struct.notNullConstraints.add(_elem882); + _elem908 = new SQLNotNullConstraint(); + _elem908.read(iprot); + struct.notNullConstraints.add(_elem908); } } struct.setNotNullConstraintsIsSet(true); @@ -54804,13 +55258,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 _list884 = iprot.readListBegin(); - struct.partNames = new ArrayList(_list884.size); - String _elem885; - for (int _i886 = 0; _i886 < _list884.size; ++_i886) + org.apache.thrift.protocol.TList _list910 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list910.size); + String _elem911; + for (int _i912 = 0; _i912 < _list910.size; ++_i912) { - _elem885 = iprot.readString(); - struct.partNames.add(_elem885); + _elem911 = iprot.readString(); + struct.partNames.add(_elem911); } iprot.readListEnd(); } @@ -54846,9 +55300,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 _iter887 : struct.partNames) + for (String _iter913 : struct.partNames) { - oprot.writeString(_iter887); + oprot.writeString(_iter913); } oprot.writeListEnd(); } @@ -54891,9 +55345,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, truncate_table_args if (struct.isSetPartNames()) { { oprot.writeI32(struct.partNames.size()); - for (String _iter888 : struct.partNames) + for (String _iter914 : struct.partNames) { - oprot.writeString(_iter888); + oprot.writeString(_iter914); } } } @@ -54913,13 +55367,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list889 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partNames = new ArrayList(_list889.size); - String _elem890; - for (int _i891 = 0; _i891 < _list889.size; ++_i891) + org.apache.thrift.protocol.TList _list915 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partNames = new ArrayList(_list915.size); + String _elem916; + for (int _i917 = 0; _i917 < _list915.size; ++_i917) { - _elem890 = iprot.readString(); - struct.partNames.add(_elem890); + _elem916 = iprot.readString(); + struct.partNames.add(_elem916); } } struct.setPartNamesIsSet(true); @@ -56144,13 +56598,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 _list892 = iprot.readListBegin(); - struct.success = new ArrayList(_list892.size); - String _elem893; - for (int _i894 = 0; _i894 < _list892.size; ++_i894) + org.apache.thrift.protocol.TList _list918 = iprot.readListBegin(); + struct.success = new ArrayList(_list918.size); + String _elem919; + for (int _i920 = 0; _i920 < _list918.size; ++_i920) { - _elem893 = iprot.readString(); - struct.success.add(_elem893); + _elem919 = iprot.readString(); + struct.success.add(_elem919); } iprot.readListEnd(); } @@ -56185,9 +56639,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 _iter895 : struct.success) + for (String _iter921 : struct.success) { - oprot.writeString(_iter895); + oprot.writeString(_iter921); } oprot.writeListEnd(); } @@ -56226,9 +56680,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter896 : struct.success) + for (String _iter922 : struct.success) { - oprot.writeString(_iter896); + oprot.writeString(_iter922); } } } @@ -56243,13 +56697,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 _list897 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list897.size); - String _elem898; - for (int _i899 = 0; _i899 < _list897.size; ++_i899) + org.apache.thrift.protocol.TList _list923 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list923.size); + String _elem924; + for (int _i925 = 0; _i925 < _list923.size; ++_i925) { - _elem898 = iprot.readString(); - struct.success.add(_elem898); + _elem924 = iprot.readString(); + struct.success.add(_elem924); } } struct.setSuccessIsSet(true); @@ -57223,13 +57677,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 _list900 = iprot.readListBegin(); - struct.success = new ArrayList(_list900.size); - String _elem901; - for (int _i902 = 0; _i902 < _list900.size; ++_i902) + org.apache.thrift.protocol.TList _list926 = iprot.readListBegin(); + struct.success = new ArrayList(_list926.size); + String _elem927; + for (int _i928 = 0; _i928 < _list926.size; ++_i928) { - _elem901 = iprot.readString(); - struct.success.add(_elem901); + _elem927 = iprot.readString(); + struct.success.add(_elem927); } iprot.readListEnd(); } @@ -57264,9 +57718,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 _iter903 : struct.success) + for (String _iter929 : struct.success) { - oprot.writeString(_iter903); + oprot.writeString(_iter929); } oprot.writeListEnd(); } @@ -57305,9 +57759,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter904 : struct.success) + for (String _iter930 : struct.success) { - oprot.writeString(_iter904); + oprot.writeString(_iter930); } } } @@ -57322,13 +57776,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 _list905 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list905.size); - String _elem906; - for (int _i907 = 0; _i907 < _list905.size; ++_i907) + org.apache.thrift.protocol.TList _list931 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list931.size); + String _elem932; + for (int _i933 = 0; _i933 < _list931.size; ++_i933) { - _elem906 = iprot.readString(); - struct.success.add(_elem906); + _elem932 = iprot.readString(); + struct.success.add(_elem932); } } struct.setSuccessIsSet(true); @@ -57343,28 +57797,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_r } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_meta_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_table_meta_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialized_views_for_rewriting_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_materialized_views_for_rewriting_args"); - private static final org.apache.thrift.protocol.TField DB_PATTERNS_FIELD_DESC = new org.apache.thrift.protocol.TField("db_patterns", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TBL_PATTERNS_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_patterns", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField TBL_TYPES_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_types", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_meta_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_meta_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_materialized_views_for_rewriting_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_materialized_views_for_rewriting_argsTupleSchemeFactory()); } - private String db_patterns; // required - private String tbl_patterns; // required - private List tbl_types; // required + private String db_name; // 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_PATTERNS((short)1, "db_patterns"), - TBL_PATTERNS((short)2, "tbl_patterns"), - TBL_TYPES((short)3, "tbl_types"); + DB_NAME((short)1, "db_name"); private static final Map byName = new HashMap(); @@ -57379,12 +57827,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_r */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_PATTERNS - return DB_PATTERNS; - case 2: // TBL_PATTERNS - return TBL_PATTERNS; - case 3: // TBL_TYPES - return TBL_TYPES; + case 1: // DB_NAME + return DB_NAME; default: return null; } @@ -57428,165 +57872,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.DB_PATTERNS, new org.apache.thrift.meta_data.FieldMetaData("db_patterns", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_PATTERNS, new org.apache.thrift.meta_data.FieldMetaData("tbl_patterns", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_TYPES, new org.apache.thrift.meta_data.FieldMetaData("tbl_types", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_meta_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_materialized_views_for_rewriting_args.class, metaDataMap); } - public get_table_meta_args() { + public get_materialized_views_for_rewriting_args() { } - public get_table_meta_args( - String db_patterns, - String tbl_patterns, - List tbl_types) + public get_materialized_views_for_rewriting_args( + String db_name) { this(); - this.db_patterns = db_patterns; - this.tbl_patterns = tbl_patterns; - this.tbl_types = tbl_types; + this.db_name = db_name; } /** * Performs a deep copy on other. */ - public get_table_meta_args(get_table_meta_args other) { - if (other.isSetDb_patterns()) { - this.db_patterns = other.db_patterns; - } - if (other.isSetTbl_patterns()) { - this.tbl_patterns = other.tbl_patterns; - } - if (other.isSetTbl_types()) { - List __this__tbl_types = new ArrayList(other.tbl_types); - this.tbl_types = __this__tbl_types; + public get_materialized_views_for_rewriting_args(get_materialized_views_for_rewriting_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; } } - public get_table_meta_args deepCopy() { - return new get_table_meta_args(this); + public get_materialized_views_for_rewriting_args deepCopy() { + return new get_materialized_views_for_rewriting_args(this); } @Override public void clear() { - this.db_patterns = null; - this.tbl_patterns = null; - this.tbl_types = null; - } - - public String getDb_patterns() { - return this.db_patterns; - } - - public void setDb_patterns(String db_patterns) { - this.db_patterns = db_patterns; - } - - public void unsetDb_patterns() { - this.db_patterns = null; - } - - /** Returns true if field db_patterns is set (has been assigned a value) and false otherwise */ - public boolean isSetDb_patterns() { - return this.db_patterns != null; - } - - public void setDb_patternsIsSet(boolean value) { - if (!value) { - this.db_patterns = null; - } - } - - public String getTbl_patterns() { - return this.tbl_patterns; - } - - public void setTbl_patterns(String tbl_patterns) { - this.tbl_patterns = tbl_patterns; - } - - public void unsetTbl_patterns() { - this.tbl_patterns = null; - } - - /** Returns true if field tbl_patterns is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl_patterns() { - return this.tbl_patterns != null; - } - - public void setTbl_patternsIsSet(boolean value) { - if (!value) { - this.tbl_patterns = null; - } - } - - public int getTbl_typesSize() { - return (this.tbl_types == null) ? 0 : this.tbl_types.size(); - } - - public java.util.Iterator getTbl_typesIterator() { - return (this.tbl_types == null) ? null : this.tbl_types.iterator(); - } - - public void addToTbl_types(String elem) { - if (this.tbl_types == null) { - this.tbl_types = new ArrayList(); - } - this.tbl_types.add(elem); + this.db_name = null; } - public List getTbl_types() { - return this.tbl_types; + public String getDb_name() { + return this.db_name; } - public void setTbl_types(List tbl_types) { - this.tbl_types = tbl_types; + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void unsetTbl_types() { - this.tbl_types = null; + public void unsetDb_name() { + this.db_name = null; } - /** Returns true if field tbl_types is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl_types() { - return this.tbl_types != null; + /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_name() { + return this.db_name != null; } - public void setTbl_typesIsSet(boolean value) { + public void setDb_nameIsSet(boolean value) { if (!value) { - this.tbl_types = null; + this.db_name = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_PATTERNS: - if (value == null) { - unsetDb_patterns(); - } else { - setDb_patterns((String)value); - } - break; - - case TBL_PATTERNS: - if (value == null) { - unsetTbl_patterns(); - } else { - setTbl_patterns((String)value); - } - break; - - case TBL_TYPES: + case DB_NAME: if (value == null) { - unsetTbl_types(); + unsetDb_name(); } else { - setTbl_types((List)value); + setDb_name((String)value); } break; @@ -57595,14 +57944,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_PATTERNS: - return getDb_patterns(); - - case TBL_PATTERNS: - return getTbl_patterns(); - - case TBL_TYPES: - return getTbl_types(); + case DB_NAME: + return getDb_name(); } throw new IllegalStateException(); @@ -57615,12 +57958,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_PATTERNS: - return isSetDb_patterns(); - case TBL_PATTERNS: - return isSetTbl_patterns(); - case TBL_TYPES: - return isSetTbl_types(); + case DB_NAME: + return isSetDb_name(); } throw new IllegalStateException(); } @@ -57629,39 +57968,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_meta_args) - return this.equals((get_table_meta_args)that); + if (that instanceof get_materialized_views_for_rewriting_args) + return this.equals((get_materialized_views_for_rewriting_args)that); return false; } - public boolean equals(get_table_meta_args that) { + public boolean equals(get_materialized_views_for_rewriting_args that) { if (that == null) return false; - boolean this_present_db_patterns = true && this.isSetDb_patterns(); - boolean that_present_db_patterns = true && that.isSetDb_patterns(); - if (this_present_db_patterns || that_present_db_patterns) { - if (!(this_present_db_patterns && that_present_db_patterns)) - return false; - if (!this.db_patterns.equals(that.db_patterns)) - return false; - } - - boolean this_present_tbl_patterns = true && this.isSetTbl_patterns(); - boolean that_present_tbl_patterns = true && that.isSetTbl_patterns(); - if (this_present_tbl_patterns || that_present_tbl_patterns) { - if (!(this_present_tbl_patterns && that_present_tbl_patterns)) - return false; - if (!this.tbl_patterns.equals(that.tbl_patterns)) - return false; - } - - boolean this_present_tbl_types = true && this.isSetTbl_types(); - boolean that_present_tbl_types = true && that.isSetTbl_types(); - if (this_present_tbl_types || that_present_tbl_types) { - if (!(this_present_tbl_types && that_present_tbl_types)) + boolean this_present_db_name = true && this.isSetDb_name(); + boolean that_present_db_name = true && that.isSetDb_name(); + if (this_present_db_name || that_present_db_name) { + if (!(this_present_db_name && that_present_db_name)) return false; - if (!this.tbl_types.equals(that.tbl_types)) + if (!this.db_name.equals(that.db_name)) return false; } @@ -57672,58 +57993,28 @@ public boolean equals(get_table_meta_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_db_patterns = true && (isSetDb_patterns()); - list.add(present_db_patterns); - if (present_db_patterns) - list.add(db_patterns); - - boolean present_tbl_patterns = true && (isSetTbl_patterns()); - list.add(present_tbl_patterns); - if (present_tbl_patterns) - list.add(tbl_patterns); - - boolean present_tbl_types = true && (isSetTbl_types()); - list.add(present_tbl_types); - if (present_tbl_types) - list.add(tbl_types); + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); return list.hashCode(); } @Override - public int compareTo(get_table_meta_args other) { + public int compareTo(get_materialized_views_for_rewriting_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDb_patterns()).compareTo(other.isSetDb_patterns()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDb_patterns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_patterns, other.db_patterns); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTbl_patterns()).compareTo(other.isSetTbl_patterns()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTbl_patterns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_patterns, other.tbl_patterns); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTbl_types()).compareTo(other.isSetTbl_types()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetTbl_types()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_types, other.tbl_types); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); if (lastComparison != 0) { return lastComparison; } @@ -57745,30 +58036,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_meta_args("); + StringBuilder sb = new StringBuilder("get_materialized_views_for_rewriting_args("); boolean first = true; - sb.append("db_patterns:"); - if (this.db_patterns == null) { - sb.append("null"); - } else { - sb.append(this.db_patterns); - } - first = false; - if (!first) sb.append(", "); - sb.append("tbl_patterns:"); - if (this.tbl_patterns == null) { - sb.append("null"); - } else { - sb.append(this.tbl_patterns); - } - first = false; - if (!first) sb.append(", "); - sb.append("tbl_types:"); - if (this.tbl_types == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.tbl_types); + sb.append(this.db_name); } first = false; sb.append(")"); @@ -57796,15 +58071,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_meta_argsStandardSchemeFactory implements SchemeFactory { - public get_table_meta_argsStandardScheme getScheme() { - return new get_table_meta_argsStandardScheme(); + private static class get_materialized_views_for_rewriting_argsStandardSchemeFactory implements SchemeFactory { + public get_materialized_views_for_rewriting_argsStandardScheme getScheme() { + return new get_materialized_views_for_rewriting_argsStandardScheme(); } } - private static class get_table_meta_argsStandardScheme extends StandardScheme { + private static class get_materialized_views_for_rewriting_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_views_for_rewriting_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -57814,36 +58089,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_args break; } switch (schemeField.id) { - case 1: // DB_PATTERNS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_patterns = iprot.readString(); - struct.setDb_patternsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TBL_PATTERNS + case 1: // DB_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_patterns = iprot.readString(); - struct.setTbl_patternsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // TBL_TYPES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list908 = iprot.readListBegin(); - struct.tbl_types = new ArrayList(_list908.size); - String _elem909; - for (int _i910 = 0; _i910 < _list908.size; ++_i910) - { - _elem909 = iprot.readString(); - struct.tbl_types.add(_elem909); - } - iprot.readListEnd(); - } - struct.setTbl_typesIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -57857,30 +58106,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialized_views_for_rewriting_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.db_patterns != null) { - oprot.writeFieldBegin(DB_PATTERNS_FIELD_DESC); - oprot.writeString(struct.db_patterns); - oprot.writeFieldEnd(); - } - if (struct.tbl_patterns != null) { - oprot.writeFieldBegin(TBL_PATTERNS_FIELD_DESC); - oprot.writeString(struct.tbl_patterns); - oprot.writeFieldEnd(); - } - if (struct.tbl_types != null) { - 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 _iter911 : struct.tbl_types) - { - oprot.writeString(_iter911); - } - oprot.writeListEnd(); - } + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -57889,88 +58121,53 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_arg } - private static class get_table_meta_argsTupleSchemeFactory implements SchemeFactory { - public get_table_meta_argsTupleScheme getScheme() { - return new get_table_meta_argsTupleScheme(); + private static class get_materialized_views_for_rewriting_argsTupleSchemeFactory implements SchemeFactory { + public get_materialized_views_for_rewriting_argsTupleScheme getScheme() { + return new get_materialized_views_for_rewriting_argsTupleScheme(); } } - private static class get_table_meta_argsTupleScheme extends TupleScheme { + private static class get_materialized_views_for_rewriting_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_materialized_views_for_rewriting_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_patterns()) { + if (struct.isSetDb_name()) { optionals.set(0); } - if (struct.isSetTbl_patterns()) { - optionals.set(1); - } - if (struct.isSetTbl_types()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetDb_patterns()) { - oprot.writeString(struct.db_patterns); - } - if (struct.isSetTbl_patterns()) { - oprot.writeString(struct.tbl_patterns); - } - if (struct.isSetTbl_types()) { - { - oprot.writeI32(struct.tbl_types.size()); - for (String _iter912 : struct.tbl_types) - { - oprot.writeString(_iter912); - } - } + oprot.writeBitSet(optionals, 1); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_materialized_views_for_rewriting_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.db_patterns = iprot.readString(); - struct.setDb_patternsIsSet(true); - } - if (incoming.get(1)) { - struct.tbl_patterns = iprot.readString(); - struct.setTbl_patternsIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list913 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_types = new ArrayList(_list913.size); - String _elem914; - for (int _i915 = 0; _i915 < _list913.size; ++_i915) - { - _elem914 = iprot.readString(); - struct.tbl_types.add(_elem914); - } - } - struct.setTbl_typesIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_meta_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_table_meta_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialized_views_for_rewriting_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_materialized_views_for_rewriting_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_meta_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_meta_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_materialized_views_for_rewriting_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_materialized_views_for_rewriting_resultTupleSchemeFactory()); } - private List success; // required + private List success; // required private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -58040,18 +58237,18 @@ public String getFieldName() { 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.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TableMeta.class)))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); 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))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_meta_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_materialized_views_for_rewriting_result.class, metaDataMap); } - public get_table_meta_result() { + public get_materialized_views_for_rewriting_result() { } - public get_table_meta_result( - List success, + public get_materialized_views_for_rewriting_result( + List success, MetaException o1) { this(); @@ -58062,12 +58259,9 @@ public get_table_meta_result( /** * Performs a deep copy on other. */ - public get_table_meta_result(get_table_meta_result other) { + public get_materialized_views_for_rewriting_result(get_materialized_views_for_rewriting_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (TableMeta other_element : other.success) { - __this__success.add(new TableMeta(other_element)); - } + List __this__success = new ArrayList(other.success); this.success = __this__success; } if (other.isSetO1()) { @@ -58075,8 +58269,8 @@ public get_table_meta_result(get_table_meta_result other) { } } - public get_table_meta_result deepCopy() { - return new get_table_meta_result(this); + public get_materialized_views_for_rewriting_result deepCopy() { + return new get_materialized_views_for_rewriting_result(this); } @Override @@ -58089,22 +58283,22 @@ public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(TableMeta elem) { + public void addToSuccess(String elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(List success) { this.success = success; } @@ -58152,7 +58346,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -58198,12 +58392,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_meta_result) - return this.equals((get_table_meta_result)that); + if (that instanceof get_materialized_views_for_rewriting_result) + return this.equals((get_materialized_views_for_rewriting_result)that); return false; } - public boolean equals(get_table_meta_result that) { + public boolean equals(get_materialized_views_for_rewriting_result that) { if (that == null) return false; @@ -58246,7 +58440,7 @@ public int hashCode() { } @Override - public int compareTo(get_table_meta_result other) { + public int compareTo(get_materialized_views_for_rewriting_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -58290,7 +58484,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_meta_result("); + StringBuilder sb = new StringBuilder("get_materialized_views_for_rewriting_result("); boolean first = true; sb.append("success:"); @@ -58333,15 +58527,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_meta_resultStandardSchemeFactory implements SchemeFactory { - public get_table_meta_resultStandardScheme getScheme() { - return new get_table_meta_resultStandardScheme(); + private static class get_materialized_views_for_rewriting_resultStandardSchemeFactory implements SchemeFactory { + public get_materialized_views_for_rewriting_resultStandardScheme getScheme() { + return new get_materialized_views_for_rewriting_resultStandardScheme(); } } - private static class get_table_meta_resultStandardScheme extends StandardScheme { + private static class get_materialized_views_for_rewriting_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_views_for_rewriting_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -58354,14 +58548,13 @@ 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 _list916 = iprot.readListBegin(); - struct.success = new ArrayList(_list916.size); - TableMeta _elem917; - for (int _i918 = 0; _i918 < _list916.size; ++_i918) + org.apache.thrift.protocol.TList _list934 = iprot.readListBegin(); + struct.success = new ArrayList(_list934.size); + String _elem935; + for (int _i936 = 0; _i936 < _list934.size; ++_i936) { - _elem917 = new TableMeta(); - _elem917.read(iprot); - struct.success.add(_elem917); + _elem935 = iprot.readString(); + struct.success.add(_elem935); } iprot.readListEnd(); } @@ -58388,17 +58581,17 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_resu struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialized_views_for_rewriting_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (TableMeta _iter919 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter937 : struct.success) { - _iter919.write(oprot); + oprot.writeString(_iter937); } oprot.writeListEnd(); } @@ -58415,16 +58608,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_res } - private static class get_table_meta_resultTupleSchemeFactory implements SchemeFactory { - public get_table_meta_resultTupleScheme getScheme() { - return new get_table_meta_resultTupleScheme(); + private static class get_materialized_views_for_rewriting_resultTupleSchemeFactory implements SchemeFactory { + public get_materialized_views_for_rewriting_resultTupleScheme getScheme() { + return new get_materialized_views_for_rewriting_resultTupleScheme(); } } - private static class get_table_meta_resultTupleScheme extends TupleScheme { + private static class get_materialized_views_for_rewriting_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_materialized_views_for_rewriting_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -58437,9 +58630,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (TableMeta _iter920 : struct.success) + for (String _iter938 : struct.success) { - _iter920.write(oprot); + oprot.writeString(_iter938); } } } @@ -58449,19 +58642,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resu } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_materialized_views_for_rewriting_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list921 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list921.size); - TableMeta _elem922; - for (int _i923 = 0; _i923 < _list921.size; ++_i923) + org.apache.thrift.protocol.TList _list939 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list939.size); + String _elem940; + for (int _i941 = 0; _i941 < _list939.size; ++_i941) { - _elem922 = new TableMeta(); - _elem922.read(iprot); - struct.success.add(_elem922); + _elem940 = iprot.readString(); + struct.success.add(_elem940); } } struct.setSuccessIsSet(true); @@ -58476,22 +58668,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resul } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_all_tables_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_all_tables_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_meta_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_table_meta_args"); - private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField DB_PATTERNS_FIELD_DESC = new org.apache.thrift.protocol.TField("db_patterns", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_PATTERNS_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_patterns", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField TBL_TYPES_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_types", org.apache.thrift.protocol.TType.LIST, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_all_tables_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_all_tables_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_meta_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_meta_argsTupleSchemeFactory()); } - private String db_name; // required + private String db_patterns; // required + private String tbl_patterns; // required + private List tbl_types; // 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, "db_name"); + DB_PATTERNS((short)1, "db_patterns"), + TBL_PATTERNS((short)2, "tbl_patterns"), + TBL_TYPES((short)3, "tbl_types"); private static final Map byName = new HashMap(); @@ -58506,8 +58704,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resul */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; + case 1: // DB_PATTERNS + return DB_PATTERNS; + case 2: // TBL_PATTERNS + return TBL_PATTERNS; + case 3: // TBL_TYPES + return TBL_TYPES; default: return null; } @@ -58551,70 +58753,165 @@ 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.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.DB_PATTERNS, new org.apache.thrift.meta_data.FieldMetaData("db_patterns", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_PATTERNS, new org.apache.thrift.meta_data.FieldMetaData("tbl_patterns", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_TYPES, new org.apache.thrift.meta_data.FieldMetaData("tbl_types", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_tables_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_meta_args.class, metaDataMap); } - public get_all_tables_args() { + public get_table_meta_args() { } - public get_all_tables_args( - String db_name) + public get_table_meta_args( + String db_patterns, + String tbl_patterns, + List tbl_types) { this(); - this.db_name = db_name; + this.db_patterns = db_patterns; + this.tbl_patterns = tbl_patterns; + this.tbl_types = tbl_types; } /** * Performs a deep copy on other. */ - public get_all_tables_args(get_all_tables_args other) { - if (other.isSetDb_name()) { - this.db_name = other.db_name; + public get_table_meta_args(get_table_meta_args other) { + if (other.isSetDb_patterns()) { + this.db_patterns = other.db_patterns; + } + if (other.isSetTbl_patterns()) { + this.tbl_patterns = other.tbl_patterns; + } + if (other.isSetTbl_types()) { + List __this__tbl_types = new ArrayList(other.tbl_types); + this.tbl_types = __this__tbl_types; } } - public get_all_tables_args deepCopy() { - return new get_all_tables_args(this); + public get_table_meta_args deepCopy() { + return new get_table_meta_args(this); } @Override public void clear() { - this.db_name = null; + this.db_patterns = null; + this.tbl_patterns = null; + this.tbl_types = null; } - public String getDb_name() { - return this.db_name; + public String getDb_patterns() { + return this.db_patterns; } - public void setDb_name(String db_name) { - this.db_name = db_name; + public void setDb_patterns(String db_patterns) { + this.db_patterns = db_patterns; } - public void unsetDb_name() { - this.db_name = null; + public void unsetDb_patterns() { + this.db_patterns = null; } - /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ - public boolean isSetDb_name() { - return this.db_name != null; + /** Returns true if field db_patterns is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_patterns() { + return this.db_patterns != null; } - public void setDb_nameIsSet(boolean value) { + public void setDb_patternsIsSet(boolean value) { if (!value) { - this.db_name = null; + this.db_patterns = null; + } + } + + public String getTbl_patterns() { + return this.tbl_patterns; + } + + public void setTbl_patterns(String tbl_patterns) { + this.tbl_patterns = tbl_patterns; + } + + public void unsetTbl_patterns() { + this.tbl_patterns = null; + } + + /** Returns true if field tbl_patterns is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_patterns() { + return this.tbl_patterns != null; + } + + public void setTbl_patternsIsSet(boolean value) { + if (!value) { + this.tbl_patterns = null; + } + } + + public int getTbl_typesSize() { + return (this.tbl_types == null) ? 0 : this.tbl_types.size(); + } + + public java.util.Iterator getTbl_typesIterator() { + return (this.tbl_types == null) ? null : this.tbl_types.iterator(); + } + + public void addToTbl_types(String elem) { + if (this.tbl_types == null) { + this.tbl_types = new ArrayList(); + } + this.tbl_types.add(elem); + } + + public List getTbl_types() { + return this.tbl_types; + } + + public void setTbl_types(List tbl_types) { + this.tbl_types = tbl_types; + } + + public void unsetTbl_types() { + this.tbl_types = null; + } + + /** Returns true if field tbl_types is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_types() { + return this.tbl_types != null; + } + + public void setTbl_typesIsSet(boolean value) { + if (!value) { + this.tbl_types = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_NAME: + case DB_PATTERNS: if (value == null) { - unsetDb_name(); + unsetDb_patterns(); } else { - setDb_name((String)value); + setDb_patterns((String)value); + } + break; + + case TBL_PATTERNS: + if (value == null) { + unsetTbl_patterns(); + } else { + setTbl_patterns((String)value); + } + break; + + case TBL_TYPES: + if (value == null) { + unsetTbl_types(); + } else { + setTbl_types((List)value); } break; @@ -58623,8 +58920,14 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); + case DB_PATTERNS: + return getDb_patterns(); + + case TBL_PATTERNS: + return getTbl_patterns(); + + case TBL_TYPES: + return getTbl_types(); } throw new IllegalStateException(); @@ -58637,8 +58940,12 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); + case DB_PATTERNS: + return isSetDb_patterns(); + case TBL_PATTERNS: + return isSetTbl_patterns(); + case TBL_TYPES: + return isSetTbl_types(); } throw new IllegalStateException(); } @@ -58647,21 +58954,39 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_all_tables_args) - return this.equals((get_all_tables_args)that); + if (that instanceof get_table_meta_args) + return this.equals((get_table_meta_args)that); return false; } - public boolean equals(get_all_tables_args that) { + public boolean equals(get_table_meta_args that) { if (that == null) return false; - boolean this_present_db_name = true && this.isSetDb_name(); - boolean that_present_db_name = true && that.isSetDb_name(); - if (this_present_db_name || that_present_db_name) { - if (!(this_present_db_name && that_present_db_name)) + boolean this_present_db_patterns = true && this.isSetDb_patterns(); + boolean that_present_db_patterns = true && that.isSetDb_patterns(); + if (this_present_db_patterns || that_present_db_patterns) { + if (!(this_present_db_patterns && that_present_db_patterns)) return false; - if (!this.db_name.equals(that.db_name)) + if (!this.db_patterns.equals(that.db_patterns)) + return false; + } + + boolean this_present_tbl_patterns = true && this.isSetTbl_patterns(); + boolean that_present_tbl_patterns = true && that.isSetTbl_patterns(); + if (this_present_tbl_patterns || that_present_tbl_patterns) { + if (!(this_present_tbl_patterns && that_present_tbl_patterns)) + return false; + if (!this.tbl_patterns.equals(that.tbl_patterns)) + return false; + } + + boolean this_present_tbl_types = true && this.isSetTbl_types(); + boolean that_present_tbl_types = true && that.isSetTbl_types(); + if (this_present_tbl_types || that_present_tbl_types) { + if (!(this_present_tbl_types && that_present_tbl_types)) + return false; + if (!this.tbl_types.equals(that.tbl_types)) return false; } @@ -58672,28 +58997,58 @@ public boolean equals(get_all_tables_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); - if (present_db_name) - list.add(db_name); + boolean present_db_patterns = true && (isSetDb_patterns()); + list.add(present_db_patterns); + if (present_db_patterns) + list.add(db_patterns); + + boolean present_tbl_patterns = true && (isSetTbl_patterns()); + list.add(present_tbl_patterns); + if (present_tbl_patterns) + list.add(tbl_patterns); + + boolean present_tbl_types = true && (isSetTbl_types()); + list.add(present_tbl_types); + if (present_tbl_types) + list.add(tbl_types); return list.hashCode(); } @Override - public int compareTo(get_all_tables_args other) { + public int compareTo(get_table_meta_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_patterns()).compareTo(other.isSetDb_patterns()); if (lastComparison != 0) { return lastComparison; } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (isSetDb_patterns()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_patterns, other.db_patterns); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_patterns()).compareTo(other.isSetTbl_patterns()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_patterns()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_patterns, other.tbl_patterns); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_types()).compareTo(other.isSetTbl_types()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_types()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_types, other.tbl_types); if (lastComparison != 0) { return lastComparison; } @@ -58715,14 +59070,30 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_all_tables_args("); + StringBuilder sb = new StringBuilder("get_table_meta_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { + sb.append("db_patterns:"); + if (this.db_patterns == null) { sb.append("null"); } else { - sb.append(this.db_name); + sb.append(this.db_patterns); + } + first = false; + if (!first) sb.append(", "); + sb.append("tbl_patterns:"); + if (this.tbl_patterns == null) { + sb.append("null"); + } else { + sb.append(this.tbl_patterns); + } + first = false; + if (!first) sb.append(", "); + sb.append("tbl_types:"); + if (this.tbl_types == null) { + sb.append("null"); + } else { + sb.append(this.tbl_types); } first = false; sb.append(")"); @@ -58750,15 +59121,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_all_tables_argsStandardSchemeFactory implements SchemeFactory { - public get_all_tables_argsStandardScheme getScheme() { - return new get_all_tables_argsStandardScheme(); + private static class get_table_meta_argsStandardSchemeFactory implements SchemeFactory { + public get_table_meta_argsStandardScheme getScheme() { + return new get_table_meta_argsStandardScheme(); } } - private static class get_all_tables_argsStandardScheme extends StandardScheme { + private static class get_table_meta_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -58768,10 +59139,36 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_args break; } switch (schemeField.id) { - case 1: // DB_NAME + case 1: // DB_PATTERNS if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); + struct.db_patterns = iprot.readString(); + struct.setDb_patternsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TBL_PATTERNS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tbl_patterns = iprot.readString(); + struct.setTbl_patternsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TBL_TYPES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list942 = iprot.readListBegin(); + struct.tbl_types = new ArrayList(_list942.size); + String _elem943; + for (int _i944 = 0; _i944 < _list942.size; ++_i944) + { + _elem943 = iprot.readString(); + struct.tbl_types.add(_elem943); + } + iprot.readListEnd(); + } + struct.setTbl_typesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -58785,13 +59182,30 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.db_name != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.db_name); + if (struct.db_patterns != null) { + oprot.writeFieldBegin(DB_PATTERNS_FIELD_DESC); + oprot.writeString(struct.db_patterns); + oprot.writeFieldEnd(); + } + if (struct.tbl_patterns != null) { + oprot.writeFieldBegin(TBL_PATTERNS_FIELD_DESC); + oprot.writeString(struct.tbl_patterns); + oprot.writeFieldEnd(); + } + if (struct.tbl_types != null) { + 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 _iter945 : struct.tbl_types) + { + oprot.writeString(_iter945); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -58800,53 +59214,88 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_arg } - private static class get_all_tables_argsTupleSchemeFactory implements SchemeFactory { - public get_all_tables_argsTupleScheme getScheme() { - return new get_all_tables_argsTupleScheme(); + private static class get_table_meta_argsTupleSchemeFactory implements SchemeFactory { + public get_table_meta_argsTupleScheme getScheme() { + return new get_table_meta_argsTupleScheme(); } } - private static class get_all_tables_argsTupleScheme extends TupleScheme { + private static class get_table_meta_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetDb_patterns()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); + if (struct.isSetTbl_patterns()) { + optionals.set(1); + } + if (struct.isSetTbl_types()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetDb_patterns()) { + oprot.writeString(struct.db_patterns); + } + if (struct.isSetTbl_patterns()) { + oprot.writeString(struct.tbl_patterns); + } + if (struct.isSetTbl_types()) { + { + oprot.writeI32(struct.tbl_types.size()); + for (String _iter946 : struct.tbl_types) + { + oprot.writeString(_iter946); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); + struct.db_patterns = iprot.readString(); + struct.setDb_patternsIsSet(true); + } + if (incoming.get(1)) { + struct.tbl_patterns = iprot.readString(); + struct.setTbl_patternsIsSet(true); + } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TList _list947 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_types = new ArrayList(_list947.size); + String _elem948; + for (int _i949 = 0; _i949 < _list947.size; ++_i949) + { + _elem948 = iprot.readString(); + struct.tbl_types.add(_elem948); + } + } + struct.setTbl_typesIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_all_tables_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_all_tables_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_meta_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_table_meta_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_all_tables_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_all_tables_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_meta_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_meta_resultTupleSchemeFactory()); } - private List success; // required + private List success; // required private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -58916,18 +59365,18 @@ public String getFieldName() { 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.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TableMeta.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))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_tables_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_meta_result.class, metaDataMap); } - public get_all_tables_result() { + public get_table_meta_result() { } - public get_all_tables_result( - List success, + public get_table_meta_result( + List success, MetaException o1) { this(); @@ -58938,9 +59387,12 @@ public get_all_tables_result( /** * Performs a deep copy on other. */ - public get_all_tables_result(get_all_tables_result other) { + public get_table_meta_result(get_table_meta_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(other.success.size()); + for (TableMeta other_element : other.success) { + __this__success.add(new TableMeta(other_element)); + } this.success = __this__success; } if (other.isSetO1()) { @@ -58948,8 +59400,8 @@ public get_all_tables_result(get_all_tables_result other) { } } - public get_all_tables_result deepCopy() { - return new get_all_tables_result(this); + public get_table_meta_result deepCopy() { + return new get_table_meta_result(this); } @Override @@ -58962,22 +59414,22 @@ public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(String elem) { + public void addToSuccess(TableMeta elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(List success) { this.success = success; } @@ -59025,7 +59477,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -59071,12 +59523,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_all_tables_result) - return this.equals((get_all_tables_result)that); + if (that instanceof get_table_meta_result) + return this.equals((get_table_meta_result)that); return false; } - public boolean equals(get_all_tables_result that) { + public boolean equals(get_table_meta_result that) { if (that == null) return false; @@ -59119,7 +59571,7 @@ public int hashCode() { } @Override - public int compareTo(get_all_tables_result other) { + public int compareTo(get_table_meta_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -59163,7 +59615,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_all_tables_result("); + StringBuilder sb = new StringBuilder("get_table_meta_result("); boolean first = true; sb.append("success:"); @@ -59206,15 +59658,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_all_tables_resultStandardSchemeFactory implements SchemeFactory { - public get_all_tables_resultStandardScheme getScheme() { - return new get_all_tables_resultStandardScheme(); + private static class get_table_meta_resultStandardSchemeFactory implements SchemeFactory { + public get_table_meta_resultStandardScheme getScheme() { + return new get_table_meta_resultStandardScheme(); } } - private static class get_all_tables_resultStandardScheme extends StandardScheme { + private static class get_table_meta_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -59227,13 +59679,14 @@ 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 _list924 = iprot.readListBegin(); - struct.success = new ArrayList(_list924.size); - String _elem925; - for (int _i926 = 0; _i926 < _list924.size; ++_i926) + org.apache.thrift.protocol.TList _list950 = iprot.readListBegin(); + struct.success = new ArrayList(_list950.size); + TableMeta _elem951; + for (int _i952 = 0; _i952 < _list950.size; ++_i952) { - _elem925 = iprot.readString(); - struct.success.add(_elem925); + _elem951 = new TableMeta(); + _elem951.read(iprot); + struct.success.add(_elem951); } iprot.readListEnd(); } @@ -59260,17 +59713,17 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_resu struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter927 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (TableMeta _iter953 : struct.success) { - oprot.writeString(_iter927); + _iter953.write(oprot); } oprot.writeListEnd(); } @@ -59287,16 +59740,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_res } - private static class get_all_tables_resultTupleSchemeFactory implements SchemeFactory { - public get_all_tables_resultTupleScheme getScheme() { - return new get_all_tables_resultTupleScheme(); + private static class get_table_meta_resultTupleSchemeFactory implements SchemeFactory { + public get_table_meta_resultTupleScheme getScheme() { + return new get_table_meta_resultTupleScheme(); } } - private static class get_all_tables_resultTupleScheme extends TupleScheme { + private static class get_table_meta_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -59309,9 +59762,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter928 : struct.success) + for (TableMeta _iter954 : struct.success) { - oprot.writeString(_iter928); + _iter954.write(oprot); } } } @@ -59321,18 +59774,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list929 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list929.size); - String _elem930; - for (int _i931 = 0; _i931 < _list929.size; ++_i931) + org.apache.thrift.protocol.TList _list955 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list955.size); + TableMeta _elem956; + for (int _i957 = 0; _i957 < _list955.size; ++_i957) { - _elem930 = iprot.readString(); - struct.success.add(_elem930); + _elem956 = new TableMeta(); + _elem956.read(iprot); + struct.success.add(_elem956); } } struct.setSuccessIsSet(true); @@ -59347,25 +59801,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resul } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_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_table_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_all_tables_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_all_tables_args"); - private static final org.apache.thrift.protocol.TField DBNAME_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("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_all_tables_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_all_tables_argsTupleSchemeFactory()); } - private String dbname; // required - private String tbl_name; // required + private String db_name; // 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 { - DBNAME((short)1, "dbname"), - TBL_NAME((short)2, "tbl_name"); + DB_NAME((short)1, "db_name"); private static final Map byName = new HashMap(); @@ -59380,10 +59831,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resul */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DBNAME - return DBNAME; - case 2: // TBL_NAME - return TBL_NAME; + case 1: // DB_NAME + return DB_NAME; default: return null; } @@ -59427,109 +59876,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.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, - 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("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_tables_args.class, metaDataMap); } - public get_table_args() { + public get_all_tables_args() { } - public get_table_args( - String dbname, - String tbl_name) + public get_all_tables_args( + String db_name) { this(); - this.dbname = dbname; - this.tbl_name = tbl_name; + this.db_name = db_name; } /** * Performs a deep copy on other. */ - public get_table_args(get_table_args other) { - if (other.isSetDbname()) { - this.dbname = other.dbname; - } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; + public get_all_tables_args(get_all_tables_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; } } - public get_table_args deepCopy() { - return new get_table_args(this); + public get_all_tables_args deepCopy() { + return new get_all_tables_args(this); } @Override public void clear() { - this.dbname = null; - this.tbl_name = 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; - } + this.db_name = null; } - public String getTbl_name() { - return this.tbl_name; + public String getDb_name() { + return this.db_name; } - public void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void unsetTbl_name() { - this.tbl_name = null; + public void unsetDb_name() { + this.db_name = null; } - /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl_name() { - return this.tbl_name != null; + /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_name() { + return this.db_name != null; } - public void setTbl_nameIsSet(boolean value) { + public void setDb_nameIsSet(boolean value) { if (!value) { - this.tbl_name = null; + this.db_name = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DBNAME: - if (value == null) { - unsetDbname(); - } else { - setDbname((String)value); - } - break; - - case TBL_NAME: + case DB_NAME: if (value == null) { - unsetTbl_name(); + unsetDb_name(); } else { - setTbl_name((String)value); + setDb_name((String)value); } break; @@ -59538,11 +59948,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DBNAME: - return getDbname(); - - case TBL_NAME: - return getTbl_name(); + case DB_NAME: + return getDb_name(); } throw new IllegalStateException(); @@ -59555,10 +59962,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DBNAME: - return isSetDbname(); - case TBL_NAME: - return isSetTbl_name(); + case DB_NAME: + return isSetDb_name(); } throw new IllegalStateException(); } @@ -59567,30 +59972,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_args) - return this.equals((get_table_args)that); + if (that instanceof get_all_tables_args) + return this.equals((get_all_tables_args)that); return false; } - public boolean equals(get_table_args that) { + public boolean equals(get_all_tables_args 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_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) + boolean this_present_db_name = true && this.isSetDb_name(); + boolean that_present_db_name = true && that.isSetDb_name(); + if (this_present_db_name || that_present_db_name) { + if (!(this_present_db_name && that_present_db_name)) return false; - if (!this.tbl_name.equals(that.tbl_name)) + if (!this.db_name.equals(that.db_name)) return false; } @@ -59601,43 +59997,28 @@ public boolean equals(get_table_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); - if (present_dbname) - list.add(dbname); - - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); return list.hashCode(); } @Override - public int compareTo(get_table_args other) { + public int compareTo(get_all_tables_args 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(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); if (lastComparison != 0) { return lastComparison; } @@ -59659,22 +60040,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_args("); + StringBuilder sb = new StringBuilder("get_all_tables_args("); 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("tbl_name:"); - if (this.tbl_name == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.tbl_name); + sb.append(this.db_name); } first = false; sb.append(")"); @@ -59702,15 +60075,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_argsStandardSchemeFactory implements SchemeFactory { - public get_table_argsStandardScheme getScheme() { - return new get_table_argsStandardScheme(); + private static class get_all_tables_argsStandardSchemeFactory implements SchemeFactory { + public get_all_tables_argsStandardScheme getScheme() { + return new get_all_tables_argsStandardScheme(); } } - private static class get_table_argsStandardScheme extends StandardScheme { + private static class get_all_tables_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -59720,18 +60093,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_args stru break; } switch (schemeField.id) { - case 1: // DBNAME - 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 + case 1: // DB_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -59745,18 +60110,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_args stru struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.dbname != null) { - oprot.writeFieldBegin(DBNAME_FIELD_DESC); - oprot.writeString(struct.dbname); - oprot.writeFieldEnd(); - } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -59765,72 +60125,59 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_args str } - private static class get_table_argsTupleSchemeFactory implements SchemeFactory { - public get_table_argsTupleScheme getScheme() { - return new get_table_argsTupleScheme(); + private static class get_all_tables_argsTupleSchemeFactory implements SchemeFactory { + public get_all_tables_argsTupleScheme getScheme() { + return new get_all_tables_argsTupleScheme(); } } - private static class get_table_argsTupleScheme extends TupleScheme { + private static class get_all_tables_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDbname()) { + if (struct.isSetDb_name()) { optionals.set(0); } - if (struct.isSetTbl_name()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetDbname()) { - oprot.writeString(struct.dbname); - } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); + oprot.writeBitSet(optionals, 1); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_args 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.dbname = iprot.readString(); - struct.setDbnameIsSet(true); - } - if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_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_table_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_all_tables_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_all_tables_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 org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); 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 get_table_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_all_tables_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_all_tables_resultTupleSchemeFactory()); } - private Table success; // required + private List success; // required private MetaException o1; // required - private NoSuchObjectException 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 { SUCCESS((short)0, "success"), - O1((short)1, "o1"), - O2((short)2, "o2"); + O1((short)1, "o1"); private static final Map byName = new HashMap(); @@ -59849,8 +60196,6 @@ public static _Fields findByThriftId(int fieldId) { return SUCCESS; case 1: // O1 return O1; - case 2: // O2 - return O2; default: return null; } @@ -59895,60 +60240,69 @@ 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, Table.class))); + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.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(get_table_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_tables_result.class, metaDataMap); } - public get_table_result() { + public get_all_tables_result() { } - public get_table_result( - Table success, - MetaException o1, - NoSuchObjectException o2) + public get_all_tables_result( + List success, + MetaException o1) { this(); this.success = success; this.o1 = o1; - this.o2 = o2; } /** * Performs a deep copy on other. */ - public get_table_result(get_table_result other) { + public get_all_tables_result(get_all_tables_result other) { if (other.isSetSuccess()) { - this.success = new Table(other.success); + List __this__success = new ArrayList(other.success); + this.success = __this__success; } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } - if (other.isSetO2()) { - this.o2 = new NoSuchObjectException(other.o2); - } } - public get_table_result deepCopy() { - return new get_table_result(this); + public get_all_tables_result deepCopy() { + return new get_all_tables_result(this); } @Override public void clear() { this.success = null; this.o1 = null; - this.o2 = null; } - public Table getSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(String elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public void setSuccess(Table success) { + public void setSuccess(List success) { this.success = success; } @@ -59990,36 +60344,13 @@ public void setO1IsSet(boolean value) { } } - public NoSuchObjectException getO2() { - return this.o2; - } - - public void setO2(NoSuchObjectException 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 SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Table)value); + setSuccess((List)value); } break; @@ -60031,14 +60362,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case O2: - if (value == null) { - unsetO2(); - } else { - setO2((NoSuchObjectException)value); - } - break; - } } @@ -60050,9 +60373,6 @@ public Object getFieldValue(_Fields field) { case O1: return getO1(); - case O2: - return getO2(); - } throw new IllegalStateException(); } @@ -60068,8 +60388,6 @@ public boolean isSet(_Fields field) { return isSetSuccess(); case O1: return isSetO1(); - case O2: - return isSetO2(); } throw new IllegalStateException(); } @@ -60078,12 +60396,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_result) - return this.equals((get_table_result)that); + if (that instanceof get_all_tables_result) + return this.equals((get_all_tables_result)that); return false; } - public boolean equals(get_table_result that) { + public boolean equals(get_all_tables_result that) { if (that == null) return false; @@ -60105,15 +60423,6 @@ public boolean equals(get_table_result that) { 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; } @@ -60131,16 +60440,11 @@ public int hashCode() { 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(get_table_result other) { + public int compareTo(get_all_tables_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -60167,16 +60471,6 @@ public int compareTo(get_table_result other) { 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; } @@ -60194,7 +60488,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_result("); + StringBuilder sb = new StringBuilder("get_all_tables_result("); boolean first = true; sb.append("success:"); @@ -60212,14 +60506,6 @@ public String toString() { 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(); } @@ -60227,9 +60513,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 { @@ -60248,15 +60531,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_resultStandardSchemeFactory implements SchemeFactory { - public get_table_resultStandardScheme getScheme() { - return new get_table_resultStandardScheme(); + private static class get_all_tables_resultStandardSchemeFactory implements SchemeFactory { + public get_all_tables_resultStandardScheme getScheme() { + return new get_all_tables_resultStandardScheme(); } } - private static class get_table_resultStandardScheme extends StandardScheme { + private static class get_all_tables_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -60267,9 +60550,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_result st } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Table(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list958 = iprot.readListBegin(); + struct.success = new ArrayList(_list958.size); + String _elem959; + for (int _i960 = 0; _i960 < _list958.size; ++_i960) + { + _elem959 = iprot.readString(); + struct.success.add(_elem959); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -60284,15 +60576,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_result st 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 NoSuchObjectException(); - 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); } @@ -60302,13 +60585,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_result st struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_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.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter961 : struct.success) + { + oprot.writeString(_iter961); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -60316,27 +60606,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_result s 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 get_table_resultTupleSchemeFactory implements SchemeFactory { - public get_table_resultTupleScheme getScheme() { - return new get_table_resultTupleScheme(); + private static class get_all_tables_resultTupleSchemeFactory implements SchemeFactory { + public get_all_tables_resultTupleScheme getScheme() { + return new get_all_tables_resultTupleScheme(); } } - private static class get_table_resultTupleScheme extends TupleScheme { + private static class get_all_tables_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -60345,28 +60630,36 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_result st if (struct.isSetO1()) { optionals.set(1); } - if (struct.isSetO2()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { - struct.success.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (String _iter962 : struct.success) + { + oprot.writeString(_iter962); + } + } } if (struct.isSetO1()) { struct.o1.write(oprot); } - if (struct.isSetO2()) { - struct.o2.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = new Table(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list963 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list963.size); + String _elem964; + for (int _i965 = 0; _i965 < _list963.size; ++_i965) + { + _elem964 = iprot.readString(); + struct.success.add(_elem964); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -60374,35 +60667,30 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_result str struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(2)) { - struct.o2 = new NoSuchObjectException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_objects_by_name_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_table_objects_by_name_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_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_table_args"); private static final org.apache.thrift.protocol.TField DBNAME_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_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_names", org.apache.thrift.protocol.TType.LIST, (short)2); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_objects_by_name_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_objects_by_name_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_argsTupleSchemeFactory()); } private String dbname; // required - private List tbl_names; // required + private String tbl_name; // 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 { DBNAME((short)1, "dbname"), - TBL_NAMES((short)2, "tbl_names"); + TBL_NAME((short)2, "tbl_name"); private static final Map byName = new HashMap(); @@ -60419,8 +60707,1045 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // DBNAME return DBNAME; - case 2: // TBL_NAMES - return TBL_NAMES; + 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.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_args.class, metaDataMap); + } + + public get_table_args() { + } + + public get_table_args( + String dbname, + String tbl_name) + { + this(); + this.dbname = dbname; + this.tbl_name = tbl_name; + } + + /** + * Performs a deep copy on other. + */ + public get_table_args(get_table_args other) { + if (other.isSetDbname()) { + this.dbname = other.dbname; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + } + + public get_table_args deepCopy() { + return new get_table_args(this); + } + + @Override + public void clear() { + this.dbname = null; + this.tbl_name = 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 getTbl_name() { + return this.tbl_name; + } + + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; + } + + public void unsetTbl_name() { + this.tbl_name = null; + } + + /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_name() { + return this.tbl_name != null; + } + + public void setTbl_nameIsSet(boolean value) { + if (!value) { + this.tbl_name = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case DBNAME: + if (value == null) { + unsetDbname(); + } else { + setDbname((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTbl_name(); + } else { + setTbl_name((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case DBNAME: + return getDbname(); + + case TBL_NAME: + return getTbl_name(); + + } + 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 DBNAME: + return isSetDbname(); + case TBL_NAME: + return isSetTbl_name(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof get_table_args) + return this.equals((get_table_args)that); + return false; + } + + public boolean equals(get_table_args 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_tbl_name = true && this.isSetTbl_name(); + boolean that_present_tbl_name = true && that.isSetTbl_name(); + if (this_present_tbl_name || that_present_tbl_name) { + if (!(this_present_tbl_name && that_present_tbl_name)) + return false; + if (!this.tbl_name.equals(that.tbl_name)) + 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_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); + + return list.hashCode(); + } + + @Override + public int compareTo(get_table_args 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(isSetTbl_name()).compareTo(other.isSetTbl_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("get_table_args("); + 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("tbl_name:"); + if (this.tbl_name == null) { + sb.append("null"); + } else { + sb.append(this.tbl_name); + } + first = false; + 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 get_table_argsStandardSchemeFactory implements SchemeFactory { + public get_table_argsStandardScheme getScheme() { + return new get_table_argsStandardScheme(); + } + } + + private static class get_table_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_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: // DBNAME + 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.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.dbname != null) { + oprot.writeFieldBegin(DBNAME_FIELD_DESC); + oprot.writeString(struct.dbname); + oprot.writeFieldEnd(); + } + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class get_table_argsTupleSchemeFactory implements SchemeFactory { + public get_table_argsTupleScheme getScheme() { + return new get_table_argsTupleScheme(); + } + } + + private static class get_table_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetDbname()) { + optionals.set(0); + } + if (struct.isSetTbl_name()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetDbname()) { + oprot.writeString(struct.dbname); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + } + if (incoming.get(1)) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_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_table_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 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 get_table_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_resultTupleSchemeFactory()); + } + + private Table success; // required + private MetaException o1; // required + private NoSuchObjectException 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 { + SUCCESS((short)0, "success"), + 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 0: // SUCCESS + return SUCCESS; + 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.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, Table.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(get_table_result.class, metaDataMap); + } + + public get_table_result() { + } + + public get_table_result( + Table success, + MetaException o1, + NoSuchObjectException o2) + { + this(); + this.success = success; + this.o1 = o1; + this.o2 = o2; + } + + /** + * Performs a deep copy on other. + */ + public get_table_result(get_table_result other) { + if (other.isSetSuccess()) { + this.success = new Table(other.success); + } + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new NoSuchObjectException(other.o2); + } + } + + public get_table_result deepCopy() { + return new get_table_result(this); + } + + @Override + public void clear() { + this.success = null; + this.o1 = null; + this.o2 = null; + } + + public Table getSuccess() { + return this.success; + } + + public void setSuccess(Table 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 MetaException getO1() { + return this.o1; + } + + public void setO1(MetaException 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 NoSuchObjectException getO2() { + return this.o2; + } + + public void setO2(NoSuchObjectException 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 SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Table)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((MetaException)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((NoSuchObjectException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + 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 SUCCESS: + return isSetSuccess(); + 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 get_table_result) + return this.equals((get_table_result)that); + return false; + } + + public boolean equals(get_table_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; + } + + 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_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + + 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(get_table_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; + } + } + 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("get_table_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); + 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(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (success != null) { + success.validate(); + } + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class get_table_resultStandardSchemeFactory implements SchemeFactory { + public get_table_resultStandardScheme getScheme() { + return new get_table_resultStandardScheme(); + } + } + + private static class get_table_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_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 Table(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new MetaException(); + 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 NoSuchObjectException(); + 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); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_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(); + } + 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 get_table_resultTupleSchemeFactory implements SchemeFactory { + public get_table_resultTupleScheme getScheme() { + return new get_table_resultTupleScheme(); + } + } + + private static class get_table_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetO1()) { + optionals.set(1); + } + if (struct.isSetO2()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.success = new Table(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(2)) { + struct.o2 = new NoSuchObjectException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_objects_by_name_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_table_objects_by_name_args"); + + private static final org.apache.thrift.protocol.TField DBNAME_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_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_names", org.apache.thrift.protocol.TType.LIST, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new get_table_objects_by_name_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_objects_by_name_argsTupleSchemeFactory()); + } + + private String dbname; // required + private List tbl_names; // 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 { + DBNAME((short)1, "dbname"), + TBL_NAMES((short)2, "tbl_names"); + + 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: // DBNAME + return DBNAME; + case 2: // TBL_NAMES + return TBL_NAMES; default: return null; } @@ -60785,13 +62110,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 _list932 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list932.size); - String _elem933; - for (int _i934 = 0; _i934 < _list932.size; ++_i934) + org.apache.thrift.protocol.TList _list966 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list966.size); + String _elem967; + for (int _i968 = 0; _i968 < _list966.size; ++_i968) { - _elem933 = iprot.readString(); - struct.tbl_names.add(_elem933); + _elem967 = iprot.readString(); + struct.tbl_names.add(_elem967); } iprot.readListEnd(); } @@ -60822,9 +62147,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 _iter935 : struct.tbl_names) + for (String _iter969 : struct.tbl_names) { - oprot.writeString(_iter935); + oprot.writeString(_iter969); } oprot.writeListEnd(); } @@ -60861,9 +62186,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 _iter936 : struct.tbl_names) + for (String _iter970 : struct.tbl_names) { - oprot.writeString(_iter936); + oprot.writeString(_iter970); } } } @@ -60879,13 +62204,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list937 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = new ArrayList(_list937.size); - String _elem938; - for (int _i939 = 0; _i939 < _list937.size; ++_i939) + org.apache.thrift.protocol.TList _list971 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list971.size); + String _elem972; + for (int _i973 = 0; _i973 < _list971.size; ++_i973) { - _elem938 = iprot.readString(); - struct.tbl_names.add(_elem938); + _elem972 = iprot.readString(); + struct.tbl_names.add(_elem972); } } struct.setTbl_namesIsSet(true); @@ -61210,14 +62535,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 _list940 = iprot.readListBegin(); - struct.success = new ArrayList
(_list940.size); - Table _elem941; - for (int _i942 = 0; _i942 < _list940.size; ++_i942) + org.apache.thrift.protocol.TList _list974 = iprot.readListBegin(); + struct.success = new ArrayList
(_list974.size); + Table _elem975; + for (int _i976 = 0; _i976 < _list974.size; ++_i976) { - _elem941 = new Table(); - _elem941.read(iprot); - struct.success.add(_elem941); + _elem975 = new Table(); + _elem975.read(iprot); + struct.success.add(_elem975); } iprot.readListEnd(); } @@ -61243,9 +62568,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 _iter943 : struct.success) + for (Table _iter977 : struct.success) { - _iter943.write(oprot); + _iter977.write(oprot); } oprot.writeListEnd(); } @@ -61276,9 +62601,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Table _iter944 : struct.success) + for (Table _iter978 : struct.success) { - _iter944.write(oprot); + _iter978.write(oprot); } } } @@ -61290,14 +62615,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 _list945 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList
(_list945.size); - Table _elem946; - for (int _i947 = 0; _i947 < _list945.size; ++_i947) + org.apache.thrift.protocol.TList _list979 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList
(_list979.size); + Table _elem980; + for (int _i981 = 0; _i981 < _list979.size; ++_i981) { - _elem946 = new Table(); - _elem946.read(iprot); - struct.success.add(_elem946); + _elem980 = new Table(); + _elem980.read(iprot); + struct.success.add(_elem980); } } struct.setSuccessIsSet(true); @@ -61478,12 +62803,950 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_req_args) - return this.equals((get_table_req_args)that); + if (that instanceof get_table_req_args) + return this.equals((get_table_req_args)that); + return false; + } + + public boolean equals(get_table_req_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; + } + + @Override + 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_table_req_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; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("get_table_req_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(); + } + + 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 { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class get_table_req_argsStandardSchemeFactory implements SchemeFactory { + public get_table_req_argsStandardScheme getScheme() { + return new get_table_req_argsStandardScheme(); + } + } + + private static class get_table_req_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_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: // REQ + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.req = new GetTableRequest(); + 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); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_req_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_table_req_argsTupleSchemeFactory implements SchemeFactory { + public get_table_req_argsTupleScheme getScheme() { + return new get_table_req_argsTupleScheme(); + } + } + + private static class get_table_req_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_req_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_table_req_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.req = new GetTableRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_req_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_table_req_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 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 get_table_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_req_resultTupleSchemeFactory()); + } + + private GetTableResult success; // required + private MetaException o1; // required + private NoSuchObjectException 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 { + SUCCESS((short)0, "success"), + 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 0: // SUCCESS + return SUCCESS; + 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.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, GetTableResult.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(get_table_req_result.class, metaDataMap); + } + + public get_table_req_result() { + } + + public get_table_req_result( + GetTableResult success, + MetaException o1, + NoSuchObjectException o2) + { + this(); + this.success = success; + this.o1 = o1; + this.o2 = o2; + } + + /** + * Performs a deep copy on other. + */ + public get_table_req_result(get_table_req_result other) { + if (other.isSetSuccess()) { + this.success = new GetTableResult(other.success); + } + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new NoSuchObjectException(other.o2); + } + } + + public get_table_req_result deepCopy() { + return new get_table_req_result(this); + } + + @Override + public void clear() { + this.success = null; + this.o1 = null; + this.o2 = null; + } + + public GetTableResult getSuccess() { + return this.success; + } + + public void setSuccess(GetTableResult 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 MetaException getO1() { + return this.o1; + } + + public void setO1(MetaException 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 NoSuchObjectException getO2() { + return this.o2; + } + + public void setO2(NoSuchObjectException 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 SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((GetTableResult)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((MetaException)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((NoSuchObjectException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + 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 SUCCESS: + return isSetSuccess(); + 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 get_table_req_result) + return this.equals((get_table_req_result)that); + return false; + } + + public boolean equals(get_table_req_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; + } + + 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_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + + 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(get_table_req_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; + } + } + 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("get_table_req_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); + 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(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (success != null) { + success.validate(); + } + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class get_table_req_resultStandardSchemeFactory implements SchemeFactory { + public get_table_req_resultStandardScheme getScheme() { + return new get_table_req_resultStandardScheme(); + } + } + + private static class get_table_req_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_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 GetTableResult(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new MetaException(); + 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 NoSuchObjectException(); + 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); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_req_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(); + } + 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 get_table_req_resultTupleSchemeFactory implements SchemeFactory { + public get_table_req_resultTupleScheme getScheme() { + return new get_table_req_resultTupleScheme(); + } + } + + private static class get_table_req_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_req_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetO1()) { + optionals.set(1); + } + if (struct.isSetO2()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_req_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.success = new GetTableResult(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(2)) { + struct.o2 = new NoSuchObjectException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_objects_by_name_req_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_table_objects_by_name_req_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_table_objects_by_name_req_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_objects_by_name_req_argsTupleSchemeFactory()); + } + + private GetTablesRequest 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(); + + 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: // REQ + return REQ; + 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.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, GetTablesRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_req_args.class, metaDataMap); + } + + public get_table_objects_by_name_req_args() { + } + + public get_table_objects_by_name_req_args( + GetTablesRequest req) + { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public get_table_objects_by_name_req_args(get_table_objects_by_name_req_args other) { + if (other.isSetReq()) { + this.req = new GetTablesRequest(other.req); + } + } + + public get_table_objects_by_name_req_args deepCopy() { + return new get_table_objects_by_name_req_args(this); + } + + @Override + public void clear() { + this.req = null; + } + + public GetTablesRequest getReq() { + return this.req; + } + + public void setReq(GetTablesRequest 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((GetTablesRequest)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case REQ: + return getReq(); + + } + 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 REQ: + return isSetReq(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof get_table_objects_by_name_req_args) + return this.equals((get_table_objects_by_name_req_args)that); return false; } - public boolean equals(get_table_req_args that) { + public boolean equals(get_table_objects_by_name_req_args that) { if (that == null) return false; @@ -61512,7 +63775,7 @@ public int hashCode() { } @Override - public int compareTo(get_table_req_args other) { + public int compareTo(get_table_objects_by_name_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -61546,7 +63809,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_req_args("); + StringBuilder sb = new StringBuilder("get_table_objects_by_name_req_args("); boolean first = true; sb.append("req:"); @@ -61584,15 +63847,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_req_argsStandardSchemeFactory implements SchemeFactory { - public get_table_req_argsStandardScheme getScheme() { - return new get_table_req_argsStandardScheme(); + private static class get_table_objects_by_name_req_argsStandardSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_req_argsStandardScheme getScheme() { + return new get_table_objects_by_name_req_argsStandardScheme(); } } - private static class get_table_req_argsStandardScheme extends StandardScheme { + private static class get_table_objects_by_name_req_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_by_name_req_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -61604,7 +63867,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_args switch (schemeField.id) { case 1: // REQ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new GetTableRequest(); + struct.req = new GetTablesRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } else { @@ -61620,7 +63883,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_by_name_req_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -61635,16 +63898,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_req_args } - private static class get_table_req_argsTupleSchemeFactory implements SchemeFactory { - public get_table_req_argsTupleScheme getScheme() { - return new get_table_req_argsTupleScheme(); + private static class get_table_objects_by_name_req_argsTupleSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_req_argsTupleScheme getScheme() { + return new get_table_objects_by_name_req_argsTupleScheme(); } } - private static class get_table_req_argsTupleScheme extends TupleScheme { + private static class get_table_objects_by_name_req_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetReq()) { @@ -61657,11 +63920,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_req_args } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.req = new GetTableRequest(); + struct.req = new GetTablesRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } @@ -61670,28 +63933,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_req_args s } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_req_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_table_req_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_objects_by_name_req_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_table_objects_by_name_req_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 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 org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_req_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_req_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_objects_by_name_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_objects_by_name_req_resultTupleSchemeFactory()); } - private GetTableResult success; // required + private GetTablesResult success; // required private MetaException o1; // required - private NoSuchObjectException o2; // required + private InvalidOperationException o2; // required + private UnknownDBException o3; // 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"), O1((short)1, "o1"), - O2((short)2, "o2"); + O2((short)2, "o2"), + O3((short)3, "o3"); private static final Map byName = new HashMap(); @@ -61712,6 +63978,8 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; + case 3: // O3 + return O3; default: return null; } @@ -61756,46 +64024,53 @@ 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, GetTableResult.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetTablesResult.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))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", 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(get_table_req_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_req_result.class, metaDataMap); } - public get_table_req_result() { + public get_table_objects_by_name_req_result() { } - public get_table_req_result( - GetTableResult success, + public get_table_objects_by_name_req_result( + GetTablesResult success, MetaException o1, - NoSuchObjectException o2) + InvalidOperationException o2, + UnknownDBException o3) { this(); this.success = success; this.o1 = o1; this.o2 = o2; + this.o3 = o3; } /** * Performs a deep copy on other. */ - public get_table_req_result(get_table_req_result other) { + public get_table_objects_by_name_req_result(get_table_objects_by_name_req_result other) { if (other.isSetSuccess()) { - this.success = new GetTableResult(other.success); + this.success = new GetTablesResult(other.success); } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new NoSuchObjectException(other.o2); + this.o2 = new InvalidOperationException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new UnknownDBException(other.o3); } } - public get_table_req_result deepCopy() { - return new get_table_req_result(this); + public get_table_objects_by_name_req_result deepCopy() { + return new get_table_objects_by_name_req_result(this); } @Override @@ -61803,13 +64078,14 @@ public void clear() { this.success = null; this.o1 = null; this.o2 = null; + this.o3 = null; } - public GetTableResult getSuccess() { + public GetTablesResult getSuccess() { return this.success; } - public void setSuccess(GetTableResult success) { + public void setSuccess(GetTablesResult success) { this.success = success; } @@ -61851,11 +64127,11 @@ public void setO1IsSet(boolean value) { } } - public NoSuchObjectException getO2() { + public InvalidOperationException getO2() { return this.o2; } - public void setO2(NoSuchObjectException o2) { + public void setO2(InvalidOperationException o2) { this.o2 = o2; } @@ -61874,13 +64150,36 @@ public void setO2IsSet(boolean value) { } } + public UnknownDBException getO3() { + return this.o3; + } + + public void setO3(UnknownDBException o3) { + this.o3 = o3; + } + + public void unsetO3() { + this.o3 = null; + } + + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; + } + + public void setO3IsSet(boolean value) { + if (!value) { + this.o3 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((GetTableResult)value); + setSuccess((GetTablesResult)value); } break; @@ -61896,7 +64195,15 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((NoSuchObjectException)value); + setO2((InvalidOperationException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((UnknownDBException)value); } break; @@ -61914,6 +64221,9 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); + case O3: + return getO3(); + } throw new IllegalStateException(); } @@ -61931,6 +64241,8 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); + case O3: + return isSetO3(); } throw new IllegalStateException(); } @@ -61939,12 +64251,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_req_result) - return this.equals((get_table_req_result)that); + if (that instanceof get_table_objects_by_name_req_result) + return this.equals((get_table_objects_by_name_req_result)that); return false; } - public boolean equals(get_table_req_result that) { + public boolean equals(get_table_objects_by_name_req_result that) { if (that == null) return false; @@ -61975,6 +64287,15 @@ public boolean equals(get_table_req_result that) { return false; } + boolean this_present_o3 = true && this.isSetO3(); + boolean that_present_o3 = true && that.isSetO3(); + if (this_present_o3 || that_present_o3) { + if (!(this_present_o3 && that_present_o3)) + return false; + if (!this.o3.equals(that.o3)) + return false; + } + return true; } @@ -61997,11 +64318,16 @@ public int hashCode() { if (present_o2) list.add(o2); + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + return list.hashCode(); } @Override - public int compareTo(get_table_req_result other) { + public int compareTo(get_table_objects_by_name_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -62038,6 +64364,16 @@ public int compareTo(get_table_req_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -62055,7 +64391,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_req_result("); + StringBuilder sb = new StringBuilder("get_table_objects_by_name_req_result("); boolean first = true; sb.append("success:"); @@ -62081,6 +64417,14 @@ public String toString() { sb.append(this.o2); } first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; sb.append(")"); return sb.toString(); } @@ -62109,15 +64453,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_req_resultStandardSchemeFactory implements SchemeFactory { - public get_table_req_resultStandardScheme getScheme() { - return new get_table_req_resultStandardScheme(); + private static class get_table_objects_by_name_req_resultStandardSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_req_resultStandardScheme getScheme() { + return new get_table_objects_by_name_req_resultStandardScheme(); } } - private static class get_table_req_resultStandardScheme extends StandardScheme { + private static class get_table_objects_by_name_req_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_by_name_req_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -62129,7 +64473,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_resul switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new GetTableResult(); + struct.success = new GetTablesResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -62147,13 +64491,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_resul break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new InvalidOperationException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new UnknownDBException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -62163,7 +64516,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_req_resul struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_by_name_req_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -62182,22 +64535,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_req_resu struct.o2.write(oprot); oprot.writeFieldEnd(); } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_table_req_resultTupleSchemeFactory implements SchemeFactory { - public get_table_req_resultTupleScheme getScheme() { - return new get_table_req_resultTupleScheme(); + private static class get_table_objects_by_name_req_resultTupleSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_req_resultTupleScheme getScheme() { + return new get_table_objects_by_name_req_resultTupleScheme(); } } - private static class get_table_req_resultTupleScheme extends TupleScheme { + private static class get_table_objects_by_name_req_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -62209,7 +64567,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_req_resul if (struct.isSetO2()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetO3()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { struct.success.write(oprot); } @@ -62219,14 +64580,17 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_req_resul if (struct.isSetO2()) { struct.o2.write(oprot); } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = new GetTableResult(); + struct.success = new GetTablesResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -62236,31 +64600,39 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_req_result struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new InvalidOperationException(); struct.o2.read(iprot); struct.setO2IsSet(true); } + if (incoming.get(3)) { + struct.o3 = new UnknownDBException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_objects_by_name_req_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_table_objects_by_name_req_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialization_invalidation_info_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_materialization_invalidation_info_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 DBNAME_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_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_names", org.apache.thrift.protocol.TType.LIST, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_objects_by_name_req_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_objects_by_name_req_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_materialization_invalidation_info_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_materialization_invalidation_info_argsTupleSchemeFactory()); } - private GetTablesRequest req; // required + private String dbname; // required + private List tbl_names; // 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"); + DBNAME((short)1, "dbname"), + TBL_NAMES((short)2, "tbl_names"); private static final Map byName = new HashMap(); @@ -62275,8 +64647,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_req_result */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQ - return REQ; + case 1: // DBNAME + return DBNAME; + case 2: // TBL_NAMES + return TBL_NAMES; default: return null; } @@ -62320,70 +64694,126 @@ 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, GetTablesRequest.class))); + tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAMES, new org.apache.thrift.meta_data.FieldMetaData("tbl_names", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_req_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_materialization_invalidation_info_args.class, metaDataMap); } - public get_table_objects_by_name_req_args() { + public get_materialization_invalidation_info_args() { } - public get_table_objects_by_name_req_args( - GetTablesRequest req) + public get_materialization_invalidation_info_args( + String dbname, + List tbl_names) { this(); - this.req = req; + this.dbname = dbname; + this.tbl_names = tbl_names; } /** * Performs a deep copy on other. */ - public get_table_objects_by_name_req_args(get_table_objects_by_name_req_args other) { - if (other.isSetReq()) { - this.req = new GetTablesRequest(other.req); + public get_materialization_invalidation_info_args(get_materialization_invalidation_info_args other) { + if (other.isSetDbname()) { + this.dbname = other.dbname; + } + if (other.isSetTbl_names()) { + List __this__tbl_names = new ArrayList(other.tbl_names); + this.tbl_names = __this__tbl_names; } } - public get_table_objects_by_name_req_args deepCopy() { - return new get_table_objects_by_name_req_args(this); + public get_materialization_invalidation_info_args deepCopy() { + return new get_materialization_invalidation_info_args(this); } @Override public void clear() { - this.req = null; + this.dbname = null; + this.tbl_names = null; } - public GetTablesRequest getReq() { - return this.req; + public String getDbname() { + return this.dbname; } - public void setReq(GetTablesRequest req) { - this.req = req; + public void setDbname(String dbname) { + this.dbname = dbname; } - public void unsetReq() { - this.req = null; + public void unsetDbname() { + this.dbname = 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 dbname is set (has been assigned a value) and false otherwise */ + public boolean isSetDbname() { + return this.dbname != null; } - public void setReqIsSet(boolean value) { + public void setDbnameIsSet(boolean value) { if (!value) { - this.req = null; + this.dbname = null; + } + } + + public int getTbl_namesSize() { + return (this.tbl_names == null) ? 0 : this.tbl_names.size(); + } + + public java.util.Iterator getTbl_namesIterator() { + return (this.tbl_names == null) ? null : this.tbl_names.iterator(); + } + + public void addToTbl_names(String elem) { + if (this.tbl_names == null) { + this.tbl_names = new ArrayList(); + } + this.tbl_names.add(elem); + } + + public List getTbl_names() { + return this.tbl_names; + } + + public void setTbl_names(List tbl_names) { + this.tbl_names = tbl_names; + } + + public void unsetTbl_names() { + this.tbl_names = null; + } + + /** Returns true if field tbl_names is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_names() { + return this.tbl_names != null; + } + + public void setTbl_namesIsSet(boolean value) { + if (!value) { + this.tbl_names = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQ: + case DBNAME: if (value == null) { - unsetReq(); + unsetDbname(); } else { - setReq((GetTablesRequest)value); + setDbname((String)value); + } + break; + + case TBL_NAMES: + if (value == null) { + unsetTbl_names(); + } else { + setTbl_names((List)value); } break; @@ -62392,8 +64822,11 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case REQ: - return getReq(); + case DBNAME: + return getDbname(); + + case TBL_NAMES: + return getTbl_names(); } throw new IllegalStateException(); @@ -62406,8 +64839,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQ: - return isSetReq(); + case DBNAME: + return isSetDbname(); + case TBL_NAMES: + return isSetTbl_names(); } throw new IllegalStateException(); } @@ -62416,21 +64851,30 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_objects_by_name_req_args) - return this.equals((get_table_objects_by_name_req_args)that); + if (that instanceof get_materialization_invalidation_info_args) + return this.equals((get_materialization_invalidation_info_args)that); return false; } - public boolean equals(get_table_objects_by_name_req_args that) { + public boolean equals(get_materialization_invalidation_info_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_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.req.equals(that.req)) + if (!this.dbname.equals(that.dbname)) + return false; + } + + boolean this_present_tbl_names = true && this.isSetTbl_names(); + boolean that_present_tbl_names = true && that.isSetTbl_names(); + if (this_present_tbl_names || that_present_tbl_names) { + if (!(this_present_tbl_names && that_present_tbl_names)) + return false; + if (!this.tbl_names.equals(that.tbl_names)) return false; } @@ -62441,28 +64885,43 @@ public boolean equals(get_table_objects_by_name_req_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_dbname = true && (isSetDbname()); + list.add(present_dbname); + if (present_dbname) + list.add(dbname); + + boolean present_tbl_names = true && (isSetTbl_names()); + list.add(present_tbl_names); + if (present_tbl_names) + list.add(tbl_names); return list.hashCode(); } @Override - public int compareTo(get_table_objects_by_name_req_args other) { + public int compareTo(get_materialization_invalidation_info_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(isSetDbname()).compareTo(other.isSetDbname()); if (lastComparison != 0) { return lastComparison; } - if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + if (isSetDbname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_names()).compareTo(other.isSetTbl_names()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_names()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_names, other.tbl_names); if (lastComparison != 0) { return lastComparison; } @@ -62484,14 +64943,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_objects_by_name_req_args("); + StringBuilder sb = new StringBuilder("get_materialization_invalidation_info_args("); boolean first = true; - sb.append("req:"); - if (this.req == null) { + sb.append("dbname:"); + if (this.dbname == null) { sb.append("null"); } else { - sb.append(this.req); + sb.append(this.dbname); + } + first = false; + if (!first) sb.append(", "); + sb.append("tbl_names:"); + if (this.tbl_names == null) { + sb.append("null"); + } else { + sb.append(this.tbl_names); } first = false; sb.append(")"); @@ -62501,9 +64968,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 { @@ -62522,15 +64986,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_objects_by_name_req_argsStandardSchemeFactory implements SchemeFactory { - public get_table_objects_by_name_req_argsStandardScheme getScheme() { - return new get_table_objects_by_name_req_argsStandardScheme(); + private static class get_materialization_invalidation_info_argsStandardSchemeFactory implements SchemeFactory { + public get_materialization_invalidation_info_argsStandardScheme getScheme() { + return new get_materialization_invalidation_info_argsStandardScheme(); } } - private static class get_table_objects_by_name_req_argsStandardScheme extends StandardScheme { + private static class get_materialization_invalidation_info_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_by_name_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialization_invalidation_info_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -62540,11 +65004,28 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b break; } switch (schemeField.id) { - case 1: // REQ - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new GetTablesRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + case 1: // DBNAME + 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_NAMES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list982 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list982.size); + String _elem983; + for (int _i984 = 0; _i984 < _list982.size; ++_i984) + { + _elem983 = iprot.readString(); + struct.tbl_names.add(_elem983); + } + iprot.readListEnd(); + } + struct.setTbl_namesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -62558,13 +65039,25 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_by_name_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialization_invalidation_info_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.dbname != null) { + oprot.writeFieldBegin(DBNAME_FIELD_DESC); + oprot.writeString(struct.dbname); + oprot.writeFieldEnd(); + } + if (struct.tbl_names != null) { + 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 _iter985 : struct.tbl_names) + { + oprot.writeString(_iter985); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -62573,56 +65066,80 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ } - private static class get_table_objects_by_name_req_argsTupleSchemeFactory implements SchemeFactory { - public get_table_objects_by_name_req_argsTupleScheme getScheme() { - return new get_table_objects_by_name_req_argsTupleScheme(); + private static class get_materialization_invalidation_info_argsTupleSchemeFactory implements SchemeFactory { + public get_materialization_invalidation_info_argsTupleScheme getScheme() { + return new get_materialization_invalidation_info_argsTupleScheme(); } } - private static class get_table_objects_by_name_req_argsTupleScheme extends TupleScheme { + private static class get_materialization_invalidation_info_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_materialization_invalidation_info_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetReq()) { + if (struct.isSetDbname()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetReq()) { - struct.req.write(oprot); + if (struct.isSetTbl_names()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetDbname()) { + oprot.writeString(struct.dbname); + } + if (struct.isSetTbl_names()) { + { + oprot.writeI32(struct.tbl_names.size()); + for (String _iter986 : struct.tbl_names) + { + oprot.writeString(_iter986); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_materialization_invalidation_info_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.req = new GetTablesRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + } + if (incoming.get(1)) { + { + org.apache.thrift.protocol.TList _list987 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list987.size); + String _elem988; + for (int _i989 = 0; _i989 < _list987.size; ++_i989) + { + _elem988 = iprot.readString(); + struct.tbl_names.add(_elem988); + } + } + struct.setTbl_namesIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_objects_by_name_req_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_table_objects_by_name_req_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialization_invalidation_info_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_materialization_invalidation_info_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 org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); 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 org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_objects_by_name_req_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_objects_by_name_req_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_materialization_invalidation_info_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_materialization_invalidation_info_resultTupleSchemeFactory()); } - private GetTablesResult success; // required + private Map success; // required private MetaException o1; // required private InvalidOperationException o2; // required private UnknownDBException o3; // required @@ -62699,7 +65216,9 @@ 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, GetTablesResult.class))); + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Materialization.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, @@ -62707,14 +65226,14 @@ public String getFieldName() { tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", 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(get_table_objects_by_name_req_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_materialization_invalidation_info_result.class, metaDataMap); } - public get_table_objects_by_name_req_result() { + public get_materialization_invalidation_info_result() { } - public get_table_objects_by_name_req_result( - GetTablesResult success, + public get_materialization_invalidation_info_result( + Map success, MetaException o1, InvalidOperationException o2, UnknownDBException o3) @@ -62729,9 +65248,21 @@ public get_table_objects_by_name_req_result( /** * Performs a deep copy on other. */ - public get_table_objects_by_name_req_result(get_table_objects_by_name_req_result other) { + public get_materialization_invalidation_info_result(get_materialization_invalidation_info_result other) { if (other.isSetSuccess()) { - this.success = new GetTablesResult(other.success); + Map __this__success = new HashMap(other.success.size()); + for (Map.Entry other_element : other.success.entrySet()) { + + String other_element_key = other_element.getKey(); + Materialization other_element_value = other_element.getValue(); + + String __this__success_copy_key = other_element_key; + + Materialization __this__success_copy_value = new Materialization(other_element_value); + + __this__success.put(__this__success_copy_key, __this__success_copy_value); + } + this.success = __this__success; } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); @@ -62744,8 +65275,8 @@ public get_table_objects_by_name_req_result(get_table_objects_by_name_req_result } } - public get_table_objects_by_name_req_result deepCopy() { - return new get_table_objects_by_name_req_result(this); + public get_materialization_invalidation_info_result deepCopy() { + return new get_materialization_invalidation_info_result(this); } @Override @@ -62756,11 +65287,22 @@ public void clear() { this.o3 = null; } - public GetTablesResult getSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public void putToSuccess(String key, Materialization val) { + if (this.success == null) { + this.success = new HashMap(); + } + this.success.put(key, val); + } + + public Map getSuccess() { return this.success; } - public void setSuccess(GetTablesResult success) { + public void setSuccess(Map success) { this.success = success; } @@ -62854,7 +65396,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((GetTablesResult)value); + setSuccess((Map)value); } break; @@ -62926,12 +65468,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_objects_by_name_req_result) - return this.equals((get_table_objects_by_name_req_result)that); + if (that instanceof get_materialization_invalidation_info_result) + return this.equals((get_materialization_invalidation_info_result)that); return false; } - public boolean equals(get_table_objects_by_name_req_result that) { + public boolean equals(get_materialization_invalidation_info_result that) { if (that == null) return false; @@ -63002,7 +65544,7 @@ public int hashCode() { } @Override - public int compareTo(get_table_objects_by_name_req_result other) { + public int compareTo(get_materialization_invalidation_info_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -63066,7 +65608,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_objects_by_name_req_result("); + StringBuilder sb = new StringBuilder("get_materialization_invalidation_info_result("); boolean first = true; sb.append("success:"); @@ -63107,9 +65649,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 { @@ -63128,15 +65667,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_objects_by_name_req_resultStandardSchemeFactory implements SchemeFactory { - public get_table_objects_by_name_req_resultStandardScheme getScheme() { - return new get_table_objects_by_name_req_resultStandardScheme(); + private static class get_materialization_invalidation_info_resultStandardSchemeFactory implements SchemeFactory { + public get_materialization_invalidation_info_resultStandardScheme getScheme() { + return new get_materialization_invalidation_info_resultStandardScheme(); } } - private static class get_table_objects_by_name_req_resultStandardScheme extends StandardScheme { + private static class get_materialization_invalidation_info_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_by_name_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialization_invalidation_info_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -63147,9 +65686,21 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new GetTablesResult(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { + { + org.apache.thrift.protocol.TMap _map990 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map990.size); + String _key991; + Materialization _val992; + for (int _i993 = 0; _i993 < _map990.size; ++_i993) + { + _key991 = iprot.readString(); + _val992 = new Materialization(); + _val992.read(iprot); + struct.success.put(_key991, _val992); + } + iprot.readMapEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -63191,13 +65742,21 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_by_name_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialization_invalidation_info_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.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 _iter994 : struct.success.entrySet()) + { + oprot.writeString(_iter994.getKey()); + _iter994.getValue().write(oprot); + } + oprot.writeMapEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -63221,16 +65780,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ } - private static class get_table_objects_by_name_req_resultTupleSchemeFactory implements SchemeFactory { - public get_table_objects_by_name_req_resultTupleScheme getScheme() { - return new get_table_objects_by_name_req_resultTupleScheme(); + private static class get_materialization_invalidation_info_resultTupleSchemeFactory implements SchemeFactory { + public get_materialization_invalidation_info_resultTupleScheme getScheme() { + return new get_materialization_invalidation_info_resultTupleScheme(); } } - private static class get_table_objects_by_name_req_resultTupleScheme extends TupleScheme { + private static class get_materialization_invalidation_info_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_materialization_invalidation_info_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -63247,7 +65806,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - struct.success.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (Map.Entry _iter995 : struct.success.entrySet()) + { + oprot.writeString(_iter995.getKey()); + _iter995.getValue().write(oprot); + } + } } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -63261,12 +65827,23 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_materialization_invalidation_info_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = new GetTablesResult(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TMap _map996 = 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*_map996.size); + String _key997; + Materialization _val998; + for (int _i999 = 0; _i999 < _map996.size; ++_i999) + { + _key997 = iprot.readString(); + _val998 = new Materialization(); + _val998.read(iprot); + struct.success.put(_key997, _val998); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -64410,13 +66987,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 _list948 = iprot.readListBegin(); - struct.success = new ArrayList(_list948.size); - String _elem949; - for (int _i950 = 0; _i950 < _list948.size; ++_i950) + org.apache.thrift.protocol.TList _list1000 = iprot.readListBegin(); + struct.success = new ArrayList(_list1000.size); + String _elem1001; + for (int _i1002 = 0; _i1002 < _list1000.size; ++_i1002) { - _elem949 = iprot.readString(); - struct.success.add(_elem949); + _elem1001 = iprot.readString(); + struct.success.add(_elem1001); } iprot.readListEnd(); } @@ -64469,9 +67046,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 _iter951 : struct.success) + for (String _iter1003 : struct.success) { - oprot.writeString(_iter951); + oprot.writeString(_iter1003); } oprot.writeListEnd(); } @@ -64526,9 +67103,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter952 : struct.success) + for (String _iter1004 : struct.success) { - oprot.writeString(_iter952); + oprot.writeString(_iter1004); } } } @@ -64549,13 +67126,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 _list953 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list953.size); - String _elem954; - for (int _i955 = 0; _i955 < _list953.size; ++_i955) + org.apache.thrift.protocol.TList _list1005 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1005.size); + String _elem1006; + for (int _i1007 = 0; _i1007 < _list1005.size; ++_i1007) { - _elem954 = iprot.readString(); - struct.success.add(_elem954); + _elem1006 = iprot.readString(); + struct.success.add(_elem1006); } } struct.setSuccessIsSet(true); @@ -70414,14 +72991,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 _list956 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list956.size); - Partition _elem957; - for (int _i958 = 0; _i958 < _list956.size; ++_i958) + org.apache.thrift.protocol.TList _list1008 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1008.size); + Partition _elem1009; + for (int _i1010 = 0; _i1010 < _list1008.size; ++_i1010) { - _elem957 = new Partition(); - _elem957.read(iprot); - struct.new_parts.add(_elem957); + _elem1009 = new Partition(); + _elem1009.read(iprot); + struct.new_parts.add(_elem1009); } iprot.readListEnd(); } @@ -70447,9 +73024,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 _iter959 : struct.new_parts) + for (Partition _iter1011 : struct.new_parts) { - _iter959.write(oprot); + _iter1011.write(oprot); } oprot.writeListEnd(); } @@ -70480,9 +73057,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 _iter960 : struct.new_parts) + for (Partition _iter1012 : struct.new_parts) { - _iter960.write(oprot); + _iter1012.write(oprot); } } } @@ -70494,14 +73071,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 _list961 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list961.size); - Partition _elem962; - for (int _i963 = 0; _i963 < _list961.size; ++_i963) + org.apache.thrift.protocol.TList _list1013 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1013.size); + Partition _elem1014; + for (int _i1015 = 0; _i1015 < _list1013.size; ++_i1015) { - _elem962 = new Partition(); - _elem962.read(iprot); - struct.new_parts.add(_elem962); + _elem1014 = new Partition(); + _elem1014.read(iprot); + struct.new_parts.add(_elem1014); } } struct.setNew_partsIsSet(true); @@ -71502,14 +74079,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 _list964 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list964.size); - PartitionSpec _elem965; - for (int _i966 = 0; _i966 < _list964.size; ++_i966) + org.apache.thrift.protocol.TList _list1016 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1016.size); + PartitionSpec _elem1017; + for (int _i1018 = 0; _i1018 < _list1016.size; ++_i1018) { - _elem965 = new PartitionSpec(); - _elem965.read(iprot); - struct.new_parts.add(_elem965); + _elem1017 = new PartitionSpec(); + _elem1017.read(iprot); + struct.new_parts.add(_elem1017); } iprot.readListEnd(); } @@ -71535,9 +74112,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 _iter967 : struct.new_parts) + for (PartitionSpec _iter1019 : struct.new_parts) { - _iter967.write(oprot); + _iter1019.write(oprot); } oprot.writeListEnd(); } @@ -71568,9 +74145,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 _iter968 : struct.new_parts) + for (PartitionSpec _iter1020 : struct.new_parts) { - _iter968.write(oprot); + _iter1020.write(oprot); } } } @@ -71582,14 +74159,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 _list969 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list969.size); - PartitionSpec _elem970; - for (int _i971 = 0; _i971 < _list969.size; ++_i971) + org.apache.thrift.protocol.TList _list1021 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1021.size); + PartitionSpec _elem1022; + for (int _i1023 = 0; _i1023 < _list1021.size; ++_i1023) { - _elem970 = new PartitionSpec(); - _elem970.read(iprot); - struct.new_parts.add(_elem970); + _elem1022 = new PartitionSpec(); + _elem1022.read(iprot); + struct.new_parts.add(_elem1022); } } struct.setNew_partsIsSet(true); @@ -72765,13 +75342,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 _list972 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list972.size); - String _elem973; - for (int _i974 = 0; _i974 < _list972.size; ++_i974) + org.apache.thrift.protocol.TList _list1024 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1024.size); + String _elem1025; + for (int _i1026 = 0; _i1026 < _list1024.size; ++_i1026) { - _elem973 = iprot.readString(); - struct.part_vals.add(_elem973); + _elem1025 = iprot.readString(); + struct.part_vals.add(_elem1025); } iprot.readListEnd(); } @@ -72807,9 +75384,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 _iter975 : struct.part_vals) + for (String _iter1027 : struct.part_vals) { - oprot.writeString(_iter975); + oprot.writeString(_iter1027); } oprot.writeListEnd(); } @@ -72852,9 +75429,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 _iter976 : struct.part_vals) + for (String _iter1028 : struct.part_vals) { - oprot.writeString(_iter976); + oprot.writeString(_iter1028); } } } @@ -72874,13 +75451,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list977 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list977.size); - String _elem978; - for (int _i979 = 0; _i979 < _list977.size; ++_i979) + org.apache.thrift.protocol.TList _list1029 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1029.size); + String _elem1030; + for (int _i1031 = 0; _i1031 < _list1029.size; ++_i1031) { - _elem978 = iprot.readString(); - struct.part_vals.add(_elem978); + _elem1030 = iprot.readString(); + struct.part_vals.add(_elem1030); } } struct.setPart_valsIsSet(true); @@ -75189,13 +77766,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 _list980 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list980.size); - String _elem981; - for (int _i982 = 0; _i982 < _list980.size; ++_i982) + org.apache.thrift.protocol.TList _list1032 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1032.size); + String _elem1033; + for (int _i1034 = 0; _i1034 < _list1032.size; ++_i1034) { - _elem981 = iprot.readString(); - struct.part_vals.add(_elem981); + _elem1033 = iprot.readString(); + struct.part_vals.add(_elem1033); } iprot.readListEnd(); } @@ -75240,9 +77817,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 _iter983 : struct.part_vals) + for (String _iter1035 : struct.part_vals) { - oprot.writeString(_iter983); + oprot.writeString(_iter1035); } oprot.writeListEnd(); } @@ -75293,9 +77870,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 _iter984 : struct.part_vals) + for (String _iter1036 : struct.part_vals) { - oprot.writeString(_iter984); + oprot.writeString(_iter1036); } } } @@ -75318,13 +77895,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list985 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list985.size); - String _elem986; - for (int _i987 = 0; _i987 < _list985.size; ++_i987) + org.apache.thrift.protocol.TList _list1037 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1037.size); + String _elem1038; + for (int _i1039 = 0; _i1039 < _list1037.size; ++_i1039) { - _elem986 = iprot.readString(); - struct.part_vals.add(_elem986); + _elem1038 = iprot.readString(); + struct.part_vals.add(_elem1038); } } struct.setPart_valsIsSet(true); @@ -79194,13 +81771,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 _list988 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list988.size); - String _elem989; - for (int _i990 = 0; _i990 < _list988.size; ++_i990) + org.apache.thrift.protocol.TList _list1040 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1040.size); + String _elem1041; + for (int _i1042 = 0; _i1042 < _list1040.size; ++_i1042) { - _elem989 = iprot.readString(); - struct.part_vals.add(_elem989); + _elem1041 = iprot.readString(); + struct.part_vals.add(_elem1041); } iprot.readListEnd(); } @@ -79244,9 +81821,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 _iter991 : struct.part_vals) + for (String _iter1043 : struct.part_vals) { - oprot.writeString(_iter991); + oprot.writeString(_iter1043); } oprot.writeListEnd(); } @@ -79295,9 +81872,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 _iter992 : struct.part_vals) + for (String _iter1044 : struct.part_vals) { - oprot.writeString(_iter992); + oprot.writeString(_iter1044); } } } @@ -79320,13 +81897,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list993 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list993.size); - String _elem994; - for (int _i995 = 0; _i995 < _list993.size; ++_i995) + org.apache.thrift.protocol.TList _list1045 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1045.size); + String _elem1046; + for (int _i1047 = 0; _i1047 < _list1045.size; ++_i1047) { - _elem994 = iprot.readString(); - struct.part_vals.add(_elem994); + _elem1046 = iprot.readString(); + struct.part_vals.add(_elem1046); } } struct.setPart_valsIsSet(true); @@ -80565,13 +83142,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 _list996 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list996.size); - String _elem997; - for (int _i998 = 0; _i998 < _list996.size; ++_i998) + org.apache.thrift.protocol.TList _list1048 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1048.size); + String _elem1049; + for (int _i1050 = 0; _i1050 < _list1048.size; ++_i1050) { - _elem997 = iprot.readString(); - struct.part_vals.add(_elem997); + _elem1049 = iprot.readString(); + struct.part_vals.add(_elem1049); } iprot.readListEnd(); } @@ -80624,9 +83201,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 _iter999 : struct.part_vals) + for (String _iter1051 : struct.part_vals) { - oprot.writeString(_iter999); + oprot.writeString(_iter1051); } oprot.writeListEnd(); } @@ -80683,9 +83260,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 _iter1000 : struct.part_vals) + for (String _iter1052 : struct.part_vals) { - oprot.writeString(_iter1000); + oprot.writeString(_iter1052); } } } @@ -80711,13 +83288,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1001 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1001.size); - String _elem1002; - for (int _i1003 = 0; _i1003 < _list1001.size; ++_i1003) + org.apache.thrift.protocol.TList _list1053 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1053.size); + String _elem1054; + for (int _i1055 = 0; _i1055 < _list1053.size; ++_i1055) { - _elem1002 = iprot.readString(); - struct.part_vals.add(_elem1002); + _elem1054 = iprot.readString(); + struct.part_vals.add(_elem1054); } } struct.setPart_valsIsSet(true); @@ -85319,13 +87896,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 _list1004 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1004.size); - String _elem1005; - for (int _i1006 = 0; _i1006 < _list1004.size; ++_i1006) + org.apache.thrift.protocol.TList _list1056 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1056.size); + String _elem1057; + for (int _i1058 = 0; _i1058 < _list1056.size; ++_i1058) { - _elem1005 = iprot.readString(); - struct.part_vals.add(_elem1005); + _elem1057 = iprot.readString(); + struct.part_vals.add(_elem1057); } iprot.readListEnd(); } @@ -85361,9 +87938,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 _iter1007 : struct.part_vals) + for (String _iter1059 : struct.part_vals) { - oprot.writeString(_iter1007); + oprot.writeString(_iter1059); } oprot.writeListEnd(); } @@ -85406,9 +87983,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 _iter1008 : struct.part_vals) + for (String _iter1060 : struct.part_vals) { - oprot.writeString(_iter1008); + oprot.writeString(_iter1060); } } } @@ -85428,13 +88005,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1009 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1009.size); - String _elem1010; - for (int _i1011 = 0; _i1011 < _list1009.size; ++_i1011) + org.apache.thrift.protocol.TList _list1061 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1061.size); + String _elem1062; + for (int _i1063 = 0; _i1063 < _list1061.size; ++_i1063) { - _elem1010 = iprot.readString(); - struct.part_vals.add(_elem1010); + _elem1062 = iprot.readString(); + struct.part_vals.add(_elem1062); } } struct.setPart_valsIsSet(true); @@ -86652,15 +89229,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 _map1012 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map1012.size); - String _key1013; - String _val1014; - for (int _i1015 = 0; _i1015 < _map1012.size; ++_i1015) + org.apache.thrift.protocol.TMap _map1064 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map1064.size); + String _key1065; + String _val1066; + for (int _i1067 = 0; _i1067 < _map1064.size; ++_i1067) { - _key1013 = iprot.readString(); - _val1014 = iprot.readString(); - struct.partitionSpecs.put(_key1013, _val1014); + _key1065 = iprot.readString(); + _val1066 = iprot.readString(); + struct.partitionSpecs.put(_key1065, _val1066); } iprot.readMapEnd(); } @@ -86718,10 +89295,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 _iter1016 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1068 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1016.getKey()); - oprot.writeString(_iter1016.getValue()); + oprot.writeString(_iter1068.getKey()); + oprot.writeString(_iter1068.getValue()); } oprot.writeMapEnd(); } @@ -86784,10 +89361,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter1017 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1069 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1017.getKey()); - oprot.writeString(_iter1017.getValue()); + oprot.writeString(_iter1069.getKey()); + oprot.writeString(_iter1069.getValue()); } } } @@ -86811,15 +89388,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 _map1018 = 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*_map1018.size); - String _key1019; - String _val1020; - for (int _i1021 = 0; _i1021 < _map1018.size; ++_i1021) + org.apache.thrift.protocol.TMap _map1070 = 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*_map1070.size); + String _key1071; + String _val1072; + for (int _i1073 = 0; _i1073 < _map1070.size; ++_i1073) { - _key1019 = iprot.readString(); - _val1020 = iprot.readString(); - struct.partitionSpecs.put(_key1019, _val1020); + _key1071 = iprot.readString(); + _val1072 = iprot.readString(); + struct.partitionSpecs.put(_key1071, _val1072); } } struct.setPartitionSpecsIsSet(true); @@ -88265,15 +90842,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 _map1022 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map1022.size); - String _key1023; - String _val1024; - for (int _i1025 = 0; _i1025 < _map1022.size; ++_i1025) + org.apache.thrift.protocol.TMap _map1074 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map1074.size); + String _key1075; + String _val1076; + for (int _i1077 = 0; _i1077 < _map1074.size; ++_i1077) { - _key1023 = iprot.readString(); - _val1024 = iprot.readString(); - struct.partitionSpecs.put(_key1023, _val1024); + _key1075 = iprot.readString(); + _val1076 = iprot.readString(); + struct.partitionSpecs.put(_key1075, _val1076); } iprot.readMapEnd(); } @@ -88331,10 +90908,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 _iter1026 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1078 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1026.getKey()); - oprot.writeString(_iter1026.getValue()); + oprot.writeString(_iter1078.getKey()); + oprot.writeString(_iter1078.getValue()); } oprot.writeMapEnd(); } @@ -88397,10 +90974,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter1027 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1079 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1027.getKey()); - oprot.writeString(_iter1027.getValue()); + oprot.writeString(_iter1079.getKey()); + oprot.writeString(_iter1079.getValue()); } } } @@ -88424,15 +91001,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 _map1028 = 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*_map1028.size); - String _key1029; - String _val1030; - for (int _i1031 = 0; _i1031 < _map1028.size; ++_i1031) + org.apache.thrift.protocol.TMap _map1080 = 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*_map1080.size); + String _key1081; + String _val1082; + for (int _i1083 = 0; _i1083 < _map1080.size; ++_i1083) { - _key1029 = iprot.readString(); - _val1030 = iprot.readString(); - struct.partitionSpecs.put(_key1029, _val1030); + _key1081 = iprot.readString(); + _val1082 = iprot.readString(); + struct.partitionSpecs.put(_key1081, _val1082); } } struct.setPartitionSpecsIsSet(true); @@ -89097,14 +91674,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 _list1032 = iprot.readListBegin(); - struct.success = new ArrayList(_list1032.size); - Partition _elem1033; - for (int _i1034 = 0; _i1034 < _list1032.size; ++_i1034) + org.apache.thrift.protocol.TList _list1084 = iprot.readListBegin(); + struct.success = new ArrayList(_list1084.size); + Partition _elem1085; + for (int _i1086 = 0; _i1086 < _list1084.size; ++_i1086) { - _elem1033 = new Partition(); - _elem1033.read(iprot); - struct.success.add(_elem1033); + _elem1085 = new Partition(); + _elem1085.read(iprot); + struct.success.add(_elem1085); } iprot.readListEnd(); } @@ -89166,9 +91743,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 _iter1035 : struct.success) + for (Partition _iter1087 : struct.success) { - _iter1035.write(oprot); + _iter1087.write(oprot); } oprot.writeListEnd(); } @@ -89231,9 +91808,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1036 : struct.success) + for (Partition _iter1088 : struct.success) { - _iter1036.write(oprot); + _iter1088.write(oprot); } } } @@ -89257,14 +91834,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 _list1037 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1037.size); - Partition _elem1038; - for (int _i1039 = 0; _i1039 < _list1037.size; ++_i1039) + org.apache.thrift.protocol.TList _list1089 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1089.size); + Partition _elem1090; + for (int _i1091 = 0; _i1091 < _list1089.size; ++_i1091) { - _elem1038 = new Partition(); - _elem1038.read(iprot); - struct.success.add(_elem1038); + _elem1090 = new Partition(); + _elem1090.read(iprot); + struct.success.add(_elem1090); } } struct.setSuccessIsSet(true); @@ -89963,13 +92540,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 _list1040 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1040.size); - String _elem1041; - for (int _i1042 = 0; _i1042 < _list1040.size; ++_i1042) + org.apache.thrift.protocol.TList _list1092 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1092.size); + String _elem1093; + for (int _i1094 = 0; _i1094 < _list1092.size; ++_i1094) { - _elem1041 = iprot.readString(); - struct.part_vals.add(_elem1041); + _elem1093 = iprot.readString(); + struct.part_vals.add(_elem1093); } iprot.readListEnd(); } @@ -89989,13 +92566,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 _list1043 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1043.size); - String _elem1044; - for (int _i1045 = 0; _i1045 < _list1043.size; ++_i1045) + org.apache.thrift.protocol.TList _list1095 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1095.size); + String _elem1096; + for (int _i1097 = 0; _i1097 < _list1095.size; ++_i1097) { - _elem1044 = iprot.readString(); - struct.group_names.add(_elem1044); + _elem1096 = iprot.readString(); + struct.group_names.add(_elem1096); } iprot.readListEnd(); } @@ -90031,9 +92608,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 _iter1046 : struct.part_vals) + for (String _iter1098 : struct.part_vals) { - oprot.writeString(_iter1046); + oprot.writeString(_iter1098); } oprot.writeListEnd(); } @@ -90048,9 +92625,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 _iter1047 : struct.group_names) + for (String _iter1099 : struct.group_names) { - oprot.writeString(_iter1047); + oprot.writeString(_iter1099); } oprot.writeListEnd(); } @@ -90099,9 +92676,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 _iter1048 : struct.part_vals) + for (String _iter1100 : struct.part_vals) { - oprot.writeString(_iter1048); + oprot.writeString(_iter1100); } } } @@ -90111,9 +92688,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 _iter1049 : struct.group_names) + for (String _iter1101 : struct.group_names) { - oprot.writeString(_iter1049); + oprot.writeString(_iter1101); } } } @@ -90133,13 +92710,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1050 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1050.size); - String _elem1051; - for (int _i1052 = 0; _i1052 < _list1050.size; ++_i1052) + org.apache.thrift.protocol.TList _list1102 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1102.size); + String _elem1103; + for (int _i1104 = 0; _i1104 < _list1102.size; ++_i1104) { - _elem1051 = iprot.readString(); - struct.part_vals.add(_elem1051); + _elem1103 = iprot.readString(); + struct.part_vals.add(_elem1103); } } struct.setPart_valsIsSet(true); @@ -90150,13 +92727,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1053 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1053.size); - String _elem1054; - for (int _i1055 = 0; _i1055 < _list1053.size; ++_i1055) + org.apache.thrift.protocol.TList _list1105 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1105.size); + String _elem1106; + for (int _i1107 = 0; _i1107 < _list1105.size; ++_i1107) { - _elem1054 = iprot.readString(); - struct.group_names.add(_elem1054); + _elem1106 = iprot.readString(); + struct.group_names.add(_elem1106); } } struct.setGroup_namesIsSet(true); @@ -92925,14 +95502,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 _list1056 = iprot.readListBegin(); - struct.success = new ArrayList(_list1056.size); - Partition _elem1057; - for (int _i1058 = 0; _i1058 < _list1056.size; ++_i1058) + org.apache.thrift.protocol.TList _list1108 = iprot.readListBegin(); + struct.success = new ArrayList(_list1108.size); + Partition _elem1109; + for (int _i1110 = 0; _i1110 < _list1108.size; ++_i1110) { - _elem1057 = new Partition(); - _elem1057.read(iprot); - struct.success.add(_elem1057); + _elem1109 = new Partition(); + _elem1109.read(iprot); + struct.success.add(_elem1109); } iprot.readListEnd(); } @@ -92976,9 +95553,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 _iter1059 : struct.success) + for (Partition _iter1111 : struct.success) { - _iter1059.write(oprot); + _iter1111.write(oprot); } oprot.writeListEnd(); } @@ -93025,9 +95602,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1060 : struct.success) + for (Partition _iter1112 : struct.success) { - _iter1060.write(oprot); + _iter1112.write(oprot); } } } @@ -93045,14 +95622,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 _list1061 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1061.size); - Partition _elem1062; - for (int _i1063 = 0; _i1063 < _list1061.size; ++_i1063) + org.apache.thrift.protocol.TList _list1113 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1113.size); + Partition _elem1114; + for (int _i1115 = 0; _i1115 < _list1113.size; ++_i1115) { - _elem1062 = new Partition(); - _elem1062.read(iprot); - struct.success.add(_elem1062); + _elem1114 = new Partition(); + _elem1114.read(iprot); + struct.success.add(_elem1114); } } struct.setSuccessIsSet(true); @@ -93742,13 +96319,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 _list1064 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1064.size); - String _elem1065; - for (int _i1066 = 0; _i1066 < _list1064.size; ++_i1066) + org.apache.thrift.protocol.TList _list1116 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1116.size); + String _elem1117; + for (int _i1118 = 0; _i1118 < _list1116.size; ++_i1118) { - _elem1065 = iprot.readString(); - struct.group_names.add(_elem1065); + _elem1117 = iprot.readString(); + struct.group_names.add(_elem1117); } iprot.readListEnd(); } @@ -93792,9 +96369,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 _iter1067 : struct.group_names) + for (String _iter1119 : struct.group_names) { - oprot.writeString(_iter1067); + oprot.writeString(_iter1119); } oprot.writeListEnd(); } @@ -93849,9 +96426,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 _iter1068 : struct.group_names) + for (String _iter1120 : struct.group_names) { - oprot.writeString(_iter1068); + oprot.writeString(_iter1120); } } } @@ -93879,13 +96456,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1069 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1069.size); - String _elem1070; - for (int _i1071 = 0; _i1071 < _list1069.size; ++_i1071) + org.apache.thrift.protocol.TList _list1121 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1121.size); + String _elem1122; + for (int _i1123 = 0; _i1123 < _list1121.size; ++_i1123) { - _elem1070 = iprot.readString(); - struct.group_names.add(_elem1070); + _elem1122 = iprot.readString(); + struct.group_names.add(_elem1122); } } struct.setGroup_namesIsSet(true); @@ -94372,14 +96949,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 _list1072 = iprot.readListBegin(); - struct.success = new ArrayList(_list1072.size); - Partition _elem1073; - for (int _i1074 = 0; _i1074 < _list1072.size; ++_i1074) + org.apache.thrift.protocol.TList _list1124 = iprot.readListBegin(); + struct.success = new ArrayList(_list1124.size); + Partition _elem1125; + for (int _i1126 = 0; _i1126 < _list1124.size; ++_i1126) { - _elem1073 = new Partition(); - _elem1073.read(iprot); - struct.success.add(_elem1073); + _elem1125 = new Partition(); + _elem1125.read(iprot); + struct.success.add(_elem1125); } iprot.readListEnd(); } @@ -94423,9 +97000,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 _iter1075 : struct.success) + for (Partition _iter1127 : struct.success) { - _iter1075.write(oprot); + _iter1127.write(oprot); } oprot.writeListEnd(); } @@ -94472,9 +97049,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1076 : struct.success) + for (Partition _iter1128 : struct.success) { - _iter1076.write(oprot); + _iter1128.write(oprot); } } } @@ -94492,14 +97069,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 _list1077 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1077.size); - Partition _elem1078; - for (int _i1079 = 0; _i1079 < _list1077.size; ++_i1079) + org.apache.thrift.protocol.TList _list1129 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1129.size); + Partition _elem1130; + for (int _i1131 = 0; _i1131 < _list1129.size; ++_i1131) { - _elem1078 = new Partition(); - _elem1078.read(iprot); - struct.success.add(_elem1078); + _elem1130 = new Partition(); + _elem1130.read(iprot); + struct.success.add(_elem1130); } } struct.setSuccessIsSet(true); @@ -95562,14 +98139,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 _list1080 = iprot.readListBegin(); - struct.success = new ArrayList(_list1080.size); - PartitionSpec _elem1081; - for (int _i1082 = 0; _i1082 < _list1080.size; ++_i1082) + org.apache.thrift.protocol.TList _list1132 = iprot.readListBegin(); + struct.success = new ArrayList(_list1132.size); + PartitionSpec _elem1133; + for (int _i1134 = 0; _i1134 < _list1132.size; ++_i1134) { - _elem1081 = new PartitionSpec(); - _elem1081.read(iprot); - struct.success.add(_elem1081); + _elem1133 = new PartitionSpec(); + _elem1133.read(iprot); + struct.success.add(_elem1133); } iprot.readListEnd(); } @@ -95613,9 +98190,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 _iter1083 : struct.success) + for (PartitionSpec _iter1135 : struct.success) { - _iter1083.write(oprot); + _iter1135.write(oprot); } oprot.writeListEnd(); } @@ -95662,9 +98239,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspe if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter1084 : struct.success) + for (PartitionSpec _iter1136 : struct.success) { - _iter1084.write(oprot); + _iter1136.write(oprot); } } } @@ -95682,14 +98259,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 _list1085 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1085.size); - PartitionSpec _elem1086; - for (int _i1087 = 0; _i1087 < _list1085.size; ++_i1087) + org.apache.thrift.protocol.TList _list1137 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1137.size); + PartitionSpec _elem1138; + for (int _i1139 = 0; _i1139 < _list1137.size; ++_i1139) { - _elem1086 = new PartitionSpec(); - _elem1086.read(iprot); - struct.success.add(_elem1086); + _elem1138 = new PartitionSpec(); + _elem1138.read(iprot); + struct.success.add(_elem1138); } } struct.setSuccessIsSet(true); @@ -96749,13 +99326,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 _list1088 = iprot.readListBegin(); - struct.success = new ArrayList(_list1088.size); - String _elem1089; - for (int _i1090 = 0; _i1090 < _list1088.size; ++_i1090) + org.apache.thrift.protocol.TList _list1140 = iprot.readListBegin(); + struct.success = new ArrayList(_list1140.size); + String _elem1141; + for (int _i1142 = 0; _i1142 < _list1140.size; ++_i1142) { - _elem1089 = iprot.readString(); - struct.success.add(_elem1089); + _elem1141 = iprot.readString(); + struct.success.add(_elem1141); } iprot.readListEnd(); } @@ -96799,9 +99376,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 _iter1091 : struct.success) + for (String _iter1143 : struct.success) { - oprot.writeString(_iter1091); + oprot.writeString(_iter1143); } oprot.writeListEnd(); } @@ -96848,9 +99425,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1092 : struct.success) + for (String _iter1144 : struct.success) { - oprot.writeString(_iter1092); + oprot.writeString(_iter1144); } } } @@ -96868,13 +99445,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 _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 _list1145 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1145.size); + String _elem1146; + for (int _i1147 = 0; _i1147 < _list1145.size; ++_i1147) { - _elem1094 = iprot.readString(); - struct.success.add(_elem1094); + _elem1146 = iprot.readString(); + struct.success.add(_elem1146); } } struct.setSuccessIsSet(true); @@ -98405,13 +100982,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 _list1096 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1096.size); - String _elem1097; - for (int _i1098 = 0; _i1098 < _list1096.size; ++_i1098) + org.apache.thrift.protocol.TList _list1148 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1148.size); + String _elem1149; + for (int _i1150 = 0; _i1150 < _list1148.size; ++_i1150) { - _elem1097 = iprot.readString(); - struct.part_vals.add(_elem1097); + _elem1149 = iprot.readString(); + struct.part_vals.add(_elem1149); } iprot.readListEnd(); } @@ -98455,9 +101032,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 _iter1099 : struct.part_vals) + for (String _iter1151 : struct.part_vals) { - oprot.writeString(_iter1099); + oprot.writeString(_iter1151); } oprot.writeListEnd(); } @@ -98506,9 +101083,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 _iter1100 : struct.part_vals) + for (String _iter1152 : struct.part_vals) { - oprot.writeString(_iter1100); + oprot.writeString(_iter1152); } } } @@ -98531,13 +101108,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1101 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1101.size); - String _elem1102; - for (int _i1103 = 0; _i1103 < _list1101.size; ++_i1103) + org.apache.thrift.protocol.TList _list1153 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1153.size); + String _elem1154; + for (int _i1155 = 0; _i1155 < _list1153.size; ++_i1155) { - _elem1102 = iprot.readString(); - struct.part_vals.add(_elem1102); + _elem1154 = iprot.readString(); + struct.part_vals.add(_elem1154); } } struct.setPart_valsIsSet(true); @@ -99028,14 +101605,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 _list1104 = iprot.readListBegin(); - struct.success = new ArrayList(_list1104.size); - Partition _elem1105; - for (int _i1106 = 0; _i1106 < _list1104.size; ++_i1106) + org.apache.thrift.protocol.TList _list1156 = iprot.readListBegin(); + struct.success = new ArrayList(_list1156.size); + Partition _elem1157; + for (int _i1158 = 0; _i1158 < _list1156.size; ++_i1158) { - _elem1105 = new Partition(); - _elem1105.read(iprot); - struct.success.add(_elem1105); + _elem1157 = new Partition(); + _elem1157.read(iprot); + struct.success.add(_elem1157); } iprot.readListEnd(); } @@ -99079,9 +101656,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 _iter1107 : struct.success) + for (Partition _iter1159 : struct.success) { - _iter1107.write(oprot); + _iter1159.write(oprot); } oprot.writeListEnd(); } @@ -99128,9 +101705,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1108 : struct.success) + for (Partition _iter1160 : struct.success) { - _iter1108.write(oprot); + _iter1160.write(oprot); } } } @@ -99148,14 +101725,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 _list1109 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1109.size); - Partition _elem1110; - for (int _i1111 = 0; _i1111 < _list1109.size; ++_i1111) + org.apache.thrift.protocol.TList _list1161 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1161.size); + Partition _elem1162; + for (int _i1163 = 0; _i1163 < _list1161.size; ++_i1163) { - _elem1110 = new Partition(); - _elem1110.read(iprot); - struct.success.add(_elem1110); + _elem1162 = new Partition(); + _elem1162.read(iprot); + struct.success.add(_elem1162); } } struct.setSuccessIsSet(true); @@ -99927,13 +102504,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 _list1112 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1112.size); - String _elem1113; - for (int _i1114 = 0; _i1114 < _list1112.size; ++_i1114) + org.apache.thrift.protocol.TList _list1164 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1164.size); + String _elem1165; + for (int _i1166 = 0; _i1166 < _list1164.size; ++_i1166) { - _elem1113 = iprot.readString(); - struct.part_vals.add(_elem1113); + _elem1165 = iprot.readString(); + struct.part_vals.add(_elem1165); } iprot.readListEnd(); } @@ -99961,13 +102538,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 _list1115 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1115.size); - String _elem1116; - for (int _i1117 = 0; _i1117 < _list1115.size; ++_i1117) + org.apache.thrift.protocol.TList _list1167 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1167.size); + String _elem1168; + for (int _i1169 = 0; _i1169 < _list1167.size; ++_i1169) { - _elem1116 = iprot.readString(); - struct.group_names.add(_elem1116); + _elem1168 = iprot.readString(); + struct.group_names.add(_elem1168); } iprot.readListEnd(); } @@ -100003,9 +102580,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 _iter1118 : struct.part_vals) + for (String _iter1170 : struct.part_vals) { - oprot.writeString(_iter1118); + oprot.writeString(_iter1170); } oprot.writeListEnd(); } @@ -100023,9 +102600,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 _iter1119 : struct.group_names) + for (String _iter1171 : struct.group_names) { - oprot.writeString(_iter1119); + oprot.writeString(_iter1171); } oprot.writeListEnd(); } @@ -100077,9 +102654,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 _iter1120 : struct.part_vals) + for (String _iter1172 : struct.part_vals) { - oprot.writeString(_iter1120); + oprot.writeString(_iter1172); } } } @@ -100092,9 +102669,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 _iter1121 : struct.group_names) + for (String _iter1173 : struct.group_names) { - oprot.writeString(_iter1121); + oprot.writeString(_iter1173); } } } @@ -100114,13 +102691,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1122 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1122.size); - String _elem1123; - for (int _i1124 = 0; _i1124 < _list1122.size; ++_i1124) + org.apache.thrift.protocol.TList _list1174 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1174.size); + String _elem1175; + for (int _i1176 = 0; _i1176 < _list1174.size; ++_i1176) { - _elem1123 = iprot.readString(); - struct.part_vals.add(_elem1123); + _elem1175 = iprot.readString(); + struct.part_vals.add(_elem1175); } } struct.setPart_valsIsSet(true); @@ -100135,13 +102712,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list1125 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1125.size); - String _elem1126; - for (int _i1127 = 0; _i1127 < _list1125.size; ++_i1127) + org.apache.thrift.protocol.TList _list1177 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1177.size); + String _elem1178; + for (int _i1179 = 0; _i1179 < _list1177.size; ++_i1179) { - _elem1126 = iprot.readString(); - struct.group_names.add(_elem1126); + _elem1178 = iprot.readString(); + struct.group_names.add(_elem1178); } } struct.setGroup_namesIsSet(true); @@ -100628,14 +103205,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 _list1128 = iprot.readListBegin(); - struct.success = new ArrayList(_list1128.size); - Partition _elem1129; - for (int _i1130 = 0; _i1130 < _list1128.size; ++_i1130) + org.apache.thrift.protocol.TList _list1180 = iprot.readListBegin(); + struct.success = new ArrayList(_list1180.size); + Partition _elem1181; + for (int _i1182 = 0; _i1182 < _list1180.size; ++_i1182) { - _elem1129 = new Partition(); - _elem1129.read(iprot); - struct.success.add(_elem1129); + _elem1181 = new Partition(); + _elem1181.read(iprot); + struct.success.add(_elem1181); } iprot.readListEnd(); } @@ -100679,9 +103256,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 _iter1131 : struct.success) + for (Partition _iter1183 : struct.success) { - _iter1131.write(oprot); + _iter1183.write(oprot); } oprot.writeListEnd(); } @@ -100728,9 +103305,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1132 : struct.success) + for (Partition _iter1184 : struct.success) { - _iter1132.write(oprot); + _iter1184.write(oprot); } } } @@ -100748,14 +103325,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 _list1133 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1133.size); - Partition _elem1134; - for (int _i1135 = 0; _i1135 < _list1133.size; ++_i1135) + org.apache.thrift.protocol.TList _list1185 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1185.size); + Partition _elem1186; + for (int _i1187 = 0; _i1187 < _list1185.size; ++_i1187) { - _elem1134 = new Partition(); - _elem1134.read(iprot); - struct.success.add(_elem1134); + _elem1186 = new Partition(); + _elem1186.read(iprot); + struct.success.add(_elem1186); } } struct.setSuccessIsSet(true); @@ -101348,13 +103925,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 _list1136 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1136.size); - String _elem1137; - for (int _i1138 = 0; _i1138 < _list1136.size; ++_i1138) + org.apache.thrift.protocol.TList _list1188 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1188.size); + String _elem1189; + for (int _i1190 = 0; _i1190 < _list1188.size; ++_i1190) { - _elem1137 = iprot.readString(); - struct.part_vals.add(_elem1137); + _elem1189 = iprot.readString(); + struct.part_vals.add(_elem1189); } iprot.readListEnd(); } @@ -101398,9 +103975,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 _iter1139 : struct.part_vals) + for (String _iter1191 : struct.part_vals) { - oprot.writeString(_iter1139); + oprot.writeString(_iter1191); } oprot.writeListEnd(); } @@ -101449,9 +104026,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 _iter1140 : struct.part_vals) + for (String _iter1192 : struct.part_vals) { - oprot.writeString(_iter1140); + oprot.writeString(_iter1192); } } } @@ -101474,13 +104051,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1141 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1141.size); - String _elem1142; - for (int _i1143 = 0; _i1143 < _list1141.size; ++_i1143) + org.apache.thrift.protocol.TList _list1193 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1193.size); + String _elem1194; + for (int _i1195 = 0; _i1195 < _list1193.size; ++_i1195) { - _elem1142 = iprot.readString(); - struct.part_vals.add(_elem1142); + _elem1194 = iprot.readString(); + struct.part_vals.add(_elem1194); } } struct.setPart_valsIsSet(true); @@ -101968,13 +104545,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 _list1144 = iprot.readListBegin(); - struct.success = new ArrayList(_list1144.size); - String _elem1145; - for (int _i1146 = 0; _i1146 < _list1144.size; ++_i1146) + org.apache.thrift.protocol.TList _list1196 = iprot.readListBegin(); + struct.success = new ArrayList(_list1196.size); + String _elem1197; + for (int _i1198 = 0; _i1198 < _list1196.size; ++_i1198) { - _elem1145 = iprot.readString(); - struct.success.add(_elem1145); + _elem1197 = iprot.readString(); + struct.success.add(_elem1197); } iprot.readListEnd(); } @@ -102018,9 +104595,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 _iter1147 : struct.success) + for (String _iter1199 : struct.success) { - oprot.writeString(_iter1147); + oprot.writeString(_iter1199); } oprot.writeListEnd(); } @@ -102067,9 +104644,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1148 : struct.success) + for (String _iter1200 : struct.success) { - oprot.writeString(_iter1148); + oprot.writeString(_iter1200); } } } @@ -102087,13 +104664,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 _list1149 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1149.size); - String _elem1150; - for (int _i1151 = 0; _i1151 < _list1149.size; ++_i1151) + org.apache.thrift.protocol.TList _list1201 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1201.size); + String _elem1202; + for (int _i1203 = 0; _i1203 < _list1201.size; ++_i1203) { - _elem1150 = iprot.readString(); - struct.success.add(_elem1150); + _elem1202 = iprot.readString(); + struct.success.add(_elem1202); } } struct.setSuccessIsSet(true); @@ -103260,14 +105837,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 _list1152 = iprot.readListBegin(); - struct.success = new ArrayList(_list1152.size); - Partition _elem1153; - for (int _i1154 = 0; _i1154 < _list1152.size; ++_i1154) + org.apache.thrift.protocol.TList _list1204 = iprot.readListBegin(); + struct.success = new ArrayList(_list1204.size); + Partition _elem1205; + for (int _i1206 = 0; _i1206 < _list1204.size; ++_i1206) { - _elem1153 = new Partition(); - _elem1153.read(iprot); - struct.success.add(_elem1153); + _elem1205 = new Partition(); + _elem1205.read(iprot); + struct.success.add(_elem1205); } iprot.readListEnd(); } @@ -103311,9 +105888,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 _iter1155 : struct.success) + for (Partition _iter1207 : struct.success) { - _iter1155.write(oprot); + _iter1207.write(oprot); } oprot.writeListEnd(); } @@ -103360,9 +105937,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1156 : struct.success) + for (Partition _iter1208 : struct.success) { - _iter1156.write(oprot); + _iter1208.write(oprot); } } } @@ -103380,14 +105957,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 _list1157 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1157.size); - Partition _elem1158; - for (int _i1159 = 0; _i1159 < _list1157.size; ++_i1159) + org.apache.thrift.protocol.TList _list1209 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1209.size); + Partition _elem1210; + for (int _i1211 = 0; _i1211 < _list1209.size; ++_i1211) { - _elem1158 = new Partition(); - _elem1158.read(iprot); - struct.success.add(_elem1158); + _elem1210 = new Partition(); + _elem1210.read(iprot); + struct.success.add(_elem1210); } } struct.setSuccessIsSet(true); @@ -104554,14 +107131,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 _list1160 = iprot.readListBegin(); - struct.success = new ArrayList(_list1160.size); - PartitionSpec _elem1161; - for (int _i1162 = 0; _i1162 < _list1160.size; ++_i1162) + org.apache.thrift.protocol.TList _list1212 = iprot.readListBegin(); + struct.success = new ArrayList(_list1212.size); + PartitionSpec _elem1213; + for (int _i1214 = 0; _i1214 < _list1212.size; ++_i1214) { - _elem1161 = new PartitionSpec(); - _elem1161.read(iprot); - struct.success.add(_elem1161); + _elem1213 = new PartitionSpec(); + _elem1213.read(iprot); + struct.success.add(_elem1213); } iprot.readListEnd(); } @@ -104605,9 +107182,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 _iter1163 : struct.success) + for (PartitionSpec _iter1215 : struct.success) { - _iter1163.write(oprot); + _iter1215.write(oprot); } oprot.writeListEnd(); } @@ -104654,9 +107231,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 _iter1164 : struct.success) + for (PartitionSpec _iter1216 : struct.success) { - _iter1164.write(oprot); + _iter1216.write(oprot); } } } @@ -104674,14 +107251,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 _list1165 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1165.size); - PartitionSpec _elem1166; - for (int _i1167 = 0; _i1167 < _list1165.size; ++_i1167) + org.apache.thrift.protocol.TList _list1217 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1217.size); + PartitionSpec _elem1218; + for (int _i1219 = 0; _i1219 < _list1217.size; ++_i1219) { - _elem1166 = new PartitionSpec(); - _elem1166.read(iprot); - struct.success.add(_elem1166); + _elem1218 = new PartitionSpec(); + _elem1218.read(iprot); + struct.success.add(_elem1218); } } struct.setSuccessIsSet(true); @@ -107265,13 +109842,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 _list1168 = iprot.readListBegin(); - struct.names = new ArrayList(_list1168.size); - String _elem1169; - for (int _i1170 = 0; _i1170 < _list1168.size; ++_i1170) + org.apache.thrift.protocol.TList _list1220 = iprot.readListBegin(); + struct.names = new ArrayList(_list1220.size); + String _elem1221; + for (int _i1222 = 0; _i1222 < _list1220.size; ++_i1222) { - _elem1169 = iprot.readString(); - struct.names.add(_elem1169); + _elem1221 = iprot.readString(); + struct.names.add(_elem1221); } iprot.readListEnd(); } @@ -107307,9 +109884,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 _iter1171 : struct.names) + for (String _iter1223 : struct.names) { - oprot.writeString(_iter1171); + oprot.writeString(_iter1223); } oprot.writeListEnd(); } @@ -107352,9 +109929,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter1172 : struct.names) + for (String _iter1224 : struct.names) { - oprot.writeString(_iter1172); + oprot.writeString(_iter1224); } } } @@ -107374,13 +109951,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1173 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list1173.size); - String _elem1174; - for (int _i1175 = 0; _i1175 < _list1173.size; ++_i1175) + org.apache.thrift.protocol.TList _list1225 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list1225.size); + String _elem1226; + for (int _i1227 = 0; _i1227 < _list1225.size; ++_i1227) { - _elem1174 = iprot.readString(); - struct.names.add(_elem1174); + _elem1226 = iprot.readString(); + struct.names.add(_elem1226); } } struct.setNamesIsSet(true); @@ -107867,14 +110444,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 _list1176 = iprot.readListBegin(); - struct.success = new ArrayList(_list1176.size); - Partition _elem1177; - for (int _i1178 = 0; _i1178 < _list1176.size; ++_i1178) + org.apache.thrift.protocol.TList _list1228 = iprot.readListBegin(); + struct.success = new ArrayList(_list1228.size); + Partition _elem1229; + for (int _i1230 = 0; _i1230 < _list1228.size; ++_i1230) { - _elem1177 = new Partition(); - _elem1177.read(iprot); - struct.success.add(_elem1177); + _elem1229 = new Partition(); + _elem1229.read(iprot); + struct.success.add(_elem1229); } iprot.readListEnd(); } @@ -107918,9 +110495,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 _iter1179 : struct.success) + for (Partition _iter1231 : struct.success) { - _iter1179.write(oprot); + _iter1231.write(oprot); } oprot.writeListEnd(); } @@ -107967,9 +110544,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1180 : struct.success) + for (Partition _iter1232 : struct.success) { - _iter1180.write(oprot); + _iter1232.write(oprot); } } } @@ -107987,14 +110564,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 _list1181 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1181.size); - Partition _elem1182; - for (int _i1183 = 0; _i1183 < _list1181.size; ++_i1183) + org.apache.thrift.protocol.TList _list1233 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1233.size); + Partition _elem1234; + for (int _i1235 = 0; _i1235 < _list1233.size; ++_i1235) { - _elem1182 = new Partition(); - _elem1182.read(iprot); - struct.success.add(_elem1182); + _elem1234 = new Partition(); + _elem1234.read(iprot); + struct.success.add(_elem1234); } } struct.setSuccessIsSet(true); @@ -109544,14 +112121,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 _list1184 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1184.size); - Partition _elem1185; - for (int _i1186 = 0; _i1186 < _list1184.size; ++_i1186) + org.apache.thrift.protocol.TList _list1236 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1236.size); + Partition _elem1237; + for (int _i1238 = 0; _i1238 < _list1236.size; ++_i1238) { - _elem1185 = new Partition(); - _elem1185.read(iprot); - struct.new_parts.add(_elem1185); + _elem1237 = new Partition(); + _elem1237.read(iprot); + struct.new_parts.add(_elem1237); } iprot.readListEnd(); } @@ -109587,9 +112164,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 _iter1187 : struct.new_parts) + for (Partition _iter1239 : struct.new_parts) { - _iter1187.write(oprot); + _iter1239.write(oprot); } oprot.writeListEnd(); } @@ -109632,9 +112209,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 _iter1188 : struct.new_parts) + for (Partition _iter1240 : struct.new_parts) { - _iter1188.write(oprot); + _iter1240.write(oprot); } } } @@ -109654,14 +112231,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1189 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1189.size); - Partition _elem1190; - for (int _i1191 = 0; _i1191 < _list1189.size; ++_i1191) + org.apache.thrift.protocol.TList _list1241 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1241.size); + Partition _elem1242; + for (int _i1243 = 0; _i1243 < _list1241.size; ++_i1243) { - _elem1190 = new Partition(); - _elem1190.read(iprot); - struct.new_parts.add(_elem1190); + _elem1242 = new Partition(); + _elem1242.read(iprot); + struct.new_parts.add(_elem1242); } } struct.setNew_partsIsSet(true); @@ -110714,14 +113291,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 _list1192 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1192.size); - Partition _elem1193; - for (int _i1194 = 0; _i1194 < _list1192.size; ++_i1194) + org.apache.thrift.protocol.TList _list1244 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1244.size); + Partition _elem1245; + for (int _i1246 = 0; _i1246 < _list1244.size; ++_i1246) { - _elem1193 = new Partition(); - _elem1193.read(iprot); - struct.new_parts.add(_elem1193); + _elem1245 = new Partition(); + _elem1245.read(iprot); + struct.new_parts.add(_elem1245); } iprot.readListEnd(); } @@ -110766,9 +113343,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 _iter1195 : struct.new_parts) + for (Partition _iter1247 : struct.new_parts) { - _iter1195.write(oprot); + _iter1247.write(oprot); } oprot.writeListEnd(); } @@ -110819,9 +113396,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 _iter1196 : struct.new_parts) + for (Partition _iter1248 : struct.new_parts) { - _iter1196.write(oprot); + _iter1248.write(oprot); } } } @@ -110844,14 +113421,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1197 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1197.size); - Partition _elem1198; - for (int _i1199 = 0; _i1199 < _list1197.size; ++_i1199) + org.apache.thrift.protocol.TList _list1249 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1249.size); + Partition _elem1250; + for (int _i1251 = 0; _i1251 < _list1249.size; ++_i1251) { - _elem1198 = new Partition(); - _elem1198.read(iprot); - struct.new_parts.add(_elem1198); + _elem1250 = new Partition(); + _elem1250.read(iprot); + struct.new_parts.add(_elem1250); } } struct.setNew_partsIsSet(true); @@ -113052,13 +115629,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 _list1200 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1200.size); - String _elem1201; - for (int _i1202 = 0; _i1202 < _list1200.size; ++_i1202) + org.apache.thrift.protocol.TList _list1252 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1252.size); + String _elem1253; + for (int _i1254 = 0; _i1254 < _list1252.size; ++_i1254) { - _elem1201 = iprot.readString(); - struct.part_vals.add(_elem1201); + _elem1253 = iprot.readString(); + struct.part_vals.add(_elem1253); } iprot.readListEnd(); } @@ -113103,9 +115680,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 _iter1203 : struct.part_vals) + for (String _iter1255 : struct.part_vals) { - oprot.writeString(_iter1203); + oprot.writeString(_iter1255); } oprot.writeListEnd(); } @@ -113156,9 +115733,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 _iter1204 : struct.part_vals) + for (String _iter1256 : struct.part_vals) { - oprot.writeString(_iter1204); + oprot.writeString(_iter1256); } } } @@ -113181,13 +115758,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1205 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1205.size); - String _elem1206; - for (int _i1207 = 0; _i1207 < _list1205.size; ++_i1207) + org.apache.thrift.protocol.TList _list1257 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1257.size); + String _elem1258; + for (int _i1259 = 0; _i1259 < _list1257.size; ++_i1259) { - _elem1206 = iprot.readString(); - struct.part_vals.add(_elem1206); + _elem1258 = iprot.readString(); + struct.part_vals.add(_elem1258); } } struct.setPart_valsIsSet(true); @@ -114061,13 +116638,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 _list1208 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1208.size); - String _elem1209; - for (int _i1210 = 0; _i1210 < _list1208.size; ++_i1210) + org.apache.thrift.protocol.TList _list1260 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1260.size); + String _elem1261; + for (int _i1262 = 0; _i1262 < _list1260.size; ++_i1262) { - _elem1209 = iprot.readString(); - struct.part_vals.add(_elem1209); + _elem1261 = iprot.readString(); + struct.part_vals.add(_elem1261); } iprot.readListEnd(); } @@ -114101,9 +116678,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 _iter1211 : struct.part_vals) + for (String _iter1263 : struct.part_vals) { - oprot.writeString(_iter1211); + oprot.writeString(_iter1263); } oprot.writeListEnd(); } @@ -114140,9 +116717,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 _iter1212 : struct.part_vals) + for (String _iter1264 : struct.part_vals) { - oprot.writeString(_iter1212); + oprot.writeString(_iter1264); } } } @@ -114157,13 +116734,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 _list1213 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1213.size); - String _elem1214; - for (int _i1215 = 0; _i1215 < _list1213.size; ++_i1215) + org.apache.thrift.protocol.TList _list1265 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1265.size); + String _elem1266; + for (int _i1267 = 0; _i1267 < _list1265.size; ++_i1267) { - _elem1214 = iprot.readString(); - struct.part_vals.add(_elem1214); + _elem1266 = iprot.readString(); + struct.part_vals.add(_elem1266); } } struct.setPart_valsIsSet(true); @@ -116318,13 +118895,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 _list1216 = iprot.readListBegin(); - struct.success = new ArrayList(_list1216.size); - String _elem1217; - for (int _i1218 = 0; _i1218 < _list1216.size; ++_i1218) + org.apache.thrift.protocol.TList _list1268 = iprot.readListBegin(); + struct.success = new ArrayList(_list1268.size); + String _elem1269; + for (int _i1270 = 0; _i1270 < _list1268.size; ++_i1270) { - _elem1217 = iprot.readString(); - struct.success.add(_elem1217); + _elem1269 = iprot.readString(); + struct.success.add(_elem1269); } iprot.readListEnd(); } @@ -116359,9 +118936,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 _iter1219 : struct.success) + for (String _iter1271 : struct.success) { - oprot.writeString(_iter1219); + oprot.writeString(_iter1271); } oprot.writeListEnd(); } @@ -116400,9 +118977,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1220 : struct.success) + for (String _iter1272 : struct.success) { - oprot.writeString(_iter1220); + oprot.writeString(_iter1272); } } } @@ -116417,13 +118994,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 _list1221 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1221.size); - String _elem1222; - for (int _i1223 = 0; _i1223 < _list1221.size; ++_i1223) + org.apache.thrift.protocol.TList _list1273 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1273.size); + String _elem1274; + for (int _i1275 = 0; _i1275 < _list1273.size; ++_i1275) { - _elem1222 = iprot.readString(); - struct.success.add(_elem1222); + _elem1274 = iprot.readString(); + struct.success.add(_elem1274); } } struct.setSuccessIsSet(true); @@ -117186,15 +119763,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 _map1224 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map1224.size); - String _key1225; - String _val1226; - for (int _i1227 = 0; _i1227 < _map1224.size; ++_i1227) + org.apache.thrift.protocol.TMap _map1276 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1276.size); + String _key1277; + String _val1278; + for (int _i1279 = 0; _i1279 < _map1276.size; ++_i1279) { - _key1225 = iprot.readString(); - _val1226 = iprot.readString(); - struct.success.put(_key1225, _val1226); + _key1277 = iprot.readString(); + _val1278 = iprot.readString(); + struct.success.put(_key1277, _val1278); } iprot.readMapEnd(); } @@ -117229,10 +119806,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 _iter1228 : struct.success.entrySet()) + for (Map.Entry _iter1280 : struct.success.entrySet()) { - oprot.writeString(_iter1228.getKey()); - oprot.writeString(_iter1228.getValue()); + oprot.writeString(_iter1280.getKey()); + oprot.writeString(_iter1280.getValue()); } oprot.writeMapEnd(); } @@ -117271,10 +119848,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 _iter1229 : struct.success.entrySet()) + for (Map.Entry _iter1281 : struct.success.entrySet()) { - oprot.writeString(_iter1229.getKey()); - oprot.writeString(_iter1229.getValue()); + oprot.writeString(_iter1281.getKey()); + oprot.writeString(_iter1281.getValue()); } } } @@ -117289,15 +119866,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 _map1230 = 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*_map1230.size); - String _key1231; - String _val1232; - for (int _i1233 = 0; _i1233 < _map1230.size; ++_i1233) + org.apache.thrift.protocol.TMap _map1282 = 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*_map1282.size); + String _key1283; + String _val1284; + for (int _i1285 = 0; _i1285 < _map1282.size; ++_i1285) { - _key1231 = iprot.readString(); - _val1232 = iprot.readString(); - struct.success.put(_key1231, _val1232); + _key1283 = iprot.readString(); + _val1284 = iprot.readString(); + struct.success.put(_key1283, _val1284); } } struct.setSuccessIsSet(true); @@ -117892,15 +120469,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 _map1234 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1234.size); - String _key1235; - String _val1236; - for (int _i1237 = 0; _i1237 < _map1234.size; ++_i1237) + org.apache.thrift.protocol.TMap _map1286 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1286.size); + String _key1287; + String _val1288; + for (int _i1289 = 0; _i1289 < _map1286.size; ++_i1289) { - _key1235 = iprot.readString(); - _val1236 = iprot.readString(); - struct.part_vals.put(_key1235, _val1236); + _key1287 = iprot.readString(); + _val1288 = iprot.readString(); + struct.part_vals.put(_key1287, _val1288); } iprot.readMapEnd(); } @@ -117944,10 +120521,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 _iter1238 : struct.part_vals.entrySet()) + for (Map.Entry _iter1290 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1238.getKey()); - oprot.writeString(_iter1238.getValue()); + oprot.writeString(_iter1290.getKey()); + oprot.writeString(_iter1290.getValue()); } oprot.writeMapEnd(); } @@ -117998,10 +120575,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1239 : struct.part_vals.entrySet()) + for (Map.Entry _iter1291 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1239.getKey()); - oprot.writeString(_iter1239.getValue()); + oprot.writeString(_iter1291.getKey()); + oprot.writeString(_iter1291.getValue()); } } } @@ -118024,15 +120601,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1240 = 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*_map1240.size); - String _key1241; - String _val1242; - for (int _i1243 = 0; _i1243 < _map1240.size; ++_i1243) + org.apache.thrift.protocol.TMap _map1292 = 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*_map1292.size); + String _key1293; + String _val1294; + for (int _i1295 = 0; _i1295 < _map1292.size; ++_i1295) { - _key1241 = iprot.readString(); - _val1242 = iprot.readString(); - struct.part_vals.put(_key1241, _val1242); + _key1293 = iprot.readString(); + _val1294 = iprot.readString(); + struct.part_vals.put(_key1293, _val1294); } } struct.setPart_valsIsSet(true); @@ -119516,15 +122093,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 _map1244 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1244.size); - String _key1245; - String _val1246; - for (int _i1247 = 0; _i1247 < _map1244.size; ++_i1247) + org.apache.thrift.protocol.TMap _map1296 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1296.size); + String _key1297; + String _val1298; + for (int _i1299 = 0; _i1299 < _map1296.size; ++_i1299) { - _key1245 = iprot.readString(); - _val1246 = iprot.readString(); - struct.part_vals.put(_key1245, _val1246); + _key1297 = iprot.readString(); + _val1298 = iprot.readString(); + struct.part_vals.put(_key1297, _val1298); } iprot.readMapEnd(); } @@ -119568,10 +122145,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 _iter1248 : struct.part_vals.entrySet()) + for (Map.Entry _iter1300 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1248.getKey()); - oprot.writeString(_iter1248.getValue()); + oprot.writeString(_iter1300.getKey()); + oprot.writeString(_iter1300.getValue()); } oprot.writeMapEnd(); } @@ -119622,10 +122199,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1249 : struct.part_vals.entrySet()) + for (Map.Entry _iter1301 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1249.getKey()); - oprot.writeString(_iter1249.getValue()); + oprot.writeString(_iter1301.getKey()); + oprot.writeString(_iter1301.getValue()); } } } @@ -119648,15 +122225,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1250 = 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*_map1250.size); - String _key1251; - String _val1252; - for (int _i1253 = 0; _i1253 < _map1250.size; ++_i1253) + org.apache.thrift.protocol.TMap _map1302 = 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*_map1302.size); + String _key1303; + String _val1304; + for (int _i1305 = 0; _i1305 < _map1302.size; ++_i1305) { - _key1251 = iprot.readString(); - _val1252 = iprot.readString(); - struct.part_vals.put(_key1251, _val1252); + _key1303 = iprot.readString(); + _val1304 = iprot.readString(); + struct.part_vals.put(_key1303, _val1304); } } struct.setPart_valsIsSet(true); @@ -126380,14 +128957,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 _list1254 = iprot.readListBegin(); - struct.success = new ArrayList(_list1254.size); - Index _elem1255; - for (int _i1256 = 0; _i1256 < _list1254.size; ++_i1256) + org.apache.thrift.protocol.TList _list1306 = iprot.readListBegin(); + struct.success = new ArrayList(_list1306.size); + Index _elem1307; + for (int _i1308 = 0; _i1308 < _list1306.size; ++_i1308) { - _elem1255 = new Index(); - _elem1255.read(iprot); - struct.success.add(_elem1255); + _elem1307 = new Index(); + _elem1307.read(iprot); + struct.success.add(_elem1307); } iprot.readListEnd(); } @@ -126431,9 +129008,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 _iter1257 : struct.success) + for (Index _iter1309 : struct.success) { - _iter1257.write(oprot); + _iter1309.write(oprot); } oprot.writeListEnd(); } @@ -126480,9 +129057,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_result if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Index _iter1258 : struct.success) + for (Index _iter1310 : struct.success) { - _iter1258.write(oprot); + _iter1310.write(oprot); } } } @@ -126500,14 +129077,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 _list1259 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1259.size); - Index _elem1260; - for (int _i1261 = 0; _i1261 < _list1259.size; ++_i1261) + org.apache.thrift.protocol.TList _list1311 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1311.size); + Index _elem1312; + for (int _i1313 = 0; _i1313 < _list1311.size; ++_i1313) { - _elem1260 = new Index(); - _elem1260.read(iprot); - struct.success.add(_elem1260); + _elem1312 = new Index(); + _elem1312.read(iprot); + struct.success.add(_elem1312); } } struct.setSuccessIsSet(true); @@ -127486,13 +130063,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 _list1262 = iprot.readListBegin(); - struct.success = new ArrayList(_list1262.size); - String _elem1263; - for (int _i1264 = 0; _i1264 < _list1262.size; ++_i1264) + org.apache.thrift.protocol.TList _list1314 = iprot.readListBegin(); + struct.success = new ArrayList(_list1314.size); + String _elem1315; + for (int _i1316 = 0; _i1316 < _list1314.size; ++_i1316) { - _elem1263 = iprot.readString(); - struct.success.add(_elem1263); + _elem1315 = iprot.readString(); + struct.success.add(_elem1315); } iprot.readListEnd(); } @@ -127527,9 +130104,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 _iter1265 : struct.success) + for (String _iter1317 : struct.success) { - oprot.writeString(_iter1265); + oprot.writeString(_iter1317); } oprot.writeListEnd(); } @@ -127568,9 +130145,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1266 : struct.success) + for (String _iter1318 : struct.success) { - oprot.writeString(_iter1266); + oprot.writeString(_iter1318); } } } @@ -127585,13 +130162,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 _list1267 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1267.size); - String _elem1268; - for (int _i1269 = 0; _i1269 < _list1267.size; ++_i1269) + org.apache.thrift.protocol.TList _list1319 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1319.size); + String _elem1320; + for (int _i1321 = 0; _i1321 < _list1319.size; ++_i1321) { - _elem1268 = iprot.readString(); - struct.success.add(_elem1268); + _elem1320 = iprot.readString(); + struct.success.add(_elem1320); } } struct.setSuccessIsSet(true); @@ -147078,13 +149655,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 _list1270 = iprot.readListBegin(); - struct.success = new ArrayList(_list1270.size); - String _elem1271; - for (int _i1272 = 0; _i1272 < _list1270.size; ++_i1272) + org.apache.thrift.protocol.TList _list1322 = iprot.readListBegin(); + struct.success = new ArrayList(_list1322.size); + String _elem1323; + for (int _i1324 = 0; _i1324 < _list1322.size; ++_i1324) { - _elem1271 = iprot.readString(); - struct.success.add(_elem1271); + _elem1323 = iprot.readString(); + struct.success.add(_elem1323); } iprot.readListEnd(); } @@ -147119,9 +149696,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 _iter1273 : struct.success) + for (String _iter1325 : struct.success) { - oprot.writeString(_iter1273); + oprot.writeString(_iter1325); } oprot.writeListEnd(); } @@ -147160,9 +149737,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1274 : struct.success) + for (String _iter1326 : struct.success) { - oprot.writeString(_iter1274); + oprot.writeString(_iter1326); } } } @@ -147177,13 +149754,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 _list1275 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1275.size); - String _elem1276; - for (int _i1277 = 0; _i1277 < _list1275.size; ++_i1277) + org.apache.thrift.protocol.TList _list1327 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1327.size); + String _elem1328; + for (int _i1329 = 0; _i1329 < _list1327.size; ++_i1329) { - _elem1276 = iprot.readString(); - struct.success.add(_elem1276); + _elem1328 = iprot.readString(); + struct.success.add(_elem1328); } } struct.setSuccessIsSet(true); @@ -151238,13 +153815,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 _list1278 = iprot.readListBegin(); - struct.success = new ArrayList(_list1278.size); - String _elem1279; - for (int _i1280 = 0; _i1280 < _list1278.size; ++_i1280) + org.apache.thrift.protocol.TList _list1330 = iprot.readListBegin(); + struct.success = new ArrayList(_list1330.size); + String _elem1331; + for (int _i1332 = 0; _i1332 < _list1330.size; ++_i1332) { - _elem1279 = iprot.readString(); - struct.success.add(_elem1279); + _elem1331 = iprot.readString(); + struct.success.add(_elem1331); } iprot.readListEnd(); } @@ -151279,9 +153856,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 _iter1281 : struct.success) + for (String _iter1333 : struct.success) { - oprot.writeString(_iter1281); + oprot.writeString(_iter1333); } oprot.writeListEnd(); } @@ -151320,9 +153897,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1282 : struct.success) + for (String _iter1334 : struct.success) { - oprot.writeString(_iter1282); + oprot.writeString(_iter1334); } } } @@ -151337,13 +153914,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 _list1283 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1283.size); - String _elem1284; - for (int _i1285 = 0; _i1285 < _list1283.size; ++_i1285) + org.apache.thrift.protocol.TList _list1335 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1335.size); + String _elem1336; + for (int _i1337 = 0; _i1337 < _list1335.size; ++_i1337) { - _elem1284 = iprot.readString(); - struct.success.add(_elem1284); + _elem1336 = iprot.readString(); + struct.success.add(_elem1336); } } struct.setSuccessIsSet(true); @@ -154634,14 +157211,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 _list1286 = iprot.readListBegin(); - struct.success = new ArrayList(_list1286.size); - Role _elem1287; - for (int _i1288 = 0; _i1288 < _list1286.size; ++_i1288) + org.apache.thrift.protocol.TList _list1338 = iprot.readListBegin(); + struct.success = new ArrayList(_list1338.size); + Role _elem1339; + for (int _i1340 = 0; _i1340 < _list1338.size; ++_i1340) { - _elem1287 = new Role(); - _elem1287.read(iprot); - struct.success.add(_elem1287); + _elem1339 = new Role(); + _elem1339.read(iprot); + struct.success.add(_elem1339); } iprot.readListEnd(); } @@ -154676,9 +157253,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 _iter1289 : struct.success) + for (Role _iter1341 : struct.success) { - _iter1289.write(oprot); + _iter1341.write(oprot); } oprot.writeListEnd(); } @@ -154717,9 +157294,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Role _iter1290 : struct.success) + for (Role _iter1342 : struct.success) { - _iter1290.write(oprot); + _iter1342.write(oprot); } } } @@ -154734,14 +157311,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 _list1291 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1291.size); - Role _elem1292; - for (int _i1293 = 0; _i1293 < _list1291.size; ++_i1293) + org.apache.thrift.protocol.TList _list1343 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1343.size); + Role _elem1344; + for (int _i1345 = 0; _i1345 < _list1343.size; ++_i1345) { - _elem1292 = new Role(); - _elem1292.read(iprot); - struct.success.add(_elem1292); + _elem1344 = new Role(); + _elem1344.read(iprot); + struct.success.add(_elem1344); } } struct.setSuccessIsSet(true); @@ -157746,13 +160323,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 _list1294 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1294.size); - String _elem1295; - for (int _i1296 = 0; _i1296 < _list1294.size; ++_i1296) + org.apache.thrift.protocol.TList _list1346 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1346.size); + String _elem1347; + for (int _i1348 = 0; _i1348 < _list1346.size; ++_i1348) { - _elem1295 = iprot.readString(); - struct.group_names.add(_elem1295); + _elem1347 = iprot.readString(); + struct.group_names.add(_elem1347); } iprot.readListEnd(); } @@ -157788,9 +160365,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 _iter1297 : struct.group_names) + for (String _iter1349 : struct.group_names) { - oprot.writeString(_iter1297); + oprot.writeString(_iter1349); } oprot.writeListEnd(); } @@ -157833,9 +160410,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 _iter1298 : struct.group_names) + for (String _iter1350 : struct.group_names) { - oprot.writeString(_iter1298); + oprot.writeString(_iter1350); } } } @@ -157856,13 +160433,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1299 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1299.size); - String _elem1300; - for (int _i1301 = 0; _i1301 < _list1299.size; ++_i1301) + org.apache.thrift.protocol.TList _list1351 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1351.size); + String _elem1352; + for (int _i1353 = 0; _i1353 < _list1351.size; ++_i1353) { - _elem1300 = iprot.readString(); - struct.group_names.add(_elem1300); + _elem1352 = iprot.readString(); + struct.group_names.add(_elem1352); } } struct.setGroup_namesIsSet(true); @@ -159320,14 +161897,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 _list1302 = iprot.readListBegin(); - struct.success = new ArrayList(_list1302.size); - HiveObjectPrivilege _elem1303; - for (int _i1304 = 0; _i1304 < _list1302.size; ++_i1304) + org.apache.thrift.protocol.TList _list1354 = iprot.readListBegin(); + struct.success = new ArrayList(_list1354.size); + HiveObjectPrivilege _elem1355; + for (int _i1356 = 0; _i1356 < _list1354.size; ++_i1356) { - _elem1303 = new HiveObjectPrivilege(); - _elem1303.read(iprot); - struct.success.add(_elem1303); + _elem1355 = new HiveObjectPrivilege(); + _elem1355.read(iprot); + struct.success.add(_elem1355); } iprot.readListEnd(); } @@ -159362,9 +161939,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 _iter1305 : struct.success) + for (HiveObjectPrivilege _iter1357 : struct.success) { - _iter1305.write(oprot); + _iter1357.write(oprot); } oprot.writeListEnd(); } @@ -159403,9 +161980,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter1306 : struct.success) + for (HiveObjectPrivilege _iter1358 : struct.success) { - _iter1306.write(oprot); + _iter1358.write(oprot); } } } @@ -159420,14 +161997,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 _list1307 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1307.size); - HiveObjectPrivilege _elem1308; - for (int _i1309 = 0; _i1309 < _list1307.size; ++_i1309) + org.apache.thrift.protocol.TList _list1359 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1359.size); + HiveObjectPrivilege _elem1360; + for (int _i1361 = 0; _i1361 < _list1359.size; ++_i1361) { - _elem1308 = new HiveObjectPrivilege(); - _elem1308.read(iprot); - struct.success.add(_elem1308); + _elem1360 = new HiveObjectPrivilege(); + _elem1360.read(iprot); + struct.success.add(_elem1360); } } struct.setSuccessIsSet(true); @@ -162329,13 +164906,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 _list1310 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1310.size); - String _elem1311; - for (int _i1312 = 0; _i1312 < _list1310.size; ++_i1312) + org.apache.thrift.protocol.TList _list1362 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1362.size); + String _elem1363; + for (int _i1364 = 0; _i1364 < _list1362.size; ++_i1364) { - _elem1311 = iprot.readString(); - struct.group_names.add(_elem1311); + _elem1363 = iprot.readString(); + struct.group_names.add(_elem1363); } iprot.readListEnd(); } @@ -162366,9 +164943,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 _iter1313 : struct.group_names) + for (String _iter1365 : struct.group_names) { - oprot.writeString(_iter1313); + oprot.writeString(_iter1365); } oprot.writeListEnd(); } @@ -162405,9 +164982,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 _iter1314 : struct.group_names) + for (String _iter1366 : struct.group_names) { - oprot.writeString(_iter1314); + oprot.writeString(_iter1366); } } } @@ -162423,13 +165000,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1315 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1315.size); - String _elem1316; - for (int _i1317 = 0; _i1317 < _list1315.size; ++_i1317) + org.apache.thrift.protocol.TList _list1367 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1367.size); + String _elem1368; + for (int _i1369 = 0; _i1369 < _list1367.size; ++_i1369) { - _elem1316 = iprot.readString(); - struct.group_names.add(_elem1316); + _elem1368 = iprot.readString(); + struct.group_names.add(_elem1368); } } struct.setGroup_namesIsSet(true); @@ -162832,13 +165409,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 _list1318 = iprot.readListBegin(); - struct.success = new ArrayList(_list1318.size); - String _elem1319; - for (int _i1320 = 0; _i1320 < _list1318.size; ++_i1320) + org.apache.thrift.protocol.TList _list1370 = iprot.readListBegin(); + struct.success = new ArrayList(_list1370.size); + String _elem1371; + for (int _i1372 = 0; _i1372 < _list1370.size; ++_i1372) { - _elem1319 = iprot.readString(); - struct.success.add(_elem1319); + _elem1371 = iprot.readString(); + struct.success.add(_elem1371); } iprot.readListEnd(); } @@ -162873,9 +165450,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 _iter1321 : struct.success) + for (String _iter1373 : struct.success) { - oprot.writeString(_iter1321); + oprot.writeString(_iter1373); } oprot.writeListEnd(); } @@ -162914,9 +165491,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1322 : struct.success) + for (String _iter1374 : struct.success) { - oprot.writeString(_iter1322); + oprot.writeString(_iter1374); } } } @@ -162931,13 +165508,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 _list1323 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1323.size); - String _elem1324; - for (int _i1325 = 0; _i1325 < _list1323.size; ++_i1325) + org.apache.thrift.protocol.TList _list1375 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1375.size); + String _elem1376; + for (int _i1377 = 0; _i1377 < _list1375.size; ++_i1377) { - _elem1324 = iprot.readString(); - struct.success.add(_elem1324); + _elem1376 = iprot.readString(); + struct.success.add(_elem1376); } } struct.setSuccessIsSet(true); @@ -168228,13 +170805,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 _list1326 = iprot.readListBegin(); - struct.success = new ArrayList(_list1326.size); - String _elem1327; - for (int _i1328 = 0; _i1328 < _list1326.size; ++_i1328) + org.apache.thrift.protocol.TList _list1378 = iprot.readListBegin(); + struct.success = new ArrayList(_list1378.size); + String _elem1379; + for (int _i1380 = 0; _i1380 < _list1378.size; ++_i1380) { - _elem1327 = iprot.readString(); - struct.success.add(_elem1327); + _elem1379 = iprot.readString(); + struct.success.add(_elem1379); } iprot.readListEnd(); } @@ -168260,9 +170837,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 _iter1329 : struct.success) + for (String _iter1381 : struct.success) { - oprot.writeString(_iter1329); + oprot.writeString(_iter1381); } oprot.writeListEnd(); } @@ -168293,9 +170870,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_token_ident if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1330 : struct.success) + for (String _iter1382 : struct.success) { - oprot.writeString(_iter1330); + oprot.writeString(_iter1382); } } } @@ -168307,13 +170884,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 _list1331 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1331.size); - String _elem1332; - for (int _i1333 = 0; _i1333 < _list1331.size; ++_i1333) + org.apache.thrift.protocol.TList _list1383 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1383.size); + String _elem1384; + for (int _i1385 = 0; _i1385 < _list1383.size; ++_i1385) { - _elem1332 = iprot.readString(); - struct.success.add(_elem1332); + _elem1384 = iprot.readString(); + struct.success.add(_elem1384); } } struct.setSuccessIsSet(true); @@ -171343,13 +173920,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 _list1334 = iprot.readListBegin(); - struct.success = new ArrayList(_list1334.size); - String _elem1335; - for (int _i1336 = 0; _i1336 < _list1334.size; ++_i1336) + org.apache.thrift.protocol.TList _list1386 = iprot.readListBegin(); + struct.success = new ArrayList(_list1386.size); + String _elem1387; + for (int _i1388 = 0; _i1388 < _list1386.size; ++_i1388) { - _elem1335 = iprot.readString(); - struct.success.add(_elem1335); + _elem1387 = iprot.readString(); + struct.success.add(_elem1387); } iprot.readListEnd(); } @@ -171375,9 +173952,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 _iter1337 : struct.success) + for (String _iter1389 : struct.success) { - oprot.writeString(_iter1337); + oprot.writeString(_iter1389); } oprot.writeListEnd(); } @@ -171408,9 +173985,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_master_keys_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1338 : struct.success) + for (String _iter1390 : struct.success) { - oprot.writeString(_iter1338); + oprot.writeString(_iter1390); } } } @@ -171422,13 +173999,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 _list1339 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1339.size); - String _elem1340; - for (int _i1341 = 0; _i1341 < _list1339.size; ++_i1341) + org.apache.thrift.protocol.TList _list1391 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1391.size); + String _elem1392; + for (int _i1393 = 0; _i1393 < _list1391.size; ++_i1393) { - _elem1340 = iprot.readString(); - struct.success.add(_elem1340); + _elem1392 = iprot.readString(); + struct.success.add(_elem1392); } } struct.setSuccessIsSet(true); @@ -180368,14 +182945,740 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("heartbeat_txn_range_args("); + StringBuilder sb = new StringBuilder("heartbeat_txn_range_args("); + boolean first = true; + + sb.append("txns:"); + if (this.txns == null) { + sb.append("null"); + } else { + sb.append(this.txns); + } + 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 (txns != null) { + txns.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_argsStandardSchemeFactory implements SchemeFactory { + public heartbeat_txn_range_argsStandardScheme getScheme() { + return new heartbeat_txn_range_argsStandardScheme(); + } + } + + private static class heartbeat_txn_range_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_txn_range_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: // TXNS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.txns = new HeartbeatTxnRangeRequest(); + struct.txns.read(iprot); + struct.setTxnsIsSet(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_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.txns != null) { + oprot.writeFieldBegin(TXNS_FIELD_DESC); + struct.txns.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class heartbeat_txn_range_argsTupleSchemeFactory implements SchemeFactory { + public heartbeat_txn_range_argsTupleScheme getScheme() { + return new heartbeat_txn_range_argsTupleScheme(); + } + } + + private static class heartbeat_txn_range_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, heartbeat_txn_range_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetTxns()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetTxns()) { + struct.txns.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_txn_range_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.txns = new HeartbeatTxnRangeRequest(); + struct.txns.read(iprot); + struct.setTxnsIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class heartbeat_txn_range_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_txn_range_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_txn_range_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new heartbeat_txn_range_resultTupleSchemeFactory()); + } + + private HeartbeatTxnRangeResponse 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, HeartbeatTxnRangeResponse.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(heartbeat_txn_range_result.class, metaDataMap); + } + + public heartbeat_txn_range_result() { + } + + public heartbeat_txn_range_result( + HeartbeatTxnRangeResponse success) + { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public heartbeat_txn_range_result(heartbeat_txn_range_result other) { + if (other.isSetSuccess()) { + this.success = new HeartbeatTxnRangeResponse(other.success); + } + } + + public heartbeat_txn_range_result deepCopy() { + return new heartbeat_txn_range_result(this); + } + + @Override + public void clear() { + this.success = null; + } + + public HeartbeatTxnRangeResponse getSuccess() { + return this.success; + } + + public void setSuccess(HeartbeatTxnRangeResponse 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((HeartbeatTxnRangeResponse)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 heartbeat_txn_range_result) + return this.equals((heartbeat_txn_range_result)that); + return false; + } + + public boolean equals(heartbeat_txn_range_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(heartbeat_txn_range_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("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); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable 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("txns:"); - if (this.txns == null) { + sb.append("rqst:"); + if (this.rqst == null) { sb.append("null"); } else { - sb.append(this.txns); + sb.append(this.rqst); } first = false; sb.append(")"); @@ -180385,8 +183688,8 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (txns != null) { - txns.validate(); + if (rqst != null) { + rqst.validate(); } } @@ -180406,15 +183709,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class heartbeat_txn_range_argsStandardSchemeFactory implements SchemeFactory { - public heartbeat_txn_range_argsStandardScheme getScheme() { - return new heartbeat_txn_range_argsStandardScheme(); + private static class compact_argsStandardSchemeFactory implements SchemeFactory { + public compact_argsStandardScheme getScheme() { + return new compact_argsStandardScheme(); } } - private static class heartbeat_txn_range_argsStandardScheme extends StandardScheme { + private static class compact_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_txn_range_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) @@ -180424,11 +183727,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_txn_range break; } switch (schemeField.id) { - case 1: // TXNS + case 1: // RQST if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.txns = new HeartbeatTxnRangeRequest(); - struct.txns.read(iprot); - struct.setTxnsIsSet(true); + struct.rqst = new CompactionRequest(); + struct.rqst.read(iprot); + struct.setRqstIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -180442,13 +183745,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_txn_range struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, heartbeat_txn_range_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); - if (struct.txns != null) { - oprot.writeFieldBegin(TXNS_FIELD_DESC); - struct.txns.write(oprot); + if (struct.rqst != null) { + oprot.writeFieldBegin(RQST_FIELD_DESC); + struct.rqst.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -180457,57 +183760,55 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, heartbeat_txn_rang } - private static class heartbeat_txn_range_argsTupleSchemeFactory implements SchemeFactory { - public heartbeat_txn_range_argsTupleScheme getScheme() { - return new heartbeat_txn_range_argsTupleScheme(); + private static class compact_argsTupleSchemeFactory implements SchemeFactory { + public compact_argsTupleScheme getScheme() { + return new compact_argsTupleScheme(); } } - private static class heartbeat_txn_range_argsTupleScheme extends TupleScheme { + private static class compact_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, heartbeat_txn_range_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.isSetTxns()) { + if (struct.isSetRqst()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetTxns()) { - struct.txns.write(oprot); + if (struct.isSetRqst()) { + struct.rqst.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_txn_range_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.txns = new HeartbeatTxnRangeRequest(); - struct.txns.read(iprot); - struct.setTxnsIsSet(true); + struct.rqst = new CompactionRequest(); + struct.rqst.read(iprot); + struct.setRqstIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class heartbeat_txn_range_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_txn_range_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable 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 heartbeat_txn_range_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new heartbeat_txn_range_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new compact_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new compact_resultTupleSchemeFactory()); } - private HeartbeatTxnRangeResponse 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(); @@ -180522,8 +183823,6 @@ public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_txn_range_ */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; default: return null; } @@ -180562,86 +183861,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, HeartbeatTxnRangeResponse.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(heartbeat_txn_range_result.class, metaDataMap); - } - - public heartbeat_txn_range_result() { + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(compact_result.class, metaDataMap); } - public heartbeat_txn_range_result( - HeartbeatTxnRangeResponse success) - { - this(); - this.success = success; + public compact_result() { } /** * Performs a deep copy on other. */ - public heartbeat_txn_range_result(heartbeat_txn_range_result other) { - if (other.isSetSuccess()) { - this.success = new HeartbeatTxnRangeResponse(other.success); - } + public compact_result(compact_result other) { } - public heartbeat_txn_range_result deepCopy() { - return new heartbeat_txn_range_result(this); + public compact_result deepCopy() { + return new compact_result(this); } @Override public void clear() { - this.success = null; - } - - public HeartbeatTxnRangeResponse getSuccess() { - return this.success; - } - - public void setSuccess(HeartbeatTxnRangeResponse 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((HeartbeatTxnRangeResponse)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - } throw new IllegalStateException(); } @@ -180653,8 +183903,6 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); } throw new IllegalStateException(); } @@ -180663,24 +183911,15 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof heartbeat_txn_range_result) - return this.equals((heartbeat_txn_range_result)that); + if (that instanceof compact_result) + return this.equals((compact_result)that); return false; } - public boolean equals(heartbeat_txn_range_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; } @@ -180688,32 +183927,17 @@ public boolean equals(heartbeat_txn_range_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(heartbeat_txn_range_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; } @@ -180731,16 +183955,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("heartbeat_txn_range_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(); } @@ -180748,9 +183965,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 { @@ -180769,15 +183983,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class heartbeat_txn_range_resultStandardSchemeFactory implements SchemeFactory { - public heartbeat_txn_range_resultStandardScheme getScheme() { - return new heartbeat_txn_range_resultStandardScheme(); + private static class compact_resultStandardSchemeFactory implements SchemeFactory { + public compact_resultStandardScheme getScheme() { + return new compact_resultStandardScheme(); } } - private static class heartbeat_txn_range_resultStandardScheme extends StandardScheme { + private static class compact_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_txn_range_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) @@ -180787,15 +184001,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_txn_range 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); } @@ -180805,65 +184010,46 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, heartbeat_txn_range struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, heartbeat_txn_range_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 heartbeat_txn_range_resultTupleSchemeFactory implements SchemeFactory { - public heartbeat_txn_range_resultTupleScheme getScheme() { - return new heartbeat_txn_range_resultTupleScheme(); + private static class compact_resultTupleSchemeFactory implements SchemeFactory { + public compact_resultTupleScheme getScheme() { + return new compact_resultTupleScheme(); } } - private static class heartbeat_txn_range_resultTupleScheme extends TupleScheme { + private static class compact_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, heartbeat_txn_range_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, heartbeat_txn_range_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 HeartbeatTxnRangeResponse(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable 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"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable 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 compact_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new compact_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new compact2_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new compact2_argsTupleSchemeFactory()); } private CompactionRequest rqst; // required @@ -180933,13 +184119,13 @@ public String getFieldName() { 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); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(compact2_args.class, metaDataMap); } - public compact_args() { + public compact2_args() { } - public compact_args( + public compact2_args( CompactionRequest rqst) { this(); @@ -180949,14 +184135,14 @@ public compact_args( /** * Performs a deep copy on other. */ - public compact_args(compact_args other) { + public compact2_args(compact2_args other) { if (other.isSetRqst()) { this.rqst = new CompactionRequest(other.rqst); } } - public compact_args deepCopy() { - return new compact_args(this); + public compact2_args deepCopy() { + return new compact2_args(this); } @Override @@ -181026,12 +184212,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof compact_args) - return this.equals((compact_args)that); + if (that instanceof compact2_args) + return this.equals((compact2_args)that); return false; } - public boolean equals(compact_args that) { + public boolean equals(compact2_args that) { if (that == null) return false; @@ -181060,7 +184246,7 @@ public int hashCode() { } @Override - public int compareTo(compact_args other) { + public int compareTo(compact2_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -181094,7 +184280,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("compact_args("); + StringBuilder sb = new StringBuilder("compact2_args("); boolean first = true; sb.append("rqst:"); @@ -181132,15 +184318,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class compact_argsStandardSchemeFactory implements SchemeFactory { - public compact_argsStandardScheme getScheme() { - return new compact_argsStandardScheme(); + private static class compact2_argsStandardSchemeFactory implements SchemeFactory { + public compact2_argsStandardScheme getScheme() { + return new compact2_argsStandardScheme(); } } - private static class compact_argsStandardScheme extends StandardScheme { + private static class compact2_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, compact_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) @@ -181168,7 +184354,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, compact_args struct struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, compact_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); @@ -181183,16 +184369,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, compact_args struc } - private static class compact_argsTupleSchemeFactory implements SchemeFactory { - public compact_argsTupleScheme getScheme() { - return new compact_argsTupleScheme(); + private static class compact2_argsTupleSchemeFactory implements SchemeFactory { + public compact2_argsTupleScheme getScheme() { + return new compact2_argsTupleScheme(); } } - private static class compact_argsTupleScheme extends TupleScheme { + private static class compact2_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, compact_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()) { @@ -181205,7 +184391,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, compact_args struct } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, compact_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)) { @@ -181218,20 +184404,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, compact_args struct) } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable 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"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable 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 compact_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new compact_resultTupleSchemeFactory()); + 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(); @@ -181246,6 +184434,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, compact_args struct) */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; default: return null; } @@ -181284,37 +184474,86 @@ public String getFieldName() { return _fieldName; } } + + // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CompactionResponse.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(compact_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(compact2_result.class, metaDataMap); } - public compact_result() { + public compact2_result() { + } + + public compact2_result( + CompactionResponse success) + { + this(); + this.success = success; } /** * Performs a deep copy on other. */ - public compact_result(compact_result other) { + public compact2_result(compact2_result other) { + if (other.isSetSuccess()) { + this.success = new CompactionResponse(other.success); + } } - public compact_result deepCopy() { - return new compact_result(this); + 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(); } @@ -181326,6 +184565,8 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); } throw new IllegalStateException(); } @@ -181334,15 +184575,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof compact_result) - return this.equals((compact_result)that); + if (that instanceof compact2_result) + return this.equals((compact2_result)that); return false; } - public boolean equals(compact_result that) { + 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; } @@ -181350,17 +184600,32 @@ public boolean equals(compact_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(compact_result other) { + 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; } @@ -181378,9 +184643,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("compact_result("); + 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(); } @@ -181388,6 +184660,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 { @@ -181406,15 +184681,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class compact_resultStandardSchemeFactory implements SchemeFactory { - public compact_resultStandardScheme getScheme() { - return new compact_resultStandardScheme(); + private static class compact2_resultStandardSchemeFactory implements SchemeFactory { + public compact2_resultStandardScheme getScheme() { + return new compact2_resultStandardScheme(); } } - private static class compact_resultStandardScheme extends StandardScheme { + private static class compact2_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, compact_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) @@ -181424,6 +184699,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, compact_result stru 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); } @@ -181433,49 +184717,68 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, compact_result stru struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, compact_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); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + struct.success.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class compact_resultTupleSchemeFactory implements SchemeFactory { - public compact_resultTupleScheme getScheme() { - return new compact_resultTupleScheme(); + private static class compact2_resultTupleSchemeFactory implements SchemeFactory { + public compact2_resultTupleScheme getScheme() { + return new compact2_resultTupleScheme(); } } - private static class compact_resultTupleScheme extends TupleScheme { + private static class compact2_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, compact_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()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, compact_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 CompactionResponse(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable 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"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable 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 compact2_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new compact2_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new show_compact_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new show_compact_argsTupleSchemeFactory()); } - private CompactionRequest 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 { @@ -181540,16 +184843,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, CompactionRequest.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(compact2_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(show_compact_args.class, metaDataMap); } - public compact2_args() { + public show_compact_args() { } - public compact2_args( - CompactionRequest rqst) + public show_compact_args( + ShowCompactRequest rqst) { this(); this.rqst = rqst; @@ -181558,14 +184861,14 @@ public compact2_args( /** * Performs a deep copy on other. */ - public compact2_args(compact2_args other) { + public show_compact_args(show_compact_args other) { if (other.isSetRqst()) { - this.rqst = new CompactionRequest(other.rqst); + this.rqst = new ShowCompactRequest(other.rqst); } } - public compact2_args deepCopy() { - return new compact2_args(this); + public show_compact_args deepCopy() { + return new show_compact_args(this); } @Override @@ -181573,11 +184876,11 @@ public void clear() { this.rqst = null; } - public CompactionRequest getRqst() { + public ShowCompactRequest getRqst() { return this.rqst; } - public void setRqst(CompactionRequest rqst) { + public void setRqst(ShowCompactRequest rqst) { this.rqst = rqst; } @@ -181602,7 +184905,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetRqst(); } else { - setRqst((CompactionRequest)value); + setRqst((ShowCompactRequest)value); } break; @@ -181635,12 +184938,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof compact2_args) - return this.equals((compact2_args)that); + if (that instanceof show_compact_args) + return this.equals((show_compact_args)that); return false; } - public boolean equals(compact2_args that) { + public boolean equals(show_compact_args that) { if (that == null) return false; @@ -181669,7 +184972,7 @@ public int hashCode() { } @Override - public int compareTo(compact2_args other) { + public int compareTo(show_compact_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -181703,7 +185006,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("compact2_args("); + StringBuilder sb = new StringBuilder("show_compact_args("); boolean first = true; sb.append("rqst:"); @@ -181741,15 +185044,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class compact2_argsStandardSchemeFactory implements SchemeFactory { - public compact2_argsStandardScheme getScheme() { - return new compact2_argsStandardScheme(); + private static class show_compact_argsStandardSchemeFactory implements SchemeFactory { + public show_compact_argsStandardScheme getScheme() { + return new show_compact_argsStandardScheme(); } } - private static class compact2_argsStandardScheme extends StandardScheme { + private static class show_compact_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, compact2_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) @@ -181761,7 +185064,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, compact2_args struc switch (schemeField.id) { case 1: // RQST if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.rqst = new CompactionRequest(); + struct.rqst = new ShowCompactRequest(); struct.rqst.read(iprot); struct.setRqstIsSet(true); } else { @@ -181777,7 +185080,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, compact2_args struc struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, compact2_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); @@ -181792,16 +185095,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, compact2_args stru } - private static class compact2_argsTupleSchemeFactory implements SchemeFactory { - public compact2_argsTupleScheme getScheme() { - return new compact2_argsTupleScheme(); + private static class show_compact_argsTupleSchemeFactory implements SchemeFactory { + public show_compact_argsTupleScheme getScheme() { + return new show_compact_argsTupleScheme(); } } - private static class compact2_argsTupleScheme extends TupleScheme { + private static class show_compact_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, compact2_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()) { @@ -181814,11 +185117,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, compact2_args struc } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, compact2_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 CompactionRequest(); + struct.rqst = new ShowCompactRequest(); struct.rqst.read(iprot); struct.setRqstIsSet(true); } @@ -181827,18 +185130,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, compact2_args struct } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable 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"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable 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 compact2_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new compact2_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new show_compact_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new show_compact_resultTupleSchemeFactory()); } - private CompactionResponse 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 { @@ -181903,16 +185206,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, CompactionResponse.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(compact2_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(show_compact_result.class, metaDataMap); } - public compact2_result() { + public show_compact_result() { } - public compact2_result( - CompactionResponse success) + public show_compact_result( + ShowCompactResponse success) { this(); this.success = success; @@ -181921,14 +185224,14 @@ public compact2_result( /** * Performs a deep copy on other. */ - public compact2_result(compact2_result other) { + public show_compact_result(show_compact_result other) { if (other.isSetSuccess()) { - this.success = new CompactionResponse(other.success); + this.success = new ShowCompactResponse(other.success); } } - public compact2_result deepCopy() { - return new compact2_result(this); + public show_compact_result deepCopy() { + return new show_compact_result(this); } @Override @@ -181936,11 +185239,11 @@ public void clear() { this.success = null; } - public CompactionResponse getSuccess() { + public ShowCompactResponse getSuccess() { return this.success; } - public void setSuccess(CompactionResponse success) { + public void setSuccess(ShowCompactResponse success) { this.success = success; } @@ -181965,7 +185268,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((CompactionResponse)value); + setSuccess((ShowCompactResponse)value); } break; @@ -181998,12 +185301,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof compact2_result) - return this.equals((compact2_result)that); + if (that instanceof show_compact_result) + return this.equals((show_compact_result)that); return false; } - public boolean equals(compact2_result that) { + public boolean equals(show_compact_result that) { if (that == null) return false; @@ -182032,7 +185335,7 @@ public int hashCode() { } @Override - public int compareTo(compact2_result other) { + public int compareTo(show_compact_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -182066,7 +185369,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("compact2_result("); + StringBuilder sb = new StringBuilder("show_compact_result("); boolean first = true; sb.append("success:"); @@ -182104,15 +185407,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class compact2_resultStandardSchemeFactory implements SchemeFactory { - public compact2_resultStandardScheme getScheme() { - return new compact2_resultStandardScheme(); + private static class show_compact_resultStandardSchemeFactory implements SchemeFactory { + public show_compact_resultStandardScheme getScheme() { + return new show_compact_resultStandardScheme(); } } - private static class compact2_resultStandardScheme extends StandardScheme { + private static class show_compact_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, compact2_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) @@ -182124,7 +185427,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, compact2_result str switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new CompactionResponse(); + struct.success = new ShowCompactResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -182140,7 +185443,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, compact2_result str struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, compact2_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); @@ -182155,16 +185458,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, compact2_result st } - private static class compact2_resultTupleSchemeFactory implements SchemeFactory { - public compact2_resultTupleScheme getScheme() { - return new compact2_resultTupleScheme(); + private static class show_compact_resultTupleSchemeFactory implements SchemeFactory { + public show_compact_resultTupleScheme getScheme() { + return new show_compact_resultTupleScheme(); } } - private static class compact2_resultTupleScheme extends TupleScheme { + private static class show_compact_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, compact2_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()) { @@ -182177,11 +185480,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, compact2_result str } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, compact2_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 CompactionResponse(); + struct.success = new ShowCompactResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -182190,18 +185493,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, compact2_result stru } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable 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"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable 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 show_compact_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new show_compact_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_dynamic_partitions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_dynamic_partitions_argsTupleSchemeFactory()); } - private ShowCompactRequest rqst; // required + 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 { @@ -182266,16 +185569,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, ShowCompactRequest.class))); + 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(show_compact_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_dynamic_partitions_args.class, metaDataMap); } - public show_compact_args() { + public add_dynamic_partitions_args() { } - public show_compact_args( - ShowCompactRequest rqst) + public add_dynamic_partitions_args( + AddDynamicPartitions rqst) { this(); this.rqst = rqst; @@ -182284,14 +185587,14 @@ public show_compact_args( /** * Performs a deep copy on other. */ - public show_compact_args(show_compact_args other) { + public add_dynamic_partitions_args(add_dynamic_partitions_args other) { if (other.isSetRqst()) { - this.rqst = new ShowCompactRequest(other.rqst); + this.rqst = new AddDynamicPartitions(other.rqst); } } - public show_compact_args deepCopy() { - return new show_compact_args(this); + public add_dynamic_partitions_args deepCopy() { + return new add_dynamic_partitions_args(this); } @Override @@ -182299,11 +185602,11 @@ public void clear() { this.rqst = null; } - public ShowCompactRequest getRqst() { + public AddDynamicPartitions getRqst() { return this.rqst; } - public void setRqst(ShowCompactRequest rqst) { + public void setRqst(AddDynamicPartitions rqst) { this.rqst = rqst; } @@ -182328,7 +185631,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetRqst(); } else { - setRqst((ShowCompactRequest)value); + setRqst((AddDynamicPartitions)value); } break; @@ -182361,12 +185664,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof show_compact_args) - return this.equals((show_compact_args)that); + if (that instanceof add_dynamic_partitions_args) + return this.equals((add_dynamic_partitions_args)that); return false; } - public boolean equals(show_compact_args that) { + public boolean equals(add_dynamic_partitions_args that) { if (that == null) return false; @@ -182395,7 +185698,7 @@ public int hashCode() { } @Override - public int compareTo(show_compact_args other) { + public int compareTo(add_dynamic_partitions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -182429,7 +185732,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("show_compact_args("); + StringBuilder sb = new StringBuilder("add_dynamic_partitions_args("); boolean first = true; sb.append("rqst:"); @@ -182467,15 +185770,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class show_compact_argsStandardSchemeFactory implements SchemeFactory { - public show_compact_argsStandardScheme getScheme() { - return new show_compact_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 show_compact_argsStandardScheme extends StandardScheme { + private static class add_dynamic_partitions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, show_compact_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) @@ -182487,7 +185790,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, show_compact_args s switch (schemeField.id) { case 1: // RQST if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.rqst = new ShowCompactRequest(); + struct.rqst = new AddDynamicPartitions(); struct.rqst.read(iprot); struct.setRqstIsSet(true); } else { @@ -182503,7 +185806,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, show_compact_args s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, show_compact_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); @@ -182518,16 +185821,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, show_compact_args } - private static class show_compact_argsTupleSchemeFactory implements SchemeFactory { - public show_compact_argsTupleScheme getScheme() { - return new show_compact_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 show_compact_argsTupleScheme extends TupleScheme { + private static class add_dynamic_partitions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, show_compact_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()) { @@ -182540,11 +185843,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, show_compact_args s } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, show_compact_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 ShowCompactRequest(); + struct.rqst = new AddDynamicPartitions(); struct.rqst.read(iprot); struct.setRqstIsSet(true); } @@ -182553,22 +185856,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, show_compact_args st } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable 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"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable 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 SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + 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 show_compact_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new show_compact_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_dynamic_partitions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_dynamic_partitions_resultTupleSchemeFactory()); } - private ShowCompactResponse success; // required + 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 { - SUCCESS((short)0, "success"); + O1((short)1, "o1"), + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -182583,8 +185889,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, show_compact_args st */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; + case 1: // O1 + return O1; + case 2: // O2 + return O2; default: return null; } @@ -182628,70 +185936,109 @@ 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.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))); + 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(show_compact_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_dynamic_partitions_result.class, metaDataMap); } - public show_compact_result() { + public add_dynamic_partitions_result() { } - public show_compact_result( - ShowCompactResponse success) + public add_dynamic_partitions_result( + NoSuchTxnException o1, + TxnAbortedException o2) { this(); - this.success = success; + this.o1 = o1; + this.o2 = o2; } /** * Performs a deep copy on other. */ - public show_compact_result(show_compact_result other) { - if (other.isSetSuccess()) { - this.success = new ShowCompactResponse(other.success); + 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 show_compact_result deepCopy() { - return new show_compact_result(this); + public add_dynamic_partitions_result deepCopy() { + return new add_dynamic_partitions_result(this); } @Override public void clear() { - this.success = null; + this.o1 = null; + this.o2 = null; } - public ShowCompactResponse getSuccess() { - return this.success; + public NoSuchTxnException getO1() { + return this.o1; } - public void setSuccess(ShowCompactResponse success) { - this.success = success; + public void setO1(NoSuchTxnException o1) { + this.o1 = o1; } - public void unsetSuccess() { - this.success = null; + public void unsetO1() { + this.o1 = null; } - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != 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 setSuccessIsSet(boolean value) { + public void setO1IsSet(boolean value) { if (!value) { - this.success = null; + 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 SUCCESS: + case O1: if (value == null) { - unsetSuccess(); + unsetO1(); } else { - setSuccess((ShowCompactResponse)value); + setO1((NoSuchTxnException)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((TxnAbortedException)value); } break; @@ -182700,8 +186047,11 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); + case O1: + return getO1(); + + case O2: + return getO2(); } throw new IllegalStateException(); @@ -182714,8 +186064,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); + case O1: + return isSetO1(); + case O2: + return isSetO2(); } throw new IllegalStateException(); } @@ -182724,21 +186076,30 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof show_compact_result) - return this.equals((show_compact_result)that); + if (that instanceof add_dynamic_partitions_result) + return this.equals((add_dynamic_partitions_result)that); return false; } - public boolean equals(show_compact_result that) { + public boolean equals(add_dynamic_partitions_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)) + 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.success.equals(that.success)) + 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; } @@ -182749,28 +186110,43 @@ public boolean equals(show_compact_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + 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(show_compact_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(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); if (lastComparison != 0) { return lastComparison; } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + 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; } @@ -182792,14 +186168,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("show_compact_result("); + StringBuilder sb = new StringBuilder("add_dynamic_partitions_result("); boolean first = true; - sb.append("success:"); - if (this.success == null) { + sb.append("o1:"); + if (this.o1 == null) { sb.append("null"); } else { - sb.append(this.success); + 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(")"); @@ -182809,9 +186193,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 { @@ -182830,15 +186211,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class show_compact_resultStandardSchemeFactory implements SchemeFactory { - public show_compact_resultStandardScheme getScheme() { - return new show_compact_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 show_compact_resultStandardScheme extends StandardScheme { + private static class add_dynamic_partitions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, show_compact_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) @@ -182848,11 +186229,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, show_compact_result break; } switch (schemeField.id) { - case 0: // SUCCESS + case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new ShowCompactResponse(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); + 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); } @@ -182866,13 +186256,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, show_compact_result struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, show_compact_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.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + 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(); @@ -182881,57 +186276,74 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, show_compact_resul } - private static class show_compact_resultTupleSchemeFactory implements SchemeFactory { - public show_compact_resultTupleScheme getScheme() { - return new show_compact_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 show_compact_resultTupleScheme extends TupleScheme { + private static class add_dynamic_partitions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, show_compact_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.isSetSuccess()) { + if (struct.isSetO1()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetSuccess()) { - struct.success.write(oprot); + 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, show_compact_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(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = new ShowCompactResponse(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); + 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); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable 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"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_last_completed_transaction_for_table_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_last_completed_transaction_for_table_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 org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("table_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField TXNS_SNAPSHOT_FIELD_DESC = new org.apache.thrift.protocol.TField("txns_snapshot", org.apache.thrift.protocol.TType.STRUCT, (short)3); 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()); + schemes.put(StandardScheme.class, new get_last_completed_transaction_for_table_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_last_completed_transaction_for_table_argsTupleSchemeFactory()); } - private AddDynamicPartitions rqst; // required + private String db_name; // required + private String table_name; // required + private TxnsSnapshot txns_snapshot; // 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"); + DB_NAME((short)1, "db_name"), + TABLE_NAME((short)2, "table_name"), + TXNS_SNAPSHOT((short)3, "txns_snapshot"); private static final Map byName = new HashMap(); @@ -182946,8 +186358,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, show_compact_result */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // RQST - return RQST; + case 1: // DB_NAME + return DB_NAME; + case 2: // TABLE_NAME + return TABLE_NAME; + case 3: // TXNS_SNAPSHOT + return TXNS_SNAPSHOT; default: return null; } @@ -182991,70 +186407,148 @@ 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.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))); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TXNS_SNAPSHOT, new org.apache.thrift.meta_data.FieldMetaData("txns_snapshot", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TxnsSnapshot.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_dynamic_partitions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_last_completed_transaction_for_table_args.class, metaDataMap); } - public add_dynamic_partitions_args() { + public get_last_completed_transaction_for_table_args() { } - public add_dynamic_partitions_args( - AddDynamicPartitions rqst) + public get_last_completed_transaction_for_table_args( + String db_name, + String table_name, + TxnsSnapshot txns_snapshot) { this(); - this.rqst = rqst; + this.db_name = db_name; + this.table_name = table_name; + this.txns_snapshot = txns_snapshot; } /** * 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 get_last_completed_transaction_for_table_args(get_last_completed_transaction_for_table_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTable_name()) { + this.table_name = other.table_name; + } + if (other.isSetTxns_snapshot()) { + this.txns_snapshot = new TxnsSnapshot(other.txns_snapshot); } } - public add_dynamic_partitions_args deepCopy() { - return new add_dynamic_partitions_args(this); + public get_last_completed_transaction_for_table_args deepCopy() { + return new get_last_completed_transaction_for_table_args(this); } @Override public void clear() { - this.rqst = null; + this.db_name = null; + this.table_name = null; + this.txns_snapshot = null; } - public AddDynamicPartitions getRqst() { - return this.rqst; + public String getDb_name() { + return this.db_name; } - public void setRqst(AddDynamicPartitions rqst) { - this.rqst = rqst; + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void unsetRqst() { - this.rqst = null; + public void unsetDb_name() { + this.db_name = null; } - /** Returns true if field rqst is set (has been assigned a value) and false otherwise */ - public boolean isSetRqst() { - return this.rqst != null; + /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_name() { + return this.db_name != null; } - public void setRqstIsSet(boolean value) { + public void setDb_nameIsSet(boolean value) { if (!value) { - this.rqst = null; + this.db_name = null; + } + } + + public String getTable_name() { + return this.table_name; + } + + public void setTable_name(String table_name) { + this.table_name = table_name; + } + + public void unsetTable_name() { + this.table_name = null; + } + + /** Returns true if field table_name is set (has been assigned a value) and false otherwise */ + public boolean isSetTable_name() { + return this.table_name != null; + } + + public void setTable_nameIsSet(boolean value) { + if (!value) { + this.table_name = null; + } + } + + public TxnsSnapshot getTxns_snapshot() { + return this.txns_snapshot; + } + + public void setTxns_snapshot(TxnsSnapshot txns_snapshot) { + this.txns_snapshot = txns_snapshot; + } + + public void unsetTxns_snapshot() { + this.txns_snapshot = null; + } + + /** Returns true if field txns_snapshot is set (has been assigned a value) and false otherwise */ + public boolean isSetTxns_snapshot() { + return this.txns_snapshot != null; + } + + public void setTxns_snapshotIsSet(boolean value) { + if (!value) { + this.txns_snapshot = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case RQST: + case DB_NAME: if (value == null) { - unsetRqst(); + unsetDb_name(); } else { - setRqst((AddDynamicPartitions)value); + setDb_name((String)value); + } + break; + + case TABLE_NAME: + if (value == null) { + unsetTable_name(); + } else { + setTable_name((String)value); + } + break; + + case TXNS_SNAPSHOT: + if (value == null) { + unsetTxns_snapshot(); + } else { + setTxns_snapshot((TxnsSnapshot)value); } break; @@ -183063,8 +186557,14 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case RQST: - return getRqst(); + case DB_NAME: + return getDb_name(); + + case TABLE_NAME: + return getTable_name(); + + case TXNS_SNAPSHOT: + return getTxns_snapshot(); } throw new IllegalStateException(); @@ -183077,8 +186577,12 @@ public boolean isSet(_Fields field) { } switch (field) { - case RQST: - return isSetRqst(); + case DB_NAME: + return isSetDb_name(); + case TABLE_NAME: + return isSetTable_name(); + case TXNS_SNAPSHOT: + return isSetTxns_snapshot(); } throw new IllegalStateException(); } @@ -183087,21 +186591,39 @@ public boolean isSet(_Fields field) { 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); + if (that instanceof get_last_completed_transaction_for_table_args) + return this.equals((get_last_completed_transaction_for_table_args)that); return false; } - public boolean equals(add_dynamic_partitions_args that) { + public boolean equals(get_last_completed_transaction_for_table_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)) + boolean this_present_db_name = true && this.isSetDb_name(); + boolean that_present_db_name = true && that.isSetDb_name(); + if (this_present_db_name || that_present_db_name) { + if (!(this_present_db_name && that_present_db_name)) return false; - if (!this.rqst.equals(that.rqst)) + if (!this.db_name.equals(that.db_name)) + return false; + } + + boolean this_present_table_name = true && this.isSetTable_name(); + boolean that_present_table_name = true && that.isSetTable_name(); + if (this_present_table_name || that_present_table_name) { + if (!(this_present_table_name && that_present_table_name)) + return false; + if (!this.table_name.equals(that.table_name)) + return false; + } + + boolean this_present_txns_snapshot = true && this.isSetTxns_snapshot(); + boolean that_present_txns_snapshot = true && that.isSetTxns_snapshot(); + if (this_present_txns_snapshot || that_present_txns_snapshot) { + if (!(this_present_txns_snapshot && that_present_txns_snapshot)) + return false; + if (!this.txns_snapshot.equals(that.txns_snapshot)) return false; } @@ -183112,28 +186634,58 @@ public boolean equals(add_dynamic_partitions_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); - if (present_rqst) - list.add(rqst); + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); + + boolean present_table_name = true && (isSetTable_name()); + list.add(present_table_name); + if (present_table_name) + list.add(table_name); + + boolean present_txns_snapshot = true && (isSetTxns_snapshot()); + list.add(present_txns_snapshot); + if (present_txns_snapshot) + list.add(txns_snapshot); return list.hashCode(); } @Override - public int compareTo(add_dynamic_partitions_args other) { + public int compareTo(get_last_completed_transaction_for_table_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTable_name()).compareTo(other.isSetTable_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTable_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_name, other.table_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTxns_snapshot()).compareTo(other.isSetTxns_snapshot()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTxns_snapshot()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txns_snapshot, other.txns_snapshot); if (lastComparison != 0) { return lastComparison; } @@ -183155,14 +186707,30 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_dynamic_partitions_args("); + StringBuilder sb = new StringBuilder("get_last_completed_transaction_for_table_args("); boolean first = true; - sb.append("rqst:"); - if (this.rqst == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.rqst); + sb.append(this.db_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("table_name:"); + if (this.table_name == null) { + sb.append("null"); + } else { + sb.append(this.table_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("txns_snapshot:"); + if (this.txns_snapshot == null) { + sb.append("null"); + } else { + sb.append(this.txns_snapshot); } first = false; sb.append(")"); @@ -183172,8 +186740,8 @@ 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(); + if (txns_snapshot != null) { + txns_snapshot.validate(); } } @@ -183193,15 +186761,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_dynamic_partitions_argsStandardSchemeFactory implements SchemeFactory { - public add_dynamic_partitions_argsStandardScheme getScheme() { - return new add_dynamic_partitions_argsStandardScheme(); + private static class get_last_completed_transaction_for_table_argsStandardSchemeFactory implements SchemeFactory { + public get_last_completed_transaction_for_table_argsStandardScheme getScheme() { + return new get_last_completed_transaction_for_table_argsStandardScheme(); } } - private static class add_dynamic_partitions_argsStandardScheme extends StandardScheme { + private static class get_last_completed_transaction_for_table_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_dynamic_partitions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_last_completed_transaction_for_table_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -183211,11 +186779,27 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_dynamic_partiti break; } switch (schemeField.id) { - case 1: // RQST + case 1: // DB_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.table_name = iprot.readString(); + struct.setTable_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TXNS_SNAPSHOT if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.rqst = new AddDynamicPartitions(); - struct.rqst.read(iprot); - struct.setRqstIsSet(true); + struct.txns_snapshot = new TxnsSnapshot(); + struct.txns_snapshot.read(iprot); + struct.setTxns_snapshotIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -183229,13 +186813,23 @@ 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_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_last_completed_transaction_for_table_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); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); + oprot.writeFieldEnd(); + } + if (struct.table_name != null) { + oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); + oprot.writeString(struct.table_name); + oprot.writeFieldEnd(); + } + if (struct.txns_snapshot != null) { + oprot.writeFieldBegin(TXNS_SNAPSHOT_FIELD_DESC); + struct.txns_snapshot.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -183244,60 +186838,77 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_dynamic_partit } - private static class add_dynamic_partitions_argsTupleSchemeFactory implements SchemeFactory { - public add_dynamic_partitions_argsTupleScheme getScheme() { - return new add_dynamic_partitions_argsTupleScheme(); + private static class get_last_completed_transaction_for_table_argsTupleSchemeFactory implements SchemeFactory { + public get_last_completed_transaction_for_table_argsTupleScheme getScheme() { + return new get_last_completed_transaction_for_table_argsTupleScheme(); } } - private static class add_dynamic_partitions_argsTupleScheme extends TupleScheme { + private static class get_last_completed_transaction_for_table_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_dynamic_partitions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_last_completed_transaction_for_table_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetRqst()) { + if (struct.isSetDb_name()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetRqst()) { - struct.rqst.write(oprot); + if (struct.isSetTable_name()) { + optionals.set(1); + } + if (struct.isSetTxns_snapshot()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); + } + if (struct.isSetTable_name()) { + oprot.writeString(struct.table_name); + } + if (struct.isSetTxns_snapshot()) { + struct.txns_snapshot.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_dynamic_partitions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_last_completed_transaction_for_table_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.rqst = new AddDynamicPartitions(); - struct.rqst.read(iprot); - struct.setRqstIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } + if (incoming.get(1)) { + struct.table_name = iprot.readString(); + struct.setTable_nameIsSet(true); + } + if (incoming.get(2)) { + struct.txns_snapshot = new TxnsSnapshot(); + struct.txns_snapshot.read(iprot); + struct.setTxns_snapshotIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable 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"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_last_completed_transaction_for_table_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_last_completed_transaction_for_table_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 org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_dynamic_partitions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_dynamic_partitions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_last_completed_transaction_for_table_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_last_completed_transaction_for_table_resultTupleSchemeFactory()); } - private NoSuchTxnException o1; // required - private TxnAbortedException o2; // required + private BasicTxnInfo 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 { - O1((short)1, "o1"), - O2((short)2, "o2"); + SUCCESS((short)0, "success"); private static final Map byName = new HashMap(); @@ -183312,10 +186923,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_dynamic_partitio */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // O1 - return O1; - case 2: // O2 - return O2; + case 0: // SUCCESS + return SUCCESS; default: return null; } @@ -183359,109 +186968,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.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))); + 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, BasicTxnInfo.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_dynamic_partitions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_last_completed_transaction_for_table_result.class, metaDataMap); } - public add_dynamic_partitions_result() { + public get_last_completed_transaction_for_table_result() { } - public add_dynamic_partitions_result( - NoSuchTxnException o1, - TxnAbortedException o2) + public get_last_completed_transaction_for_table_result( + BasicTxnInfo success) { this(); - this.o1 = o1; - this.o2 = o2; + this.success = success; } /** * 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 get_last_completed_transaction_for_table_result(get_last_completed_transaction_for_table_result other) { + if (other.isSetSuccess()) { + this.success = new BasicTxnInfo(other.success); } } - public add_dynamic_partitions_result deepCopy() { - return new add_dynamic_partitions_result(this); + public get_last_completed_transaction_for_table_result deepCopy() { + return new get_last_completed_transaction_for_table_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; - } + this.success = null; } - public TxnAbortedException getO2() { - return this.o2; + public BasicTxnInfo getSuccess() { + return this.success; } - public void setO2(TxnAbortedException o2) { - this.o2 = o2; + public void setSuccess(BasicTxnInfo success) { + this.success = success; } - public void unsetO2() { - this.o2 = null; + public void unsetSuccess() { + this.success = null; } - /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ - public boolean isSetO2() { - return this.o2 != 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 setO2IsSet(boolean value) { + public void setSuccessIsSet(boolean value) { if (!value) { - this.o2 = null; + this.success = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case O1: - if (value == null) { - unsetO1(); - } else { - setO1((NoSuchTxnException)value); - } - break; - - case O2: + case SUCCESS: if (value == null) { - unsetO2(); + unsetSuccess(); } else { - setO2((TxnAbortedException)value); + setSuccess((BasicTxnInfo)value); } break; @@ -183470,11 +187040,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case O1: - return getO1(); - - case O2: - return getO2(); + case SUCCESS: + return getSuccess(); } throw new IllegalStateException(); @@ -183487,10 +187054,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case O1: - return isSetO1(); - case O2: - return isSetO2(); + case SUCCESS: + return isSetSuccess(); } throw new IllegalStateException(); } @@ -183499,30 +187064,21 @@ public boolean isSet(_Fields field) { 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); + if (that instanceof get_last_completed_transaction_for_table_result) + return this.equals((get_last_completed_transaction_for_table_result)that); return false; } - public boolean equals(add_dynamic_partitions_result that) { + public boolean equals(get_last_completed_transaction_for_table_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)) + 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.o2.equals(that.o2)) + if (!this.success.equals(that.success)) return false; } @@ -183533,43 +187089,28 @@ public boolean equals(add_dynamic_partitions_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); + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); return list.hashCode(); } @Override - public int compareTo(add_dynamic_partitions_result other) { + public int compareTo(get_last_completed_transaction_for_table_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()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } - if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } @@ -183591,22 +187132,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_dynamic_partitions_result("); + StringBuilder sb = new StringBuilder("get_last_completed_transaction_for_table_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(")"); @@ -183616,6 +187149,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 { @@ -183634,15 +187170,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 get_last_completed_transaction_for_table_resultStandardSchemeFactory implements SchemeFactory { + public get_last_completed_transaction_for_table_resultStandardScheme getScheme() { + return new get_last_completed_transaction_for_table_resultStandardScheme(); } } - private static class add_dynamic_partitions_resultStandardScheme extends StandardScheme { + private static class get_last_completed_transaction_for_table_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, get_last_completed_transaction_for_table_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -183652,20 +187188,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 BasicTxnInfo(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -183679,18 +187206,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, get_last_completed_transaction_for_table_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(); @@ -183699,46 +187221,35 @@ 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 get_last_completed_transaction_for_table_resultTupleSchemeFactory implements SchemeFactory { + public get_last_completed_transaction_for_table_resultTupleScheme getScheme() { + return new get_last_completed_transaction_for_table_resultTupleScheme(); } } - private static class add_dynamic_partitions_resultTupleScheme extends TupleScheme { + private static class get_last_completed_transaction_for_table_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, get_last_completed_transaction_for_table_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, get_last_completed_transaction_for_table_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 BasicTxnInfo(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); } } } @@ -185083,7 +188594,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_current_notifica @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_notification_events_count_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_notification_events_count_args"); - private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)-1); + private static final 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 { @@ -185095,7 +188606,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_current_notifica /** 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"); + RQST((short)1, "rqst"); private static final Map byName = new HashMap(); @@ -185110,7 +188621,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_current_notifica */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case -1: // RQST + case 1: // RQST return RQST; default: return null; @@ -185375,7 +188886,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_notification_ev break; } switch (schemeField.id) { - case -1: // RQST + case 1: // RQST if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.rqst = new NotificationEventsCountRequest(); struct.rqst.read(iprot); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnsSnapshot.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnsSnapshot.java new file mode 100644 index 0000000000..5600bdadc4 --- /dev/null +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnsSnapshot.java @@ -0,0 +1,537 @@ +/** + * Autogenerated by Thrift Compiler (0.9.3) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.apache.hadoop.hive.metastore.api; + +import org.apache.thrift.scheme.IScheme; +import org.apache.thrift.scheme.SchemeFactory; +import org.apache.thrift.scheme.StandardScheme; + +import org.apache.thrift.scheme.TupleScheme; +import org.apache.thrift.protocol.TTupleProtocol; +import org.apache.thrift.protocol.TProtocolException; +import org.apache.thrift.EncodingUtils; +import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.EnumMap; +import java.util.Set; +import java.util.HashSet; +import java.util.EnumSet; +import java.util.Collections; +import java.util.BitSet; +import java.nio.ByteBuffer; +import java.util.Arrays; +import javax.annotation.Generated; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") +@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class TxnsSnapshot 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("TxnsSnapshot"); + + private static final org.apache.thrift.protocol.TField TXN_HIGH_WATER_MARK_FIELD_DESC = new org.apache.thrift.protocol.TField("txn_high_water_mark", org.apache.thrift.protocol.TType.I64, (short)1); + private static final org.apache.thrift.protocol.TField OPEN_TXNS_FIELD_DESC = new org.apache.thrift.protocol.TField("open_txns", org.apache.thrift.protocol.TType.LIST, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new TxnsSnapshotStandardSchemeFactory()); + schemes.put(TupleScheme.class, new TxnsSnapshotTupleSchemeFactory()); + } + + private long txn_high_water_mark; // required + private List open_txns; // 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 { + TXN_HIGH_WATER_MARK((short)1, "txn_high_water_mark"), + OPEN_TXNS((short)2, "open_txns"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // TXN_HIGH_WATER_MARK + return TXN_HIGH_WATER_MARK; + case 2: // OPEN_TXNS + return OPEN_TXNS; + 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 __TXN_HIGH_WATER_MARK_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.TXN_HIGH_WATER_MARK, new org.apache.thrift.meta_data.FieldMetaData("txn_high_water_mark", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.OPEN_TXNS, new org.apache.thrift.meta_data.FieldMetaData("open_txns", org.apache.thrift.TFieldRequirementType.REQUIRED, + 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(TxnsSnapshot.class, metaDataMap); + } + + public TxnsSnapshot() { + } + + public TxnsSnapshot( + long txn_high_water_mark, + List open_txns) + { + this(); + this.txn_high_water_mark = txn_high_water_mark; + setTxn_high_water_markIsSet(true); + this.open_txns = open_txns; + } + + /** + * Performs a deep copy on other. + */ + public TxnsSnapshot(TxnsSnapshot other) { + __isset_bitfield = other.__isset_bitfield; + this.txn_high_water_mark = other.txn_high_water_mark; + if (other.isSetOpen_txns()) { + List __this__open_txns = new ArrayList(other.open_txns); + this.open_txns = __this__open_txns; + } + } + + public TxnsSnapshot deepCopy() { + return new TxnsSnapshot(this); + } + + @Override + public void clear() { + setTxn_high_water_markIsSet(false); + this.txn_high_water_mark = 0; + this.open_txns = null; + } + + public long getTxn_high_water_mark() { + return this.txn_high_water_mark; + } + + public void setTxn_high_water_mark(long txn_high_water_mark) { + this.txn_high_water_mark = txn_high_water_mark; + setTxn_high_water_markIsSet(true); + } + + public void unsetTxn_high_water_mark() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TXN_HIGH_WATER_MARK_ISSET_ID); + } + + /** Returns true if field txn_high_water_mark is set (has been assigned a value) and false otherwise */ + public boolean isSetTxn_high_water_mark() { + return EncodingUtils.testBit(__isset_bitfield, __TXN_HIGH_WATER_MARK_ISSET_ID); + } + + public void setTxn_high_water_markIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TXN_HIGH_WATER_MARK_ISSET_ID, value); + } + + public int getOpen_txnsSize() { + return (this.open_txns == null) ? 0 : this.open_txns.size(); + } + + public java.util.Iterator getOpen_txnsIterator() { + return (this.open_txns == null) ? null : this.open_txns.iterator(); + } + + public void addToOpen_txns(long elem) { + if (this.open_txns == null) { + this.open_txns = new ArrayList(); + } + this.open_txns.add(elem); + } + + public List getOpen_txns() { + return this.open_txns; + } + + public void setOpen_txns(List open_txns) { + this.open_txns = open_txns; + } + + public void unsetOpen_txns() { + this.open_txns = null; + } + + /** Returns true if field open_txns is set (has been assigned a value) and false otherwise */ + public boolean isSetOpen_txns() { + return this.open_txns != null; + } + + public void setOpen_txnsIsSet(boolean value) { + if (!value) { + this.open_txns = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case TXN_HIGH_WATER_MARK: + if (value == null) { + unsetTxn_high_water_mark(); + } else { + setTxn_high_water_mark((Long)value); + } + break; + + case OPEN_TXNS: + if (value == null) { + unsetOpen_txns(); + } else { + setOpen_txns((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case TXN_HIGH_WATER_MARK: + return getTxn_high_water_mark(); + + case OPEN_TXNS: + return getOpen_txns(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case TXN_HIGH_WATER_MARK: + return isSetTxn_high_water_mark(); + case OPEN_TXNS: + return isSetOpen_txns(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof TxnsSnapshot) + return this.equals((TxnsSnapshot)that); + return false; + } + + public boolean equals(TxnsSnapshot that) { + if (that == null) + return false; + + boolean this_present_txn_high_water_mark = true; + boolean that_present_txn_high_water_mark = true; + if (this_present_txn_high_water_mark || that_present_txn_high_water_mark) { + if (!(this_present_txn_high_water_mark && that_present_txn_high_water_mark)) + return false; + if (this.txn_high_water_mark != that.txn_high_water_mark) + return false; + } + + boolean this_present_open_txns = true && this.isSetOpen_txns(); + boolean that_present_open_txns = true && that.isSetOpen_txns(); + if (this_present_open_txns || that_present_open_txns) { + if (!(this_present_open_txns && that_present_open_txns)) + return false; + if (!this.open_txns.equals(that.open_txns)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_txn_high_water_mark = true; + list.add(present_txn_high_water_mark); + if (present_txn_high_water_mark) + list.add(txn_high_water_mark); + + boolean present_open_txns = true && (isSetOpen_txns()); + list.add(present_open_txns); + if (present_open_txns) + list.add(open_txns); + + return list.hashCode(); + } + + @Override + public int compareTo(TxnsSnapshot other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetTxn_high_water_mark()).compareTo(other.isSetTxn_high_water_mark()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTxn_high_water_mark()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txn_high_water_mark, other.txn_high_water_mark); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetOpen_txns()).compareTo(other.isSetOpen_txns()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetOpen_txns()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.open_txns, other.open_txns); + 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("TxnsSnapshot("); + boolean first = true; + + sb.append("txn_high_water_mark:"); + sb.append(this.txn_high_water_mark); + first = false; + if (!first) sb.append(", "); + sb.append("open_txns:"); + if (this.open_txns == null) { + sb.append("null"); + } else { + sb.append(this.open_txns); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetTxn_high_water_mark()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'txn_high_water_mark' is unset! Struct:" + toString()); + } + + if (!isSetOpen_txns()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'open_txns' 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 TxnsSnapshotStandardSchemeFactory implements SchemeFactory { + public TxnsSnapshotStandardScheme getScheme() { + return new TxnsSnapshotStandardScheme(); + } + } + + private static class TxnsSnapshotStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, TxnsSnapshot struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // TXN_HIGH_WATER_MARK + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.txn_high_water_mark = iprot.readI64(); + struct.setTxn_high_water_markIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // OPEN_TXNS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list624 = iprot.readListBegin(); + struct.open_txns = new ArrayList(_list624.size); + long _elem625; + for (int _i626 = 0; _i626 < _list624.size; ++_i626) + { + _elem625 = iprot.readI64(); + struct.open_txns.add(_elem625); + } + iprot.readListEnd(); + } + struct.setOpen_txnsIsSet(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, TxnsSnapshot struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldBegin(TXN_HIGH_WATER_MARK_FIELD_DESC); + oprot.writeI64(struct.txn_high_water_mark); + oprot.writeFieldEnd(); + if (struct.open_txns != null) { + oprot.writeFieldBegin(OPEN_TXNS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.open_txns.size())); + for (long _iter627 : struct.open_txns) + { + oprot.writeI64(_iter627); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class TxnsSnapshotTupleSchemeFactory implements SchemeFactory { + public TxnsSnapshotTupleScheme getScheme() { + return new TxnsSnapshotTupleScheme(); + } + } + + private static class TxnsSnapshotTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, TxnsSnapshot struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeI64(struct.txn_high_water_mark); + { + oprot.writeI32(struct.open_txns.size()); + for (long _iter628 : struct.open_txns) + { + oprot.writeI64(_iter628); + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, TxnsSnapshot struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.txn_high_water_mark = iprot.readI64(); + struct.setTxn_high_water_markIsSet(true); + { + org.apache.thrift.protocol.TList _list629 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.open_txns = new ArrayList(_list629.size); + long _elem630; + for (int _i631 = 0; _i631 < _list629.size; ++_i631) + { + _elem630 = iprot.readI64(); + struct.open_txns.add(_elem630); + } + } + struct.setOpen_txnsIsSet(true); + } + } + +} + diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UniqueConstraintsResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UniqueConstraintsResponse.java index d545e663fb..342e6b0e13 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UniqueConstraintsResponse.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UniqueConstraintsResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, UniqueConstraintsRe case 1: // UNIQUE_CONSTRAINTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list338 = iprot.readListBegin(); - struct.uniqueConstraints = new ArrayList(_list338.size); - SQLUniqueConstraint _elem339; - for (int _i340 = 0; _i340 < _list338.size; ++_i340) + org.apache.thrift.protocol.TList _list348 = iprot.readListBegin(); + struct.uniqueConstraints = new ArrayList(_list348.size); + SQLUniqueConstraint _elem349; + for (int _i350 = 0; _i350 < _list348.size; ++_i350) { - _elem339 = new SQLUniqueConstraint(); - _elem339.read(iprot); - struct.uniqueConstraints.add(_elem339); + _elem349 = new SQLUniqueConstraint(); + _elem349.read(iprot); + struct.uniqueConstraints.add(_elem349); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, UniqueConstraintsR oprot.writeFieldBegin(UNIQUE_CONSTRAINTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.uniqueConstraints.size())); - for (SQLUniqueConstraint _iter341 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter351 : struct.uniqueConstraints) { - _iter341.write(oprot); + _iter351.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, UniqueConstraintsRe TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.uniqueConstraints.size()); - for (SQLUniqueConstraint _iter342 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter352 : struct.uniqueConstraints) { - _iter342.write(oprot); + _iter352.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, UniqueConstraintsRe public void read(org.apache.thrift.protocol.TProtocol prot, UniqueConstraintsResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list343 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.uniqueConstraints = new ArrayList(_list343.size); - SQLUniqueConstraint _elem344; - for (int _i345 = 0; _i345 < _list343.size; ++_i345) + org.apache.thrift.protocol.TList _list353 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.uniqueConstraints = new ArrayList(_list353.size); + SQLUniqueConstraint _elem354; + for (int _i355 = 0; _i355 < _list353.size; ++_i355) { - _elem344 = new SQLUniqueConstraint(); - _elem344.read(iprot); - struct.uniqueConstraints.add(_elem344); + _elem354 = new SQLUniqueConstraint(); + _elem354.read(iprot); + struct.uniqueConstraints.add(_elem354); } } struct.setUniqueConstraintsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMFullResourcePlan.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMFullResourcePlan.java index 1d21908d4d..c9988c0229 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMFullResourcePlan.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMFullResourcePlan.java @@ -755,14 +755,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMFullResourcePlan case 2: // POOLS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list738 = iprot.readListBegin(); - struct.pools = new ArrayList(_list738.size); - WMPool _elem739; - for (int _i740 = 0; _i740 < _list738.size; ++_i740) + org.apache.thrift.protocol.TList _list764 = iprot.readListBegin(); + struct.pools = new ArrayList(_list764.size); + WMPool _elem765; + for (int _i766 = 0; _i766 < _list764.size; ++_i766) { - _elem739 = new WMPool(); - _elem739.read(iprot); - struct.pools.add(_elem739); + _elem765 = new WMPool(); + _elem765.read(iprot); + struct.pools.add(_elem765); } iprot.readListEnd(); } @@ -774,14 +774,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMFullResourcePlan case 3: // MAPPINGS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list741 = iprot.readListBegin(); - struct.mappings = new ArrayList(_list741.size); - WMMapping _elem742; - for (int _i743 = 0; _i743 < _list741.size; ++_i743) + org.apache.thrift.protocol.TList _list767 = iprot.readListBegin(); + struct.mappings = new ArrayList(_list767.size); + WMMapping _elem768; + for (int _i769 = 0; _i769 < _list767.size; ++_i769) { - _elem742 = new WMMapping(); - _elem742.read(iprot); - struct.mappings.add(_elem742); + _elem768 = new WMMapping(); + _elem768.read(iprot); + struct.mappings.add(_elem768); } iprot.readListEnd(); } @@ -793,14 +793,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMFullResourcePlan case 4: // TRIGGERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list744 = iprot.readListBegin(); - struct.triggers = new ArrayList(_list744.size); - WMTrigger _elem745; - for (int _i746 = 0; _i746 < _list744.size; ++_i746) + org.apache.thrift.protocol.TList _list770 = iprot.readListBegin(); + struct.triggers = new ArrayList(_list770.size); + WMTrigger _elem771; + for (int _i772 = 0; _i772 < _list770.size; ++_i772) { - _elem745 = new WMTrigger(); - _elem745.read(iprot); - struct.triggers.add(_elem745); + _elem771 = new WMTrigger(); + _elem771.read(iprot); + struct.triggers.add(_elem771); } iprot.readListEnd(); } @@ -812,14 +812,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMFullResourcePlan case 5: // POOL_TRIGGERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list747 = iprot.readListBegin(); - struct.poolTriggers = new ArrayList(_list747.size); - WMPoolTrigger _elem748; - for (int _i749 = 0; _i749 < _list747.size; ++_i749) + org.apache.thrift.protocol.TList _list773 = iprot.readListBegin(); + struct.poolTriggers = new ArrayList(_list773.size); + WMPoolTrigger _elem774; + for (int _i775 = 0; _i775 < _list773.size; ++_i775) { - _elem748 = new WMPoolTrigger(); - _elem748.read(iprot); - struct.poolTriggers.add(_elem748); + _elem774 = new WMPoolTrigger(); + _elem774.read(iprot); + struct.poolTriggers.add(_elem774); } iprot.readListEnd(); } @@ -850,9 +850,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMFullResourcePlan oprot.writeFieldBegin(POOLS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.pools.size())); - for (WMPool _iter750 : struct.pools) + for (WMPool _iter776 : struct.pools) { - _iter750.write(oprot); + _iter776.write(oprot); } oprot.writeListEnd(); } @@ -863,9 +863,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMFullResourcePlan oprot.writeFieldBegin(MAPPINGS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.mappings.size())); - for (WMMapping _iter751 : struct.mappings) + for (WMMapping _iter777 : struct.mappings) { - _iter751.write(oprot); + _iter777.write(oprot); } oprot.writeListEnd(); } @@ -877,9 +877,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMFullResourcePlan oprot.writeFieldBegin(TRIGGERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.triggers.size())); - for (WMTrigger _iter752 : struct.triggers) + for (WMTrigger _iter778 : struct.triggers) { - _iter752.write(oprot); + _iter778.write(oprot); } oprot.writeListEnd(); } @@ -891,9 +891,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMFullResourcePlan oprot.writeFieldBegin(POOL_TRIGGERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.poolTriggers.size())); - for (WMPoolTrigger _iter753 : struct.poolTriggers) + for (WMPoolTrigger _iter779 : struct.poolTriggers) { - _iter753.write(oprot); + _iter779.write(oprot); } oprot.writeListEnd(); } @@ -920,9 +920,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMFullResourcePlan struct.plan.write(oprot); { oprot.writeI32(struct.pools.size()); - for (WMPool _iter754 : struct.pools) + for (WMPool _iter780 : struct.pools) { - _iter754.write(oprot); + _iter780.write(oprot); } } BitSet optionals = new BitSet(); @@ -939,27 +939,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMFullResourcePlan if (struct.isSetMappings()) { { oprot.writeI32(struct.mappings.size()); - for (WMMapping _iter755 : struct.mappings) + for (WMMapping _iter781 : struct.mappings) { - _iter755.write(oprot); + _iter781.write(oprot); } } } if (struct.isSetTriggers()) { { oprot.writeI32(struct.triggers.size()); - for (WMTrigger _iter756 : struct.triggers) + for (WMTrigger _iter782 : struct.triggers) { - _iter756.write(oprot); + _iter782.write(oprot); } } } if (struct.isSetPoolTriggers()) { { oprot.writeI32(struct.poolTriggers.size()); - for (WMPoolTrigger _iter757 : struct.poolTriggers) + for (WMPoolTrigger _iter783 : struct.poolTriggers) { - _iter757.write(oprot); + _iter783.write(oprot); } } } @@ -972,56 +972,56 @@ public void read(org.apache.thrift.protocol.TProtocol prot, WMFullResourcePlan s struct.plan.read(iprot); struct.setPlanIsSet(true); { - org.apache.thrift.protocol.TList _list758 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.pools = new ArrayList(_list758.size); - WMPool _elem759; - for (int _i760 = 0; _i760 < _list758.size; ++_i760) + org.apache.thrift.protocol.TList _list784 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.pools = new ArrayList(_list784.size); + WMPool _elem785; + for (int _i786 = 0; _i786 < _list784.size; ++_i786) { - _elem759 = new WMPool(); - _elem759.read(iprot); - struct.pools.add(_elem759); + _elem785 = new WMPool(); + _elem785.read(iprot); + struct.pools.add(_elem785); } } struct.setPoolsIsSet(true); BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list761 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.mappings = new ArrayList(_list761.size); - WMMapping _elem762; - for (int _i763 = 0; _i763 < _list761.size; ++_i763) + org.apache.thrift.protocol.TList _list787 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.mappings = new ArrayList(_list787.size); + WMMapping _elem788; + for (int _i789 = 0; _i789 < _list787.size; ++_i789) { - _elem762 = new WMMapping(); - _elem762.read(iprot); - struct.mappings.add(_elem762); + _elem788 = new WMMapping(); + _elem788.read(iprot); + struct.mappings.add(_elem788); } } struct.setMappingsIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list764 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.triggers = new ArrayList(_list764.size); - WMTrigger _elem765; - for (int _i766 = 0; _i766 < _list764.size; ++_i766) + org.apache.thrift.protocol.TList _list790 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.triggers = new ArrayList(_list790.size); + WMTrigger _elem791; + for (int _i792 = 0; _i792 < _list790.size; ++_i792) { - _elem765 = new WMTrigger(); - _elem765.read(iprot); - struct.triggers.add(_elem765); + _elem791 = new WMTrigger(); + _elem791.read(iprot); + struct.triggers.add(_elem791); } } struct.setTriggersIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list767 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.poolTriggers = new ArrayList(_list767.size); - WMPoolTrigger _elem768; - for (int _i769 = 0; _i769 < _list767.size; ++_i769) + org.apache.thrift.protocol.TList _list793 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.poolTriggers = new ArrayList(_list793.size); + WMPoolTrigger _elem794; + for (int _i795 = 0; _i795 < _list793.size; ++_i795) { - _elem768 = new WMPoolTrigger(); - _elem768.read(iprot); - struct.poolTriggers.add(_elem768); + _elem794 = new WMPoolTrigger(); + _elem794.read(iprot); + struct.poolTriggers.add(_elem794); } } struct.setPoolTriggersIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java index b1603573aa..fb96ad959b 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java @@ -346,14 +346,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMGetAllResourcePla case 1: // RESOURCE_PLANS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list770 = iprot.readListBegin(); - struct.resourcePlans = new ArrayList(_list770.size); - WMResourcePlan _elem771; - for (int _i772 = 0; _i772 < _list770.size; ++_i772) + org.apache.thrift.protocol.TList _list796 = iprot.readListBegin(); + struct.resourcePlans = new ArrayList(_list796.size); + WMResourcePlan _elem797; + for (int _i798 = 0; _i798 < _list796.size; ++_i798) { - _elem771 = new WMResourcePlan(); - _elem771.read(iprot); - struct.resourcePlans.add(_elem771); + _elem797 = new WMResourcePlan(); + _elem797.read(iprot); + struct.resourcePlans.add(_elem797); } iprot.readListEnd(); } @@ -380,9 +380,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMGetAllResourcePl oprot.writeFieldBegin(RESOURCE_PLANS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.resourcePlans.size())); - for (WMResourcePlan _iter773 : struct.resourcePlans) + for (WMResourcePlan _iter799 : struct.resourcePlans) { - _iter773.write(oprot); + _iter799.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMGetAllResourcePla if (struct.isSetResourcePlans()) { { oprot.writeI32(struct.resourcePlans.size()); - for (WMResourcePlan _iter774 : struct.resourcePlans) + for (WMResourcePlan _iter800 : struct.resourcePlans) { - _iter774.write(oprot); + _iter800.write(oprot); } } } @@ -428,14 +428,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, WMGetAllResourcePlan BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list775 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.resourcePlans = new ArrayList(_list775.size); - WMResourcePlan _elem776; - for (int _i777 = 0; _i777 < _list775.size; ++_i777) + org.apache.thrift.protocol.TList _list801 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.resourcePlans = new ArrayList(_list801.size); + WMResourcePlan _elem802; + for (int _i803 = 0; _i803 < _list801.size; ++_i803) { - _elem776 = new WMResourcePlan(); - _elem776.read(iprot); - struct.resourcePlans.add(_elem776); + _elem802 = new WMResourcePlan(); + _elem802.read(iprot); + struct.resourcePlans.add(_elem802); } } struct.setResourcePlansIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java index b274250ad8..9b09603c7d 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java @@ -346,14 +346,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMGetTriggersForRes case 1: // TRIGGERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list786 = iprot.readListBegin(); - struct.triggers = new ArrayList(_list786.size); - WMTrigger _elem787; - for (int _i788 = 0; _i788 < _list786.size; ++_i788) + org.apache.thrift.protocol.TList _list812 = iprot.readListBegin(); + struct.triggers = new ArrayList(_list812.size); + WMTrigger _elem813; + for (int _i814 = 0; _i814 < _list812.size; ++_i814) { - _elem787 = new WMTrigger(); - _elem787.read(iprot); - struct.triggers.add(_elem787); + _elem813 = new WMTrigger(); + _elem813.read(iprot); + struct.triggers.add(_elem813); } iprot.readListEnd(); } @@ -380,9 +380,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMGetTriggersForRe oprot.writeFieldBegin(TRIGGERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.triggers.size())); - for (WMTrigger _iter789 : struct.triggers) + for (WMTrigger _iter815 : struct.triggers) { - _iter789.write(oprot); + _iter815.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMGetTriggersForRes if (struct.isSetTriggers()) { { oprot.writeI32(struct.triggers.size()); - for (WMTrigger _iter790 : struct.triggers) + for (WMTrigger _iter816 : struct.triggers) { - _iter790.write(oprot); + _iter816.write(oprot); } } } @@ -428,14 +428,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, WMGetTriggersForReso BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list791 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.triggers = new ArrayList(_list791.size); - WMTrigger _elem792; - for (int _i793 = 0; _i793 < _list791.size; ++_i793) + org.apache.thrift.protocol.TList _list817 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.triggers = new ArrayList(_list817.size); + WMTrigger _elem818; + for (int _i819 = 0; _i819 < _list817.size; ++_i819) { - _elem792 = new WMTrigger(); - _elem792.read(iprot); - struct.triggers.add(_elem792); + _elem818 = new WMTrigger(); + _elem818.read(iprot); + struct.triggers.add(_elem818); } } struct.setTriggersIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java index b69cd4c99a..a8781b876f 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java @@ -343,13 +343,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMValidateResourceP case 1: // ERRORS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list778 = iprot.readListBegin(); - struct.errors = new ArrayList(_list778.size); - String _elem779; - for (int _i780 = 0; _i780 < _list778.size; ++_i780) + org.apache.thrift.protocol.TList _list804 = iprot.readListBegin(); + struct.errors = new ArrayList(_list804.size); + String _elem805; + for (int _i806 = 0; _i806 < _list804.size; ++_i806) { - _elem779 = iprot.readString(); - struct.errors.add(_elem779); + _elem805 = iprot.readString(); + struct.errors.add(_elem805); } iprot.readListEnd(); } @@ -376,9 +376,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMValidateResource oprot.writeFieldBegin(ERRORS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.errors.size())); - for (String _iter781 : struct.errors) + for (String _iter807 : struct.errors) { - oprot.writeString(_iter781); + oprot.writeString(_iter807); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMValidateResourceP if (struct.isSetErrors()) { { oprot.writeI32(struct.errors.size()); - for (String _iter782 : struct.errors) + for (String _iter808 : struct.errors) { - oprot.writeString(_iter782); + oprot.writeString(_iter808); } } } @@ -424,13 +424,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, WMValidateResourcePl BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list783 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.errors = new ArrayList(_list783.size); - String _elem784; - for (int _i785 = 0; _i785 < _list783.size; ++_i785) + org.apache.thrift.protocol.TList _list809 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.errors = new ArrayList(_list809.size); + String _elem810; + for (int _i811 = 0; _i811 < _list809.size; ++_i811) { - _elem784 = iprot.readString(); - struct.errors.add(_elem784); + _elem810 = iprot.readString(); + struct.errors.add(_elem810); } } struct.setErrorsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php b/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index 6ca56cb6e1..2796152c95 100644 --- a/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ b/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -237,6 +237,12 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { * @throws \metastore\MetaException */ public function get_tables_by_type($db_name, $pattern, $tableType); + /** + * @param string $db_name + * @return string[] + * @throws \metastore\MetaException + */ + public function get_materialized_views_for_rewriting($db_name); /** * @param string $db_patterns * @param string $tbl_patterns @@ -280,6 +286,15 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { * @throws \metastore\UnknownDBException */ public function get_table_objects_by_name_req(\metastore\GetTablesRequest $req); + /** + * @param string $dbname + * @param string[] $tbl_names + * @return array + * @throws \metastore\MetaException + * @throws \metastore\InvalidOperationException + * @throws \metastore\UnknownDBException + */ + public function get_materialization_invalidation_info($dbname, array $tbl_names); /** * @param string $dbname * @param string $filter @@ -1189,6 +1204,13 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { * @throws \metastore\TxnAbortedException */ public function add_dynamic_partitions(\metastore\AddDynamicPartitions $rqst); + /** + * @param string $db_name + * @param string $table_name + * @param \metastore\TxnsSnapshot $txns_snapshot + * @return \metastore\BasicTxnInfo + */ + public function get_last_completed_transaction_for_table($db_name, $table_name, \metastore\TxnsSnapshot $txns_snapshot); /** * @param \metastore\NotificationEventRequest $rqst * @return \metastore\NotificationEventResponse @@ -3035,6 +3057,60 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_tables_by_type failed: unknown result"); } + public function get_materialized_views_for_rewriting($db_name) + { + $this->send_get_materialized_views_for_rewriting($db_name); + return $this->recv_get_materialized_views_for_rewriting(); + } + + public function send_get_materialized_views_for_rewriting($db_name) + { + $args = new \metastore\ThriftHiveMetastore_get_materialized_views_for_rewriting_args(); + $args->db_name = $db_name; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'get_materialized_views_for_rewriting', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_materialized_views_for_rewriting', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_materialized_views_for_rewriting() + { + $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_materialized_views_for_rewriting_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_materialized_views_for_rewriting_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->o1 !== null) { + throw $result->o1; + } + throw new \Exception("get_materialized_views_for_rewriting failed: unknown result"); + } + public function get_table_meta($db_patterns, $tbl_patterns, array $tbl_types) { $this->send_get_table_meta($db_patterns, $tbl_patterns, $tbl_types); @@ -3372,6 +3448,67 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_table_objects_by_name_req failed: unknown result"); } + public function get_materialization_invalidation_info($dbname, array $tbl_names) + { + $this->send_get_materialization_invalidation_info($dbname, $tbl_names); + return $this->recv_get_materialization_invalidation_info(); + } + + public function send_get_materialization_invalidation_info($dbname, array $tbl_names) + { + $args = new \metastore\ThriftHiveMetastore_get_materialization_invalidation_info_args(); + $args->dbname = $dbname; + $args->tbl_names = $tbl_names; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'get_materialization_invalidation_info', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_materialization_invalidation_info', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_materialization_invalidation_info() + { + $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_materialization_invalidation_info_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_materialization_invalidation_info_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->o1 !== null) { + throw $result->o1; + } + if ($result->o2 !== null) { + throw $result->o2; + } + if ($result->o3 !== null) { + throw $result->o3; + } + throw new \Exception("get_materialization_invalidation_info failed: unknown result"); + } + public function get_table_names_by_filter($dbname, $filter, $max_tables) { $this->send_get_table_names_by_filter($dbname, $filter, $max_tables); @@ -9957,6 +10094,59 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas return; } + public function get_last_completed_transaction_for_table($db_name, $table_name, \metastore\TxnsSnapshot $txns_snapshot) + { + $this->send_get_last_completed_transaction_for_table($db_name, $table_name, $txns_snapshot); + return $this->recv_get_last_completed_transaction_for_table(); + } + + public function send_get_last_completed_transaction_for_table($db_name, $table_name, \metastore\TxnsSnapshot $txns_snapshot) + { + $args = new \metastore\ThriftHiveMetastore_get_last_completed_transaction_for_table_args(); + $args->db_name = $db_name; + $args->table_name = $table_name; + $args->txns_snapshot = $txns_snapshot; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'get_last_completed_transaction_for_table', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_last_completed_transaction_for_table', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_last_completed_transaction_for_table() + { + $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_last_completed_transaction_for_table_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_last_completed_transaction_for_table_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + throw new \Exception("get_last_completed_transaction_for_table failed: unknown result"); + } + public function get_next_notification(\metastore\NotificationEventRequest $rqst) { $this->send_get_next_notification($rqst); @@ -12734,14 +12924,14 @@ class ThriftHiveMetastore_get_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size701 = 0; - $_etype704 = 0; - $xfer += $input->readListBegin($_etype704, $_size701); - for ($_i705 = 0; $_i705 < $_size701; ++$_i705) + $_size725 = 0; + $_etype728 = 0; + $xfer += $input->readListBegin($_etype728, $_size725); + for ($_i729 = 0; $_i729 < $_size725; ++$_i729) { - $elem706 = null; - $xfer += $input->readString($elem706); - $this->success []= $elem706; + $elem730 = null; + $xfer += $input->readString($elem730); + $this->success []= $elem730; } $xfer += $input->readListEnd(); } else { @@ -12777,9 +12967,9 @@ class ThriftHiveMetastore_get_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter707) + foreach ($this->success as $iter731) { - $xfer += $output->writeString($iter707); + $xfer += $output->writeString($iter731); } } $output->writeListEnd(); @@ -12910,14 +13100,14 @@ class ThriftHiveMetastore_get_all_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size708 = 0; - $_etype711 = 0; - $xfer += $input->readListBegin($_etype711, $_size708); - for ($_i712 = 0; $_i712 < $_size708; ++$_i712) + $_size732 = 0; + $_etype735 = 0; + $xfer += $input->readListBegin($_etype735, $_size732); + for ($_i736 = 0; $_i736 < $_size732; ++$_i736) { - $elem713 = null; - $xfer += $input->readString($elem713); - $this->success []= $elem713; + $elem737 = null; + $xfer += $input->readString($elem737); + $this->success []= $elem737; } $xfer += $input->readListEnd(); } else { @@ -12953,9 +13143,9 @@ class ThriftHiveMetastore_get_all_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter714) + foreach ($this->success as $iter738) { - $xfer += $output->writeString($iter714); + $xfer += $output->writeString($iter738); } } $output->writeListEnd(); @@ -13956,18 +14146,18 @@ class ThriftHiveMetastore_get_type_all_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size715 = 0; - $_ktype716 = 0; - $_vtype717 = 0; - $xfer += $input->readMapBegin($_ktype716, $_vtype717, $_size715); - for ($_i719 = 0; $_i719 < $_size715; ++$_i719) + $_size739 = 0; + $_ktype740 = 0; + $_vtype741 = 0; + $xfer += $input->readMapBegin($_ktype740, $_vtype741, $_size739); + for ($_i743 = 0; $_i743 < $_size739; ++$_i743) { - $key720 = ''; - $val721 = new \metastore\Type(); - $xfer += $input->readString($key720); - $val721 = new \metastore\Type(); - $xfer += $val721->read($input); - $this->success[$key720] = $val721; + $key744 = ''; + $val745 = new \metastore\Type(); + $xfer += $input->readString($key744); + $val745 = new \metastore\Type(); + $xfer += $val745->read($input); + $this->success[$key744] = $val745; } $xfer += $input->readMapEnd(); } else { @@ -14003,10 +14193,10 @@ class ThriftHiveMetastore_get_type_all_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter722 => $viter723) + foreach ($this->success as $kiter746 => $viter747) { - $xfer += $output->writeString($kiter722); - $xfer += $viter723->write($output); + $xfer += $output->writeString($kiter746); + $xfer += $viter747->write($output); } } $output->writeMapEnd(); @@ -14210,15 +14400,15 @@ class ThriftHiveMetastore_get_fields_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) + $_size748 = 0; + $_etype751 = 0; + $xfer += $input->readListBegin($_etype751, $_size748); + for ($_i752 = 0; $_i752 < $_size748; ++$_i752) { - $elem729 = null; - $elem729 = new \metastore\FieldSchema(); - $xfer += $elem729->read($input); - $this->success []= $elem729; + $elem753 = null; + $elem753 = new \metastore\FieldSchema(); + $xfer += $elem753->read($input); + $this->success []= $elem753; } $xfer += $input->readListEnd(); } else { @@ -14270,9 +14460,9 @@ class ThriftHiveMetastore_get_fields_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter730) + foreach ($this->success as $iter754) { - $xfer += $iter730->write($output); + $xfer += $iter754->write($output); } } $output->writeListEnd(); @@ -14514,15 +14704,15 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size731 = 0; - $_etype734 = 0; - $xfer += $input->readListBegin($_etype734, $_size731); - for ($_i735 = 0; $_i735 < $_size731; ++$_i735) + $_size755 = 0; + $_etype758 = 0; + $xfer += $input->readListBegin($_etype758, $_size755); + for ($_i759 = 0; $_i759 < $_size755; ++$_i759) { - $elem736 = null; - $elem736 = new \metastore\FieldSchema(); - $xfer += $elem736->read($input); - $this->success []= $elem736; + $elem760 = null; + $elem760 = new \metastore\FieldSchema(); + $xfer += $elem760->read($input); + $this->success []= $elem760; } $xfer += $input->readListEnd(); } else { @@ -14574,9 +14764,9 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter737) + foreach ($this->success as $iter761) { - $xfer += $iter737->write($output); + $xfer += $iter761->write($output); } } $output->writeListEnd(); @@ -14790,15 +14980,15 @@ class ThriftHiveMetastore_get_schema_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size738 = 0; - $_etype741 = 0; - $xfer += $input->readListBegin($_etype741, $_size738); - for ($_i742 = 0; $_i742 < $_size738; ++$_i742) + $_size762 = 0; + $_etype765 = 0; + $xfer += $input->readListBegin($_etype765, $_size762); + for ($_i766 = 0; $_i766 < $_size762; ++$_i766) { - $elem743 = null; - $elem743 = new \metastore\FieldSchema(); - $xfer += $elem743->read($input); - $this->success []= $elem743; + $elem767 = null; + $elem767 = new \metastore\FieldSchema(); + $xfer += $elem767->read($input); + $this->success []= $elem767; } $xfer += $input->readListEnd(); } else { @@ -14850,9 +15040,9 @@ class ThriftHiveMetastore_get_schema_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter744) + foreach ($this->success as $iter768) { - $xfer += $iter744->write($output); + $xfer += $iter768->write($output); } } $output->writeListEnd(); @@ -15094,15 +15284,15 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size745 = 0; - $_etype748 = 0; - $xfer += $input->readListBegin($_etype748, $_size745); - for ($_i749 = 0; $_i749 < $_size745; ++$_i749) + $_size769 = 0; + $_etype772 = 0; + $xfer += $input->readListBegin($_etype772, $_size769); + for ($_i773 = 0; $_i773 < $_size769; ++$_i773) { - $elem750 = null; - $elem750 = new \metastore\FieldSchema(); - $xfer += $elem750->read($input); - $this->success []= $elem750; + $elem774 = null; + $elem774 = new \metastore\FieldSchema(); + $xfer += $elem774->read($input); + $this->success []= $elem774; } $xfer += $input->readListEnd(); } else { @@ -15154,9 +15344,9 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter751) + foreach ($this->success as $iter775) { - $xfer += $iter751->write($output); + $xfer += $iter775->write($output); } } $output->writeListEnd(); @@ -15796,15 +15986,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 2: if ($ftype == TType::LST) { $this->primaryKeys = array(); - $_size752 = 0; - $_etype755 = 0; - $xfer += $input->readListBegin($_etype755, $_size752); - for ($_i756 = 0; $_i756 < $_size752; ++$_i756) + $_size776 = 0; + $_etype779 = 0; + $xfer += $input->readListBegin($_etype779, $_size776); + for ($_i780 = 0; $_i780 < $_size776; ++$_i780) { - $elem757 = null; - $elem757 = new \metastore\SQLPrimaryKey(); - $xfer += $elem757->read($input); - $this->primaryKeys []= $elem757; + $elem781 = null; + $elem781 = new \metastore\SQLPrimaryKey(); + $xfer += $elem781->read($input); + $this->primaryKeys []= $elem781; } $xfer += $input->readListEnd(); } else { @@ -15814,15 +16004,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 3: if ($ftype == TType::LST) { $this->foreignKeys = array(); - $_size758 = 0; - $_etype761 = 0; - $xfer += $input->readListBegin($_etype761, $_size758); - for ($_i762 = 0; $_i762 < $_size758; ++$_i762) + $_size782 = 0; + $_etype785 = 0; + $xfer += $input->readListBegin($_etype785, $_size782); + for ($_i786 = 0; $_i786 < $_size782; ++$_i786) { - $elem763 = null; - $elem763 = new \metastore\SQLForeignKey(); - $xfer += $elem763->read($input); - $this->foreignKeys []= $elem763; + $elem787 = null; + $elem787 = new \metastore\SQLForeignKey(); + $xfer += $elem787->read($input); + $this->foreignKeys []= $elem787; } $xfer += $input->readListEnd(); } else { @@ -15832,15 +16022,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 4: if ($ftype == TType::LST) { $this->uniqueConstraints = array(); - $_size764 = 0; - $_etype767 = 0; - $xfer += $input->readListBegin($_etype767, $_size764); - for ($_i768 = 0; $_i768 < $_size764; ++$_i768) + $_size788 = 0; + $_etype791 = 0; + $xfer += $input->readListBegin($_etype791, $_size788); + for ($_i792 = 0; $_i792 < $_size788; ++$_i792) { - $elem769 = null; - $elem769 = new \metastore\SQLUniqueConstraint(); - $xfer += $elem769->read($input); - $this->uniqueConstraints []= $elem769; + $elem793 = null; + $elem793 = new \metastore\SQLUniqueConstraint(); + $xfer += $elem793->read($input); + $this->uniqueConstraints []= $elem793; } $xfer += $input->readListEnd(); } else { @@ -15850,15 +16040,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 5: if ($ftype == TType::LST) { $this->notNullConstraints = array(); - $_size770 = 0; - $_etype773 = 0; - $xfer += $input->readListBegin($_etype773, $_size770); - for ($_i774 = 0; $_i774 < $_size770; ++$_i774) + $_size794 = 0; + $_etype797 = 0; + $xfer += $input->readListBegin($_etype797, $_size794); + for ($_i798 = 0; $_i798 < $_size794; ++$_i798) { - $elem775 = null; - $elem775 = new \metastore\SQLNotNullConstraint(); - $xfer += $elem775->read($input); - $this->notNullConstraints []= $elem775; + $elem799 = null; + $elem799 = new \metastore\SQLNotNullConstraint(); + $xfer += $elem799->read($input); + $this->notNullConstraints []= $elem799; } $xfer += $input->readListEnd(); } else { @@ -15894,9 +16084,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->primaryKeys)); { - foreach ($this->primaryKeys as $iter776) + foreach ($this->primaryKeys as $iter800) { - $xfer += $iter776->write($output); + $xfer += $iter800->write($output); } } $output->writeListEnd(); @@ -15911,9 +16101,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->foreignKeys)); { - foreach ($this->foreignKeys as $iter777) + foreach ($this->foreignKeys as $iter801) { - $xfer += $iter777->write($output); + $xfer += $iter801->write($output); } } $output->writeListEnd(); @@ -15928,9 +16118,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->uniqueConstraints)); { - foreach ($this->uniqueConstraints as $iter778) + foreach ($this->uniqueConstraints as $iter802) { - $xfer += $iter778->write($output); + $xfer += $iter802->write($output); } } $output->writeListEnd(); @@ -15945,9 +16135,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->notNullConstraints)); { - foreach ($this->notNullConstraints as $iter779) + foreach ($this->notNullConstraints as $iter803) { - $xfer += $iter779->write($output); + $xfer += $iter803->write($output); } } $output->writeListEnd(); @@ -17583,14 +17773,14 @@ class ThriftHiveMetastore_truncate_table_args { case 3: if ($ftype == TType::LST) { $this->partNames = array(); - $_size780 = 0; - $_etype783 = 0; - $xfer += $input->readListBegin($_etype783, $_size780); - for ($_i784 = 0; $_i784 < $_size780; ++$_i784) + $_size804 = 0; + $_etype807 = 0; + $xfer += $input->readListBegin($_etype807, $_size804); + for ($_i808 = 0; $_i808 < $_size804; ++$_i808) { - $elem785 = null; - $xfer += $input->readString($elem785); - $this->partNames []= $elem785; + $elem809 = null; + $xfer += $input->readString($elem809); + $this->partNames []= $elem809; } $xfer += $input->readListEnd(); } else { @@ -17628,9 +17818,9 @@ class ThriftHiveMetastore_truncate_table_args { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter786) + foreach ($this->partNames as $iter810) { - $xfer += $output->writeString($iter786); + $xfer += $output->writeString($iter810); } } $output->writeListEnd(); @@ -17881,14 +18071,14 @@ class ThriftHiveMetastore_get_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size787 = 0; - $_etype790 = 0; - $xfer += $input->readListBegin($_etype790, $_size787); - for ($_i791 = 0; $_i791 < $_size787; ++$_i791) + $_size811 = 0; + $_etype814 = 0; + $xfer += $input->readListBegin($_etype814, $_size811); + for ($_i815 = 0; $_i815 < $_size811; ++$_i815) { - $elem792 = null; - $xfer += $input->readString($elem792); - $this->success []= $elem792; + $elem816 = null; + $xfer += $input->readString($elem816); + $this->success []= $elem816; } $xfer += $input->readListEnd(); } else { @@ -17924,9 +18114,9 @@ class ThriftHiveMetastore_get_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter793) + foreach ($this->success as $iter817) { - $xfer += $output->writeString($iter793); + $xfer += $output->writeString($iter817); } } $output->writeListEnd(); @@ -18128,14 +18318,14 @@ class ThriftHiveMetastore_get_tables_by_type_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size794 = 0; - $_etype797 = 0; - $xfer += $input->readListBegin($_etype797, $_size794); - for ($_i798 = 0; $_i798 < $_size794; ++$_i798) + $_size818 = 0; + $_etype821 = 0; + $xfer += $input->readListBegin($_etype821, $_size818); + for ($_i822 = 0; $_i822 < $_size818; ++$_i822) { - $elem799 = null; - $xfer += $input->readString($elem799); - $this->success []= $elem799; + $elem823 = null; + $xfer += $input->readString($elem823); + $this->success []= $elem823; } $xfer += $input->readListEnd(); } else { @@ -18171,9 +18361,210 @@ class ThriftHiveMetastore_get_tables_by_type_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter800) + foreach ($this->success as $iter824) + { + $xfer += $output->writeString($iter824); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->o1 !== null) { + $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); + $xfer += $this->o1->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_materialized_views_for_rewriting_args { + static $_TSPEC; + + /** + * @var string + */ + public $db_name = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'db_name', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['db_name'])) { + $this->db_name = $vals['db_name']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_materialized_views_for_rewriting_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::STRING) { + $xfer += $input->readString($this->db_name); + } 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_materialized_views_for_rewriting_args'); + if ($this->db_name !== null) { + $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); + $xfer += $output->writeString($this->db_name); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { + static $_TSPEC; + + /** + * @var string[] + */ + public $success = null; + /** + * @var \metastore\MetaException + */ + public $o1 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['o1'])) { + $this->o1 = $vals['o1']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_materialized_views_for_rewriting_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::LST) { + $this->success = array(); + $_size825 = 0; + $_etype828 = 0; + $xfer += $input->readListBegin($_etype828, $_size825); + for ($_i829 = 0; $_i829 < $_size825; ++$_i829) + { + $elem830 = null; + $xfer += $input->readString($elem830); + $this->success []= $elem830; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\MetaException(); + $xfer += $this->o1->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_materialized_views_for_rewriting_result'); + if ($this->success !== null) { + if (!is_array($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRING, count($this->success)); + { + foreach ($this->success as $iter831) { - $xfer += $output->writeString($iter800); + $xfer += $output->writeString($iter831); } } $output->writeListEnd(); @@ -18278,14 +18669,14 @@ class ThriftHiveMetastore_get_table_meta_args { case 3: if ($ftype == TType::LST) { $this->tbl_types = array(); - $_size801 = 0; - $_etype804 = 0; - $xfer += $input->readListBegin($_etype804, $_size801); - for ($_i805 = 0; $_i805 < $_size801; ++$_i805) + $_size832 = 0; + $_etype835 = 0; + $xfer += $input->readListBegin($_etype835, $_size832); + for ($_i836 = 0; $_i836 < $_size832; ++$_i836) { - $elem806 = null; - $xfer += $input->readString($elem806); - $this->tbl_types []= $elem806; + $elem837 = null; + $xfer += $input->readString($elem837); + $this->tbl_types []= $elem837; } $xfer += $input->readListEnd(); } else { @@ -18323,9 +18714,9 @@ class ThriftHiveMetastore_get_table_meta_args { { $output->writeListBegin(TType::STRING, count($this->tbl_types)); { - foreach ($this->tbl_types as $iter807) + foreach ($this->tbl_types as $iter838) { - $xfer += $output->writeString($iter807); + $xfer += $output->writeString($iter838); } } $output->writeListEnd(); @@ -18402,15 +18793,15 @@ class ThriftHiveMetastore_get_table_meta_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size808 = 0; - $_etype811 = 0; - $xfer += $input->readListBegin($_etype811, $_size808); - for ($_i812 = 0; $_i812 < $_size808; ++$_i812) + $_size839 = 0; + $_etype842 = 0; + $xfer += $input->readListBegin($_etype842, $_size839); + for ($_i843 = 0; $_i843 < $_size839; ++$_i843) { - $elem813 = null; - $elem813 = new \metastore\TableMeta(); - $xfer += $elem813->read($input); - $this->success []= $elem813; + $elem844 = null; + $elem844 = new \metastore\TableMeta(); + $xfer += $elem844->read($input); + $this->success []= $elem844; } $xfer += $input->readListEnd(); } else { @@ -18446,9 +18837,9 @@ class ThriftHiveMetastore_get_table_meta_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter814) + foreach ($this->success as $iter845) { - $xfer += $iter814->write($output); + $xfer += $iter845->write($output); } } $output->writeListEnd(); @@ -18604,14 +18995,14 @@ class ThriftHiveMetastore_get_all_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size815 = 0; - $_etype818 = 0; - $xfer += $input->readListBegin($_etype818, $_size815); - for ($_i819 = 0; $_i819 < $_size815; ++$_i819) + $_size846 = 0; + $_etype849 = 0; + $xfer += $input->readListBegin($_etype849, $_size846); + for ($_i850 = 0; $_i850 < $_size846; ++$_i850) { - $elem820 = null; - $xfer += $input->readString($elem820); - $this->success []= $elem820; + $elem851 = null; + $xfer += $input->readString($elem851); + $this->success []= $elem851; } $xfer += $input->readListEnd(); } else { @@ -18647,9 +19038,9 @@ class ThriftHiveMetastore_get_all_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter821) + foreach ($this->success as $iter852) { - $xfer += $output->writeString($iter821); + $xfer += $output->writeString($iter852); } } $output->writeListEnd(); @@ -18964,14 +19355,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = array(); - $_size822 = 0; - $_etype825 = 0; - $xfer += $input->readListBegin($_etype825, $_size822); - for ($_i826 = 0; $_i826 < $_size822; ++$_i826) + $_size853 = 0; + $_etype856 = 0; + $xfer += $input->readListBegin($_etype856, $_size853); + for ($_i857 = 0; $_i857 < $_size853; ++$_i857) { - $elem827 = null; - $xfer += $input->readString($elem827); - $this->tbl_names []= $elem827; + $elem858 = null; + $xfer += $input->readString($elem858); + $this->tbl_names []= $elem858; } $xfer += $input->readListEnd(); } else { @@ -19004,9 +19395,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter828) + foreach ($this->tbl_names as $iter859) { - $xfer += $output->writeString($iter828); + $xfer += $output->writeString($iter859); } } $output->writeListEnd(); @@ -19071,15 +19462,15 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size829 = 0; - $_etype832 = 0; - $xfer += $input->readListBegin($_etype832, $_size829); - for ($_i833 = 0; $_i833 < $_size829; ++$_i833) + $_size860 = 0; + $_etype863 = 0; + $xfer += $input->readListBegin($_etype863, $_size860); + for ($_i864 = 0; $_i864 < $_size860; ++$_i864) { - $elem834 = null; - $elem834 = new \metastore\Table(); - $xfer += $elem834->read($input); - $this->success []= $elem834; + $elem865 = null; + $elem865 = new \metastore\Table(); + $xfer += $elem865->read($input); + $this->success []= $elem865; } $xfer += $input->readListEnd(); } else { @@ -19107,9 +19498,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter835) + foreach ($this->success as $iter866) { - $xfer += $iter835->write($output); + $xfer += $iter866->write($output); } } $output->writeListEnd(); @@ -19568,6 +19959,316 @@ class ThriftHiveMetastore_get_table_objects_by_name_req_result { } +class ThriftHiveMetastore_get_materialization_invalidation_info_args { + static $_TSPEC; + + /** + * @var string + */ + public $dbname = null; + /** + * @var string[] + */ + public $tbl_names = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'dbname', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'tbl_names', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + ); + } + if (is_array($vals)) { + if (isset($vals['dbname'])) { + $this->dbname = $vals['dbname']; + } + if (isset($vals['tbl_names'])) { + $this->tbl_names = $vals['tbl_names']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_materialization_invalidation_info_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::STRING) { + $xfer += $input->readString($this->dbname); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::LST) { + $this->tbl_names = array(); + $_size867 = 0; + $_etype870 = 0; + $xfer += $input->readListBegin($_etype870, $_size867); + for ($_i871 = 0; $_i871 < $_size867; ++$_i871) + { + $elem872 = null; + $xfer += $input->readString($elem872); + $this->tbl_names []= $elem872; + } + $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('ThriftHiveMetastore_get_materialization_invalidation_info_args'); + if ($this->dbname !== null) { + $xfer += $output->writeFieldBegin('dbname', TType::STRING, 1); + $xfer += $output->writeString($this->dbname); + $xfer += $output->writeFieldEnd(); + } + if ($this->tbl_names !== null) { + if (!is_array($this->tbl_names)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('tbl_names', TType::LST, 2); + { + $output->writeListBegin(TType::STRING, count($this->tbl_names)); + { + foreach ($this->tbl_names as $iter873) + { + $xfer += $output->writeString($iter873); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_materialization_invalidation_info_result { + static $_TSPEC; + + /** + * @var array + */ + public $success = null; + /** + * @var \metastore\MetaException + */ + public $o1 = null; + /** + * @var \metastore\InvalidOperationException + */ + public $o2 = null; + /** + * @var \metastore\UnknownDBException + */ + public $o3 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::MAP, + 'ktype' => TType::STRING, + 'vtype' => TType::STRUCT, + 'key' => array( + 'type' => TType::STRING, + ), + 'val' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\Materialization', + ), + ), + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', + ), + 2 => array( + 'var' => 'o2', + 'type' => TType::STRUCT, + 'class' => '\metastore\InvalidOperationException', + ), + 3 => array( + 'var' => 'o3', + 'type' => TType::STRUCT, + 'class' => '\metastore\UnknownDBException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['o1'])) { + $this->o1 = $vals['o1']; + } + if (isset($vals['o2'])) { + $this->o2 = $vals['o2']; + } + if (isset($vals['o3'])) { + $this->o3 = $vals['o3']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_materialization_invalidation_info_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::MAP) { + $this->success = array(); + $_size874 = 0; + $_ktype875 = 0; + $_vtype876 = 0; + $xfer += $input->readMapBegin($_ktype875, $_vtype876, $_size874); + for ($_i878 = 0; $_i878 < $_size874; ++$_i878) + { + $key879 = ''; + $val880 = new \metastore\Materialization(); + $xfer += $input->readString($key879); + $val880 = new \metastore\Materialization(); + $xfer += $val880->read($input); + $this->success[$key879] = $val880; + } + $xfer += $input->readMapEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\MetaException(); + $xfer += $this->o1->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->o2 = new \metastore\InvalidOperationException(); + $xfer += $this->o2->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRUCT) { + $this->o3 = new \metastore\UnknownDBException(); + $xfer += $this->o3->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_materialization_invalidation_info_result'); + if ($this->success !== null) { + if (!is_array($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::MAP, 0); + { + $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); + { + foreach ($this->success as $kiter881 => $viter882) + { + $xfer += $output->writeString($kiter881); + $xfer += $viter882->write($output); + } + } + $output->writeMapEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->o1 !== null) { + $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); + $xfer += $this->o1->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o2 !== null) { + $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 2); + $xfer += $this->o2->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o3 !== null) { + $xfer += $output->writeFieldBegin('o3', TType::STRUCT, 3); + $xfer += $this->o3->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class ThriftHiveMetastore_get_table_names_by_filter_args { static $_TSPEC; @@ -19775,14 +20476,14 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size836 = 0; - $_etype839 = 0; - $xfer += $input->readListBegin($_etype839, $_size836); - for ($_i840 = 0; $_i840 < $_size836; ++$_i840) + $_size883 = 0; + $_etype886 = 0; + $xfer += $input->readListBegin($_etype886, $_size883); + for ($_i887 = 0; $_i887 < $_size883; ++$_i887) { - $elem841 = null; - $xfer += $input->readString($elem841); - $this->success []= $elem841; + $elem888 = null; + $xfer += $input->readString($elem888); + $this->success []= $elem888; } $xfer += $input->readListEnd(); } else { @@ -19834,9 +20535,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter842) + foreach ($this->success as $iter889) { - $xfer += $output->writeString($iter842); + $xfer += $output->writeString($iter889); } } $output->writeListEnd(); @@ -21149,15 +21850,15 @@ class ThriftHiveMetastore_add_partitions_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size843 = 0; - $_etype846 = 0; - $xfer += $input->readListBegin($_etype846, $_size843); - for ($_i847 = 0; $_i847 < $_size843; ++$_i847) + $_size890 = 0; + $_etype893 = 0; + $xfer += $input->readListBegin($_etype893, $_size890); + for ($_i894 = 0; $_i894 < $_size890; ++$_i894) { - $elem848 = null; - $elem848 = new \metastore\Partition(); - $xfer += $elem848->read($input); - $this->new_parts []= $elem848; + $elem895 = null; + $elem895 = new \metastore\Partition(); + $xfer += $elem895->read($input); + $this->new_parts []= $elem895; } $xfer += $input->readListEnd(); } else { @@ -21185,9 +21886,9 @@ class ThriftHiveMetastore_add_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter849) + foreach ($this->new_parts as $iter896) { - $xfer += $iter849->write($output); + $xfer += $iter896->write($output); } } $output->writeListEnd(); @@ -21402,15 +22103,15 @@ class ThriftHiveMetastore_add_partitions_pspec_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size850 = 0; - $_etype853 = 0; - $xfer += $input->readListBegin($_etype853, $_size850); - for ($_i854 = 0; $_i854 < $_size850; ++$_i854) + $_size897 = 0; + $_etype900 = 0; + $xfer += $input->readListBegin($_etype900, $_size897); + for ($_i901 = 0; $_i901 < $_size897; ++$_i901) { - $elem855 = null; - $elem855 = new \metastore\PartitionSpec(); - $xfer += $elem855->read($input); - $this->new_parts []= $elem855; + $elem902 = null; + $elem902 = new \metastore\PartitionSpec(); + $xfer += $elem902->read($input); + $this->new_parts []= $elem902; } $xfer += $input->readListEnd(); } else { @@ -21438,9 +22139,9 @@ class ThriftHiveMetastore_add_partitions_pspec_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter856) + foreach ($this->new_parts as $iter903) { - $xfer += $iter856->write($output); + $xfer += $iter903->write($output); } } $output->writeListEnd(); @@ -21690,14 +22391,14 @@ class ThriftHiveMetastore_append_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size857 = 0; - $_etype860 = 0; - $xfer += $input->readListBegin($_etype860, $_size857); - for ($_i861 = 0; $_i861 < $_size857; ++$_i861) + $_size904 = 0; + $_etype907 = 0; + $xfer += $input->readListBegin($_etype907, $_size904); + for ($_i908 = 0; $_i908 < $_size904; ++$_i908) { - $elem862 = null; - $xfer += $input->readString($elem862); - $this->part_vals []= $elem862; + $elem909 = null; + $xfer += $input->readString($elem909); + $this->part_vals []= $elem909; } $xfer += $input->readListEnd(); } else { @@ -21735,9 +22436,9 @@ class ThriftHiveMetastore_append_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter863) + foreach ($this->part_vals as $iter910) { - $xfer += $output->writeString($iter863); + $xfer += $output->writeString($iter910); } } $output->writeListEnd(); @@ -22239,14 +22940,14 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size864 = 0; - $_etype867 = 0; - $xfer += $input->readListBegin($_etype867, $_size864); - for ($_i868 = 0; $_i868 < $_size864; ++$_i868) + $_size911 = 0; + $_etype914 = 0; + $xfer += $input->readListBegin($_etype914, $_size911); + for ($_i915 = 0; $_i915 < $_size911; ++$_i915) { - $elem869 = null; - $xfer += $input->readString($elem869); - $this->part_vals []= $elem869; + $elem916 = null; + $xfer += $input->readString($elem916); + $this->part_vals []= $elem916; } $xfer += $input->readListEnd(); } else { @@ -22292,9 +22993,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter870) + foreach ($this->part_vals as $iter917) { - $xfer += $output->writeString($iter870); + $xfer += $output->writeString($iter917); } } $output->writeListEnd(); @@ -23148,14 +23849,14 @@ class ThriftHiveMetastore_drop_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size871 = 0; - $_etype874 = 0; - $xfer += $input->readListBegin($_etype874, $_size871); - for ($_i875 = 0; $_i875 < $_size871; ++$_i875) + $_size918 = 0; + $_etype921 = 0; + $xfer += $input->readListBegin($_etype921, $_size918); + for ($_i922 = 0; $_i922 < $_size918; ++$_i922) { - $elem876 = null; - $xfer += $input->readString($elem876); - $this->part_vals []= $elem876; + $elem923 = null; + $xfer += $input->readString($elem923); + $this->part_vals []= $elem923; } $xfer += $input->readListEnd(); } else { @@ -23200,9 +23901,9 @@ class ThriftHiveMetastore_drop_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter877) + foreach ($this->part_vals as $iter924) { - $xfer += $output->writeString($iter877); + $xfer += $output->writeString($iter924); } } $output->writeListEnd(); @@ -23455,14 +24156,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size878 = 0; - $_etype881 = 0; - $xfer += $input->readListBegin($_etype881, $_size878); - for ($_i882 = 0; $_i882 < $_size878; ++$_i882) + $_size925 = 0; + $_etype928 = 0; + $xfer += $input->readListBegin($_etype928, $_size925); + for ($_i929 = 0; $_i929 < $_size925; ++$_i929) { - $elem883 = null; - $xfer += $input->readString($elem883); - $this->part_vals []= $elem883; + $elem930 = null; + $xfer += $input->readString($elem930); + $this->part_vals []= $elem930; } $xfer += $input->readListEnd(); } else { @@ -23515,9 +24216,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter884) + foreach ($this->part_vals as $iter931) { - $xfer += $output->writeString($iter884); + $xfer += $output->writeString($iter931); } } $output->writeListEnd(); @@ -24531,14 +25232,14 @@ class ThriftHiveMetastore_get_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size885 = 0; - $_etype888 = 0; - $xfer += $input->readListBegin($_etype888, $_size885); - for ($_i889 = 0; $_i889 < $_size885; ++$_i889) + $_size932 = 0; + $_etype935 = 0; + $xfer += $input->readListBegin($_etype935, $_size932); + for ($_i936 = 0; $_i936 < $_size932; ++$_i936) { - $elem890 = null; - $xfer += $input->readString($elem890); - $this->part_vals []= $elem890; + $elem937 = null; + $xfer += $input->readString($elem937); + $this->part_vals []= $elem937; } $xfer += $input->readListEnd(); } else { @@ -24576,9 +25277,9 @@ class ThriftHiveMetastore_get_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter891) + foreach ($this->part_vals as $iter938) { - $xfer += $output->writeString($iter891); + $xfer += $output->writeString($iter938); } } $output->writeListEnd(); @@ -24820,17 +25521,17 @@ class ThriftHiveMetastore_exchange_partition_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size892 = 0; - $_ktype893 = 0; - $_vtype894 = 0; - $xfer += $input->readMapBegin($_ktype893, $_vtype894, $_size892); - for ($_i896 = 0; $_i896 < $_size892; ++$_i896) + $_size939 = 0; + $_ktype940 = 0; + $_vtype941 = 0; + $xfer += $input->readMapBegin($_ktype940, $_vtype941, $_size939); + for ($_i943 = 0; $_i943 < $_size939; ++$_i943) { - $key897 = ''; - $val898 = ''; - $xfer += $input->readString($key897); - $xfer += $input->readString($val898); - $this->partitionSpecs[$key897] = $val898; + $key944 = ''; + $val945 = ''; + $xfer += $input->readString($key944); + $xfer += $input->readString($val945); + $this->partitionSpecs[$key944] = $val945; } $xfer += $input->readMapEnd(); } else { @@ -24886,10 +25587,10 @@ class ThriftHiveMetastore_exchange_partition_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter899 => $viter900) + foreach ($this->partitionSpecs as $kiter946 => $viter947) { - $xfer += $output->writeString($kiter899); - $xfer += $output->writeString($viter900); + $xfer += $output->writeString($kiter946); + $xfer += $output->writeString($viter947); } } $output->writeMapEnd(); @@ -25201,17 +25902,17 @@ class ThriftHiveMetastore_exchange_partitions_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size901 = 0; - $_ktype902 = 0; - $_vtype903 = 0; - $xfer += $input->readMapBegin($_ktype902, $_vtype903, $_size901); - for ($_i905 = 0; $_i905 < $_size901; ++$_i905) + $_size948 = 0; + $_ktype949 = 0; + $_vtype950 = 0; + $xfer += $input->readMapBegin($_ktype949, $_vtype950, $_size948); + for ($_i952 = 0; $_i952 < $_size948; ++$_i952) { - $key906 = ''; - $val907 = ''; - $xfer += $input->readString($key906); - $xfer += $input->readString($val907); - $this->partitionSpecs[$key906] = $val907; + $key953 = ''; + $val954 = ''; + $xfer += $input->readString($key953); + $xfer += $input->readString($val954); + $this->partitionSpecs[$key953] = $val954; } $xfer += $input->readMapEnd(); } else { @@ -25267,10 +25968,10 @@ class ThriftHiveMetastore_exchange_partitions_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter908 => $viter909) + foreach ($this->partitionSpecs as $kiter955 => $viter956) { - $xfer += $output->writeString($kiter908); - $xfer += $output->writeString($viter909); + $xfer += $output->writeString($kiter955); + $xfer += $output->writeString($viter956); } } $output->writeMapEnd(); @@ -25403,15 +26104,15 @@ class ThriftHiveMetastore_exchange_partitions_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) + $_size957 = 0; + $_etype960 = 0; + $xfer += $input->readListBegin($_etype960, $_size957); + for ($_i961 = 0; $_i961 < $_size957; ++$_i961) { - $elem915 = null; - $elem915 = new \metastore\Partition(); - $xfer += $elem915->read($input); - $this->success []= $elem915; + $elem962 = null; + $elem962 = new \metastore\Partition(); + $xfer += $elem962->read($input); + $this->success []= $elem962; } $xfer += $input->readListEnd(); } else { @@ -25471,9 +26172,9 @@ class ThriftHiveMetastore_exchange_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter916) + foreach ($this->success as $iter963) { - $xfer += $iter916->write($output); + $xfer += $iter963->write($output); } } $output->writeListEnd(); @@ -25619,14 +26320,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size917 = 0; - $_etype920 = 0; - $xfer += $input->readListBegin($_etype920, $_size917); - for ($_i921 = 0; $_i921 < $_size917; ++$_i921) + $_size964 = 0; + $_etype967 = 0; + $xfer += $input->readListBegin($_etype967, $_size964); + for ($_i968 = 0; $_i968 < $_size964; ++$_i968) { - $elem922 = null; - $xfer += $input->readString($elem922); - $this->part_vals []= $elem922; + $elem969 = null; + $xfer += $input->readString($elem969); + $this->part_vals []= $elem969; } $xfer += $input->readListEnd(); } else { @@ -25643,14 +26344,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size923 = 0; - $_etype926 = 0; - $xfer += $input->readListBegin($_etype926, $_size923); - for ($_i927 = 0; $_i927 < $_size923; ++$_i927) + $_size970 = 0; + $_etype973 = 0; + $xfer += $input->readListBegin($_etype973, $_size970); + for ($_i974 = 0; $_i974 < $_size970; ++$_i974) { - $elem928 = null; - $xfer += $input->readString($elem928); - $this->group_names []= $elem928; + $elem975 = null; + $xfer += $input->readString($elem975); + $this->group_names []= $elem975; } $xfer += $input->readListEnd(); } else { @@ -25688,9 +26389,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter929) + foreach ($this->part_vals as $iter976) { - $xfer += $output->writeString($iter929); + $xfer += $output->writeString($iter976); } } $output->writeListEnd(); @@ -25710,9 +26411,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter930) + foreach ($this->group_names as $iter977) { - $xfer += $output->writeString($iter930); + $xfer += $output->writeString($iter977); } } $output->writeListEnd(); @@ -26303,15 +27004,15 @@ class ThriftHiveMetastore_get_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size931 = 0; - $_etype934 = 0; - $xfer += $input->readListBegin($_etype934, $_size931); - for ($_i935 = 0; $_i935 < $_size931; ++$_i935) + $_size978 = 0; + $_etype981 = 0; + $xfer += $input->readListBegin($_etype981, $_size978); + for ($_i982 = 0; $_i982 < $_size978; ++$_i982) { - $elem936 = null; - $elem936 = new \metastore\Partition(); - $xfer += $elem936->read($input); - $this->success []= $elem936; + $elem983 = null; + $elem983 = new \metastore\Partition(); + $xfer += $elem983->read($input); + $this->success []= $elem983; } $xfer += $input->readListEnd(); } else { @@ -26355,9 +27056,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter937) + foreach ($this->success as $iter984) { - $xfer += $iter937->write($output); + $xfer += $iter984->write($output); } } $output->writeListEnd(); @@ -26503,14 +27204,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size938 = 0; - $_etype941 = 0; - $xfer += $input->readListBegin($_etype941, $_size938); - for ($_i942 = 0; $_i942 < $_size938; ++$_i942) + $_size985 = 0; + $_etype988 = 0; + $xfer += $input->readListBegin($_etype988, $_size985); + for ($_i989 = 0; $_i989 < $_size985; ++$_i989) { - $elem943 = null; - $xfer += $input->readString($elem943); - $this->group_names []= $elem943; + $elem990 = null; + $xfer += $input->readString($elem990); + $this->group_names []= $elem990; } $xfer += $input->readListEnd(); } else { @@ -26558,9 +27259,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter944) + foreach ($this->group_names as $iter991) { - $xfer += $output->writeString($iter944); + $xfer += $output->writeString($iter991); } } $output->writeListEnd(); @@ -26649,15 +27350,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size945 = 0; - $_etype948 = 0; - $xfer += $input->readListBegin($_etype948, $_size945); - for ($_i949 = 0; $_i949 < $_size945; ++$_i949) + $_size992 = 0; + $_etype995 = 0; + $xfer += $input->readListBegin($_etype995, $_size992); + for ($_i996 = 0; $_i996 < $_size992; ++$_i996) { - $elem950 = null; - $elem950 = new \metastore\Partition(); - $xfer += $elem950->read($input); - $this->success []= $elem950; + $elem997 = null; + $elem997 = new \metastore\Partition(); + $xfer += $elem997->read($input); + $this->success []= $elem997; } $xfer += $input->readListEnd(); } else { @@ -26701,9 +27402,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter951) + foreach ($this->success as $iter998) { - $xfer += $iter951->write($output); + $xfer += $iter998->write($output); } } $output->writeListEnd(); @@ -26923,15 +27624,15 @@ class ThriftHiveMetastore_get_partitions_pspec_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size952 = 0; - $_etype955 = 0; - $xfer += $input->readListBegin($_etype955, $_size952); - for ($_i956 = 0; $_i956 < $_size952; ++$_i956) + $_size999 = 0; + $_etype1002 = 0; + $xfer += $input->readListBegin($_etype1002, $_size999); + for ($_i1003 = 0; $_i1003 < $_size999; ++$_i1003) { - $elem957 = null; - $elem957 = new \metastore\PartitionSpec(); - $xfer += $elem957->read($input); - $this->success []= $elem957; + $elem1004 = null; + $elem1004 = new \metastore\PartitionSpec(); + $xfer += $elem1004->read($input); + $this->success []= $elem1004; } $xfer += $input->readListEnd(); } else { @@ -26975,9 +27676,9 @@ class ThriftHiveMetastore_get_partitions_pspec_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter958) + foreach ($this->success as $iter1005) { - $xfer += $iter958->write($output); + $xfer += $iter1005->write($output); } } $output->writeListEnd(); @@ -27196,14 +27897,14 @@ class ThriftHiveMetastore_get_partition_names_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) + $_size1006 = 0; + $_etype1009 = 0; + $xfer += $input->readListBegin($_etype1009, $_size1006); + for ($_i1010 = 0; $_i1010 < $_size1006; ++$_i1010) { - $elem964 = null; - $xfer += $input->readString($elem964); - $this->success []= $elem964; + $elem1011 = null; + $xfer += $input->readString($elem1011); + $this->success []= $elem1011; } $xfer += $input->readListEnd(); } else { @@ -27247,9 +27948,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter965) + foreach ($this->success as $iter1012) { - $xfer += $output->writeString($iter965); + $xfer += $output->writeString($iter1012); } } $output->writeListEnd(); @@ -27580,14 +28281,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size966 = 0; - $_etype969 = 0; - $xfer += $input->readListBegin($_etype969, $_size966); - for ($_i970 = 0; $_i970 < $_size966; ++$_i970) + $_size1013 = 0; + $_etype1016 = 0; + $xfer += $input->readListBegin($_etype1016, $_size1013); + for ($_i1017 = 0; $_i1017 < $_size1013; ++$_i1017) { - $elem971 = null; - $xfer += $input->readString($elem971); - $this->part_vals []= $elem971; + $elem1018 = null; + $xfer += $input->readString($elem1018); + $this->part_vals []= $elem1018; } $xfer += $input->readListEnd(); } else { @@ -27632,9 +28333,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter972) + foreach ($this->part_vals as $iter1019) { - $xfer += $output->writeString($iter972); + $xfer += $output->writeString($iter1019); } } $output->writeListEnd(); @@ -27728,15 +28429,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size973 = 0; - $_etype976 = 0; - $xfer += $input->readListBegin($_etype976, $_size973); - for ($_i977 = 0; $_i977 < $_size973; ++$_i977) + $_size1020 = 0; + $_etype1023 = 0; + $xfer += $input->readListBegin($_etype1023, $_size1020); + for ($_i1024 = 0; $_i1024 < $_size1020; ++$_i1024) { - $elem978 = null; - $elem978 = new \metastore\Partition(); - $xfer += $elem978->read($input); - $this->success []= $elem978; + $elem1025 = null; + $elem1025 = new \metastore\Partition(); + $xfer += $elem1025->read($input); + $this->success []= $elem1025; } $xfer += $input->readListEnd(); } else { @@ -27780,9 +28481,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter979) + foreach ($this->success as $iter1026) { - $xfer += $iter979->write($output); + $xfer += $iter1026->write($output); } } $output->writeListEnd(); @@ -27929,14 +28630,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size980 = 0; - $_etype983 = 0; - $xfer += $input->readListBegin($_etype983, $_size980); - for ($_i984 = 0; $_i984 < $_size980; ++$_i984) + $_size1027 = 0; + $_etype1030 = 0; + $xfer += $input->readListBegin($_etype1030, $_size1027); + for ($_i1031 = 0; $_i1031 < $_size1027; ++$_i1031) { - $elem985 = null; - $xfer += $input->readString($elem985); - $this->part_vals []= $elem985; + $elem1032 = null; + $xfer += $input->readString($elem1032); + $this->part_vals []= $elem1032; } $xfer += $input->readListEnd(); } else { @@ -27960,14 +28661,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size986 = 0; - $_etype989 = 0; - $xfer += $input->readListBegin($_etype989, $_size986); - for ($_i990 = 0; $_i990 < $_size986; ++$_i990) + $_size1033 = 0; + $_etype1036 = 0; + $xfer += $input->readListBegin($_etype1036, $_size1033); + for ($_i1037 = 0; $_i1037 < $_size1033; ++$_i1037) { - $elem991 = null; - $xfer += $input->readString($elem991); - $this->group_names []= $elem991; + $elem1038 = null; + $xfer += $input->readString($elem1038); + $this->group_names []= $elem1038; } $xfer += $input->readListEnd(); } else { @@ -28005,9 +28706,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter992) + foreach ($this->part_vals as $iter1039) { - $xfer += $output->writeString($iter992); + $xfer += $output->writeString($iter1039); } } $output->writeListEnd(); @@ -28032,9 +28733,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter993) + foreach ($this->group_names as $iter1040) { - $xfer += $output->writeString($iter993); + $xfer += $output->writeString($iter1040); } } $output->writeListEnd(); @@ -28123,15 +28824,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size994 = 0; - $_etype997 = 0; - $xfer += $input->readListBegin($_etype997, $_size994); - for ($_i998 = 0; $_i998 < $_size994; ++$_i998) + $_size1041 = 0; + $_etype1044 = 0; + $xfer += $input->readListBegin($_etype1044, $_size1041); + for ($_i1045 = 0; $_i1045 < $_size1041; ++$_i1045) { - $elem999 = null; - $elem999 = new \metastore\Partition(); - $xfer += $elem999->read($input); - $this->success []= $elem999; + $elem1046 = null; + $elem1046 = new \metastore\Partition(); + $xfer += $elem1046->read($input); + $this->success []= $elem1046; } $xfer += $input->readListEnd(); } else { @@ -28175,9 +28876,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1000) + foreach ($this->success as $iter1047) { - $xfer += $iter1000->write($output); + $xfer += $iter1047->write($output); } } $output->writeListEnd(); @@ -28298,14 +28999,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1001 = 0; - $_etype1004 = 0; - $xfer += $input->readListBegin($_etype1004, $_size1001); - for ($_i1005 = 0; $_i1005 < $_size1001; ++$_i1005) + $_size1048 = 0; + $_etype1051 = 0; + $xfer += $input->readListBegin($_etype1051, $_size1048); + for ($_i1052 = 0; $_i1052 < $_size1048; ++$_i1052) { - $elem1006 = null; - $xfer += $input->readString($elem1006); - $this->part_vals []= $elem1006; + $elem1053 = null; + $xfer += $input->readString($elem1053); + $this->part_vals []= $elem1053; } $xfer += $input->readListEnd(); } else { @@ -28350,9 +29051,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1007) + foreach ($this->part_vals as $iter1054) { - $xfer += $output->writeString($iter1007); + $xfer += $output->writeString($iter1054); } } $output->writeListEnd(); @@ -28445,14 +29146,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1008 = 0; - $_etype1011 = 0; - $xfer += $input->readListBegin($_etype1011, $_size1008); - for ($_i1012 = 0; $_i1012 < $_size1008; ++$_i1012) + $_size1055 = 0; + $_etype1058 = 0; + $xfer += $input->readListBegin($_etype1058, $_size1055); + for ($_i1059 = 0; $_i1059 < $_size1055; ++$_i1059) { - $elem1013 = null; - $xfer += $input->readString($elem1013); - $this->success []= $elem1013; + $elem1060 = null; + $xfer += $input->readString($elem1060); + $this->success []= $elem1060; } $xfer += $input->readListEnd(); } else { @@ -28496,9 +29197,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1014) + foreach ($this->success as $iter1061) { - $xfer += $output->writeString($iter1014); + $xfer += $output->writeString($iter1061); } } $output->writeListEnd(); @@ -28741,15 +29442,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1015 = 0; - $_etype1018 = 0; - $xfer += $input->readListBegin($_etype1018, $_size1015); - for ($_i1019 = 0; $_i1019 < $_size1015; ++$_i1019) + $_size1062 = 0; + $_etype1065 = 0; + $xfer += $input->readListBegin($_etype1065, $_size1062); + for ($_i1066 = 0; $_i1066 < $_size1062; ++$_i1066) { - $elem1020 = null; - $elem1020 = new \metastore\Partition(); - $xfer += $elem1020->read($input); - $this->success []= $elem1020; + $elem1067 = null; + $elem1067 = new \metastore\Partition(); + $xfer += $elem1067->read($input); + $this->success []= $elem1067; } $xfer += $input->readListEnd(); } else { @@ -28793,9 +29494,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1021) + foreach ($this->success as $iter1068) { - $xfer += $iter1021->write($output); + $xfer += $iter1068->write($output); } } $output->writeListEnd(); @@ -29038,15 +29739,15 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1022 = 0; - $_etype1025 = 0; - $xfer += $input->readListBegin($_etype1025, $_size1022); - for ($_i1026 = 0; $_i1026 < $_size1022; ++$_i1026) + $_size1069 = 0; + $_etype1072 = 0; + $xfer += $input->readListBegin($_etype1072, $_size1069); + for ($_i1073 = 0; $_i1073 < $_size1069; ++$_i1073) { - $elem1027 = null; - $elem1027 = new \metastore\PartitionSpec(); - $xfer += $elem1027->read($input); - $this->success []= $elem1027; + $elem1074 = null; + $elem1074 = new \metastore\PartitionSpec(); + $xfer += $elem1074->read($input); + $this->success []= $elem1074; } $xfer += $input->readListEnd(); } else { @@ -29090,9 +29791,9 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1028) + foreach ($this->success as $iter1075) { - $xfer += $iter1028->write($output); + $xfer += $iter1075->write($output); } } $output->writeListEnd(); @@ -29658,14 +30359,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size1029 = 0; - $_etype1032 = 0; - $xfer += $input->readListBegin($_etype1032, $_size1029); - for ($_i1033 = 0; $_i1033 < $_size1029; ++$_i1033) + $_size1076 = 0; + $_etype1079 = 0; + $xfer += $input->readListBegin($_etype1079, $_size1076); + for ($_i1080 = 0; $_i1080 < $_size1076; ++$_i1080) { - $elem1034 = null; - $xfer += $input->readString($elem1034); - $this->names []= $elem1034; + $elem1081 = null; + $xfer += $input->readString($elem1081); + $this->names []= $elem1081; } $xfer += $input->readListEnd(); } else { @@ -29703,9 +30404,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter1035) + foreach ($this->names as $iter1082) { - $xfer += $output->writeString($iter1035); + $xfer += $output->writeString($iter1082); } } $output->writeListEnd(); @@ -29794,15 +30495,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1036 = 0; - $_etype1039 = 0; - $xfer += $input->readListBegin($_etype1039, $_size1036); - for ($_i1040 = 0; $_i1040 < $_size1036; ++$_i1040) + $_size1083 = 0; + $_etype1086 = 0; + $xfer += $input->readListBegin($_etype1086, $_size1083); + for ($_i1087 = 0; $_i1087 < $_size1083; ++$_i1087) { - $elem1041 = null; - $elem1041 = new \metastore\Partition(); - $xfer += $elem1041->read($input); - $this->success []= $elem1041; + $elem1088 = null; + $elem1088 = new \metastore\Partition(); + $xfer += $elem1088->read($input); + $this->success []= $elem1088; } $xfer += $input->readListEnd(); } else { @@ -29846,9 +30547,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1042) + foreach ($this->success as $iter1089) { - $xfer += $iter1042->write($output); + $xfer += $iter1089->write($output); } } $output->writeListEnd(); @@ -30187,15 +30888,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1043 = 0; - $_etype1046 = 0; - $xfer += $input->readListBegin($_etype1046, $_size1043); - for ($_i1047 = 0; $_i1047 < $_size1043; ++$_i1047) + $_size1090 = 0; + $_etype1093 = 0; + $xfer += $input->readListBegin($_etype1093, $_size1090); + for ($_i1094 = 0; $_i1094 < $_size1090; ++$_i1094) { - $elem1048 = null; - $elem1048 = new \metastore\Partition(); - $xfer += $elem1048->read($input); - $this->new_parts []= $elem1048; + $elem1095 = null; + $elem1095 = new \metastore\Partition(); + $xfer += $elem1095->read($input); + $this->new_parts []= $elem1095; } $xfer += $input->readListEnd(); } else { @@ -30233,9 +30934,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1049) + foreach ($this->new_parts as $iter1096) { - $xfer += $iter1049->write($output); + $xfer += $iter1096->write($output); } } $output->writeListEnd(); @@ -30450,15 +31151,15 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1050 = 0; - $_etype1053 = 0; - $xfer += $input->readListBegin($_etype1053, $_size1050); - for ($_i1054 = 0; $_i1054 < $_size1050; ++$_i1054) + $_size1097 = 0; + $_etype1100 = 0; + $xfer += $input->readListBegin($_etype1100, $_size1097); + for ($_i1101 = 0; $_i1101 < $_size1097; ++$_i1101) { - $elem1055 = null; - $elem1055 = new \metastore\Partition(); - $xfer += $elem1055->read($input); - $this->new_parts []= $elem1055; + $elem1102 = null; + $elem1102 = new \metastore\Partition(); + $xfer += $elem1102->read($input); + $this->new_parts []= $elem1102; } $xfer += $input->readListEnd(); } else { @@ -30504,9 +31205,9 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1056) + foreach ($this->new_parts as $iter1103) { - $xfer += $iter1056->write($output); + $xfer += $iter1103->write($output); } } $output->writeListEnd(); @@ -30984,14 +31685,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1057 = 0; - $_etype1060 = 0; - $xfer += $input->readListBegin($_etype1060, $_size1057); - for ($_i1061 = 0; $_i1061 < $_size1057; ++$_i1061) + $_size1104 = 0; + $_etype1107 = 0; + $xfer += $input->readListBegin($_etype1107, $_size1104); + for ($_i1108 = 0; $_i1108 < $_size1104; ++$_i1108) { - $elem1062 = null; - $xfer += $input->readString($elem1062); - $this->part_vals []= $elem1062; + $elem1109 = null; + $xfer += $input->readString($elem1109); + $this->part_vals []= $elem1109; } $xfer += $input->readListEnd(); } else { @@ -31037,9 +31738,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1063) + foreach ($this->part_vals as $iter1110) { - $xfer += $output->writeString($iter1063); + $xfer += $output->writeString($iter1110); } } $output->writeListEnd(); @@ -31224,14 +31925,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1064 = 0; - $_etype1067 = 0; - $xfer += $input->readListBegin($_etype1067, $_size1064); - for ($_i1068 = 0; $_i1068 < $_size1064; ++$_i1068) + $_size1111 = 0; + $_etype1114 = 0; + $xfer += $input->readListBegin($_etype1114, $_size1111); + for ($_i1115 = 0; $_i1115 < $_size1111; ++$_i1115) { - $elem1069 = null; - $xfer += $input->readString($elem1069); - $this->part_vals []= $elem1069; + $elem1116 = null; + $xfer += $input->readString($elem1116); + $this->part_vals []= $elem1116; } $xfer += $input->readListEnd(); } else { @@ -31266,9 +31967,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1070) + foreach ($this->part_vals as $iter1117) { - $xfer += $output->writeString($iter1070); + $xfer += $output->writeString($iter1117); } } $output->writeListEnd(); @@ -31722,14 +32423,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1071 = 0; - $_etype1074 = 0; - $xfer += $input->readListBegin($_etype1074, $_size1071); - for ($_i1075 = 0; $_i1075 < $_size1071; ++$_i1075) + $_size1118 = 0; + $_etype1121 = 0; + $xfer += $input->readListBegin($_etype1121, $_size1118); + for ($_i1122 = 0; $_i1122 < $_size1118; ++$_i1122) { - $elem1076 = null; - $xfer += $input->readString($elem1076); - $this->success []= $elem1076; + $elem1123 = null; + $xfer += $input->readString($elem1123); + $this->success []= $elem1123; } $xfer += $input->readListEnd(); } else { @@ -31765,9 +32466,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1077) + foreach ($this->success as $iter1124) { - $xfer += $output->writeString($iter1077); + $xfer += $output->writeString($iter1124); } } $output->writeListEnd(); @@ -31927,17 +32628,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size1078 = 0; - $_ktype1079 = 0; - $_vtype1080 = 0; - $xfer += $input->readMapBegin($_ktype1079, $_vtype1080, $_size1078); - for ($_i1082 = 0; $_i1082 < $_size1078; ++$_i1082) + $_size1125 = 0; + $_ktype1126 = 0; + $_vtype1127 = 0; + $xfer += $input->readMapBegin($_ktype1126, $_vtype1127, $_size1125); + for ($_i1129 = 0; $_i1129 < $_size1125; ++$_i1129) { - $key1083 = ''; - $val1084 = ''; - $xfer += $input->readString($key1083); - $xfer += $input->readString($val1084); - $this->success[$key1083] = $val1084; + $key1130 = ''; + $val1131 = ''; + $xfer += $input->readString($key1130); + $xfer += $input->readString($val1131); + $this->success[$key1130] = $val1131; } $xfer += $input->readMapEnd(); } else { @@ -31973,10 +32674,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter1085 => $viter1086) + foreach ($this->success as $kiter1132 => $viter1133) { - $xfer += $output->writeString($kiter1085); - $xfer += $output->writeString($viter1086); + $xfer += $output->writeString($kiter1132); + $xfer += $output->writeString($viter1133); } } $output->writeMapEnd(); @@ -32096,17 +32797,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1087 = 0; - $_ktype1088 = 0; - $_vtype1089 = 0; - $xfer += $input->readMapBegin($_ktype1088, $_vtype1089, $_size1087); - for ($_i1091 = 0; $_i1091 < $_size1087; ++$_i1091) + $_size1134 = 0; + $_ktype1135 = 0; + $_vtype1136 = 0; + $xfer += $input->readMapBegin($_ktype1135, $_vtype1136, $_size1134); + for ($_i1138 = 0; $_i1138 < $_size1134; ++$_i1138) { - $key1092 = ''; - $val1093 = ''; - $xfer += $input->readString($key1092); - $xfer += $input->readString($val1093); - $this->part_vals[$key1092] = $val1093; + $key1139 = ''; + $val1140 = ''; + $xfer += $input->readString($key1139); + $xfer += $input->readString($val1140); + $this->part_vals[$key1139] = $val1140; } $xfer += $input->readMapEnd(); } else { @@ -32151,10 +32852,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1094 => $viter1095) + foreach ($this->part_vals as $kiter1141 => $viter1142) { - $xfer += $output->writeString($kiter1094); - $xfer += $output->writeString($viter1095); + $xfer += $output->writeString($kiter1141); + $xfer += $output->writeString($viter1142); } } $output->writeMapEnd(); @@ -32476,17 +33177,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1096 = 0; - $_ktype1097 = 0; - $_vtype1098 = 0; - $xfer += $input->readMapBegin($_ktype1097, $_vtype1098, $_size1096); - for ($_i1100 = 0; $_i1100 < $_size1096; ++$_i1100) + $_size1143 = 0; + $_ktype1144 = 0; + $_vtype1145 = 0; + $xfer += $input->readMapBegin($_ktype1144, $_vtype1145, $_size1143); + for ($_i1147 = 0; $_i1147 < $_size1143; ++$_i1147) { - $key1101 = ''; - $val1102 = ''; - $xfer += $input->readString($key1101); - $xfer += $input->readString($val1102); - $this->part_vals[$key1101] = $val1102; + $key1148 = ''; + $val1149 = ''; + $xfer += $input->readString($key1148); + $xfer += $input->readString($val1149); + $this->part_vals[$key1148] = $val1149; } $xfer += $input->readMapEnd(); } else { @@ -32531,10 +33232,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1103 => $viter1104) + foreach ($this->part_vals as $kiter1150 => $viter1151) { - $xfer += $output->writeString($kiter1103); - $xfer += $output->writeString($viter1104); + $xfer += $output->writeString($kiter1150); + $xfer += $output->writeString($viter1151); } } $output->writeMapEnd(); @@ -34008,15 +34709,15 @@ class ThriftHiveMetastore_get_indexes_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1105 = 0; - $_etype1108 = 0; - $xfer += $input->readListBegin($_etype1108, $_size1105); - for ($_i1109 = 0; $_i1109 < $_size1105; ++$_i1109) + $_size1152 = 0; + $_etype1155 = 0; + $xfer += $input->readListBegin($_etype1155, $_size1152); + for ($_i1156 = 0; $_i1156 < $_size1152; ++$_i1156) { - $elem1110 = null; - $elem1110 = new \metastore\Index(); - $xfer += $elem1110->read($input); - $this->success []= $elem1110; + $elem1157 = null; + $elem1157 = new \metastore\Index(); + $xfer += $elem1157->read($input); + $this->success []= $elem1157; } $xfer += $input->readListEnd(); } else { @@ -34060,9 +34761,9 @@ class ThriftHiveMetastore_get_indexes_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1111) + foreach ($this->success as $iter1158) { - $xfer += $iter1111->write($output); + $xfer += $iter1158->write($output); } } $output->writeListEnd(); @@ -34269,14 +34970,14 @@ class ThriftHiveMetastore_get_index_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1112 = 0; - $_etype1115 = 0; - $xfer += $input->readListBegin($_etype1115, $_size1112); - for ($_i1116 = 0; $_i1116 < $_size1112; ++$_i1116) + $_size1159 = 0; + $_etype1162 = 0; + $xfer += $input->readListBegin($_etype1162, $_size1159); + for ($_i1163 = 0; $_i1163 < $_size1159; ++$_i1163) { - $elem1117 = null; - $xfer += $input->readString($elem1117); - $this->success []= $elem1117; + $elem1164 = null; + $xfer += $input->readString($elem1164); + $this->success []= $elem1164; } $xfer += $input->readListEnd(); } else { @@ -34312,9 +35013,9 @@ class ThriftHiveMetastore_get_index_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1118) + foreach ($this->success as $iter1165) { - $xfer += $output->writeString($iter1118); + $xfer += $output->writeString($iter1165); } } $output->writeListEnd(); @@ -38628,14 +39329,14 @@ class ThriftHiveMetastore_get_functions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1119 = 0; - $_etype1122 = 0; - $xfer += $input->readListBegin($_etype1122, $_size1119); - for ($_i1123 = 0; $_i1123 < $_size1119; ++$_i1123) + $_size1166 = 0; + $_etype1169 = 0; + $xfer += $input->readListBegin($_etype1169, $_size1166); + for ($_i1170 = 0; $_i1170 < $_size1166; ++$_i1170) { - $elem1124 = null; - $xfer += $input->readString($elem1124); - $this->success []= $elem1124; + $elem1171 = null; + $xfer += $input->readString($elem1171); + $this->success []= $elem1171; } $xfer += $input->readListEnd(); } else { @@ -38671,9 +39372,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1125) + foreach ($this->success as $iter1172) { - $xfer += $output->writeString($iter1125); + $xfer += $output->writeString($iter1172); } } $output->writeListEnd(); @@ -39542,14 +40243,14 @@ class ThriftHiveMetastore_get_role_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1126 = 0; - $_etype1129 = 0; - $xfer += $input->readListBegin($_etype1129, $_size1126); - for ($_i1130 = 0; $_i1130 < $_size1126; ++$_i1130) + $_size1173 = 0; + $_etype1176 = 0; + $xfer += $input->readListBegin($_etype1176, $_size1173); + for ($_i1177 = 0; $_i1177 < $_size1173; ++$_i1177) { - $elem1131 = null; - $xfer += $input->readString($elem1131); - $this->success []= $elem1131; + $elem1178 = null; + $xfer += $input->readString($elem1178); + $this->success []= $elem1178; } $xfer += $input->readListEnd(); } else { @@ -39585,9 +40286,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1132) + foreach ($this->success as $iter1179) { - $xfer += $output->writeString($iter1132); + $xfer += $output->writeString($iter1179); } } $output->writeListEnd(); @@ -40278,15 +40979,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1133 = 0; - $_etype1136 = 0; - $xfer += $input->readListBegin($_etype1136, $_size1133); - for ($_i1137 = 0; $_i1137 < $_size1133; ++$_i1137) + $_size1180 = 0; + $_etype1183 = 0; + $xfer += $input->readListBegin($_etype1183, $_size1180); + for ($_i1184 = 0; $_i1184 < $_size1180; ++$_i1184) { - $elem1138 = null; - $elem1138 = new \metastore\Role(); - $xfer += $elem1138->read($input); - $this->success []= $elem1138; + $elem1185 = null; + $elem1185 = new \metastore\Role(); + $xfer += $elem1185->read($input); + $this->success []= $elem1185; } $xfer += $input->readListEnd(); } else { @@ -40322,9 +41023,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1139) + foreach ($this->success as $iter1186) { - $xfer += $iter1139->write($output); + $xfer += $iter1186->write($output); } } $output->writeListEnd(); @@ -40986,14 +41687,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1140 = 0; - $_etype1143 = 0; - $xfer += $input->readListBegin($_etype1143, $_size1140); - for ($_i1144 = 0; $_i1144 < $_size1140; ++$_i1144) + $_size1187 = 0; + $_etype1190 = 0; + $xfer += $input->readListBegin($_etype1190, $_size1187); + for ($_i1191 = 0; $_i1191 < $_size1187; ++$_i1191) { - $elem1145 = null; - $xfer += $input->readString($elem1145); - $this->group_names []= $elem1145; + $elem1192 = null; + $xfer += $input->readString($elem1192); + $this->group_names []= $elem1192; } $xfer += $input->readListEnd(); } else { @@ -41034,9 +41735,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1146) + foreach ($this->group_names as $iter1193) { - $xfer += $output->writeString($iter1146); + $xfer += $output->writeString($iter1193); } } $output->writeListEnd(); @@ -41344,15 +42045,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1147 = 0; - $_etype1150 = 0; - $xfer += $input->readListBegin($_etype1150, $_size1147); - for ($_i1151 = 0; $_i1151 < $_size1147; ++$_i1151) + $_size1194 = 0; + $_etype1197 = 0; + $xfer += $input->readListBegin($_etype1197, $_size1194); + for ($_i1198 = 0; $_i1198 < $_size1194; ++$_i1198) { - $elem1152 = null; - $elem1152 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem1152->read($input); - $this->success []= $elem1152; + $elem1199 = null; + $elem1199 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem1199->read($input); + $this->success []= $elem1199; } $xfer += $input->readListEnd(); } else { @@ -41388,9 +42089,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1153) + foreach ($this->success as $iter1200) { - $xfer += $iter1153->write($output); + $xfer += $iter1200->write($output); } } $output->writeListEnd(); @@ -42022,14 +42723,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1154 = 0; - $_etype1157 = 0; - $xfer += $input->readListBegin($_etype1157, $_size1154); - for ($_i1158 = 0; $_i1158 < $_size1154; ++$_i1158) + $_size1201 = 0; + $_etype1204 = 0; + $xfer += $input->readListBegin($_etype1204, $_size1201); + for ($_i1205 = 0; $_i1205 < $_size1201; ++$_i1205) { - $elem1159 = null; - $xfer += $input->readString($elem1159); - $this->group_names []= $elem1159; + $elem1206 = null; + $xfer += $input->readString($elem1206); + $this->group_names []= $elem1206; } $xfer += $input->readListEnd(); } else { @@ -42062,9 +42763,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1160) + foreach ($this->group_names as $iter1207) { - $xfer += $output->writeString($iter1160); + $xfer += $output->writeString($iter1207); } } $output->writeListEnd(); @@ -42140,14 +42841,14 @@ class ThriftHiveMetastore_set_ugi_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1161 = 0; - $_etype1164 = 0; - $xfer += $input->readListBegin($_etype1164, $_size1161); - for ($_i1165 = 0; $_i1165 < $_size1161; ++$_i1165) + $_size1208 = 0; + $_etype1211 = 0; + $xfer += $input->readListBegin($_etype1211, $_size1208); + for ($_i1212 = 0; $_i1212 < $_size1208; ++$_i1212) { - $elem1166 = null; - $xfer += $input->readString($elem1166); - $this->success []= $elem1166; + $elem1213 = null; + $xfer += $input->readString($elem1213); + $this->success []= $elem1213; } $xfer += $input->readListEnd(); } else { @@ -42183,9 +42884,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1167) + foreach ($this->success as $iter1214) { - $xfer += $output->writeString($iter1167); + $xfer += $output->writeString($iter1214); } } $output->writeListEnd(); @@ -43302,14 +44003,14 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1168 = 0; - $_etype1171 = 0; - $xfer += $input->readListBegin($_etype1171, $_size1168); - for ($_i1172 = 0; $_i1172 < $_size1168; ++$_i1172) + $_size1215 = 0; + $_etype1218 = 0; + $xfer += $input->readListBegin($_etype1218, $_size1215); + for ($_i1219 = 0; $_i1219 < $_size1215; ++$_i1219) { - $elem1173 = null; - $xfer += $input->readString($elem1173); - $this->success []= $elem1173; + $elem1220 = null; + $xfer += $input->readString($elem1220); + $this->success []= $elem1220; } $xfer += $input->readListEnd(); } else { @@ -43337,9 +44038,9 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1174) + foreach ($this->success as $iter1221) { - $xfer += $output->writeString($iter1174); + $xfer += $output->writeString($iter1221); } } $output->writeListEnd(); @@ -43978,14 +44679,14 @@ class ThriftHiveMetastore_get_master_keys_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1175 = 0; - $_etype1178 = 0; - $xfer += $input->readListBegin($_etype1178, $_size1175); - for ($_i1179 = 0; $_i1179 < $_size1175; ++$_i1179) + $_size1222 = 0; + $_etype1225 = 0; + $xfer += $input->readListBegin($_etype1225, $_size1222); + for ($_i1226 = 0; $_i1226 < $_size1222; ++$_i1226) { - $elem1180 = null; - $xfer += $input->readString($elem1180); - $this->success []= $elem1180; + $elem1227 = null; + $xfer += $input->readString($elem1227); + $this->success []= $elem1227; } $xfer += $input->readListEnd(); } else { @@ -44013,9 +44714,9 @@ class ThriftHiveMetastore_get_master_keys_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1181) + foreach ($this->success as $iter1228) { - $xfer += $output->writeString($iter1181); + $xfer += $output->writeString($iter1228); } } $output->writeListEnd(); @@ -46731,6 +47432,212 @@ class ThriftHiveMetastore_add_dynamic_partitions_result { } +class ThriftHiveMetastore_get_last_completed_transaction_for_table_args { + static $_TSPEC; + + /** + * @var string + */ + public $db_name = null; + /** + * @var string + */ + public $table_name = null; + /** + * @var \metastore\TxnsSnapshot + */ + public $txns_snapshot = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'db_name', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'table_name', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'txns_snapshot', + 'type' => TType::STRUCT, + 'class' => '\metastore\TxnsSnapshot', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['db_name'])) { + $this->db_name = $vals['db_name']; + } + if (isset($vals['table_name'])) { + $this->table_name = $vals['table_name']; + } + if (isset($vals['txns_snapshot'])) { + $this->txns_snapshot = $vals['txns_snapshot']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_last_completed_transaction_for_table_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::STRING) { + $xfer += $input->readString($this->db_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->table_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRUCT) { + $this->txns_snapshot = new \metastore\TxnsSnapshot(); + $xfer += $this->txns_snapshot->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_last_completed_transaction_for_table_args'); + if ($this->db_name !== null) { + $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); + $xfer += $output->writeString($this->db_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->table_name !== null) { + $xfer += $output->writeFieldBegin('table_name', TType::STRING, 2); + $xfer += $output->writeString($this->table_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->txns_snapshot !== null) { + if (!is_object($this->txns_snapshot)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('txns_snapshot', TType::STRUCT, 3); + $xfer += $this->txns_snapshot->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_last_completed_transaction_for_table_result { + static $_TSPEC; + + /** + * @var \metastore\BasicTxnInfo + */ + public $success = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::STRUCT, + 'class' => '\metastore\BasicTxnInfo', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_last_completed_transaction_for_table_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\BasicTxnInfo(); + $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_last_completed_transaction_for_table_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_next_notification_args { static $_TSPEC; @@ -47032,7 +47939,7 @@ class ThriftHiveMetastore_get_notification_events_count_args { public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( - -1 => array( + 1 => array( 'var' => 'rqst', 'type' => TType::STRUCT, 'class' => '\metastore\NotificationEventsCountRequest', @@ -47065,7 +47972,7 @@ class ThriftHiveMetastore_get_notification_events_count_args { } switch ($fid) { - case -1: + case 1: if ($ftype == TType::STRUCT) { $this->rqst = new \metastore\NotificationEventsCountRequest(); $xfer += $this->rqst->read($input); @@ -47090,7 +47997,7 @@ class ThriftHiveMetastore_get_notification_events_count_args { if (!is_object($this->rqst)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('rqst', TType::STRUCT, -1); + $xfer += $output->writeFieldBegin('rqst', TType::STRUCT, 1); $xfer += $this->rqst->write($output); $xfer += $output->writeFieldEnd(); } diff --git a/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php b/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php index e78a851c1d..87eaae562a 100644 --- a/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php +++ b/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php @@ -5029,6 +5029,10 @@ class Table { * @var bool */ public $rewriteEnabled = null; + /** + * @var array + */ + public $creationMetadata = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -5108,6 +5112,19 @@ class Table { 'var' => 'rewriteEnabled', 'type' => TType::BOOL, ), + 16 => array( + 'var' => 'creationMetadata', + 'type' => TType::MAP, + 'ktype' => TType::STRING, + 'vtype' => TType::STRUCT, + 'key' => array( + 'type' => TType::STRING, + ), + 'val' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\BasicTxnInfo', + ), + ), ); } if (is_array($vals)) { @@ -5156,6 +5173,9 @@ class Table { if (isset($vals['rewriteEnabled'])) { $this->rewriteEnabled = $vals['rewriteEnabled']; } + if (isset($vals['creationMetadata'])) { + $this->creationMetadata = $vals['creationMetadata']; + } } } @@ -5309,6 +5329,27 @@ class Table { $xfer += $input->skip($ftype); } break; + case 16: + if ($ftype == TType::MAP) { + $this->creationMetadata = array(); + $_size181 = 0; + $_ktype182 = 0; + $_vtype183 = 0; + $xfer += $input->readMapBegin($_ktype182, $_vtype183, $_size181); + for ($_i185 = 0; $_i185 < $_size181; ++$_i185) + { + $key186 = ''; + $val187 = new \metastore\BasicTxnInfo(); + $xfer += $input->readString($key186); + $val187 = new \metastore\BasicTxnInfo(); + $xfer += $val187->read($input); + $this->creationMetadata[$key186] = $val187; + } + $xfer += $input->readMapEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -5368,9 +5409,9 @@ class Table { { $output->writeListBegin(TType::STRUCT, count($this->partitionKeys)); { - foreach ($this->partitionKeys as $iter181) + foreach ($this->partitionKeys as $iter188) { - $xfer += $iter181->write($output); + $xfer += $iter188->write($output); } } $output->writeListEnd(); @@ -5385,10 +5426,10 @@ class Table { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { - foreach ($this->parameters as $kiter182 => $viter183) + foreach ($this->parameters as $kiter189 => $viter190) { - $xfer += $output->writeString($kiter182); - $xfer += $output->writeString($viter183); + $xfer += $output->writeString($kiter189); + $xfer += $output->writeString($viter190); } } $output->writeMapEnd(); @@ -5428,6 +5469,24 @@ class Table { $xfer += $output->writeBool($this->rewriteEnabled); $xfer += $output->writeFieldEnd(); } + if ($this->creationMetadata !== null) { + if (!is_array($this->creationMetadata)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('creationMetadata', TType::MAP, 16); + { + $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->creationMetadata)); + { + foreach ($this->creationMetadata as $kiter191 => $viter192) + { + $xfer += $output->writeString($kiter191); + $xfer += $viter192->write($output); + } + } + $output->writeMapEnd(); + } + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -5572,14 +5631,14 @@ class Partition { case 1: if ($ftype == TType::LST) { $this->values = array(); - $_size184 = 0; - $_etype187 = 0; - $xfer += $input->readListBegin($_etype187, $_size184); - for ($_i188 = 0; $_i188 < $_size184; ++$_i188) + $_size193 = 0; + $_etype196 = 0; + $xfer += $input->readListBegin($_etype196, $_size193); + for ($_i197 = 0; $_i197 < $_size193; ++$_i197) { - $elem189 = null; - $xfer += $input->readString($elem189); - $this->values []= $elem189; + $elem198 = null; + $xfer += $input->readString($elem198); + $this->values []= $elem198; } $xfer += $input->readListEnd(); } else { @@ -5625,17 +5684,17 @@ class Partition { case 7: if ($ftype == TType::MAP) { $this->parameters = array(); - $_size190 = 0; - $_ktype191 = 0; - $_vtype192 = 0; - $xfer += $input->readMapBegin($_ktype191, $_vtype192, $_size190); - for ($_i194 = 0; $_i194 < $_size190; ++$_i194) + $_size199 = 0; + $_ktype200 = 0; + $_vtype201 = 0; + $xfer += $input->readMapBegin($_ktype200, $_vtype201, $_size199); + for ($_i203 = 0; $_i203 < $_size199; ++$_i203) { - $key195 = ''; - $val196 = ''; - $xfer += $input->readString($key195); - $xfer += $input->readString($val196); - $this->parameters[$key195] = $val196; + $key204 = ''; + $val205 = ''; + $xfer += $input->readString($key204); + $xfer += $input->readString($val205); + $this->parameters[$key204] = $val205; } $xfer += $input->readMapEnd(); } else { @@ -5671,9 +5730,9 @@ class Partition { { $output->writeListBegin(TType::STRING, count($this->values)); { - foreach ($this->values as $iter197) + foreach ($this->values as $iter206) { - $xfer += $output->writeString($iter197); + $xfer += $output->writeString($iter206); } } $output->writeListEnd(); @@ -5716,10 +5775,10 @@ class Partition { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { - foreach ($this->parameters as $kiter198 => $viter199) + foreach ($this->parameters as $kiter207 => $viter208) { - $xfer += $output->writeString($kiter198); - $xfer += $output->writeString($viter199); + $xfer += $output->writeString($kiter207); + $xfer += $output->writeString($viter208); } } $output->writeMapEnd(); @@ -5855,14 +5914,14 @@ class PartitionWithoutSD { case 1: if ($ftype == TType::LST) { $this->values = array(); - $_size200 = 0; - $_etype203 = 0; - $xfer += $input->readListBegin($_etype203, $_size200); - for ($_i204 = 0; $_i204 < $_size200; ++$_i204) + $_size209 = 0; + $_etype212 = 0; + $xfer += $input->readListBegin($_etype212, $_size209); + for ($_i213 = 0; $_i213 < $_size209; ++$_i213) { - $elem205 = null; - $xfer += $input->readString($elem205); - $this->values []= $elem205; + $elem214 = null; + $xfer += $input->readString($elem214); + $this->values []= $elem214; } $xfer += $input->readListEnd(); } else { @@ -5893,17 +5952,17 @@ class PartitionWithoutSD { case 5: if ($ftype == TType::MAP) { $this->parameters = array(); - $_size206 = 0; - $_ktype207 = 0; - $_vtype208 = 0; - $xfer += $input->readMapBegin($_ktype207, $_vtype208, $_size206); - for ($_i210 = 0; $_i210 < $_size206; ++$_i210) + $_size215 = 0; + $_ktype216 = 0; + $_vtype217 = 0; + $xfer += $input->readMapBegin($_ktype216, $_vtype217, $_size215); + for ($_i219 = 0; $_i219 < $_size215; ++$_i219) { - $key211 = ''; - $val212 = ''; - $xfer += $input->readString($key211); - $xfer += $input->readString($val212); - $this->parameters[$key211] = $val212; + $key220 = ''; + $val221 = ''; + $xfer += $input->readString($key220); + $xfer += $input->readString($val221); + $this->parameters[$key220] = $val221; } $xfer += $input->readMapEnd(); } else { @@ -5939,9 +5998,9 @@ class PartitionWithoutSD { { $output->writeListBegin(TType::STRING, count($this->values)); { - foreach ($this->values as $iter213) + foreach ($this->values as $iter222) { - $xfer += $output->writeString($iter213); + $xfer += $output->writeString($iter222); } } $output->writeListEnd(); @@ -5971,10 +6030,10 @@ class PartitionWithoutSD { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { - foreach ($this->parameters as $kiter214 => $viter215) + foreach ($this->parameters as $kiter223 => $viter224) { - $xfer += $output->writeString($kiter214); - $xfer += $output->writeString($viter215); + $xfer += $output->writeString($kiter223); + $xfer += $output->writeString($viter224); } } $output->writeMapEnd(); @@ -6059,15 +6118,15 @@ class PartitionSpecWithSharedSD { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size216 = 0; - $_etype219 = 0; - $xfer += $input->readListBegin($_etype219, $_size216); - for ($_i220 = 0; $_i220 < $_size216; ++$_i220) + $_size225 = 0; + $_etype228 = 0; + $xfer += $input->readListBegin($_etype228, $_size225); + for ($_i229 = 0; $_i229 < $_size225; ++$_i229) { - $elem221 = null; - $elem221 = new \metastore\PartitionWithoutSD(); - $xfer += $elem221->read($input); - $this->partitions []= $elem221; + $elem230 = null; + $elem230 = new \metastore\PartitionWithoutSD(); + $xfer += $elem230->read($input); + $this->partitions []= $elem230; } $xfer += $input->readListEnd(); } else { @@ -6103,9 +6162,9 @@ class PartitionSpecWithSharedSD { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter222) + foreach ($this->partitions as $iter231) { - $xfer += $iter222->write($output); + $xfer += $iter231->write($output); } } $output->writeListEnd(); @@ -6178,15 +6237,15 @@ class PartitionListComposingSpec { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size223 = 0; - $_etype226 = 0; - $xfer += $input->readListBegin($_etype226, $_size223); - for ($_i227 = 0; $_i227 < $_size223; ++$_i227) + $_size232 = 0; + $_etype235 = 0; + $xfer += $input->readListBegin($_etype235, $_size232); + for ($_i236 = 0; $_i236 < $_size232; ++$_i236) { - $elem228 = null; - $elem228 = new \metastore\Partition(); - $xfer += $elem228->read($input); - $this->partitions []= $elem228; + $elem237 = null; + $elem237 = new \metastore\Partition(); + $xfer += $elem237->read($input); + $this->partitions []= $elem237; } $xfer += $input->readListEnd(); } else { @@ -6214,9 +6273,9 @@ class PartitionListComposingSpec { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter229) + foreach ($this->partitions as $iter238) { - $xfer += $iter229->write($output); + $xfer += $iter238->write($output); } } $output->writeListEnd(); @@ -6618,17 +6677,17 @@ class Index { case 9: if ($ftype == TType::MAP) { $this->parameters = array(); - $_size230 = 0; - $_ktype231 = 0; - $_vtype232 = 0; - $xfer += $input->readMapBegin($_ktype231, $_vtype232, $_size230); - for ($_i234 = 0; $_i234 < $_size230; ++$_i234) + $_size239 = 0; + $_ktype240 = 0; + $_vtype241 = 0; + $xfer += $input->readMapBegin($_ktype240, $_vtype241, $_size239); + for ($_i243 = 0; $_i243 < $_size239; ++$_i243) { - $key235 = ''; - $val236 = ''; - $xfer += $input->readString($key235); - $xfer += $input->readString($val236); - $this->parameters[$key235] = $val236; + $key244 = ''; + $val245 = ''; + $xfer += $input->readString($key244); + $xfer += $input->readString($val245); + $this->parameters[$key244] = $val245; } $xfer += $input->readMapEnd(); } else { @@ -6706,10 +6765,10 @@ class Index { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { - foreach ($this->parameters as $kiter237 => $viter238) + foreach ($this->parameters as $kiter246 => $viter247) { - $xfer += $output->writeString($kiter237); - $xfer += $output->writeString($viter238); + $xfer += $output->writeString($kiter246); + $xfer += $output->writeString($viter247); } } $output->writeMapEnd(); @@ -8656,15 +8715,15 @@ class ColumnStatistics { case 2: if ($ftype == TType::LST) { $this->statsObj = array(); - $_size239 = 0; - $_etype242 = 0; - $xfer += $input->readListBegin($_etype242, $_size239); - for ($_i243 = 0; $_i243 < $_size239; ++$_i243) + $_size248 = 0; + $_etype251 = 0; + $xfer += $input->readListBegin($_etype251, $_size248); + for ($_i252 = 0; $_i252 < $_size248; ++$_i252) { - $elem244 = null; - $elem244 = new \metastore\ColumnStatisticsObj(); - $xfer += $elem244->read($input); - $this->statsObj []= $elem244; + $elem253 = null; + $elem253 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem253->read($input); + $this->statsObj []= $elem253; } $xfer += $input->readListEnd(); } else { @@ -8700,9 +8759,9 @@ class ColumnStatistics { { $output->writeListBegin(TType::STRUCT, count($this->statsObj)); { - foreach ($this->statsObj as $iter245) + foreach ($this->statsObj as $iter254) { - $xfer += $iter245->write($output); + $xfer += $iter254->write($output); } } $output->writeListEnd(); @@ -8778,15 +8837,15 @@ class AggrStats { case 1: if ($ftype == TType::LST) { $this->colStats = array(); - $_size246 = 0; - $_etype249 = 0; - $xfer += $input->readListBegin($_etype249, $_size246); - for ($_i250 = 0; $_i250 < $_size246; ++$_i250) + $_size255 = 0; + $_etype258 = 0; + $xfer += $input->readListBegin($_etype258, $_size255); + for ($_i259 = 0; $_i259 < $_size255; ++$_i259) { - $elem251 = null; - $elem251 = new \metastore\ColumnStatisticsObj(); - $xfer += $elem251->read($input); - $this->colStats []= $elem251; + $elem260 = null; + $elem260 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem260->read($input); + $this->colStats []= $elem260; } $xfer += $input->readListEnd(); } else { @@ -8821,9 +8880,9 @@ class AggrStats { { $output->writeListBegin(TType::STRUCT, count($this->colStats)); { - foreach ($this->colStats as $iter252) + foreach ($this->colStats as $iter261) { - $xfer += $iter252->write($output); + $xfer += $iter261->write($output); } } $output->writeListEnd(); @@ -8904,15 +8963,15 @@ class SetPartitionsStatsRequest { case 1: if ($ftype == TType::LST) { $this->colStats = array(); - $_size253 = 0; - $_etype256 = 0; - $xfer += $input->readListBegin($_etype256, $_size253); - for ($_i257 = 0; $_i257 < $_size253; ++$_i257) + $_size262 = 0; + $_etype265 = 0; + $xfer += $input->readListBegin($_etype265, $_size262); + for ($_i266 = 0; $_i266 < $_size262; ++$_i266) { - $elem258 = null; - $elem258 = new \metastore\ColumnStatistics(); - $xfer += $elem258->read($input); - $this->colStats []= $elem258; + $elem267 = null; + $elem267 = new \metastore\ColumnStatistics(); + $xfer += $elem267->read($input); + $this->colStats []= $elem267; } $xfer += $input->readListEnd(); } else { @@ -8947,9 +9006,9 @@ class SetPartitionsStatsRequest { { $output->writeListBegin(TType::STRUCT, count($this->colStats)); { - foreach ($this->colStats as $iter259) + foreach ($this->colStats as $iter268) { - $xfer += $iter259->write($output); + $xfer += $iter268->write($output); } } $output->writeListEnd(); @@ -9038,15 +9097,15 @@ class Schema { case 1: if ($ftype == TType::LST) { $this->fieldSchemas = array(); - $_size260 = 0; - $_etype263 = 0; - $xfer += $input->readListBegin($_etype263, $_size260); - for ($_i264 = 0; $_i264 < $_size260; ++$_i264) + $_size269 = 0; + $_etype272 = 0; + $xfer += $input->readListBegin($_etype272, $_size269); + for ($_i273 = 0; $_i273 < $_size269; ++$_i273) { - $elem265 = null; - $elem265 = new \metastore\FieldSchema(); - $xfer += $elem265->read($input); - $this->fieldSchemas []= $elem265; + $elem274 = null; + $elem274 = new \metastore\FieldSchema(); + $xfer += $elem274->read($input); + $this->fieldSchemas []= $elem274; } $xfer += $input->readListEnd(); } else { @@ -9056,17 +9115,17 @@ class Schema { case 2: if ($ftype == TType::MAP) { $this->properties = array(); - $_size266 = 0; - $_ktype267 = 0; - $_vtype268 = 0; - $xfer += $input->readMapBegin($_ktype267, $_vtype268, $_size266); - for ($_i270 = 0; $_i270 < $_size266; ++$_i270) + $_size275 = 0; + $_ktype276 = 0; + $_vtype277 = 0; + $xfer += $input->readMapBegin($_ktype276, $_vtype277, $_size275); + for ($_i279 = 0; $_i279 < $_size275; ++$_i279) { - $key271 = ''; - $val272 = ''; - $xfer += $input->readString($key271); - $xfer += $input->readString($val272); - $this->properties[$key271] = $val272; + $key280 = ''; + $val281 = ''; + $xfer += $input->readString($key280); + $xfer += $input->readString($val281); + $this->properties[$key280] = $val281; } $xfer += $input->readMapEnd(); } else { @@ -9094,9 +9153,9 @@ class Schema { { $output->writeListBegin(TType::STRUCT, count($this->fieldSchemas)); { - foreach ($this->fieldSchemas as $iter273) + foreach ($this->fieldSchemas as $iter282) { - $xfer += $iter273->write($output); + $xfer += $iter282->write($output); } } $output->writeListEnd(); @@ -9111,10 +9170,10 @@ class Schema { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); { - foreach ($this->properties as $kiter274 => $viter275) + foreach ($this->properties as $kiter283 => $viter284) { - $xfer += $output->writeString($kiter274); - $xfer += $output->writeString($viter275); + $xfer += $output->writeString($kiter283); + $xfer += $output->writeString($viter284); } } $output->writeMapEnd(); @@ -9182,17 +9241,17 @@ class EnvironmentContext { case 1: if ($ftype == TType::MAP) { $this->properties = array(); - $_size276 = 0; - $_ktype277 = 0; - $_vtype278 = 0; - $xfer += $input->readMapBegin($_ktype277, $_vtype278, $_size276); - for ($_i280 = 0; $_i280 < $_size276; ++$_i280) + $_size285 = 0; + $_ktype286 = 0; + $_vtype287 = 0; + $xfer += $input->readMapBegin($_ktype286, $_vtype287, $_size285); + for ($_i289 = 0; $_i289 < $_size285; ++$_i289) { - $key281 = ''; - $val282 = ''; - $xfer += $input->readString($key281); - $xfer += $input->readString($val282); - $this->properties[$key281] = $val282; + $key290 = ''; + $val291 = ''; + $xfer += $input->readString($key290); + $xfer += $input->readString($val291); + $this->properties[$key290] = $val291; } $xfer += $input->readMapEnd(); } else { @@ -9220,10 +9279,10 @@ class EnvironmentContext { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); { - foreach ($this->properties as $kiter283 => $viter284) + foreach ($this->properties as $kiter292 => $viter293) { - $xfer += $output->writeString($kiter283); - $xfer += $output->writeString($viter284); + $xfer += $output->writeString($kiter292); + $xfer += $output->writeString($viter293); } } $output->writeMapEnd(); @@ -9386,15 +9445,15 @@ class PrimaryKeysResponse { case 1: if ($ftype == TType::LST) { $this->primaryKeys = array(); - $_size285 = 0; - $_etype288 = 0; - $xfer += $input->readListBegin($_etype288, $_size285); - for ($_i289 = 0; $_i289 < $_size285; ++$_i289) + $_size294 = 0; + $_etype297 = 0; + $xfer += $input->readListBegin($_etype297, $_size294); + for ($_i298 = 0; $_i298 < $_size294; ++$_i298) { - $elem290 = null; - $elem290 = new \metastore\SQLPrimaryKey(); - $xfer += $elem290->read($input); - $this->primaryKeys []= $elem290; + $elem299 = null; + $elem299 = new \metastore\SQLPrimaryKey(); + $xfer += $elem299->read($input); + $this->primaryKeys []= $elem299; } $xfer += $input->readListEnd(); } else { @@ -9422,9 +9481,9 @@ class PrimaryKeysResponse { { $output->writeListBegin(TType::STRUCT, count($this->primaryKeys)); { - foreach ($this->primaryKeys as $iter291) + foreach ($this->primaryKeys as $iter300) { - $xfer += $iter291->write($output); + $xfer += $iter300->write($output); } } $output->writeListEnd(); @@ -9633,15 +9692,15 @@ class ForeignKeysResponse { case 1: if ($ftype == TType::LST) { $this->foreignKeys = array(); - $_size292 = 0; - $_etype295 = 0; - $xfer += $input->readListBegin($_etype295, $_size292); - for ($_i296 = 0; $_i296 < $_size292; ++$_i296) + $_size301 = 0; + $_etype304 = 0; + $xfer += $input->readListBegin($_etype304, $_size301); + for ($_i305 = 0; $_i305 < $_size301; ++$_i305) { - $elem297 = null; - $elem297 = new \metastore\SQLForeignKey(); - $xfer += $elem297->read($input); - $this->foreignKeys []= $elem297; + $elem306 = null; + $elem306 = new \metastore\SQLForeignKey(); + $xfer += $elem306->read($input); + $this->foreignKeys []= $elem306; } $xfer += $input->readListEnd(); } else { @@ -9669,9 +9728,9 @@ class ForeignKeysResponse { { $output->writeListBegin(TType::STRUCT, count($this->foreignKeys)); { - foreach ($this->foreignKeys as $iter298) + foreach ($this->foreignKeys as $iter307) { - $xfer += $iter298->write($output); + $xfer += $iter307->write($output); } } $output->writeListEnd(); @@ -9834,15 +9893,15 @@ class UniqueConstraintsResponse { case 1: if ($ftype == TType::LST) { $this->uniqueConstraints = array(); - $_size299 = 0; - $_etype302 = 0; - $xfer += $input->readListBegin($_etype302, $_size299); - for ($_i303 = 0; $_i303 < $_size299; ++$_i303) + $_size308 = 0; + $_etype311 = 0; + $xfer += $input->readListBegin($_etype311, $_size308); + for ($_i312 = 0; $_i312 < $_size308; ++$_i312) { - $elem304 = null; - $elem304 = new \metastore\SQLUniqueConstraint(); - $xfer += $elem304->read($input); - $this->uniqueConstraints []= $elem304; + $elem313 = null; + $elem313 = new \metastore\SQLUniqueConstraint(); + $xfer += $elem313->read($input); + $this->uniqueConstraints []= $elem313; } $xfer += $input->readListEnd(); } else { @@ -9870,9 +9929,9 @@ class UniqueConstraintsResponse { { $output->writeListBegin(TType::STRUCT, count($this->uniqueConstraints)); { - foreach ($this->uniqueConstraints as $iter305) + foreach ($this->uniqueConstraints as $iter314) { - $xfer += $iter305->write($output); + $xfer += $iter314->write($output); } } $output->writeListEnd(); @@ -10035,15 +10094,15 @@ class NotNullConstraintsResponse { case 1: if ($ftype == TType::LST) { $this->notNullConstraints = array(); - $_size306 = 0; - $_etype309 = 0; - $xfer += $input->readListBegin($_etype309, $_size306); - for ($_i310 = 0; $_i310 < $_size306; ++$_i310) + $_size315 = 0; + $_etype318 = 0; + $xfer += $input->readListBegin($_etype318, $_size315); + for ($_i319 = 0; $_i319 < $_size315; ++$_i319) { - $elem311 = null; - $elem311 = new \metastore\SQLNotNullConstraint(); - $xfer += $elem311->read($input); - $this->notNullConstraints []= $elem311; + $elem320 = null; + $elem320 = new \metastore\SQLNotNullConstraint(); + $xfer += $elem320->read($input); + $this->notNullConstraints []= $elem320; } $xfer += $input->readListEnd(); } else { @@ -10071,9 +10130,9 @@ class NotNullConstraintsResponse { { $output->writeListBegin(TType::STRUCT, count($this->notNullConstraints)); { - foreach ($this->notNullConstraints as $iter312) + foreach ($this->notNullConstraints as $iter321) { - $xfer += $iter312->write($output); + $xfer += $iter321->write($output); } } $output->writeListEnd(); @@ -10259,15 +10318,15 @@ class AddPrimaryKeyRequest { case 1: if ($ftype == TType::LST) { $this->primaryKeyCols = array(); - $_size313 = 0; - $_etype316 = 0; - $xfer += $input->readListBegin($_etype316, $_size313); - for ($_i317 = 0; $_i317 < $_size313; ++$_i317) + $_size322 = 0; + $_etype325 = 0; + $xfer += $input->readListBegin($_etype325, $_size322); + for ($_i326 = 0; $_i326 < $_size322; ++$_i326) { - $elem318 = null; - $elem318 = new \metastore\SQLPrimaryKey(); - $xfer += $elem318->read($input); - $this->primaryKeyCols []= $elem318; + $elem327 = null; + $elem327 = new \metastore\SQLPrimaryKey(); + $xfer += $elem327->read($input); + $this->primaryKeyCols []= $elem327; } $xfer += $input->readListEnd(); } else { @@ -10295,9 +10354,9 @@ class AddPrimaryKeyRequest { { $output->writeListBegin(TType::STRUCT, count($this->primaryKeyCols)); { - foreach ($this->primaryKeyCols as $iter319) + foreach ($this->primaryKeyCols as $iter328) { - $xfer += $iter319->write($output); + $xfer += $iter328->write($output); } } $output->writeListEnd(); @@ -10362,15 +10421,15 @@ class AddForeignKeyRequest { case 1: if ($ftype == TType::LST) { $this->foreignKeyCols = array(); - $_size320 = 0; - $_etype323 = 0; - $xfer += $input->readListBegin($_etype323, $_size320); - for ($_i324 = 0; $_i324 < $_size320; ++$_i324) + $_size329 = 0; + $_etype332 = 0; + $xfer += $input->readListBegin($_etype332, $_size329); + for ($_i333 = 0; $_i333 < $_size329; ++$_i333) { - $elem325 = null; - $elem325 = new \metastore\SQLForeignKey(); - $xfer += $elem325->read($input); - $this->foreignKeyCols []= $elem325; + $elem334 = null; + $elem334 = new \metastore\SQLForeignKey(); + $xfer += $elem334->read($input); + $this->foreignKeyCols []= $elem334; } $xfer += $input->readListEnd(); } else { @@ -10398,9 +10457,9 @@ class AddForeignKeyRequest { { $output->writeListBegin(TType::STRUCT, count($this->foreignKeyCols)); { - foreach ($this->foreignKeyCols as $iter326) + foreach ($this->foreignKeyCols as $iter335) { - $xfer += $iter326->write($output); + $xfer += $iter335->write($output); } } $output->writeListEnd(); @@ -10465,15 +10524,15 @@ class AddUniqueConstraintRequest { case 1: if ($ftype == TType::LST) { $this->uniqueConstraintCols = array(); - $_size327 = 0; - $_etype330 = 0; - $xfer += $input->readListBegin($_etype330, $_size327); - for ($_i331 = 0; $_i331 < $_size327; ++$_i331) + $_size336 = 0; + $_etype339 = 0; + $xfer += $input->readListBegin($_etype339, $_size336); + for ($_i340 = 0; $_i340 < $_size336; ++$_i340) { - $elem332 = null; - $elem332 = new \metastore\SQLUniqueConstraint(); - $xfer += $elem332->read($input); - $this->uniqueConstraintCols []= $elem332; + $elem341 = null; + $elem341 = new \metastore\SQLUniqueConstraint(); + $xfer += $elem341->read($input); + $this->uniqueConstraintCols []= $elem341; } $xfer += $input->readListEnd(); } else { @@ -10501,9 +10560,9 @@ class AddUniqueConstraintRequest { { $output->writeListBegin(TType::STRUCT, count($this->uniqueConstraintCols)); { - foreach ($this->uniqueConstraintCols as $iter333) + foreach ($this->uniqueConstraintCols as $iter342) { - $xfer += $iter333->write($output); + $xfer += $iter342->write($output); } } $output->writeListEnd(); @@ -10568,15 +10627,15 @@ class AddNotNullConstraintRequest { case 1: if ($ftype == TType::LST) { $this->notNullConstraintCols = array(); - $_size334 = 0; - $_etype337 = 0; - $xfer += $input->readListBegin($_etype337, $_size334); - for ($_i338 = 0; $_i338 < $_size334; ++$_i338) + $_size343 = 0; + $_etype346 = 0; + $xfer += $input->readListBegin($_etype346, $_size343); + for ($_i347 = 0; $_i347 < $_size343; ++$_i347) { - $elem339 = null; - $elem339 = new \metastore\SQLNotNullConstraint(); - $xfer += $elem339->read($input); - $this->notNullConstraintCols []= $elem339; + $elem348 = null; + $elem348 = new \metastore\SQLNotNullConstraint(); + $xfer += $elem348->read($input); + $this->notNullConstraintCols []= $elem348; } $xfer += $input->readListEnd(); } else { @@ -10604,9 +10663,9 @@ class AddNotNullConstraintRequest { { $output->writeListBegin(TType::STRUCT, count($this->notNullConstraintCols)); { - foreach ($this->notNullConstraintCols as $iter340) + foreach ($this->notNullConstraintCols as $iter349) { - $xfer += $iter340->write($output); + $xfer += $iter349->write($output); } } $output->writeListEnd(); @@ -10682,15 +10741,15 @@ class PartitionsByExprResult { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size341 = 0; - $_etype344 = 0; - $xfer += $input->readListBegin($_etype344, $_size341); - for ($_i345 = 0; $_i345 < $_size341; ++$_i345) + $_size350 = 0; + $_etype353 = 0; + $xfer += $input->readListBegin($_etype353, $_size350); + for ($_i354 = 0; $_i354 < $_size350; ++$_i354) { - $elem346 = null; - $elem346 = new \metastore\Partition(); - $xfer += $elem346->read($input); - $this->partitions []= $elem346; + $elem355 = null; + $elem355 = new \metastore\Partition(); + $xfer += $elem355->read($input); + $this->partitions []= $elem355; } $xfer += $input->readListEnd(); } else { @@ -10725,9 +10784,9 @@ class PartitionsByExprResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter347) + foreach ($this->partitions as $iter356) { - $xfer += $iter347->write($output); + $xfer += $iter356->write($output); } } $output->writeListEnd(); @@ -10964,15 +11023,15 @@ class TableStatsResult { case 1: if ($ftype == TType::LST) { $this->tableStats = array(); - $_size348 = 0; - $_etype351 = 0; - $xfer += $input->readListBegin($_etype351, $_size348); - for ($_i352 = 0; $_i352 < $_size348; ++$_i352) + $_size357 = 0; + $_etype360 = 0; + $xfer += $input->readListBegin($_etype360, $_size357); + for ($_i361 = 0; $_i361 < $_size357; ++$_i361) { - $elem353 = null; - $elem353 = new \metastore\ColumnStatisticsObj(); - $xfer += $elem353->read($input); - $this->tableStats []= $elem353; + $elem362 = null; + $elem362 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem362->read($input); + $this->tableStats []= $elem362; } $xfer += $input->readListEnd(); } else { @@ -11000,9 +11059,9 @@ class TableStatsResult { { $output->writeListBegin(TType::STRUCT, count($this->tableStats)); { - foreach ($this->tableStats as $iter354) + foreach ($this->tableStats as $iter363) { - $xfer += $iter354->write($output); + $xfer += $iter363->write($output); } } $output->writeListEnd(); @@ -11075,28 +11134,28 @@ class PartitionsStatsResult { case 1: if ($ftype == TType::MAP) { $this->partStats = array(); - $_size355 = 0; - $_ktype356 = 0; - $_vtype357 = 0; - $xfer += $input->readMapBegin($_ktype356, $_vtype357, $_size355); - for ($_i359 = 0; $_i359 < $_size355; ++$_i359) + $_size364 = 0; + $_ktype365 = 0; + $_vtype366 = 0; + $xfer += $input->readMapBegin($_ktype365, $_vtype366, $_size364); + for ($_i368 = 0; $_i368 < $_size364; ++$_i368) { - $key360 = ''; - $val361 = array(); - $xfer += $input->readString($key360); - $val361 = array(); - $_size362 = 0; - $_etype365 = 0; - $xfer += $input->readListBegin($_etype365, $_size362); - for ($_i366 = 0; $_i366 < $_size362; ++$_i366) + $key369 = ''; + $val370 = array(); + $xfer += $input->readString($key369); + $val370 = array(); + $_size371 = 0; + $_etype374 = 0; + $xfer += $input->readListBegin($_etype374, $_size371); + for ($_i375 = 0; $_i375 < $_size371; ++$_i375) { - $elem367 = null; - $elem367 = new \metastore\ColumnStatisticsObj(); - $xfer += $elem367->read($input); - $val361 []= $elem367; + $elem376 = null; + $elem376 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem376->read($input); + $val370 []= $elem376; } $xfer += $input->readListEnd(); - $this->partStats[$key360] = $val361; + $this->partStats[$key369] = $val370; } $xfer += $input->readMapEnd(); } else { @@ -11124,15 +11183,15 @@ class PartitionsStatsResult { { $output->writeMapBegin(TType::STRING, TType::LST, count($this->partStats)); { - foreach ($this->partStats as $kiter368 => $viter369) + foreach ($this->partStats as $kiter377 => $viter378) { - $xfer += $output->writeString($kiter368); + $xfer += $output->writeString($kiter377); { - $output->writeListBegin(TType::STRUCT, count($viter369)); + $output->writeListBegin(TType::STRUCT, count($viter378)); { - foreach ($viter369 as $iter370) + foreach ($viter378 as $iter379) { - $xfer += $iter370->write($output); + $xfer += $iter379->write($output); } } $output->writeListEnd(); @@ -11236,14 +11295,14 @@ class TableStatsRequest { case 3: if ($ftype == TType::LST) { $this->colNames = array(); - $_size371 = 0; - $_etype374 = 0; - $xfer += $input->readListBegin($_etype374, $_size371); - for ($_i375 = 0; $_i375 < $_size371; ++$_i375) + $_size380 = 0; + $_etype383 = 0; + $xfer += $input->readListBegin($_etype383, $_size380); + for ($_i384 = 0; $_i384 < $_size380; ++$_i384) { - $elem376 = null; - $xfer += $input->readString($elem376); - $this->colNames []= $elem376; + $elem385 = null; + $xfer += $input->readString($elem385); + $this->colNames []= $elem385; } $xfer += $input->readListEnd(); } else { @@ -11281,9 +11340,9 @@ class TableStatsRequest { { $output->writeListBegin(TType::STRING, count($this->colNames)); { - foreach ($this->colNames as $iter377) + foreach ($this->colNames as $iter386) { - $xfer += $output->writeString($iter377); + $xfer += $output->writeString($iter386); } } $output->writeListEnd(); @@ -11398,14 +11457,14 @@ class PartitionsStatsRequest { case 3: if ($ftype == TType::LST) { $this->colNames = array(); - $_size378 = 0; - $_etype381 = 0; - $xfer += $input->readListBegin($_etype381, $_size378); - for ($_i382 = 0; $_i382 < $_size378; ++$_i382) + $_size387 = 0; + $_etype390 = 0; + $xfer += $input->readListBegin($_etype390, $_size387); + for ($_i391 = 0; $_i391 < $_size387; ++$_i391) { - $elem383 = null; - $xfer += $input->readString($elem383); - $this->colNames []= $elem383; + $elem392 = null; + $xfer += $input->readString($elem392); + $this->colNames []= $elem392; } $xfer += $input->readListEnd(); } else { @@ -11415,14 +11474,14 @@ class PartitionsStatsRequest { case 4: if ($ftype == TType::LST) { $this->partNames = array(); - $_size384 = 0; - $_etype387 = 0; - $xfer += $input->readListBegin($_etype387, $_size384); - for ($_i388 = 0; $_i388 < $_size384; ++$_i388) + $_size393 = 0; + $_etype396 = 0; + $xfer += $input->readListBegin($_etype396, $_size393); + for ($_i397 = 0; $_i397 < $_size393; ++$_i397) { - $elem389 = null; - $xfer += $input->readString($elem389); - $this->partNames []= $elem389; + $elem398 = null; + $xfer += $input->readString($elem398); + $this->partNames []= $elem398; } $xfer += $input->readListEnd(); } else { @@ -11460,9 +11519,9 @@ class PartitionsStatsRequest { { $output->writeListBegin(TType::STRING, count($this->colNames)); { - foreach ($this->colNames as $iter390) + foreach ($this->colNames as $iter399) { - $xfer += $output->writeString($iter390); + $xfer += $output->writeString($iter399); } } $output->writeListEnd(); @@ -11477,9 +11536,9 @@ class PartitionsStatsRequest { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter391) + foreach ($this->partNames as $iter400) { - $xfer += $output->writeString($iter391); + $xfer += $output->writeString($iter400); } } $output->writeListEnd(); @@ -11544,15 +11603,15 @@ class AddPartitionsResult { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size392 = 0; - $_etype395 = 0; - $xfer += $input->readListBegin($_etype395, $_size392); - for ($_i396 = 0; $_i396 < $_size392; ++$_i396) + $_size401 = 0; + $_etype404 = 0; + $xfer += $input->readListBegin($_etype404, $_size401); + for ($_i405 = 0; $_i405 < $_size401; ++$_i405) { - $elem397 = null; - $elem397 = new \metastore\Partition(); - $xfer += $elem397->read($input); - $this->partitions []= $elem397; + $elem406 = null; + $elem406 = new \metastore\Partition(); + $xfer += $elem406->read($input); + $this->partitions []= $elem406; } $xfer += $input->readListEnd(); } else { @@ -11580,9 +11639,9 @@ class AddPartitionsResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter398) + foreach ($this->partitions as $iter407) { - $xfer += $iter398->write($output); + $xfer += $iter407->write($output); } } $output->writeListEnd(); @@ -11705,15 +11764,15 @@ class AddPartitionsRequest { case 3: if ($ftype == TType::LST) { $this->parts = array(); - $_size399 = 0; - $_etype402 = 0; - $xfer += $input->readListBegin($_etype402, $_size399); - for ($_i403 = 0; $_i403 < $_size399; ++$_i403) + $_size408 = 0; + $_etype411 = 0; + $xfer += $input->readListBegin($_etype411, $_size408); + for ($_i412 = 0; $_i412 < $_size408; ++$_i412) { - $elem404 = null; - $elem404 = new \metastore\Partition(); - $xfer += $elem404->read($input); - $this->parts []= $elem404; + $elem413 = null; + $elem413 = new \metastore\Partition(); + $xfer += $elem413->read($input); + $this->parts []= $elem413; } $xfer += $input->readListEnd(); } else { @@ -11765,9 +11824,9 @@ class AddPartitionsRequest { { $output->writeListBegin(TType::STRUCT, count($this->parts)); { - foreach ($this->parts as $iter405) + foreach ($this->parts as $iter414) { - $xfer += $iter405->write($output); + $xfer += $iter414->write($output); } } $output->writeListEnd(); @@ -11842,15 +11901,15 @@ class DropPartitionsResult { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size406 = 0; - $_etype409 = 0; - $xfer += $input->readListBegin($_etype409, $_size406); - for ($_i410 = 0; $_i410 < $_size406; ++$_i410) + $_size415 = 0; + $_etype418 = 0; + $xfer += $input->readListBegin($_etype418, $_size415); + for ($_i419 = 0; $_i419 < $_size415; ++$_i419) { - $elem411 = null; - $elem411 = new \metastore\Partition(); - $xfer += $elem411->read($input); - $this->partitions []= $elem411; + $elem420 = null; + $elem420 = new \metastore\Partition(); + $xfer += $elem420->read($input); + $this->partitions []= $elem420; } $xfer += $input->readListEnd(); } else { @@ -11878,9 +11937,9 @@ class DropPartitionsResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter412) + foreach ($this->partitions as $iter421) { - $xfer += $iter412->write($output); + $xfer += $iter421->write($output); } } $output->writeListEnd(); @@ -12058,14 +12117,14 @@ class RequestPartsSpec { case 1: if ($ftype == TType::LST) { $this->names = array(); - $_size413 = 0; - $_etype416 = 0; - $xfer += $input->readListBegin($_etype416, $_size413); - for ($_i417 = 0; $_i417 < $_size413; ++$_i417) + $_size422 = 0; + $_etype425 = 0; + $xfer += $input->readListBegin($_etype425, $_size422); + for ($_i426 = 0; $_i426 < $_size422; ++$_i426) { - $elem418 = null; - $xfer += $input->readString($elem418); - $this->names []= $elem418; + $elem427 = null; + $xfer += $input->readString($elem427); + $this->names []= $elem427; } $xfer += $input->readListEnd(); } else { @@ -12075,15 +12134,15 @@ class RequestPartsSpec { case 2: if ($ftype == TType::LST) { $this->exprs = array(); - $_size419 = 0; - $_etype422 = 0; - $xfer += $input->readListBegin($_etype422, $_size419); - for ($_i423 = 0; $_i423 < $_size419; ++$_i423) + $_size428 = 0; + $_etype431 = 0; + $xfer += $input->readListBegin($_etype431, $_size428); + for ($_i432 = 0; $_i432 < $_size428; ++$_i432) { - $elem424 = null; - $elem424 = new \metastore\DropPartitionsExpr(); - $xfer += $elem424->read($input); - $this->exprs []= $elem424; + $elem433 = null; + $elem433 = new \metastore\DropPartitionsExpr(); + $xfer += $elem433->read($input); + $this->exprs []= $elem433; } $xfer += $input->readListEnd(); } else { @@ -12111,9 +12170,9 @@ class RequestPartsSpec { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter425) + foreach ($this->names as $iter434) { - $xfer += $output->writeString($iter425); + $xfer += $output->writeString($iter434); } } $output->writeListEnd(); @@ -12128,9 +12187,9 @@ class RequestPartsSpec { { $output->writeListBegin(TType::STRUCT, count($this->exprs)); { - foreach ($this->exprs as $iter426) + foreach ($this->exprs as $iter435) { - $xfer += $iter426->write($output); + $xfer += $iter435->write($output); } } $output->writeListEnd(); @@ -12537,15 +12596,15 @@ class PartitionValuesRequest { case 3: if ($ftype == TType::LST) { $this->partitionKeys = array(); - $_size427 = 0; - $_etype430 = 0; - $xfer += $input->readListBegin($_etype430, $_size427); - for ($_i431 = 0; $_i431 < $_size427; ++$_i431) + $_size436 = 0; + $_etype439 = 0; + $xfer += $input->readListBegin($_etype439, $_size436); + for ($_i440 = 0; $_i440 < $_size436; ++$_i440) { - $elem432 = null; - $elem432 = new \metastore\FieldSchema(); - $xfer += $elem432->read($input); - $this->partitionKeys []= $elem432; + $elem441 = null; + $elem441 = new \metastore\FieldSchema(); + $xfer += $elem441->read($input); + $this->partitionKeys []= $elem441; } $xfer += $input->readListEnd(); } else { @@ -12569,15 +12628,15 @@ class PartitionValuesRequest { case 6: if ($ftype == TType::LST) { $this->partitionOrder = array(); - $_size433 = 0; - $_etype436 = 0; - $xfer += $input->readListBegin($_etype436, $_size433); - for ($_i437 = 0; $_i437 < $_size433; ++$_i437) + $_size442 = 0; + $_etype445 = 0; + $xfer += $input->readListBegin($_etype445, $_size442); + for ($_i446 = 0; $_i446 < $_size442; ++$_i446) { - $elem438 = null; - $elem438 = new \metastore\FieldSchema(); - $xfer += $elem438->read($input); - $this->partitionOrder []= $elem438; + $elem447 = null; + $elem447 = new \metastore\FieldSchema(); + $xfer += $elem447->read($input); + $this->partitionOrder []= $elem447; } $xfer += $input->readListEnd(); } else { @@ -12629,9 +12688,9 @@ class PartitionValuesRequest { { $output->writeListBegin(TType::STRUCT, count($this->partitionKeys)); { - foreach ($this->partitionKeys as $iter439) + foreach ($this->partitionKeys as $iter448) { - $xfer += $iter439->write($output); + $xfer += $iter448->write($output); } } $output->writeListEnd(); @@ -12656,9 +12715,9 @@ class PartitionValuesRequest { { $output->writeListBegin(TType::STRUCT, count($this->partitionOrder)); { - foreach ($this->partitionOrder as $iter440) + foreach ($this->partitionOrder as $iter449) { - $xfer += $iter440->write($output); + $xfer += $iter449->write($output); } } $output->writeListEnd(); @@ -12732,14 +12791,14 @@ class PartitionValuesRow { case 1: if ($ftype == TType::LST) { $this->row = array(); - $_size441 = 0; - $_etype444 = 0; - $xfer += $input->readListBegin($_etype444, $_size441); - for ($_i445 = 0; $_i445 < $_size441; ++$_i445) + $_size450 = 0; + $_etype453 = 0; + $xfer += $input->readListBegin($_etype453, $_size450); + for ($_i454 = 0; $_i454 < $_size450; ++$_i454) { - $elem446 = null; - $xfer += $input->readString($elem446); - $this->row []= $elem446; + $elem455 = null; + $xfer += $input->readString($elem455); + $this->row []= $elem455; } $xfer += $input->readListEnd(); } else { @@ -12767,9 +12826,9 @@ class PartitionValuesRow { { $output->writeListBegin(TType::STRING, count($this->row)); { - foreach ($this->row as $iter447) + foreach ($this->row as $iter456) { - $xfer += $output->writeString($iter447); + $xfer += $output->writeString($iter456); } } $output->writeListEnd(); @@ -12834,15 +12893,15 @@ class PartitionValuesResponse { case 1: if ($ftype == TType::LST) { $this->partitionValues = array(); - $_size448 = 0; - $_etype451 = 0; - $xfer += $input->readListBegin($_etype451, $_size448); - for ($_i452 = 0; $_i452 < $_size448; ++$_i452) + $_size457 = 0; + $_etype460 = 0; + $xfer += $input->readListBegin($_etype460, $_size457); + for ($_i461 = 0; $_i461 < $_size457; ++$_i461) { - $elem453 = null; - $elem453 = new \metastore\PartitionValuesRow(); - $xfer += $elem453->read($input); - $this->partitionValues []= $elem453; + $elem462 = null; + $elem462 = new \metastore\PartitionValuesRow(); + $xfer += $elem462->read($input); + $this->partitionValues []= $elem462; } $xfer += $input->readListEnd(); } else { @@ -12870,9 +12929,9 @@ class PartitionValuesResponse { { $output->writeListBegin(TType::STRUCT, count($this->partitionValues)); { - foreach ($this->partitionValues as $iter454) + foreach ($this->partitionValues as $iter463) { - $xfer += $iter454->write($output); + $xfer += $iter463->write($output); } } $output->writeListEnd(); @@ -13161,15 +13220,15 @@ class Function { case 8: if ($ftype == TType::LST) { $this->resourceUris = array(); - $_size455 = 0; - $_etype458 = 0; - $xfer += $input->readListBegin($_etype458, $_size455); - for ($_i459 = 0; $_i459 < $_size455; ++$_i459) + $_size464 = 0; + $_etype467 = 0; + $xfer += $input->readListBegin($_etype467, $_size464); + for ($_i468 = 0; $_i468 < $_size464; ++$_i468) { - $elem460 = null; - $elem460 = new \metastore\ResourceUri(); - $xfer += $elem460->read($input); - $this->resourceUris []= $elem460; + $elem469 = null; + $elem469 = new \metastore\ResourceUri(); + $xfer += $elem469->read($input); + $this->resourceUris []= $elem469; } $xfer += $input->readListEnd(); } else { @@ -13232,9 +13291,9 @@ class Function { { $output->writeListBegin(TType::STRUCT, count($this->resourceUris)); { - foreach ($this->resourceUris as $iter461) + foreach ($this->resourceUris as $iter470) { - $xfer += $iter461->write($output); + $xfer += $iter470->write($output); } } $output->writeListEnd(); @@ -13576,15 +13635,15 @@ class GetOpenTxnsInfoResponse { case 2: if ($ftype == TType::LST) { $this->open_txns = array(); - $_size462 = 0; - $_etype465 = 0; - $xfer += $input->readListBegin($_etype465, $_size462); - for ($_i466 = 0; $_i466 < $_size462; ++$_i466) + $_size471 = 0; + $_etype474 = 0; + $xfer += $input->readListBegin($_etype474, $_size471); + for ($_i475 = 0; $_i475 < $_size471; ++$_i475) { - $elem467 = null; - $elem467 = new \metastore\TxnInfo(); - $xfer += $elem467->read($input); - $this->open_txns []= $elem467; + $elem476 = null; + $elem476 = new \metastore\TxnInfo(); + $xfer += $elem476->read($input); + $this->open_txns []= $elem476; } $xfer += $input->readListEnd(); } else { @@ -13617,9 +13676,9 @@ class GetOpenTxnsInfoResponse { { $output->writeListBegin(TType::STRUCT, count($this->open_txns)); { - foreach ($this->open_txns as $iter468) + foreach ($this->open_txns as $iter477) { - $xfer += $iter468->write($output); + $xfer += $iter477->write($output); } } $output->writeListEnd(); @@ -13723,14 +13782,14 @@ class GetOpenTxnsResponse { case 2: if ($ftype == TType::LST) { $this->open_txns = array(); - $_size469 = 0; - $_etype472 = 0; - $xfer += $input->readListBegin($_etype472, $_size469); - for ($_i473 = 0; $_i473 < $_size469; ++$_i473) + $_size478 = 0; + $_etype481 = 0; + $xfer += $input->readListBegin($_etype481, $_size478); + for ($_i482 = 0; $_i482 < $_size478; ++$_i482) { - $elem474 = null; - $xfer += $input->readI64($elem474); - $this->open_txns []= $elem474; + $elem483 = null; + $xfer += $input->readI64($elem483); + $this->open_txns []= $elem483; } $xfer += $input->readListEnd(); } else { @@ -13777,9 +13836,9 @@ class GetOpenTxnsResponse { { $output->writeListBegin(TType::I64, count($this->open_txns)); { - foreach ($this->open_txns as $iter475) + foreach ($this->open_txns as $iter484) { - $xfer += $output->writeI64($iter475); + $xfer += $output->writeI64($iter484); } } $output->writeListEnd(); @@ -13997,14 +14056,14 @@ class OpenTxnsResponse { case 1: if ($ftype == TType::LST) { $this->txn_ids = array(); - $_size476 = 0; - $_etype479 = 0; - $xfer += $input->readListBegin($_etype479, $_size476); - for ($_i480 = 0; $_i480 < $_size476; ++$_i480) + $_size485 = 0; + $_etype488 = 0; + $xfer += $input->readListBegin($_etype488, $_size485); + for ($_i489 = 0; $_i489 < $_size485; ++$_i489) { - $elem481 = null; - $xfer += $input->readI64($elem481); - $this->txn_ids []= $elem481; + $elem490 = null; + $xfer += $input->readI64($elem490); + $this->txn_ids []= $elem490; } $xfer += $input->readListEnd(); } else { @@ -14032,9 +14091,9 @@ class OpenTxnsResponse { { $output->writeListBegin(TType::I64, count($this->txn_ids)); { - foreach ($this->txn_ids as $iter482) + foreach ($this->txn_ids as $iter491) { - $xfer += $output->writeI64($iter482); + $xfer += $output->writeI64($iter491); } } $output->writeListEnd(); @@ -14173,14 +14232,14 @@ class AbortTxnsRequest { case 1: if ($ftype == TType::LST) { $this->txn_ids = array(); - $_size483 = 0; - $_etype486 = 0; - $xfer += $input->readListBegin($_etype486, $_size483); - for ($_i487 = 0; $_i487 < $_size483; ++$_i487) + $_size492 = 0; + $_etype495 = 0; + $xfer += $input->readListBegin($_etype495, $_size492); + for ($_i496 = 0; $_i496 < $_size492; ++$_i496) { - $elem488 = null; - $xfer += $input->readI64($elem488); - $this->txn_ids []= $elem488; + $elem497 = null; + $xfer += $input->readI64($elem497); + $this->txn_ids []= $elem497; } $xfer += $input->readListEnd(); } else { @@ -14208,9 +14267,9 @@ class AbortTxnsRequest { { $output->writeListBegin(TType::I64, count($this->txn_ids)); { - foreach ($this->txn_ids as $iter489) + foreach ($this->txn_ids as $iter498) { - $xfer += $output->writeI64($iter489); + $xfer += $output->writeI64($iter498); } } $output->writeListEnd(); @@ -14630,15 +14689,15 @@ class LockRequest { case 1: if ($ftype == TType::LST) { $this->component = array(); - $_size490 = 0; - $_etype493 = 0; - $xfer += $input->readListBegin($_etype493, $_size490); - for ($_i494 = 0; $_i494 < $_size490; ++$_i494) + $_size499 = 0; + $_etype502 = 0; + $xfer += $input->readListBegin($_etype502, $_size499); + for ($_i503 = 0; $_i503 < $_size499; ++$_i503) { - $elem495 = null; - $elem495 = new \metastore\LockComponent(); - $xfer += $elem495->read($input); - $this->component []= $elem495; + $elem504 = null; + $elem504 = new \metastore\LockComponent(); + $xfer += $elem504->read($input); + $this->component []= $elem504; } $xfer += $input->readListEnd(); } else { @@ -14694,9 +14753,9 @@ class LockRequest { { $output->writeListBegin(TType::STRUCT, count($this->component)); { - foreach ($this->component as $iter496) + foreach ($this->component as $iter505) { - $xfer += $iter496->write($output); + $xfer += $iter505->write($output); } } $output->writeListEnd(); @@ -15639,15 +15698,15 @@ class ShowLocksResponse { case 1: if ($ftype == TType::LST) { $this->locks = array(); - $_size497 = 0; - $_etype500 = 0; - $xfer += $input->readListBegin($_etype500, $_size497); - for ($_i501 = 0; $_i501 < $_size497; ++$_i501) + $_size506 = 0; + $_etype509 = 0; + $xfer += $input->readListBegin($_etype509, $_size506); + for ($_i510 = 0; $_i510 < $_size506; ++$_i510) { - $elem502 = null; - $elem502 = new \metastore\ShowLocksResponseElement(); - $xfer += $elem502->read($input); - $this->locks []= $elem502; + $elem511 = null; + $elem511 = new \metastore\ShowLocksResponseElement(); + $xfer += $elem511->read($input); + $this->locks []= $elem511; } $xfer += $input->readListEnd(); } else { @@ -15675,9 +15734,9 @@ class ShowLocksResponse { { $output->writeListBegin(TType::STRUCT, count($this->locks)); { - foreach ($this->locks as $iter503) + foreach ($this->locks as $iter512) { - $xfer += $iter503->write($output); + $xfer += $iter512->write($output); } } $output->writeListEnd(); @@ -15952,17 +16011,17 @@ class HeartbeatTxnRangeResponse { case 1: if ($ftype == TType::SET) { $this->aborted = array(); - $_size504 = 0; - $_etype507 = 0; - $xfer += $input->readSetBegin($_etype507, $_size504); - for ($_i508 = 0; $_i508 < $_size504; ++$_i508) + $_size513 = 0; + $_etype516 = 0; + $xfer += $input->readSetBegin($_etype516, $_size513); + for ($_i517 = 0; $_i517 < $_size513; ++$_i517) { - $elem509 = null; - $xfer += $input->readI64($elem509); - if (is_scalar($elem509)) { - $this->aborted[$elem509] = true; + $elem518 = null; + $xfer += $input->readI64($elem518); + if (is_scalar($elem518)) { + $this->aborted[$elem518] = true; } else { - $this->aborted []= $elem509; + $this->aborted []= $elem518; } } $xfer += $input->readSetEnd(); @@ -15973,17 +16032,17 @@ class HeartbeatTxnRangeResponse { case 2: if ($ftype == TType::SET) { $this->nosuch = array(); - $_size510 = 0; - $_etype513 = 0; - $xfer += $input->readSetBegin($_etype513, $_size510); - for ($_i514 = 0; $_i514 < $_size510; ++$_i514) + $_size519 = 0; + $_etype522 = 0; + $xfer += $input->readSetBegin($_etype522, $_size519); + for ($_i523 = 0; $_i523 < $_size519; ++$_i523) { - $elem515 = null; - $xfer += $input->readI64($elem515); - if (is_scalar($elem515)) { - $this->nosuch[$elem515] = true; + $elem524 = null; + $xfer += $input->readI64($elem524); + if (is_scalar($elem524)) { + $this->nosuch[$elem524] = true; } else { - $this->nosuch []= $elem515; + $this->nosuch []= $elem524; } } $xfer += $input->readSetEnd(); @@ -16012,12 +16071,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->aborted)); { - foreach ($this->aborted as $iter516 => $iter517) + foreach ($this->aborted as $iter525 => $iter526) { - if (is_scalar($iter517)) { - $xfer += $output->writeI64($iter516); + if (is_scalar($iter526)) { + $xfer += $output->writeI64($iter525); } else { - $xfer += $output->writeI64($iter517); + $xfer += $output->writeI64($iter526); } } } @@ -16033,12 +16092,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->nosuch)); { - foreach ($this->nosuch as $iter518 => $iter519) + foreach ($this->nosuch as $iter527 => $iter528) { - if (is_scalar($iter519)) { - $xfer += $output->writeI64($iter518); + if (is_scalar($iter528)) { + $xfer += $output->writeI64($iter527); } else { - $xfer += $output->writeI64($iter519); + $xfer += $output->writeI64($iter528); } } } @@ -16197,17 +16256,17 @@ class CompactionRequest { case 6: if ($ftype == TType::MAP) { $this->properties = array(); - $_size520 = 0; - $_ktype521 = 0; - $_vtype522 = 0; - $xfer += $input->readMapBegin($_ktype521, $_vtype522, $_size520); - for ($_i524 = 0; $_i524 < $_size520; ++$_i524) + $_size529 = 0; + $_ktype530 = 0; + $_vtype531 = 0; + $xfer += $input->readMapBegin($_ktype530, $_vtype531, $_size529); + for ($_i533 = 0; $_i533 < $_size529; ++$_i533) { - $key525 = ''; - $val526 = ''; - $xfer += $input->readString($key525); - $xfer += $input->readString($val526); - $this->properties[$key525] = $val526; + $key534 = ''; + $val535 = ''; + $xfer += $input->readString($key534); + $xfer += $input->readString($val535); + $this->properties[$key534] = $val535; } $xfer += $input->readMapEnd(); } else { @@ -16260,10 +16319,10 @@ class CompactionRequest { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); { - foreach ($this->properties as $kiter527 => $viter528) + foreach ($this->properties as $kiter536 => $viter537) { - $xfer += $output->writeString($kiter527); - $xfer += $output->writeString($viter528); + $xfer += $output->writeString($kiter536); + $xfer += $output->writeString($viter537); } } $output->writeMapEnd(); @@ -16850,15 +16909,15 @@ class ShowCompactResponse { case 1: if ($ftype == TType::LST) { $this->compacts = array(); - $_size529 = 0; - $_etype532 = 0; - $xfer += $input->readListBegin($_etype532, $_size529); - for ($_i533 = 0; $_i533 < $_size529; ++$_i533) + $_size538 = 0; + $_etype541 = 0; + $xfer += $input->readListBegin($_etype541, $_size538); + for ($_i542 = 0; $_i542 < $_size538; ++$_i542) { - $elem534 = null; - $elem534 = new \metastore\ShowCompactResponseElement(); - $xfer += $elem534->read($input); - $this->compacts []= $elem534; + $elem543 = null; + $elem543 = new \metastore\ShowCompactResponseElement(); + $xfer += $elem543->read($input); + $this->compacts []= $elem543; } $xfer += $input->readListEnd(); } else { @@ -16886,9 +16945,9 @@ class ShowCompactResponse { { $output->writeListBegin(TType::STRUCT, count($this->compacts)); { - foreach ($this->compacts as $iter535) + foreach ($this->compacts as $iter544) { - $xfer += $iter535->write($output); + $xfer += $iter544->write($output); } } $output->writeListEnd(); @@ -17017,14 +17076,14 @@ class AddDynamicPartitions { case 4: if ($ftype == TType::LST) { $this->partitionnames = array(); - $_size536 = 0; - $_etype539 = 0; - $xfer += $input->readListBegin($_etype539, $_size536); - for ($_i540 = 0; $_i540 < $_size536; ++$_i540) + $_size545 = 0; + $_etype548 = 0; + $xfer += $input->readListBegin($_etype548, $_size545); + for ($_i549 = 0; $_i549 < $_size545; ++$_i549) { - $elem541 = null; - $xfer += $input->readString($elem541); - $this->partitionnames []= $elem541; + $elem550 = null; + $xfer += $input->readString($elem550); + $this->partitionnames []= $elem550; } $xfer += $input->readListEnd(); } else { @@ -17074,9 +17133,9 @@ class AddDynamicPartitions { { $output->writeListBegin(TType::STRING, count($this->partitionnames)); { - foreach ($this->partitionnames as $iter542) + foreach ($this->partitionnames as $iter551) { - $xfer += $output->writeString($iter542); + $xfer += $output->writeString($iter551); } } $output->writeListEnd(); @@ -17095,43 +17154,87 @@ class AddDynamicPartitions { } -class NotificationEventRequest { +class BasicTxnInfo { static $_TSPEC; /** * @var int */ - public $lastEvent = null; + public $id = null; /** * @var int */ - public $maxEvents = null; + public $time = null; + /** + * @var int + */ + public $txnid = null; + /** + * @var string + */ + public $dbname = null; + /** + * @var string + */ + public $tablename = null; + /** + * @var string + */ + public $partitionname = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'lastEvent', + 'var' => 'id', 'type' => TType::I64, ), 2 => array( - 'var' => 'maxEvents', - 'type' => TType::I32, + 'var' => 'time', + 'type' => TType::I64, + ), + 3 => array( + 'var' => 'txnid', + 'type' => TType::I64, + ), + 4 => array( + 'var' => 'dbname', + 'type' => TType::STRING, + ), + 5 => array( + 'var' => 'tablename', + 'type' => TType::STRING, + ), + 6 => array( + 'var' => 'partitionname', + 'type' => TType::STRING, ), ); } if (is_array($vals)) { - if (isset($vals['lastEvent'])) { - $this->lastEvent = $vals['lastEvent']; + if (isset($vals['id'])) { + $this->id = $vals['id']; } - if (isset($vals['maxEvents'])) { - $this->maxEvents = $vals['maxEvents']; + if (isset($vals['time'])) { + $this->time = $vals['time']; + } + if (isset($vals['txnid'])) { + $this->txnid = $vals['txnid']; + } + if (isset($vals['dbname'])) { + $this->dbname = $vals['dbname']; + } + if (isset($vals['tablename'])) { + $this->tablename = $vals['tablename']; + } + if (isset($vals['partitionname'])) { + $this->partitionname = $vals['partitionname']; } } } public function getName() { - return 'NotificationEventRequest'; + return 'BasicTxnInfo'; } public function read($input) @@ -17151,14 +17254,42 @@ class NotificationEventRequest { { case 1: if ($ftype == TType::I64) { - $xfer += $input->readI64($this->lastEvent); + $xfer += $input->readI64($this->id); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->maxEvents); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->time); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->txnid); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->dbname); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tablename); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->partitionname); } else { $xfer += $input->skip($ftype); } @@ -17175,15 +17306,35 @@ class NotificationEventRequest { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('NotificationEventRequest'); - if ($this->lastEvent !== null) { - $xfer += $output->writeFieldBegin('lastEvent', TType::I64, 1); - $xfer += $output->writeI64($this->lastEvent); + $xfer += $output->writeStructBegin('BasicTxnInfo'); + if ($this->id !== null) { + $xfer += $output->writeFieldBegin('id', TType::I64, 1); + $xfer += $output->writeI64($this->id); $xfer += $output->writeFieldEnd(); } - if ($this->maxEvents !== null) { - $xfer += $output->writeFieldBegin('maxEvents', TType::I32, 2); - $xfer += $output->writeI32($this->maxEvents); + if ($this->time !== null) { + $xfer += $output->writeFieldBegin('time', TType::I64, 2); + $xfer += $output->writeI64($this->time); + $xfer += $output->writeFieldEnd(); + } + if ($this->txnid !== null) { + $xfer += $output->writeFieldBegin('txnid', TType::I64, 3); + $xfer += $output->writeI64($this->txnid); + $xfer += $output->writeFieldEnd(); + } + if ($this->dbname !== null) { + $xfer += $output->writeFieldBegin('dbname', TType::STRING, 4); + $xfer += $output->writeString($this->dbname); + $xfer += $output->writeFieldEnd(); + } + if ($this->tablename !== null) { + $xfer += $output->writeFieldBegin('tablename', TType::STRING, 5); + $xfer += $output->writeString($this->tablename); + $xfer += $output->writeFieldEnd(); + } + if ($this->partitionname !== null) { + $xfer += $output->writeFieldBegin('partitionname', TType::STRING, 6); + $xfer += $output->writeString($this->partitionname); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -17193,98 +17344,47 @@ class NotificationEventRequest { } -class NotificationEvent { +class TxnsSnapshot { static $_TSPEC; /** * @var int */ - public $eventId = null; - /** - * @var int - */ - public $eventTime = null; - /** - * @var string - */ - public $eventType = null; - /** - * @var string - */ - public $dbName = null; - /** - * @var string - */ - public $tableName = null; - /** - * @var string - */ - public $message = null; + public $txn_high_water_mark = null; /** - * @var string + * @var int[] */ - public $messageFormat = null; + public $open_txns = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'eventId', + 'var' => 'txn_high_water_mark', 'type' => TType::I64, ), 2 => array( - 'var' => 'eventTime', - 'type' => TType::I32, - ), - 3 => array( - 'var' => 'eventType', - 'type' => TType::STRING, - ), - 4 => array( - 'var' => 'dbName', - 'type' => TType::STRING, - ), - 5 => array( - 'var' => 'tableName', - 'type' => TType::STRING, - ), - 6 => array( - 'var' => 'message', - 'type' => TType::STRING, - ), - 7 => array( - 'var' => 'messageFormat', - 'type' => TType::STRING, + 'var' => 'open_txns', + 'type' => TType::LST, + 'etype' => TType::I64, + 'elem' => array( + 'type' => TType::I64, + ), ), ); } if (is_array($vals)) { - if (isset($vals['eventId'])) { - $this->eventId = $vals['eventId']; - } - if (isset($vals['eventTime'])) { - $this->eventTime = $vals['eventTime']; - } - if (isset($vals['eventType'])) { - $this->eventType = $vals['eventType']; - } - if (isset($vals['dbName'])) { - $this->dbName = $vals['dbName']; - } - if (isset($vals['tableName'])) { - $this->tableName = $vals['tableName']; - } - if (isset($vals['message'])) { - $this->message = $vals['message']; + if (isset($vals['txn_high_water_mark'])) { + $this->txn_high_water_mark = $vals['txn_high_water_mark']; } - if (isset($vals['messageFormat'])) { - $this->messageFormat = $vals['messageFormat']; + if (isset($vals['open_txns'])) { + $this->open_txns = $vals['open_txns']; } } } public function getName() { - return 'NotificationEvent'; + return 'TxnsSnapshot'; } public function read($input) @@ -17304,13 +17404,286 @@ class NotificationEvent { { case 1: if ($ftype == TType::I64) { - $xfer += $input->readI64($this->eventId); + $xfer += $input->readI64($this->txn_high_water_mark); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::I32) { + if ($ftype == TType::LST) { + $this->open_txns = array(); + $_size552 = 0; + $_etype555 = 0; + $xfer += $input->readListBegin($_etype555, $_size552); + for ($_i556 = 0; $_i556 < $_size552; ++$_i556) + { + $elem557 = null; + $xfer += $input->readI64($elem557); + $this->open_txns []= $elem557; + } + $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('TxnsSnapshot'); + if ($this->txn_high_water_mark !== null) { + $xfer += $output->writeFieldBegin('txn_high_water_mark', TType::I64, 1); + $xfer += $output->writeI64($this->txn_high_water_mark); + $xfer += $output->writeFieldEnd(); + } + if ($this->open_txns !== null) { + if (!is_array($this->open_txns)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('open_txns', TType::LST, 2); + { + $output->writeListBegin(TType::I64, count($this->open_txns)); + { + foreach ($this->open_txns as $iter558) + { + $xfer += $output->writeI64($iter558); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class NotificationEventRequest { + static $_TSPEC; + + /** + * @var int + */ + public $lastEvent = null; + /** + * @var int + */ + public $maxEvents = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'lastEvent', + 'type' => TType::I64, + ), + 2 => array( + 'var' => 'maxEvents', + 'type' => TType::I32, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['lastEvent'])) { + $this->lastEvent = $vals['lastEvent']; + } + if (isset($vals['maxEvents'])) { + $this->maxEvents = $vals['maxEvents']; + } + } + } + + public function getName() { + return 'NotificationEventRequest'; + } + + 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->lastEvent); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->maxEvents); + } 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('NotificationEventRequest'); + if ($this->lastEvent !== null) { + $xfer += $output->writeFieldBegin('lastEvent', TType::I64, 1); + $xfer += $output->writeI64($this->lastEvent); + $xfer += $output->writeFieldEnd(); + } + if ($this->maxEvents !== null) { + $xfer += $output->writeFieldBegin('maxEvents', TType::I32, 2); + $xfer += $output->writeI32($this->maxEvents); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class NotificationEvent { + static $_TSPEC; + + /** + * @var int + */ + public $eventId = null; + /** + * @var int + */ + public $eventTime = null; + /** + * @var string + */ + public $eventType = null; + /** + * @var string + */ + public $dbName = null; + /** + * @var string + */ + public $tableName = null; + /** + * @var string + */ + public $message = null; + /** + * @var string + */ + public $messageFormat = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'eventId', + 'type' => TType::I64, + ), + 2 => array( + 'var' => 'eventTime', + 'type' => TType::I32, + ), + 3 => array( + 'var' => 'eventType', + 'type' => TType::STRING, + ), + 4 => array( + 'var' => 'dbName', + 'type' => TType::STRING, + ), + 5 => array( + 'var' => 'tableName', + 'type' => TType::STRING, + ), + 6 => array( + 'var' => 'message', + 'type' => TType::STRING, + ), + 7 => array( + 'var' => 'messageFormat', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['eventId'])) { + $this->eventId = $vals['eventId']; + } + if (isset($vals['eventTime'])) { + $this->eventTime = $vals['eventTime']; + } + if (isset($vals['eventType'])) { + $this->eventType = $vals['eventType']; + } + if (isset($vals['dbName'])) { + $this->dbName = $vals['dbName']; + } + if (isset($vals['tableName'])) { + $this->tableName = $vals['tableName']; + } + if (isset($vals['message'])) { + $this->message = $vals['message']; + } + if (isset($vals['messageFormat'])) { + $this->messageFormat = $vals['messageFormat']; + } + } + } + + public function getName() { + return 'NotificationEvent'; + } + + 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->eventId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::I32) { $xfer += $input->readI32($this->eventTime); } else { $xfer += $input->skip($ftype); @@ -17457,15 +17830,15 @@ class NotificationEventResponse { case 1: if ($ftype == TType::LST) { $this->events = array(); - $_size543 = 0; - $_etype546 = 0; - $xfer += $input->readListBegin($_etype546, $_size543); - for ($_i547 = 0; $_i547 < $_size543; ++$_i547) + $_size559 = 0; + $_etype562 = 0; + $xfer += $input->readListBegin($_etype562, $_size559); + for ($_i563 = 0; $_i563 < $_size559; ++$_i563) { - $elem548 = null; - $elem548 = new \metastore\NotificationEvent(); - $xfer += $elem548->read($input); - $this->events []= $elem548; + $elem564 = null; + $elem564 = new \metastore\NotificationEvent(); + $xfer += $elem564->read($input); + $this->events []= $elem564; } $xfer += $input->readListEnd(); } else { @@ -17493,9 +17866,9 @@ class NotificationEventResponse { { $output->writeListBegin(TType::STRUCT, count($this->events)); { - foreach ($this->events as $iter549) + foreach ($this->events as $iter565) { - $xfer += $iter549->write($output); + $xfer += $iter565->write($output); } } $output->writeListEnd(); @@ -17840,14 +18213,14 @@ class InsertEventRequestData { case 2: if ($ftype == TType::LST) { $this->filesAdded = array(); - $_size550 = 0; - $_etype553 = 0; - $xfer += $input->readListBegin($_etype553, $_size550); - for ($_i554 = 0; $_i554 < $_size550; ++$_i554) + $_size566 = 0; + $_etype569 = 0; + $xfer += $input->readListBegin($_etype569, $_size566); + for ($_i570 = 0; $_i570 < $_size566; ++$_i570) { - $elem555 = null; - $xfer += $input->readString($elem555); - $this->filesAdded []= $elem555; + $elem571 = null; + $xfer += $input->readString($elem571); + $this->filesAdded []= $elem571; } $xfer += $input->readListEnd(); } else { @@ -17857,14 +18230,14 @@ class InsertEventRequestData { case 3: if ($ftype == TType::LST) { $this->filesAddedChecksum = array(); - $_size556 = 0; - $_etype559 = 0; - $xfer += $input->readListBegin($_etype559, $_size556); - for ($_i560 = 0; $_i560 < $_size556; ++$_i560) + $_size572 = 0; + $_etype575 = 0; + $xfer += $input->readListBegin($_etype575, $_size572); + for ($_i576 = 0; $_i576 < $_size572; ++$_i576) { - $elem561 = null; - $xfer += $input->readString($elem561); - $this->filesAddedChecksum []= $elem561; + $elem577 = null; + $xfer += $input->readString($elem577); + $this->filesAddedChecksum []= $elem577; } $xfer += $input->readListEnd(); } else { @@ -17897,9 +18270,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->filesAdded)); { - foreach ($this->filesAdded as $iter562) + foreach ($this->filesAdded as $iter578) { - $xfer += $output->writeString($iter562); + $xfer += $output->writeString($iter578); } } $output->writeListEnd(); @@ -17914,9 +18287,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->filesAddedChecksum)); { - foreach ($this->filesAddedChecksum as $iter563) + foreach ($this->filesAddedChecksum as $iter579) { - $xfer += $output->writeString($iter563); + $xfer += $output->writeString($iter579); } } $output->writeListEnd(); @@ -18134,14 +18507,14 @@ class FireEventRequest { case 5: if ($ftype == TType::LST) { $this->partitionVals = array(); - $_size564 = 0; - $_etype567 = 0; - $xfer += $input->readListBegin($_etype567, $_size564); - for ($_i568 = 0; $_i568 < $_size564; ++$_i568) + $_size580 = 0; + $_etype583 = 0; + $xfer += $input->readListBegin($_etype583, $_size580); + for ($_i584 = 0; $_i584 < $_size580; ++$_i584) { - $elem569 = null; - $xfer += $input->readString($elem569); - $this->partitionVals []= $elem569; + $elem585 = null; + $xfer += $input->readString($elem585); + $this->partitionVals []= $elem585; } $xfer += $input->readListEnd(); } else { @@ -18192,9 +18565,9 @@ class FireEventRequest { { $output->writeListBegin(TType::STRING, count($this->partitionVals)); { - foreach ($this->partitionVals as $iter570) + foreach ($this->partitionVals as $iter586) { - $xfer += $output->writeString($iter570); + $xfer += $output->writeString($iter586); } } $output->writeListEnd(); @@ -18422,18 +18795,18 @@ class GetFileMetadataByExprResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size571 = 0; - $_ktype572 = 0; - $_vtype573 = 0; - $xfer += $input->readMapBegin($_ktype572, $_vtype573, $_size571); - for ($_i575 = 0; $_i575 < $_size571; ++$_i575) + $_size587 = 0; + $_ktype588 = 0; + $_vtype589 = 0; + $xfer += $input->readMapBegin($_ktype588, $_vtype589, $_size587); + for ($_i591 = 0; $_i591 < $_size587; ++$_i591) { - $key576 = 0; - $val577 = new \metastore\MetadataPpdResult(); - $xfer += $input->readI64($key576); - $val577 = new \metastore\MetadataPpdResult(); - $xfer += $val577->read($input); - $this->metadata[$key576] = $val577; + $key592 = 0; + $val593 = new \metastore\MetadataPpdResult(); + $xfer += $input->readI64($key592); + $val593 = new \metastore\MetadataPpdResult(); + $xfer += $val593->read($input); + $this->metadata[$key592] = $val593; } $xfer += $input->readMapEnd(); } else { @@ -18468,10 +18841,10 @@ class GetFileMetadataByExprResult { { $output->writeMapBegin(TType::I64, TType::STRUCT, count($this->metadata)); { - foreach ($this->metadata as $kiter578 => $viter579) + foreach ($this->metadata as $kiter594 => $viter595) { - $xfer += $output->writeI64($kiter578); - $xfer += $viter579->write($output); + $xfer += $output->writeI64($kiter594); + $xfer += $viter595->write($output); } } $output->writeMapEnd(); @@ -18573,14 +18946,14 @@ class GetFileMetadataByExprRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size580 = 0; - $_etype583 = 0; - $xfer += $input->readListBegin($_etype583, $_size580); - for ($_i584 = 0; $_i584 < $_size580; ++$_i584) + $_size596 = 0; + $_etype599 = 0; + $xfer += $input->readListBegin($_etype599, $_size596); + for ($_i600 = 0; $_i600 < $_size596; ++$_i600) { - $elem585 = null; - $xfer += $input->readI64($elem585); - $this->fileIds []= $elem585; + $elem601 = null; + $xfer += $input->readI64($elem601); + $this->fileIds []= $elem601; } $xfer += $input->readListEnd(); } else { @@ -18629,9 +19002,9 @@ class GetFileMetadataByExprRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter586) + foreach ($this->fileIds as $iter602) { - $xfer += $output->writeI64($iter586); + $xfer += $output->writeI64($iter602); } } $output->writeListEnd(); @@ -18725,17 +19098,17 @@ class GetFileMetadataResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size587 = 0; - $_ktype588 = 0; - $_vtype589 = 0; - $xfer += $input->readMapBegin($_ktype588, $_vtype589, $_size587); - for ($_i591 = 0; $_i591 < $_size587; ++$_i591) + $_size603 = 0; + $_ktype604 = 0; + $_vtype605 = 0; + $xfer += $input->readMapBegin($_ktype604, $_vtype605, $_size603); + for ($_i607 = 0; $_i607 < $_size603; ++$_i607) { - $key592 = 0; - $val593 = ''; - $xfer += $input->readI64($key592); - $xfer += $input->readString($val593); - $this->metadata[$key592] = $val593; + $key608 = 0; + $val609 = ''; + $xfer += $input->readI64($key608); + $xfer += $input->readString($val609); + $this->metadata[$key608] = $val609; } $xfer += $input->readMapEnd(); } else { @@ -18770,10 +19143,10 @@ class GetFileMetadataResult { { $output->writeMapBegin(TType::I64, TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $kiter594 => $viter595) + foreach ($this->metadata as $kiter610 => $viter611) { - $xfer += $output->writeI64($kiter594); - $xfer += $output->writeString($viter595); + $xfer += $output->writeI64($kiter610); + $xfer += $output->writeString($viter611); } } $output->writeMapEnd(); @@ -18842,14 +19215,14 @@ class GetFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size596 = 0; - $_etype599 = 0; - $xfer += $input->readListBegin($_etype599, $_size596); - for ($_i600 = 0; $_i600 < $_size596; ++$_i600) + $_size612 = 0; + $_etype615 = 0; + $xfer += $input->readListBegin($_etype615, $_size612); + for ($_i616 = 0; $_i616 < $_size612; ++$_i616) { - $elem601 = null; - $xfer += $input->readI64($elem601); - $this->fileIds []= $elem601; + $elem617 = null; + $xfer += $input->readI64($elem617); + $this->fileIds []= $elem617; } $xfer += $input->readListEnd(); } else { @@ -18877,9 +19250,9 @@ class GetFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter602) + foreach ($this->fileIds as $iter618) { - $xfer += $output->writeI64($iter602); + $xfer += $output->writeI64($iter618); } } $output->writeListEnd(); @@ -19019,14 +19392,14 @@ class PutFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size603 = 0; - $_etype606 = 0; - $xfer += $input->readListBegin($_etype606, $_size603); - for ($_i607 = 0; $_i607 < $_size603; ++$_i607) + $_size619 = 0; + $_etype622 = 0; + $xfer += $input->readListBegin($_etype622, $_size619); + for ($_i623 = 0; $_i623 < $_size619; ++$_i623) { - $elem608 = null; - $xfer += $input->readI64($elem608); - $this->fileIds []= $elem608; + $elem624 = null; + $xfer += $input->readI64($elem624); + $this->fileIds []= $elem624; } $xfer += $input->readListEnd(); } else { @@ -19036,14 +19409,14 @@ class PutFileMetadataRequest { case 2: if ($ftype == TType::LST) { $this->metadata = array(); - $_size609 = 0; - $_etype612 = 0; - $xfer += $input->readListBegin($_etype612, $_size609); - for ($_i613 = 0; $_i613 < $_size609; ++$_i613) + $_size625 = 0; + $_etype628 = 0; + $xfer += $input->readListBegin($_etype628, $_size625); + for ($_i629 = 0; $_i629 < $_size625; ++$_i629) { - $elem614 = null; - $xfer += $input->readString($elem614); - $this->metadata []= $elem614; + $elem630 = null; + $xfer += $input->readString($elem630); + $this->metadata []= $elem630; } $xfer += $input->readListEnd(); } else { @@ -19078,9 +19451,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter615) + foreach ($this->fileIds as $iter631) { - $xfer += $output->writeI64($iter615); + $xfer += $output->writeI64($iter631); } } $output->writeListEnd(); @@ -19095,9 +19468,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $iter616) + foreach ($this->metadata as $iter632) { - $xfer += $output->writeString($iter616); + $xfer += $output->writeString($iter632); } } $output->writeListEnd(); @@ -19216,14 +19589,14 @@ class ClearFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size617 = 0; - $_etype620 = 0; - $xfer += $input->readListBegin($_etype620, $_size617); - for ($_i621 = 0; $_i621 < $_size617; ++$_i621) + $_size633 = 0; + $_etype636 = 0; + $xfer += $input->readListBegin($_etype636, $_size633); + for ($_i637 = 0; $_i637 < $_size633; ++$_i637) { - $elem622 = null; - $xfer += $input->readI64($elem622); - $this->fileIds []= $elem622; + $elem638 = null; + $xfer += $input->readI64($elem638); + $this->fileIds []= $elem638; } $xfer += $input->readListEnd(); } else { @@ -19251,9 +19624,9 @@ class ClearFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter623) + foreach ($this->fileIds as $iter639) { - $xfer += $output->writeI64($iter623); + $xfer += $output->writeI64($iter639); } } $output->writeListEnd(); @@ -19537,15 +19910,15 @@ class GetAllFunctionsResponse { case 1: if ($ftype == TType::LST) { $this->functions = array(); - $_size624 = 0; - $_etype627 = 0; - $xfer += $input->readListBegin($_etype627, $_size624); - for ($_i628 = 0; $_i628 < $_size624; ++$_i628) + $_size640 = 0; + $_etype643 = 0; + $xfer += $input->readListBegin($_etype643, $_size640); + for ($_i644 = 0; $_i644 < $_size640; ++$_i644) { - $elem629 = null; - $elem629 = new \metastore\Function(); - $xfer += $elem629->read($input); - $this->functions []= $elem629; + $elem645 = null; + $elem645 = new \metastore\Function(); + $xfer += $elem645->read($input); + $this->functions []= $elem645; } $xfer += $input->readListEnd(); } else { @@ -19573,9 +19946,9 @@ class GetAllFunctionsResponse { { $output->writeListBegin(TType::STRUCT, count($this->functions)); { - foreach ($this->functions as $iter630) + foreach ($this->functions as $iter646) { - $xfer += $iter630->write($output); + $xfer += $iter646->write($output); } } $output->writeListEnd(); @@ -19639,14 +20012,14 @@ class ClientCapabilities { case 1: if ($ftype == TType::LST) { $this->values = array(); - $_size631 = 0; - $_etype634 = 0; - $xfer += $input->readListBegin($_etype634, $_size631); - for ($_i635 = 0; $_i635 < $_size631; ++$_i635) + $_size647 = 0; + $_etype650 = 0; + $xfer += $input->readListBegin($_etype650, $_size647); + for ($_i651 = 0; $_i651 < $_size647; ++$_i651) { - $elem636 = null; - $xfer += $input->readI32($elem636); - $this->values []= $elem636; + $elem652 = null; + $xfer += $input->readI32($elem652); + $this->values []= $elem652; } $xfer += $input->readListEnd(); } else { @@ -19674,9 +20047,9 @@ class ClientCapabilities { { $output->writeListBegin(TType::I32, count($this->values)); { - foreach ($this->values as $iter637) + foreach ($this->values as $iter653) { - $xfer += $output->writeI32($iter637); + $xfer += $output->writeI32($iter653); } } $output->writeListEnd(); @@ -19976,14 +20349,14 @@ class GetTablesRequest { case 2: if ($ftype == TType::LST) { $this->tblNames = array(); - $_size638 = 0; - $_etype641 = 0; - $xfer += $input->readListBegin($_etype641, $_size638); - for ($_i642 = 0; $_i642 < $_size638; ++$_i642) + $_size654 = 0; + $_etype657 = 0; + $xfer += $input->readListBegin($_etype657, $_size654); + for ($_i658 = 0; $_i658 < $_size654; ++$_i658) { - $elem643 = null; - $xfer += $input->readString($elem643); - $this->tblNames []= $elem643; + $elem659 = null; + $xfer += $input->readString($elem659); + $this->tblNames []= $elem659; } $xfer += $input->readListEnd(); } else { @@ -20024,9 +20397,9 @@ class GetTablesRequest { { $output->writeListBegin(TType::STRING, count($this->tblNames)); { - foreach ($this->tblNames as $iter644) + foreach ($this->tblNames as $iter660) { - $xfer += $output->writeString($iter644); + $xfer += $output->writeString($iter660); } } $output->writeListEnd(); @@ -20099,15 +20472,15 @@ class GetTablesResult { case 1: if ($ftype == TType::LST) { $this->tables = array(); - $_size645 = 0; - $_etype648 = 0; - $xfer += $input->readListBegin($_etype648, $_size645); - for ($_i649 = 0; $_i649 < $_size645; ++$_i649) + $_size661 = 0; + $_etype664 = 0; + $xfer += $input->readListBegin($_etype664, $_size661); + for ($_i665 = 0; $_i665 < $_size661; ++$_i665) { - $elem650 = null; - $elem650 = new \metastore\Table(); - $xfer += $elem650->read($input); - $this->tables []= $elem650; + $elem666 = null; + $elem666 = new \metastore\Table(); + $xfer += $elem666->read($input); + $this->tables []= $elem666; } $xfer += $input->readListEnd(); } else { @@ -20135,9 +20508,9 @@ class GetTablesResult { { $output->writeListBegin(TType::STRUCT, count($this->tables)); { - foreach ($this->tables as $iter651) + foreach ($this->tables as $iter667) { - $xfer += $iter651->write($output); + $xfer += $iter667->write($output); } } $output->writeListEnd(); @@ -20443,6 +20816,166 @@ class TableMeta { } +class Materialization { + static $_TSPEC; + + /** + * @var \metastore\Table + */ + public $materializationTable = null; + /** + * @var string[] + */ + public $tablesUsed = null; + /** + * @var int + */ + public $invalidationTime = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'materializationTable', + 'type' => TType::STRUCT, + 'class' => '\metastore\Table', + ), + 2 => array( + 'var' => 'tablesUsed', + 'type' => TType::SET, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + 3 => array( + 'var' => 'invalidationTime', + 'type' => TType::I64, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['materializationTable'])) { + $this->materializationTable = $vals['materializationTable']; + } + if (isset($vals['tablesUsed'])) { + $this->tablesUsed = $vals['tablesUsed']; + } + if (isset($vals['invalidationTime'])) { + $this->invalidationTime = $vals['invalidationTime']; + } + } + } + + public function getName() { + return 'Materialization'; + } + + 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->materializationTable = new \metastore\Table(); + $xfer += $this->materializationTable->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::SET) { + $this->tablesUsed = array(); + $_size668 = 0; + $_etype671 = 0; + $xfer += $input->readSetBegin($_etype671, $_size668); + for ($_i672 = 0; $_i672 < $_size668; ++$_i672) + { + $elem673 = null; + $xfer += $input->readString($elem673); + if (is_scalar($elem673)) { + $this->tablesUsed[$elem673] = true; + } else { + $this->tablesUsed []= $elem673; + } + } + $xfer += $input->readSetEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->invalidationTime); + } 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('Materialization'); + if ($this->materializationTable !== null) { + if (!is_object($this->materializationTable)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('materializationTable', TType::STRUCT, 1); + $xfer += $this->materializationTable->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->tablesUsed !== null) { + if (!is_array($this->tablesUsed)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('tablesUsed', TType::SET, 2); + { + $output->writeSetBegin(TType::STRING, count($this->tablesUsed)); + { + foreach ($this->tablesUsed as $iter674 => $iter675) + { + if (is_scalar($iter675)) { + $xfer += $output->writeString($iter674); + } else { + $xfer += $output->writeString($iter675); + } + } + } + $output->writeSetEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->invalidationTime !== null) { + $xfer += $output->writeFieldBegin('invalidationTime', TType::I64, 3); + $xfer += $output->writeI64($this->invalidationTime); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class WMResourcePlan { static $_TSPEC; @@ -21282,15 +21815,15 @@ class WMFullResourcePlan { case 2: if ($ftype == TType::LST) { $this->pools = array(); - $_size652 = 0; - $_etype655 = 0; - $xfer += $input->readListBegin($_etype655, $_size652); - for ($_i656 = 0; $_i656 < $_size652; ++$_i656) + $_size676 = 0; + $_etype679 = 0; + $xfer += $input->readListBegin($_etype679, $_size676); + for ($_i680 = 0; $_i680 < $_size676; ++$_i680) { - $elem657 = null; - $elem657 = new \metastore\WMPool(); - $xfer += $elem657->read($input); - $this->pools []= $elem657; + $elem681 = null; + $elem681 = new \metastore\WMPool(); + $xfer += $elem681->read($input); + $this->pools []= $elem681; } $xfer += $input->readListEnd(); } else { @@ -21300,15 +21833,15 @@ class WMFullResourcePlan { case 3: if ($ftype == TType::LST) { $this->mappings = array(); - $_size658 = 0; - $_etype661 = 0; - $xfer += $input->readListBegin($_etype661, $_size658); - for ($_i662 = 0; $_i662 < $_size658; ++$_i662) + $_size682 = 0; + $_etype685 = 0; + $xfer += $input->readListBegin($_etype685, $_size682); + for ($_i686 = 0; $_i686 < $_size682; ++$_i686) { - $elem663 = null; - $elem663 = new \metastore\WMMapping(); - $xfer += $elem663->read($input); - $this->mappings []= $elem663; + $elem687 = null; + $elem687 = new \metastore\WMMapping(); + $xfer += $elem687->read($input); + $this->mappings []= $elem687; } $xfer += $input->readListEnd(); } else { @@ -21318,15 +21851,15 @@ class WMFullResourcePlan { case 4: if ($ftype == TType::LST) { $this->triggers = array(); - $_size664 = 0; - $_etype667 = 0; - $xfer += $input->readListBegin($_etype667, $_size664); - for ($_i668 = 0; $_i668 < $_size664; ++$_i668) + $_size688 = 0; + $_etype691 = 0; + $xfer += $input->readListBegin($_etype691, $_size688); + for ($_i692 = 0; $_i692 < $_size688; ++$_i692) { - $elem669 = null; - $elem669 = new \metastore\WMTrigger(); - $xfer += $elem669->read($input); - $this->triggers []= $elem669; + $elem693 = null; + $elem693 = new \metastore\WMTrigger(); + $xfer += $elem693->read($input); + $this->triggers []= $elem693; } $xfer += $input->readListEnd(); } else { @@ -21336,15 +21869,15 @@ class WMFullResourcePlan { case 5: if ($ftype == TType::LST) { $this->poolTriggers = array(); - $_size670 = 0; - $_etype673 = 0; - $xfer += $input->readListBegin($_etype673, $_size670); - for ($_i674 = 0; $_i674 < $_size670; ++$_i674) + $_size694 = 0; + $_etype697 = 0; + $xfer += $input->readListBegin($_etype697, $_size694); + for ($_i698 = 0; $_i698 < $_size694; ++$_i698) { - $elem675 = null; - $elem675 = new \metastore\WMPoolTrigger(); - $xfer += $elem675->read($input); - $this->poolTriggers []= $elem675; + $elem699 = null; + $elem699 = new \metastore\WMPoolTrigger(); + $xfer += $elem699->read($input); + $this->poolTriggers []= $elem699; } $xfer += $input->readListEnd(); } else { @@ -21380,9 +21913,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->pools)); { - foreach ($this->pools as $iter676) + foreach ($this->pools as $iter700) { - $xfer += $iter676->write($output); + $xfer += $iter700->write($output); } } $output->writeListEnd(); @@ -21397,9 +21930,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->mappings)); { - foreach ($this->mappings as $iter677) + foreach ($this->mappings as $iter701) { - $xfer += $iter677->write($output); + $xfer += $iter701->write($output); } } $output->writeListEnd(); @@ -21414,9 +21947,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->triggers)); { - foreach ($this->triggers as $iter678) + foreach ($this->triggers as $iter702) { - $xfer += $iter678->write($output); + $xfer += $iter702->write($output); } } $output->writeListEnd(); @@ -21431,9 +21964,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->poolTriggers)); { - foreach ($this->poolTriggers as $iter679) + foreach ($this->poolTriggers as $iter703) { - $xfer += $iter679->write($output); + $xfer += $iter703->write($output); } } $output->writeListEnd(); @@ -21963,15 +22496,15 @@ class WMGetAllResourcePlanResponse { case 1: if ($ftype == TType::LST) { $this->resourcePlans = array(); - $_size680 = 0; - $_etype683 = 0; - $xfer += $input->readListBegin($_etype683, $_size680); - for ($_i684 = 0; $_i684 < $_size680; ++$_i684) + $_size704 = 0; + $_etype707 = 0; + $xfer += $input->readListBegin($_etype707, $_size704); + for ($_i708 = 0; $_i708 < $_size704; ++$_i708) { - $elem685 = null; - $elem685 = new \metastore\WMResourcePlan(); - $xfer += $elem685->read($input); - $this->resourcePlans []= $elem685; + $elem709 = null; + $elem709 = new \metastore\WMResourcePlan(); + $xfer += $elem709->read($input); + $this->resourcePlans []= $elem709; } $xfer += $input->readListEnd(); } else { @@ -21999,9 +22532,9 @@ class WMGetAllResourcePlanResponse { { $output->writeListBegin(TType::STRUCT, count($this->resourcePlans)); { - foreach ($this->resourcePlans as $iter686) + foreach ($this->resourcePlans as $iter710) { - $xfer += $iter686->write($output); + $xfer += $iter710->write($output); } } $output->writeListEnd(); @@ -22346,14 +22879,14 @@ class WMValidateResourcePlanResponse { case 1: if ($ftype == TType::LST) { $this->errors = array(); - $_size687 = 0; - $_etype690 = 0; - $xfer += $input->readListBegin($_etype690, $_size687); - for ($_i691 = 0; $_i691 < $_size687; ++$_i691) + $_size711 = 0; + $_etype714 = 0; + $xfer += $input->readListBegin($_etype714, $_size711); + for ($_i715 = 0; $_i715 < $_size711; ++$_i715) { - $elem692 = null; - $xfer += $input->readString($elem692); - $this->errors []= $elem692; + $elem716 = null; + $xfer += $input->readString($elem716); + $this->errors []= $elem716; } $xfer += $input->readListEnd(); } else { @@ -22381,9 +22914,9 @@ class WMValidateResourcePlanResponse { { $output->writeListBegin(TType::STRING, count($this->errors)); { - foreach ($this->errors as $iter693) + foreach ($this->errors as $iter717) { - $xfer += $output->writeString($iter693); + $xfer += $output->writeString($iter717); } } $output->writeListEnd(); @@ -23056,15 +23589,15 @@ class WMGetTriggersForResourePlanResponse { case 1: if ($ftype == TType::LST) { $this->triggers = array(); - $_size694 = 0; - $_etype697 = 0; - $xfer += $input->readListBegin($_etype697, $_size694); - for ($_i698 = 0; $_i698 < $_size694; ++$_i698) + $_size718 = 0; + $_etype721 = 0; + $xfer += $input->readListBegin($_etype721, $_size718); + for ($_i722 = 0; $_i722 < $_size718; ++$_i722) { - $elem699 = null; - $elem699 = new \metastore\WMTrigger(); - $xfer += $elem699->read($input); - $this->triggers []= $elem699; + $elem723 = null; + $elem723 = new \metastore\WMTrigger(); + $xfer += $elem723->read($input); + $this->triggers []= $elem723; } $xfer += $input->readListEnd(); } else { @@ -23092,9 +23625,9 @@ class WMGetTriggersForResourePlanResponse { { $output->writeListBegin(TType::STRUCT, count($this->triggers)); { - foreach ($this->triggers as $iter700) + foreach ($this->triggers as $iter724) { - $xfer += $iter700->write($output); + $xfer += $iter724->write($output); } } $output->writeListEnd(); diff --git a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote index 5533044e01..04bf1a0e8d 100755 --- a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -53,12 +53,14 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' void truncate_table(string dbName, string tableName, partNames)') print(' get_tables(string db_name, string pattern)') print(' get_tables_by_type(string db_name, string pattern, string tableType)') + print(' get_materialized_views_for_rewriting(string db_name)') print(' get_table_meta(string db_patterns, string tbl_patterns, tbl_types)') print(' get_all_tables(string db_name)') print(' Table get_table(string dbname, string tbl_name)') print(' get_table_objects_by_name(string dbname, tbl_names)') print(' GetTableResult get_table_req(GetTableRequest req)') print(' GetTablesResult get_table_objects_by_name_req(GetTablesRequest req)') + print(' get_materialization_invalidation_info(string dbname, tbl_names)') print(' get_table_names_by_filter(string dbname, string filter, i16 max_tables)') print(' void alter_table(string dbname, string tbl_name, Table new_tbl)') print(' void alter_table_with_environment_context(string dbname, string tbl_name, Table new_tbl, EnvironmentContext environment_context)') @@ -174,6 +176,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' CompactionResponse compact2(CompactionRequest rqst)') print(' ShowCompactResponse show_compact(ShowCompactRequest rqst)') print(' void add_dynamic_partitions(AddDynamicPartitions rqst)') + print(' BasicTxnInfo get_last_completed_transaction_for_table(string db_name, string table_name, TxnsSnapshot txns_snapshot)') print(' NotificationEventResponse get_next_notification(NotificationEventRequest rqst)') print(' CurrentNotificationEventId get_current_notificationEventId()') print(' NotificationEventsCountResponse get_notification_events_count(NotificationEventsCountRequest rqst)') @@ -446,6 +449,12 @@ elif cmd == 'get_tables_by_type': sys.exit(1) pp.pprint(client.get_tables_by_type(args[0],args[1],args[2],)) +elif cmd == 'get_materialized_views_for_rewriting': + if len(args) != 1: + print('get_materialized_views_for_rewriting requires 1 args') + sys.exit(1) + pp.pprint(client.get_materialized_views_for_rewriting(args[0],)) + elif cmd == 'get_table_meta': if len(args) != 3: print('get_table_meta requires 3 args') @@ -482,6 +491,12 @@ elif cmd == 'get_table_objects_by_name_req': sys.exit(1) pp.pprint(client.get_table_objects_by_name_req(eval(args[0]),)) +elif cmd == 'get_materialization_invalidation_info': + if len(args) != 2: + print('get_materialization_invalidation_info requires 2 args') + sys.exit(1) + pp.pprint(client.get_materialization_invalidation_info(args[0],eval(args[1]),)) + elif cmd == 'get_table_names_by_filter': if len(args) != 3: print('get_table_names_by_filter requires 3 args') @@ -1172,6 +1187,12 @@ elif cmd == 'add_dynamic_partitions': sys.exit(1) pp.pprint(client.add_dynamic_partitions(eval(args[0]),)) +elif cmd == 'get_last_completed_transaction_for_table': + if len(args) != 3: + print('get_last_completed_transaction_for_table requires 3 args') + sys.exit(1) + pp.pprint(client.get_last_completed_transaction_for_table(args[0],args[1],eval(args[2]),)) + elif cmd == 'get_next_notification': if len(args) != 1: print('get_next_notification requires 1 args') diff --git a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py index 808ee095da..5e6a2e3abf 100644 --- a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -247,6 +247,13 @@ def get_tables_by_type(self, db_name, pattern, tableType): """ pass + def get_materialized_views_for_rewriting(self, db_name): + """ + Parameters: + - db_name + """ + pass + def get_table_meta(self, db_patterns, tbl_patterns, tbl_types): """ Parameters: @@ -293,6 +300,14 @@ def get_table_objects_by_name_req(self, req): """ pass + def get_materialization_invalidation_info(self, dbname, tbl_names): + """ + Parameters: + - dbname + - tbl_names + """ + pass + def get_table_names_by_filter(self, dbname, filter, max_tables): """ Parameters: @@ -1221,6 +1236,15 @@ def add_dynamic_partitions(self, rqst): """ pass + def get_last_completed_transaction_for_table(self, db_name, table_name, txns_snapshot): + """ + Parameters: + - db_name + - table_name + - txns_snapshot + """ + pass + def get_next_notification(self, rqst): """ Parameters: @@ -2460,6 +2484,39 @@ def recv_get_tables_by_type(self): raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_tables_by_type failed: unknown result") + def get_materialized_views_for_rewriting(self, db_name): + """ + Parameters: + - db_name + """ + self.send_get_materialized_views_for_rewriting(db_name) + return self.recv_get_materialized_views_for_rewriting() + + def send_get_materialized_views_for_rewriting(self, db_name): + self._oprot.writeMessageBegin('get_materialized_views_for_rewriting', TMessageType.CALL, self._seqid) + args = get_materialized_views_for_rewriting_args() + args.db_name = db_name + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_materialized_views_for_rewriting(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = get_materialized_views_for_rewriting_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_materialized_views_for_rewriting failed: unknown result") + def get_table_meta(self, db_patterns, tbl_patterns, tbl_types): """ Parameters: @@ -2672,6 +2729,45 @@ def recv_get_table_objects_by_name_req(self): raise result.o3 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_objects_by_name_req failed: unknown result") + def get_materialization_invalidation_info(self, dbname, tbl_names): + """ + Parameters: + - dbname + - tbl_names + """ + self.send_get_materialization_invalidation_info(dbname, tbl_names) + return self.recv_get_materialization_invalidation_info() + + def send_get_materialization_invalidation_info(self, dbname, tbl_names): + self._oprot.writeMessageBegin('get_materialization_invalidation_info', TMessageType.CALL, self._seqid) + args = get_materialization_invalidation_info_args() + args.dbname = dbname + args.tbl_names = tbl_names + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_materialization_invalidation_info(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = get_materialization_invalidation_info_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + if result.o2 is not None: + raise result.o2 + if result.o3 is not None: + raise result.o3 + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_materialization_invalidation_info failed: unknown result") + def get_table_names_by_filter(self, dbname, filter, max_tables): """ Parameters: @@ -6887,6 +6983,41 @@ def recv_add_dynamic_partitions(self): raise result.o2 return + def get_last_completed_transaction_for_table(self, db_name, table_name, txns_snapshot): + """ + Parameters: + - db_name + - table_name + - txns_snapshot + """ + self.send_get_last_completed_transaction_for_table(db_name, table_name, txns_snapshot) + return self.recv_get_last_completed_transaction_for_table() + + def send_get_last_completed_transaction_for_table(self, db_name, table_name, txns_snapshot): + self._oprot.writeMessageBegin('get_last_completed_transaction_for_table', TMessageType.CALL, self._seqid) + args = get_last_completed_transaction_for_table_args() + args.db_name = db_name + args.table_name = table_name + args.txns_snapshot = txns_snapshot + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_last_completed_transaction_for_table(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = get_last_completed_transaction_for_table_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_last_completed_transaction_for_table failed: unknown result") + def get_next_notification(self, rqst): """ Parameters: @@ -7904,12 +8035,14 @@ def __init__(self, handler): self._processMap["truncate_table"] = Processor.process_truncate_table self._processMap["get_tables"] = Processor.process_get_tables self._processMap["get_tables_by_type"] = Processor.process_get_tables_by_type + self._processMap["get_materialized_views_for_rewriting"] = Processor.process_get_materialized_views_for_rewriting self._processMap["get_table_meta"] = Processor.process_get_table_meta self._processMap["get_all_tables"] = Processor.process_get_all_tables self._processMap["get_table"] = Processor.process_get_table self._processMap["get_table_objects_by_name"] = Processor.process_get_table_objects_by_name self._processMap["get_table_req"] = Processor.process_get_table_req self._processMap["get_table_objects_by_name_req"] = Processor.process_get_table_objects_by_name_req + self._processMap["get_materialization_invalidation_info"] = Processor.process_get_materialization_invalidation_info self._processMap["get_table_names_by_filter"] = Processor.process_get_table_names_by_filter self._processMap["alter_table"] = Processor.process_alter_table self._processMap["alter_table_with_environment_context"] = Processor.process_alter_table_with_environment_context @@ -8025,6 +8158,7 @@ def __init__(self, handler): self._processMap["compact2"] = Processor.process_compact2 self._processMap["show_compact"] = Processor.process_show_compact self._processMap["add_dynamic_partitions"] = Processor.process_add_dynamic_partitions + self._processMap["get_last_completed_transaction_for_table"] = Processor.process_get_last_completed_transaction_for_table self._processMap["get_next_notification"] = Processor.process_get_next_notification self._processMap["get_current_notificationEventId"] = Processor.process_get_current_notificationEventId self._processMap["get_notification_events_count"] = Processor.process_get_notification_events_count @@ -8810,6 +8944,28 @@ def process_get_tables_by_type(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_get_materialized_views_for_rewriting(self, seqid, iprot, oprot): + args = get_materialized_views_for_rewriting_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_materialized_views_for_rewriting_result() + try: + result.success = self._handler.get_materialized_views_for_rewriting(args.db_name) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except MetaException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("get_materialized_views_for_rewriting", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_get_table_meta(self, seqid, iprot, oprot): args = get_table_meta_args() args.read(iprot) @@ -8951,6 +9107,34 @@ def process_get_table_objects_by_name_req(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_get_materialization_invalidation_info(self, seqid, iprot, oprot): + args = get_materialization_invalidation_info_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_materialization_invalidation_info_result() + try: + result.success = self._handler.get_materialization_invalidation_info(args.dbname, args.tbl_names) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except MetaException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except InvalidOperationException as o2: + msg_type = TMessageType.REPLY + result.o2 = o2 + except UnknownDBException as o3: + msg_type = TMessageType.REPLY + result.o3 = o3 + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("get_materialization_invalidation_info", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_get_table_names_by_filter(self, seqid, iprot, oprot): args = get_table_names_by_filter_args() args.read(iprot) @@ -11781,6 +11965,25 @@ def process_add_dynamic_partitions(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_get_last_completed_transaction_for_table(self, seqid, iprot, oprot): + args = get_last_completed_transaction_for_table_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_last_completed_transaction_for_table_result() + try: + result.success = self._handler.get_last_completed_transaction_for_table(args.db_name, args.table_name, args.txns_snapshot) + 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_last_completed_transaction_for_table", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_get_next_notification(self, seqid, iprot, oprot): args = get_next_notification_args() args.read(iprot) @@ -13371,10 +13574,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype702, _size699) = iprot.readListBegin() - for _i703 in xrange(_size699): - _elem704 = iprot.readString() - self.success.append(_elem704) + (_etype725, _size722) = iprot.readListBegin() + for _i726 in xrange(_size722): + _elem727 = iprot.readString() + self.success.append(_elem727) iprot.readListEnd() else: iprot.skip(ftype) @@ -13397,8 +13600,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 iter705 in self.success: - oprot.writeString(iter705) + for iter728 in self.success: + oprot.writeString(iter728) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13503,10 +13706,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype709, _size706) = iprot.readListBegin() - for _i710 in xrange(_size706): - _elem711 = iprot.readString() - self.success.append(_elem711) + (_etype732, _size729) = iprot.readListBegin() + for _i733 in xrange(_size729): + _elem734 = iprot.readString() + self.success.append(_elem734) iprot.readListEnd() else: iprot.skip(ftype) @@ -13529,8 +13732,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 iter712 in self.success: - oprot.writeString(iter712) + for iter735 in self.success: + oprot.writeString(iter735) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14300,12 +14503,12 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype714, _vtype715, _size713 ) = iprot.readMapBegin() - for _i717 in xrange(_size713): - _key718 = iprot.readString() - _val719 = Type() - _val719.read(iprot) - self.success[_key718] = _val719 + (_ktype737, _vtype738, _size736 ) = iprot.readMapBegin() + for _i740 in xrange(_size736): + _key741 = iprot.readString() + _val742 = Type() + _val742.read(iprot) + self.success[_key741] = _val742 iprot.readMapEnd() else: iprot.skip(ftype) @@ -14328,9 +14531,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 kiter720,viter721 in self.success.items(): - oprot.writeString(kiter720) - viter721.write(oprot) + for kiter743,viter744 in self.success.items(): + oprot.writeString(kiter743) + viter744.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -14473,11 +14676,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype725, _size722) = iprot.readListBegin() - for _i726 in xrange(_size722): - _elem727 = FieldSchema() - _elem727.read(iprot) - self.success.append(_elem727) + (_etype748, _size745) = iprot.readListBegin() + for _i749 in xrange(_size745): + _elem750 = FieldSchema() + _elem750.read(iprot) + self.success.append(_elem750) iprot.readListEnd() else: iprot.skip(ftype) @@ -14512,8 +14715,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 iter728 in self.success: - iter728.write(oprot) + for iter751 in self.success: + iter751.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14680,11 +14883,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype732, _size729) = iprot.readListBegin() - for _i733 in xrange(_size729): - _elem734 = FieldSchema() - _elem734.read(iprot) - self.success.append(_elem734) + (_etype755, _size752) = iprot.readListBegin() + for _i756 in xrange(_size752): + _elem757 = FieldSchema() + _elem757.read(iprot) + self.success.append(_elem757) iprot.readListEnd() else: iprot.skip(ftype) @@ -14719,8 +14922,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 iter735 in self.success: - iter735.write(oprot) + for iter758 in self.success: + iter758.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14873,11 +15076,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype739, _size736) = iprot.readListBegin() - for _i740 in xrange(_size736): - _elem741 = FieldSchema() - _elem741.read(iprot) - self.success.append(_elem741) + (_etype762, _size759) = iprot.readListBegin() + for _i763 in xrange(_size759): + _elem764 = FieldSchema() + _elem764.read(iprot) + self.success.append(_elem764) iprot.readListEnd() else: iprot.skip(ftype) @@ -14912,8 +15115,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 iter742 in self.success: - iter742.write(oprot) + for iter765 in self.success: + iter765.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15080,11 +15283,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype746, _size743) = iprot.readListBegin() - for _i747 in xrange(_size743): - _elem748 = FieldSchema() - _elem748.read(iprot) - self.success.append(_elem748) + (_etype769, _size766) = iprot.readListBegin() + for _i770 in xrange(_size766): + _elem771 = FieldSchema() + _elem771.read(iprot) + self.success.append(_elem771) iprot.readListEnd() else: iprot.skip(ftype) @@ -15119,8 +15322,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 iter749 in self.success: - iter749.write(oprot) + for iter772 in self.success: + iter772.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15567,44 +15770,44 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.primaryKeys = [] - (_etype753, _size750) = iprot.readListBegin() - for _i754 in xrange(_size750): - _elem755 = SQLPrimaryKey() - _elem755.read(iprot) - self.primaryKeys.append(_elem755) + (_etype776, _size773) = iprot.readListBegin() + for _i777 in xrange(_size773): + _elem778 = SQLPrimaryKey() + _elem778.read(iprot) + self.primaryKeys.append(_elem778) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.foreignKeys = [] - (_etype759, _size756) = iprot.readListBegin() - for _i760 in xrange(_size756): - _elem761 = SQLForeignKey() - _elem761.read(iprot) - self.foreignKeys.append(_elem761) + (_etype782, _size779) = iprot.readListBegin() + for _i783 in xrange(_size779): + _elem784 = SQLForeignKey() + _elem784.read(iprot) + self.foreignKeys.append(_elem784) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.uniqueConstraints = [] - (_etype765, _size762) = iprot.readListBegin() - for _i766 in xrange(_size762): - _elem767 = SQLUniqueConstraint() - _elem767.read(iprot) - self.uniqueConstraints.append(_elem767) + (_etype788, _size785) = iprot.readListBegin() + for _i789 in xrange(_size785): + _elem790 = SQLUniqueConstraint() + _elem790.read(iprot) + self.uniqueConstraints.append(_elem790) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.notNullConstraints = [] - (_etype771, _size768) = iprot.readListBegin() - for _i772 in xrange(_size768): - _elem773 = SQLNotNullConstraint() - _elem773.read(iprot) - self.notNullConstraints.append(_elem773) + (_etype794, _size791) = iprot.readListBegin() + for _i795 in xrange(_size791): + _elem796 = SQLNotNullConstraint() + _elem796.read(iprot) + self.notNullConstraints.append(_elem796) iprot.readListEnd() else: iprot.skip(ftype) @@ -15625,29 +15828,29 @@ def write(self, oprot): if self.primaryKeys is not None: oprot.writeFieldBegin('primaryKeys', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.primaryKeys)) - for iter774 in self.primaryKeys: - iter774.write(oprot) + for iter797 in self.primaryKeys: + iter797.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 iter775 in self.foreignKeys: - iter775.write(oprot) + for iter798 in self.foreignKeys: + iter798.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.uniqueConstraints is not None: oprot.writeFieldBegin('uniqueConstraints', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.uniqueConstraints)) - for iter776 in self.uniqueConstraints: - iter776.write(oprot) + for iter799 in self.uniqueConstraints: + iter799.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.notNullConstraints is not None: oprot.writeFieldBegin('notNullConstraints', TType.LIST, 5) oprot.writeListBegin(TType.STRUCT, len(self.notNullConstraints)) - for iter777 in self.notNullConstraints: - iter777.write(oprot) + for iter800 in self.notNullConstraints: + iter800.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16913,10 +17116,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.partNames = [] - (_etype781, _size778) = iprot.readListBegin() - for _i782 in xrange(_size778): - _elem783 = iprot.readString() - self.partNames.append(_elem783) + (_etype804, _size801) = iprot.readListBegin() + for _i805 in xrange(_size801): + _elem806 = iprot.readString() + self.partNames.append(_elem806) iprot.readListEnd() else: iprot.skip(ftype) @@ -16941,8 +17144,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 iter784 in self.partNames: - oprot.writeString(iter784) + for iter807 in self.partNames: + oprot.writeString(iter807) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17142,10 +17345,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype788, _size785) = iprot.readListBegin() - for _i789 in xrange(_size785): - _elem790 = iprot.readString() - self.success.append(_elem790) + (_etype811, _size808) = iprot.readListBegin() + for _i812 in xrange(_size808): + _elem813 = iprot.readString() + self.success.append(_elem813) iprot.readListEnd() else: iprot.skip(ftype) @@ -17168,8 +17371,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 iter791 in self.success: - oprot.writeString(iter791) + for iter814 in self.success: + oprot.writeString(iter814) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17319,10 +17522,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype795, _size792) = iprot.readListBegin() - for _i796 in xrange(_size792): - _elem797 = iprot.readString() - self.success.append(_elem797) + (_etype818, _size815) = iprot.readListBegin() + for _i819 in xrange(_size815): + _elem820 = iprot.readString() + self.success.append(_elem820) iprot.readListEnd() else: iprot.skip(ftype) @@ -17345,8 +17548,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 iter798 in self.success: - oprot.writeString(iter798) + for iter821 in self.success: + oprot.writeString(iter821) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17377,25 +17580,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_table_meta_args: +class get_materialized_views_for_rewriting_args: """ Attributes: - - db_patterns - - tbl_patterns - - tbl_types + - db_name """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'db_patterns', None, None, ), # 1 - (2, TType.STRING, 'tbl_patterns', None, None, ), # 2 - (3, TType.LIST, 'tbl_types', (TType.STRING,None), None, ), # 3 + (1, TType.STRING, 'db_name', None, None, ), # 1 ) - def __init__(self, db_patterns=None, tbl_patterns=None, tbl_types=None,): - self.db_patterns = db_patterns - self.tbl_patterns = tbl_patterns - self.tbl_types = tbl_types + def __init__(self, db_name=None,): + self.db_name = db_name 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: @@ -17408,22 +17605,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_patterns = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.tbl_patterns = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.LIST: - self.tbl_types = [] - (_etype802, _size799) = iprot.readListBegin() - for _i803 in xrange(_size799): - _elem804 = iprot.readString() - self.tbl_types.append(_elem804) - iprot.readListEnd() + self.db_name = iprot.readString() else: iprot.skip(ftype) else: @@ -17435,21 +17617,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_table_meta_args') - if self.db_patterns is not None: - oprot.writeFieldBegin('db_patterns', TType.STRING, 1) - oprot.writeString(self.db_patterns) - oprot.writeFieldEnd() - if self.tbl_patterns is not None: - oprot.writeFieldBegin('tbl_patterns', TType.STRING, 2) - oprot.writeString(self.tbl_patterns) - oprot.writeFieldEnd() - if self.tbl_types is not None: - oprot.writeFieldBegin('tbl_types', TType.LIST, 3) - oprot.writeListBegin(TType.STRING, len(self.tbl_types)) - for iter805 in self.tbl_types: - oprot.writeString(iter805) - oprot.writeListEnd() + oprot.writeStructBegin('get_materialized_views_for_rewriting_args') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -17460,9 +17631,7 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.db_patterns) - value = (value * 31) ^ hash(self.tbl_patterns) - value = (value * 31) ^ hash(self.tbl_types) + value = (value * 31) ^ hash(self.db_name) return value def __repr__(self): @@ -17476,7 +17645,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_table_meta_result: +class get_materialized_views_for_rewriting_result: """ Attributes: - success @@ -17484,7 +17653,7 @@ class get_table_meta_result: """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(TableMeta, TableMeta.thrift_spec)), None, ), # 0 + (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) @@ -17504,11 +17673,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype809, _size806) = iprot.readListBegin() - for _i810 in xrange(_size806): - _elem811 = TableMeta() - _elem811.read(iprot) - self.success.append(_elem811) + (_etype825, _size822) = iprot.readListBegin() + for _i826 in xrange(_size822): + _elem827 = iprot.readString() + self.success.append(_elem827) iprot.readListEnd() else: iprot.skip(ftype) @@ -17527,12 +17695,12 @@ 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_table_meta_result') + oprot.writeStructBegin('get_materialized_views_for_rewriting_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter812 in self.success: - iter812.write(oprot) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter828 in self.success: + oprot.writeString(iter828) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17563,19 +17731,25 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_all_tables_args: +class get_table_meta_args: """ Attributes: - - db_name + - db_patterns + - tbl_patterns + - tbl_types """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'db_name', None, None, ), # 1 + (1, TType.STRING, 'db_patterns', None, None, ), # 1 + (2, TType.STRING, 'tbl_patterns', None, None, ), # 2 + (3, TType.LIST, 'tbl_types', (TType.STRING,None), None, ), # 3 ) - def __init__(self, db_name=None,): - self.db_name = db_name + def __init__(self, db_patterns=None, tbl_patterns=None, tbl_types=None,): + self.db_patterns = db_patterns + self.tbl_patterns = tbl_patterns + self.tbl_types = tbl_types 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: @@ -17588,7 +17762,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_patterns = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tbl_patterns = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.tbl_types = [] + (_etype832, _size829) = iprot.readListBegin() + for _i833 in xrange(_size829): + _elem834 = iprot.readString() + self.tbl_types.append(_elem834) + iprot.readListEnd() else: iprot.skip(ftype) else: @@ -17600,10 +17789,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('get_all_tables_args') - if self.db_name is not None: - oprot.writeFieldBegin('db_name', TType.STRING, 1) - oprot.writeString(self.db_name) + oprot.writeStructBegin('get_table_meta_args') + if self.db_patterns is not None: + oprot.writeFieldBegin('db_patterns', TType.STRING, 1) + oprot.writeString(self.db_patterns) + oprot.writeFieldEnd() + if self.tbl_patterns is not None: + oprot.writeFieldBegin('tbl_patterns', TType.STRING, 2) + oprot.writeString(self.tbl_patterns) + oprot.writeFieldEnd() + if self.tbl_types is not None: + oprot.writeFieldBegin('tbl_types', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.tbl_types)) + for iter835 in self.tbl_types: + oprot.writeString(iter835) + oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -17614,7 +17814,9 @@ def validate(self): def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.db_name) + value = (value * 31) ^ hash(self.db_patterns) + value = (value * 31) ^ hash(self.tbl_patterns) + value = (value * 31) ^ hash(self.tbl_types) return value def __repr__(self): @@ -17628,7 +17830,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_all_tables_result: +class get_table_meta_result: """ Attributes: - success @@ -17636,7 +17838,7 @@ class get_all_tables_result: """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(TableMeta, TableMeta.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 ) @@ -17656,10 +17858,162 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype816, _size813) = iprot.readListBegin() - for _i817 in xrange(_size813): - _elem818 = iprot.readString() - self.success.append(_elem818) + (_etype839, _size836) = iprot.readListBegin() + for _i840 in xrange(_size836): + _elem841 = TableMeta() + _elem841.read(iprot) + self.success.append(_elem841) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException() + 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('get_table_meta_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter842 in self.success: + iter842.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + 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.success) + 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 get_all_tables_args: + """ + Attributes: + - db_name + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', None, None, ), # 1 + ) + + def __init__(self, db_name=None,): + self.db_name = db_name + + 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.db_name = 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('get_all_tables_args') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.db_name) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class get_all_tables_result: + """ + Attributes: + - success + - o1 + """ + + thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + ) + + def __init__(self, success=None, o1=None,): + self.success = success + 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 == 0: + if ftype == TType.LIST: + self.success = [] + (_etype846, _size843) = iprot.readListBegin() + for _i847 in xrange(_size843): + _elem848 = iprot.readString() + self.success.append(_elem848) iprot.readListEnd() else: iprot.skip(ftype) @@ -17682,8 +18036,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 iter819 in self.success: - oprot.writeString(iter819) + for iter849 in self.success: + oprot.writeString(iter849) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17919,10 +18273,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype823, _size820) = iprot.readListBegin() - for _i824 in xrange(_size820): - _elem825 = iprot.readString() - self.tbl_names.append(_elem825) + (_etype853, _size850) = iprot.readListBegin() + for _i854 in xrange(_size850): + _elem855 = iprot.readString() + self.tbl_names.append(_elem855) iprot.readListEnd() else: iprot.skip(ftype) @@ -17943,8 +18297,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 iter826 in self.tbl_names: - oprot.writeString(iter826) + for iter856 in self.tbl_names: + oprot.writeString(iter856) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17996,11 +18350,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype830, _size827) = iprot.readListBegin() - for _i831 in xrange(_size827): - _elem832 = Table() - _elem832.read(iprot) - self.success.append(_elem832) + (_etype860, _size857) = iprot.readListBegin() + for _i861 in xrange(_size857): + _elem862 = Table() + _elem862.read(iprot) + self.success.append(_elem862) iprot.readListEnd() else: iprot.skip(ftype) @@ -18017,8 +18371,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 iter833 in self.success: - iter833.write(oprot) + for iter863 in self.success: + iter863.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18376,6 +18730,209 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class get_materialization_invalidation_info_args: + """ + Attributes: + - dbname + - tbl_names + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'dbname', None, None, ), # 1 + (2, TType.LIST, 'tbl_names', (TType.STRING,None), None, ), # 2 + ) + + def __init__(self, dbname=None, tbl_names=None,): + self.dbname = dbname + self.tbl_names = tbl_names + + 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.tbl_names = [] + (_etype867, _size864) = iprot.readListBegin() + for _i868 in xrange(_size864): + _elem869 = iprot.readString() + self.tbl_names.append(_elem869) + 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('get_materialization_invalidation_info_args') + if self.dbname is not None: + oprot.writeFieldBegin('dbname', TType.STRING, 1) + oprot.writeString(self.dbname) + oprot.writeFieldEnd() + if self.tbl_names is not None: + oprot.writeFieldBegin('tbl_names', TType.LIST, 2) + oprot.writeListBegin(TType.STRING, len(self.tbl_names)) + for iter870 in self.tbl_names: + oprot.writeString(iter870) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.dbname) + value = (value * 31) ^ hash(self.tbl_names) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class get_materialization_invalidation_info_result: + """ + Attributes: + - success + - o1 + - o2 + - o3 + """ + + thrift_spec = ( + (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(Materialization, Materialization.thrift_spec)), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (UnknownDBException, UnknownDBException.thrift_spec), None, ), # 3 + ) + + 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: + 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.MAP: + self.success = {} + (_ktype872, _vtype873, _size871 ) = iprot.readMapBegin() + for _i875 in xrange(_size871): + _key876 = iprot.readString() + _val877 = Materialization() + _val877.read(iprot) + self.success[_key876] = _val877 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = InvalidOperationException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = UnknownDBException() + self.o3.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('get_materialization_invalidation_info_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) + for kiter878,viter879 in self.success.items(): + oprot.writeString(kiter878) + viter879.write(oprot) + oprot.writeMapEnd() + 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() + + 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) + value = (value * 31) ^ hash(self.o3) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + class get_table_names_by_filter_args: """ Attributes: @@ -18501,10 +19058,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype837, _size834) = iprot.readListBegin() - for _i838 in xrange(_size834): - _elem839 = iprot.readString() - self.success.append(_elem839) + (_etype883, _size880) = iprot.readListBegin() + for _i884 in xrange(_size880): + _elem885 = iprot.readString() + self.success.append(_elem885) iprot.readListEnd() else: iprot.skip(ftype) @@ -18539,8 +19096,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 iter840 in self.success: - oprot.writeString(iter840) + for iter886 in self.success: + oprot.writeString(iter886) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -19510,11 +20067,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype844, _size841) = iprot.readListBegin() - for _i845 in xrange(_size841): - _elem846 = Partition() - _elem846.read(iprot) - self.new_parts.append(_elem846) + (_etype890, _size887) = iprot.readListBegin() + for _i891 in xrange(_size887): + _elem892 = Partition() + _elem892.read(iprot) + self.new_parts.append(_elem892) iprot.readListEnd() else: iprot.skip(ftype) @@ -19531,8 +20088,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 iter847 in self.new_parts: - iter847.write(oprot) + for iter893 in self.new_parts: + iter893.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19690,11 +20247,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype851, _size848) = iprot.readListBegin() - for _i852 in xrange(_size848): - _elem853 = PartitionSpec() - _elem853.read(iprot) - self.new_parts.append(_elem853) + (_etype897, _size894) = iprot.readListBegin() + for _i898 in xrange(_size894): + _elem899 = PartitionSpec() + _elem899.read(iprot) + self.new_parts.append(_elem899) iprot.readListEnd() else: iprot.skip(ftype) @@ -19711,8 +20268,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 iter854 in self.new_parts: - iter854.write(oprot) + for iter900 in self.new_parts: + iter900.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19886,10 +20443,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype858, _size855) = iprot.readListBegin() - for _i859 in xrange(_size855): - _elem860 = iprot.readString() - self.part_vals.append(_elem860) + (_etype904, _size901) = iprot.readListBegin() + for _i905 in xrange(_size901): + _elem906 = iprot.readString() + self.part_vals.append(_elem906) iprot.readListEnd() else: iprot.skip(ftype) @@ -19914,8 +20471,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 iter861 in self.part_vals: - oprot.writeString(iter861) + for iter907 in self.part_vals: + oprot.writeString(iter907) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20268,10 +20825,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype865, _size862) = iprot.readListBegin() - for _i866 in xrange(_size862): - _elem867 = iprot.readString() - self.part_vals.append(_elem867) + (_etype911, _size908) = iprot.readListBegin() + for _i912 in xrange(_size908): + _elem913 = iprot.readString() + self.part_vals.append(_elem913) iprot.readListEnd() else: iprot.skip(ftype) @@ -20302,8 +20859,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 iter868 in self.part_vals: - oprot.writeString(iter868) + for iter914 in self.part_vals: + oprot.writeString(iter914) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -20898,10 +21455,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype872, _size869) = iprot.readListBegin() - for _i873 in xrange(_size869): - _elem874 = iprot.readString() - self.part_vals.append(_elem874) + (_etype918, _size915) = iprot.readListBegin() + for _i919 in xrange(_size915): + _elem920 = iprot.readString() + self.part_vals.append(_elem920) iprot.readListEnd() else: iprot.skip(ftype) @@ -20931,8 +21488,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 iter875 in self.part_vals: - oprot.writeString(iter875) + for iter921 in self.part_vals: + oprot.writeString(iter921) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -21105,10 +21662,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype879, _size876) = iprot.readListBegin() - for _i880 in xrange(_size876): - _elem881 = iprot.readString() - self.part_vals.append(_elem881) + (_etype925, _size922) = iprot.readListBegin() + for _i926 in xrange(_size922): + _elem927 = iprot.readString() + self.part_vals.append(_elem927) iprot.readListEnd() else: iprot.skip(ftype) @@ -21144,8 +21701,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 iter882 in self.part_vals: - oprot.writeString(iter882) + for iter928 in self.part_vals: + oprot.writeString(iter928) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -21882,10 +22439,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype886, _size883) = iprot.readListBegin() - for _i887 in xrange(_size883): - _elem888 = iprot.readString() - self.part_vals.append(_elem888) + (_etype932, _size929) = iprot.readListBegin() + for _i933 in xrange(_size929): + _elem934 = iprot.readString() + self.part_vals.append(_elem934) iprot.readListEnd() else: iprot.skip(ftype) @@ -21910,8 +22467,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 iter889 in self.part_vals: - oprot.writeString(iter889) + for iter935 in self.part_vals: + oprot.writeString(iter935) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22070,11 +22627,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype891, _vtype892, _size890 ) = iprot.readMapBegin() - for _i894 in xrange(_size890): - _key895 = iprot.readString() - _val896 = iprot.readString() - self.partitionSpecs[_key895] = _val896 + (_ktype937, _vtype938, _size936 ) = iprot.readMapBegin() + for _i940 in xrange(_size936): + _key941 = iprot.readString() + _val942 = iprot.readString() + self.partitionSpecs[_key941] = _val942 iprot.readMapEnd() else: iprot.skip(ftype) @@ -22111,9 +22668,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 kiter897,viter898 in self.partitionSpecs.items(): - oprot.writeString(kiter897) - oprot.writeString(viter898) + for kiter943,viter944 in self.partitionSpecs.items(): + oprot.writeString(kiter943) + oprot.writeString(viter944) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -22318,11 +22875,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype900, _vtype901, _size899 ) = iprot.readMapBegin() - for _i903 in xrange(_size899): - _key904 = iprot.readString() - _val905 = iprot.readString() - self.partitionSpecs[_key904] = _val905 + (_ktype946, _vtype947, _size945 ) = iprot.readMapBegin() + for _i949 in xrange(_size945): + _key950 = iprot.readString() + _val951 = iprot.readString() + self.partitionSpecs[_key950] = _val951 iprot.readMapEnd() else: iprot.skip(ftype) @@ -22359,9 +22916,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 kiter906,viter907 in self.partitionSpecs.items(): - oprot.writeString(kiter906) - oprot.writeString(viter907) + for kiter952,viter953 in self.partitionSpecs.items(): + oprot.writeString(kiter952) + oprot.writeString(viter953) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -22444,11 +23001,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype911, _size908) = iprot.readListBegin() - for _i912 in xrange(_size908): - _elem913 = Partition() - _elem913.read(iprot) - self.success.append(_elem913) + (_etype957, _size954) = iprot.readListBegin() + for _i958 in xrange(_size954): + _elem959 = Partition() + _elem959.read(iprot) + self.success.append(_elem959) iprot.readListEnd() else: iprot.skip(ftype) @@ -22489,8 +23046,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 iter960 in self.success: + iter960.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22584,10 +23141,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype918, _size915) = iprot.readListBegin() - for _i919 in xrange(_size915): - _elem920 = iprot.readString() - self.part_vals.append(_elem920) + (_etype964, _size961) = iprot.readListBegin() + for _i965 in xrange(_size961): + _elem966 = iprot.readString() + self.part_vals.append(_elem966) iprot.readListEnd() else: iprot.skip(ftype) @@ -22599,10 +23156,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype924, _size921) = iprot.readListBegin() - for _i925 in xrange(_size921): - _elem926 = iprot.readString() - self.group_names.append(_elem926) + (_etype970, _size967) = iprot.readListBegin() + for _i971 in xrange(_size967): + _elem972 = iprot.readString() + self.group_names.append(_elem972) iprot.readListEnd() else: iprot.skip(ftype) @@ -22627,8 +23184,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 iter927 in self.part_vals: - oprot.writeString(iter927) + for iter973 in self.part_vals: + oprot.writeString(iter973) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -22638,8 +23195,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 iter928 in self.group_names: - oprot.writeString(iter928) + for iter974 in self.group_names: + oprot.writeString(iter974) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23068,11 +23625,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype932, _size929) = iprot.readListBegin() - for _i933 in xrange(_size929): - _elem934 = Partition() - _elem934.read(iprot) - self.success.append(_elem934) + (_etype978, _size975) = iprot.readListBegin() + for _i979 in xrange(_size975): + _elem980 = Partition() + _elem980.read(iprot) + self.success.append(_elem980) iprot.readListEnd() else: iprot.skip(ftype) @@ -23101,8 +23658,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 iter935 in self.success: - iter935.write(oprot) + for iter981 in self.success: + iter981.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -23196,10 +23753,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype939, _size936) = iprot.readListBegin() - for _i940 in xrange(_size936): - _elem941 = iprot.readString() - self.group_names.append(_elem941) + (_etype985, _size982) = iprot.readListBegin() + for _i986 in xrange(_size982): + _elem987 = iprot.readString() + self.group_names.append(_elem987) iprot.readListEnd() else: iprot.skip(ftype) @@ -23232,8 +23789,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 iter942 in self.group_names: - oprot.writeString(iter942) + for iter988 in self.group_names: + oprot.writeString(iter988) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23294,11 +23851,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype946, _size943) = iprot.readListBegin() - for _i947 in xrange(_size943): - _elem948 = Partition() - _elem948.read(iprot) - self.success.append(_elem948) + (_etype992, _size989) = iprot.readListBegin() + for _i993 in xrange(_size989): + _elem994 = Partition() + _elem994.read(iprot) + self.success.append(_elem994) iprot.readListEnd() else: iprot.skip(ftype) @@ -23327,8 +23884,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 iter949 in self.success: - iter949.write(oprot) + for iter995 in self.success: + iter995.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -23486,11 +24043,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype953, _size950) = iprot.readListBegin() - for _i954 in xrange(_size950): - _elem955 = PartitionSpec() - _elem955.read(iprot) - self.success.append(_elem955) + (_etype999, _size996) = iprot.readListBegin() + for _i1000 in xrange(_size996): + _elem1001 = PartitionSpec() + _elem1001.read(iprot) + self.success.append(_elem1001) iprot.readListEnd() else: iprot.skip(ftype) @@ -23519,8 +24076,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 iter956 in self.success: - iter956.write(oprot) + for iter1002 in self.success: + iter1002.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -23678,10 +24235,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) + (_etype1006, _size1003) = iprot.readListBegin() + for _i1007 in xrange(_size1003): + _elem1008 = iprot.readString() + self.success.append(_elem1008) iprot.readListEnd() else: iprot.skip(ftype) @@ -23710,8 +24267,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 iter1009 in self.success: + oprot.writeString(iter1009) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -23951,10 +24508,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype967, _size964) = iprot.readListBegin() - for _i968 in xrange(_size964): - _elem969 = iprot.readString() - self.part_vals.append(_elem969) + (_etype1013, _size1010) = iprot.readListBegin() + for _i1014 in xrange(_size1010): + _elem1015 = iprot.readString() + self.part_vals.append(_elem1015) iprot.readListEnd() else: iprot.skip(ftype) @@ -23984,8 +24541,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 iter970 in self.part_vals: - oprot.writeString(iter970) + for iter1016 in self.part_vals: + oprot.writeString(iter1016) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -24049,11 +24606,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype974, _size971) = iprot.readListBegin() - for _i975 in xrange(_size971): - _elem976 = Partition() - _elem976.read(iprot) - self.success.append(_elem976) + (_etype1020, _size1017) = iprot.readListBegin() + for _i1021 in xrange(_size1017): + _elem1022 = Partition() + _elem1022.read(iprot) + self.success.append(_elem1022) iprot.readListEnd() else: iprot.skip(ftype) @@ -24082,8 +24639,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 iter977 in self.success: - iter977.write(oprot) + for iter1023 in self.success: + iter1023.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -24170,10 +24727,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype981, _size978) = iprot.readListBegin() - for _i982 in xrange(_size978): - _elem983 = iprot.readString() - self.part_vals.append(_elem983) + (_etype1027, _size1024) = iprot.readListBegin() + for _i1028 in xrange(_size1024): + _elem1029 = iprot.readString() + self.part_vals.append(_elem1029) iprot.readListEnd() else: iprot.skip(ftype) @@ -24190,10 +24747,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype987, _size984) = iprot.readListBegin() - for _i988 in xrange(_size984): - _elem989 = iprot.readString() - self.group_names.append(_elem989) + (_etype1033, _size1030) = iprot.readListBegin() + for _i1034 in xrange(_size1030): + _elem1035 = iprot.readString() + self.group_names.append(_elem1035) iprot.readListEnd() else: iprot.skip(ftype) @@ -24218,8 +24775,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 iter990 in self.part_vals: - oprot.writeString(iter990) + for iter1036 in self.part_vals: + oprot.writeString(iter1036) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -24233,8 +24790,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 iter991 in self.group_names: - oprot.writeString(iter991) + for iter1037 in self.group_names: + oprot.writeString(iter1037) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24296,11 +24853,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype995, _size992) = iprot.readListBegin() - for _i996 in xrange(_size992): - _elem997 = Partition() - _elem997.read(iprot) - self.success.append(_elem997) + (_etype1041, _size1038) = iprot.readListBegin() + for _i1042 in xrange(_size1038): + _elem1043 = Partition() + _elem1043.read(iprot) + self.success.append(_elem1043) iprot.readListEnd() else: iprot.skip(ftype) @@ -24329,8 +24886,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 iter998 in self.success: - iter998.write(oprot) + for iter1044 in self.success: + iter1044.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -24411,10 +24968,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1002, _size999) = iprot.readListBegin() - for _i1003 in xrange(_size999): - _elem1004 = iprot.readString() - self.part_vals.append(_elem1004) + (_etype1048, _size1045) = iprot.readListBegin() + for _i1049 in xrange(_size1045): + _elem1050 = iprot.readString() + self.part_vals.append(_elem1050) iprot.readListEnd() else: iprot.skip(ftype) @@ -24444,8 +25001,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 iter1005 in self.part_vals: - oprot.writeString(iter1005) + for iter1051 in self.part_vals: + oprot.writeString(iter1051) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -24509,10 +25066,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1009, _size1006) = iprot.readListBegin() - for _i1010 in xrange(_size1006): - _elem1011 = iprot.readString() - self.success.append(_elem1011) + (_etype1055, _size1052) = iprot.readListBegin() + for _i1056 in xrange(_size1052): + _elem1057 = iprot.readString() + self.success.append(_elem1057) iprot.readListEnd() else: iprot.skip(ftype) @@ -24541,8 +25098,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 iter1012 in self.success: - oprot.writeString(iter1012) + for iter1058 in self.success: + oprot.writeString(iter1058) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -24713,11 +25270,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1016, _size1013) = iprot.readListBegin() - for _i1017 in xrange(_size1013): - _elem1018 = Partition() - _elem1018.read(iprot) - self.success.append(_elem1018) + (_etype1062, _size1059) = iprot.readListBegin() + for _i1063 in xrange(_size1059): + _elem1064 = Partition() + _elem1064.read(iprot) + self.success.append(_elem1064) iprot.readListEnd() else: iprot.skip(ftype) @@ -24746,8 +25303,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 iter1019 in self.success: - iter1019.write(oprot) + for iter1065 in self.success: + iter1065.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -24918,11 +25475,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1023, _size1020) = iprot.readListBegin() - for _i1024 in xrange(_size1020): - _elem1025 = PartitionSpec() - _elem1025.read(iprot) - self.success.append(_elem1025) + (_etype1069, _size1066) = iprot.readListBegin() + for _i1070 in xrange(_size1066): + _elem1071 = PartitionSpec() + _elem1071.read(iprot) + self.success.append(_elem1071) iprot.readListEnd() else: iprot.skip(ftype) @@ -24951,8 +25508,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 iter1026 in self.success: - iter1026.write(oprot) + for iter1072 in self.success: + iter1072.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -25372,10 +25929,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype1030, _size1027) = iprot.readListBegin() - for _i1031 in xrange(_size1027): - _elem1032 = iprot.readString() - self.names.append(_elem1032) + (_etype1076, _size1073) = iprot.readListBegin() + for _i1077 in xrange(_size1073): + _elem1078 = iprot.readString() + self.names.append(_elem1078) iprot.readListEnd() else: iprot.skip(ftype) @@ -25400,8 +25957,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 iter1033 in self.names: - oprot.writeString(iter1033) + for iter1079 in self.names: + oprot.writeString(iter1079) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -25460,11 +26017,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1037, _size1034) = iprot.readListBegin() - for _i1038 in xrange(_size1034): - _elem1039 = Partition() - _elem1039.read(iprot) - self.success.append(_elem1039) + (_etype1083, _size1080) = iprot.readListBegin() + for _i1084 in xrange(_size1080): + _elem1085 = Partition() + _elem1085.read(iprot) + self.success.append(_elem1085) iprot.readListEnd() else: iprot.skip(ftype) @@ -25493,8 +26050,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 iter1040 in self.success: - iter1040.write(oprot) + for iter1086 in self.success: + iter1086.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -25744,11 +26301,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype1044, _size1041) = iprot.readListBegin() - for _i1045 in xrange(_size1041): - _elem1046 = Partition() - _elem1046.read(iprot) - self.new_parts.append(_elem1046) + (_etype1090, _size1087) = iprot.readListBegin() + for _i1091 in xrange(_size1087): + _elem1092 = Partition() + _elem1092.read(iprot) + self.new_parts.append(_elem1092) iprot.readListEnd() else: iprot.skip(ftype) @@ -25773,8 +26330,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 iter1047 in self.new_parts: - iter1047.write(oprot) + for iter1093 in self.new_parts: + iter1093.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -25927,11 +26484,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype1051, _size1048) = iprot.readListBegin() - for _i1052 in xrange(_size1048): - _elem1053 = Partition() - _elem1053.read(iprot) - self.new_parts.append(_elem1053) + (_etype1097, _size1094) = iprot.readListBegin() + for _i1098 in xrange(_size1094): + _elem1099 = Partition() + _elem1099.read(iprot) + self.new_parts.append(_elem1099) iprot.readListEnd() else: iprot.skip(ftype) @@ -25962,8 +26519,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 iter1054 in self.new_parts: - iter1054.write(oprot) + for iter1100 in self.new_parts: + iter1100.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -26307,10 +26864,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1058, _size1055) = iprot.readListBegin() - for _i1059 in xrange(_size1055): - _elem1060 = iprot.readString() - self.part_vals.append(_elem1060) + (_etype1104, _size1101) = iprot.readListBegin() + for _i1105 in xrange(_size1101): + _elem1106 = iprot.readString() + self.part_vals.append(_elem1106) iprot.readListEnd() else: iprot.skip(ftype) @@ -26341,8 +26898,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 iter1061 in self.part_vals: - oprot.writeString(iter1061) + for iter1107 in self.part_vals: + oprot.writeString(iter1107) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -26484,10 +27041,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_vals = [] - (_etype1065, _size1062) = iprot.readListBegin() - for _i1066 in xrange(_size1062): - _elem1067 = iprot.readString() - self.part_vals.append(_elem1067) + (_etype1111, _size1108) = iprot.readListBegin() + for _i1112 in xrange(_size1108): + _elem1113 = iprot.readString() + self.part_vals.append(_elem1113) iprot.readListEnd() else: iprot.skip(ftype) @@ -26509,8 +27066,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 iter1068 in self.part_vals: - oprot.writeString(iter1068) + for iter1114 in self.part_vals: + oprot.writeString(iter1114) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -26868,10 +27425,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1072, _size1069) = iprot.readListBegin() - for _i1073 in xrange(_size1069): - _elem1074 = iprot.readString() - self.success.append(_elem1074) + (_etype1118, _size1115) = iprot.readListBegin() + for _i1119 in xrange(_size1115): + _elem1120 = iprot.readString() + self.success.append(_elem1120) iprot.readListEnd() else: iprot.skip(ftype) @@ -26894,8 +27451,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 iter1075 in self.success: - oprot.writeString(iter1075) + for iter1121 in self.success: + oprot.writeString(iter1121) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27019,11 +27576,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype1077, _vtype1078, _size1076 ) = iprot.readMapBegin() - for _i1080 in xrange(_size1076): - _key1081 = iprot.readString() - _val1082 = iprot.readString() - self.success[_key1081] = _val1082 + (_ktype1123, _vtype1124, _size1122 ) = iprot.readMapBegin() + for _i1126 in xrange(_size1122): + _key1127 = iprot.readString() + _val1128 = iprot.readString() + self.success[_key1127] = _val1128 iprot.readMapEnd() else: iprot.skip(ftype) @@ -27046,9 +27603,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 kiter1083,viter1084 in self.success.items(): - oprot.writeString(kiter1083) - oprot.writeString(viter1084) + for kiter1129,viter1130 in self.success.items(): + oprot.writeString(kiter1129) + oprot.writeString(viter1130) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27124,11 +27681,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype1086, _vtype1087, _size1085 ) = iprot.readMapBegin() - for _i1089 in xrange(_size1085): - _key1090 = iprot.readString() - _val1091 = iprot.readString() - self.part_vals[_key1090] = _val1091 + (_ktype1132, _vtype1133, _size1131 ) = iprot.readMapBegin() + for _i1135 in xrange(_size1131): + _key1136 = iprot.readString() + _val1137 = iprot.readString() + self.part_vals[_key1136] = _val1137 iprot.readMapEnd() else: iprot.skip(ftype) @@ -27158,9 +27715,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 kiter1092,viter1093 in self.part_vals.items(): - oprot.writeString(kiter1092) - oprot.writeString(viter1093) + for kiter1138,viter1139 in self.part_vals.items(): + oprot.writeString(kiter1138) + oprot.writeString(viter1139) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -27374,11 +27931,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype1095, _vtype1096, _size1094 ) = iprot.readMapBegin() - for _i1098 in xrange(_size1094): - _key1099 = iprot.readString() - _val1100 = iprot.readString() - self.part_vals[_key1099] = _val1100 + (_ktype1141, _vtype1142, _size1140 ) = iprot.readMapBegin() + for _i1144 in xrange(_size1140): + _key1145 = iprot.readString() + _val1146 = iprot.readString() + self.part_vals[_key1145] = _val1146 iprot.readMapEnd() else: iprot.skip(ftype) @@ -27408,9 +27965,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 kiter1101,viter1102 in self.part_vals.items(): - oprot.writeString(kiter1101) - oprot.writeString(viter1102) + for kiter1147,viter1148 in self.part_vals.items(): + oprot.writeString(kiter1147) + oprot.writeString(viter1148) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -28465,11 +29022,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1106, _size1103) = iprot.readListBegin() - for _i1107 in xrange(_size1103): - _elem1108 = Index() - _elem1108.read(iprot) - self.success.append(_elem1108) + (_etype1152, _size1149) = iprot.readListBegin() + for _i1153 in xrange(_size1149): + _elem1154 = Index() + _elem1154.read(iprot) + self.success.append(_elem1154) iprot.readListEnd() else: iprot.skip(ftype) @@ -28498,8 +29055,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 iter1109 in self.success: - iter1109.write(oprot) + for iter1155 in self.success: + iter1155.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28654,10 +29211,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1113, _size1110) = iprot.readListBegin() - for _i1114 in xrange(_size1110): - _elem1115 = iprot.readString() - self.success.append(_elem1115) + (_etype1159, _size1156) = iprot.readListBegin() + for _i1160 in xrange(_size1156): + _elem1161 = iprot.readString() + self.success.append(_elem1161) iprot.readListEnd() else: iprot.skip(ftype) @@ -28680,8 +29237,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 iter1116 in self.success: - oprot.writeString(iter1116) + for iter1162 in self.success: + oprot.writeString(iter1162) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -31865,10 +32422,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1120, _size1117) = iprot.readListBegin() - for _i1121 in xrange(_size1117): - _elem1122 = iprot.readString() - self.success.append(_elem1122) + (_etype1166, _size1163) = iprot.readListBegin() + for _i1167 in xrange(_size1163): + _elem1168 = iprot.readString() + self.success.append(_elem1168) iprot.readListEnd() else: iprot.skip(ftype) @@ -31891,8 +32448,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 iter1123 in self.success: - oprot.writeString(iter1123) + for iter1169 in self.success: + oprot.writeString(iter1169) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -32580,10 +33137,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1127, _size1124) = iprot.readListBegin() - for _i1128 in xrange(_size1124): - _elem1129 = iprot.readString() - self.success.append(_elem1129) + (_etype1173, _size1170) = iprot.readListBegin() + for _i1174 in xrange(_size1170): + _elem1175 = iprot.readString() + self.success.append(_elem1175) iprot.readListEnd() else: iprot.skip(ftype) @@ -32606,8 +33163,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 iter1130 in self.success: - oprot.writeString(iter1130) + for iter1176 in self.success: + oprot.writeString(iter1176) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -33121,11 +33678,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1134, _size1131) = iprot.readListBegin() - for _i1135 in xrange(_size1131): - _elem1136 = Role() - _elem1136.read(iprot) - self.success.append(_elem1136) + (_etype1180, _size1177) = iprot.readListBegin() + for _i1181 in xrange(_size1177): + _elem1182 = Role() + _elem1182.read(iprot) + self.success.append(_elem1182) iprot.readListEnd() else: iprot.skip(ftype) @@ -33148,8 +33705,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 iter1137 in self.success: - iter1137.write(oprot) + for iter1183 in self.success: + iter1183.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -33658,10 +34215,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype1141, _size1138) = iprot.readListBegin() - for _i1142 in xrange(_size1138): - _elem1143 = iprot.readString() - self.group_names.append(_elem1143) + (_etype1187, _size1184) = iprot.readListBegin() + for _i1188 in xrange(_size1184): + _elem1189 = iprot.readString() + self.group_names.append(_elem1189) iprot.readListEnd() else: iprot.skip(ftype) @@ -33686,8 +34243,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 iter1144 in self.group_names: - oprot.writeString(iter1144) + for iter1190 in self.group_names: + oprot.writeString(iter1190) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -33914,11 +34471,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1148, _size1145) = iprot.readListBegin() - for _i1149 in xrange(_size1145): - _elem1150 = HiveObjectPrivilege() - _elem1150.read(iprot) - self.success.append(_elem1150) + (_etype1194, _size1191) = iprot.readListBegin() + for _i1195 in xrange(_size1191): + _elem1196 = HiveObjectPrivilege() + _elem1196.read(iprot) + self.success.append(_elem1196) iprot.readListEnd() else: iprot.skip(ftype) @@ -33941,8 +34498,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 iter1151 in self.success: - iter1151.write(oprot) + for iter1197 in self.success: + iter1197.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -34440,10 +34997,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype1155, _size1152) = iprot.readListBegin() - for _i1156 in xrange(_size1152): - _elem1157 = iprot.readString() - self.group_names.append(_elem1157) + (_etype1201, _size1198) = iprot.readListBegin() + for _i1202 in xrange(_size1198): + _elem1203 = iprot.readString() + self.group_names.append(_elem1203) iprot.readListEnd() else: iprot.skip(ftype) @@ -34464,8 +35021,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 iter1158 in self.group_names: - oprot.writeString(iter1158) + for iter1204 in self.group_names: + oprot.writeString(iter1204) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -34520,10 +35077,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1162, _size1159) = iprot.readListBegin() - for _i1163 in xrange(_size1159): - _elem1164 = iprot.readString() - self.success.append(_elem1164) + (_etype1208, _size1205) = iprot.readListBegin() + for _i1209 in xrange(_size1205): + _elem1210 = iprot.readString() + self.success.append(_elem1210) iprot.readListEnd() else: iprot.skip(ftype) @@ -34546,8 +35103,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 iter1165 in self.success: - oprot.writeString(iter1165) + for iter1211 in self.success: + oprot.writeString(iter1211) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -35479,10 +36036,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1169, _size1166) = iprot.readListBegin() - for _i1170 in xrange(_size1166): - _elem1171 = iprot.readString() - self.success.append(_elem1171) + (_etype1215, _size1212) = iprot.readListBegin() + for _i1216 in xrange(_size1212): + _elem1217 = iprot.readString() + self.success.append(_elem1217) iprot.readListEnd() else: iprot.skip(ftype) @@ -35499,8 +36056,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 iter1172 in self.success: - oprot.writeString(iter1172) + for iter1218 in self.success: + oprot.writeString(iter1218) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -36027,10 +36584,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1176, _size1173) = iprot.readListBegin() - for _i1177 in xrange(_size1173): - _elem1178 = iprot.readString() - self.success.append(_elem1178) + (_etype1222, _size1219) = iprot.readListBegin() + for _i1223 in xrange(_size1219): + _elem1224 = iprot.readString() + self.success.append(_elem1224) iprot.readListEnd() else: iprot.skip(ftype) @@ -36047,8 +36604,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 iter1179 in self.success: - oprot.writeString(iter1179) + for iter1225 in self.success: + oprot.writeString(iter1225) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -38257,6 +38814,163 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class get_last_completed_transaction_for_table_args: + """ + Attributes: + - db_name + - table_name + - txns_snapshot + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', None, None, ), # 1 + (2, TType.STRING, 'table_name', None, None, ), # 2 + (3, TType.STRUCT, 'txns_snapshot', (TxnsSnapshot, TxnsSnapshot.thrift_spec), None, ), # 3 + ) + + def __init__(self, db_name=None, table_name=None, txns_snapshot=None,): + self.db_name = db_name + self.table_name = table_name + self.txns_snapshot = txns_snapshot + + 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.db_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.table_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.txns_snapshot = TxnsSnapshot() + self.txns_snapshot.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('get_last_completed_transaction_for_table_args') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name) + oprot.writeFieldEnd() + if self.table_name is not None: + oprot.writeFieldBegin('table_name', TType.STRING, 2) + oprot.writeString(self.table_name) + oprot.writeFieldEnd() + if self.txns_snapshot is not None: + oprot.writeFieldBegin('txns_snapshot', TType.STRUCT, 3) + self.txns_snapshot.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.db_name) + value = (value * 31) ^ hash(self.table_name) + value = (value * 31) ^ hash(self.txns_snapshot) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class get_last_completed_transaction_for_table_result: + """ + Attributes: + - success + """ + + thrift_spec = ( + (0, TType.STRUCT, 'success', (BasicTxnInfo, BasicTxnInfo.thrift_spec), None, ), # 0 + ) + + def __init__(self, success=None,): + self.success = success + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = BasicTxnInfo() + self.success.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('get_last_completed_transaction_for_table_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.success) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + class get_next_notification_args: """ Attributes: @@ -38505,7 +39219,11 @@ class get_notification_events_count_args: - rqst """ - thrift_spec = None + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'rqst', (NotificationEventsCountRequest, NotificationEventsCountRequest.thrift_spec), None, ), # 1 + ) + def __init__(self, rqst=None,): self.rqst = rqst @@ -38518,7 +39236,7 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == -1: + if fid == 1: if ftype == TType.STRUCT: self.rqst = NotificationEventsCountRequest() self.rqst.read(iprot) @@ -38535,7 +39253,7 @@ def write(self, oprot): return oprot.writeStructBegin('get_notification_events_count_args') if self.rqst is not None: - oprot.writeFieldBegin('rqst', TType.STRUCT, -1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() diff --git a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py index 863031d504..8b71ee4445 100644 --- a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py +++ b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py @@ -3453,6 +3453,7 @@ class Table: - privileges - temporary - rewriteEnabled + - creationMetadata """ thrift_spec = ( @@ -3472,9 +3473,10 @@ 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.MAP, 'creationMetadata', (TType.STRING,None,TType.STRUCT,(BasicTxnInfo, BasicTxnInfo.thrift_spec)), None, ), # 16 ) - 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,): + 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, creationMetadata=None,): self.tableName = tableName self.dbName = dbName self.owner = owner @@ -3490,6 +3492,7 @@ def __init__(self, tableName=None, dbName=None, owner=None, createTime=None, las self.privileges = privileges self.temporary = temporary self.rewriteEnabled = rewriteEnabled + self.creationMetadata = creationMetadata 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: @@ -3589,6 +3592,18 @@ def read(self, iprot): self.rewriteEnabled = iprot.readBool() else: iprot.skip(ftype) + elif fid == 16: + if ftype == TType.MAP: + self.creationMetadata = {} + (_ktype182, _vtype183, _size181 ) = iprot.readMapBegin() + for _i185 in xrange(_size181): + _key186 = iprot.readString() + _val187 = BasicTxnInfo() + _val187.read(iprot) + self.creationMetadata[_key186] = _val187 + iprot.readMapEnd() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -3630,16 +3645,16 @@ def write(self, oprot): if self.partitionKeys is not None: oprot.writeFieldBegin('partitionKeys', TType.LIST, 8) oprot.writeListBegin(TType.STRUCT, len(self.partitionKeys)) - for iter181 in self.partitionKeys: - iter181.write(oprot) + for iter188 in self.partitionKeys: + iter188.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.parameters is not None: oprot.writeFieldBegin('parameters', TType.MAP, 9) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) - for kiter182,viter183 in self.parameters.items(): - oprot.writeString(kiter182) - oprot.writeString(viter183) + for kiter189,viter190 in self.parameters.items(): + oprot.writeString(kiter189) + oprot.writeString(viter190) oprot.writeMapEnd() oprot.writeFieldEnd() if self.viewOriginalText is not None: @@ -3666,6 +3681,14 @@ def write(self, oprot): oprot.writeFieldBegin('rewriteEnabled', TType.BOOL, 15) oprot.writeBool(self.rewriteEnabled) oprot.writeFieldEnd() + if self.creationMetadata is not None: + oprot.writeFieldBegin('creationMetadata', TType.MAP, 16) + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.creationMetadata)) + for kiter191,viter192 in self.creationMetadata.items(): + oprot.writeString(kiter191) + viter192.write(oprot) + oprot.writeMapEnd() + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -3690,6 +3713,7 @@ 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.creationMetadata) return value def __repr__(self): @@ -3750,10 +3774,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.values = [] - (_etype187, _size184) = iprot.readListBegin() - for _i188 in xrange(_size184): - _elem189 = iprot.readString() - self.values.append(_elem189) + (_etype196, _size193) = iprot.readListBegin() + for _i197 in xrange(_size193): + _elem198 = iprot.readString() + self.values.append(_elem198) iprot.readListEnd() else: iprot.skip(ftype) @@ -3786,11 +3810,11 @@ def read(self, iprot): elif fid == 7: if ftype == TType.MAP: self.parameters = {} - (_ktype191, _vtype192, _size190 ) = iprot.readMapBegin() - for _i194 in xrange(_size190): - _key195 = iprot.readString() - _val196 = iprot.readString() - self.parameters[_key195] = _val196 + (_ktype200, _vtype201, _size199 ) = iprot.readMapBegin() + for _i203 in xrange(_size199): + _key204 = iprot.readString() + _val205 = iprot.readString() + self.parameters[_key204] = _val205 iprot.readMapEnd() else: iprot.skip(ftype) @@ -3813,8 +3837,8 @@ def write(self, oprot): if self.values is not None: oprot.writeFieldBegin('values', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.values)) - for iter197 in self.values: - oprot.writeString(iter197) + for iter206 in self.values: + oprot.writeString(iter206) oprot.writeListEnd() oprot.writeFieldEnd() if self.dbName is not None: @@ -3840,9 +3864,9 @@ def write(self, oprot): if self.parameters is not None: oprot.writeFieldBegin('parameters', TType.MAP, 7) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) - for kiter198,viter199 in self.parameters.items(): - oprot.writeString(kiter198) - oprot.writeString(viter199) + for kiter207,viter208 in self.parameters.items(): + oprot.writeString(kiter207) + oprot.writeString(viter208) oprot.writeMapEnd() oprot.writeFieldEnd() if self.privileges is not None: @@ -3920,10 +3944,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.values = [] - (_etype203, _size200) = iprot.readListBegin() - for _i204 in xrange(_size200): - _elem205 = iprot.readString() - self.values.append(_elem205) + (_etype212, _size209) = iprot.readListBegin() + for _i213 in xrange(_size209): + _elem214 = iprot.readString() + self.values.append(_elem214) iprot.readListEnd() else: iprot.skip(ftype) @@ -3945,11 +3969,11 @@ def read(self, iprot): elif fid == 5: if ftype == TType.MAP: self.parameters = {} - (_ktype207, _vtype208, _size206 ) = iprot.readMapBegin() - for _i210 in xrange(_size206): - _key211 = iprot.readString() - _val212 = iprot.readString() - self.parameters[_key211] = _val212 + (_ktype216, _vtype217, _size215 ) = iprot.readMapBegin() + for _i219 in xrange(_size215): + _key220 = iprot.readString() + _val221 = iprot.readString() + self.parameters[_key220] = _val221 iprot.readMapEnd() else: iprot.skip(ftype) @@ -3972,8 +3996,8 @@ def write(self, oprot): if self.values is not None: oprot.writeFieldBegin('values', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.values)) - for iter213 in self.values: - oprot.writeString(iter213) + for iter222 in self.values: + oprot.writeString(iter222) oprot.writeListEnd() oprot.writeFieldEnd() if self.createTime is not None: @@ -3991,9 +4015,9 @@ def write(self, oprot): if self.parameters is not None: oprot.writeFieldBegin('parameters', TType.MAP, 5) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) - for kiter214,viter215 in self.parameters.items(): - oprot.writeString(kiter214) - oprot.writeString(viter215) + for kiter223,viter224 in self.parameters.items(): + oprot.writeString(kiter223) + oprot.writeString(viter224) oprot.writeMapEnd() oprot.writeFieldEnd() if self.privileges is not None: @@ -4057,11 +4081,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype219, _size216) = iprot.readListBegin() - for _i220 in xrange(_size216): - _elem221 = PartitionWithoutSD() - _elem221.read(iprot) - self.partitions.append(_elem221) + (_etype228, _size225) = iprot.readListBegin() + for _i229 in xrange(_size225): + _elem230 = PartitionWithoutSD() + _elem230.read(iprot) + self.partitions.append(_elem230) iprot.readListEnd() else: iprot.skip(ftype) @@ -4084,8 +4108,8 @@ def write(self, oprot): if self.partitions is not None: oprot.writeFieldBegin('partitions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter222 in self.partitions: - iter222.write(oprot) + for iter231 in self.partitions: + iter231.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.sd is not None: @@ -4142,11 +4166,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype226, _size223) = iprot.readListBegin() - for _i227 in xrange(_size223): - _elem228 = Partition() - _elem228.read(iprot) - self.partitions.append(_elem228) + (_etype235, _size232) = iprot.readListBegin() + for _i236 in xrange(_size232): + _elem237 = Partition() + _elem237.read(iprot) + self.partitions.append(_elem237) iprot.readListEnd() else: iprot.skip(ftype) @@ -4163,8 +4187,8 @@ def write(self, oprot): if self.partitions is not None: oprot.writeFieldBegin('partitions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter229 in self.partitions: - iter229.write(oprot) + for iter238 in self.partitions: + iter238.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4403,11 +4427,11 @@ def read(self, iprot): elif fid == 9: if ftype == TType.MAP: self.parameters = {} - (_ktype231, _vtype232, _size230 ) = iprot.readMapBegin() - for _i234 in xrange(_size230): - _key235 = iprot.readString() - _val236 = iprot.readString() - self.parameters[_key235] = _val236 + (_ktype240, _vtype241, _size239 ) = iprot.readMapBegin() + for _i243 in xrange(_size239): + _key244 = iprot.readString() + _val245 = iprot.readString() + self.parameters[_key244] = _val245 iprot.readMapEnd() else: iprot.skip(ftype) @@ -4461,9 +4485,9 @@ def write(self, oprot): if self.parameters is not None: oprot.writeFieldBegin('parameters', TType.MAP, 9) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) - for kiter237,viter238 in self.parameters.items(): - oprot.writeString(kiter237) - oprot.writeString(viter238) + for kiter246,viter247 in self.parameters.items(): + oprot.writeString(kiter246) + oprot.writeString(viter247) oprot.writeMapEnd() oprot.writeFieldEnd() if self.deferredRebuild is not None: @@ -5891,11 +5915,11 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.statsObj = [] - (_etype242, _size239) = iprot.readListBegin() - for _i243 in xrange(_size239): - _elem244 = ColumnStatisticsObj() - _elem244.read(iprot) - self.statsObj.append(_elem244) + (_etype251, _size248) = iprot.readListBegin() + for _i252 in xrange(_size248): + _elem253 = ColumnStatisticsObj() + _elem253.read(iprot) + self.statsObj.append(_elem253) iprot.readListEnd() else: iprot.skip(ftype) @@ -5916,8 +5940,8 @@ def write(self, oprot): if self.statsObj is not None: oprot.writeFieldBegin('statsObj', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.statsObj)) - for iter245 in self.statsObj: - iter245.write(oprot) + for iter254 in self.statsObj: + iter254.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5977,11 +6001,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.colStats = [] - (_etype249, _size246) = iprot.readListBegin() - for _i250 in xrange(_size246): - _elem251 = ColumnStatisticsObj() - _elem251.read(iprot) - self.colStats.append(_elem251) + (_etype258, _size255) = iprot.readListBegin() + for _i259 in xrange(_size255): + _elem260 = ColumnStatisticsObj() + _elem260.read(iprot) + self.colStats.append(_elem260) iprot.readListEnd() else: iprot.skip(ftype) @@ -6003,8 +6027,8 @@ def write(self, oprot): if self.colStats is not None: oprot.writeFieldBegin('colStats', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.colStats)) - for iter252 in self.colStats: - iter252.write(oprot) + for iter261 in self.colStats: + iter261.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.partsFound is not None: @@ -6068,11 +6092,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.colStats = [] - (_etype256, _size253) = iprot.readListBegin() - for _i257 in xrange(_size253): - _elem258 = ColumnStatistics() - _elem258.read(iprot) - self.colStats.append(_elem258) + (_etype265, _size262) = iprot.readListBegin() + for _i266 in xrange(_size262): + _elem267 = ColumnStatistics() + _elem267.read(iprot) + self.colStats.append(_elem267) iprot.readListEnd() else: iprot.skip(ftype) @@ -6094,8 +6118,8 @@ def write(self, oprot): if self.colStats is not None: oprot.writeFieldBegin('colStats', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.colStats)) - for iter259 in self.colStats: - iter259.write(oprot) + for iter268 in self.colStats: + iter268.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.needMerge is not None: @@ -6157,22 +6181,22 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fieldSchemas = [] - (_etype263, _size260) = iprot.readListBegin() - for _i264 in xrange(_size260): - _elem265 = FieldSchema() - _elem265.read(iprot) - self.fieldSchemas.append(_elem265) + (_etype272, _size269) = iprot.readListBegin() + for _i273 in xrange(_size269): + _elem274 = FieldSchema() + _elem274.read(iprot) + self.fieldSchemas.append(_elem274) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.MAP: self.properties = {} - (_ktype267, _vtype268, _size266 ) = iprot.readMapBegin() - for _i270 in xrange(_size266): - _key271 = iprot.readString() - _val272 = iprot.readString() - self.properties[_key271] = _val272 + (_ktype276, _vtype277, _size275 ) = iprot.readMapBegin() + for _i279 in xrange(_size275): + _key280 = iprot.readString() + _val281 = iprot.readString() + self.properties[_key280] = _val281 iprot.readMapEnd() else: iprot.skip(ftype) @@ -6189,16 +6213,16 @@ def write(self, oprot): if self.fieldSchemas is not None: oprot.writeFieldBegin('fieldSchemas', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.fieldSchemas)) - for iter273 in self.fieldSchemas: - iter273.write(oprot) + for iter282 in self.fieldSchemas: + iter282.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.properties is not None: oprot.writeFieldBegin('properties', TType.MAP, 2) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.properties)) - for kiter274,viter275 in self.properties.items(): - oprot.writeString(kiter274) - oprot.writeString(viter275) + for kiter283,viter284 in self.properties.items(): + oprot.writeString(kiter283) + oprot.writeString(viter284) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6251,11 +6275,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.properties = {} - (_ktype277, _vtype278, _size276 ) = iprot.readMapBegin() - for _i280 in xrange(_size276): - _key281 = iprot.readString() - _val282 = iprot.readString() - self.properties[_key281] = _val282 + (_ktype286, _vtype287, _size285 ) = iprot.readMapBegin() + for _i289 in xrange(_size285): + _key290 = iprot.readString() + _val291 = iprot.readString() + self.properties[_key290] = _val291 iprot.readMapEnd() else: iprot.skip(ftype) @@ -6272,9 +6296,9 @@ def write(self, oprot): if self.properties is not None: oprot.writeFieldBegin('properties', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.properties)) - for kiter283,viter284 in self.properties.items(): - oprot.writeString(kiter283) - oprot.writeString(viter284) + for kiter292,viter293 in self.properties.items(): + oprot.writeString(kiter292) + oprot.writeString(viter293) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6408,11 +6432,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.primaryKeys = [] - (_etype288, _size285) = iprot.readListBegin() - for _i289 in xrange(_size285): - _elem290 = SQLPrimaryKey() - _elem290.read(iprot) - self.primaryKeys.append(_elem290) + (_etype297, _size294) = iprot.readListBegin() + for _i298 in xrange(_size294): + _elem299 = SQLPrimaryKey() + _elem299.read(iprot) + self.primaryKeys.append(_elem299) iprot.readListEnd() else: iprot.skip(ftype) @@ -6429,8 +6453,8 @@ def write(self, oprot): if self.primaryKeys is not None: oprot.writeFieldBegin('primaryKeys', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.primaryKeys)) - for iter291 in self.primaryKeys: - iter291.write(oprot) + for iter300 in self.primaryKeys: + iter300.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6588,11 +6612,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.foreignKeys = [] - (_etype295, _size292) = iprot.readListBegin() - for _i296 in xrange(_size292): - _elem297 = SQLForeignKey() - _elem297.read(iprot) - self.foreignKeys.append(_elem297) + (_etype304, _size301) = iprot.readListBegin() + for _i305 in xrange(_size301): + _elem306 = SQLForeignKey() + _elem306.read(iprot) + self.foreignKeys.append(_elem306) iprot.readListEnd() else: iprot.skip(ftype) @@ -6609,8 +6633,8 @@ def write(self, oprot): if self.foreignKeys is not None: oprot.writeFieldBegin('foreignKeys', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.foreignKeys)) - for iter298 in self.foreignKeys: - iter298.write(oprot) + for iter307 in self.foreignKeys: + iter307.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6746,11 +6770,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.uniqueConstraints = [] - (_etype302, _size299) = iprot.readListBegin() - for _i303 in xrange(_size299): - _elem304 = SQLUniqueConstraint() - _elem304.read(iprot) - self.uniqueConstraints.append(_elem304) + (_etype311, _size308) = iprot.readListBegin() + for _i312 in xrange(_size308): + _elem313 = SQLUniqueConstraint() + _elem313.read(iprot) + self.uniqueConstraints.append(_elem313) iprot.readListEnd() else: iprot.skip(ftype) @@ -6767,8 +6791,8 @@ def write(self, oprot): if self.uniqueConstraints is not None: oprot.writeFieldBegin('uniqueConstraints', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.uniqueConstraints)) - for iter305 in self.uniqueConstraints: - iter305.write(oprot) + for iter314 in self.uniqueConstraints: + iter314.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6904,11 +6928,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.notNullConstraints = [] - (_etype309, _size306) = iprot.readListBegin() - for _i310 in xrange(_size306): - _elem311 = SQLNotNullConstraint() - _elem311.read(iprot) - self.notNullConstraints.append(_elem311) + (_etype318, _size315) = iprot.readListBegin() + for _i319 in xrange(_size315): + _elem320 = SQLNotNullConstraint() + _elem320.read(iprot) + self.notNullConstraints.append(_elem320) iprot.readListEnd() else: iprot.skip(ftype) @@ -6925,8 +6949,8 @@ def write(self, oprot): if self.notNullConstraints is not None: oprot.writeFieldBegin('notNullConstraints', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.notNullConstraints)) - for iter312 in self.notNullConstraints: - iter312.write(oprot) + for iter321 in self.notNullConstraints: + iter321.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7077,11 +7101,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.primaryKeyCols = [] - (_etype316, _size313) = iprot.readListBegin() - for _i317 in xrange(_size313): - _elem318 = SQLPrimaryKey() - _elem318.read(iprot) - self.primaryKeyCols.append(_elem318) + (_etype325, _size322) = iprot.readListBegin() + for _i326 in xrange(_size322): + _elem327 = SQLPrimaryKey() + _elem327.read(iprot) + self.primaryKeyCols.append(_elem327) iprot.readListEnd() else: iprot.skip(ftype) @@ -7098,8 +7122,8 @@ def write(self, oprot): if self.primaryKeyCols is not None: oprot.writeFieldBegin('primaryKeyCols', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.primaryKeyCols)) - for iter319 in self.primaryKeyCols: - iter319.write(oprot) + for iter328 in self.primaryKeyCols: + iter328.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7153,11 +7177,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.foreignKeyCols = [] - (_etype323, _size320) = iprot.readListBegin() - for _i324 in xrange(_size320): - _elem325 = SQLForeignKey() - _elem325.read(iprot) - self.foreignKeyCols.append(_elem325) + (_etype332, _size329) = iprot.readListBegin() + for _i333 in xrange(_size329): + _elem334 = SQLForeignKey() + _elem334.read(iprot) + self.foreignKeyCols.append(_elem334) iprot.readListEnd() else: iprot.skip(ftype) @@ -7174,8 +7198,8 @@ def write(self, oprot): if self.foreignKeyCols is not None: oprot.writeFieldBegin('foreignKeyCols', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.foreignKeyCols)) - for iter326 in self.foreignKeyCols: - iter326.write(oprot) + for iter335 in self.foreignKeyCols: + iter335.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7229,11 +7253,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.uniqueConstraintCols = [] - (_etype330, _size327) = iprot.readListBegin() - for _i331 in xrange(_size327): - _elem332 = SQLUniqueConstraint() - _elem332.read(iprot) - self.uniqueConstraintCols.append(_elem332) + (_etype339, _size336) = iprot.readListBegin() + for _i340 in xrange(_size336): + _elem341 = SQLUniqueConstraint() + _elem341.read(iprot) + self.uniqueConstraintCols.append(_elem341) iprot.readListEnd() else: iprot.skip(ftype) @@ -7250,8 +7274,8 @@ def write(self, oprot): if self.uniqueConstraintCols is not None: oprot.writeFieldBegin('uniqueConstraintCols', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.uniqueConstraintCols)) - for iter333 in self.uniqueConstraintCols: - iter333.write(oprot) + for iter342 in self.uniqueConstraintCols: + iter342.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7305,11 +7329,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.notNullConstraintCols = [] - (_etype337, _size334) = iprot.readListBegin() - for _i338 in xrange(_size334): - _elem339 = SQLNotNullConstraint() - _elem339.read(iprot) - self.notNullConstraintCols.append(_elem339) + (_etype346, _size343) = iprot.readListBegin() + for _i347 in xrange(_size343): + _elem348 = SQLNotNullConstraint() + _elem348.read(iprot) + self.notNullConstraintCols.append(_elem348) iprot.readListEnd() else: iprot.skip(ftype) @@ -7326,8 +7350,8 @@ def write(self, oprot): if self.notNullConstraintCols is not None: oprot.writeFieldBegin('notNullConstraintCols', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.notNullConstraintCols)) - for iter340 in self.notNullConstraintCols: - iter340.write(oprot) + for iter349 in self.notNullConstraintCols: + iter349.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7384,11 +7408,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype344, _size341) = iprot.readListBegin() - for _i345 in xrange(_size341): - _elem346 = Partition() - _elem346.read(iprot) - self.partitions.append(_elem346) + (_etype353, _size350) = iprot.readListBegin() + for _i354 in xrange(_size350): + _elem355 = Partition() + _elem355.read(iprot) + self.partitions.append(_elem355) iprot.readListEnd() else: iprot.skip(ftype) @@ -7410,8 +7434,8 @@ def write(self, oprot): if self.partitions is not None: oprot.writeFieldBegin('partitions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter347 in self.partitions: - iter347.write(oprot) + for iter356 in self.partitions: + iter356.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.hasUnknownPartitions is not None: @@ -7595,11 +7619,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tableStats = [] - (_etype351, _size348) = iprot.readListBegin() - for _i352 in xrange(_size348): - _elem353 = ColumnStatisticsObj() - _elem353.read(iprot) - self.tableStats.append(_elem353) + (_etype360, _size357) = iprot.readListBegin() + for _i361 in xrange(_size357): + _elem362 = ColumnStatisticsObj() + _elem362.read(iprot) + self.tableStats.append(_elem362) iprot.readListEnd() else: iprot.skip(ftype) @@ -7616,8 +7640,8 @@ def write(self, oprot): if self.tableStats is not None: oprot.writeFieldBegin('tableStats', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.tableStats)) - for iter354 in self.tableStats: - iter354.write(oprot) + for iter363 in self.tableStats: + iter363.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7671,17 +7695,17 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partStats = {} - (_ktype356, _vtype357, _size355 ) = iprot.readMapBegin() - for _i359 in xrange(_size355): - _key360 = iprot.readString() - _val361 = [] - (_etype365, _size362) = iprot.readListBegin() - for _i366 in xrange(_size362): - _elem367 = ColumnStatisticsObj() - _elem367.read(iprot) - _val361.append(_elem367) + (_ktype365, _vtype366, _size364 ) = iprot.readMapBegin() + for _i368 in xrange(_size364): + _key369 = iprot.readString() + _val370 = [] + (_etype374, _size371) = iprot.readListBegin() + for _i375 in xrange(_size371): + _elem376 = ColumnStatisticsObj() + _elem376.read(iprot) + _val370.append(_elem376) iprot.readListEnd() - self.partStats[_key360] = _val361 + self.partStats[_key369] = _val370 iprot.readMapEnd() else: iprot.skip(ftype) @@ -7698,11 +7722,11 @@ def write(self, oprot): if self.partStats is not None: oprot.writeFieldBegin('partStats', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.partStats)) - for kiter368,viter369 in self.partStats.items(): - oprot.writeString(kiter368) - oprot.writeListBegin(TType.STRUCT, len(viter369)) - for iter370 in viter369: - iter370.write(oprot) + for kiter377,viter378 in self.partStats.items(): + oprot.writeString(kiter377) + oprot.writeListBegin(TType.STRUCT, len(viter378)) + for iter379 in viter378: + iter379.write(oprot) oprot.writeListEnd() oprot.writeMapEnd() oprot.writeFieldEnd() @@ -7773,10 +7797,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.colNames = [] - (_etype374, _size371) = iprot.readListBegin() - for _i375 in xrange(_size371): - _elem376 = iprot.readString() - self.colNames.append(_elem376) + (_etype383, _size380) = iprot.readListBegin() + for _i384 in xrange(_size380): + _elem385 = iprot.readString() + self.colNames.append(_elem385) iprot.readListEnd() else: iprot.skip(ftype) @@ -7801,8 +7825,8 @@ def write(self, oprot): if self.colNames is not None: oprot.writeFieldBegin('colNames', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.colNames)) - for iter377 in self.colNames: - oprot.writeString(iter377) + for iter386 in self.colNames: + oprot.writeString(iter386) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7881,20 +7905,20 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.colNames = [] - (_etype381, _size378) = iprot.readListBegin() - for _i382 in xrange(_size378): - _elem383 = iprot.readString() - self.colNames.append(_elem383) + (_etype390, _size387) = iprot.readListBegin() + for _i391 in xrange(_size387): + _elem392 = iprot.readString() + self.colNames.append(_elem392) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.partNames = [] - (_etype387, _size384) = iprot.readListBegin() - for _i388 in xrange(_size384): - _elem389 = iprot.readString() - self.partNames.append(_elem389) + (_etype396, _size393) = iprot.readListBegin() + for _i397 in xrange(_size393): + _elem398 = iprot.readString() + self.partNames.append(_elem398) iprot.readListEnd() else: iprot.skip(ftype) @@ -7919,15 +7943,15 @@ def write(self, oprot): if self.colNames is not None: oprot.writeFieldBegin('colNames', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.colNames)) - for iter390 in self.colNames: - oprot.writeString(iter390) + for iter399 in self.colNames: + oprot.writeString(iter399) oprot.writeListEnd() oprot.writeFieldEnd() if self.partNames is not None: oprot.writeFieldBegin('partNames', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.partNames)) - for iter391 in self.partNames: - oprot.writeString(iter391) + for iter400 in self.partNames: + oprot.writeString(iter400) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7990,11 +8014,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype395, _size392) = iprot.readListBegin() - for _i396 in xrange(_size392): - _elem397 = Partition() - _elem397.read(iprot) - self.partitions.append(_elem397) + (_etype404, _size401) = iprot.readListBegin() + for _i405 in xrange(_size401): + _elem406 = Partition() + _elem406.read(iprot) + self.partitions.append(_elem406) iprot.readListEnd() else: iprot.skip(ftype) @@ -8011,8 +8035,8 @@ def write(self, oprot): if self.partitions is not None: oprot.writeFieldBegin('partitions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter398 in self.partitions: - iter398.write(oprot) + for iter407 in self.partitions: + iter407.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8086,11 +8110,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.parts = [] - (_etype402, _size399) = iprot.readListBegin() - for _i403 in xrange(_size399): - _elem404 = Partition() - _elem404.read(iprot) - self.parts.append(_elem404) + (_etype411, _size408) = iprot.readListBegin() + for _i412 in xrange(_size408): + _elem413 = Partition() + _elem413.read(iprot) + self.parts.append(_elem413) iprot.readListEnd() else: iprot.skip(ftype) @@ -8125,8 +8149,8 @@ def write(self, oprot): if self.parts is not None: oprot.writeFieldBegin('parts', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.parts)) - for iter405 in self.parts: - iter405.write(oprot) + for iter414 in self.parts: + iter414.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ifNotExists is not None: @@ -8198,11 +8222,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype409, _size406) = iprot.readListBegin() - for _i410 in xrange(_size406): - _elem411 = Partition() - _elem411.read(iprot) - self.partitions.append(_elem411) + (_etype418, _size415) = iprot.readListBegin() + for _i419 in xrange(_size415): + _elem420 = Partition() + _elem420.read(iprot) + self.partitions.append(_elem420) iprot.readListEnd() else: iprot.skip(ftype) @@ -8219,8 +8243,8 @@ def write(self, oprot): if self.partitions is not None: oprot.writeFieldBegin('partitions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter412 in self.partitions: - iter412.write(oprot) + for iter421 in self.partitions: + iter421.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8355,21 +8379,21 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.names = [] - (_etype416, _size413) = iprot.readListBegin() - for _i417 in xrange(_size413): - _elem418 = iprot.readString() - self.names.append(_elem418) + (_etype425, _size422) = iprot.readListBegin() + for _i426 in xrange(_size422): + _elem427 = iprot.readString() + self.names.append(_elem427) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.exprs = [] - (_etype422, _size419) = iprot.readListBegin() - for _i423 in xrange(_size419): - _elem424 = DropPartitionsExpr() - _elem424.read(iprot) - self.exprs.append(_elem424) + (_etype431, _size428) = iprot.readListBegin() + for _i432 in xrange(_size428): + _elem433 = DropPartitionsExpr() + _elem433.read(iprot) + self.exprs.append(_elem433) iprot.readListEnd() else: iprot.skip(ftype) @@ -8386,15 +8410,15 @@ def write(self, oprot): if self.names is not None: oprot.writeFieldBegin('names', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.names)) - for iter425 in self.names: - oprot.writeString(iter425) + for iter434 in self.names: + oprot.writeString(iter434) oprot.writeListEnd() oprot.writeFieldEnd() if self.exprs is not None: oprot.writeFieldBegin('exprs', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.exprs)) - for iter426 in self.exprs: - iter426.write(oprot) + for iter435 in self.exprs: + iter435.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8642,11 +8666,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.partitionKeys = [] - (_etype430, _size427) = iprot.readListBegin() - for _i431 in xrange(_size427): - _elem432 = FieldSchema() - _elem432.read(iprot) - self.partitionKeys.append(_elem432) + (_etype439, _size436) = iprot.readListBegin() + for _i440 in xrange(_size436): + _elem441 = FieldSchema() + _elem441.read(iprot) + self.partitionKeys.append(_elem441) iprot.readListEnd() else: iprot.skip(ftype) @@ -8663,11 +8687,11 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.partitionOrder = [] - (_etype436, _size433) = iprot.readListBegin() - for _i437 in xrange(_size433): - _elem438 = FieldSchema() - _elem438.read(iprot) - self.partitionOrder.append(_elem438) + (_etype445, _size442) = iprot.readListBegin() + for _i446 in xrange(_size442): + _elem447 = FieldSchema() + _elem447.read(iprot) + self.partitionOrder.append(_elem447) iprot.readListEnd() else: iprot.skip(ftype) @@ -8702,8 +8726,8 @@ def write(self, oprot): if self.partitionKeys is not None: oprot.writeFieldBegin('partitionKeys', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.partitionKeys)) - for iter439 in self.partitionKeys: - iter439.write(oprot) + for iter448 in self.partitionKeys: + iter448.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.applyDistinct is not None: @@ -8717,8 +8741,8 @@ def write(self, oprot): if self.partitionOrder is not None: oprot.writeFieldBegin('partitionOrder', TType.LIST, 6) oprot.writeListBegin(TType.STRUCT, len(self.partitionOrder)) - for iter440 in self.partitionOrder: - iter440.write(oprot) + for iter449 in self.partitionOrder: + iter449.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ascending is not None: @@ -8791,10 +8815,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.row = [] - (_etype444, _size441) = iprot.readListBegin() - for _i445 in xrange(_size441): - _elem446 = iprot.readString() - self.row.append(_elem446) + (_etype453, _size450) = iprot.readListBegin() + for _i454 in xrange(_size450): + _elem455 = iprot.readString() + self.row.append(_elem455) iprot.readListEnd() else: iprot.skip(ftype) @@ -8811,8 +8835,8 @@ def write(self, oprot): if self.row is not None: oprot.writeFieldBegin('row', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.row)) - for iter447 in self.row: - oprot.writeString(iter447) + for iter456 in self.row: + oprot.writeString(iter456) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8866,11 +8890,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitionValues = [] - (_etype451, _size448) = iprot.readListBegin() - for _i452 in xrange(_size448): - _elem453 = PartitionValuesRow() - _elem453.read(iprot) - self.partitionValues.append(_elem453) + (_etype460, _size457) = iprot.readListBegin() + for _i461 in xrange(_size457): + _elem462 = PartitionValuesRow() + _elem462.read(iprot) + self.partitionValues.append(_elem462) iprot.readListEnd() else: iprot.skip(ftype) @@ -8887,8 +8911,8 @@ def write(self, oprot): if self.partitionValues is not None: oprot.writeFieldBegin('partitionValues', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitionValues)) - for iter454 in self.partitionValues: - iter454.write(oprot) + for iter463 in self.partitionValues: + iter463.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9076,11 +9100,11 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.resourceUris = [] - (_etype458, _size455) = iprot.readListBegin() - for _i459 in xrange(_size455): - _elem460 = ResourceUri() - _elem460.read(iprot) - self.resourceUris.append(_elem460) + (_etype467, _size464) = iprot.readListBegin() + for _i468 in xrange(_size464): + _elem469 = ResourceUri() + _elem469.read(iprot) + self.resourceUris.append(_elem469) iprot.readListEnd() else: iprot.skip(ftype) @@ -9125,8 +9149,8 @@ def write(self, oprot): if self.resourceUris is not None: oprot.writeFieldBegin('resourceUris', TType.LIST, 8) oprot.writeListBegin(TType.STRUCT, len(self.resourceUris)) - for iter461 in self.resourceUris: - iter461.write(oprot) + for iter470 in self.resourceUris: + iter470.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9370,11 +9394,11 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.open_txns = [] - (_etype465, _size462) = iprot.readListBegin() - for _i466 in xrange(_size462): - _elem467 = TxnInfo() - _elem467.read(iprot) - self.open_txns.append(_elem467) + (_etype474, _size471) = iprot.readListBegin() + for _i475 in xrange(_size471): + _elem476 = TxnInfo() + _elem476.read(iprot) + self.open_txns.append(_elem476) iprot.readListEnd() else: iprot.skip(ftype) @@ -9395,8 +9419,8 @@ def write(self, oprot): if self.open_txns is not None: oprot.writeFieldBegin('open_txns', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.open_txns)) - for iter468 in self.open_txns: - iter468.write(oprot) + for iter477 in self.open_txns: + iter477.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9467,10 +9491,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.open_txns = [] - (_etype472, _size469) = iprot.readListBegin() - for _i473 in xrange(_size469): - _elem474 = iprot.readI64() - self.open_txns.append(_elem474) + (_etype481, _size478) = iprot.readListBegin() + for _i482 in xrange(_size478): + _elem483 = iprot.readI64() + self.open_txns.append(_elem483) iprot.readListEnd() else: iprot.skip(ftype) @@ -9501,8 +9525,8 @@ def write(self, oprot): if self.open_txns is not None: oprot.writeFieldBegin('open_txns', TType.LIST, 2) oprot.writeListBegin(TType.I64, len(self.open_txns)) - for iter475 in self.open_txns: - oprot.writeI64(iter475) + for iter484 in self.open_txns: + oprot.writeI64(iter484) oprot.writeListEnd() oprot.writeFieldEnd() if self.min_open_txn is not None: @@ -9681,10 +9705,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txn_ids = [] - (_etype479, _size476) = iprot.readListBegin() - for _i480 in xrange(_size476): - _elem481 = iprot.readI64() - self.txn_ids.append(_elem481) + (_etype488, _size485) = iprot.readListBegin() + for _i489 in xrange(_size485): + _elem490 = iprot.readI64() + self.txn_ids.append(_elem490) iprot.readListEnd() else: iprot.skip(ftype) @@ -9701,8 +9725,8 @@ def write(self, oprot): if self.txn_ids is not None: oprot.writeFieldBegin('txn_ids', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.txn_ids)) - for iter482 in self.txn_ids: - oprot.writeI64(iter482) + for iter491 in self.txn_ids: + oprot.writeI64(iter491) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9823,10 +9847,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txn_ids = [] - (_etype486, _size483) = iprot.readListBegin() - for _i487 in xrange(_size483): - _elem488 = iprot.readI64() - self.txn_ids.append(_elem488) + (_etype495, _size492) = iprot.readListBegin() + for _i496 in xrange(_size492): + _elem497 = iprot.readI64() + self.txn_ids.append(_elem497) iprot.readListEnd() else: iprot.skip(ftype) @@ -9843,8 +9867,8 @@ def write(self, oprot): if self.txn_ids is not None: oprot.writeFieldBegin('txn_ids', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.txn_ids)) - for iter489 in self.txn_ids: - oprot.writeI64(iter489) + for iter498 in self.txn_ids: + oprot.writeI64(iter498) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10139,11 +10163,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.component = [] - (_etype493, _size490) = iprot.readListBegin() - for _i494 in xrange(_size490): - _elem495 = LockComponent() - _elem495.read(iprot) - self.component.append(_elem495) + (_etype502, _size499) = iprot.readListBegin() + for _i503 in xrange(_size499): + _elem504 = LockComponent() + _elem504.read(iprot) + self.component.append(_elem504) iprot.readListEnd() else: iprot.skip(ftype) @@ -10180,8 +10204,8 @@ def write(self, oprot): if self.component is not None: oprot.writeFieldBegin('component', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.component)) - for iter496 in self.component: - iter496.write(oprot) + for iter505 in self.component: + iter505.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.txnid is not None: @@ -10879,11 +10903,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.locks = [] - (_etype500, _size497) = iprot.readListBegin() - for _i501 in xrange(_size497): - _elem502 = ShowLocksResponseElement() - _elem502.read(iprot) - self.locks.append(_elem502) + (_etype509, _size506) = iprot.readListBegin() + for _i510 in xrange(_size506): + _elem511 = ShowLocksResponseElement() + _elem511.read(iprot) + self.locks.append(_elem511) iprot.readListEnd() else: iprot.skip(ftype) @@ -10900,8 +10924,8 @@ def write(self, oprot): if self.locks is not None: oprot.writeFieldBegin('locks', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.locks)) - for iter503 in self.locks: - iter503.write(oprot) + for iter512 in self.locks: + iter512.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11116,20 +11140,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.SET: self.aborted = set() - (_etype507, _size504) = iprot.readSetBegin() - for _i508 in xrange(_size504): - _elem509 = iprot.readI64() - self.aborted.add(_elem509) + (_etype516, _size513) = iprot.readSetBegin() + for _i517 in xrange(_size513): + _elem518 = iprot.readI64() + self.aborted.add(_elem518) iprot.readSetEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.SET: self.nosuch = set() - (_etype513, _size510) = iprot.readSetBegin() - for _i514 in xrange(_size510): - _elem515 = iprot.readI64() - self.nosuch.add(_elem515) + (_etype522, _size519) = iprot.readSetBegin() + for _i523 in xrange(_size519): + _elem524 = iprot.readI64() + self.nosuch.add(_elem524) iprot.readSetEnd() else: iprot.skip(ftype) @@ -11146,15 +11170,15 @@ def write(self, oprot): if self.aborted is not None: oprot.writeFieldBegin('aborted', TType.SET, 1) oprot.writeSetBegin(TType.I64, len(self.aborted)) - for iter516 in self.aborted: - oprot.writeI64(iter516) + for iter525 in self.aborted: + oprot.writeI64(iter525) oprot.writeSetEnd() oprot.writeFieldEnd() if self.nosuch is not None: oprot.writeFieldBegin('nosuch', TType.SET, 2) oprot.writeSetBegin(TType.I64, len(self.nosuch)) - for iter517 in self.nosuch: - oprot.writeI64(iter517) + for iter526 in self.nosuch: + oprot.writeI64(iter526) oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11251,11 +11275,11 @@ def read(self, iprot): elif fid == 6: if ftype == TType.MAP: self.properties = {} - (_ktype519, _vtype520, _size518 ) = iprot.readMapBegin() - for _i522 in xrange(_size518): - _key523 = iprot.readString() - _val524 = iprot.readString() - self.properties[_key523] = _val524 + (_ktype528, _vtype529, _size527 ) = iprot.readMapBegin() + for _i531 in xrange(_size527): + _key532 = iprot.readString() + _val533 = iprot.readString() + self.properties[_key532] = _val533 iprot.readMapEnd() else: iprot.skip(ftype) @@ -11292,9 +11316,9 @@ def write(self, oprot): if self.properties is not None: oprot.writeFieldBegin('properties', TType.MAP, 6) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.properties)) - for kiter525,viter526 in self.properties.items(): - oprot.writeString(kiter525) - oprot.writeString(viter526) + for kiter534,viter535 in self.properties.items(): + oprot.writeString(kiter534) + oprot.writeString(viter535) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11729,11 +11753,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.compacts = [] - (_etype530, _size527) = iprot.readListBegin() - for _i531 in xrange(_size527): - _elem532 = ShowCompactResponseElement() - _elem532.read(iprot) - self.compacts.append(_elem532) + (_etype539, _size536) = iprot.readListBegin() + for _i540 in xrange(_size536): + _elem541 = ShowCompactResponseElement() + _elem541.read(iprot) + self.compacts.append(_elem541) iprot.readListEnd() else: iprot.skip(ftype) @@ -11750,8 +11774,8 @@ def write(self, oprot): if self.compacts is not None: oprot.writeFieldBegin('compacts', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.compacts)) - for iter533 in self.compacts: - iter533.write(oprot) + for iter542 in self.compacts: + iter542.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11832,10 +11856,10 @@ def read(self, iprot): elif fid == 4: if ftype == TType.LIST: self.partitionnames = [] - (_etype537, _size534) = iprot.readListBegin() - for _i538 in xrange(_size534): - _elem539 = iprot.readString() - self.partitionnames.append(_elem539) + (_etype546, _size543) = iprot.readListBegin() + for _i547 in xrange(_size543): + _elem548 = iprot.readString() + self.partitionnames.append(_elem548) iprot.readListEnd() else: iprot.skip(ftype) @@ -11869,8 +11893,8 @@ def write(self, oprot): if self.partitionnames is not None: oprot.writeFieldBegin('partitionnames', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.partitionnames)) - for iter540 in self.partitionnames: - oprot.writeString(iter540) + for iter549 in self.partitionnames: + oprot.writeString(iter549) oprot.writeListEnd() oprot.writeFieldEnd() if self.operationType is not None: @@ -11912,6 +11936,236 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class BasicTxnInfo: + """ + Attributes: + - id + - time + - txnid + - dbname + - tablename + - partitionname + """ + + thrift_spec = ( + None, # 0 + (1, TType.I64, 'id', None, None, ), # 1 + (2, TType.I64, 'time', None, None, ), # 2 + (3, TType.I64, 'txnid', None, None, ), # 3 + (4, TType.STRING, 'dbname', None, None, ), # 4 + (5, TType.STRING, 'tablename', None, None, ), # 5 + (6, TType.STRING, 'partitionname', None, None, ), # 6 + ) + + def __init__(self, id=None, time=None, txnid=None, dbname=None, tablename=None, partitionname=None,): + self.id = id + self.time = time + self.txnid = txnid + self.dbname = dbname + self.tablename = tablename + self.partitionname = partitionname + + 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.id = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I64: + self.time = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I64: + self.txnid = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.dbname = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.tablename = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.partitionname = 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('BasicTxnInfo') + if self.id is not None: + oprot.writeFieldBegin('id', TType.I64, 1) + oprot.writeI64(self.id) + oprot.writeFieldEnd() + if self.time is not None: + oprot.writeFieldBegin('time', TType.I64, 2) + oprot.writeI64(self.time) + oprot.writeFieldEnd() + if self.txnid is not None: + oprot.writeFieldBegin('txnid', TType.I64, 3) + oprot.writeI64(self.txnid) + oprot.writeFieldEnd() + if self.dbname is not None: + oprot.writeFieldBegin('dbname', TType.STRING, 4) + oprot.writeString(self.dbname) + oprot.writeFieldEnd() + if self.tablename is not None: + oprot.writeFieldBegin('tablename', TType.STRING, 5) + oprot.writeString(self.tablename) + oprot.writeFieldEnd() + if self.partitionname is not None: + oprot.writeFieldBegin('partitionname', TType.STRING, 6) + oprot.writeString(self.partitionname) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.id is None: + raise TProtocol.TProtocolException(message='Required field id is unset!') + if self.time is None: + raise TProtocol.TProtocolException(message='Required field time is unset!') + if self.txnid is None: + raise TProtocol.TProtocolException(message='Required field txnid is unset!') + if self.dbname is None: + raise TProtocol.TProtocolException(message='Required field dbname is unset!') + if self.tablename is None: + raise TProtocol.TProtocolException(message='Required field tablename is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.id) + value = (value * 31) ^ hash(self.time) + value = (value * 31) ^ hash(self.txnid) + value = (value * 31) ^ hash(self.dbname) + value = (value * 31) ^ hash(self.tablename) + value = (value * 31) ^ hash(self.partitionname) + 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 TxnsSnapshot: + """ + Attributes: + - txn_high_water_mark + - open_txns + """ + + thrift_spec = ( + None, # 0 + (1, TType.I64, 'txn_high_water_mark', None, None, ), # 1 + (2, TType.LIST, 'open_txns', (TType.I64,None), None, ), # 2 + ) + + def __init__(self, txn_high_water_mark=None, open_txns=None,): + self.txn_high_water_mark = txn_high_water_mark + self.open_txns = open_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: + 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.txn_high_water_mark = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.LIST: + self.open_txns = [] + (_etype553, _size550) = iprot.readListBegin() + for _i554 in xrange(_size550): + _elem555 = iprot.readI64() + self.open_txns.append(_elem555) + 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('TxnsSnapshot') + if self.txn_high_water_mark is not None: + oprot.writeFieldBegin('txn_high_water_mark', TType.I64, 1) + oprot.writeI64(self.txn_high_water_mark) + oprot.writeFieldEnd() + if self.open_txns is not None: + oprot.writeFieldBegin('open_txns', TType.LIST, 2) + oprot.writeListBegin(TType.I64, len(self.open_txns)) + for iter556 in self.open_txns: + oprot.writeI64(iter556) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.txn_high_water_mark is None: + raise TProtocol.TProtocolException(message='Required field txn_high_water_mark is unset!') + if self.open_txns is None: + raise TProtocol.TProtocolException(message='Required field open_txns is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.txn_high_water_mark) + value = (value * 31) ^ hash(self.open_txns) + 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 NotificationEventRequest: """ Attributes: @@ -12169,11 +12423,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.events = [] - (_etype544, _size541) = iprot.readListBegin() - for _i545 in xrange(_size541): - _elem546 = NotificationEvent() - _elem546.read(iprot) - self.events.append(_elem546) + (_etype560, _size557) = iprot.readListBegin() + for _i561 in xrange(_size557): + _elem562 = NotificationEvent() + _elem562.read(iprot) + self.events.append(_elem562) iprot.readListEnd() else: iprot.skip(ftype) @@ -12190,8 +12444,8 @@ def write(self, oprot): if self.events is not None: oprot.writeFieldBegin('events', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.events)) - for iter547 in self.events: - iter547.write(oprot) + for iter563 in self.events: + iter563.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12472,20 +12726,20 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.filesAdded = [] - (_etype551, _size548) = iprot.readListBegin() - for _i552 in xrange(_size548): - _elem553 = iprot.readString() - self.filesAdded.append(_elem553) + (_etype567, _size564) = iprot.readListBegin() + for _i568 in xrange(_size564): + _elem569 = iprot.readString() + self.filesAdded.append(_elem569) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.filesAddedChecksum = [] - (_etype557, _size554) = iprot.readListBegin() - for _i558 in xrange(_size554): - _elem559 = iprot.readString() - self.filesAddedChecksum.append(_elem559) + (_etype573, _size570) = iprot.readListBegin() + for _i574 in xrange(_size570): + _elem575 = iprot.readString() + self.filesAddedChecksum.append(_elem575) iprot.readListEnd() else: iprot.skip(ftype) @@ -12506,15 +12760,15 @@ def write(self, oprot): if self.filesAdded is not None: oprot.writeFieldBegin('filesAdded', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.filesAdded)) - for iter560 in self.filesAdded: - oprot.writeString(iter560) + for iter576 in self.filesAdded: + oprot.writeString(iter576) oprot.writeListEnd() oprot.writeFieldEnd() if self.filesAddedChecksum is not None: oprot.writeFieldBegin('filesAddedChecksum', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.filesAddedChecksum)) - for iter561 in self.filesAddedChecksum: - oprot.writeString(iter561) + for iter577 in self.filesAddedChecksum: + oprot.writeString(iter577) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12669,10 +12923,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.partitionVals = [] - (_etype565, _size562) = iprot.readListBegin() - for _i566 in xrange(_size562): - _elem567 = iprot.readString() - self.partitionVals.append(_elem567) + (_etype581, _size578) = iprot.readListBegin() + for _i582 in xrange(_size578): + _elem583 = iprot.readString() + self.partitionVals.append(_elem583) iprot.readListEnd() else: iprot.skip(ftype) @@ -12705,8 +12959,8 @@ def write(self, oprot): if self.partitionVals is not None: oprot.writeFieldBegin('partitionVals', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.partitionVals)) - for iter568 in self.partitionVals: - oprot.writeString(iter568) + for iter584 in self.partitionVals: + oprot.writeString(iter584) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12893,12 +13147,12 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype570, _vtype571, _size569 ) = iprot.readMapBegin() - for _i573 in xrange(_size569): - _key574 = iprot.readI64() - _val575 = MetadataPpdResult() - _val575.read(iprot) - self.metadata[_key574] = _val575 + (_ktype586, _vtype587, _size585 ) = iprot.readMapBegin() + for _i589 in xrange(_size585): + _key590 = iprot.readI64() + _val591 = MetadataPpdResult() + _val591.read(iprot) + self.metadata[_key590] = _val591 iprot.readMapEnd() else: iprot.skip(ftype) @@ -12920,9 +13174,9 @@ def write(self, oprot): if self.metadata is not None: oprot.writeFieldBegin('metadata', TType.MAP, 1) oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.metadata)) - for kiter576,viter577 in self.metadata.items(): - oprot.writeI64(kiter576) - viter577.write(oprot) + for kiter592,viter593 in self.metadata.items(): + oprot.writeI64(kiter592) + viter593.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -12992,10 +13246,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype581, _size578) = iprot.readListBegin() - for _i582 in xrange(_size578): - _elem583 = iprot.readI64() - self.fileIds.append(_elem583) + (_etype597, _size594) = iprot.readListBegin() + for _i598 in xrange(_size594): + _elem599 = iprot.readI64() + self.fileIds.append(_elem599) iprot.readListEnd() else: iprot.skip(ftype) @@ -13027,8 +13281,8 @@ def write(self, oprot): if self.fileIds is not None: oprot.writeFieldBegin('fileIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.fileIds)) - for iter584 in self.fileIds: - oprot.writeI64(iter584) + for iter600 in self.fileIds: + oprot.writeI64(iter600) oprot.writeListEnd() oprot.writeFieldEnd() if self.expr is not None: @@ -13102,11 +13356,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype586, _vtype587, _size585 ) = iprot.readMapBegin() - for _i589 in xrange(_size585): - _key590 = iprot.readI64() - _val591 = iprot.readString() - self.metadata[_key590] = _val591 + (_ktype602, _vtype603, _size601 ) = iprot.readMapBegin() + for _i605 in xrange(_size601): + _key606 = iprot.readI64() + _val607 = iprot.readString() + self.metadata[_key606] = _val607 iprot.readMapEnd() else: iprot.skip(ftype) @@ -13128,9 +13382,9 @@ def write(self, oprot): if self.metadata is not None: oprot.writeFieldBegin('metadata', TType.MAP, 1) oprot.writeMapBegin(TType.I64, TType.STRING, len(self.metadata)) - for kiter592,viter593 in self.metadata.items(): - oprot.writeI64(kiter592) - oprot.writeString(viter593) + for kiter608,viter609 in self.metadata.items(): + oprot.writeI64(kiter608) + oprot.writeString(viter609) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -13191,10 +13445,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype597, _size594) = iprot.readListBegin() - for _i598 in xrange(_size594): - _elem599 = iprot.readI64() - self.fileIds.append(_elem599) + (_etype613, _size610) = iprot.readListBegin() + for _i614 in xrange(_size610): + _elem615 = iprot.readI64() + self.fileIds.append(_elem615) iprot.readListEnd() else: iprot.skip(ftype) @@ -13211,8 +13465,8 @@ def write(self, oprot): if self.fileIds is not None: oprot.writeFieldBegin('fileIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.fileIds)) - for iter600 in self.fileIds: - oprot.writeI64(iter600) + for iter616 in self.fileIds: + oprot.writeI64(iter616) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13318,20 +13572,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype604, _size601) = iprot.readListBegin() - for _i605 in xrange(_size601): - _elem606 = iprot.readI64() - self.fileIds.append(_elem606) + (_etype620, _size617) = iprot.readListBegin() + for _i621 in xrange(_size617): + _elem622 = iprot.readI64() + self.fileIds.append(_elem622) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.metadata = [] - (_etype610, _size607) = iprot.readListBegin() - for _i611 in xrange(_size607): - _elem612 = iprot.readString() - self.metadata.append(_elem612) + (_etype626, _size623) = iprot.readListBegin() + for _i627 in xrange(_size623): + _elem628 = iprot.readString() + self.metadata.append(_elem628) iprot.readListEnd() else: iprot.skip(ftype) @@ -13353,15 +13607,15 @@ def write(self, oprot): if self.fileIds is not None: oprot.writeFieldBegin('fileIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.fileIds)) - for iter613 in self.fileIds: - oprot.writeI64(iter613) + for iter629 in self.fileIds: + oprot.writeI64(iter629) oprot.writeListEnd() oprot.writeFieldEnd() if self.metadata is not None: oprot.writeFieldBegin('metadata', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.metadata)) - for iter614 in self.metadata: - oprot.writeString(iter614) + for iter630 in self.metadata: + oprot.writeString(iter630) oprot.writeListEnd() oprot.writeFieldEnd() if self.type is not None: @@ -13469,10 +13723,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype618, _size615) = iprot.readListBegin() - for _i619 in xrange(_size615): - _elem620 = iprot.readI64() - self.fileIds.append(_elem620) + (_etype634, _size631) = iprot.readListBegin() + for _i635 in xrange(_size631): + _elem636 = iprot.readI64() + self.fileIds.append(_elem636) iprot.readListEnd() else: iprot.skip(ftype) @@ -13489,8 +13743,8 @@ def write(self, oprot): if self.fileIds is not None: oprot.writeFieldBegin('fileIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.fileIds)) - for iter621 in self.fileIds: - oprot.writeI64(iter621) + for iter637 in self.fileIds: + oprot.writeI64(iter637) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13719,11 +13973,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.functions = [] - (_etype625, _size622) = iprot.readListBegin() - for _i626 in xrange(_size622): - _elem627 = Function() - _elem627.read(iprot) - self.functions.append(_elem627) + (_etype641, _size638) = iprot.readListBegin() + for _i642 in xrange(_size638): + _elem643 = Function() + _elem643.read(iprot) + self.functions.append(_elem643) iprot.readListEnd() else: iprot.skip(ftype) @@ -13740,8 +13994,8 @@ def write(self, oprot): if self.functions is not None: oprot.writeFieldBegin('functions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.functions)) - for iter628 in self.functions: - iter628.write(oprot) + for iter644 in self.functions: + iter644.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13793,10 +14047,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.values = [] - (_etype632, _size629) = iprot.readListBegin() - for _i633 in xrange(_size629): - _elem634 = iprot.readI32() - self.values.append(_elem634) + (_etype648, _size645) = iprot.readListBegin() + for _i649 in xrange(_size645): + _elem650 = iprot.readI32() + self.values.append(_elem650) iprot.readListEnd() else: iprot.skip(ftype) @@ -13813,8 +14067,8 @@ def write(self, oprot): if self.values is not None: oprot.writeFieldBegin('values', TType.LIST, 1) oprot.writeListBegin(TType.I32, len(self.values)) - for iter635 in self.values: - oprot.writeI32(iter635) + for iter651 in self.values: + oprot.writeI32(iter651) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14043,10 +14297,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tblNames = [] - (_etype639, _size636) = iprot.readListBegin() - for _i640 in xrange(_size636): - _elem641 = iprot.readString() - self.tblNames.append(_elem641) + (_etype655, _size652) = iprot.readListBegin() + for _i656 in xrange(_size652): + _elem657 = iprot.readString() + self.tblNames.append(_elem657) iprot.readListEnd() else: iprot.skip(ftype) @@ -14073,8 +14327,8 @@ def write(self, oprot): if self.tblNames is not None: oprot.writeFieldBegin('tblNames', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.tblNames)) - for iter642 in self.tblNames: - oprot.writeString(iter642) + for iter658 in self.tblNames: + oprot.writeString(iter658) oprot.writeListEnd() oprot.writeFieldEnd() if self.capabilities is not None: @@ -14134,11 +14388,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tables = [] - (_etype646, _size643) = iprot.readListBegin() - for _i647 in xrange(_size643): - _elem648 = Table() - _elem648.read(iprot) - self.tables.append(_elem648) + (_etype662, _size659) = iprot.readListBegin() + for _i663 in xrange(_size659): + _elem664 = Table() + _elem664.read(iprot) + self.tables.append(_elem664) iprot.readListEnd() else: iprot.skip(ftype) @@ -14155,8 +14409,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 iter649 in self.tables: - iter649.write(oprot) + for iter665 in self.tables: + iter665.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14422,6 +14676,112 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class Materialization: + """ + Attributes: + - materializationTable + - tablesUsed + - invalidationTime + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'materializationTable', (Table, Table.thrift_spec), None, ), # 1 + (2, TType.SET, 'tablesUsed', (TType.STRING,None), None, ), # 2 + (3, TType.I64, 'invalidationTime', None, None, ), # 3 + ) + + def __init__(self, materializationTable=None, tablesUsed=None, invalidationTime=None,): + self.materializationTable = materializationTable + self.tablesUsed = tablesUsed + self.invalidationTime = invalidationTime + + 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.materializationTable = Table() + self.materializationTable.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.SET: + self.tablesUsed = set() + (_etype669, _size666) = iprot.readSetBegin() + for _i670 in xrange(_size666): + _elem671 = iprot.readString() + self.tablesUsed.add(_elem671) + iprot.readSetEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I64: + self.invalidationTime = iprot.readI64() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('Materialization') + if self.materializationTable is not None: + oprot.writeFieldBegin('materializationTable', TType.STRUCT, 1) + self.materializationTable.write(oprot) + oprot.writeFieldEnd() + if self.tablesUsed is not None: + oprot.writeFieldBegin('tablesUsed', TType.SET, 2) + oprot.writeSetBegin(TType.STRING, len(self.tablesUsed)) + for iter672 in self.tablesUsed: + oprot.writeString(iter672) + oprot.writeSetEnd() + oprot.writeFieldEnd() + if self.invalidationTime is not None: + oprot.writeFieldBegin('invalidationTime', TType.I64, 3) + oprot.writeI64(self.invalidationTime) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.materializationTable is None: + raise TProtocol.TProtocolException(message='Required field materializationTable is unset!') + if self.tablesUsed is None: + raise TProtocol.TProtocolException(message='Required field tablesUsed is unset!') + if self.invalidationTime is None: + raise TProtocol.TProtocolException(message='Required field invalidationTime is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.materializationTable) + value = (value * 31) ^ hash(self.tablesUsed) + value = (value * 31) ^ hash(self.invalidationTime) + 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 WMResourcePlan: """ Attributes: @@ -15006,44 +15366,44 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.pools = [] - (_etype653, _size650) = iprot.readListBegin() - for _i654 in xrange(_size650): - _elem655 = WMPool() - _elem655.read(iprot) - self.pools.append(_elem655) + (_etype676, _size673) = iprot.readListBegin() + for _i677 in xrange(_size673): + _elem678 = WMPool() + _elem678.read(iprot) + self.pools.append(_elem678) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.mappings = [] - (_etype659, _size656) = iprot.readListBegin() - for _i660 in xrange(_size656): - _elem661 = WMMapping() - _elem661.read(iprot) - self.mappings.append(_elem661) + (_etype682, _size679) = iprot.readListBegin() + for _i683 in xrange(_size679): + _elem684 = WMMapping() + _elem684.read(iprot) + self.mappings.append(_elem684) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.triggers = [] - (_etype665, _size662) = iprot.readListBegin() - for _i666 in xrange(_size662): - _elem667 = WMTrigger() - _elem667.read(iprot) - self.triggers.append(_elem667) + (_etype688, _size685) = iprot.readListBegin() + for _i689 in xrange(_size685): + _elem690 = WMTrigger() + _elem690.read(iprot) + self.triggers.append(_elem690) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.poolTriggers = [] - (_etype671, _size668) = iprot.readListBegin() - for _i672 in xrange(_size668): - _elem673 = WMPoolTrigger() - _elem673.read(iprot) - self.poolTriggers.append(_elem673) + (_etype694, _size691) = iprot.readListBegin() + for _i695 in xrange(_size691): + _elem696 = WMPoolTrigger() + _elem696.read(iprot) + self.poolTriggers.append(_elem696) iprot.readListEnd() else: iprot.skip(ftype) @@ -15064,29 +15424,29 @@ def write(self, oprot): if self.pools is not None: oprot.writeFieldBegin('pools', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.pools)) - for iter674 in self.pools: - iter674.write(oprot) + for iter697 in self.pools: + iter697.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.mappings is not None: oprot.writeFieldBegin('mappings', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.mappings)) - for iter675 in self.mappings: - iter675.write(oprot) + for iter698 in self.mappings: + iter698.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.triggers is not None: oprot.writeFieldBegin('triggers', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.triggers)) - for iter676 in self.triggers: - iter676.write(oprot) + for iter699 in self.triggers: + iter699.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.poolTriggers is not None: oprot.writeFieldBegin('poolTriggers', TType.LIST, 5) oprot.writeListBegin(TType.STRUCT, len(self.poolTriggers)) - for iter677 in self.poolTriggers: - iter677.write(oprot) + for iter700 in self.poolTriggers: + iter700.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15547,11 +15907,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.resourcePlans = [] - (_etype681, _size678) = iprot.readListBegin() - for _i682 in xrange(_size678): - _elem683 = WMResourcePlan() - _elem683.read(iprot) - self.resourcePlans.append(_elem683) + (_etype704, _size701) = iprot.readListBegin() + for _i705 in xrange(_size701): + _elem706 = WMResourcePlan() + _elem706.read(iprot) + self.resourcePlans.append(_elem706) iprot.readListEnd() else: iprot.skip(ftype) @@ -15568,8 +15928,8 @@ def write(self, oprot): if self.resourcePlans is not None: oprot.writeFieldBegin('resourcePlans', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.resourcePlans)) - for iter684 in self.resourcePlans: - iter684.write(oprot) + for iter707 in self.resourcePlans: + iter707.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15844,10 +16204,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.errors = [] - (_etype688, _size685) = iprot.readListBegin() - for _i689 in xrange(_size685): - _elem690 = iprot.readString() - self.errors.append(_elem690) + (_etype711, _size708) = iprot.readListBegin() + for _i712 in xrange(_size708): + _elem713 = iprot.readString() + self.errors.append(_elem713) iprot.readListEnd() else: iprot.skip(ftype) @@ -15864,8 +16224,8 @@ def write(self, oprot): if self.errors is not None: oprot.writeFieldBegin('errors', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.errors)) - for iter691 in self.errors: - oprot.writeString(iter691) + for iter714 in self.errors: + oprot.writeString(iter714) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16441,11 +16801,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.triggers = [] - (_etype695, _size692) = iprot.readListBegin() - for _i696 in xrange(_size692): - _elem697 = WMTrigger() - _elem697.read(iprot) - self.triggers.append(_elem697) + (_etype718, _size715) = iprot.readListBegin() + for _i719 in xrange(_size715): + _elem720 = WMTrigger() + _elem720.read(iprot) + self.triggers.append(_elem720) iprot.readListEnd() else: iprot.skip(ftype) @@ -16462,8 +16822,8 @@ def write(self, oprot): if self.triggers is not None: oprot.writeFieldBegin('triggers', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.triggers)) - for iter698 in self.triggers: - iter698.write(oprot) + for iter721 in self.triggers: + iter721.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() diff --git a/standalone-metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb b/standalone-metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb index ec967a6c2a..5bfd52dc26 100644 --- a/standalone-metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb +++ b/standalone-metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb @@ -802,6 +802,7 @@ class Table PRIVILEGES = 13 TEMPORARY = 14 REWRITEENABLED = 15 + CREATIONMETADATA = 16 FIELDS = { TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName'}, @@ -818,7 +819,8 @@ 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} + REWRITEENABLED => {:type => ::Thrift::Types::BOOL, :name => 'rewriteEnabled', :optional => true}, + CREATIONMETADATA => {:type => ::Thrift::Types::MAP, :name => 'creationMetadata', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::BasicTxnInfo}, :optional => true} } def struct_fields; FIELDS; end @@ -2661,6 +2663,57 @@ class AddDynamicPartitions ::Thrift::Struct.generate_accessors self end +class BasicTxnInfo + include ::Thrift::Struct, ::Thrift::Struct_Union + ID = 1 + TIME = 2 + TXNID = 3 + DBNAME = 4 + TABLENAME = 5 + PARTITIONNAME = 6 + + FIELDS = { + ID => {:type => ::Thrift::Types::I64, :name => 'id'}, + TIME => {:type => ::Thrift::Types::I64, :name => 'time'}, + TXNID => {:type => ::Thrift::Types::I64, :name => 'txnid'}, + DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbname'}, + TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tablename'}, + PARTITIONNAME => {:type => ::Thrift::Types::STRING, :name => 'partitionname', :optional => true} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field time is unset!') unless @time + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field txnid is unset!') unless @txnid + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field dbname is unset!') unless @dbname + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tablename is unset!') unless @tablename + end + + ::Thrift::Struct.generate_accessors self +end + +class TxnsSnapshot + include ::Thrift::Struct, ::Thrift::Struct_Union + TXN_HIGH_WATER_MARK = 1 + OPEN_TXNS = 2 + + FIELDS = { + TXN_HIGH_WATER_MARK => {:type => ::Thrift::Types::I64, :name => 'txn_high_water_mark'}, + OPEN_TXNS => {:type => ::Thrift::Types::LIST, :name => 'open_txns', :element => {:type => ::Thrift::Types::I64}} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field txn_high_water_mark is unset!') unless @txn_high_water_mark + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field open_txns is unset!') unless @open_txns + end + + ::Thrift::Struct.generate_accessors self +end + class NotificationEventRequest include ::Thrift::Struct, ::Thrift::Struct_Union LASTEVENT = 1 @@ -3253,6 +3306,29 @@ class TableMeta ::Thrift::Struct.generate_accessors self end +class Materialization + include ::Thrift::Struct, ::Thrift::Struct_Union + MATERIALIZATIONTABLE = 1 + TABLESUSED = 2 + INVALIDATIONTIME = 3 + + FIELDS = { + MATERIALIZATIONTABLE => {:type => ::Thrift::Types::STRUCT, :name => 'materializationTable', :class => ::Table}, + TABLESUSED => {:type => ::Thrift::Types::SET, :name => 'tablesUsed', :element => {:type => ::Thrift::Types::STRING}}, + INVALIDATIONTIME => {:type => ::Thrift::Types::I64, :name => 'invalidationTime'} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field materializationTable is unset!') unless @materializationTable + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tablesUsed is unset!') unless @tablesUsed + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field invalidationTime is unset!') unless @invalidationTime + end + + ::Thrift::Struct.generate_accessors self +end + class WMResourcePlan include ::Thrift::Struct, ::Thrift::Struct_Union NAME = 1 diff --git a/standalone-metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb b/standalone-metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb index 182cc372f2..fc9687247b 100644 --- a/standalone-metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb +++ b/standalone-metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb @@ -495,6 +495,22 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_tables_by_type failed: unknown result') end + def get_materialized_views_for_rewriting(db_name) + send_get_materialized_views_for_rewriting(db_name) + return recv_get_materialized_views_for_rewriting() + end + + def send_get_materialized_views_for_rewriting(db_name) + send_message('get_materialized_views_for_rewriting', Get_materialized_views_for_rewriting_args, :db_name => db_name) + end + + def recv_get_materialized_views_for_rewriting() + result = receive_message(Get_materialized_views_for_rewriting_result) + return result.success unless result.success.nil? + raise result.o1 unless result.o1.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_materialized_views_for_rewriting failed: unknown result') + end + def get_table_meta(db_patterns, tbl_patterns, tbl_types) send_get_table_meta(db_patterns, tbl_patterns, tbl_types) return recv_get_table_meta() @@ -594,6 +610,24 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_table_objects_by_name_req failed: unknown result') end + def get_materialization_invalidation_info(dbname, tbl_names) + send_get_materialization_invalidation_info(dbname, tbl_names) + return recv_get_materialization_invalidation_info() + end + + def send_get_materialization_invalidation_info(dbname, tbl_names) + send_message('get_materialization_invalidation_info', Get_materialization_invalidation_info_args, :dbname => dbname, :tbl_names => tbl_names) + end + + def recv_get_materialization_invalidation_info() + result = receive_message(Get_materialization_invalidation_info_result) + return result.success unless result.success.nil? + raise result.o1 unless result.o1.nil? + raise result.o2 unless result.o2.nil? + raise result.o3 unless result.o3.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_materialization_invalidation_info failed: unknown result') + end + def get_table_names_by_filter(dbname, filter, max_tables) send_get_table_names_by_filter(dbname, filter, max_tables) return recv_get_table_names_by_filter() @@ -2512,6 +2546,21 @@ module ThriftHiveMetastore return end + def get_last_completed_transaction_for_table(db_name, table_name, txns_snapshot) + send_get_last_completed_transaction_for_table(db_name, table_name, txns_snapshot) + return recv_get_last_completed_transaction_for_table() + end + + def send_get_last_completed_transaction_for_table(db_name, table_name, txns_snapshot) + send_message('get_last_completed_transaction_for_table', Get_last_completed_transaction_for_table_args, :db_name => db_name, :table_name => table_name, :txns_snapshot => txns_snapshot) + end + + def recv_get_last_completed_transaction_for_table() + result = receive_message(Get_last_completed_transaction_for_table_result) + return result.success unless result.success.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_last_completed_transaction_for_table failed: unknown result') + end + def get_next_notification(rqst) send_get_next_notification(rqst) return recv_get_next_notification() @@ -3389,6 +3438,17 @@ module ThriftHiveMetastore write_result(result, oprot, 'get_tables_by_type', seqid) end + def process_get_materialized_views_for_rewriting(seqid, iprot, oprot) + args = read_args(iprot, Get_materialized_views_for_rewriting_args) + result = Get_materialized_views_for_rewriting_result.new() + begin + result.success = @handler.get_materialized_views_for_rewriting(args.db_name) + rescue ::MetaException => o1 + result.o1 = o1 + end + write_result(result, oprot, 'get_materialized_views_for_rewriting', seqid) + end + def process_get_table_meta(seqid, iprot, oprot) args = read_args(iprot, Get_table_meta_args) result = Get_table_meta_result.new() @@ -3459,6 +3519,21 @@ module ThriftHiveMetastore write_result(result, oprot, 'get_table_objects_by_name_req', seqid) end + def process_get_materialization_invalidation_info(seqid, iprot, oprot) + args = read_args(iprot, Get_materialization_invalidation_info_args) + result = Get_materialization_invalidation_info_result.new() + begin + result.success = @handler.get_materialization_invalidation_info(args.dbname, args.tbl_names) + rescue ::MetaException => o1 + result.o1 = o1 + rescue ::InvalidOperationException => o2 + result.o2 = o2 + rescue ::UnknownDBException => o3 + result.o3 = o3 + end + write_result(result, oprot, 'get_materialization_invalidation_info', seqid) + end + def process_get_table_names_by_filter(seqid, iprot, oprot) args = read_args(iprot, Get_table_names_by_filter_args) result = Get_table_names_by_filter_result.new() @@ -4896,6 +4971,13 @@ module ThriftHiveMetastore write_result(result, oprot, 'add_dynamic_partitions', seqid) end + def process_get_last_completed_transaction_for_table(seqid, iprot, oprot) + args = read_args(iprot, Get_last_completed_transaction_for_table_args) + result = Get_last_completed_transaction_for_table_result.new() + result.success = @handler.get_last_completed_transaction_for_table(args.db_name, args.table_name, args.txns_snapshot) + write_result(result, oprot, 'get_last_completed_transaction_for_table', seqid) + end + def process_get_next_notification(seqid, iprot, oprot) args = read_args(iprot, Get_next_notification_args) result = Get_next_notification_result.new() @@ -6316,6 +6398,40 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Get_materialized_views_for_rewriting_args + include ::Thrift::Struct, ::Thrift::Struct_Union + DB_NAME = 1 + + FIELDS = { + DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_materialized_views_for_rewriting_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O1 = 1 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}}, + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class Get_table_meta_args include ::Thrift::Struct, ::Thrift::Struct_Union DB_PATTERNS = 1 @@ -6534,6 +6650,46 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Get_materialization_invalidation_info_args + include ::Thrift::Struct, ::Thrift::Struct_Union + DBNAME = 1 + TBL_NAMES = 2 + + FIELDS = { + DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbname'}, + TBL_NAMES => {:type => ::Thrift::Types::LIST, :name => 'tbl_names', :element => {:type => ::Thrift::Types::STRING}} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_materialization_invalidation_info_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O1 = 1 + O2 = 2 + O3 = 3 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Materialization}}, + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}, + O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::InvalidOperationException}, + O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::UnknownDBException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class Get_table_names_by_filter_args include ::Thrift::Struct, ::Thrift::Struct_Union DBNAME = 1 @@ -10910,6 +11066,42 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Get_last_completed_transaction_for_table_args + include ::Thrift::Struct, ::Thrift::Struct_Union + DB_NAME = 1 + TABLE_NAME = 2 + TXNS_SNAPSHOT = 3 + + FIELDS = { + DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'}, + TABLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'table_name'}, + TXNS_SNAPSHOT => {:type => ::Thrift::Types::STRUCT, :name => 'txns_snapshot', :class => ::TxnsSnapshot} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_last_completed_transaction_for_table_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::BasicTxnInfo} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class Get_next_notification_args include ::Thrift::Struct, ::Thrift::Struct_Union RQST = 1 @@ -10975,7 +11167,7 @@ module ThriftHiveMetastore class Get_notification_events_count_args include ::Thrift::Struct, ::Thrift::Struct_Union - RQST = -1 + RQST = 1 FIELDS = { RQST => {:type => ::Thrift::Types::STRUCT, :name => 'rqst', :class => ::NotificationEventsCountRequest} diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java index 6e0da5781e..7872956dcf 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java @@ -651,7 +651,8 @@ public static RawStore getMSForConf(Configuration conf) throws MetaException { return ms; } - private TxnStore getTxnHandler() { + @Override + public TxnStore getTxnHandler() { TxnStore txn = threadLocalTxn.get(); if (txn == null) { txn = TxnUtils.getTxnStore(conf); @@ -1474,6 +1475,7 @@ private void create_table_core(final RawStore ms, final Table tbl, tbl.getParameters().get(hive_metastoreConstants.DDL_TIME) == null) { tbl.putToParameters(hive_metastoreConstants.DDL_TIME, Long.toString(time)); } + if (primaryKeys == null && foreignKeys == null && uniqueConstraints == null && notNullConstraints == null) { ms.createTable(tbl); @@ -2486,6 +2488,11 @@ public GetTablesResult get_table_objects_by_name_req(GetTablesRequest req) throw return tables; } + @Override + public Map get_materialization_invalidation_info(final String dbName, final List tableNames) { + return MaterializationsInvalidationCache.get().getMaterializationInvalidationInfo(dbName, tableNames); + } + private void assertClientHasCapability(ClientCapabilities client, ClientCapability value, String what, String call) throws MetaException { if (!doesClientHaveCapability(client, value)) { @@ -4425,6 +4432,28 @@ private void alter_table_core(final String dbname, final String name, final Tabl return ret; } + @Override + public List get_materialized_views_for_rewriting(final String dbname) + throws MetaException { + startFunction("get_materialized_views_for_rewriting", ": db=" + dbname); + + List ret = null; + Exception ex = null; + try { + ret = getMS().getMaterializedViewsForRewriting(dbname); + } catch (Exception e) { + ex = e; + if (e instanceof MetaException) { + throw (MetaException) e; + } else { + throw newMetaException(e); + } + } finally { + endFunction("get_materialized_views_for_rewriting", ret != null, ex); + } + return ret; + } + @Override public List get_all_tables(final String dbname) throws MetaException { startFunction("get_all_tables", ": db=" + dbname); @@ -6896,6 +6925,20 @@ public CurrentNotificationEventId get_current_notificationEventId() throws TExce return ms.getCurrentNotificationEventId(); } + @Override + public BasicTxnInfo get_last_completed_transaction_for_table(String dbName, String tableName, TxnsSnapshot txnsSnapshot) + throws TException { + try { + authorizeProxyPrivilege(); + } catch (Exception ex) { + LOG.error("Not authorized to make the getLastNotificationEventForTable call. You can try to disable " + + ConfVars.EVENT_DB_NOTIFICATION_API_AUTH.toString(), ex); + throw new TException(ex); + } + + return getTxnHandler().getLastCompletedTransactionForTable(dbName, tableName, txnsSnapshot); + } + @Override public NotificationEventsCountResponse get_notification_events_count(NotificationEventsCountRequest rqst) throws TException { @@ -7774,6 +7817,10 @@ public static void startMetaStore(int port, HadoopThriftAuthBridge bridge, HMSHandler baseHandler = new HiveMetaStore.HMSHandler("new db based metaserver", conf, false); IHMSHandler handler = newRetryingHMSHandler(baseHandler, conf); + + // Initialize materializations invalidation cache + MaterializationsInvalidationCache.get().init(handler.getMS(), handler.getTxnHandler()); + TServerSocket serverSocket; if (useSasl) { diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java index fc254c6f53..e8c3336db0 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -30,6 +30,7 @@ import java.net.URI; import java.net.UnknownHostException; import java.nio.ByteBuffer; +import java.security.PrivilegedExceptionAction; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; @@ -44,23 +45,21 @@ import java.util.Random; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; -import java.security.PrivilegedExceptionAction; import javax.security.auth.login.LoginException; +import org.apache.commons.lang.ArrayUtils; import org.apache.hadoop.classification.InterfaceAudience; import org.apache.hadoop.classification.InterfaceStability; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hive.common.StatsSetupConst; import org.apache.hadoop.hive.common.ValidTxnList; import org.apache.hadoop.hive.metastore.api.*; -import org.apache.hadoop.hive.metastore.TableType; import org.apache.hadoop.hive.metastore.conf.MetastoreConf; import org.apache.hadoop.hive.metastore.conf.MetastoreConf.ConfVars; import org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy; import org.apache.hadoop.hive.metastore.security.HadoopThriftAuthBridge; import org.apache.hadoop.hive.metastore.txn.TxnUtils; -import org.apache.hadoop.hive.metastore.utils.SecurityUtils; import org.apache.hadoop.hive.metastore.utils.MetaStoreUtils; import org.apache.hadoop.hive.metastore.utils.ObjectPair; import org.apache.hadoop.hive.metastore.utils.SecurityUtils; @@ -159,6 +158,8 @@ public HiveMetaStoreClient(Configuration conf, HiveMetaHookLoader hookLoader, Bo // instantiate the metastore server handler directly instead of connecting // through the network client = HiveMetaStore.newRetryingHMSHandler("hive client", this.conf, true); + // Initialize materializations invalidation cache (only for local metastore) + MaterializationsInvalidationCache.get().init(((IHMSHandler) client).getMS(), ((IHMSHandler) client).getTxnHandler()); isConnected = true; snapshotActiveConf(); return; @@ -1396,6 +1397,14 @@ public Table getTable(String tableName) throws MetaException, TException, return fastpath ? tabs : deepCopyTables(filterHook.filterTables(tabs)); } + /** {@inheritDoc} */ + @Override + public Map getMaterializationsInvalidationInfo(String dbName, List viewNames) + throws MetaException, InvalidOperationException, UnknownDBException, TException { + return client.get_materialization_invalidation_info( + dbName, filterHook.filterTableNames(dbName, viewNames)); + } + /** {@inheritDoc} */ @Override public List listTableNamesByFilter(String dbName, String filter, short maxTables) @@ -1431,7 +1440,19 @@ public Type getType(String name) throws NoSuchObjectException, MetaException, TE @Override public List getTables(String dbname, String tablePattern, TableType tableType) throws MetaException { try { - return filterHook.filterTableNames(dbname, client.get_tables_by_type(dbname, tablePattern, tableType.toString())); + return filterHook.filterTableNames(dbname, + client.get_tables_by_type(dbname, tablePattern, tableType.toString())); + } catch (Exception e) { + MetaStoreUtils.logAndThrowMetaException(e); + } + return null; + } + + /** {@inheritDoc} */ + @Override + public List getMaterializedViewsForRewriting(String dbname) throws MetaException { + try { + return filterHook.filterTableNames(dbname, client.get_materialized_views_for_rewriting(dbname)); } catch (Exception e) { MetaStoreUtils.logAndThrowMetaException(e); } @@ -2144,6 +2165,15 @@ public boolean removeMasterKey(Integer keySeq) throws TException { return keyList.toArray(new String[keyList.size()]); } + @Override + public BasicTxnInfo getLastCompletedTransactionForTable(String dbName, String tableName, ValidTxnList txnList) + throws TException { + TxnsSnapshot txnsSnapshot = new TxnsSnapshot(); + txnsSnapshot.setTxn_high_water_mark(txnList.getHighWatermark()); + txnsSnapshot.setOpen_txns(Arrays.asList(ArrayUtils.toObject(txnList.getInvalidTransactions()))); + return client.get_last_completed_transaction_for_table(dbName, tableName, txnsSnapshot); + } + @Override public ValidTxnList getValidTxns() throws TException { return TxnUtils.createValidReadTxnList(client.get_open_txns(), 0); @@ -2746,4 +2776,5 @@ public void createOrDropTriggerToPoolMapping(String resourcePlanName, String tri request.setDrop(shouldDrop); client.create_or_drop_wm_trigger_to_pool_mapping(request); } + } diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/IHMSHandler.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/IHMSHandler.java index 85bdc4d969..e6de001000 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/IHMSHandler.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/IHMSHandler.java @@ -18,6 +18,8 @@ package org.apache.hadoop.hive.metastore; +import java.util.List; + import org.apache.hadoop.classification.InterfaceAudience; import org.apache.hadoop.conf.Configurable; import org.apache.hadoop.hive.metastore.api.Database; @@ -25,8 +27,7 @@ import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; import org.apache.hadoop.hive.metastore.api.Table; import org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore; - -import java.util.List; +import org.apache.hadoop.hive.metastore.txn.TxnStore; /** * An interface wrapper for HMSHandler. This interface contains methods that need to be @@ -50,6 +51,12 @@ */ RawStore getMS() throws MetaException; + /** + * Get a reference to the underlying TxnStore. + * @return the TxnStore instance. + */ + TxnStore getTxnHandler(); + /** * Get a reference to Hive's warehouse object (the class that does all the physical operations). * @return Warehouse instance. diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java index 573ac0173d..bcde85af96 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java @@ -19,8 +19,6 @@ package org.apache.hadoop.hive.metastore; -import org.apache.hadoop.hive.metastore.api.WMFullResourcePlan; - import java.io.IOException; import java.nio.ByteBuffer; import java.util.List; @@ -35,6 +33,7 @@ import org.apache.hadoop.hive.metastore.annotation.NoReconnect; import org.apache.hadoop.hive.metastore.api.AggrStats; import org.apache.hadoop.hive.metastore.api.AlreadyExistsException; +import org.apache.hadoop.hive.metastore.api.BasicTxnInfo; import org.apache.hadoop.hive.metastore.api.CmRecycleRequest; import org.apache.hadoop.hive.metastore.api.CmRecycleResponse; import org.apache.hadoop.hive.metastore.api.ColumnStatistics; @@ -67,6 +66,7 @@ import org.apache.hadoop.hive.metastore.api.InvalidPartitionException; import org.apache.hadoop.hive.metastore.api.LockRequest; import org.apache.hadoop.hive.metastore.api.LockResponse; +import org.apache.hadoop.hive.metastore.api.Materialization; import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.hadoop.hive.metastore.api.MetadataPpdResult; import org.apache.hadoop.hive.metastore.api.NoSuchLockException; @@ -75,8 +75,8 @@ import org.apache.hadoop.hive.metastore.api.NotNullConstraintsRequest; import org.apache.hadoop.hive.metastore.api.NotificationEvent; import org.apache.hadoop.hive.metastore.api.NotificationEventResponse; -import org.apache.hadoop.hive.metastore.api.NotificationEventsCountResponse; import org.apache.hadoop.hive.metastore.api.NotificationEventsCountRequest; +import org.apache.hadoop.hive.metastore.api.NotificationEventsCountResponse; import org.apache.hadoop.hive.metastore.api.OpenTxnsResponse; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.PartitionEventType; @@ -86,8 +86,6 @@ import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; import org.apache.hadoop.hive.metastore.api.PrincipalType; import org.apache.hadoop.hive.metastore.api.PrivilegeBag; -import org.apache.hadoop.hive.metastore.api.WMResourcePlan; -import org.apache.hadoop.hive.metastore.api.WMTrigger; import org.apache.hadoop.hive.metastore.api.Role; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; @@ -105,8 +103,11 @@ import org.apache.hadoop.hive.metastore.api.UnknownDBException; import org.apache.hadoop.hive.metastore.api.UnknownPartitionException; import org.apache.hadoop.hive.metastore.api.UnknownTableException; +import org.apache.hadoop.hive.metastore.api.WMFullResourcePlan; import org.apache.hadoop.hive.metastore.api.WMMapping; import org.apache.hadoop.hive.metastore.api.WMPool; +import org.apache.hadoop.hive.metastore.api.WMResourcePlan; +import org.apache.hadoop.hive.metastore.api.WMTrigger; import org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy; import org.apache.hadoop.hive.metastore.utils.ObjectPair; import org.apache.thrift.TException; @@ -202,6 +203,17 @@ List getTables(String dbName, String tablePattern, TableType tableType) throws MetaException, TException, UnknownDBException; + /** + * Get materialized views that have rewriting enabled. + * @param dbName Name of the database to fetch materialized views from. + * @return List of materialized view names. + * @throws MetaException + * @throws TException + * @throws UnknownDBException + */ + List getMaterializedViewsForRewriting(String dbName) + throws MetaException, TException, UnknownDBException; + /** * For quick GetTablesOperation */ @@ -428,6 +440,12 @@ Table getTable(String dbName, String tableName) throws MetaException, List
getTableObjectsByName(String dbName, List tableNames) throws MetaException, InvalidOperationException, UnknownDBException, TException; + /** + * Returns the invalidation information for the materialized views given as input. + */ + Map getMaterializationsInvalidationInfo(String dbName, List viewNames) + throws MetaException, InvalidOperationException, UnknownDBException, TException; + /** * @param tableName * @param dbName @@ -1316,6 +1334,15 @@ Function getFunction(String dbName, String funcName) GetAllFunctionsResponse getAllFunctions() throws MetaException, TException; + /** + * Get the last completed transaction for the given table. Although transactions in Hive + * might happen concurrently, the order is based on the actual commit to the metastore + * table holding the completed transactions. + */ + @InterfaceAudience.LimitedPrivate({"HCatalog"}) + BasicTxnInfo getLastCompletedTransactionForTable(String dbName, String tableName, ValidTxnList txnList) + throws TException; + /** * Get a structure that details valid transactions. * @return list of valid transactions diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MaterializationInvalidationInfo.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MaterializationInvalidationInfo.java new file mode 100644 index 0000000000..5e7ee40cfe --- /dev/null +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MaterializationInvalidationInfo.java @@ -0,0 +1,59 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.hadoop.hive.metastore; + +import java.util.Set; +import java.util.concurrent.atomic.AtomicLong; + +import org.apache.hadoop.hive.metastore.api.Materialization; +import org.apache.hadoop.hive.metastore.api.Table; + +/** + * Contains information about the invalidation of a materialization, + * including the materialization name, the tables that it uses, and + * the invalidation time, i.e., the first moment t0 after the + * materialization was created at which one of the tables that it uses + * was modified. + */ +@SuppressWarnings("serial") +public class MaterializationInvalidationInfo extends Materialization { + + private AtomicLong invalidationTime; + + public MaterializationInvalidationInfo(Table materializationTable, Set tablesUsed) { + super(materializationTable, tablesUsed, 0); + this.invalidationTime = new AtomicLong(0); + } + + public boolean compareAndSetInvalidationTime(long expect, long update) { + boolean success = invalidationTime.compareAndSet(expect, update); + if (success) { + super.setInvalidationTime(update); + } + return success; + } + + public long getInvalidationTime() { + return invalidationTime.get(); + } + + public void setInvalidationTime(long invalidationTime) { + throw new UnsupportedOperationException("You should call compareAndSetInvalidationTime instead"); + } + +} diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MaterializationsInvalidationCache.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MaterializationsInvalidationCache.java new file mode 100644 index 0000000000..fcd1aad6b8 --- /dev/null +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MaterializationsInvalidationCache.java @@ -0,0 +1,370 @@ +/** + * 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.util.List; +import java.util.Map; +import java.util.Set; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentMap; +import java.util.concurrent.ConcurrentSkipListSet; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; + +import org.apache.hadoop.hive.metastore.api.BasicTxnInfo; +import org.apache.hadoop.hive.metastore.api.Materialization; +import org.apache.hadoop.hive.metastore.api.MetaException; +import org.apache.hadoop.hive.metastore.api.Table; +import org.apache.hadoop.hive.metastore.txn.TxnStore; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; + +/** + * This cache keeps information in memory about the table modifications so materialized views + * can verify their invalidation time, i.e., the moment after materialization on which the + * first transaction to the tables they used happened. This information is kept in memory + * to check the invalidation quickly. However, we store enough information in the metastore + * to bring this cache up if the metastore is restarted or would crashed. This cache lives + * in the metastore server. + */ +public final class MaterializationsInvalidationCache { + + private static final Logger LOG = LoggerFactory.getLogger(MaterializationsInvalidationCache.class); + + /* Singleton */ + private static final MaterializationsInvalidationCache SINGLETON = new MaterializationsInvalidationCache(); + + /* Key is the database name. Each value is a map from the unique view qualified name to + * the materialization invalidation info. This invalidation object contains information + * such as the tables used by the materialized view or the invalidation time, i.e., first + * modification of the tables used by materialized view after the view was created. */ + private final ConcurrentMap> materializations = + new ConcurrentHashMap>(); + + /* + * Key is a qualified table name. The value is a (sorted) tree set (supporting concurrent + * modifications) that will keep the modifications for a given table in the order that they + * happen. This is useful to quickly check the invalidation time for a given materialized + * view. + */ + private final ConcurrentMap> tableModifications = + new ConcurrentHashMap>(); + + /* Whether the cache has been initialized or not. */ + private boolean initialized; + /* Store to answer calls not related to transactions. */ + private RawStore store; + /* Store to answer calls related to transactions. */ + private TxnStore txnStore; + + private MaterializationsInvalidationCache() { + } + + /** + * Get instance of MaterializationsInvalidationCache. + * + * @return the singleton + */ + public static MaterializationsInvalidationCache get() { + return SINGLETON; + } + + /** + * Initialize the invalidation cache. + * + * The method is synchronized because we want to avoid initializing the invalidation cache + * multiple times in embedded mode. This will not happen when we run the metastore remotely + * as the method is called only once. + */ + public synchronized void init(final RawStore store, final TxnStore txnStore) { + this.store = store; + this.txnStore = txnStore; + + if (!initialized) { + this.initialized = true; + ExecutorService pool = Executors.newCachedThreadPool(); + pool.submit(new Loader()); + pool.shutdown(); + } + } + + private class Loader implements Runnable { + @Override + public void run() { + try { + for (String dbName : store.getAllDatabases()) { + for (Table mv : store.getTableObjectsByName(dbName, store.getTables(dbName, null, TableType.MATERIALIZED_VIEW))) { + addMaterializedView(mv, ImmutableSet.copyOf(mv.getCreationMetadata().keySet()), OpType.LOAD); + } + } + LOG.info("Initialized materializations invalidation cache"); + } catch (Exception e) { + LOG.error("Problem connecting to the metastore when initializing the view registry"); + } + } + } + + /** + * Adds a newly created materialized view to the cache. + * + * @param materializedViewTable the materialized view + * @param tablesUsed tables used by the materialized view + */ + public void createMaterializedView(Table materializedViewTable, Set tablesUsed) { + addMaterializedView(materializedViewTable, tablesUsed, OpType.CREATE); + } + + /** + * Method to call when materialized view is modified. + * + * @param materializedViewTable the materialized view + * @param tablesUsed tables used by the materialized view + */ + public void alterMaterializedView(Table materializedViewTable, Set tablesUsed) { + addMaterializedView(materializedViewTable, tablesUsed, OpType.ALTER); + } + + /** + * Adds the materialized view to the cache. + * + * @param materializedViewTable the materialized view + * @param tablesUsed tables used by the materialized view + */ + private void addMaterializedView(Table materializedViewTable, Set tablesUsed, OpType opType) { + // We are going to create the map for each view in the given database + ConcurrentMap cq = + new ConcurrentHashMap(); + final ConcurrentMap prevCq = materializations.putIfAbsent( + materializedViewTable.getDbName(), cq); + if (prevCq != null) { + cq = prevCq; + } + // Start the process to add materialization to the cache + // Before loading the materialization in the cache, we need to update some + // important information in the registry to account for rewriting invalidation + for (String qNameTableUsed : tablesUsed) { + // First we insert a new tree set to keep table modifications, unless it already exists + ConcurrentSkipListSet modificationsTree = + new ConcurrentSkipListSet(); + final ConcurrentSkipListSet prevModificationsTree = tableModifications.putIfAbsent( + qNameTableUsed, modificationsTree); + if (prevModificationsTree != null) { + modificationsTree = prevModificationsTree; + } + // We obtain the access time to the table when the materialized view was created. + // This is a map from table fully qualified name to last modification before MV creation. + BasicTxnInfo e = materializedViewTable.getCreationMetadata().get(qNameTableUsed); + if (e == null) { + // This can happen when the materialized view was created on non-transactional tables + // with rewrite disabled but then it was enabled by alter statement + continue; + } + final TableModificationKey lastModificationBeforeCreation = + new TableModificationKey(e.getId(), e.getTime()); + modificationsTree.add(lastModificationBeforeCreation); + if (opType == OpType.LOAD) { + // If we are not creating the MV at this instant, but instead it was created previously + // and we are loading it into the cache, we need to go through the transaction logs and + // check if the MV is still valid. + try { + String[] names = qNameTableUsed.split("\\."); + BasicTxnInfo e2 = txnStore.getFirstCompletedTransactionForTableAfterCommit( + names[0], names[1], lastModificationBeforeCreation.id); + if (e2 != null) { + modificationsTree.add(new TableModificationKey(e2.getId(), e2.getTime())); + // We do not need to do anything more for current table, as we detected + // a modification event that was in the metastore. + continue; + } + } catch (MetaException ex) { + LOG.warn("Materialized view " + + Warehouse.getQualifiedName(materializedViewTable.getDbName(), materializedViewTable.getTableName()) + + " ignored; error loading view into invalidation cache", ex); + return; + } + } + } + if (opType == OpType.CREATE || opType == OpType.ALTER) { + // You store the materialized view + cq.put(materializedViewTable.getTableName(), + new MaterializationInvalidationInfo(materializedViewTable, tablesUsed)); + } else { + // For LOAD, you only add it if it does exist as you might be loading an outdated MV + cq.putIfAbsent(materializedViewTable.getTableName(), + new MaterializationInvalidationInfo(materializedViewTable, tablesUsed)); + } + if (LOG.isDebugEnabled()) { + LOG.debug("Cached materialized view for rewriting in invalidation cache: " + + Warehouse.getQualifiedName(materializedViewTable.getDbName(), materializedViewTable.getTableName())); + } + } + + /** + * This method is called when a table is modified. That way we can keep a track of the + * invalidation for the MVs that use that table. + */ + public void notifyTableModification(String dbName, String tableName, + long eventId, long newModificationTime) { + if (LOG.isDebugEnabled()) { + LOG.debug("Notification for table {} in database {} received -> id: {}, time: {}", + tableName, dbName, eventId, newModificationTime); + } + ConcurrentSkipListSet modificationsTree = + new ConcurrentSkipListSet(); + final ConcurrentSkipListSet prevModificationsTree = + tableModifications.putIfAbsent(Warehouse.getQualifiedName(dbName, tableName), modificationsTree); + if (prevModificationsTree != null) { + modificationsTree = prevModificationsTree; + } + modificationsTree.add(new TableModificationKey(eventId, newModificationTime)); + } + + /** + * Removes the materialized view from the cache. + * + * @param materializedViewTable the materialized view to remove + */ + public void dropMaterializedView(Table materializedViewTable) { + dropMaterializedView(materializedViewTable.getDbName(), materializedViewTable.getTableName()); + } + + public void dropMaterializedView(String dbName, String tableName) { + materializations.get(dbName).remove(tableName); + } + + /** + * Returns the materialized views in the cache for the given database. + * + * @param dbName the database + * @return the collection of materialized views, or the empty collection if none + */ + public Map getMaterializationInvalidationInfo( + String dbName, List materializationNames) { + if (materializations.get(dbName) != null) { + ImmutableMap.Builder m = ImmutableMap.builder(); + for (String materializationName : materializationNames) { + MaterializationInvalidationInfo materialization = + materializations.get(dbName).get(materializationName); + if (materialization == null) { + LOG.warn("Materialization {} skipped as there is no information " + + "in the invalidation cache about it", materializationName); + continue; + } + long invalidationTime = getInvalidationTime(materialization); + // We need to check whether previous value is zero, as data modification + // in another table used by the materialized view might have modified + // the value too + boolean modified = materialization.compareAndSetInvalidationTime(0L, invalidationTime); + while (!modified) { + long currentInvalidationTime = materialization.getInvalidationTime(); + if (invalidationTime < currentInvalidationTime) { + // It was set by other table modification, but it was after this table modification + // hence we need to set it + modified = materialization.compareAndSetInvalidationTime(currentInvalidationTime, invalidationTime); + } else { + // Nothing to do + modified = true; + } + } + m.put(materializationName, materialization); + } + Map result = m.build(); + if (LOG.isDebugEnabled()) { + LOG.debug("Retrieved the following materializations from the invalidation cache: {}", result); + } + return result; + } + return ImmutableMap.of(); + } + + private long getInvalidationTime(MaterializationInvalidationInfo materialization) { + long firstModificationTimeAfterCreation = 0L; + for (String qNameTableUsed : materialization.getTablesUsed()) { + BasicTxnInfo e = materialization.getMaterializationTable().getCreationMetadata().get(qNameTableUsed); + if (e == null) { + // This can happen when the materialized view was created on non-transactional tables + // with rewrite disabled but then it was enabled by alter statement + return Long.MIN_VALUE; + } + final TableModificationKey lastModificationBeforeCreation = + new TableModificationKey(e.getId(), e.getTime()); + final TableModificationKey post = tableModifications.get(qNameTableUsed) + .higher(lastModificationBeforeCreation); + if (post != null) { + if (firstModificationTimeAfterCreation == 0L || + post.time < firstModificationTimeAfterCreation) { + firstModificationTimeAfterCreation = post.time; + } + } + } + return firstModificationTimeAfterCreation; + } + + private static class TableModificationKey implements Comparable { + private long id; + private long time; + + private TableModificationKey(long id, long time) { + this.id = id; + this.time = time; + } + + @Override + public boolean equals(Object obj) { + if(this == obj) { + return true; + } + if((obj == null) || (obj.getClass() != this.getClass())) { + return false; + } + TableModificationKey tableModificationKey = (TableModificationKey) obj; + return id == tableModificationKey.id && time == tableModificationKey.time; + } + + @Override + public int hashCode() { + int hash = 7; + hash = 31 * hash + Long.hashCode(id); + hash = 31 * hash + Long.hashCode(time); + return hash; + } + + @Override + public int compareTo(TableModificationKey other) { + if (id == other.id) { + return Long.compare(time, other.time); + } + return Long.compare(id, other.id); + } + + @Override + public String toString() { + return "TableModificationKey{" + id + "," + time + "}"; + } + } + + private enum OpType { + CREATE, + LOAD, + ALTER + } + +} diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java index 14653b4043..46138e06ae 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java @@ -42,8 +42,8 @@ import javax.jdo.Transaction; import javax.jdo.datastore.JDOConnection; -import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.BooleanUtils; +import org.apache.commons.lang.StringUtils; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hive.metastore.AggregateStatsCache.AggrColStats; import org.apache.hadoop.hive.metastore.api.AggrStats; diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java index 2e80c9d3b1..2a69a7a589 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java @@ -21,15 +21,6 @@ import static org.apache.commons.lang.StringUtils.join; import static org.apache.hadoop.hive.metastore.utils.StringUtils.normalizeIdentifier; -import com.google.common.collect.Sets; -import org.apache.hadoop.hive.metastore.api.WMPoolTrigger; -import org.apache.hadoop.hive.metastore.api.WMMapping; -import org.apache.hadoop.hive.metastore.model.MWMMapping; -import org.apache.hadoop.hive.metastore.model.MWMMapping.EntityType; -import org.apache.hadoop.hive.metastore.api.WMPool; -import org.apache.hadoop.hive.metastore.model.MWMPool; -import org.apache.hadoop.hive.metastore.api.WMFullResourcePlan; - import java.io.IOException; import java.lang.reflect.Field; import java.net.InetAddress; @@ -75,8 +66,8 @@ import javax.jdo.identity.IntIdentity; import javax.sql.DataSource; - import org.apache.commons.collections.CollectionUtils; +import org.apache.commons.collections.MapUtils; import org.apache.commons.lang.ArrayUtils; import org.apache.commons.lang.exception.ExceptionUtils; import org.apache.hadoop.classification.InterfaceAudience; @@ -88,6 +79,7 @@ import org.apache.hadoop.hive.metastore.MetaStoreDirectSql.SqlFilterForPushdown; import org.apache.hadoop.hive.metastore.api.AggrStats; import org.apache.hadoop.hive.metastore.api.AlreadyExistsException; +import org.apache.hadoop.hive.metastore.api.BasicTxnInfo; import org.apache.hadoop.hive.metastore.api.ColumnStatistics; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsDesc; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; @@ -138,6 +130,10 @@ import org.apache.hadoop.hive.metastore.api.UnknownDBException; import org.apache.hadoop.hive.metastore.api.UnknownPartitionException; import org.apache.hadoop.hive.metastore.api.UnknownTableException; +import org.apache.hadoop.hive.metastore.api.WMFullResourcePlan; +import org.apache.hadoop.hive.metastore.api.WMMapping; +import org.apache.hadoop.hive.metastore.api.WMPool; +import org.apache.hadoop.hive.metastore.api.WMPoolTrigger; import org.apache.hadoop.hive.metastore.api.WMResourcePlan; import org.apache.hadoop.hive.metastore.api.WMResourcePlanStatus; import org.apache.hadoop.hive.metastore.api.WMTrigger; @@ -178,6 +174,9 @@ import org.apache.hadoop.hive.metastore.model.MTablePrivilege; import org.apache.hadoop.hive.metastore.model.MType; import org.apache.hadoop.hive.metastore.model.MVersionTable; +import org.apache.hadoop.hive.metastore.model.MWMMapping; +import org.apache.hadoop.hive.metastore.model.MWMMapping.EntityType; +import org.apache.hadoop.hive.metastore.model.MWMPool; import org.apache.hadoop.hive.metastore.model.MWMResourcePlan; import org.apache.hadoop.hive.metastore.model.MWMResourcePlan.Status; import org.apache.hadoop.hive.metastore.model.MWMTrigger; @@ -189,7 +188,10 @@ import org.apache.hadoop.hive.metastore.utils.JavaUtils; import org.apache.hadoop.hive.metastore.utils.MetaStoreUtils; import org.apache.hadoop.hive.metastore.utils.ObjectPair; +import org.apache.thrift.TDeserializer; import org.apache.thrift.TException; +import org.apache.thrift.TSerializer; +import org.apache.thrift.protocol.TJSONProtocol; import org.datanucleus.AbstractNucleusContext; import org.datanucleus.ClassLoaderResolver; import org.datanucleus.ClassLoaderResolverImpl; @@ -207,6 +209,7 @@ import com.google.common.annotations.VisibleForTesting; import com.google.common.collect.Lists; import com.google.common.collect.Maps; +import com.google.common.collect.Sets; /** @@ -1112,6 +1115,7 @@ public void createTable(Table tbl) throws InvalidObjectException, MetaException boolean commited = false; try { openTransaction(); + MTable mtbl = convertToMTable(tbl); pm.makePersistent(mtbl); @@ -1134,6 +1138,12 @@ public void createTable(Table tbl) throws InvalidObjectException, MetaException } finally { if (!commited) { rollbackTransaction(); + } else { + if (tbl.getTableType().equals(TableType.MATERIALIZED_VIEW.toString())) { + // Add to the invalidation cache + MaterializationsInvalidationCache.get().createMaterializedView( + tbl, tbl.getCreationMetadata().keySet()); + } } } } @@ -1174,12 +1184,14 @@ private void putPersistentPrivObjects(MTable mtbl, List toPersistPrivObj @Override public boolean dropTable(String dbName, String tableName) throws MetaException, NoSuchObjectException, InvalidObjectException, InvalidInputException { + boolean materializedView = false; boolean success = false; try { openTransaction(); MTable tbl = getMTable(dbName, tableName); pm.retrieve(tbl); if (tbl != null) { + materializedView = tbl.getTableType().equals(TableType.MATERIALIZED_VIEW.toString()); // first remove all the grants List tabGrants = listAllTableGrants(dbName, tableName); if (CollectionUtils.isNotEmpty(tabGrants)) { @@ -1223,6 +1235,10 @@ public boolean dropTable(String dbName, String tableName) throws MetaException, } finally { if (!success) { rollbackTransaction(); + } else { + if (materializedView) { + MaterializationsInvalidationCache.get().dropMaterializedView(dbName, tableName); + } } } return success; @@ -1355,6 +1371,30 @@ public Table getTable(String dbName, String tableName) throws MetaException { return tbls; } + @Override + public List getMaterializedViewsForRewriting(String dbName) + throws MetaException, NoSuchObjectException { + final String db_name = normalizeIdentifier(dbName); + boolean commited = false; + Query query = null; + List tbls = null; + try { + openTransaction(); + dbName = normalizeIdentifier(dbName); + query = pm.newQuery(MTable.class, "database.name == db && tableType == tt" + + " && rewriteEnabled == re"); + query.declareParameters("java.lang.String db, java.lang.String tt, boolean re"); + query.setResult("tableName"); + Collection names = (Collection) query.execute( + db_name, TableType.MATERIALIZED_VIEW.toString(), true); + tbls = new ArrayList<>(names); + commited = commitTransaction(); + } finally { + rollbackAndCleanup(commited, query); + } + return tbls; + } + @Override public int getDatabaseCount() throws MetaException { return getObjectCount("name", MDatabase.class.getName()); @@ -1588,6 +1628,7 @@ private Table convertToTable(MTable mtbl) throws MetaException { .getRetention(), convertToStorageDescriptor(mtbl.getSd()), convertToFieldSchemas(mtbl.getPartitionKeys()), convertMap(mtbl.getParameters()), mtbl.getViewOriginalText(), mtbl.getViewExpandedText(), tableType); + t.setCreationMetadata(convertToCreationMetadata(mtbl.getCreationMetadata())); t.setRewriteEnabled(mtbl.isRewriteEnabled()); return t; } @@ -1627,7 +1668,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); + convertToMCreationMetadata(tbl.getCreationMetadata()), tableType); } private List convertToMFieldSchemas(List keys) { @@ -1836,6 +1877,58 @@ private MStorageDescriptor convertToMStorageDescriptor(StorageDescriptor sd, .getSkewedColValueLocationMaps()), sd.isStoredAsSubDirectories()); } + private Map convertToMCreationMetadata( + Map m) throws MetaException { + if (m == null) { + return null; + } + Map r = new HashMap<>(); + for (Entry e : m.entrySet()) { + r.put(e.getKey(), serializeBasicTransactionInfo(e.getValue())); + } + return r; + } + + private Map convertToCreationMetadata( + Map m) throws MetaException { + if (m == null) { + return null; + } + Map r = new HashMap<>(); + for (Entry e : m.entrySet()) { + r.put(e.getKey(), deserializeBasicTransactionInfo(e.getValue())); + } + return r; + } + + private String serializeBasicTransactionInfo(BasicTxnInfo entry) + throws MetaException { + if (entry == null) { + return ""; + } + try { + TSerializer serializer = new TSerializer(new TJSONProtocol.Factory()); + return serializer.toString(entry); + } catch (TException e) { + throw new MetaException("Error serializing object " + entry + ": " + e.toString()); + } + } + + private BasicTxnInfo deserializeBasicTransactionInfo(String s) + throws MetaException { + if (s.equals("")) { + return null; + } + try { + TDeserializer deserializer = new TDeserializer(new TJSONProtocol.Factory()); + BasicTxnInfo r = new BasicTxnInfo(); + deserializer.fromString(r, s); + return r; + } catch (TException e) { + throw new MetaException("Error deserializing object " + s + ": " + e.toString()); + } + } + @Override public boolean addPartitions(String dbName, String tblName, List parts) throws InvalidObjectException, MetaException { @@ -3566,6 +3659,7 @@ private String makeParameterDeclarationStringObj(Map params) { public void alterTable(String dbname, String name, Table newTable) throws InvalidObjectException, MetaException { boolean success = false; + boolean registerCreationSignature = false; try { openTransaction(); name = normalizeIdentifier(name); @@ -3601,12 +3695,23 @@ public void alterTable(String dbname, String name, Table newTable) oldt.setViewOriginalText(newt.getViewOriginalText()); oldt.setViewExpandedText(newt.getViewExpandedText()); oldt.setRewriteEnabled(newt.isRewriteEnabled()); + registerCreationSignature = !MapUtils.isEmpty(newt.getCreationMetadata()); + if (registerCreationSignature) { + oldt.setCreationMetadata(newt.getCreationMetadata()); + } // commit the changes success = commitTransaction(); } finally { if (!success) { rollbackTransaction(); + } else { + if (newTable.getTableType().equals(TableType.MATERIALIZED_VIEW.toString()) && + registerCreationSignature) { + // Add to the invalidation cache if the creation signature has changed + MaterializationsInvalidationCache.get().alterMaterializedView( + newTable, newTable.getCreationMetadata().keySet()); + } } } } diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/RawStore.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/RawStore.java index 75fbfa23d2..3a903e945a 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/RawStore.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/RawStore.java @@ -175,6 +175,9 @@ void alterTable(String dbname, String name, Table newTable) List getTables(String dbName, String pattern, TableType tableType) throws MetaException; + List getMaterializedViewsForRewriting(String dbName) + throws MetaException, NoSuchObjectException; + List getTableMeta( String dbNames, String tableNames, List tableTypes) throws MetaException; diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/Warehouse.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/Warehouse.java index 421d1bee10..2d52e0edda 100755 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/Warehouse.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/Warehouse.java @@ -181,7 +181,11 @@ public Path getDefaultTablePath(Database db, String tableName) } public static String getQualifiedName(Table table) { - return table.getDbName() + "." + table.getTableName(); + return getQualifiedName(table.getDbName(), table.getTableName()); + } + + public static String getQualifiedName(String dbName, String tableName) { + return dbName + "." + tableName; } public static String getQualifiedName(Partition partition) { diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java index da518ab6e3..8029ae5434 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java @@ -1084,6 +1084,12 @@ public void alterTable(String dbName, String tblName, Table newTable) return tableNames; } + @Override + public List getMaterializedViewsForRewriting(String dbName) + throws MetaException, NoSuchObjectException { + return rawStore.getMaterializedViewsForRewriting(dbName); + } + @Override public List getTableMeta(String dbNames, String tableNames, List tableTypes) throws MetaException { diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MTable.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MTable.java index 3759348f54..9c34928677 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MTable.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MTable.java @@ -35,6 +35,7 @@ private String viewOriginalText; private String viewExpandedText; private boolean rewriteEnabled; + private Map creationMetadata; private String tableType; public MTable() {} @@ -55,8 +56,9 @@ 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) { + Map parameters, String viewOriginalText, String viewExpandedText, + boolean rewriteEnabled, Map creationMetadata, + String tableType) { this.tableName = tableName; this.database = database; this.sd = sd; @@ -69,6 +71,7 @@ public MTable(String tableName, MDatabase database, MStorageDescriptor sd, Strin this.viewOriginalText = viewOriginalText; this.viewExpandedText = viewExpandedText; this.rewriteEnabled = rewriteEnabled; + this.creationMetadata = creationMetadata; this.tableType = tableType; } @@ -170,6 +173,20 @@ public void setRewriteEnabled(boolean rewriteEnabled) { this.rewriteEnabled = rewriteEnabled; } + /** + * @return the metadata information related to a materialized view creation + */ + public Map getCreationMetadata() { + return creationMetadata; + } + + /** + * @param creationMetadata the metadata information to set + */ + public void setCreationMetadata(Map creationMetadata) { + this.creationMetadata = creationMetadata; + } + /** * @return the owner */ diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnDbUtil.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnDbUtil.java index 756cb4cec2..e72472359d 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnDbUtil.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnDbUtil.java @@ -91,7 +91,9 @@ public static void prepDb(Configuration conf) throws Exception { " CTC_TXNID bigint," + " CTC_DATABASE varchar(128) NOT NULL," + " CTC_TABLE varchar(128)," + - " CTC_PARTITION varchar(767))"); + " CTC_PARTITION varchar(767)," + + " CTC_ID bigint GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1) NOT NULL," + + " CTC_TIMESTAMP timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL)"); stmt.execute("CREATE TABLE NEXT_TXN_ID (" + " NTXN_NEXT bigint NOT NULL)"); stmt.execute("INSERT INTO NEXT_TXN_ID VALUES(1)"); stmt.execute("CREATE TABLE HIVE_LOCKS (" + diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java index 06f49de8d2..b172808cd6 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java @@ -17,48 +17,109 @@ */ package org.apache.hadoop.hive.metastore.txn; -import com.google.common.annotations.VisibleForTesting; +import java.io.PrintWriter; +import java.nio.ByteBuffer; +import java.sql.Connection; +import java.sql.Driver; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.SQLFeatureNotSupportedException; +import java.sql.Savepoint; +import java.sql.Statement; +import java.util.ArrayList; +import java.util.BitSet; +import java.util.Calendar; +import java.util.Collections; +import java.util.Comparator; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Properties; +import java.util.Set; +import java.util.SortedSet; +import java.util.TimeZone; +import java.util.TreeSet; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.Semaphore; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicInteger; +import java.util.concurrent.locks.ReentrantLock; +import java.util.regex.Pattern; + +import javax.sql.DataSource; import org.apache.commons.dbcp.ConnectionFactory; import org.apache.commons.dbcp.DriverManagerConnectionFactory; import org.apache.commons.dbcp.PoolableConnectionFactory; +import org.apache.commons.dbcp.PoolingDataSource; import org.apache.commons.lang.NotImplementedException; +import org.apache.commons.pool.impl.GenericObjectPool; import org.apache.hadoop.classification.InterfaceAudience; import org.apache.hadoop.classification.InterfaceStability; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hive.common.classification.RetrySemantics; import org.apache.hadoop.hive.metastore.DatabaseProduct; +import org.apache.hadoop.hive.metastore.MaterializationsInvalidationCache; import org.apache.hadoop.hive.metastore.Warehouse; +import org.apache.hadoop.hive.metastore.api.AbortTxnRequest; +import org.apache.hadoop.hive.metastore.api.AbortTxnsRequest; +import org.apache.hadoop.hive.metastore.api.AddDynamicPartitions; +import org.apache.hadoop.hive.metastore.api.BasicTxnInfo; +import org.apache.hadoop.hive.metastore.api.CheckLockRequest; +import org.apache.hadoop.hive.metastore.api.CommitTxnRequest; +import org.apache.hadoop.hive.metastore.api.CompactionRequest; +import org.apache.hadoop.hive.metastore.api.CompactionResponse; +import org.apache.hadoop.hive.metastore.api.CompactionType; +import org.apache.hadoop.hive.metastore.api.DataOperationType; +import org.apache.hadoop.hive.metastore.api.Database; +import org.apache.hadoop.hive.metastore.api.FieldSchema; +import org.apache.hadoop.hive.metastore.api.GetOpenTxnsInfoResponse; +import org.apache.hadoop.hive.metastore.api.GetOpenTxnsResponse; +import org.apache.hadoop.hive.metastore.api.HeartbeatRequest; +import org.apache.hadoop.hive.metastore.api.HeartbeatTxnRangeRequest; +import org.apache.hadoop.hive.metastore.api.HeartbeatTxnRangeResponse; +import org.apache.hadoop.hive.metastore.api.HiveObjectType; +import org.apache.hadoop.hive.metastore.api.LockComponent; +import org.apache.hadoop.hive.metastore.api.LockRequest; +import org.apache.hadoop.hive.metastore.api.LockResponse; +import org.apache.hadoop.hive.metastore.api.LockState; +import org.apache.hadoop.hive.metastore.api.LockType; +import org.apache.hadoop.hive.metastore.api.MetaException; +import org.apache.hadoop.hive.metastore.api.NoSuchLockException; +import org.apache.hadoop.hive.metastore.api.NoSuchTxnException; +import org.apache.hadoop.hive.metastore.api.OpenTxnRequest; +import org.apache.hadoop.hive.metastore.api.OpenTxnsResponse; +import org.apache.hadoop.hive.metastore.api.Partition; +import org.apache.hadoop.hive.metastore.api.ShowCompactRequest; +import org.apache.hadoop.hive.metastore.api.ShowCompactResponse; +import org.apache.hadoop.hive.metastore.api.ShowCompactResponseElement; +import org.apache.hadoop.hive.metastore.api.ShowLocksRequest; +import org.apache.hadoop.hive.metastore.api.ShowLocksResponse; +import org.apache.hadoop.hive.metastore.api.ShowLocksResponseElement; +import org.apache.hadoop.hive.metastore.api.Table; +import org.apache.hadoop.hive.metastore.api.TxnAbortedException; +import org.apache.hadoop.hive.metastore.api.TxnInfo; +import org.apache.hadoop.hive.metastore.api.TxnOpenException; +import org.apache.hadoop.hive.metastore.api.TxnState; +import org.apache.hadoop.hive.metastore.api.TxnsSnapshot; +import org.apache.hadoop.hive.metastore.api.UnlockRequest; +import org.apache.hadoop.hive.metastore.conf.MetastoreConf; +import org.apache.hadoop.hive.metastore.conf.MetastoreConf.ConfVars; import org.apache.hadoop.hive.metastore.datasource.BoneCPDataSourceProvider; import org.apache.hadoop.hive.metastore.datasource.DataSourceProvider; import org.apache.hadoop.hive.metastore.datasource.HikariCPDataSourceProvider; -import org.apache.hadoop.hive.metastore.conf.MetastoreConf; -import org.apache.hadoop.hive.metastore.conf.MetastoreConf.ConfVars; import org.apache.hadoop.hive.metastore.metrics.Metrics; import org.apache.hadoop.hive.metastore.metrics.MetricsConstants; import org.apache.hadoop.hive.metastore.tools.SQLGenerator; import org.apache.hadoop.hive.metastore.utils.JavaUtils; import org.apache.hadoop.hive.metastore.utils.StringableMap; +import org.apache.hadoop.util.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.commons.dbcp.PoolingDataSource; - -import org.apache.commons.pool.impl.GenericObjectPool; -import org.apache.hadoop.hive.metastore.api.*; -import org.apache.hadoop.util.StringUtils; -import javax.sql.DataSource; - -import java.io.PrintWriter; -import java.nio.ByteBuffer; -import java.sql.*; -import java.util.*; -import java.util.concurrent.ConcurrentHashMap; -import java.util.concurrent.Semaphore; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.atomic.AtomicInteger; -import java.util.concurrent.locks.ReentrantLock; -import java.util.regex.Pattern; +import com.google.common.annotations.VisibleForTesting; /** * A handler to answer transaction related calls that come into the metastore @@ -755,7 +816,8 @@ public void commitTxn(CommitTxnRequest rqst) } // Move the record from txn_components into completed_txn_components so that the compactor // knows where to look to compact. - String s = "insert into COMPLETED_TXN_COMPONENTS select tc_txnid, tc_database, tc_table, " + + String s = "insert into COMPLETED_TXN_COMPONENTS (ctc_txnid, ctc_database, " + + "ctc_table, ctc_partition) select tc_txnid, tc_database, tc_table, " + "tc_partition from TXN_COMPONENTS where tc_txnid = " + txnid; LOG.debug("Going to execute insert <" + s + ">"); int modCount = 0; @@ -774,6 +836,15 @@ public void commitTxn(CommitTxnRequest rqst) s = "delete from TXNS where txn_id = " + txnid; LOG.debug("Going to execute update <" + s + ">"); modCount = stmt.executeUpdate(s); + s = "select ctc_database, ctc_table, ctc_id, ctc_timestamp from COMPLETED_TXN_COMPONENTS where ctc_txnid = " + txnid; + // Update registry with modifications + LOG.debug("Going to register table modification in invalidation cache <" + s + ">"); + rs = stmt.executeQuery(s); + if (rs.next()) { + MaterializationsInvalidationCache.get().notifyTableModification( + rs.getString(1), rs.getString(2), rs.getLong(3), + rs.getTimestamp(4, Calendar.getInstance(TimeZone.getTimeZone("UTC"))).getTime()); + } LOG.debug("Going to commit"); dbConn.commit(); } catch (SQLException e) { @@ -836,6 +907,83 @@ public void performWriteSetGC() { close(rs, stmt, dbConn); } } + + /** + * Gets the information of the last transaction committed for the input table + * given the transaction snapshot provided. + */ + @Override + public BasicTxnInfo getLastCompletedTransactionForTable( + String inputDbName, String inputTableName, TxnsSnapshot txnsSnapshot) throws MetaException { + Connection dbConn = null; + Statement stmt = null; + ResultSet rs = null; + try { + dbConn = getDbConn(Connection.TRANSACTION_READ_COMMITTED); + stmt = dbConn.createStatement(); + stmt.setMaxRows(1); + String s = "select ctc_id, ctc_timestamp, ctc_txnid, ctc_database, ctc_table " + + "from COMPLETED_TXN_COMPONENTS " + + "where ctc_database=" + quoteString(inputDbName) + " and ctc_table=" + quoteString(inputTableName) + + " and ctc_txnid <= " + txnsSnapshot.getTxn_high_water_mark() + + (txnsSnapshot.getOpen_txns().isEmpty() ? + " " : " and ctc_txnid NOT IN(" + StringUtils.join(",", txnsSnapshot.getOpen_txns()) + ") ") + + "order by ctc_id desc"; + if (LOG.isDebugEnabled()) { + LOG.debug("Going to execute query <" + s + ">"); + } + rs = stmt.executeQuery(s); + if(!rs.next()) { + return null; + } + return new BasicTxnInfo(rs.getLong(1), + rs.getTimestamp(2, Calendar.getInstance(TimeZone.getTimeZone("UTC"))).getTime(), + rs.getLong(3), rs.getString(4), rs.getString(5)); + } catch (SQLException ex) { + LOG.warn("getLastCompletedTransactionForTable failed due to " + getMessage(ex), ex); + throw new MetaException("Unable to retrieve commits information due to " + StringUtils.stringifyException(ex)); + } finally { + close(rs, stmt, dbConn); + } + } + + /** + * Gets the information of the first transaction for the given table + * after the transaction with the input id was committed (if any). + */ + @Override + public BasicTxnInfo getFirstCompletedTransactionForTableAfterCommit( + String inputDbName, String inputTableName, long incrementalIdentifier) + throws MetaException { + Connection dbConn = null; + Statement stmt = null; + ResultSet rs = null; + try { + dbConn = getDbConn(Connection.TRANSACTION_READ_COMMITTED); + stmt = dbConn.createStatement(); + stmt.setMaxRows(1); + String s = "select ctc_id, ctc_timestamp, ctc_txnid, ctc_database, ctc_table " + + "from COMPLETED_TXN_COMPONENTS " + + "where ctc_database=" + quoteString(inputDbName) + " and ctc_table=" + quoteString(inputTableName) + + " and ctc_id > " + incrementalIdentifier + " order by ctc_id asc"; + if (LOG.isDebugEnabled()) { + LOG.debug("Going to execute query <" + s + ">"); + } + rs = stmt.executeQuery(s); + if(!rs.next()) { + return null; + } + return new BasicTxnInfo(rs.getLong(1), + rs.getTimestamp(2, Calendar.getInstance(TimeZone.getTimeZone("UTC"))).getTime(), + rs.getLong(3), rs.getString(4), rs.getString(5)); + } catch (SQLException ex) { + LOG.warn("getLastCompletedTransactionForTable failed due to " + getMessage(ex), ex); + throw new MetaException("Unable to retrieve commits information due to " + StringUtils.stringifyException(ex)); + } finally { + close(rs, stmt, dbConn); + } + } + /** * As much as possible (i.e. in absence of retries) we want both operations to be done on the same * connection (but separate transactions). This avoid some flakiness in BONECP where if you diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnStore.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnStore.java index 96a7f56715..dd8ab67cf1 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnStore.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnStore.java @@ -112,6 +112,26 @@ void commitTxn(CommitTxnRequest rqst) throws NoSuchTxnException, TxnAbortedException, MetaException; + /** + * Get the last transaction corresponding to given database and table. + * @return + * @throws MetaException + */ + @RetrySemantics.Idempotent + public BasicTxnInfo getLastCompletedTransactionForTable( + String inputDbName, String inputTableName, TxnsSnapshot txnsSnapshot) + throws MetaException; + + /** + * Get the first transaction corresponding to given database and table after incremental id. + * @return + * @throws MetaException + */ + @RetrySemantics.Idempotent + public BasicTxnInfo getFirstCompletedTransactionForTableAfterCommit( + String inputDbName, String inputTableName, long id) + throws MetaException; + /** * Obtain a lock. * @param rqst information on the lock to obtain. If the requester is part of a transaction diff --git a/standalone-metastore/src/main/resources/package.jdo b/standalone-metastore/src/main/resources/package.jdo index 57e75f890d..6e81b260ea 100644 --- a/standalone-metastore/src/main/resources/package.jdo +++ b/standalone-metastore/src/main/resources/package.jdo @@ -173,10 +173,10 @@ - + - + @@ -185,6 +185,18 @@ + + + + + + + + + + + + diff --git a/standalone-metastore/src/main/thrift/hive_metastore.thrift b/standalone-metastore/src/main/thrift/hive_metastore.thrift index 1085ce566a..fd20f4e250 100644 --- a/standalone-metastore/src/main/thrift/hive_metastore.thrift +++ b/standalone-metastore/src/main/thrift/hive_metastore.thrift @@ -327,6 +327,7 @@ struct Table { 13: optional PrincipalPrivilegeSet privileges, 14: optional bool temporary=false, 15: optional bool rewriteEnabled, // rewrite enabled or not + 16: optional map creationMetadata // only for MVs, it stores table name used -> last modification before MV creation } struct Partition { @@ -855,6 +856,20 @@ struct AddDynamicPartitions { 5: optional DataOperationType operationType = DataOperationType.UNSET } +struct BasicTxnInfo { + 1: required i64 id, + 2: required i64 time, + 3: required i64 txnid, + 4: required string dbname, + 5: required string tablename, + 6: optional string partitionname, +} + +struct TxnsSnapshot { + 1: required i64 txn_high_water_mark, + 2: required list open_txns +} + struct NotificationEventRequest { 1: required i64 lastEvent, 2: optional i32 maxEvents, @@ -1031,6 +1046,12 @@ struct TableMeta { 4: optional string comments; } +struct Materialization { + 1: required Table materializationTable; + 2: required set tablesUsed; + 3: required i64 invalidationTime; +} + // Data types for workload management. enum WMResourcePlanStatus { @@ -1355,6 +1376,7 @@ service ThriftHiveMetastore extends fb303.FacebookService throws(1:MetaException o1) list get_tables(1: string db_name, 2: string pattern) throws (1: MetaException o1) list get_tables_by_type(1: string db_name, 2: string pattern, 3: string tableType) throws (1: MetaException o1) + list get_materialized_views_for_rewriting(1: string db_name) throws (1: MetaException o1) list get_table_meta(1: string db_patterns, 2: string tbl_patterns, 3: list tbl_types) throws (1: MetaException o1) list get_all_tables(1: string db_name) throws (1: MetaException o1) @@ -1365,6 +1387,8 @@ service ThriftHiveMetastore extends fb303.FacebookService GetTableResult get_table_req(1:GetTableRequest req) throws (1:MetaException o1, 2:NoSuchObjectException o2) GetTablesResult get_table_objects_by_name_req(1:GetTablesRequest req) throws (1:MetaException o1, 2:InvalidOperationException o2, 3:UnknownDBException o3) + map get_materialization_invalidation_info(1:string dbname, 2:list tbl_names) + throws (1:MetaException o1, 2:InvalidOperationException o2, 3:UnknownDBException o3) // Get a list of table names that match a filter. // The filter operators are LIKE, <, <=, >, >=, =, <> @@ -1761,11 +1785,12 @@ service ThriftHiveMetastore extends fb303.FacebookService CompactionResponse compact2(1:CompactionRequest rqst) ShowCompactResponse show_compact(1:ShowCompactRequest rqst) void add_dynamic_partitions(1:AddDynamicPartitions rqst) throws (1:NoSuchTxnException o1, 2:TxnAbortedException o2) + BasicTxnInfo get_last_completed_transaction_for_table(1:string db_name, 2:string table_name, 3:TxnsSnapshot txns_snapshot) // Notification logging calls NotificationEventResponse get_next_notification(1:NotificationEventRequest rqst) CurrentNotificationEventId get_current_notificationEventId() - NotificationEventsCountResponse get_notification_events_count(NotificationEventsCountRequest rqst) + NotificationEventsCountResponse get_notification_events_count(1:NotificationEventsCountRequest rqst) FireEventResponse fire_listener_event(1:FireEventRequest rqst) void flushCache() diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java index 24c59f2f1b..e790f6adc2 100644 --- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java +++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java @@ -247,6 +247,12 @@ public void alterTable(String dbName, String name, Table newTable) return objectStore.getTables(dbName, pattern, tableType); } + @Override + public List getMaterializedViewsForRewriting(String dbName) + throws MetaException, NoSuchObjectException { + return objectStore.getMaterializedViewsForRewriting(dbName); + } + @Override public List getTableMeta(String dbNames, String tableNames, List tableTypes) throws MetaException { diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java index 1e4fe5d973..731baddb77 100644 --- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java +++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java @@ -247,6 +247,12 @@ public void alterTable(String dbname, String name, Table newTable) throws Invali return Collections.emptyList(); } + @Override + public List getMaterializedViewsForRewriting(String dbName) + throws MetaException, NoSuchObjectException { + return Collections.emptyList(); + } + @Override public List getTableMeta(String dbNames, String tableNames, List tableTypes) throws MetaException {