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 a3725c5395..d0ff871df3 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 @@ -64,6 +64,7 @@ import org.apache.hadoop.hive.metastore.api.WMValidateResourcePlanResponse; import org.apache.hadoop.hive.metastore.api.Role; import org.apache.hadoop.hive.metastore.api.RolePrincipalGrant; +import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; @@ -947,11 +948,18 @@ public FileMetadataHandler getFileMetadataHandler(FileMetadataExprType type) { return null; } + @Override + public List getDefaultConstraints(String db_name, String tbl_name) + throws MetaException { + return null; + } + @Override public List createTableWithConstraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, - List notNullConstraints) + List notNullConstraints, + List defaultConstraints) throws InvalidObjectException, MetaException { return null; } @@ -985,6 +993,12 @@ public void dropConstraint(String dbName, String tableName, return null; } + @Override + public List addDefaultConstraints(List nns) + throws InvalidObjectException, MetaException { + return null; + } + @Override public String getMetastoreDbUuid() throws MetaException { throw new MetaException("getMetastoreDbUuid is not implemented"); diff --git a/itests/src/test/resources/testconfiguration.properties b/itests/src/test/resources/testconfiguration.properties index d4f2e539fb..4d31984e19 100644 --- a/itests/src/test/resources/testconfiguration.properties +++ b/itests/src/test/resources/testconfiguration.properties @@ -531,6 +531,7 @@ minillaplocal.query.files=\ correlationoptimizer2.q,\ correlationoptimizer4.q,\ correlationoptimizer6.q,\ + default_constraint.q,\ disable_merge_for_bucketing.q,\ cross_prod_1.q,\ cross_prod_3.q,\ diff --git a/itests/util/src/main/java/org/apache/hadoop/hive/ql/QTestUtil.java b/itests/util/src/main/java/org/apache/hadoop/hive/ql/QTestUtil.java index 6cd7a136ae..a117dc10c8 100644 --- a/itests/util/src/main/java/org/apache/hadoop/hive/ql/QTestUtil.java +++ b/itests/util/src/main/java/org/apache/hadoop/hive/ql/QTestUtil.java @@ -1705,7 +1705,8 @@ private void maskPatterns(Pattern[] patterns, String fname) throws Exception { "pk_-?[0-9]*_[0-9]*_[0-9]*", "fk_-?[0-9]*_[0-9]*_[0-9]*", "uk_-?[0-9]*_[0-9]*_[0-9]*", - "nn_-?[0-9]*_[0-9]*_[0-9]*", + "nn_-?[0-9]*_[0-9]*_[0-9]*", // not null constraint name + "dc_-?[0-9]*_[0-9]*_[0-9]*", // default constraint name ".*at com\\.sun\\.proxy.*", ".*at com\\.jolbox.*", ".*at com\\.zaxxer.*", diff --git a/metastore/scripts/upgrade/derby/050-HIVE-XXXXX.derby.sql b/metastore/scripts/upgrade/derby/050-HIVE-XXXXX.derby.sql new file mode 100644 index 0000000000..c9e42b8463 --- /dev/null +++ b/metastore/scripts/upgrade/derby/050-HIVE-XXXXX.derby.sql @@ -0,0 +1,2 @@ +-- add a new column to support default value for DEFAULT constraint +ALTER TABLE "APP"."KEY_CONSTRAINTS" ADD COLUMN "DEFAULT_VALUE" VARCHAR(400); 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 a8f227b775..e335b84515 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 @@ -110,7 +110,7 @@ CREATE TABLE "APP"."NOTIFICATION_LOG" ("NL_ID" BIGINT NOT NULL, "DB_NAME" VARCHA CREATE TABLE "APP"."NOTIFICATION_SEQUENCE" ("NNI_ID" BIGINT NOT NULL, "NEXT_EVENT_ID" BIGINT NOT NULL); -CREATE TABLE "APP"."KEY_CONSTRAINTS" ("CHILD_CD_ID" BIGINT, "CHILD_INTEGER_IDX" INTEGER, "CHILD_TBL_ID" BIGINT, "PARENT_CD_ID" BIGINT NOT NULL, "PARENT_INTEGER_IDX" INTEGER, "PARENT_TBL_ID" BIGINT NOT NULL, "POSITION" BIGINT NOT NULL, "CONSTRAINT_NAME" VARCHAR(400) NOT NULL, "CONSTRAINT_TYPE" SMALLINT NOT NULL, "UPDATE_RULE" SMALLINT, "DELETE_RULE" SMALLINT, "ENABLE_VALIDATE_RELY" SMALLINT NOT NULL); +CREATE TABLE "APP"."KEY_CONSTRAINTS" ("CHILD_CD_ID" BIGINT, "CHILD_INTEGER_IDX" INTEGER, "CHILD_TBL_ID" BIGINT, "PARENT_CD_ID" BIGINT NOT NULL, "PARENT_INTEGER_IDX" INTEGER, "PARENT_TBL_ID" BIGINT NOT NULL, "POSITION" BIGINT NOT NULL, "CONSTRAINT_NAME" VARCHAR(400) NOT NULL, "CONSTRAINT_TYPE" SMALLINT NOT NULL, "UPDATE_RULE" SMALLINT, "DELETE_RULE" SMALLINT, "ENABLE_VALIDATE_RELY" SMALLINT NOT NULL, "DEFAULT_VALUE" VARCHAR(400)); CREATE TABLE "APP"."METASTORE_DB_PROPERTIES" ("PROPERTY_KEY" VARCHAR(255) NOT NULL, "PROPERTY_VALUE" VARCHAR(1000) NOT NULL, "DESCRIPTION" VARCHAR(1000)); 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 3a11881306..79c1f99b63 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 @@ -7,5 +7,6 @@ RUN '045-HIVE-16886.derby.sql'; RUN '046-HIVE-17566.derby.sql'; RUN '048-HIVE-14498.derby.sql'; RUN '049-HIVE-18489.derby.sql'; +RUN '050-HIVE-XXXXX.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 84d523e1d7..df36ff2aa1 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 @@ -935,6 +935,7 @@ CREATE TABLE IF NOT EXISTS `KEY_CONSTRAINTS` `UPDATE_RULE` string, `DELETE_RULE` string, `ENABLE_VALIDATE_RELY` int, + `DEFAULT_VALUE` string CONSTRAINT `SYS_PK_KEY_CONSTRAINTS` PRIMARY KEY (`CONSTRAINT_NAME`, `POSITION`) DISABLE ) STORED BY 'org.apache.hive.storage.jdbc.JdbcStorageHandler' @@ -953,7 +954,8 @@ TBLPROPERTIES ( \"CONSTRAINT_TYPE\", \"UPDATE_RULE\", \"DELETE_RULE\", - \"ENABLE_VALIDATE_RELY\" + \"ENABLE_VALIDATE_RELY\", + \"DEFAULT_VALUE\" FROM \"KEY_CONSTRAINTS\"" ); 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 16b9107a39..eaacb13c39 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 @@ -91,6 +91,7 @@ import org.apache.hadoop.hive.metastore.api.Order; import org.apache.hadoop.hive.metastore.api.PrincipalType; import org.apache.hadoop.hive.metastore.api.RolePrincipalGrant; +import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; @@ -142,6 +143,7 @@ import org.apache.hadoop.hive.ql.lockmgr.HiveLockObject.HiveLockObjectData; import org.apache.hadoop.hive.ql.lockmgr.HiveTxnManager; import org.apache.hadoop.hive.ql.metadata.CheckResult; +import org.apache.hadoop.hive.ql.metadata.DefaultConstraint; import org.apache.hadoop.hive.ql.metadata.ForeignKeyInfo; import org.apache.hadoop.hive.ql.metadata.Hive; import org.apache.hadoop.hive.ql.metadata.HiveException; @@ -3616,11 +3618,13 @@ private int describeTable(Hive db, DescTableDesc descTbl) throws HiveException, ForeignKeyInfo fkInfo = null; UniqueConstraint ukInfo = null; NotNullConstraint nnInfo = null; + DefaultConstraint dInfo = null; if (descTbl.isExt() || descTbl.isFormatted()) { pkInfo = db.getPrimaryKeys(tbl.getDbName(), tbl.getTableName()); fkInfo = db.getForeignKeys(tbl.getDbName(), tbl.getTableName()); ukInfo = db.getUniqueConstraints(tbl.getDbName(), tbl.getTableName()); nnInfo = db.getNotNullConstraints(tbl.getDbName(), tbl.getTableName()); + dInfo = db.getDefaultConstraints(tbl.getDbName(), tbl.getTableName()); } fixDecimalColumnTypeName(cols); // In case the query is served by HiveServer2, don't pad it with spaces, @@ -3629,7 +3633,7 @@ private int describeTable(Hive db, DescTableDesc descTbl) throws HiveException, formatter.describeTable(outStream, colPath, tableName, tbl, part, cols, descTbl.isFormatted(), descTbl.isExt(), isOutputPadded, colStats, - pkInfo, fkInfo, ukInfo, nnInfo); + pkInfo, fkInfo, ukInfo, nnInfo, dInfo); LOG.debug("DDLTask: written data for {}", tableName); @@ -4422,6 +4426,10 @@ private int addConstraints(Hive db, AlterTableDesc alterTbl) && !alterTbl.getNotNullConstraintCols().isEmpty()) { db.addNotNullConstraint(alterTbl.getNotNullConstraintCols()); } + if (alterTbl.getDefaultConstraintCols() != null + && !alterTbl.getDefaultConstraintCols().isEmpty()) { + db.addDefaultConstraint(alterTbl.getDefaultConstraintCols()); + } } catch (NoSuchObjectException e) { throw new HiveException(e); } @@ -4744,6 +4752,7 @@ private int createTable(Hive db, CreateTableDesc crtTbl) throws HiveException { List foreignKeys = crtTbl.getForeignKeys(); List uniqueConstraints = crtTbl.getUniqueConstraints(); List notNullConstraints = crtTbl.getNotNullConstraints(); + List defaultConstraints = crtTbl.getDefaultConstraints(); LOG.debug("creating table {} on {}",tbl.getFullyQualifiedName(),tbl.getDataLocation()); if (crtTbl.getReplicationSpec().isInReplicationScope() && (!crtTbl.getReplaceMode())){ @@ -4769,12 +4778,13 @@ private int createTable(Hive db, CreateTableDesc crtTbl) throws HiveException { // replace-mode creates are really alters using CreateTableDesc. db.alterTable(tbl, null); } else { - if ((foreignKeys != null && foreignKeys.size() > 0 ) || + if ((foreignKeys != null && foreignKeys.size() > 0) || (primaryKeys != null && primaryKeys.size() > 0) || (uniqueConstraints != null && uniqueConstraints.size() > 0) || - (notNullConstraints != null && notNullConstraints.size() > 0)) { + (notNullConstraints != null && notNullConstraints.size() > 0) || + defaultConstraints != null && defaultConstraints.size() > 0) { db.createTable(tbl, crtTbl.getIfNotExists(), primaryKeys, foreignKeys, - uniqueConstraints, notNullConstraints); + uniqueConstraints, notNullConstraints, defaultConstraints); } else { db.createTable(tbl, crtTbl.getIfNotExists()); } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/DefaultConstraint.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/DefaultConstraint.java new file mode 100644 index 0000000000..31745a28db --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/DefaultConstraint.java @@ -0,0 +1,122 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.hadoop.hive.ql.metadata; + +import java.io.Serializable; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.TreeMap; + +import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; +import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; + +/** + * DefaultConstraintInfo is a metadata structure containing the default constraints + * associated with a table. + */ +@SuppressWarnings("serial") +public class DefaultConstraint implements Serializable { + + public class DefaultConstraintCol { + public String colName; + public String defaultVal; + + public DefaultConstraintCol(String colName, String defaultVal) { + this.colName = colName; + this.defaultVal = defaultVal; + } + } + + // Mapping from constraint name to list of default constraints + Map> defaultConstraints; + + // Mapping from column name to default value + Map colNameToDefaultValueMap; + String tableName; + String databaseName; + + public DefaultConstraint() {} + + public DefaultConstraint(List defaultConstraintList, String tableName, String databaseName) { + this.tableName = tableName; + this.databaseName = databaseName; + defaultConstraints = new TreeMap>(); + colNameToDefaultValueMap = new TreeMap(); + if (defaultConstraintList == null) { + return; + } + for (SQLDefaultConstraint uk : defaultConstraintList) { + if (uk.getTable_db().equalsIgnoreCase(databaseName) && + uk.getTable_name().equalsIgnoreCase(tableName)) { + String colName = uk.getColumn_name(); + String defVal = uk.getDefault_value(); + colNameToDefaultValueMap.put(colName, defVal); + DefaultConstraintCol currCol = new DefaultConstraintCol( + colName, defVal); + String constraintName = uk.getDc_name(); + if (defaultConstraints.containsKey(constraintName)) { + defaultConstraints.get(constraintName).add(currCol); + } else { + List currList = new ArrayList(); + currList.add(currCol); + defaultConstraints.put(constraintName, currList); + } + } + } + } + + public String getTableName() { + return tableName; + } + + public String getDatabaseName() { + return databaseName; + } + + public Map> getDefaultConstraints() { + return defaultConstraints; + } + public Map getColNameToDefaultValueMap() { + return colNameToDefaultValueMap; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("Default Constraints for " + databaseName + "." + tableName + ":"); + sb.append("["); + if (defaultConstraints != null && defaultConstraints.size() > 0) { + for (Map.Entry> me : defaultConstraints.entrySet()) { + sb.append(" {Constraint Name: " + me.getKey() + ","); + List currCol = me.getValue(); + if (currCol != null && currCol.size() > 0) { + for (DefaultConstraintCol ukc : currCol) { + sb.append (" (Column Name: " + ukc.colName + ", Default Value: " + ukc.defaultVal + "),"); + } + sb.setLength(sb.length()-1); + } + sb.append("},"); + } + sb.setLength(sb.length()-1); + } + sb.append("]"); + return sb.toString(); + } +} 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 7b7e14071e..e0d4c8089f 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 @@ -92,6 +92,7 @@ import org.apache.hadoop.hive.metastore.api.CompactionType; import org.apache.hadoop.hive.metastore.api.CreationMetadata; import org.apache.hadoop.hive.metastore.api.Database; +import org.apache.hadoop.hive.metastore.api.DefaultConstraintsRequest; import org.apache.hadoop.hive.metastore.api.EnvironmentContext; import org.apache.hadoop.hive.metastore.api.FieldSchema; import org.apache.hadoop.hive.metastore.api.FireEventRequest; @@ -117,6 +118,7 @@ import org.apache.hadoop.hive.metastore.api.PrivilegeBag; import org.apache.hadoop.hive.metastore.api.Role; import org.apache.hadoop.hive.metastore.api.RolePrincipalGrant; +import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; @@ -843,13 +845,20 @@ public void createTable(Table tbl) throws HiveException { * primary key columns associated with the table * @param foreignKeys * foreign key columns associated with the table + * @param uniqueConstraints + * UNIQUE constraints associated with the table + * @param notNullConstraints + * NOT NULL constraints associated with the table + * @param defaultConstraints + * DEFAULT constraints associated with the table * @throws HiveException */ public void createTable(Table tbl, boolean ifNotExists, List primaryKeys, List foreignKeys, List uniqueConstraints, - List notNullConstraints) + List notNullConstraints, + List defaultConstraints) throws HiveException { try { if (tbl.getDbName() == null || "".equals(tbl.getDbName().trim())) { @@ -876,11 +885,11 @@ public void createTable(Table tbl, boolean ifNotExists, } } if (primaryKeys == null && foreignKeys == null - && uniqueConstraints == null && notNullConstraints == null) { + && uniqueConstraints == null && notNullConstraints == null && defaultConstraints == null) { getMSC().createTable(tTbl); } else { getMSC().createTableWithConstraints(tTbl, primaryKeys, foreignKeys, - uniqueConstraints, notNullConstraints); + uniqueConstraints, notNullConstraints, defaultConstraints); } } catch (AlreadyExistsException e) { @@ -893,7 +902,7 @@ public void createTable(Table tbl, boolean ifNotExists, } public void createTable(Table tbl, boolean ifNotExists) throws HiveException { - createTable(tbl, ifNotExists, null, null, null, null); + createTable(tbl, ifNotExists, null, null, null, null, null); } public static List getFieldsFromDeserializerForMsStorage( @@ -4438,6 +4447,18 @@ public void dropConstraint(String dbName, String tableName, String constraintNam } } + public List getDefaultConstraintList(String dbName, String tblName) throws HiveException, NoSuchObjectException { + try { + return getMSC().getDefaultConstraints(new DefaultConstraintsRequest(dbName, tblName)); + } catch (NoSuchObjectException e) { + throw e; + } catch (Exception e) { + throw new HiveException(e); + } + } + + /** + /** * Get all primary key columns associated with the table. * @@ -4604,6 +4625,30 @@ public NotNullConstraint getEnabledNotNullConstraints(String dbName, String tblN } } + /** + * Get Default constraints associated with the table that are enabled + * + * @param dbName Database Name + * @param tblName Table Name + * @return Default constraints associated with the table. + * @throws HiveException + */ + public DefaultConstraint getEnabledDefaultConstraints(String dbName, String tblName) + throws HiveException { + try { + List defaultConstraints = getMSC().getDefaultConstraints( + new DefaultConstraintsRequest(dbName, tblName)); + if (defaultConstraints != null && !defaultConstraints.isEmpty()) { + defaultConstraints = defaultConstraints.stream() + .filter(nnc -> nnc.isEnable_cstr()) + .collect(Collectors.toList()); + } + return new DefaultConstraint(defaultConstraints, tblName, dbName); + } catch (Exception e) { + throw new HiveException(e); + } + } + private NotNullConstraint getNotNullConstraints(String dbName, String tblName, boolean onlyReliable) throws HiveException { try { @@ -4620,6 +4665,21 @@ private NotNullConstraint getNotNullConstraints(String dbName, String tblName, b } } + public DefaultConstraint getDefaultConstraints(String dbName, String tblName) + throws HiveException { + try { + List defaultConstraints = getMSC().getDefaultConstraints( + new DefaultConstraintsRequest(dbName, tblName)); + if (defaultConstraints != null && !defaultConstraints.isEmpty()) { + defaultConstraints = defaultConstraints.stream() + .collect(Collectors.toList()); + } + return new DefaultConstraint(defaultConstraints, tblName, dbName); + } catch (Exception e) { + throw new HiveException(e); + } + } + public void addPrimaryKey(List primaryKeyCols) throws HiveException, NoSuchObjectException { try { @@ -4656,6 +4716,16 @@ public void addNotNullConstraint(List notNullConstraintCol } } + public void addDefaultConstraint(List defaultConstraints) + throws HiveException, NoSuchObjectException { + try { + getMSC().addDefaultConstraint(defaultConstraints); + } catch (Exception e) { + throw new HiveException(e); + } + } + + public void createResourcePlan(WMResourcePlan resourcePlan, String copyFromName) throws HiveException { try { diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/JsonMetaDataFormatter.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/JsonMetaDataFormatter.java index 77e5678f80..2d77196cb7 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/JsonMetaDataFormatter.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/JsonMetaDataFormatter.java @@ -31,6 +31,7 @@ import org.apache.commons.io.IOUtils; import org.apache.commons.lang.StringUtils; +import org.apache.hadoop.hive.ql.metadata.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.apache.hadoop.fs.FileStatus; @@ -43,14 +44,6 @@ import org.apache.hadoop.hive.metastore.api.WMFullResourcePlan; import org.apache.hadoop.hive.metastore.api.WMResourcePlan; import org.apache.hadoop.hive.metastore.api.WMValidateResourcePlanResponse; -import org.apache.hadoop.hive.ql.metadata.ForeignKeyInfo; -import org.apache.hadoop.hive.ql.metadata.Hive; -import org.apache.hadoop.hive.ql.metadata.HiveException; -import org.apache.hadoop.hive.ql.metadata.NotNullConstraint; -import org.apache.hadoop.hive.ql.metadata.Partition; -import org.apache.hadoop.hive.ql.metadata.PrimaryKeyInfo; -import org.apache.hadoop.hive.ql.metadata.Table; -import org.apache.hadoop.hive.ql.metadata.UniqueConstraint; import org.codehaus.jackson.JsonGenerator; import org.codehaus.jackson.map.ObjectMapper; @@ -114,7 +107,7 @@ public void describeTable(DataOutputStream out, String colPath, boolean isFormatted, boolean isExt, boolean isOutputPadded, List colStats, PrimaryKeyInfo pkInfo, ForeignKeyInfo fkInfo, - UniqueConstraint ukInfo, NotNullConstraint nnInfo) throws HiveException { + UniqueConstraint ukInfo, NotNullConstraint nnInfo, DefaultConstraint dInfo) throws HiveException { MapBuilder builder = MapBuilder.create(); builder.put("columns", makeColsUnformatted(cols)); @@ -137,6 +130,9 @@ public void describeTable(DataOutputStream out, String colPath, if (nnInfo != null && !nnInfo.getNotNullConstraints().isEmpty()) { builder.put("notNullConstraintInfo", nnInfo); } + if (dInfo != null && !dInfo.getDefaultConstraints().isEmpty()) { + builder.put("defaultConstraintInfo", dInfo); + } } asJson(out, builder.build()); diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/MetaDataFormatUtils.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/MetaDataFormatUtils.java index a5b6a4b0c3..bfc7b38ceb 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/MetaDataFormatUtils.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/MetaDataFormatUtils.java @@ -41,15 +41,16 @@ import org.apache.hadoop.hive.metastore.api.WMPoolTrigger; import org.apache.hadoop.hive.metastore.api.WMResourcePlan; import org.apache.hadoop.hive.metastore.api.WMTrigger; +import org.apache.hadoop.hive.ql.metadata.DefaultConstraint; import org.apache.hadoop.hive.ql.metadata.ForeignKeyInfo; import org.apache.hadoop.hive.ql.metadata.HiveException; +import org.apache.hadoop.hive.ql.metadata.NotNullConstraint; import org.apache.hadoop.hive.ql.metadata.Partition; import org.apache.hadoop.hive.ql.metadata.PrimaryKeyInfo; import org.apache.hadoop.hive.ql.metadata.Table; import org.apache.hadoop.hive.ql.metadata.UniqueConstraint; import org.apache.hadoop.hive.ql.metadata.UniqueConstraint.UniqueConstraintCol; import org.apache.hadoop.hive.ql.metadata.ForeignKeyInfo.ForeignKeyCol; -import org.apache.hadoop.hive.ql.metadata.NotNullConstraint; import org.apache.hadoop.hive.ql.plan.DescTableDesc; import org.apache.hadoop.hive.ql.plan.PlanUtils; import org.apache.hadoop.hive.serde2.io.DateWritable; @@ -133,7 +134,7 @@ static ColumnStatisticsObj getColumnStatisticsObject(String colName, } public static String getConstraintsInformation(PrimaryKeyInfo pkInfo, ForeignKeyInfo fkInfo, - UniqueConstraint ukInfo, NotNullConstraint nnInfo) { + UniqueConstraint ukInfo, NotNullConstraint nnInfo, DefaultConstraint dInfo) { StringBuilder constraintsInfo = new StringBuilder(DEFAULT_STRINGBUILDER_SIZE); constraintsInfo.append(LINE_DELIM).append("# Constraints").append(LINE_DELIM); @@ -153,6 +154,10 @@ public static String getConstraintsInformation(PrimaryKeyInfo pkInfo, ForeignKey constraintsInfo.append(LINE_DELIM).append("# Not Null Constraints").append(LINE_DELIM); getNotNullConstraintsInformation(constraintsInfo, nnInfo); } + if (dInfo != null && !dInfo.getDefaultConstraints().isEmpty()) { + constraintsInfo.append(LINE_DELIM).append("# Default Constraints").append(LINE_DELIM); + getDefaultConstraintsInformation(constraintsInfo, dInfo); + } return constraintsInfo.toString(); } @@ -253,6 +258,40 @@ private static void getNotNullConstraintsInformation(StringBuilder constraintsIn } } + private static void getDefaultConstraintColInformation(StringBuilder constraintsInfo, + DefaultConstraint.DefaultConstraintCol ukCol) { + String[] fkcFields = new String[2]; + fkcFields[0] = "Column Name:" + ukCol.colName; + fkcFields[1] = "Default Value:" + ukCol.defaultVal; + formatOutput(fkcFields, constraintsInfo); + } + private static void getDefaultConstraintRelInformation( + StringBuilder constraintsInfo, + String constraintName, + List ukRel) { + formatOutput("Constraint Name:", constraintName, constraintsInfo); + if (ukRel != null && ukRel.size() > 0) { + for (DefaultConstraint.DefaultConstraintCol ukc : ukRel) { + getDefaultConstraintColInformation(constraintsInfo, ukc); + } + } + constraintsInfo.append(LINE_DELIM); + } + + private static void getDefaultConstraintsInformation(StringBuilder constraintsInfo, + DefaultConstraint dInfo) { + formatOutput("Table:", + dInfo.getDatabaseName() + "." + dInfo.getTableName(), + constraintsInfo); + Map> defaultConstraints = dInfo.getDefaultConstraints(); + if (defaultConstraints != null && defaultConstraints.size() > 0) { + for (Map.Entry> me : defaultConstraints.entrySet()) { + getDefaultConstraintRelInformation(constraintsInfo, me.getKey(), me.getValue()); + } + } + } + + public static String getPartitionInformation(Partition part) { StringBuilder tableInfo = new StringBuilder(DEFAULT_STRINGBUILDER_SIZE); diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/MetaDataFormatter.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/MetaDataFormatter.java index 88d5554e1d..744eeeb5f1 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/MetaDataFormatter.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/MetaDataFormatter.java @@ -30,14 +30,7 @@ import org.apache.hadoop.hive.metastore.api.WMFullResourcePlan; import org.apache.hadoop.hive.metastore.api.WMResourcePlan; import org.apache.hadoop.hive.metastore.api.WMValidateResourcePlanResponse; -import org.apache.hadoop.hive.ql.metadata.ForeignKeyInfo; -import org.apache.hadoop.hive.ql.metadata.Hive; -import org.apache.hadoop.hive.ql.metadata.HiveException; -import org.apache.hadoop.hive.ql.metadata.NotNullConstraint; -import org.apache.hadoop.hive.ql.metadata.Partition; -import org.apache.hadoop.hive.ql.metadata.PrimaryKeyInfo; -import org.apache.hadoop.hive.ql.metadata.Table; -import org.apache.hadoop.hive.ql.metadata.UniqueConstraint; +import org.apache.hadoop.hive.ql.metadata.*; /** * Interface to format table and index information. We can format it @@ -89,7 +82,7 @@ public void describeTable(DataOutputStream out, String colPath, boolean isFormatted, boolean isExt, boolean isOutputPadded, List colStats, PrimaryKeyInfo pkInfo, ForeignKeyInfo fkInfo, - UniqueConstraint ukInfo, NotNullConstraint nnInfo) + UniqueConstraint ukInfo, NotNullConstraint nnInfo, DefaultConstraint dInfo) throws HiveException; /** diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/TextMetaDataFormatter.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/TextMetaDataFormatter.java index 607e111c97..ee0fa8fe74 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/TextMetaDataFormatter.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/TextMetaDataFormatter.java @@ -29,6 +29,7 @@ import java.util.Set; import org.apache.hadoop.hive.metastore.utils.MetaStoreUtils; +import org.apache.hadoop.hive.ql.metadata.*; import org.apache.hive.common.util.HiveStringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -45,14 +46,6 @@ import org.apache.hadoop.hive.metastore.api.WMResourcePlan; import org.apache.hadoop.hive.metastore.api.WMValidateResourcePlanResponse; import org.apache.hadoop.hive.ql.exec.Utilities; -import org.apache.hadoop.hive.ql.metadata.ForeignKeyInfo; -import org.apache.hadoop.hive.ql.metadata.Hive; -import org.apache.hadoop.hive.ql.metadata.HiveException; -import org.apache.hadoop.hive.ql.metadata.NotNullConstraint; -import org.apache.hadoop.hive.ql.metadata.Partition; -import org.apache.hadoop.hive.ql.metadata.PrimaryKeyInfo; -import org.apache.hadoop.hive.ql.metadata.Table; -import org.apache.hadoop.hive.ql.metadata.UniqueConstraint; import org.apache.hadoop.hive.ql.session.SessionState; /** @@ -130,7 +123,7 @@ public void describeTable(DataOutputStream outStream, String colPath, boolean isFormatted, boolean isExt, boolean isOutputPadded, List colStats, PrimaryKeyInfo pkInfo, ForeignKeyInfo fkInfo, - UniqueConstraint ukInfo, NotNullConstraint nnInfo) throws HiveException { + UniqueConstraint ukInfo, NotNullConstraint nnInfo, DefaultConstraint dInfo) throws HiveException { try { List partCols = tbl.isPartitioned() ? tbl.getPartCols() : null; String output = ""; @@ -187,8 +180,9 @@ public void describeTable(DataOutputStream outStream, String colPath, if ((pkInfo != null && !pkInfo.getColNames().isEmpty()) || (fkInfo != null && !fkInfo.getForeignKeys().isEmpty()) || (ukInfo != null && !ukInfo.getUniqueConstraints().isEmpty()) || - (nnInfo != null && !nnInfo.getNotNullConstraints().isEmpty())) { - output = MetaDataFormatUtils.getConstraintsInformation(pkInfo, fkInfo, ukInfo, nnInfo); + (nnInfo != null && !nnInfo.getNotNullConstraints().isEmpty()) || + dInfo != null && !dInfo.getDefaultConstraints().isEmpty()) { + output = MetaDataFormatUtils.getConstraintsInformation(pkInfo, fkInfo, ukInfo, nnInfo, dInfo); outStream.write(output.getBytes("UTF-8")); } } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java index 171825eb74..eb666dc82e 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java @@ -18,46 +18,20 @@ package org.apache.hadoop.hive.ql.parse; -import java.io.IOException; -import java.io.Serializable; -import java.io.UnsupportedEncodingException; -import java.sql.Date; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Properties; -import java.util.Set; - +import com.google.common.annotations.VisibleForTesting; +import com.google.common.collect.ImmutableList; import org.antlr.runtime.tree.Tree; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.tuple.Pair; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hive.common.FileUtils; import org.apache.hadoop.hive.conf.HiveConf; -import org.apache.hadoop.hive.metastore.api.Database; -import org.apache.hadoop.hive.metastore.api.FieldSchema; -import org.apache.hadoop.hive.metastore.api.Order; -import org.apache.hadoop.hive.metastore.api.SQLForeignKey; -import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; -import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; -import org.apache.hadoop.hive.metastore.api.SQLUniqueConstraint; +import org.apache.hadoop.hive.metastore.api.*; import org.apache.hadoop.hive.metastore.utils.MetaStoreUtils; -import org.apache.hadoop.hive.ql.CompilationOpContext; -import org.apache.hadoop.hive.ql.Context; -import org.apache.hadoop.hive.ql.ErrorMsg; -import org.apache.hadoop.hive.ql.QueryProperties; -import org.apache.hadoop.hive.ql.QueryState; +import org.apache.hadoop.hive.ql.*; import org.apache.hadoop.hive.ql.cache.results.CacheUsage; -import org.apache.hadoop.hive.ql.cache.results.QueryResultsCache; import org.apache.hadoop.hive.ql.exec.FetchTask; +import org.apache.hadoop.hive.ql.exec.FunctionRegistry; import org.apache.hadoop.hive.ql.exec.Task; import org.apache.hadoop.hive.ql.exec.TaskFactory; import org.apache.hadoop.hive.ql.exec.Utilities; @@ -67,22 +41,14 @@ import org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat; import org.apache.hadoop.hive.ql.lib.Node; import org.apache.hadoop.hive.ql.lockmgr.HiveTxnManager; -import org.apache.hadoop.hive.ql.metadata.Hive; -import org.apache.hadoop.hive.ql.metadata.HiveException; -import org.apache.hadoop.hive.ql.metadata.InvalidTableException; +import org.apache.hadoop.hive.ql.metadata.*; import org.apache.hadoop.hive.ql.metadata.Partition; import org.apache.hadoop.hive.ql.metadata.Table; -import org.apache.hadoop.hive.ql.metadata.VirtualColumn; import org.apache.hadoop.hive.ql.optimizer.listbucketingpruner.ListBucketingPrunerUtils; -import org.apache.hadoop.hive.ql.plan.ExprNodeConstantDesc; -import org.apache.hadoop.hive.ql.plan.ExprNodeDesc; -import org.apache.hadoop.hive.ql.plan.FetchWork; -import org.apache.hadoop.hive.ql.plan.FileSinkDesc; -import org.apache.hadoop.hive.ql.plan.ListBucketingCtx; -import org.apache.hadoop.hive.ql.plan.PlanUtils; -import org.apache.hadoop.hive.ql.plan.TableDesc; +import org.apache.hadoop.hive.ql.plan.*; import org.apache.hadoop.hive.ql.session.SessionState; import org.apache.hadoop.hive.ql.session.SessionState.LogHelper; +import org.apache.hadoop.hive.ql.udf.generic.*; import org.apache.hadoop.hive.serde.serdeConstants; import org.apache.hadoop.hive.serde2.io.DateWritable; import org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe; @@ -94,8 +60,13 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import com.google.common.annotations.VisibleForTesting; -import com.google.common.collect.ImmutableList; +import java.io.IOException; +import java.io.Serializable; +import java.io.UnsupportedEncodingException; +import java.sql.Date; +import java.util.*; +import java.util.Map.Entry; +import java.sql.Date; /** * BaseSemanticAnalyzer. @@ -643,7 +614,8 @@ private static String spliceString(String str, int i, int length, String replace */ public static List getColumns(ASTNode ast, boolean lowerCase) throws SemanticException { return getColumns(ast, lowerCase, new ArrayList(), new ArrayList(), - new ArrayList(), new ArrayList()); + new ArrayList(), new ArrayList(), + new ArrayList()); } private static class ConstraintInfo { @@ -652,6 +624,7 @@ private static String spliceString(String str, int i, int length, String replace final boolean enable; final boolean validate; final boolean rely; + final String defaultValue; ConstraintInfo(String colName, String constraintName, boolean enable, boolean validate, boolean rely) { @@ -660,6 +633,16 @@ private static String spliceString(String str, int i, int length, String replace this.enable = enable; this.validate = validate; this.rely = rely; + this.defaultValue = null; + } + ConstraintInfo(String colName, String constraintName, + boolean enable, boolean validate, boolean rely, String defaultValue) { + this.colName = colName; + this.constraintName = constraintName; + this.enable = enable; + this.validate = validate; + this.rely = rely; + this.defaultValue = defaultValue; } } @@ -677,7 +660,7 @@ protected static void processPrimaryKeys(String databaseName, String tableName, ASTNode child, List columnNames, List primaryKeys) throws SemanticException { List primaryKeyInfos = new ArrayList(); - generateConstraintInfos(child, columnNames, primaryKeyInfos); + generateConstraintInfos(child, columnNames, primaryKeyInfos, null); constraintInfosToPrimaryKeys(databaseName, tableName, primaryKeyInfos, primaryKeys); } @@ -705,7 +688,7 @@ protected static void processUniqueConstraints(String databaseName, String table ASTNode child, List columnNames, List uniqueConstraints) throws SemanticException { List uniqueInfos = new ArrayList(); - generateConstraintInfos(child, columnNames, uniqueInfos); + generateConstraintInfos(child, columnNames, uniqueInfos, null); constraintInfosToUniqueConstraints(databaseName, tableName, uniqueInfos, uniqueConstraints); } @@ -718,11 +701,28 @@ private static void constraintInfosToUniqueConstraints(String databaseName, Stri } } + protected static void processDefaultConstraints(String databaseName, String tableName, + ASTNode child, List columnNames, List defaultConstraints, final ASTNode typeChild) + throws SemanticException { + List defaultInfos = new ArrayList(); + generateConstraintInfos(child, columnNames, defaultInfos, typeChild); + constraintInfosToDefaultConstraints(databaseName, tableName, defaultInfos, defaultConstraints); + } + + private static void constraintInfosToDefaultConstraints(String databaseName, String tableName, + List defaultInfos, List defaultConstraints) { + for (ConstraintInfo defaultInfo : defaultInfos) { + defaultConstraints.add(new SQLDefaultConstraint(databaseName, tableName, defaultInfo.colName, + defaultInfo.defaultValue, defaultInfo.constraintName, defaultInfo.enable, + defaultInfo.validate, defaultInfo.rely)); + } + } + protected static void processNotNullConstraints(String databaseName, String tableName, ASTNode child, List columnNames, List notNullConstraints) throws SemanticException { List notNullInfos = new ArrayList(); - generateConstraintInfos(child, columnNames, notNullInfos); + generateConstraintInfos(child, columnNames, notNullInfos, null); constraintInfosToNotNullConstraints(databaseName, tableName, notNullInfos, notNullConstraints); } @@ -749,19 +749,78 @@ private static void generateConstraintInfos(ASTNode child, checkColumnName(columnName.getText()); columnNames.add(unescapeIdentifier(columnName.getText().toLowerCase())); } - generateConstraintInfos(child, columnNames.build(), cstrInfos); + generateConstraintInfos(child, columnNames.build(), cstrInfos, null); + } + + /** + * Validate and get the default value from the AST + * @param defaultValueAST AST node corresponding to default value + * @return retrieve the default value and return it as string + * @throws SemanticException + */ + private static String getDefaultValue(ASTNode defaultValueAST, ASTNode typeChild) throws SemanticException{ + TypeCheckCtx typeCheckCtx = new TypeCheckCtx(null); + ExprNodeDesc defaultValExpr = TypeCheckProcFactory + .genExprNode(defaultValueAST, typeCheckCtx).get(defaultValueAST); + + + + // default value, Make sure that this is a function or literal only + boolean isDefValueAllowed = false; + String defaultValue = null; + + if(defaultValExpr instanceof ExprNodeConstantDesc) { + isDefValueAllowed = true; + defaultValue = defaultValueAST.getText(); + } + else if(defaultValExpr instanceof ExprNodeGenericFuncDesc){ + ExprNodeGenericFuncDesc defFunc = (ExprNodeGenericFuncDesc)defaultValExpr; + if(defFunc.getGenericUDF() instanceof GenericUDFOPNull + || defFunc.getGenericUDF() instanceof GenericUDFCurrentTimestamp + || defFunc.getGenericUDF() instanceof GenericUDFCurrentDate + || defFunc.getGenericUDF() instanceof UDFCurrentDB + || defFunc.getGenericUDF() instanceof GenericUDFCurrentUser){ + isDefValueAllowed = true; + } + defaultValue = defFunc.getFuncText() + "()"; + } + + if(!isDefValueAllowed) { + throw new SemanticException( + ErrorMsg.INVALID_CSTR_SYNTAX.getMsg("Invalid Default value: " + defaultValue + + ". DEFAULT only allows constant or function expressions")); + } + TypeInfo defaultValTypeInfo = defaultValExpr.getTypeInfo(); + TypeInfo colTypeInfo = TypeInfoUtils.getTypeInfoFromTypeString(getTypeStringFromAST(typeChild)); + TypeInfo commonType = FunctionRegistry.getCommonClass(defaultValTypeInfo, colTypeInfo); + /*if(!ColumnType.areColTypesCompatible(getTypeStringFromAST(typeChild), defaultValExpr.getTypeString())) { + //if(!commonType.equals(colTypeInfo) ) { + // since we are only checking if common type is null, that means there is no way to cast/promote one type + // to another. Otherwise there is a way to cast/promote even though it could lead to truncation/loss of value + // e.g. if col type is char(2) but default value type is lets say '123' we would allow this since string and + // char(2) are compatible although promoting string here to char(2) will result in truncation during execution. + //type are incompatible + throw new SemanticException( + ErrorMsg.INVALID_CSTR_SYNTAX.getMsg("Invalid type for default value: " + defaultValTypeInfo.getTypeName() + + ". Please make sure that the type is compatible with column type: " + + colTypeInfo.getTypeName())); + + } */ + return defaultValue; } + /** * Get the constraint from the AST and populate the cstrInfos with the required * information. * @param child The node with the constraint token * @param columnNames The name of the columns for the primary key * @param cstrInfos Constraint information + * @param typeChildForDefault type of column used for default value type check * @throws SemanticException */ private static void generateConstraintInfos(ASTNode child, List columnNames, - List cstrInfos) throws SemanticException { + List cstrInfos, ASTNode typeChildForDefault) throws SemanticException { // The ANTLR grammar looks like : // 1. KW_CONSTRAINT idfr=identifier KW_PRIMARY KW_KEY pkCols=columnParenthesesList // constraintOptsCreate? @@ -773,9 +832,12 @@ private static void generateConstraintInfos(ASTNode child, List columnNa // when the user does not specify the constraint name. // Default values String constraintName = null; + //by default if user hasn't provided any optional constraint properties + // it will be considered ENABLE and NOVALIDATE and RELY=false boolean enable = true; - boolean validate = true; + boolean validate = false; boolean rely = false; + String defaultValue = null; for (int i = 0; i < child.getChildCount(); i++) { ASTNode grandChild = (ASTNode) child.getChild(i); int type = grandChild.getToken().getType(); @@ -797,12 +859,17 @@ private static void generateConstraintInfos(ASTNode child, List columnNa validate = false; } else if (type == HiveParser.TOK_RELY) { rely = true; + } else if( type == HiveParser.TOK_NORELY) { + rely = false; + } else if( child.getToken().getType() == HiveParser.TOK_DEFAULT_VALUE){ + // try to get default value only if this is DEFAULT constraint + defaultValue = getDefaultValue(grandChild, typeChildForDefault); } } // NOT NULL constraint could be enforced/enabled - if (child.getToken().getType() != HiveParser.TOK_NOT_NULL - && enable) { + if (enable && child.getToken().getType() != HiveParser.TOK_NOT_NULL + && child.getToken().getType() != HiveParser.TOK_DEFAULT_VALUE) { throw new SemanticException( ErrorMsg.INVALID_CSTR_SYNTAX.getMsg("ENABLE/ENFORCED feature not supported yet. " + "Please use DISABLE/NOT ENFORCED instead.")); @@ -815,13 +882,12 @@ private static void generateConstraintInfos(ASTNode child, List columnNa for (String columnName : columnNames) { cstrInfos.add(new ConstraintInfo(columnName, constraintName, - enable, validate, rely)); + enable, validate, rely, defaultValue)); } } /** * Process the foreign keys from the AST and populate the foreign keys in the SQLForeignKey list - * @param parent Parent of the foreign key token node * @param child Foreign Key token node * @param foreignKeys SQLForeignKey list * @throws SemanticException @@ -929,7 +995,8 @@ private static void checkColumnName(String columnName) throws SemanticException */ public static List getColumns(ASTNode ast, boolean lowerCase, List primaryKeys, List foreignKeys, - List uniqueConstraints, List notNullConstraints) + List uniqueConstraints, List notNullConstraints, + List defaultConstraints) throws SemanticException { List colList = new ArrayList(); Tree parent = ast.getParent(); @@ -987,6 +1054,10 @@ private static void checkColumnName(String columnName) throws SemanticException String[] qualifiedTabName = getQualifiedTableName((ASTNode) parent.getChild(0)); // Process column constraint switch (constraintChild.getToken().getType()) { + case HiveParser.TOK_DEFAULT_VALUE: + processDefaultConstraints(qualifiedTabName[0], qualifiedTabName[1], constraintChild, + ImmutableList.of(col.getName()), defaultConstraints, typeChild); + break; case HiveParser.TOK_NOT_NULL: processNotNullConstraints(qualifiedTabName[0], qualifiedTabName[1], constraintChild, ImmutableList.of(col.getName()), notNullConstraints); 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 8ad6fce444..a6f877e0fe 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 @@ -53,6 +53,7 @@ import org.apache.hadoop.hive.metastore.api.FieldSchema; import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.hadoop.hive.metastore.api.Order; +import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; @@ -3094,32 +3095,38 @@ private void analyzeAlterTableRenameCol(String[] qualified, ASTNode ast, List foreignKeys = null; List uniqueConstraints = null; List notNullConstraints = null; + List defaultConstraints= null; if (constraintChild != null) { // Process column constraint switch (constraintChild.getToken().getType()) { - case HiveParser.TOK_NOT_NULL: - notNullConstraints = new ArrayList<>(); - processNotNullConstraints(qualified[0], qualified[1], constraintChild, - ImmutableList.of(newColName), notNullConstraints); - break; - case HiveParser.TOK_UNIQUE: - uniqueConstraints = new ArrayList<>(); - processUniqueConstraints(qualified[0], qualified[1], constraintChild, - ImmutableList.of(newColName), uniqueConstraints); - break; - case HiveParser.TOK_PRIMARY_KEY: - primaryKeys = new ArrayList<>(); - processPrimaryKeys(qualified[0], qualified[1], constraintChild, - ImmutableList.of(newColName), primaryKeys); - break; - case HiveParser.TOK_FOREIGN_KEY: - foreignKeys = new ArrayList<>(); - processForeignKeys(qualified[0], qualified[1], constraintChild, - foreignKeys); - break; - default: - throw new SemanticException(ErrorMsg.NOT_RECOGNIZED_CONSTRAINT.getMsg( - constraintChild.getToken().getText())); + case HiveParser.TOK_DEFAULT_VALUE: + defaultConstraints = new ArrayList<>(); + processDefaultConstraints(qualified[0], qualified[1], constraintChild, + ImmutableList.of(newColName), defaultConstraints, (ASTNode)ast.getChild(2)); + break; + case HiveParser.TOK_NOT_NULL: + notNullConstraints = new ArrayList<>(); + processNotNullConstraints(qualified[0], qualified[1], constraintChild, + ImmutableList.of(newColName), notNullConstraints); + break; + case HiveParser.TOK_UNIQUE: + uniqueConstraints = new ArrayList<>(); + processUniqueConstraints(qualified[0], qualified[1], constraintChild, + ImmutableList.of(newColName), uniqueConstraints); + break; + case HiveParser.TOK_PRIMARY_KEY: + primaryKeys = new ArrayList<>(); + processPrimaryKeys(qualified[0], qualified[1], constraintChild, + ImmutableList.of(newColName), primaryKeys); + break; + case HiveParser.TOK_FOREIGN_KEY: + foreignKeys = new ArrayList<>(); + processForeignKeys(qualified[0], qualified[1], constraintChild, + foreignKeys); + break; + default: + throw new SemanticException(ErrorMsg.NOT_RECOGNIZED_CONSTRAINT.getMsg( + constraintChild.getToken().getText())); } } @@ -3144,7 +3151,7 @@ private void analyzeAlterTableRenameCol(String[] qualified, ASTNode ast, String tblName = getDotName(qualified); AlterTableDesc alterTblDesc; if (primaryKeys == null && foreignKeys == null - && uniqueConstraints == null && notNullConstraints == null) { + && uniqueConstraints == null && notNullConstraints == null && defaultConstraints == null) { alterTblDesc = new AlterTableDesc(tblName, partSpec, unescapeIdentifier(oldColName), unescapeIdentifier(newColName), newType, newComment, first, flagCol, isCascade); @@ -3152,7 +3159,7 @@ private void analyzeAlterTableRenameCol(String[] qualified, ASTNode ast, alterTblDesc = new AlterTableDesc(tblName, partSpec, unescapeIdentifier(oldColName), unescapeIdentifier(newColName), newType, newComment, first, flagCol, isCascade, - primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints); + primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints); } addInputsOutputsAlterTable(tblName, partSpec, alterTblDesc); diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g b/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g index e431271d3a..c1eae473fe 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g @@ -109,6 +109,7 @@ TOK_NOT_NULL; TOK_UNIQUE; TOK_PRIMARY_KEY; TOK_FOREIGN_KEY; +TOK_DEFAULT_VALUE; TOK_VALIDATE; TOK_NOVALIDATE; TOK_RELY; @@ -2370,8 +2371,8 @@ colConstraint @after { popMsg(state); } : (KW_CONSTRAINT constraintName=identifier)? columnConstraintType constraintOptsCreate? -> {$constraintName.tree != null}? - ^(columnConstraintType ^(TOK_CONSTRAINT_NAME $constraintName) constraintOptsCreate?) - -> ^(columnConstraintType constraintOptsCreate?) + ^({$columnConstraintType.tree} ^(TOK_CONSTRAINT_NAME $constraintName) constraintOptsCreate?) + -> ^({$columnConstraintType.tree} constraintOptsCreate?) ; alterColumnConstraint[CommonTree fkColName] @@ -2395,15 +2396,21 @@ alterColConstraint @after { popMsg(state); } : (KW_CONSTRAINT constraintName=identifier)? columnConstraintType constraintOptsAlter? -> {$constraintName.tree != null}? - ^(columnConstraintType ^(TOK_CONSTRAINT_NAME $constraintName) constraintOptsAlter?) - -> ^(columnConstraintType constraintOptsAlter?) + ^({$columnConstraintType.tree} ^(TOK_CONSTRAINT_NAME $constraintName) constraintOptsAlter?) + -> ^({$columnConstraintType.tree} constraintOptsAlter?) ; columnConstraintType : KW_NOT KW_NULL -> TOK_NOT_NULL + | KW_DEFAULT defaultVal-> ^(TOK_DEFAULT_VALUE defaultVal) | tableConstraintType ; +defaultVal + : constant + | function + ; + tableConstraintType : KW_PRIMARY KW_KEY -> TOK_PRIMARY_KEY | KW_UNIQUE -> TOK_UNIQUE 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 19fc6a9229..009d7c7502 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 @@ -76,6 +76,7 @@ import org.apache.hadoop.hive.metastore.api.FieldSchema; import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.hadoop.hive.metastore.api.Order; +import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; @@ -131,6 +132,7 @@ import org.apache.hadoop.hive.ql.lib.GraphWalker; import org.apache.hadoop.hive.ql.lib.Node; import org.apache.hadoop.hive.ql.lockmgr.DbTxnManager; +import org.apache.hadoop.hive.ql.metadata.DefaultConstraint; import org.apache.hadoop.hive.ql.metadata.DummyPartition; import org.apache.hadoop.hive.ql.metadata.Hive; import org.apache.hadoop.hive.ql.metadata.HiveException; @@ -4351,6 +4353,70 @@ static boolean isRegex(String pattern, HiveConf conf) { return output; } + private RowResolver getColForInsertStmtSpec(Map targetCol2Projection, final Table target, + Map targetCol2ColumnInfo, int colListPos, + List targetTableColTypes, ArrayList new_col_list, + List targetTableColNames) + throws SemanticException { + RowResolver newOutputRR = new RowResolver(); + Map colNameToDefaultVal = null; + + // see if we need to fetch default constraints from metastore + if(targetCol2Projection.size() < targetTableColNames.size()) { + try { + DefaultConstraint dc = Hive.get().getEnabledDefaultConstraints(target.getDbName(), target.getTableName()); + colNameToDefaultVal = dc.getColNameToDefaultValueMap(); + } catch (Exception e) { + if (e instanceof SemanticException) { + throw (SemanticException) e; + } else { + throw (new RuntimeException(e)); + } + } + + } + boolean defaultConstraintsFetch = true; + for (int i = 0; i < targetTableColNames.size(); i++) { + String f = targetTableColNames.get(i); + if(targetCol2Projection.containsKey(f)) { + //put existing column in new list to make sure it is in the right position + new_col_list.add(targetCol2Projection.get(f)); + ColumnInfo ci = targetCol2ColumnInfo.get(f); + ci.setInternalName(getColumnInternalName(colListPos)); + newOutputRR.put(ci.getTabAlias(), ci.getInternalName(), ci); + } + else { + //add new 'synthetic' columns for projections not provided by Select + assert(colNameToDefaultVal != null); + ExprNodeDesc exp = null; + if(colNameToDefaultVal.containsKey(f)) { + // make an expression for default value + String defaultValue = colNameToDefaultVal.get(f); + ParseDriver parseDriver = new ParseDriver(); + try { + ASTNode defValAst = parseDriver.parseExpression(defaultValue); + + exp = TypeCheckProcFactory.genExprNode(defValAst, new TypeCheckCtx(null)).get(defValAst); + //exp = new ExprNodeConstantDesc(targetTableColTypes.get(i), defaultValue); + } catch(Exception e) { + throw new SemanticException("Error while parsing default value: " + defaultValue + + ". Error message: " + e.getMessage()); + } + } + else { + exp = new ExprNodeConstantDesc(targetTableColTypes.get(i), null); + } + new_col_list.add(exp); + final String tableAlias = null;//this column doesn't come from any table + ColumnInfo colInfo = new ColumnInfo(getColumnInternalName(colListPos), + exp.getWritableObjectInspector(), tableAlias, false); + newOutputRR.put(colInfo.getTabAlias(), colInfo.getInternalName(), colInfo); + } + colListPos++; + } + return newOutputRR; + } + /** * This modifies the Select projections when the Select is part of an insert statement and * the insert statement specifies a column list for the target table, e.g. @@ -4419,29 +4485,11 @@ public RowResolver handleInsertStatementSpec(List col_list, String } } } - RowResolver newOutputRR = new RowResolver(); + //now make the select produce , with //where missing columns are NULL-filled - for (int i = 0; i < targetTableColNames.size(); i++) { - String f = targetTableColNames.get(i); - if(targetCol2Projection.containsKey(f)) { - //put existing column in new list to make sure it is in the right position - new_col_list.add(targetCol2Projection.get(f)); - ColumnInfo ci = targetCol2ColumnInfo.get(f);//todo: is this OK? - ci.setInternalName(getColumnInternalName(colListPos)); - newOutputRR.put(ci.getTabAlias(), ci.getInternalName(), ci); - } - else { - //add new 'synthetic' columns for projections not provided by Select - ExprNodeDesc exp = new ExprNodeConstantDesc(targetTableColTypes.get(i), null); - new_col_list.add(exp); - final String tableAlias = null;//this column doesn't come from any table - ColumnInfo colInfo = new ColumnInfo(getColumnInternalName(colListPos), - exp.getWritableObjectInspector(), tableAlias, false); - newOutputRR.put(colInfo.getTabAlias(), colInfo.getInternalName(), colInfo); - } - colListPos++; - } + RowResolver newOutputRR = getColForInsertStmtSpec(targetCol2Projection, target, targetCol2ColumnInfo, colListPos, + targetTableColTypes, new_col_list, targetTableColNames); col_list.clear(); col_list.addAll(new_col_list); return newOutputRR; @@ -12412,6 +12460,7 @@ ASTNode analyzeCreateTable( List foreignKeys = new ArrayList(); List uniqueConstraints = new ArrayList<>(); List notNullConstraints = new ArrayList<>(); + List defaultConstraints= new ArrayList<>(); List sortCols = new ArrayList(); int numBuckets = -1; String comment = null; @@ -12505,14 +12554,14 @@ ASTNode analyzeCreateTable( break; case HiveParser.TOK_TABCOLLIST: cols = getColumns(child, true, primaryKeys, foreignKeys, - uniqueConstraints, notNullConstraints); + uniqueConstraints, notNullConstraints, defaultConstraints); break; case HiveParser.TOK_TABLECOMMENT: comment = unescapeSQLString(child.getChild(0).getText()); break; case HiveParser.TOK_TABLEPARTCOLS: partCols = getColumns(child, false, primaryKeys, foreignKeys, - uniqueConstraints, notNullConstraints); + uniqueConstraints, notNullConstraints, defaultConstraints); break; case HiveParser.TOK_ALTERTABLE_BUCKETS: bucketCols = getColumnNames((ASTNode) child.getChild(0)); @@ -12628,7 +12677,7 @@ ASTNode analyzeCreateTable( comment, storageFormat.getInputFormat(), storageFormat.getOutputFormat(), location, storageFormat.getSerde(), storageFormat.getStorageHandler(), storageFormat.getSerdeProps(), tblProps, ifNotExists, skewedColNames, - skewedValues, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints); + skewedValues, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints); crtTblDesc.setStoredAsSubDirectories(storedAsDirs); crtTblDesc.setNullFormat(rowFormatParams.nullFormat); @@ -12727,7 +12776,7 @@ ASTNode analyzeCreateTable( storageFormat.getOutputFormat(), location, storageFormat.getSerde(), storageFormat.getStorageHandler(), storageFormat.getSerdeProps(), tblProps, ifNotExists, skewedColNames, skewedValues, true, primaryKeys, foreignKeys, - uniqueConstraints, notNullConstraints); + uniqueConstraints, notNullConstraints, defaultConstraints); tableDesc.setMaterialization(isMaterialization); tableDesc.setStoredAsSubDirectories(storedAsDirs); tableDesc.setNullFormat(rowFormatParams.nullFormat); diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/AddNotNullConstraintHandler.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/AddNotNullConstraintHandler.java index 9c12e7e2af..0c6df69474 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/AddNotNullConstraintHandler.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/AddNotNullConstraintHandler.java @@ -22,10 +22,7 @@ import java.util.Collections; import java.util.List; -import org.apache.hadoop.hive.metastore.api.SQLForeignKey; -import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; -import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; -import org.apache.hadoop.hive.metastore.api.SQLUniqueConstraint; +import org.apache.hadoop.hive.metastore.api.*; import org.apache.hadoop.hive.metastore.messaging.AddNotNullConstraintMessage; import org.apache.hadoop.hive.ql.exec.Task; import org.apache.hadoop.hive.ql.exec.TaskFactory; @@ -64,7 +61,7 @@ } AlterTableDesc addConstraintsDesc = new AlterTableDesc(actualDbName + "." + actualTblName, new ArrayList(), new ArrayList(), - new ArrayList(), nns, context.eventOnlyReplicationSpec()); + new ArrayList(), nns, new ArrayList(), context.eventOnlyReplicationSpec()); Task addConstraintsTask = TaskFactory.get(new DDLWork(readEntitySet, writeEntitySet, addConstraintsDesc), context.hiveConf); tasks.add(addConstraintsTask); context.log.debug("Added add constrains task : {}:{}", addConstraintsTask.getId(), actualTblName); diff --git a/ql/src/java/org/apache/hadoop/hive/ql/plan/AlterTableDesc.java b/ql/src/java/org/apache/hadoop/hive/ql/plan/AlterTableDesc.java index 00c0381107..bf86cec488 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/plan/AlterTableDesc.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/plan/AlterTableDesc.java @@ -21,6 +21,7 @@ import org.apache.hadoop.hive.metastore.api.EnvironmentContext; import org.apache.hadoop.hive.metastore.api.FieldSchema; import org.apache.hadoop.hive.metastore.api.Order; +import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; @@ -36,7 +37,6 @@ import java.io.Serializable; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -132,6 +132,7 @@ List foreignKeyCols; List uniqueConstraintCols; List notNullConstraintCols; + List defaultConstraintsCols; ReplicationSpec replicationSpec; public AlterTableDesc() { @@ -167,7 +168,7 @@ public AlterTableDesc(String tblName, HashMap partSpec, String oldColName, String newColName, String newType, String newComment, boolean first, String afterCol, boolean isCascade, List primaryKeyCols, List foreignKeyCols, List uniqueConstraintCols, - List notNullConstraintCols) { + List notNullConstraintCols, List defaultConstraints) { super(); oldName = tblName; this.partSpec = partSpec; @@ -183,6 +184,7 @@ public AlterTableDesc(String tblName, HashMap partSpec, this.foreignKeyCols = foreignKeyCols; this.uniqueConstraintCols = uniqueConstraintCols; this.notNullConstraintCols = notNullConstraintCols; + this.defaultConstraintsCols = defaultConstraints; } /** @@ -342,12 +344,14 @@ public AlterTableDesc(String tableName, List primaryKeyCols, public AlterTableDesc(String tableName, List primaryKeyCols, List foreignKeyCols, List uniqueConstraintCols, - List notNullConstraintCols, ReplicationSpec replicationSpec) { + List notNullConstraintCols, List defaultConstraints, + ReplicationSpec replicationSpec) { this.oldName = tableName; this.primaryKeyCols = primaryKeyCols; this.foreignKeyCols = foreignKeyCols; this.uniqueConstraintCols = uniqueConstraintCols; this.notNullConstraintCols = notNullConstraintCols; + this.defaultConstraintsCols = defaultConstraints; this.replicationSpec = replicationSpec; op = AlterTableTypes.ADDCONSTRAINT; } @@ -540,6 +544,13 @@ public void setForeignKeyCols(List foreignKeyCols) { return notNullConstraintCols; } + /** + * @return the default constraint cols + */ + public List getDefaultConstraintCols() { + return defaultConstraintsCols; + } + /** * @return the drop constraint name of the table */ diff --git a/ql/src/java/org/apache/hadoop/hive/ql/plan/CreateTableDesc.java b/ql/src/java/org/apache/hadoop/hive/ql/plan/CreateTableDesc.java index 6228d4c803..ff9df3d87a 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/plan/CreateTableDesc.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/plan/CreateTableDesc.java @@ -31,6 +31,7 @@ import org.apache.hadoop.hive.metastore.TableType; import org.apache.hadoop.hive.metastore.api.FieldSchema; import org.apache.hadoop.hive.metastore.api.Order; +import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; @@ -100,6 +101,7 @@ List foreignKeys; List uniqueConstraints; List notNullConstraints; + List defaultConstraints; private Long initialMmWriteId; // Initial MM write ID for CTAS and import. // The FSOP configuration for the FSOP that is going to write initial data during ctas. // This is not needed beyond compilation, so it is transient. @@ -119,14 +121,15 @@ public CreateTableDesc(String databaseName, String tableName, boolean isExternal Map tblProps, boolean ifNotExists, List skewedColNames, List> skewedColValues, List primaryKeys, List foreignKeys, - List uniqueConstraints, List notNullConstraints) { + List uniqueConstraints, List notNullConstraints, + List defaultConstraints) { this(tableName, isExternal, isTemporary, cols, partCols, bucketCols, sortCols, numBuckets, fieldDelim, fieldEscape, collItemDelim, mapKeyDelim, lineDelim, comment, inputFormat, outputFormat, location, serName, storageHandler, serdeProps, tblProps, ifNotExists, skewedColNames, skewedColValues, - primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints); + primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints); this.databaseName = databaseName; } @@ -142,13 +145,14 @@ public CreateTableDesc(String databaseName, String tableName, boolean isExternal Map tblProps, boolean ifNotExists, List skewedColNames, List> skewedColValues, boolean isCTAS, List primaryKeys, List foreignKeys, - List uniqueConstraints, List notNullConstraints) { + List uniqueConstraints, List notNullConstraints, + List defaultConstraints) { this(databaseName, tableName, isExternal, isTemporary, cols, partCols, bucketCols, sortCols, numBuckets, fieldDelim, fieldEscape, collItemDelim, mapKeyDelim, lineDelim, comment, inputFormat, outputFormat, location, serName, storageHandler, serdeProps, tblProps, ifNotExists, skewedColNames, skewedColValues, - primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints); + primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints); this.isCTAS = isCTAS; } @@ -165,7 +169,8 @@ public CreateTableDesc(String tableName, boolean isExternal, boolean isTemporary Map tblProps, boolean ifNotExists, List skewedColNames, List> skewedColValues, List primaryKeys, List foreignKeys, - List uniqueConstraints, List notNullConstraints) { + List uniqueConstraints, List notNullConstraints, + List defaultConstraints) { this.tableName = tableName; this.isExternal = isExternal; this.isTemporary = isTemporary; @@ -194,6 +199,7 @@ public CreateTableDesc(String tableName, boolean isExternal, boolean isTemporary this.foreignKeys = copyList(foreignKeys); this.uniqueConstraints = copyList(uniqueConstraints); this.notNullConstraints = copyList(notNullConstraints); + this.defaultConstraints = copyList(defaultConstraints); } private static List copyList(List copy) { @@ -272,6 +278,10 @@ public void setForeignKeys(ArrayList foreignKeys) { return notNullConstraints; } + public List getDefaultConstraints() { + return defaultConstraints; + } + @Explain(displayName = "bucket columns") public List getBucketCols() { return bucketCols; diff --git a/ql/src/java/org/apache/hadoop/hive/ql/plan/ImportTableDesc.java b/ql/src/java/org/apache/hadoop/hive/ql/plan/ImportTableDesc.java index fcbac7d840..a4e21c17a0 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/plan/ImportTableDesc.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/plan/ImportTableDesc.java @@ -82,7 +82,8 @@ public ImportTableDesc(String dbName, Table table) throws Exception { null, null, null, - null); + null, + null); this.createTblDesc.setStoredAsSubDirectories(table.getSd().isStoredAsSubDirectories()); break; case VIEW: diff --git a/ql/src/test/queries/clientpositive/create_with_constraints.q b/ql/src/test/queries/clientpositive/create_with_constraints.q index 7b2594b79f..1152294165 100644 --- a/ql/src/test/queries/clientpositive/create_with_constraints.q +++ b/ql/src/test/queries/clientpositive/create_with_constraints.q @@ -24,6 +24,7 @@ CREATE TABLE table20 (a STRING, b STRING, CONSTRAINT uk20_1 UNIQUE (b) DISABLE R CREATE TABLE table21 (a STRING, CONSTRAINT uk21_1 UNIQUE (a,b) DISABLE) PARTITIONED BY (b STRING); CREATE TABLE table22 (a STRING, b STRING, CONSTRAINT fk22_1 FOREIGN KEY (a,b) REFERENCES table21(a,b) DISABLE); + DESCRIBE EXTENDED table1; DESCRIBE EXTENDED table2; DESCRIBE EXTENDED table3; diff --git a/ql/src/test/queries/clientpositive/default_constraint.q b/ql/src/test/queries/clientpositive/default_constraint.q new file mode 100644 index 0000000000..1bd9dca443 --- /dev/null +++ b/ql/src/test/queries/clientpositive/default_constraint.q @@ -0,0 +1,67 @@ +-- create table + -- numeric type + set hive.stats.autogather=false; +CREATE TABLE numericDataType(a TINYINT CONSTRAINT tinyint_constraint DEFAULT 127Y ENABLE, b SMALLINT DEFAULT 32767S, c INT DEFAULT 2147483647, + d BIGINT DEFAULT 9223372036854775807L, e DOUBLE DEFAULT 3.4E38, f DECIMAL(9,2) DEFAULT 1234567.89); +DESC FORMATTED numericDataType; + +EXPLAIN INSERT INTO numericDataType(a) values(3Y); +INSERT INTO numericDataType(a) values(3Y); +SELECT * FROM numericDataType; + +EXPLAIN INSERT INTO numericDataType(e,f) values(4.5, 678.4); +INSERT INTO numericDataType(e,f) values(4.5, 678.4); +SELECT * FROM numericDataType; + + -- Date/time +CREATE TABLE table1(d DATE DEFAULT DATE'2018-02-14', t TIMESTAMP DEFAULT "2016-02-22 12:45:07.000000000", + d1 DATE DEFAULT current_date() ENABLE, t1 TIMESTAMP DEFAULT current_timestamp() DISABLE); +DESC FORMATTED table1; + +EXPLAIN INSERT INTO table1(t) values ("1985-12-31 12:45:07"); +INSERT INTO table1(t) values ("1985-12-31 12:45:07"); +SELECT d, t, d1=current_date(), t1 from table1; + +EXPLAIN INSERT INTO table1(d, t1) values ("1985-12-31", current_timestamp()); +INSERT INTO table1(d, t1) values ("1985-12-31", current_timestamp()); +SELECT d, t, d1=current_date(), t1=current_timestamp() from table1; + +--TODO: alter table table1 to enable constraint +-- reinsert data + +-- string type +CREATE TABLE table2(i STRING DEFAULT current_database(), j STRING DEFAULT current_user(), + k STRING DEFAULT 'current_user()', v varchar(350) DEFAULT 'varchar_default_value', c char(20) DEFAULT 'char_value'); +DESC FORMATTED table2; + +-- misc type +CREATE TABLE misc(b BOOLEAN DEFAULT true, b1 BINARY DEFAULT 'bin'); +DESC FORMATTED misc; + +-- alter table drop and add constraint +ALTER TABLE numericDataType DROP CONSTRAINT tinyint_constraint; +DESC FORMATTED numericDataType; +ALTER TABLE numericDataType ADD CONSTRAINT uk1 UNIQUE(a,b) DISABLE NOVALIDATE; +DESC FORMATTED numericDataType; + +-- alter table change column with constraint +ALTER TABLE numericDataType CHANGE a a TINYINT CONSTRAINT second_constraint DEFAULT 127Y ENABLE; +DESC FORMATTED numericDataType; + +-- alter table add column with constraint +--XXX: Existing BUG ADD column not working +--ALTER TABLE misc ADD COLUMNS (a STRING); +--DESC FORMATTED misc; +ALTER TABLE misc CHANGE b1 b1 BINARY DEFAULT 'newValue'; +DESC FORMATTED misc; + +--DROP COLUMN with constraint XXX BUG +-- ALTER TABLE misc REPLACE COLUMNS(b BOOLEAN); +-- DESC FORMATTED misc; + +DROP TABLE numericDataType; +DROP TABLE table1; +DROP TABLE table2; +DROP TABLE misc; + + diff --git a/ql/src/test/results/clientpositive/llap/default_constraint.q.out b/ql/src/test/results/clientpositive/llap/default_constraint.q.out new file mode 100644 index 0000000000..3c0fbc659d --- /dev/null +++ b/ql/src/test/results/clientpositive/llap/default_constraint.q.out @@ -0,0 +1,828 @@ +PREHOOK: query: CREATE TABLE numericDataType(a TINYINT CONSTRAINT tinyint_constraint DEFAULT 127Y ENABLE, b SMALLINT DEFAULT 32767S, c INT DEFAULT 2147483647, + d BIGINT DEFAULT 9223372036854775807L, e DOUBLE DEFAULT 3.4E38, f DECIMAL(9,2) DEFAULT 1234567.89) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@numericDataType +POSTHOOK: query: CREATE TABLE numericDataType(a TINYINT CONSTRAINT tinyint_constraint DEFAULT 127Y ENABLE, b SMALLINT DEFAULT 32767S, c INT DEFAULT 2147483647, + d BIGINT DEFAULT 9223372036854775807L, e DOUBLE DEFAULT 3.4E38, f DECIMAL(9,2) DEFAULT 1234567.89) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@numericDataType +PREHOOK: query: DESC FORMATTED numericDataType +PREHOOK: type: DESCTABLE +PREHOOK: Input: default@numericdatatype +POSTHOOK: query: DESC FORMATTED numericDataType +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: default@numericdatatype +# col_name data_type comment +a tinyint +b smallint +c int +d bigint +e double +f decimal(9,2) + +# Detailed Table Information +Database: default +#### A masked pattern was here #### +Retention: 0 +#### A masked pattern was here #### +Table Type: MANAGED_TABLE +Table Parameters: +#### A masked pattern was here #### + +# Storage Information +SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe +InputFormat: org.apache.hadoop.mapred.TextInputFormat +OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat +Compressed: No +Num Buckets: -1 +Bucket Columns: [] +Sort Columns: [] +Storage Desc Params: + serialization.format 1 + +# Constraints + +# Default Constraints +Table: default.numericdatatype +Constraint Name: #### A masked pattern was here #### +Column Name:b Default Value:32767S + +Constraint Name: #### A masked pattern was here #### +Column Name:c Default Value:2147483647 + +Constraint Name: #### A masked pattern was here #### +Column Name:d Default Value:9223372036854775807L + +Constraint Name: #### A masked pattern was here #### +Column Name:e Default Value:3.4E38 + +Constraint Name: #### A masked pattern was here #### +Column Name:f Default Value:1234567.89 + +Constraint Name: tinyint_constraint +Column Name:a Default Value:127Y + +PREHOOK: query: EXPLAIN INSERT INTO numericDataType(a) values(3Y) +PREHOOK: type: QUERY +POSTHOOK: query: EXPLAIN INSERT INTO numericDataType(a) values(3Y) +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 + Tez +#### A masked pattern was here #### + Vertices: + Map 1 + Map Operator Tree: + TableScan + alias: _dummy_table + Row Limit Per Split: 1 + Statistics: Num rows: 1 Data size: 10 Basic stats: COMPLETE Column stats: COMPLETE + Select Operator + expressions: array(const struct(3)) (type: array>) + outputColumnNames: _col0 + Statistics: Num rows: 1 Data size: 48 Basic stats: COMPLETE Column stats: COMPLETE + UDTF Operator + Statistics: Num rows: 1 Data size: 48 Basic stats: COMPLETE Column stats: COMPLETE + function name: inline + Select Operator + expressions: UDFToByte(col1) (type: tinyint), 32767 (type: smallint), 2147483647 (type: int), 9223372036854775807 (type: bigint), 3.4E38 (type: double), 1234567.89 (type: decimal(9,2)) + outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5 + Statistics: Num rows: 1 Data size: 140 Basic stats: COMPLETE Column stats: COMPLETE + File Output Operator + compressed: false + Statistics: Num rows: 1 Data size: 140 Basic stats: COMPLETE Column stats: COMPLETE + table: + input format: org.apache.hadoop.mapred.TextInputFormat + output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat + serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe + name: default.numericdatatype + Execution mode: llap + LLAP IO: no inputs + + Stage: Stage-2 + Dependency Collection + + Stage: Stage-0 + Move Operator + tables: + replace: false + table: + input format: org.apache.hadoop.mapred.TextInputFormat + output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat + serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe + name: default.numericdatatype + +PREHOOK: query: INSERT INTO numericDataType(a) values(3Y) +PREHOOK: type: QUERY +PREHOOK: Input: _dummy_database@_dummy_table +PREHOOK: Output: default@numericdatatype +POSTHOOK: query: INSERT INTO numericDataType(a) values(3Y) +POSTHOOK: type: QUERY +POSTHOOK: Input: _dummy_database@_dummy_table +POSTHOOK: Output: default@numericdatatype +POSTHOOK: Lineage: numericdatatype.a SCRIPT [] +POSTHOOK: Lineage: numericdatatype.b SIMPLE [] +POSTHOOK: Lineage: numericdatatype.c SIMPLE [] +POSTHOOK: Lineage: numericdatatype.d SIMPLE [] +POSTHOOK: Lineage: numericdatatype.e SIMPLE [] +POSTHOOK: Lineage: numericdatatype.f SIMPLE [] +PREHOOK: query: SELECT * FROM numericDataType +PREHOOK: type: QUERY +PREHOOK: Input: default@numericdatatype +#### A masked pattern was here #### +POSTHOOK: query: SELECT * FROM numericDataType +POSTHOOK: type: QUERY +POSTHOOK: Input: default@numericdatatype +#### A masked pattern was here #### +3 32767 2147483647 9223372036854775807 3.4E38 1234567.89 +PREHOOK: query: EXPLAIN INSERT INTO numericDataType(e,f) values(4.5, 678.4) +PREHOOK: type: QUERY +POSTHOOK: query: EXPLAIN INSERT INTO numericDataType(e,f) values(4.5, 678.4) +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 + Tez +#### A masked pattern was here #### + Vertices: + Map 1 + Map Operator Tree: + TableScan + alias: _dummy_table + Row Limit Per Split: 1 + Statistics: Num rows: 1 Data size: 10 Basic stats: COMPLETE Column stats: COMPLETE + Select Operator + expressions: array(const struct(4.5,678.4)) (type: array>) + outputColumnNames: _col0 + Statistics: Num rows: 1 Data size: 48 Basic stats: COMPLETE Column stats: COMPLETE + UDTF Operator + Statistics: Num rows: 1 Data size: 48 Basic stats: COMPLETE Column stats: COMPLETE + function name: inline + Select Operator + expressions: 127 (type: tinyint), 32767 (type: smallint), 2147483647 (type: int), 9223372036854775807 (type: bigint), UDFToDouble(col1) (type: double), CAST( col2 AS decimal(9,2)) (type: decimal(9,2)) + outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5 + Statistics: Num rows: 1 Data size: 140 Basic stats: COMPLETE Column stats: COMPLETE + File Output Operator + compressed: false + Statistics: Num rows: 1 Data size: 140 Basic stats: COMPLETE Column stats: COMPLETE + table: + input format: org.apache.hadoop.mapred.TextInputFormat + output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat + serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe + name: default.numericdatatype + Execution mode: llap + LLAP IO: no inputs + + Stage: Stage-2 + Dependency Collection + + Stage: Stage-0 + Move Operator + tables: + replace: false + table: + input format: org.apache.hadoop.mapred.TextInputFormat + output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat + serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe + name: default.numericdatatype + +PREHOOK: query: INSERT INTO numericDataType(e,f) values(4.5, 678.4) +PREHOOK: type: QUERY +PREHOOK: Input: _dummy_database@_dummy_table +PREHOOK: Output: default@numericdatatype +POSTHOOK: query: INSERT INTO numericDataType(e,f) values(4.5, 678.4) +POSTHOOK: type: QUERY +POSTHOOK: Input: _dummy_database@_dummy_table +POSTHOOK: Output: default@numericdatatype +POSTHOOK: Lineage: numericdatatype.a SIMPLE [] +POSTHOOK: Lineage: numericdatatype.b SIMPLE [] +POSTHOOK: Lineage: numericdatatype.c SIMPLE [] +POSTHOOK: Lineage: numericdatatype.d SIMPLE [] +POSTHOOK: Lineage: numericdatatype.e SCRIPT [] +POSTHOOK: Lineage: numericdatatype.f SCRIPT [] +PREHOOK: query: SELECT * FROM numericDataType +PREHOOK: type: QUERY +PREHOOK: Input: default@numericdatatype +#### A masked pattern was here #### +POSTHOOK: query: SELECT * FROM numericDataType +POSTHOOK: type: QUERY +POSTHOOK: Input: default@numericdatatype +#### A masked pattern was here #### +3 32767 2147483647 9223372036854775807 3.4E38 1234567.89 +127 32767 2147483647 9223372036854775807 4.5 678.40 +PREHOOK: query: -- Date/time +CREATE TABLE table1(d DATE DEFAULT DATE'2018-02-14', t TIMESTAMP DEFAULT "2016-02-22 12:45:07.000000000", + d1 DATE DEFAULT current_date() ENABLE, t1 TIMESTAMP DEFAULT current_timestamp() DISABLE) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@table1 +POSTHOOK: query: -- Date/time +CREATE TABLE table1(d DATE DEFAULT DATE'2018-02-14', t TIMESTAMP DEFAULT "2016-02-22 12:45:07.000000000", + d1 DATE DEFAULT current_date() ENABLE, t1 TIMESTAMP DEFAULT current_timestamp() DISABLE) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@table1 +PREHOOK: query: DESC FORMATTED table1 +PREHOOK: type: DESCTABLE +PREHOOK: Input: default@table1 +POSTHOOK: query: DESC FORMATTED table1 +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: default@table1 +# col_name data_type comment +d date +t timestamp +d1 date +t1 timestamp + +# Detailed Table Information +Database: default +#### A masked pattern was here #### +Retention: 0 +#### A masked pattern was here #### +Table Type: MANAGED_TABLE +Table Parameters: +#### A masked pattern was here #### + +# Storage Information +SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe +InputFormat: org.apache.hadoop.mapred.TextInputFormat +OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat +Compressed: No +Num Buckets: -1 +Bucket Columns: [] +Sort Columns: [] +Storage Desc Params: + serialization.format 1 + +# Constraints + +# Default Constraints +Table: default.table1 +Constraint Name: #### A masked pattern was here #### +Column Name:d1 Default Value:current_date() + +Constraint Name: #### A masked pattern was here #### +Column Name:d Default Value:'2018-02-14' + +Constraint Name: #### A masked pattern was here #### +Column Name:t Default Value:"2016-02-22 12:45:07.000000000" + +Constraint Name: #### A masked pattern was here #### +Column Name:t1 Default Value:current_timestamp() + +PREHOOK: query: EXPLAIN INSERT INTO table1(t) values ("1985-12-31 12:45:07") +PREHOOK: type: QUERY +POSTHOOK: query: EXPLAIN INSERT INTO table1(t) values ("1985-12-31 12:45:07") +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 + Tez +#### A masked pattern was here #### + Vertices: + Map 1 + Map Operator Tree: + TableScan + alias: _dummy_table + Row Limit Per Split: 1 + Statistics: Num rows: 1 Data size: 10 Basic stats: COMPLETE Column stats: COMPLETE + Select Operator + expressions: array(const struct('1985-12-31 12:45:07')) (type: array>) + outputColumnNames: _col0 + Statistics: Num rows: 1 Data size: 48 Basic stats: COMPLETE Column stats: COMPLETE + UDTF Operator + Statistics: Num rows: 1 Data size: 48 Basic stats: COMPLETE Column stats: COMPLETE + function name: inline + Select Operator + expressions: 2018-02-14 (type: date), CAST( col1 AS TIMESTAMP) (type: timestamp), CURRENT_DATE() (type: date), null (type: timestamp) + outputColumnNames: _col0, _col1, _col2, _col3 + Statistics: Num rows: 1 Data size: 192 Basic stats: COMPLETE Column stats: COMPLETE + File Output Operator + compressed: false + Statistics: Num rows: 1 Data size: 192 Basic stats: COMPLETE Column stats: COMPLETE + table: + input format: org.apache.hadoop.mapred.TextInputFormat + output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat + serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe + name: default.table1 + Execution mode: llap + LLAP IO: no inputs + + Stage: Stage-2 + Dependency Collection + + Stage: Stage-0 + Move Operator + tables: + replace: false + table: + input format: org.apache.hadoop.mapred.TextInputFormat + output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat + serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe + name: default.table1 + +PREHOOK: query: INSERT INTO table1(t) values ("1985-12-31 12:45:07") +PREHOOK: type: QUERY +PREHOOK: Input: _dummy_database@_dummy_table +PREHOOK: Output: default@table1 +POSTHOOK: query: INSERT INTO table1(t) values ("1985-12-31 12:45:07") +POSTHOOK: type: QUERY +POSTHOOK: Input: _dummy_database@_dummy_table +POSTHOOK: Output: default@table1 +POSTHOOK: Lineage: table1.d EXPRESSION [] +POSTHOOK: Lineage: table1.d1 EXPRESSION [] +POSTHOOK: Lineage: table1.t SCRIPT [] +POSTHOOK: Lineage: table1.t1 SIMPLE [] +PREHOOK: query: SELECT d, t, d1=current_date(), t1 from table1 +PREHOOK: type: QUERY +PREHOOK: Input: default@table1 +#### A masked pattern was here #### +POSTHOOK: query: SELECT d, t, d1=current_date(), t1 from table1 +POSTHOOK: type: QUERY +POSTHOOK: Input: default@table1 +#### A masked pattern was here #### +2018-02-14 1985-12-31 12:45:07 true NULL +PREHOOK: query: EXPLAIN INSERT INTO table1(d, t1) values ("1985-12-31", current_timestamp()) +PREHOOK: type: QUERY +POSTHOOK: query: EXPLAIN INSERT INTO table1(d, t1) values ("1985-12-31", current_timestamp()) +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 + Tez +#### A masked pattern was here #### + Vertices: + Map 1 + Map Operator Tree: + TableScan + alias: _dummy_table + Row Limit Per Split: 1 + Statistics: Num rows: 1 Data size: 10 Basic stats: COMPLETE Column stats: COMPLETE + Select Operator + expressions: array(const struct('1985-12-31',2018-02-18 22:58:52.696)) (type: array>) + outputColumnNames: _col0 + Statistics: Num rows: 1 Data size: 48 Basic stats: COMPLETE Column stats: COMPLETE + UDTF Operator + Statistics: Num rows: 1 Data size: 48 Basic stats: COMPLETE Column stats: COMPLETE + function name: inline + Select Operator + expressions: CAST( col1 AS DATE) (type: date), 2016-02-22 12:45:07.0 (type: timestamp), CURRENT_DATE() (type: date), col2 (type: timestamp) + outputColumnNames: _col0, _col1, _col2, _col3 + Statistics: Num rows: 1 Data size: 152 Basic stats: COMPLETE Column stats: COMPLETE + File Output Operator + compressed: false + Statistics: Num rows: 1 Data size: 152 Basic stats: COMPLETE Column stats: COMPLETE + table: + input format: org.apache.hadoop.mapred.TextInputFormat + output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat + serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe + name: default.table1 + Execution mode: llap + LLAP IO: no inputs + + Stage: Stage-2 + Dependency Collection + + Stage: Stage-0 + Move Operator + tables: + replace: false + table: + input format: org.apache.hadoop.mapred.TextInputFormat + output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat + serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe + name: default.table1 + +PREHOOK: query: INSERT INTO table1(d, t1) values ("1985-12-31", current_timestamp()) +PREHOOK: type: QUERY +PREHOOK: Input: _dummy_database@_dummy_table +PREHOOK: Output: default@table1 +POSTHOOK: query: INSERT INTO table1(d, t1) values ("1985-12-31", current_timestamp()) +POSTHOOK: type: QUERY +POSTHOOK: Input: _dummy_database@_dummy_table +POSTHOOK: Output: default@table1 +POSTHOOK: Lineage: table1.d SCRIPT [] +POSTHOOK: Lineage: table1.d1 EXPRESSION [] +POSTHOOK: Lineage: table1.t EXPRESSION [] +POSTHOOK: Lineage: table1.t1 SCRIPT [] +PREHOOK: query: SELECT d, t, d1=current_date(), t1=current_timestamp() from table1 +PREHOOK: type: QUERY +PREHOOK: Input: default@table1 +#### A masked pattern was here #### +POSTHOOK: query: SELECT d, t, d1=current_date(), t1=current_timestamp() from table1 +POSTHOOK: type: QUERY +POSTHOOK: Input: default@table1 +#### A masked pattern was here #### +2018-02-14 1985-12-31 12:45:07 true NULL +1985-12-31 2016-02-22 12:45:07 true false +PREHOOK: query: CREATE TABLE table2(i STRING DEFAULT current_database(), j STRING DEFAULT current_user(), + k STRING DEFAULT 'current_user()', v varchar(350) DEFAULT 'varchar_default_value', c char(20) DEFAULT 'char_value') +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@table2 +POSTHOOK: query: CREATE TABLE table2(i STRING DEFAULT current_database(), j STRING DEFAULT current_user(), + k STRING DEFAULT 'current_user()', v varchar(350) DEFAULT 'varchar_default_value', c char(20) DEFAULT 'char_value') +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@table2 +PREHOOK: query: DESC FORMATTED table2 +PREHOOK: type: DESCTABLE +PREHOOK: Input: default@table2 +POSTHOOK: query: DESC FORMATTED table2 +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: default@table2 +# col_name data_type comment +i string +j string +k string +v varchar(350) +c char(20) + +# Detailed Table Information +Database: default +#### A masked pattern was here #### +Retention: 0 +#### A masked pattern was here #### +Table Type: MANAGED_TABLE +Table Parameters: +#### A masked pattern was here #### + +# Storage Information +SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe +InputFormat: org.apache.hadoop.mapred.TextInputFormat +OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat +Compressed: No +Num Buckets: -1 +Bucket Columns: [] +Sort Columns: [] +Storage Desc Params: + serialization.format 1 + +# Constraints + +# Default Constraints +Table: default.table2 +Constraint Name: #### A masked pattern was here #### +Column Name:j Default Value:current_user() + +Constraint Name: #### A masked pattern was here #### +Column Name:k Default Value:'current_user()' + +Constraint Name: #### A masked pattern was here #### +Column Name:v Default Value:'varchar_default_value' + +Constraint Name: #### A masked pattern was here #### +Column Name:c Default Value:'char_value' + +Constraint Name: #### A masked pattern was here #### +Column Name:i Default Value:current_database() + +PREHOOK: query: CREATE TABLE misc(b BOOLEAN DEFAULT true, b1 BINARY DEFAULT 'bin') +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@misc +POSTHOOK: query: CREATE TABLE misc(b BOOLEAN DEFAULT true, b1 BINARY DEFAULT 'bin') +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@misc +PREHOOK: query: DESC FORMATTED misc +PREHOOK: type: DESCTABLE +PREHOOK: Input: default@misc +POSTHOOK: query: DESC FORMATTED misc +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: default@misc +# col_name data_type comment +b boolean +b1 binary + +# Detailed Table Information +Database: default +#### A masked pattern was here #### +Retention: 0 +#### A masked pattern was here #### +Table Type: MANAGED_TABLE +Table Parameters: +#### A masked pattern was here #### + +# Storage Information +SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe +InputFormat: org.apache.hadoop.mapred.TextInputFormat +OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat +Compressed: No +Num Buckets: -1 +Bucket Columns: [] +Sort Columns: [] +Storage Desc Params: + serialization.format 1 + +# Constraints + +# Default Constraints +Table: default.misc +Constraint Name: #### A masked pattern was here #### +Column Name:b Default Value:true + +Constraint Name: #### A masked pattern was here #### +Column Name:b1 Default Value:'bin' + +PREHOOK: query: ALTER TABLE numericDataType DROP CONSTRAINT tinyint_constraint +PREHOOK: type: ALTERTABLE_DROPCONSTRAINT +POSTHOOK: query: ALTER TABLE numericDataType DROP CONSTRAINT tinyint_constraint +POSTHOOK: type: ALTERTABLE_DROPCONSTRAINT +PREHOOK: query: DESC FORMATTED numericDataType +PREHOOK: type: DESCTABLE +PREHOOK: Input: default@numericdatatype +POSTHOOK: query: DESC FORMATTED numericDataType +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: default@numericdatatype +# col_name data_type comment +a tinyint +b smallint +c int +d bigint +e double +f decimal(9,2) + +# Detailed Table Information +Database: default +#### A masked pattern was here #### +Retention: 0 +#### A masked pattern was here #### +Table Type: MANAGED_TABLE +Table Parameters: + numFiles 2 + totalSize 109 +#### A masked pattern was here #### + +# Storage Information +SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe +InputFormat: org.apache.hadoop.mapred.TextInputFormat +OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat +Compressed: No +Num Buckets: -1 +Bucket Columns: [] +Sort Columns: [] +Storage Desc Params: + serialization.format 1 + +# Constraints + +# Default Constraints +Table: default.numericdatatype +Constraint Name: #### A masked pattern was here #### +Column Name:b Default Value:32767S + +Constraint Name: #### A masked pattern was here #### +Column Name:c Default Value:2147483647 + +Constraint Name: #### A masked pattern was here #### +Column Name:d Default Value:9223372036854775807L + +Constraint Name: #### A masked pattern was here #### +Column Name:e Default Value:3.4E38 + +Constraint Name: #### A masked pattern was here #### +Column Name:f Default Value:1234567.89 + +PREHOOK: query: ALTER TABLE numericDataType ADD CONSTRAINT uk1 UNIQUE(a,b) DISABLE NOVALIDATE +PREHOOK: type: ALTERTABLE_ADDCONSTRAINT +POSTHOOK: query: ALTER TABLE numericDataType ADD CONSTRAINT uk1 UNIQUE(a,b) DISABLE NOVALIDATE +POSTHOOK: type: ALTERTABLE_ADDCONSTRAINT +PREHOOK: query: DESC FORMATTED numericDataType +PREHOOK: type: DESCTABLE +PREHOOK: Input: default@numericdatatype +POSTHOOK: query: DESC FORMATTED numericDataType +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: default@numericdatatype +# col_name data_type comment +a tinyint +b smallint +c int +d bigint +e double +f decimal(9,2) + +# Detailed Table Information +Database: default +#### A masked pattern was here #### +Retention: 0 +#### A masked pattern was here #### +Table Type: MANAGED_TABLE +Table Parameters: + numFiles 2 + totalSize 109 +#### A masked pattern was here #### + +# Storage Information +SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe +InputFormat: org.apache.hadoop.mapred.TextInputFormat +OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat +Compressed: No +Num Buckets: -1 +Bucket Columns: [] +Sort Columns: [] +Storage Desc Params: + serialization.format 1 + +# Constraints + +# Unique Constraints +Table: default.numericdatatype +Constraint Name: uk1 +Column Name:a Key Sequence:1 +Column Name:b Key Sequence:2 + + +# Default Constraints +Table: default.numericdatatype +Constraint Name: #### A masked pattern was here #### +Column Name:b Default Value:32767S + +Constraint Name: #### A masked pattern was here #### +Column Name:c Default Value:2147483647 + +Constraint Name: #### A masked pattern was here #### +Column Name:d Default Value:9223372036854775807L + +Constraint Name: #### A masked pattern was here #### +Column Name:e Default Value:3.4E38 + +Constraint Name: #### A masked pattern was here #### +Column Name:f Default Value:1234567.89 + +PREHOOK: query: ALTER TABLE numericDataType CHANGE a a TINYINT CONSTRAINT second_constraint DEFAULT 127Y ENABLE +PREHOOK: type: ALTERTABLE_RENAMECOL +PREHOOK: Input: default@numericdatatype +PREHOOK: Output: default@numericdatatype +POSTHOOK: query: ALTER TABLE numericDataType CHANGE a a TINYINT CONSTRAINT second_constraint DEFAULT 127Y ENABLE +POSTHOOK: type: ALTERTABLE_RENAMECOL +POSTHOOK: Input: default@numericdatatype +POSTHOOK: Output: default@numericdatatype +PREHOOK: query: DESC FORMATTED numericDataType +PREHOOK: type: DESCTABLE +PREHOOK: Input: default@numericdatatype +POSTHOOK: query: DESC FORMATTED numericDataType +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: default@numericdatatype +# col_name data_type comment +a tinyint +b smallint +c int +d bigint +e double +f decimal(9,2) + +# Detailed Table Information +Database: default +#### A masked pattern was here #### +Retention: 0 +#### A masked pattern was here #### +Table Type: MANAGED_TABLE +Table Parameters: +#### A masked pattern was here #### + numFiles 2 + totalSize 109 +#### A masked pattern was here #### + +# Storage Information +SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe +InputFormat: org.apache.hadoop.mapred.TextInputFormat +OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat +Compressed: No +Num Buckets: -1 +Bucket Columns: [] +Sort Columns: [] +Storage Desc Params: + serialization.format 1 + +# Constraints + +# Unique Constraints +Table: default.numericdatatype +Constraint Name: uk1 +Column Name:a Key Sequence:1 +Column Name:b Key Sequence:2 + + +# Default Constraints +Table: default.numericdatatype +Constraint Name: #### A masked pattern was here #### +Column Name:b Default Value:32767S + +Constraint Name: #### A masked pattern was here #### +Column Name:c Default Value:2147483647 + +Constraint Name: #### A masked pattern was here #### +Column Name:d Default Value:9223372036854775807L + +Constraint Name: #### A masked pattern was here #### +Column Name:e Default Value:3.4E38 + +Constraint Name: #### A masked pattern was here #### +Column Name:f Default Value:1234567.89 + +Constraint Name: second_constraint +Column Name:a Default Value:127Y + +PREHOOK: query: ALTER TABLE misc CHANGE b1 b1 BINARY DEFAULT 'newValue' +PREHOOK: type: ALTERTABLE_RENAMECOL +PREHOOK: Input: default@misc +PREHOOK: Output: default@misc +POSTHOOK: query: ALTER TABLE misc CHANGE b1 b1 BINARY DEFAULT 'newValue' +POSTHOOK: type: ALTERTABLE_RENAMECOL +POSTHOOK: Input: default@misc +POSTHOOK: Output: default@misc +PREHOOK: query: DESC FORMATTED misc +PREHOOK: type: DESCTABLE +PREHOOK: Input: default@misc +POSTHOOK: query: DESC FORMATTED misc +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: default@misc +# col_name data_type comment +b boolean +b1 binary + +# Detailed Table Information +Database: default +#### A masked pattern was here #### +Retention: 0 +#### A masked pattern was here #### +Table Type: MANAGED_TABLE +Table Parameters: +#### A masked pattern was here #### + +# Storage Information +SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe +InputFormat: org.apache.hadoop.mapred.TextInputFormat +OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat +Compressed: No +Num Buckets: -1 +Bucket Columns: [] +Sort Columns: [] +Storage Desc Params: + serialization.format 1 + +# Constraints + +# Default Constraints +Table: default.misc +Constraint Name: #### A masked pattern was here #### +Column Name:b Default Value:true + +Constraint Name: #### A masked pattern was here #### +Column Name:b1 Default Value:'bin' + +Constraint Name: #### A masked pattern was here #### +Column Name:b1 Default Value:'newValue' + +PREHOOK: query: DROP TABLE numericDataType +PREHOOK: type: DROPTABLE +PREHOOK: Input: default@numericdatatype +PREHOOK: Output: default@numericdatatype +POSTHOOK: query: DROP TABLE numericDataType +POSTHOOK: type: DROPTABLE +POSTHOOK: Input: default@numericdatatype +POSTHOOK: Output: default@numericdatatype +PREHOOK: query: DROP TABLE table1 +PREHOOK: type: DROPTABLE +PREHOOK: Input: default@table1 +PREHOOK: Output: default@table1 +POSTHOOK: query: DROP TABLE table1 +POSTHOOK: type: DROPTABLE +POSTHOOK: Input: default@table1 +POSTHOOK: Output: default@table1 +PREHOOK: query: DROP TABLE table2 +PREHOOK: type: DROPTABLE +PREHOOK: Input: default@table2 +PREHOOK: Output: default@table2 +POSTHOOK: query: DROP TABLE table2 +POSTHOOK: type: DROPTABLE +POSTHOOK: Input: default@table2 +POSTHOOK: Output: default@table2 +PREHOOK: query: DROP TABLE misc +PREHOOK: type: DROPTABLE +PREHOOK: Input: default@misc +PREHOOK: Output: default@misc +POSTHOOK: query: DROP TABLE misc +POSTHOOK: type: DROPTABLE +POSTHOOK: Input: default@misc +POSTHOOK: Output: default@misc diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp index 6bd6aa2289..d53db17219 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 _size1049; - ::apache::thrift::protocol::TType _etype1052; - xfer += iprot->readListBegin(_etype1052, _size1049); - this->success.resize(_size1049); - uint32_t _i1053; - for (_i1053 = 0; _i1053 < _size1049; ++_i1053) + uint32_t _size1069; + ::apache::thrift::protocol::TType _etype1072; + xfer += iprot->readListBegin(_etype1072, _size1069); + this->success.resize(_size1069); + uint32_t _i1073; + for (_i1073 = 0; _i1073 < _size1069; ++_i1073) { - xfer += iprot->readString(this->success[_i1053]); + xfer += iprot->readString(this->success[_i1073]); } 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 _iter1054; - for (_iter1054 = this->success.begin(); _iter1054 != this->success.end(); ++_iter1054) + std::vector ::const_iterator _iter1074; + for (_iter1074 = this->success.begin(); _iter1074 != this->success.end(); ++_iter1074) { - xfer += oprot->writeString((*_iter1054)); + xfer += oprot->writeString((*_iter1074)); } 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 _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 _size1075; + ::apache::thrift::protocol::TType _etype1078; + xfer += iprot->readListBegin(_etype1078, _size1075); + (*(this->success)).resize(_size1075); + uint32_t _i1079; + for (_i1079 = 0; _i1079 < _size1075; ++_i1079) { - xfer += iprot->readString((*(this->success))[_i1059]); + xfer += iprot->readString((*(this->success))[_i1079]); } 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 _size1060; - ::apache::thrift::protocol::TType _etype1063; - xfer += iprot->readListBegin(_etype1063, _size1060); - this->success.resize(_size1060); - uint32_t _i1064; - for (_i1064 = 0; _i1064 < _size1060; ++_i1064) + uint32_t _size1080; + ::apache::thrift::protocol::TType _etype1083; + xfer += iprot->readListBegin(_etype1083, _size1080); + this->success.resize(_size1080); + uint32_t _i1084; + for (_i1084 = 0; _i1084 < _size1080; ++_i1084) { - xfer += iprot->readString(this->success[_i1064]); + xfer += iprot->readString(this->success[_i1084]); } 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 _iter1065; - for (_iter1065 = this->success.begin(); _iter1065 != this->success.end(); ++_iter1065) + std::vector ::const_iterator _iter1085; + for (_iter1085 = this->success.begin(); _iter1085 != this->success.end(); ++_iter1085) { - xfer += oprot->writeString((*_iter1065)); + xfer += oprot->writeString((*_iter1085)); } 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 _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 _size1086; + ::apache::thrift::protocol::TType _etype1089; + xfer += iprot->readListBegin(_etype1089, _size1086); + (*(this->success)).resize(_size1086); + uint32_t _i1090; + for (_i1090 = 0; _i1090 < _size1086; ++_i1090) { - xfer += iprot->readString((*(this->success))[_i1070]); + xfer += iprot->readString((*(this->success))[_i1090]); } 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 _size1071; - ::apache::thrift::protocol::TType _ktype1072; - ::apache::thrift::protocol::TType _vtype1073; - xfer += iprot->readMapBegin(_ktype1072, _vtype1073, _size1071); - uint32_t _i1075; - for (_i1075 = 0; _i1075 < _size1071; ++_i1075) + uint32_t _size1091; + ::apache::thrift::protocol::TType _ktype1092; + ::apache::thrift::protocol::TType _vtype1093; + xfer += iprot->readMapBegin(_ktype1092, _vtype1093, _size1091); + uint32_t _i1095; + for (_i1095 = 0; _i1095 < _size1091; ++_i1095) { - std::string _key1076; - xfer += iprot->readString(_key1076); - Type& _val1077 = this->success[_key1076]; - xfer += _val1077.read(iprot); + std::string _key1096; + xfer += iprot->readString(_key1096); + Type& _val1097 = this->success[_key1096]; + xfer += _val1097.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 _iter1078; - for (_iter1078 = this->success.begin(); _iter1078 != this->success.end(); ++_iter1078) + std::map ::const_iterator _iter1098; + for (_iter1098 = this->success.begin(); _iter1098 != this->success.end(); ++_iter1098) { - xfer += oprot->writeString(_iter1078->first); - xfer += _iter1078->second.write(oprot); + xfer += oprot->writeString(_iter1098->first); + xfer += _iter1098->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 _size1079; - ::apache::thrift::protocol::TType _ktype1080; - ::apache::thrift::protocol::TType _vtype1081; - xfer += iprot->readMapBegin(_ktype1080, _vtype1081, _size1079); - uint32_t _i1083; - for (_i1083 = 0; _i1083 < _size1079; ++_i1083) + uint32_t _size1099; + ::apache::thrift::protocol::TType _ktype1100; + ::apache::thrift::protocol::TType _vtype1101; + xfer += iprot->readMapBegin(_ktype1100, _vtype1101, _size1099); + uint32_t _i1103; + for (_i1103 = 0; _i1103 < _size1099; ++_i1103) { - std::string _key1084; - xfer += iprot->readString(_key1084); - Type& _val1085 = (*(this->success))[_key1084]; - xfer += _val1085.read(iprot); + std::string _key1104; + xfer += iprot->readString(_key1104); + Type& _val1105 = (*(this->success))[_key1104]; + xfer += _val1105.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 _size1086; - ::apache::thrift::protocol::TType _etype1089; - xfer += iprot->readListBegin(_etype1089, _size1086); - this->success.resize(_size1086); - uint32_t _i1090; - for (_i1090 = 0; _i1090 < _size1086; ++_i1090) + uint32_t _size1106; + ::apache::thrift::protocol::TType _etype1109; + xfer += iprot->readListBegin(_etype1109, _size1106); + this->success.resize(_size1106); + uint32_t _i1110; + for (_i1110 = 0; _i1110 < _size1106; ++_i1110) { - xfer += this->success[_i1090].read(iprot); + xfer += this->success[_i1110].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 _iter1091; - for (_iter1091 = this->success.begin(); _iter1091 != this->success.end(); ++_iter1091) + std::vector ::const_iterator _iter1111; + for (_iter1111 = this->success.begin(); _iter1111 != this->success.end(); ++_iter1111) { - xfer += (*_iter1091).write(oprot); + xfer += (*_iter1111).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 _size1092; - ::apache::thrift::protocol::TType _etype1095; - xfer += iprot->readListBegin(_etype1095, _size1092); - (*(this->success)).resize(_size1092); - uint32_t _i1096; - for (_i1096 = 0; _i1096 < _size1092; ++_i1096) + uint32_t _size1112; + ::apache::thrift::protocol::TType _etype1115; + xfer += iprot->readListBegin(_etype1115, _size1112); + (*(this->success)).resize(_size1112); + uint32_t _i1116; + for (_i1116 = 0; _i1116 < _size1112; ++_i1116) { - xfer += (*(this->success))[_i1096].read(iprot); + xfer += (*(this->success))[_i1116].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 _size1097; - ::apache::thrift::protocol::TType _etype1100; - xfer += iprot->readListBegin(_etype1100, _size1097); - this->success.resize(_size1097); - uint32_t _i1101; - for (_i1101 = 0; _i1101 < _size1097; ++_i1101) + uint32_t _size1117; + ::apache::thrift::protocol::TType _etype1120; + xfer += iprot->readListBegin(_etype1120, _size1117); + this->success.resize(_size1117); + uint32_t _i1121; + for (_i1121 = 0; _i1121 < _size1117; ++_i1121) { - xfer += this->success[_i1101].read(iprot); + xfer += this->success[_i1121].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 _iter1102; - for (_iter1102 = this->success.begin(); _iter1102 != this->success.end(); ++_iter1102) + std::vector ::const_iterator _iter1122; + for (_iter1122 = this->success.begin(); _iter1122 != this->success.end(); ++_iter1122) { - xfer += (*_iter1102).write(oprot); + xfer += (*_iter1122).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 _size1103; - ::apache::thrift::protocol::TType _etype1106; - xfer += iprot->readListBegin(_etype1106, _size1103); - (*(this->success)).resize(_size1103); - uint32_t _i1107; - for (_i1107 = 0; _i1107 < _size1103; ++_i1107) + uint32_t _size1123; + ::apache::thrift::protocol::TType _etype1126; + xfer += iprot->readListBegin(_etype1126, _size1123); + (*(this->success)).resize(_size1123); + uint32_t _i1127; + for (_i1127 = 0; _i1127 < _size1123; ++_i1127) { - xfer += (*(this->success))[_i1107].read(iprot); + xfer += (*(this->success))[_i1127].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 _size1108; - ::apache::thrift::protocol::TType _etype1111; - xfer += iprot->readListBegin(_etype1111, _size1108); - this->success.resize(_size1108); - uint32_t _i1112; - for (_i1112 = 0; _i1112 < _size1108; ++_i1112) + uint32_t _size1128; + ::apache::thrift::protocol::TType _etype1131; + xfer += iprot->readListBegin(_etype1131, _size1128); + this->success.resize(_size1128); + uint32_t _i1132; + for (_i1132 = 0; _i1132 < _size1128; ++_i1132) { - xfer += this->success[_i1112].read(iprot); + xfer += this->success[_i1132].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 _iter1113; - for (_iter1113 = this->success.begin(); _iter1113 != this->success.end(); ++_iter1113) + std::vector ::const_iterator _iter1133; + for (_iter1133 = this->success.begin(); _iter1133 != this->success.end(); ++_iter1133) { - xfer += (*_iter1113).write(oprot); + xfer += (*_iter1133).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 _size1114; - ::apache::thrift::protocol::TType _etype1117; - xfer += iprot->readListBegin(_etype1117, _size1114); - (*(this->success)).resize(_size1114); - uint32_t _i1118; - for (_i1118 = 0; _i1118 < _size1114; ++_i1118) + uint32_t _size1134; + ::apache::thrift::protocol::TType _etype1137; + xfer += iprot->readListBegin(_etype1137, _size1134); + (*(this->success)).resize(_size1134); + uint32_t _i1138; + for (_i1138 = 0; _i1138 < _size1134; ++_i1138) { - xfer += (*(this->success))[_i1118].read(iprot); + xfer += (*(this->success))[_i1138].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 _size1119; - ::apache::thrift::protocol::TType _etype1122; - xfer += iprot->readListBegin(_etype1122, _size1119); - this->success.resize(_size1119); - uint32_t _i1123; - for (_i1123 = 0; _i1123 < _size1119; ++_i1123) + uint32_t _size1139; + ::apache::thrift::protocol::TType _etype1142; + xfer += iprot->readListBegin(_etype1142, _size1139); + this->success.resize(_size1139); + uint32_t _i1143; + for (_i1143 = 0; _i1143 < _size1139; ++_i1143) { - xfer += this->success[_i1123].read(iprot); + xfer += this->success[_i1143].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 _iter1124; - for (_iter1124 = this->success.begin(); _iter1124 != this->success.end(); ++_iter1124) + std::vector ::const_iterator _iter1144; + for (_iter1144 = this->success.begin(); _iter1144 != this->success.end(); ++_iter1144) { - xfer += (*_iter1124).write(oprot); + xfer += (*_iter1144).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 _size1125; - ::apache::thrift::protocol::TType _etype1128; - xfer += iprot->readListBegin(_etype1128, _size1125); - (*(this->success)).resize(_size1125); - uint32_t _i1129; - for (_i1129 = 0; _i1129 < _size1125; ++_i1129) + 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) { - xfer += (*(this->success))[_i1129].read(iprot); + xfer += (*(this->success))[_i1149].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 _size1130; - ::apache::thrift::protocol::TType _etype1133; - xfer += iprot->readListBegin(_etype1133, _size1130); - this->primaryKeys.resize(_size1130); - uint32_t _i1134; - for (_i1134 = 0; _i1134 < _size1130; ++_i1134) + uint32_t _size1150; + ::apache::thrift::protocol::TType _etype1153; + xfer += iprot->readListBegin(_etype1153, _size1150); + this->primaryKeys.resize(_size1150); + uint32_t _i1154; + for (_i1154 = 0; _i1154 < _size1150; ++_i1154) { - xfer += this->primaryKeys[_i1134].read(iprot); + xfer += this->primaryKeys[_i1154].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 _size1135; - ::apache::thrift::protocol::TType _etype1138; - xfer += iprot->readListBegin(_etype1138, _size1135); - this->foreignKeys.resize(_size1135); - uint32_t _i1139; - for (_i1139 = 0; _i1139 < _size1135; ++_i1139) + uint32_t _size1155; + ::apache::thrift::protocol::TType _etype1158; + xfer += iprot->readListBegin(_etype1158, _size1155); + this->foreignKeys.resize(_size1155); + uint32_t _i1159; + for (_i1159 = 0; _i1159 < _size1155; ++_i1159) { - xfer += this->foreignKeys[_i1139].read(iprot); + xfer += this->foreignKeys[_i1159].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 _size1140; - ::apache::thrift::protocol::TType _etype1143; - xfer += iprot->readListBegin(_etype1143, _size1140); - this->uniqueConstraints.resize(_size1140); - uint32_t _i1144; - for (_i1144 = 0; _i1144 < _size1140; ++_i1144) + uint32_t _size1160; + ::apache::thrift::protocol::TType _etype1163; + xfer += iprot->readListBegin(_etype1163, _size1160); + this->uniqueConstraints.resize(_size1160); + uint32_t _i1164; + for (_i1164 = 0; _i1164 < _size1160; ++_i1164) { - xfer += this->uniqueConstraints[_i1144].read(iprot); + xfer += this->uniqueConstraints[_i1164].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 _size1145; - ::apache::thrift::protocol::TType _etype1148; - xfer += iprot->readListBegin(_etype1148, _size1145); - this->notNullConstraints.resize(_size1145); - uint32_t _i1149; - for (_i1149 = 0; _i1149 < _size1145; ++_i1149) + uint32_t _size1165; + ::apache::thrift::protocol::TType _etype1168; + xfer += iprot->readListBegin(_etype1168, _size1165); + this->notNullConstraints.resize(_size1165); + uint32_t _i1169; + for (_i1169 = 0; _i1169 < _size1165; ++_i1169) { - xfer += this->notNullConstraints[_i1149].read(iprot); + xfer += this->notNullConstraints[_i1169].read(iprot); } xfer += iprot->readListEnd(); } @@ -4594,6 +4594,26 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache:: xfer += iprot->skip(ftype); } break; + case 6: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->defaultConstraints.clear(); + uint32_t _size1170; + ::apache::thrift::protocol::TType _etype1173; + xfer += iprot->readListBegin(_etype1173, _size1170); + this->defaultConstraints.resize(_size1170); + uint32_t _i1174; + for (_i1174 = 0; _i1174 < _size1170; ++_i1174) + { + xfer += this->defaultConstraints[_i1174].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.defaultConstraints = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -4618,10 +4638,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 _iter1150; - for (_iter1150 = this->primaryKeys.begin(); _iter1150 != this->primaryKeys.end(); ++_iter1150) + std::vector ::const_iterator _iter1175; + for (_iter1175 = this->primaryKeys.begin(); _iter1175 != this->primaryKeys.end(); ++_iter1175) { - xfer += (*_iter1150).write(oprot); + xfer += (*_iter1175).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4630,10 +4650,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 _iter1151; - for (_iter1151 = this->foreignKeys.begin(); _iter1151 != this->foreignKeys.end(); ++_iter1151) + std::vector ::const_iterator _iter1176; + for (_iter1176 = this->foreignKeys.begin(); _iter1176 != this->foreignKeys.end(); ++_iter1176) { - xfer += (*_iter1151).write(oprot); + xfer += (*_iter1176).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4642,10 +4662,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 _iter1152; - for (_iter1152 = this->uniqueConstraints.begin(); _iter1152 != this->uniqueConstraints.end(); ++_iter1152) + std::vector ::const_iterator _iter1177; + for (_iter1177 = this->uniqueConstraints.begin(); _iter1177 != this->uniqueConstraints.end(); ++_iter1177) { - xfer += (*_iter1152).write(oprot); + xfer += (*_iter1177).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4654,10 +4674,22 @@ 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 _iter1153; - for (_iter1153 = this->notNullConstraints.begin(); _iter1153 != this->notNullConstraints.end(); ++_iter1153) + std::vector ::const_iterator _iter1178; + for (_iter1178 = this->notNullConstraints.begin(); _iter1178 != this->notNullConstraints.end(); ++_iter1178) + { + xfer += (*_iter1178).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("defaultConstraints", ::apache::thrift::protocol::T_LIST, 6); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->defaultConstraints.size())); + std::vector ::const_iterator _iter1179; + for (_iter1179 = this->defaultConstraints.begin(); _iter1179 != this->defaultConstraints.end(); ++_iter1179) { - xfer += (*_iter1153).write(oprot); + xfer += (*_iter1179).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4685,10 +4717,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 _iter1154; - for (_iter1154 = (*(this->primaryKeys)).begin(); _iter1154 != (*(this->primaryKeys)).end(); ++_iter1154) + std::vector ::const_iterator _iter1180; + for (_iter1180 = (*(this->primaryKeys)).begin(); _iter1180 != (*(this->primaryKeys)).end(); ++_iter1180) { - xfer += (*_iter1154).write(oprot); + xfer += (*_iter1180).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4697,10 +4729,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 _iter1155; - for (_iter1155 = (*(this->foreignKeys)).begin(); _iter1155 != (*(this->foreignKeys)).end(); ++_iter1155) + std::vector ::const_iterator _iter1181; + for (_iter1181 = (*(this->foreignKeys)).begin(); _iter1181 != (*(this->foreignKeys)).end(); ++_iter1181) { - xfer += (*_iter1155).write(oprot); + xfer += (*_iter1181).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4709,10 +4741,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 _iter1156; - for (_iter1156 = (*(this->uniqueConstraints)).begin(); _iter1156 != (*(this->uniqueConstraints)).end(); ++_iter1156) + std::vector ::const_iterator _iter1182; + for (_iter1182 = (*(this->uniqueConstraints)).begin(); _iter1182 != (*(this->uniqueConstraints)).end(); ++_iter1182) { - xfer += (*_iter1156).write(oprot); + xfer += (*_iter1182).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4721,10 +4753,22 @@ 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 _iter1157; - for (_iter1157 = (*(this->notNullConstraints)).begin(); _iter1157 != (*(this->notNullConstraints)).end(); ++_iter1157) + std::vector ::const_iterator _iter1183; + for (_iter1183 = (*(this->notNullConstraints)).begin(); _iter1183 != (*(this->notNullConstraints)).end(); ++_iter1183) + { + xfer += (*_iter1183).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("defaultConstraints", ::apache::thrift::protocol::T_LIST, 6); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->defaultConstraints)).size())); + std::vector ::const_iterator _iter1184; + for (_iter1184 = (*(this->defaultConstraints)).begin(); _iter1184 != (*(this->defaultConstraints)).end(); ++_iter1184) { - xfer += (*_iter1157).write(oprot); + xfer += (*_iter1184).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5939,6 +5983,213 @@ uint32_t ThriftHiveMetastore_add_not_null_constraint_presult::read(::apache::thr } +ThriftHiveMetastore_add_default_constraint_args::~ThriftHiveMetastore_add_default_constraint_args() throw() { +} + + +uint32_t ThriftHiveMetastore_add_default_constraint_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->req.read(iprot); + this->__isset.req = 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_default_constraint_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_default_constraint_args"); + + xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->req.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_add_default_constraint_pargs::~ThriftHiveMetastore_add_default_constraint_pargs() throw() { +} + + +uint32_t ThriftHiveMetastore_add_default_constraint_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_default_constraint_pargs"); + + xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->req)).write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_add_default_constraint_result::~ThriftHiveMetastore_add_default_constraint_result() throw() { +} + + +uint32_t ThriftHiveMetastore_add_default_constraint_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_add_default_constraint_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_default_constraint_result"); + + if (this->__isset.o1) { + xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->o1.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o2) { + xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->o2.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_add_default_constraint_presult::~ThriftHiveMetastore_add_default_constraint_presult() throw() { +} + + +uint32_t ThriftHiveMetastore_add_default_constraint_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + + ThriftHiveMetastore_drop_table_args::~ThriftHiveMetastore_drop_table_args() throw() { } @@ -6478,14 +6729,14 @@ uint32_t ThriftHiveMetastore_truncate_table_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partNames.clear(); - uint32_t _size1158; - ::apache::thrift::protocol::TType _etype1161; - xfer += iprot->readListBegin(_etype1161, _size1158); - this->partNames.resize(_size1158); - uint32_t _i1162; - for (_i1162 = 0; _i1162 < _size1158; ++_i1162) + uint32_t _size1185; + ::apache::thrift::protocol::TType _etype1188; + xfer += iprot->readListBegin(_etype1188, _size1185); + this->partNames.resize(_size1185); + uint32_t _i1189; + for (_i1189 = 0; _i1189 < _size1185; ++_i1189) { - xfer += iprot->readString(this->partNames[_i1162]); + xfer += iprot->readString(this->partNames[_i1189]); } xfer += iprot->readListEnd(); } @@ -6522,10 +6773,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 _iter1163; - for (_iter1163 = this->partNames.begin(); _iter1163 != this->partNames.end(); ++_iter1163) + std::vector ::const_iterator _iter1190; + for (_iter1190 = this->partNames.begin(); _iter1190 != this->partNames.end(); ++_iter1190) { - xfer += oprot->writeString((*_iter1163)); + xfer += oprot->writeString((*_iter1190)); } xfer += oprot->writeListEnd(); } @@ -6557,10 +6808,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 _iter1164; - for (_iter1164 = (*(this->partNames)).begin(); _iter1164 != (*(this->partNames)).end(); ++_iter1164) + std::vector ::const_iterator _iter1191; + for (_iter1191 = (*(this->partNames)).begin(); _iter1191 != (*(this->partNames)).end(); ++_iter1191) { - xfer += oprot->writeString((*_iter1164)); + xfer += oprot->writeString((*_iter1191)); } xfer += oprot->writeListEnd(); } @@ -6804,14 +7055,14 @@ uint32_t ThriftHiveMetastore_get_tables_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1165; - ::apache::thrift::protocol::TType _etype1168; - xfer += iprot->readListBegin(_etype1168, _size1165); - this->success.resize(_size1165); - uint32_t _i1169; - for (_i1169 = 0; _i1169 < _size1165; ++_i1169) + uint32_t _size1192; + ::apache::thrift::protocol::TType _etype1195; + xfer += iprot->readListBegin(_etype1195, _size1192); + this->success.resize(_size1192); + uint32_t _i1196; + for (_i1196 = 0; _i1196 < _size1192; ++_i1196) { - xfer += iprot->readString(this->success[_i1169]); + xfer += iprot->readString(this->success[_i1196]); } xfer += iprot->readListEnd(); } @@ -6850,10 +7101,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 _iter1170; - for (_iter1170 = this->success.begin(); _iter1170 != this->success.end(); ++_iter1170) + std::vector ::const_iterator _iter1197; + for (_iter1197 = this->success.begin(); _iter1197 != this->success.end(); ++_iter1197) { - xfer += oprot->writeString((*_iter1170)); + xfer += oprot->writeString((*_iter1197)); } xfer += oprot->writeListEnd(); } @@ -6898,14 +7149,14 @@ uint32_t ThriftHiveMetastore_get_tables_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1171; - ::apache::thrift::protocol::TType _etype1174; - xfer += iprot->readListBegin(_etype1174, _size1171); - (*(this->success)).resize(_size1171); - uint32_t _i1175; - for (_i1175 = 0; _i1175 < _size1171; ++_i1175) + uint32_t _size1198; + ::apache::thrift::protocol::TType _etype1201; + xfer += iprot->readListBegin(_etype1201, _size1198); + (*(this->success)).resize(_size1198); + uint32_t _i1202; + for (_i1202 = 0; _i1202 < _size1198; ++_i1202) { - xfer += iprot->readString((*(this->success))[_i1175]); + xfer += iprot->readString((*(this->success))[_i1202]); } xfer += iprot->readListEnd(); } @@ -7075,14 +7326,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 _size1176; - ::apache::thrift::protocol::TType _etype1179; - xfer += iprot->readListBegin(_etype1179, _size1176); - this->success.resize(_size1176); - uint32_t _i1180; - for (_i1180 = 0; _i1180 < _size1176; ++_i1180) + uint32_t _size1203; + ::apache::thrift::protocol::TType _etype1206; + xfer += iprot->readListBegin(_etype1206, _size1203); + this->success.resize(_size1203); + uint32_t _i1207; + for (_i1207 = 0; _i1207 < _size1203; ++_i1207) { - xfer += iprot->readString(this->success[_i1180]); + xfer += iprot->readString(this->success[_i1207]); } xfer += iprot->readListEnd(); } @@ -7121,10 +7372,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 _iter1181; - for (_iter1181 = this->success.begin(); _iter1181 != this->success.end(); ++_iter1181) + std::vector ::const_iterator _iter1208; + for (_iter1208 = this->success.begin(); _iter1208 != this->success.end(); ++_iter1208) { - xfer += oprot->writeString((*_iter1181)); + xfer += oprot->writeString((*_iter1208)); } xfer += oprot->writeListEnd(); } @@ -7169,14 +7420,14 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_presult::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1182; - ::apache::thrift::protocol::TType _etype1185; - xfer += iprot->readListBegin(_etype1185, _size1182); - (*(this->success)).resize(_size1182); - uint32_t _i1186; - for (_i1186 = 0; _i1186 < _size1182; ++_i1186) + uint32_t _size1209; + ::apache::thrift::protocol::TType _etype1212; + xfer += iprot->readListBegin(_etype1212, _size1209); + (*(this->success)).resize(_size1209); + uint32_t _i1213; + for (_i1213 = 0; _i1213 < _size1209; ++_i1213) { - xfer += iprot->readString((*(this->success))[_i1186]); + xfer += iprot->readString((*(this->success))[_i1213]); } xfer += iprot->readListEnd(); } @@ -7314,14 +7565,14 @@ uint32_t ThriftHiveMetastore_get_materialized_views_for_rewriting_result::read(: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1187; - ::apache::thrift::protocol::TType _etype1190; - xfer += iprot->readListBegin(_etype1190, _size1187); - this->success.resize(_size1187); - uint32_t _i1191; - for (_i1191 = 0; _i1191 < _size1187; ++_i1191) + uint32_t _size1214; + ::apache::thrift::protocol::TType _etype1217; + xfer += iprot->readListBegin(_etype1217, _size1214); + this->success.resize(_size1214); + uint32_t _i1218; + for (_i1218 = 0; _i1218 < _size1214; ++_i1218) { - xfer += iprot->readString(this->success[_i1191]); + xfer += iprot->readString(this->success[_i1218]); } xfer += iprot->readListEnd(); } @@ -7360,10 +7611,10 @@ uint32_t ThriftHiveMetastore_get_materialized_views_for_rewriting_result::write( xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1192; - for (_iter1192 = this->success.begin(); _iter1192 != this->success.end(); ++_iter1192) + std::vector ::const_iterator _iter1219; + for (_iter1219 = this->success.begin(); _iter1219 != this->success.end(); ++_iter1219) { - xfer += oprot->writeString((*_iter1192)); + xfer += oprot->writeString((*_iter1219)); } xfer += oprot->writeListEnd(); } @@ -7408,14 +7659,14 @@ uint32_t ThriftHiveMetastore_get_materialized_views_for_rewriting_presult::read( if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1193; - ::apache::thrift::protocol::TType _etype1196; - xfer += iprot->readListBegin(_etype1196, _size1193); - (*(this->success)).resize(_size1193); - uint32_t _i1197; - for (_i1197 = 0; _i1197 < _size1193; ++_i1197) + uint32_t _size1220; + ::apache::thrift::protocol::TType _etype1223; + xfer += iprot->readListBegin(_etype1223, _size1220); + (*(this->success)).resize(_size1220); + uint32_t _i1224; + for (_i1224 = 0; _i1224 < _size1220; ++_i1224) { - xfer += iprot->readString((*(this->success))[_i1197]); + xfer += iprot->readString((*(this->success))[_i1224]); } xfer += iprot->readListEnd(); } @@ -7490,14 +7741,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tbl_types.clear(); - uint32_t _size1198; - ::apache::thrift::protocol::TType _etype1201; - xfer += iprot->readListBegin(_etype1201, _size1198); - this->tbl_types.resize(_size1198); - uint32_t _i1202; - for (_i1202 = 0; _i1202 < _size1198; ++_i1202) + uint32_t _size1225; + ::apache::thrift::protocol::TType _etype1228; + xfer += iprot->readListBegin(_etype1228, _size1225); + this->tbl_types.resize(_size1225); + uint32_t _i1229; + for (_i1229 = 0; _i1229 < _size1225; ++_i1229) { - xfer += iprot->readString(this->tbl_types[_i1202]); + xfer += iprot->readString(this->tbl_types[_i1229]); } xfer += iprot->readListEnd(); } @@ -7534,10 +7785,10 @@ uint32_t ThriftHiveMetastore_get_table_meta_args::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("tbl_types", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tbl_types.size())); - std::vector ::const_iterator _iter1203; - for (_iter1203 = this->tbl_types.begin(); _iter1203 != this->tbl_types.end(); ++_iter1203) + std::vector ::const_iterator _iter1230; + for (_iter1230 = this->tbl_types.begin(); _iter1230 != this->tbl_types.end(); ++_iter1230) { - xfer += oprot->writeString((*_iter1203)); + xfer += oprot->writeString((*_iter1230)); } xfer += oprot->writeListEnd(); } @@ -7569,10 +7820,10 @@ uint32_t ThriftHiveMetastore_get_table_meta_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("tbl_types", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->tbl_types)).size())); - std::vector ::const_iterator _iter1204; - for (_iter1204 = (*(this->tbl_types)).begin(); _iter1204 != (*(this->tbl_types)).end(); ++_iter1204) + std::vector ::const_iterator _iter1231; + for (_iter1231 = (*(this->tbl_types)).begin(); _iter1231 != (*(this->tbl_types)).end(); ++_iter1231) { - xfer += oprot->writeString((*_iter1204)); + xfer += oprot->writeString((*_iter1231)); } xfer += oprot->writeListEnd(); } @@ -7613,14 +7864,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1205; - ::apache::thrift::protocol::TType _etype1208; - xfer += iprot->readListBegin(_etype1208, _size1205); - this->success.resize(_size1205); - uint32_t _i1209; - for (_i1209 = 0; _i1209 < _size1205; ++_i1209) + uint32_t _size1232; + ::apache::thrift::protocol::TType _etype1235; + xfer += iprot->readListBegin(_etype1235, _size1232); + this->success.resize(_size1232); + uint32_t _i1236; + for (_i1236 = 0; _i1236 < _size1232; ++_i1236) { - xfer += this->success[_i1209].read(iprot); + xfer += this->success[_i1236].read(iprot); } xfer += iprot->readListEnd(); } @@ -7659,10 +7910,10 @@ uint32_t ThriftHiveMetastore_get_table_meta_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1210; - for (_iter1210 = this->success.begin(); _iter1210 != this->success.end(); ++_iter1210) + std::vector ::const_iterator _iter1237; + for (_iter1237 = this->success.begin(); _iter1237 != this->success.end(); ++_iter1237) { - xfer += (*_iter1210).write(oprot); + xfer += (*_iter1237).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7707,14 +7958,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1211; - ::apache::thrift::protocol::TType _etype1214; - xfer += iprot->readListBegin(_etype1214, _size1211); - (*(this->success)).resize(_size1211); - uint32_t _i1215; - for (_i1215 = 0; _i1215 < _size1211; ++_i1215) + uint32_t _size1238; + ::apache::thrift::protocol::TType _etype1241; + xfer += iprot->readListBegin(_etype1241, _size1238); + (*(this->success)).resize(_size1238); + uint32_t _i1242; + for (_i1242 = 0; _i1242 < _size1238; ++_i1242) { - xfer += (*(this->success))[_i1215].read(iprot); + xfer += (*(this->success))[_i1242].read(iprot); } xfer += iprot->readListEnd(); } @@ -7852,14 +8103,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1216; - ::apache::thrift::protocol::TType _etype1219; - xfer += iprot->readListBegin(_etype1219, _size1216); - this->success.resize(_size1216); - uint32_t _i1220; - for (_i1220 = 0; _i1220 < _size1216; ++_i1220) + uint32_t _size1243; + ::apache::thrift::protocol::TType _etype1246; + xfer += iprot->readListBegin(_etype1246, _size1243); + this->success.resize(_size1243); + uint32_t _i1247; + for (_i1247 = 0; _i1247 < _size1243; ++_i1247) { - xfer += iprot->readString(this->success[_i1220]); + xfer += iprot->readString(this->success[_i1247]); } xfer += iprot->readListEnd(); } @@ -7898,10 +8149,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 _iter1221; - for (_iter1221 = this->success.begin(); _iter1221 != this->success.end(); ++_iter1221) + std::vector ::const_iterator _iter1248; + for (_iter1248 = this->success.begin(); _iter1248 != this->success.end(); ++_iter1248) { - xfer += oprot->writeString((*_iter1221)); + xfer += oprot->writeString((*_iter1248)); } xfer += oprot->writeListEnd(); } @@ -7946,14 +8197,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1222; - ::apache::thrift::protocol::TType _etype1225; - xfer += iprot->readListBegin(_etype1225, _size1222); - (*(this->success)).resize(_size1222); - uint32_t _i1226; - for (_i1226 = 0; _i1226 < _size1222; ++_i1226) + uint32_t _size1249; + ::apache::thrift::protocol::TType _etype1252; + xfer += iprot->readListBegin(_etype1252, _size1249); + (*(this->success)).resize(_size1249); + uint32_t _i1253; + for (_i1253 = 0; _i1253 < _size1249; ++_i1253) { - xfer += iprot->readString((*(this->success))[_i1226]); + xfer += iprot->readString((*(this->success))[_i1253]); } xfer += iprot->readListEnd(); } @@ -8263,14 +8514,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 _size1227; - ::apache::thrift::protocol::TType _etype1230; - xfer += iprot->readListBegin(_etype1230, _size1227); - this->tbl_names.resize(_size1227); - uint32_t _i1231; - for (_i1231 = 0; _i1231 < _size1227; ++_i1231) + uint32_t _size1254; + ::apache::thrift::protocol::TType _etype1257; + xfer += iprot->readListBegin(_etype1257, _size1254); + this->tbl_names.resize(_size1254); + uint32_t _i1258; + for (_i1258 = 0; _i1258 < _size1254; ++_i1258) { - xfer += iprot->readString(this->tbl_names[_i1231]); + xfer += iprot->readString(this->tbl_names[_i1258]); } xfer += iprot->readListEnd(); } @@ -8303,10 +8554,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 _iter1232; - for (_iter1232 = this->tbl_names.begin(); _iter1232 != this->tbl_names.end(); ++_iter1232) + std::vector ::const_iterator _iter1259; + for (_iter1259 = this->tbl_names.begin(); _iter1259 != this->tbl_names.end(); ++_iter1259) { - xfer += oprot->writeString((*_iter1232)); + xfer += oprot->writeString((*_iter1259)); } xfer += oprot->writeListEnd(); } @@ -8334,10 +8585,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 _iter1233; - for (_iter1233 = (*(this->tbl_names)).begin(); _iter1233 != (*(this->tbl_names)).end(); ++_iter1233) + std::vector ::const_iterator _iter1260; + for (_iter1260 = (*(this->tbl_names)).begin(); _iter1260 != (*(this->tbl_names)).end(); ++_iter1260) { - xfer += oprot->writeString((*_iter1233)); + xfer += oprot->writeString((*_iter1260)); } xfer += oprot->writeListEnd(); } @@ -8378,14 +8629,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 _size1234; - ::apache::thrift::protocol::TType _etype1237; - xfer += iprot->readListBegin(_etype1237, _size1234); - this->success.resize(_size1234); - uint32_t _i1238; - for (_i1238 = 0; _i1238 < _size1234; ++_i1238) + uint32_t _size1261; + ::apache::thrift::protocol::TType _etype1264; + xfer += iprot->readListBegin(_etype1264, _size1261); + this->success.resize(_size1261); + uint32_t _i1265; + for (_i1265 = 0; _i1265 < _size1261; ++_i1265) { - xfer += this->success[_i1238].read(iprot); + xfer += this->success[_i1265].read(iprot); } xfer += iprot->readListEnd(); } @@ -8416,10 +8667,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 _iter1239; - for (_iter1239 = this->success.begin(); _iter1239 != this->success.end(); ++_iter1239) + std::vector
::const_iterator _iter1266; + for (_iter1266 = this->success.begin(); _iter1266 != this->success.end(); ++_iter1266) { - xfer += (*_iter1239).write(oprot); + xfer += (*_iter1266).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8460,14 +8711,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 _size1240; - ::apache::thrift::protocol::TType _etype1243; - xfer += iprot->readListBegin(_etype1243, _size1240); - (*(this->success)).resize(_size1240); - uint32_t _i1244; - for (_i1244 = 0; _i1244 < _size1240; ++_i1244) + uint32_t _size1267; + ::apache::thrift::protocol::TType _etype1270; + xfer += iprot->readListBegin(_etype1270, _size1267); + (*(this->success)).resize(_size1267); + uint32_t _i1271; + for (_i1271 = 0; _i1271 < _size1267; ++_i1271) { - xfer += (*(this->success))[_i1244].read(iprot); + xfer += (*(this->success))[_i1271].read(iprot); } xfer += iprot->readListEnd(); } @@ -9000,14 +9251,14 @@ uint32_t ThriftHiveMetastore_get_materialization_invalidation_info_args::read(:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tbl_names.clear(); - uint32_t _size1245; - ::apache::thrift::protocol::TType _etype1248; - xfer += iprot->readListBegin(_etype1248, _size1245); - this->tbl_names.resize(_size1245); - uint32_t _i1249; - for (_i1249 = 0; _i1249 < _size1245; ++_i1249) + uint32_t _size1272; + ::apache::thrift::protocol::TType _etype1275; + xfer += iprot->readListBegin(_etype1275, _size1272); + this->tbl_names.resize(_size1272); + uint32_t _i1276; + for (_i1276 = 0; _i1276 < _size1272; ++_i1276) { - xfer += iprot->readString(this->tbl_names[_i1249]); + xfer += iprot->readString(this->tbl_names[_i1276]); } xfer += iprot->readListEnd(); } @@ -9040,10 +9291,10 @@ uint32_t ThriftHiveMetastore_get_materialization_invalidation_info_args::write(: xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tbl_names.size())); - std::vector ::const_iterator _iter1250; - for (_iter1250 = this->tbl_names.begin(); _iter1250 != this->tbl_names.end(); ++_iter1250) + std::vector ::const_iterator _iter1277; + for (_iter1277 = this->tbl_names.begin(); _iter1277 != this->tbl_names.end(); ++_iter1277) { - xfer += oprot->writeString((*_iter1250)); + xfer += oprot->writeString((*_iter1277)); } xfer += oprot->writeListEnd(); } @@ -9071,10 +9322,10 @@ uint32_t ThriftHiveMetastore_get_materialization_invalidation_info_pargs::write( xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->tbl_names)).size())); - std::vector ::const_iterator _iter1251; - for (_iter1251 = (*(this->tbl_names)).begin(); _iter1251 != (*(this->tbl_names)).end(); ++_iter1251) + std::vector ::const_iterator _iter1278; + for (_iter1278 = (*(this->tbl_names)).begin(); _iter1278 != (*(this->tbl_names)).end(); ++_iter1278) { - xfer += oprot->writeString((*_iter1251)); + xfer += oprot->writeString((*_iter1278)); } xfer += oprot->writeListEnd(); } @@ -9115,17 +9366,17 @@ uint32_t ThriftHiveMetastore_get_materialization_invalidation_info_result::read( if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size1252; - ::apache::thrift::protocol::TType _ktype1253; - ::apache::thrift::protocol::TType _vtype1254; - xfer += iprot->readMapBegin(_ktype1253, _vtype1254, _size1252); - uint32_t _i1256; - for (_i1256 = 0; _i1256 < _size1252; ++_i1256) + uint32_t _size1279; + ::apache::thrift::protocol::TType _ktype1280; + ::apache::thrift::protocol::TType _vtype1281; + xfer += iprot->readMapBegin(_ktype1280, _vtype1281, _size1279); + uint32_t _i1283; + for (_i1283 = 0; _i1283 < _size1279; ++_i1283) { - std::string _key1257; - xfer += iprot->readString(_key1257); - Materialization& _val1258 = this->success[_key1257]; - xfer += _val1258.read(iprot); + std::string _key1284; + xfer += iprot->readString(_key1284); + Materialization& _val1285 = this->success[_key1284]; + xfer += _val1285.read(iprot); } xfer += iprot->readMapEnd(); } @@ -9180,11 +9431,11 @@ uint32_t ThriftHiveMetastore_get_materialization_invalidation_info_result::write xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::map ::const_iterator _iter1259; - for (_iter1259 = this->success.begin(); _iter1259 != this->success.end(); ++_iter1259) + std::map ::const_iterator _iter1286; + for (_iter1286 = this->success.begin(); _iter1286 != this->success.end(); ++_iter1286) { - xfer += oprot->writeString(_iter1259->first); - xfer += _iter1259->second.write(oprot); + xfer += oprot->writeString(_iter1286->first); + xfer += _iter1286->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -9237,17 +9488,17 @@ uint32_t ThriftHiveMetastore_get_materialization_invalidation_info_presult::read if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size1260; - ::apache::thrift::protocol::TType _ktype1261; - ::apache::thrift::protocol::TType _vtype1262; - xfer += iprot->readMapBegin(_ktype1261, _vtype1262, _size1260); - uint32_t _i1264; - for (_i1264 = 0; _i1264 < _size1260; ++_i1264) + uint32_t _size1287; + ::apache::thrift::protocol::TType _ktype1288; + ::apache::thrift::protocol::TType _vtype1289; + xfer += iprot->readMapBegin(_ktype1288, _vtype1289, _size1287); + uint32_t _i1291; + for (_i1291 = 0; _i1291 < _size1287; ++_i1291) { - std::string _key1265; - xfer += iprot->readString(_key1265); - Materialization& _val1266 = (*(this->success))[_key1265]; - xfer += _val1266.read(iprot); + std::string _key1292; + xfer += iprot->readString(_key1292); + Materialization& _val1293 = (*(this->success))[_key1292]; + xfer += _val1293.read(iprot); } xfer += iprot->readMapEnd(); } @@ -9692,14 +9943,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 _size1267; - ::apache::thrift::protocol::TType _etype1270; - xfer += iprot->readListBegin(_etype1270, _size1267); - this->success.resize(_size1267); - uint32_t _i1271; - for (_i1271 = 0; _i1271 < _size1267; ++_i1271) + uint32_t _size1294; + ::apache::thrift::protocol::TType _etype1297; + xfer += iprot->readListBegin(_etype1297, _size1294); + this->success.resize(_size1294); + uint32_t _i1298; + for (_i1298 = 0; _i1298 < _size1294; ++_i1298) { - xfer += iprot->readString(this->success[_i1271]); + xfer += iprot->readString(this->success[_i1298]); } xfer += iprot->readListEnd(); } @@ -9754,10 +10005,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 _iter1272; - for (_iter1272 = this->success.begin(); _iter1272 != this->success.end(); ++_iter1272) + std::vector ::const_iterator _iter1299; + for (_iter1299 = this->success.begin(); _iter1299 != this->success.end(); ++_iter1299) { - xfer += oprot->writeString((*_iter1272)); + xfer += oprot->writeString((*_iter1299)); } xfer += oprot->writeListEnd(); } @@ -9810,14 +10061,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 _size1273; - ::apache::thrift::protocol::TType _etype1276; - xfer += iprot->readListBegin(_etype1276, _size1273); - (*(this->success)).resize(_size1273); - uint32_t _i1277; - for (_i1277 = 0; _i1277 < _size1273; ++_i1277) + uint32_t _size1300; + ::apache::thrift::protocol::TType _etype1303; + xfer += iprot->readListBegin(_etype1303, _size1300); + (*(this->success)).resize(_size1300); + uint32_t _i1304; + for (_i1304 = 0; _i1304 < _size1300; ++_i1304) { - xfer += iprot->readString((*(this->success))[_i1277]); + xfer += iprot->readString((*(this->success))[_i1304]); } xfer += iprot->readListEnd(); } @@ -11151,14 +11402,14 @@ uint32_t ThriftHiveMetastore_add_partitions_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1278; - ::apache::thrift::protocol::TType _etype1281; - xfer += iprot->readListBegin(_etype1281, _size1278); - this->new_parts.resize(_size1278); - uint32_t _i1282; - for (_i1282 = 0; _i1282 < _size1278; ++_i1282) + uint32_t _size1305; + ::apache::thrift::protocol::TType _etype1308; + xfer += iprot->readListBegin(_etype1308, _size1305); + this->new_parts.resize(_size1305); + uint32_t _i1309; + for (_i1309 = 0; _i1309 < _size1305; ++_i1309) { - xfer += this->new_parts[_i1282].read(iprot); + xfer += this->new_parts[_i1309].read(iprot); } xfer += iprot->readListEnd(); } @@ -11187,10 +11438,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 _iter1283; - for (_iter1283 = this->new_parts.begin(); _iter1283 != this->new_parts.end(); ++_iter1283) + std::vector ::const_iterator _iter1310; + for (_iter1310 = this->new_parts.begin(); _iter1310 != this->new_parts.end(); ++_iter1310) { - xfer += (*_iter1283).write(oprot); + xfer += (*_iter1310).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11214,10 +11465,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 _iter1284; - for (_iter1284 = (*(this->new_parts)).begin(); _iter1284 != (*(this->new_parts)).end(); ++_iter1284) + std::vector ::const_iterator _iter1311; + for (_iter1311 = (*(this->new_parts)).begin(); _iter1311 != (*(this->new_parts)).end(); ++_iter1311) { - xfer += (*_iter1284).write(oprot); + xfer += (*_iter1311).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11426,14 +11677,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 _size1285; - ::apache::thrift::protocol::TType _etype1288; - xfer += iprot->readListBegin(_etype1288, _size1285); - this->new_parts.resize(_size1285); - uint32_t _i1289; - for (_i1289 = 0; _i1289 < _size1285; ++_i1289) + uint32_t _size1312; + ::apache::thrift::protocol::TType _etype1315; + xfer += iprot->readListBegin(_etype1315, _size1312); + this->new_parts.resize(_size1312); + uint32_t _i1316; + for (_i1316 = 0; _i1316 < _size1312; ++_i1316) { - xfer += this->new_parts[_i1289].read(iprot); + xfer += this->new_parts[_i1316].read(iprot); } xfer += iprot->readListEnd(); } @@ -11462,10 +11713,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 _iter1290; - for (_iter1290 = this->new_parts.begin(); _iter1290 != this->new_parts.end(); ++_iter1290) + std::vector ::const_iterator _iter1317; + for (_iter1317 = this->new_parts.begin(); _iter1317 != this->new_parts.end(); ++_iter1317) { - xfer += (*_iter1290).write(oprot); + xfer += (*_iter1317).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11489,10 +11740,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 _iter1291; - for (_iter1291 = (*(this->new_parts)).begin(); _iter1291 != (*(this->new_parts)).end(); ++_iter1291) + std::vector ::const_iterator _iter1318; + for (_iter1318 = (*(this->new_parts)).begin(); _iter1318 != (*(this->new_parts)).end(); ++_iter1318) { - xfer += (*_iter1291).write(oprot); + xfer += (*_iter1318).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11717,14 +11968,14 @@ uint32_t ThriftHiveMetastore_append_partition_args::read(::apache::thrift::proto 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 _size1319; + ::apache::thrift::protocol::TType _etype1322; + xfer += iprot->readListBegin(_etype1322, _size1319); + this->part_vals.resize(_size1319); + uint32_t _i1323; + for (_i1323 = 0; _i1323 < _size1319; ++_i1323) { - xfer += iprot->readString(this->part_vals[_i1296]); + xfer += iprot->readString(this->part_vals[_i1323]); } xfer += iprot->readListEnd(); } @@ -11761,10 +12012,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 _iter1297; - for (_iter1297 = this->part_vals.begin(); _iter1297 != this->part_vals.end(); ++_iter1297) + std::vector ::const_iterator _iter1324; + for (_iter1324 = this->part_vals.begin(); _iter1324 != this->part_vals.end(); ++_iter1324) { - xfer += oprot->writeString((*_iter1297)); + xfer += oprot->writeString((*_iter1324)); } xfer += oprot->writeListEnd(); } @@ -11796,10 +12047,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 _iter1298; - for (_iter1298 = (*(this->part_vals)).begin(); _iter1298 != (*(this->part_vals)).end(); ++_iter1298) + std::vector ::const_iterator _iter1325; + for (_iter1325 = (*(this->part_vals)).begin(); _iter1325 != (*(this->part_vals)).end(); ++_iter1325) { - xfer += oprot->writeString((*_iter1298)); + xfer += oprot->writeString((*_iter1325)); } xfer += oprot->writeListEnd(); } @@ -12271,14 +12522,14 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::rea if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1299; - ::apache::thrift::protocol::TType _etype1302; - xfer += iprot->readListBegin(_etype1302, _size1299); - this->part_vals.resize(_size1299); - uint32_t _i1303; - for (_i1303 = 0; _i1303 < _size1299; ++_i1303) + uint32_t _size1326; + ::apache::thrift::protocol::TType _etype1329; + xfer += iprot->readListBegin(_etype1329, _size1326); + this->part_vals.resize(_size1326); + uint32_t _i1330; + for (_i1330 = 0; _i1330 < _size1326; ++_i1330) { - xfer += iprot->readString(this->part_vals[_i1303]); + xfer += iprot->readString(this->part_vals[_i1330]); } xfer += iprot->readListEnd(); } @@ -12323,10 +12574,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 _iter1304; - for (_iter1304 = this->part_vals.begin(); _iter1304 != this->part_vals.end(); ++_iter1304) + std::vector ::const_iterator _iter1331; + for (_iter1331 = this->part_vals.begin(); _iter1331 != this->part_vals.end(); ++_iter1331) { - xfer += oprot->writeString((*_iter1304)); + xfer += oprot->writeString((*_iter1331)); } xfer += oprot->writeListEnd(); } @@ -12362,10 +12613,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 _iter1305; - for (_iter1305 = (*(this->part_vals)).begin(); _iter1305 != (*(this->part_vals)).end(); ++_iter1305) + std::vector ::const_iterator _iter1332; + for (_iter1332 = (*(this->part_vals)).begin(); _iter1332 != (*(this->part_vals)).end(); ++_iter1332) { - xfer += oprot->writeString((*_iter1305)); + xfer += oprot->writeString((*_iter1332)); } xfer += oprot->writeListEnd(); } @@ -13168,14 +13419,14 @@ uint32_t ThriftHiveMetastore_drop_partition_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1306; - ::apache::thrift::protocol::TType _etype1309; - xfer += iprot->readListBegin(_etype1309, _size1306); - this->part_vals.resize(_size1306); - uint32_t _i1310; - for (_i1310 = 0; _i1310 < _size1306; ++_i1310) + uint32_t _size1333; + ::apache::thrift::protocol::TType _etype1336; + xfer += iprot->readListBegin(_etype1336, _size1333); + this->part_vals.resize(_size1333); + uint32_t _i1337; + for (_i1337 = 0; _i1337 < _size1333; ++_i1337) { - xfer += iprot->readString(this->part_vals[_i1310]); + xfer += iprot->readString(this->part_vals[_i1337]); } xfer += iprot->readListEnd(); } @@ -13220,10 +13471,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 _iter1311; - for (_iter1311 = this->part_vals.begin(); _iter1311 != this->part_vals.end(); ++_iter1311) + std::vector ::const_iterator _iter1338; + for (_iter1338 = this->part_vals.begin(); _iter1338 != this->part_vals.end(); ++_iter1338) { - xfer += oprot->writeString((*_iter1311)); + xfer += oprot->writeString((*_iter1338)); } xfer += oprot->writeListEnd(); } @@ -13259,10 +13510,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 _iter1312; - for (_iter1312 = (*(this->part_vals)).begin(); _iter1312 != (*(this->part_vals)).end(); ++_iter1312) + std::vector ::const_iterator _iter1339; + for (_iter1339 = (*(this->part_vals)).begin(); _iter1339 != (*(this->part_vals)).end(); ++_iter1339) { - xfer += oprot->writeString((*_iter1312)); + xfer += oprot->writeString((*_iter1339)); } xfer += oprot->writeListEnd(); } @@ -13471,14 +13722,14 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::read( if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1313; - ::apache::thrift::protocol::TType _etype1316; - xfer += iprot->readListBegin(_etype1316, _size1313); - this->part_vals.resize(_size1313); - uint32_t _i1317; - for (_i1317 = 0; _i1317 < _size1313; ++_i1317) + uint32_t _size1340; + ::apache::thrift::protocol::TType _etype1343; + xfer += iprot->readListBegin(_etype1343, _size1340); + this->part_vals.resize(_size1340); + uint32_t _i1344; + for (_i1344 = 0; _i1344 < _size1340; ++_i1344) { - xfer += iprot->readString(this->part_vals[_i1317]); + xfer += iprot->readString(this->part_vals[_i1344]); } xfer += iprot->readListEnd(); } @@ -13531,10 +13782,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 _iter1318; - for (_iter1318 = this->part_vals.begin(); _iter1318 != this->part_vals.end(); ++_iter1318) + std::vector ::const_iterator _iter1345; + for (_iter1345 = this->part_vals.begin(); _iter1345 != this->part_vals.end(); ++_iter1345) { - xfer += oprot->writeString((*_iter1318)); + xfer += oprot->writeString((*_iter1345)); } xfer += oprot->writeListEnd(); } @@ -13574,10 +13825,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 _iter1319; - for (_iter1319 = (*(this->part_vals)).begin(); _iter1319 != (*(this->part_vals)).end(); ++_iter1319) + std::vector ::const_iterator _iter1346; + for (_iter1346 = (*(this->part_vals)).begin(); _iter1346 != (*(this->part_vals)).end(); ++_iter1346) { - xfer += oprot->writeString((*_iter1319)); + xfer += oprot->writeString((*_iter1346)); } xfer += oprot->writeListEnd(); } @@ -14583,14 +14834,14 @@ uint32_t ThriftHiveMetastore_get_partition_args::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1320; - ::apache::thrift::protocol::TType _etype1323; - xfer += iprot->readListBegin(_etype1323, _size1320); - this->part_vals.resize(_size1320); - uint32_t _i1324; - for (_i1324 = 0; _i1324 < _size1320; ++_i1324) + uint32_t _size1347; + ::apache::thrift::protocol::TType _etype1350; + xfer += iprot->readListBegin(_etype1350, _size1347); + this->part_vals.resize(_size1347); + uint32_t _i1351; + for (_i1351 = 0; _i1351 < _size1347; ++_i1351) { - xfer += iprot->readString(this->part_vals[_i1324]); + xfer += iprot->readString(this->part_vals[_i1351]); } xfer += iprot->readListEnd(); } @@ -14627,10 +14878,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 _iter1325; - for (_iter1325 = this->part_vals.begin(); _iter1325 != this->part_vals.end(); ++_iter1325) + std::vector ::const_iterator _iter1352; + for (_iter1352 = this->part_vals.begin(); _iter1352 != this->part_vals.end(); ++_iter1352) { - xfer += oprot->writeString((*_iter1325)); + xfer += oprot->writeString((*_iter1352)); } xfer += oprot->writeListEnd(); } @@ -14662,10 +14913,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 _iter1326; - for (_iter1326 = (*(this->part_vals)).begin(); _iter1326 != (*(this->part_vals)).end(); ++_iter1326) + std::vector ::const_iterator _iter1353; + for (_iter1353 = (*(this->part_vals)).begin(); _iter1353 != (*(this->part_vals)).end(); ++_iter1353) { - xfer += oprot->writeString((*_iter1326)); + xfer += oprot->writeString((*_iter1353)); } xfer += oprot->writeListEnd(); } @@ -14854,17 +15105,17 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size1327; - ::apache::thrift::protocol::TType _ktype1328; - ::apache::thrift::protocol::TType _vtype1329; - xfer += iprot->readMapBegin(_ktype1328, _vtype1329, _size1327); - uint32_t _i1331; - for (_i1331 = 0; _i1331 < _size1327; ++_i1331) + uint32_t _size1354; + ::apache::thrift::protocol::TType _ktype1355; + ::apache::thrift::protocol::TType _vtype1356; + xfer += iprot->readMapBegin(_ktype1355, _vtype1356, _size1354); + uint32_t _i1358; + for (_i1358 = 0; _i1358 < _size1354; ++_i1358) { - std::string _key1332; - xfer += iprot->readString(_key1332); - std::string& _val1333 = this->partitionSpecs[_key1332]; - xfer += iprot->readString(_val1333); + std::string _key1359; + xfer += iprot->readString(_key1359); + std::string& _val1360 = this->partitionSpecs[_key1359]; + xfer += iprot->readString(_val1360); } xfer += iprot->readMapEnd(); } @@ -14925,11 +15176,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 _iter1334; - for (_iter1334 = this->partitionSpecs.begin(); _iter1334 != this->partitionSpecs.end(); ++_iter1334) + std::map ::const_iterator _iter1361; + for (_iter1361 = this->partitionSpecs.begin(); _iter1361 != this->partitionSpecs.end(); ++_iter1361) { - xfer += oprot->writeString(_iter1334->first); - xfer += oprot->writeString(_iter1334->second); + xfer += oprot->writeString(_iter1361->first); + xfer += oprot->writeString(_iter1361->second); } xfer += oprot->writeMapEnd(); } @@ -14969,11 +15220,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 _iter1335; - for (_iter1335 = (*(this->partitionSpecs)).begin(); _iter1335 != (*(this->partitionSpecs)).end(); ++_iter1335) + std::map ::const_iterator _iter1362; + for (_iter1362 = (*(this->partitionSpecs)).begin(); _iter1362 != (*(this->partitionSpecs)).end(); ++_iter1362) { - xfer += oprot->writeString(_iter1335->first); - xfer += oprot->writeString(_iter1335->second); + xfer += oprot->writeString(_iter1362->first); + xfer += oprot->writeString(_iter1362->second); } xfer += oprot->writeMapEnd(); } @@ -15218,17 +15469,17 @@ uint32_t ThriftHiveMetastore_exchange_partitions_args::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size1336; - ::apache::thrift::protocol::TType _ktype1337; - ::apache::thrift::protocol::TType _vtype1338; - xfer += iprot->readMapBegin(_ktype1337, _vtype1338, _size1336); - uint32_t _i1340; - for (_i1340 = 0; _i1340 < _size1336; ++_i1340) + uint32_t _size1363; + ::apache::thrift::protocol::TType _ktype1364; + ::apache::thrift::protocol::TType _vtype1365; + xfer += iprot->readMapBegin(_ktype1364, _vtype1365, _size1363); + uint32_t _i1367; + for (_i1367 = 0; _i1367 < _size1363; ++_i1367) { - std::string _key1341; - xfer += iprot->readString(_key1341); - std::string& _val1342 = this->partitionSpecs[_key1341]; - xfer += iprot->readString(_val1342); + std::string _key1368; + xfer += iprot->readString(_key1368); + std::string& _val1369 = this->partitionSpecs[_key1368]; + xfer += iprot->readString(_val1369); } xfer += iprot->readMapEnd(); } @@ -15289,11 +15540,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 _iter1343; - for (_iter1343 = this->partitionSpecs.begin(); _iter1343 != this->partitionSpecs.end(); ++_iter1343) + std::map ::const_iterator _iter1370; + for (_iter1370 = this->partitionSpecs.begin(); _iter1370 != this->partitionSpecs.end(); ++_iter1370) { - xfer += oprot->writeString(_iter1343->first); - xfer += oprot->writeString(_iter1343->second); + xfer += oprot->writeString(_iter1370->first); + xfer += oprot->writeString(_iter1370->second); } xfer += oprot->writeMapEnd(); } @@ -15333,11 +15584,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 _iter1344; - for (_iter1344 = (*(this->partitionSpecs)).begin(); _iter1344 != (*(this->partitionSpecs)).end(); ++_iter1344) + std::map ::const_iterator _iter1371; + for (_iter1371 = (*(this->partitionSpecs)).begin(); _iter1371 != (*(this->partitionSpecs)).end(); ++_iter1371) { - xfer += oprot->writeString(_iter1344->first); - xfer += oprot->writeString(_iter1344->second); + xfer += oprot->writeString(_iter1371->first); + xfer += oprot->writeString(_iter1371->second); } xfer += oprot->writeMapEnd(); } @@ -15394,14 +15645,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1345; - ::apache::thrift::protocol::TType _etype1348; - xfer += iprot->readListBegin(_etype1348, _size1345); - this->success.resize(_size1345); - uint32_t _i1349; - for (_i1349 = 0; _i1349 < _size1345; ++_i1349) + uint32_t _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[_i1349].read(iprot); + xfer += this->success[_i1376].read(iprot); } xfer += iprot->readListEnd(); } @@ -15464,10 +15715,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 _iter1350; - for (_iter1350 = this->success.begin(); _iter1350 != this->success.end(); ++_iter1350) + std::vector ::const_iterator _iter1377; + for (_iter1377 = this->success.begin(); _iter1377 != this->success.end(); ++_iter1377) { - xfer += (*_iter1350).write(oprot); + xfer += (*_iter1377).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15524,14 +15775,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1351; - ::apache::thrift::protocol::TType _etype1354; - xfer += iprot->readListBegin(_etype1354, _size1351); - (*(this->success)).resize(_size1351); - uint32_t _i1355; - for (_i1355 = 0; _i1355 < _size1351; ++_i1355) + uint32_t _size1378; + ::apache::thrift::protocol::TType _etype1381; + xfer += iprot->readListBegin(_etype1381, _size1378); + (*(this->success)).resize(_size1378); + uint32_t _i1382; + for (_i1382 = 0; _i1382 < _size1378; ++_i1382) { - xfer += (*(this->success))[_i1355].read(iprot); + xfer += (*(this->success))[_i1382].read(iprot); } xfer += iprot->readListEnd(); } @@ -15630,14 +15881,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 _size1356; - ::apache::thrift::protocol::TType _etype1359; - xfer += iprot->readListBegin(_etype1359, _size1356); - this->part_vals.resize(_size1356); - uint32_t _i1360; - for (_i1360 = 0; _i1360 < _size1356; ++_i1360) + uint32_t _size1383; + ::apache::thrift::protocol::TType _etype1386; + xfer += iprot->readListBegin(_etype1386, _size1383); + this->part_vals.resize(_size1383); + uint32_t _i1387; + for (_i1387 = 0; _i1387 < _size1383; ++_i1387) { - xfer += iprot->readString(this->part_vals[_i1360]); + xfer += iprot->readString(this->part_vals[_i1387]); } xfer += iprot->readListEnd(); } @@ -15658,14 +15909,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 _size1361; - ::apache::thrift::protocol::TType _etype1364; - xfer += iprot->readListBegin(_etype1364, _size1361); - this->group_names.resize(_size1361); - uint32_t _i1365; - for (_i1365 = 0; _i1365 < _size1361; ++_i1365) + uint32_t _size1388; + ::apache::thrift::protocol::TType _etype1391; + xfer += iprot->readListBegin(_etype1391, _size1388); + this->group_names.resize(_size1388); + uint32_t _i1392; + for (_i1392 = 0; _i1392 < _size1388; ++_i1392) { - xfer += iprot->readString(this->group_names[_i1365]); + xfer += iprot->readString(this->group_names[_i1392]); } xfer += iprot->readListEnd(); } @@ -15702,10 +15953,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 _iter1366; - for (_iter1366 = this->part_vals.begin(); _iter1366 != this->part_vals.end(); ++_iter1366) + std::vector ::const_iterator _iter1393; + for (_iter1393 = this->part_vals.begin(); _iter1393 != this->part_vals.end(); ++_iter1393) { - xfer += oprot->writeString((*_iter1366)); + xfer += oprot->writeString((*_iter1393)); } xfer += oprot->writeListEnd(); } @@ -15718,10 +15969,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 _iter1367; - for (_iter1367 = this->group_names.begin(); _iter1367 != this->group_names.end(); ++_iter1367) + std::vector ::const_iterator _iter1394; + for (_iter1394 = this->group_names.begin(); _iter1394 != this->group_names.end(); ++_iter1394) { - xfer += oprot->writeString((*_iter1367)); + xfer += oprot->writeString((*_iter1394)); } xfer += oprot->writeListEnd(); } @@ -15753,10 +16004,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 _iter1368; - for (_iter1368 = (*(this->part_vals)).begin(); _iter1368 != (*(this->part_vals)).end(); ++_iter1368) + std::vector ::const_iterator _iter1395; + for (_iter1395 = (*(this->part_vals)).begin(); _iter1395 != (*(this->part_vals)).end(); ++_iter1395) { - xfer += oprot->writeString((*_iter1368)); + xfer += oprot->writeString((*_iter1395)); } xfer += oprot->writeListEnd(); } @@ -15769,10 +16020,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 _iter1369; - for (_iter1369 = (*(this->group_names)).begin(); _iter1369 != (*(this->group_names)).end(); ++_iter1369) + std::vector ::const_iterator _iter1396; + for (_iter1396 = (*(this->group_names)).begin(); _iter1396 != (*(this->group_names)).end(); ++_iter1396) { - xfer += oprot->writeString((*_iter1369)); + xfer += oprot->writeString((*_iter1396)); } xfer += oprot->writeListEnd(); } @@ -16331,14 +16582,14 @@ uint32_t ThriftHiveMetastore_get_partitions_result::read(::apache::thrift::proto 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 _size1397; + ::apache::thrift::protocol::TType _etype1400; + xfer += iprot->readListBegin(_etype1400, _size1397); + this->success.resize(_size1397); + uint32_t _i1401; + for (_i1401 = 0; _i1401 < _size1397; ++_i1401) { - xfer += this->success[_i1374].read(iprot); + xfer += this->success[_i1401].read(iprot); } xfer += iprot->readListEnd(); } @@ -16385,10 +16636,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 _iter1375; - for (_iter1375 = this->success.begin(); _iter1375 != this->success.end(); ++_iter1375) + std::vector ::const_iterator _iter1402; + for (_iter1402 = this->success.begin(); _iter1402 != this->success.end(); ++_iter1402) { - xfer += (*_iter1375).write(oprot); + xfer += (*_iter1402).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16437,14 +16688,14 @@ uint32_t ThriftHiveMetastore_get_partitions_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1376; - ::apache::thrift::protocol::TType _etype1379; - xfer += iprot->readListBegin(_etype1379, _size1376); - (*(this->success)).resize(_size1376); - uint32_t _i1380; - for (_i1380 = 0; _i1380 < _size1376; ++_i1380) + uint32_t _size1403; + ::apache::thrift::protocol::TType _etype1406; + xfer += iprot->readListBegin(_etype1406, _size1403); + (*(this->success)).resize(_size1403); + uint32_t _i1407; + for (_i1407 = 0; _i1407 < _size1403; ++_i1407) { - xfer += (*(this->success))[_i1380].read(iprot); + xfer += (*(this->success))[_i1407].read(iprot); } xfer += iprot->readListEnd(); } @@ -16543,14 +16794,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 _size1381; - ::apache::thrift::protocol::TType _etype1384; - xfer += iprot->readListBegin(_etype1384, _size1381); - this->group_names.resize(_size1381); - uint32_t _i1385; - for (_i1385 = 0; _i1385 < _size1381; ++_i1385) + uint32_t _size1408; + ::apache::thrift::protocol::TType _etype1411; + xfer += iprot->readListBegin(_etype1411, _size1408); + this->group_names.resize(_size1408); + uint32_t _i1412; + for (_i1412 = 0; _i1412 < _size1408; ++_i1412) { - xfer += iprot->readString(this->group_names[_i1385]); + xfer += iprot->readString(this->group_names[_i1412]); } xfer += iprot->readListEnd(); } @@ -16595,10 +16846,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 _iter1386; - for (_iter1386 = this->group_names.begin(); _iter1386 != this->group_names.end(); ++_iter1386) + std::vector ::const_iterator _iter1413; + for (_iter1413 = this->group_names.begin(); _iter1413 != this->group_names.end(); ++_iter1413) { - xfer += oprot->writeString((*_iter1386)); + xfer += oprot->writeString((*_iter1413)); } xfer += oprot->writeListEnd(); } @@ -16638,10 +16889,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 _iter1387; - for (_iter1387 = (*(this->group_names)).begin(); _iter1387 != (*(this->group_names)).end(); ++_iter1387) + std::vector ::const_iterator _iter1414; + for (_iter1414 = (*(this->group_names)).begin(); _iter1414 != (*(this->group_names)).end(); ++_iter1414) { - xfer += oprot->writeString((*_iter1387)); + xfer += oprot->writeString((*_iter1414)); } xfer += oprot->writeListEnd(); } @@ -16682,14 +16933,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1388; - ::apache::thrift::protocol::TType _etype1391; - xfer += iprot->readListBegin(_etype1391, _size1388); - this->success.resize(_size1388); - uint32_t _i1392; - for (_i1392 = 0; _i1392 < _size1388; ++_i1392) + uint32_t _size1415; + ::apache::thrift::protocol::TType _etype1418; + xfer += iprot->readListBegin(_etype1418, _size1415); + this->success.resize(_size1415); + uint32_t _i1419; + for (_i1419 = 0; _i1419 < _size1415; ++_i1419) { - xfer += this->success[_i1392].read(iprot); + xfer += this->success[_i1419].read(iprot); } xfer += iprot->readListEnd(); } @@ -16736,10 +16987,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 _iter1393; - for (_iter1393 = this->success.begin(); _iter1393 != this->success.end(); ++_iter1393) + std::vector ::const_iterator _iter1420; + for (_iter1420 = this->success.begin(); _iter1420 != this->success.end(); ++_iter1420) { - xfer += (*_iter1393).write(oprot); + xfer += (*_iter1420).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16788,14 +17039,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1394; - ::apache::thrift::protocol::TType _etype1397; - xfer += iprot->readListBegin(_etype1397, _size1394); - (*(this->success)).resize(_size1394); - uint32_t _i1398; - for (_i1398 = 0; _i1398 < _size1394; ++_i1398) + uint32_t _size1421; + ::apache::thrift::protocol::TType _etype1424; + xfer += iprot->readListBegin(_etype1424, _size1421); + (*(this->success)).resize(_size1421); + uint32_t _i1425; + for (_i1425 = 0; _i1425 < _size1421; ++_i1425) { - xfer += (*(this->success))[_i1398].read(iprot); + xfer += (*(this->success))[_i1425].read(iprot); } xfer += iprot->readListEnd(); } @@ -16973,14 +17224,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_result::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1399; - ::apache::thrift::protocol::TType _etype1402; - xfer += iprot->readListBegin(_etype1402, _size1399); - this->success.resize(_size1399); - uint32_t _i1403; - for (_i1403 = 0; _i1403 < _size1399; ++_i1403) + uint32_t _size1426; + ::apache::thrift::protocol::TType _etype1429; + xfer += iprot->readListBegin(_etype1429, _size1426); + this->success.resize(_size1426); + uint32_t _i1430; + for (_i1430 = 0; _i1430 < _size1426; ++_i1430) { - xfer += this->success[_i1403].read(iprot); + xfer += this->success[_i1430].read(iprot); } xfer += iprot->readListEnd(); } @@ -17027,10 +17278,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 _iter1404; - for (_iter1404 = this->success.begin(); _iter1404 != this->success.end(); ++_iter1404) + std::vector ::const_iterator _iter1431; + for (_iter1431 = this->success.begin(); _iter1431 != this->success.end(); ++_iter1431) { - xfer += (*_iter1404).write(oprot); + xfer += (*_iter1431).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17079,14 +17330,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_presult::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1405; - ::apache::thrift::protocol::TType _etype1408; - xfer += iprot->readListBegin(_etype1408, _size1405); - (*(this->success)).resize(_size1405); - uint32_t _i1409; - for (_i1409 = 0; _i1409 < _size1405; ++_i1409) + uint32_t _size1432; + ::apache::thrift::protocol::TType _etype1435; + xfer += iprot->readListBegin(_etype1435, _size1432); + (*(this->success)).resize(_size1432); + uint32_t _i1436; + for (_i1436 = 0; _i1436 < _size1432; ++_i1436) { - xfer += (*(this->success))[_i1409].read(iprot); + xfer += (*(this->success))[_i1436].read(iprot); } xfer += iprot->readListEnd(); } @@ -17264,14 +17515,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1410; - ::apache::thrift::protocol::TType _etype1413; - xfer += iprot->readListBegin(_etype1413, _size1410); - this->success.resize(_size1410); - uint32_t _i1414; - for (_i1414 = 0; _i1414 < _size1410; ++_i1414) + uint32_t _size1437; + ::apache::thrift::protocol::TType _etype1440; + xfer += iprot->readListBegin(_etype1440, _size1437); + this->success.resize(_size1437); + uint32_t _i1441; + for (_i1441 = 0; _i1441 < _size1437; ++_i1441) { - xfer += iprot->readString(this->success[_i1414]); + xfer += iprot->readString(this->success[_i1441]); } xfer += iprot->readListEnd(); } @@ -17318,10 +17569,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 _iter1415; - for (_iter1415 = this->success.begin(); _iter1415 != this->success.end(); ++_iter1415) + std::vector ::const_iterator _iter1442; + for (_iter1442 = this->success.begin(); _iter1442 != this->success.end(); ++_iter1442) { - xfer += oprot->writeString((*_iter1415)); + xfer += oprot->writeString((*_iter1442)); } xfer += oprot->writeListEnd(); } @@ -17370,14 +17621,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1416; - ::apache::thrift::protocol::TType _etype1419; - xfer += iprot->readListBegin(_etype1419, _size1416); - (*(this->success)).resize(_size1416); - uint32_t _i1420; - for (_i1420 = 0; _i1420 < _size1416; ++_i1420) + uint32_t _size1443; + ::apache::thrift::protocol::TType _etype1446; + xfer += iprot->readListBegin(_etype1446, _size1443); + (*(this->success)).resize(_size1443); + uint32_t _i1447; + for (_i1447 = 0; _i1447 < _size1443; ++_i1447) { - xfer += iprot->readString((*(this->success))[_i1420]); + xfer += iprot->readString((*(this->success))[_i1447]); } xfer += iprot->readListEnd(); } @@ -17687,14 +17938,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 _size1421; - ::apache::thrift::protocol::TType _etype1424; - xfer += iprot->readListBegin(_etype1424, _size1421); - this->part_vals.resize(_size1421); - uint32_t _i1425; - for (_i1425 = 0; _i1425 < _size1421; ++_i1425) + uint32_t _size1448; + ::apache::thrift::protocol::TType _etype1451; + xfer += iprot->readListBegin(_etype1451, _size1448); + this->part_vals.resize(_size1448); + uint32_t _i1452; + for (_i1452 = 0; _i1452 < _size1448; ++_i1452) { - xfer += iprot->readString(this->part_vals[_i1425]); + xfer += iprot->readString(this->part_vals[_i1452]); } xfer += iprot->readListEnd(); } @@ -17739,10 +17990,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 _iter1426; - for (_iter1426 = this->part_vals.begin(); _iter1426 != this->part_vals.end(); ++_iter1426) + std::vector ::const_iterator _iter1453; + for (_iter1453 = this->part_vals.begin(); _iter1453 != this->part_vals.end(); ++_iter1453) { - xfer += oprot->writeString((*_iter1426)); + xfer += oprot->writeString((*_iter1453)); } xfer += oprot->writeListEnd(); } @@ -17778,10 +18029,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 _iter1427; - for (_iter1427 = (*(this->part_vals)).begin(); _iter1427 != (*(this->part_vals)).end(); ++_iter1427) + std::vector ::const_iterator _iter1454; + for (_iter1454 = (*(this->part_vals)).begin(); _iter1454 != (*(this->part_vals)).end(); ++_iter1454) { - xfer += oprot->writeString((*_iter1427)); + xfer += oprot->writeString((*_iter1454)); } xfer += oprot->writeListEnd(); } @@ -17826,14 +18077,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1428; - ::apache::thrift::protocol::TType _etype1431; - xfer += iprot->readListBegin(_etype1431, _size1428); - this->success.resize(_size1428); - uint32_t _i1432; - for (_i1432 = 0; _i1432 < _size1428; ++_i1432) + 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[_i1432].read(iprot); + xfer += this->success[_i1459].read(iprot); } xfer += iprot->readListEnd(); } @@ -17880,10 +18131,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 _iter1433; - for (_iter1433 = this->success.begin(); _iter1433 != this->success.end(); ++_iter1433) + std::vector ::const_iterator _iter1460; + for (_iter1460 = this->success.begin(); _iter1460 != this->success.end(); ++_iter1460) { - xfer += (*_iter1433).write(oprot); + xfer += (*_iter1460).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17932,14 +18183,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1434; - ::apache::thrift::protocol::TType _etype1437; - xfer += iprot->readListBegin(_etype1437, _size1434); - (*(this->success)).resize(_size1434); - uint32_t _i1438; - for (_i1438 = 0; _i1438 < _size1434; ++_i1438) + uint32_t _size1461; + ::apache::thrift::protocol::TType _etype1464; + xfer += iprot->readListBegin(_etype1464, _size1461); + (*(this->success)).resize(_size1461); + uint32_t _i1465; + for (_i1465 = 0; _i1465 < _size1461; ++_i1465) { - xfer += (*(this->success))[_i1438].read(iprot); + xfer += (*(this->success))[_i1465].read(iprot); } xfer += iprot->readListEnd(); } @@ -18022,14 +18273,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 _size1439; - ::apache::thrift::protocol::TType _etype1442; - xfer += iprot->readListBegin(_etype1442, _size1439); - this->part_vals.resize(_size1439); - uint32_t _i1443; - for (_i1443 = 0; _i1443 < _size1439; ++_i1443) + uint32_t _size1466; + ::apache::thrift::protocol::TType _etype1469; + xfer += iprot->readListBegin(_etype1469, _size1466); + this->part_vals.resize(_size1466); + uint32_t _i1470; + for (_i1470 = 0; _i1470 < _size1466; ++_i1470) { - xfer += iprot->readString(this->part_vals[_i1443]); + xfer += iprot->readString(this->part_vals[_i1470]); } xfer += iprot->readListEnd(); } @@ -18058,14 +18309,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 _size1444; - ::apache::thrift::protocol::TType _etype1447; - xfer += iprot->readListBegin(_etype1447, _size1444); - this->group_names.resize(_size1444); - uint32_t _i1448; - for (_i1448 = 0; _i1448 < _size1444; ++_i1448) + uint32_t _size1471; + ::apache::thrift::protocol::TType _etype1474; + xfer += iprot->readListBegin(_etype1474, _size1471); + this->group_names.resize(_size1471); + uint32_t _i1475; + for (_i1475 = 0; _i1475 < _size1471; ++_i1475) { - xfer += iprot->readString(this->group_names[_i1448]); + xfer += iprot->readString(this->group_names[_i1475]); } xfer += iprot->readListEnd(); } @@ -18102,10 +18353,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 _iter1449; - for (_iter1449 = this->part_vals.begin(); _iter1449 != this->part_vals.end(); ++_iter1449) + std::vector ::const_iterator _iter1476; + for (_iter1476 = this->part_vals.begin(); _iter1476 != this->part_vals.end(); ++_iter1476) { - xfer += oprot->writeString((*_iter1449)); + xfer += oprot->writeString((*_iter1476)); } xfer += oprot->writeListEnd(); } @@ -18122,10 +18373,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 _iter1450; - for (_iter1450 = this->group_names.begin(); _iter1450 != this->group_names.end(); ++_iter1450) + std::vector ::const_iterator _iter1477; + for (_iter1477 = this->group_names.begin(); _iter1477 != this->group_names.end(); ++_iter1477) { - xfer += oprot->writeString((*_iter1450)); + xfer += oprot->writeString((*_iter1477)); } xfer += oprot->writeListEnd(); } @@ -18157,10 +18408,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 _iter1451; - for (_iter1451 = (*(this->part_vals)).begin(); _iter1451 != (*(this->part_vals)).end(); ++_iter1451) + std::vector ::const_iterator _iter1478; + for (_iter1478 = (*(this->part_vals)).begin(); _iter1478 != (*(this->part_vals)).end(); ++_iter1478) { - xfer += oprot->writeString((*_iter1451)); + xfer += oprot->writeString((*_iter1478)); } xfer += oprot->writeListEnd(); } @@ -18177,10 +18428,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 _iter1452; - for (_iter1452 = (*(this->group_names)).begin(); _iter1452 != (*(this->group_names)).end(); ++_iter1452) + std::vector ::const_iterator _iter1479; + for (_iter1479 = (*(this->group_names)).begin(); _iter1479 != (*(this->group_names)).end(); ++_iter1479) { - xfer += oprot->writeString((*_iter1452)); + xfer += oprot->writeString((*_iter1479)); } xfer += oprot->writeListEnd(); } @@ -18221,14 +18472,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::read(::apache:: 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 _size1480; + ::apache::thrift::protocol::TType _etype1483; + xfer += iprot->readListBegin(_etype1483, _size1480); + this->success.resize(_size1480); + uint32_t _i1484; + for (_i1484 = 0; _i1484 < _size1480; ++_i1484) { - xfer += this->success[_i1457].read(iprot); + xfer += this->success[_i1484].read(iprot); } xfer += iprot->readListEnd(); } @@ -18275,10 +18526,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 _iter1458; - for (_iter1458 = this->success.begin(); _iter1458 != this->success.end(); ++_iter1458) + std::vector ::const_iterator _iter1485; + for (_iter1485 = this->success.begin(); _iter1485 != this->success.end(); ++_iter1485) { - xfer += (*_iter1458).write(oprot); + xfer += (*_iter1485).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18327,14 +18578,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_presult::read(::apache: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1459; - ::apache::thrift::protocol::TType _etype1462; - xfer += iprot->readListBegin(_etype1462, _size1459); - (*(this->success)).resize(_size1459); - uint32_t _i1463; - for (_i1463 = 0; _i1463 < _size1459; ++_i1463) + uint32_t _size1486; + ::apache::thrift::protocol::TType _etype1489; + xfer += iprot->readListBegin(_etype1489, _size1486); + (*(this->success)).resize(_size1486); + uint32_t _i1490; + for (_i1490 = 0; _i1490 < _size1486; ++_i1490) { - xfer += (*(this->success))[_i1463].read(iprot); + xfer += (*(this->success))[_i1490].read(iprot); } xfer += iprot->readListEnd(); } @@ -18417,14 +18668,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 _size1464; - ::apache::thrift::protocol::TType _etype1467; - xfer += iprot->readListBegin(_etype1467, _size1464); - this->part_vals.resize(_size1464); - uint32_t _i1468; - for (_i1468 = 0; _i1468 < _size1464; ++_i1468) + uint32_t _size1491; + ::apache::thrift::protocol::TType _etype1494; + xfer += iprot->readListBegin(_etype1494, _size1491); + this->part_vals.resize(_size1491); + uint32_t _i1495; + for (_i1495 = 0; _i1495 < _size1491; ++_i1495) { - xfer += iprot->readString(this->part_vals[_i1468]); + xfer += iprot->readString(this->part_vals[_i1495]); } xfer += iprot->readListEnd(); } @@ -18469,10 +18720,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 _iter1469; - for (_iter1469 = this->part_vals.begin(); _iter1469 != this->part_vals.end(); ++_iter1469) + std::vector ::const_iterator _iter1496; + for (_iter1496 = this->part_vals.begin(); _iter1496 != this->part_vals.end(); ++_iter1496) { - xfer += oprot->writeString((*_iter1469)); + xfer += oprot->writeString((*_iter1496)); } xfer += oprot->writeListEnd(); } @@ -18508,10 +18759,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 _iter1470; - for (_iter1470 = (*(this->part_vals)).begin(); _iter1470 != (*(this->part_vals)).end(); ++_iter1470) + std::vector ::const_iterator _iter1497; + for (_iter1497 = (*(this->part_vals)).begin(); _iter1497 != (*(this->part_vals)).end(); ++_iter1497) { - xfer += oprot->writeString((*_iter1470)); + xfer += oprot->writeString((*_iter1497)); } xfer += oprot->writeListEnd(); } @@ -18556,14 +18807,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1471; - ::apache::thrift::protocol::TType _etype1474; - xfer += iprot->readListBegin(_etype1474, _size1471); - this->success.resize(_size1471); - uint32_t _i1475; - for (_i1475 = 0; _i1475 < _size1471; ++_i1475) + uint32_t _size1498; + ::apache::thrift::protocol::TType _etype1501; + xfer += iprot->readListBegin(_etype1501, _size1498); + this->success.resize(_size1498); + uint32_t _i1502; + for (_i1502 = 0; _i1502 < _size1498; ++_i1502) { - xfer += iprot->readString(this->success[_i1475]); + xfer += iprot->readString(this->success[_i1502]); } xfer += iprot->readListEnd(); } @@ -18610,10 +18861,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 _iter1476; - for (_iter1476 = this->success.begin(); _iter1476 != this->success.end(); ++_iter1476) + std::vector ::const_iterator _iter1503; + for (_iter1503 = this->success.begin(); _iter1503 != this->success.end(); ++_iter1503) { - xfer += oprot->writeString((*_iter1476)); + xfer += oprot->writeString((*_iter1503)); } xfer += oprot->writeListEnd(); } @@ -18662,14 +18913,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1477; - ::apache::thrift::protocol::TType _etype1480; - xfer += iprot->readListBegin(_etype1480, _size1477); - (*(this->success)).resize(_size1477); - uint32_t _i1481; - for (_i1481 = 0; _i1481 < _size1477; ++_i1481) + uint32_t _size1504; + ::apache::thrift::protocol::TType _etype1507; + xfer += iprot->readListBegin(_etype1507, _size1504); + (*(this->success)).resize(_size1504); + uint32_t _i1508; + for (_i1508 = 0; _i1508 < _size1504; ++_i1508) { - xfer += iprot->readString((*(this->success))[_i1481]); + xfer += iprot->readString((*(this->success))[_i1508]); } xfer += iprot->readListEnd(); } @@ -18863,14 +19114,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1482; - ::apache::thrift::protocol::TType _etype1485; - xfer += iprot->readListBegin(_etype1485, _size1482); - this->success.resize(_size1482); - uint32_t _i1486; - for (_i1486 = 0; _i1486 < _size1482; ++_i1486) + uint32_t _size1509; + ::apache::thrift::protocol::TType _etype1512; + xfer += iprot->readListBegin(_etype1512, _size1509); + this->success.resize(_size1509); + uint32_t _i1513; + for (_i1513 = 0; _i1513 < _size1509; ++_i1513) { - xfer += this->success[_i1486].read(iprot); + xfer += this->success[_i1513].read(iprot); } xfer += iprot->readListEnd(); } @@ -18917,10 +19168,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 _iter1487; - for (_iter1487 = this->success.begin(); _iter1487 != this->success.end(); ++_iter1487) + std::vector ::const_iterator _iter1514; + for (_iter1514 = this->success.begin(); _iter1514 != this->success.end(); ++_iter1514) { - xfer += (*_iter1487).write(oprot); + xfer += (*_iter1514).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18969,14 +19220,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1488; - ::apache::thrift::protocol::TType _etype1491; - xfer += iprot->readListBegin(_etype1491, _size1488); - (*(this->success)).resize(_size1488); - uint32_t _i1492; - for (_i1492 = 0; _i1492 < _size1488; ++_i1492) + uint32_t _size1515; + ::apache::thrift::protocol::TType _etype1518; + xfer += iprot->readListBegin(_etype1518, _size1515); + (*(this->success)).resize(_size1515); + uint32_t _i1519; + for (_i1519 = 0; _i1519 < _size1515; ++_i1519) { - xfer += (*(this->success))[_i1492].read(iprot); + xfer += (*(this->success))[_i1519].read(iprot); } xfer += iprot->readListEnd(); } @@ -19170,14 +19421,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 _size1493; - ::apache::thrift::protocol::TType _etype1496; - xfer += iprot->readListBegin(_etype1496, _size1493); - this->success.resize(_size1493); - uint32_t _i1497; - for (_i1497 = 0; _i1497 < _size1493; ++_i1497) + uint32_t _size1520; + ::apache::thrift::protocol::TType _etype1523; + xfer += iprot->readListBegin(_etype1523, _size1520); + this->success.resize(_size1520); + uint32_t _i1524; + for (_i1524 = 0; _i1524 < _size1520; ++_i1524) { - xfer += this->success[_i1497].read(iprot); + xfer += this->success[_i1524].read(iprot); } xfer += iprot->readListEnd(); } @@ -19224,10 +19475,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 _iter1498; - for (_iter1498 = this->success.begin(); _iter1498 != this->success.end(); ++_iter1498) + std::vector ::const_iterator _iter1525; + for (_iter1525 = this->success.begin(); _iter1525 != this->success.end(); ++_iter1525) { - xfer += (*_iter1498).write(oprot); + xfer += (*_iter1525).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19276,14 +19527,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 _size1499; - ::apache::thrift::protocol::TType _etype1502; - xfer += iprot->readListBegin(_etype1502, _size1499); - (*(this->success)).resize(_size1499); - uint32_t _i1503; - for (_i1503 = 0; _i1503 < _size1499; ++_i1503) + uint32_t _size1526; + ::apache::thrift::protocol::TType _etype1529; + xfer += iprot->readListBegin(_etype1529, _size1526); + (*(this->success)).resize(_size1526); + uint32_t _i1530; + for (_i1530 = 0; _i1530 < _size1526; ++_i1530) { - xfer += (*(this->success))[_i1503].read(iprot); + xfer += (*(this->success))[_i1530].read(iprot); } xfer += iprot->readListEnd(); } @@ -19852,14 +20103,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size1504; - ::apache::thrift::protocol::TType _etype1507; - xfer += iprot->readListBegin(_etype1507, _size1504); - this->names.resize(_size1504); - uint32_t _i1508; - for (_i1508 = 0; _i1508 < _size1504; ++_i1508) + uint32_t _size1531; + ::apache::thrift::protocol::TType _etype1534; + xfer += iprot->readListBegin(_etype1534, _size1531); + this->names.resize(_size1531); + uint32_t _i1535; + for (_i1535 = 0; _i1535 < _size1531; ++_i1535) { - xfer += iprot->readString(this->names[_i1508]); + xfer += iprot->readString(this->names[_i1535]); } xfer += iprot->readListEnd(); } @@ -19896,10 +20147,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 _iter1509; - for (_iter1509 = this->names.begin(); _iter1509 != this->names.end(); ++_iter1509) + std::vector ::const_iterator _iter1536; + for (_iter1536 = this->names.begin(); _iter1536 != this->names.end(); ++_iter1536) { - xfer += oprot->writeString((*_iter1509)); + xfer += oprot->writeString((*_iter1536)); } xfer += oprot->writeListEnd(); } @@ -19931,10 +20182,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 _iter1510; - for (_iter1510 = (*(this->names)).begin(); _iter1510 != (*(this->names)).end(); ++_iter1510) + std::vector ::const_iterator _iter1537; + for (_iter1537 = (*(this->names)).begin(); _iter1537 != (*(this->names)).end(); ++_iter1537) { - xfer += oprot->writeString((*_iter1510)); + xfer += oprot->writeString((*_iter1537)); } xfer += oprot->writeListEnd(); } @@ -19975,14 +20226,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1511; - ::apache::thrift::protocol::TType _etype1514; - xfer += iprot->readListBegin(_etype1514, _size1511); - this->success.resize(_size1511); - uint32_t _i1515; - for (_i1515 = 0; _i1515 < _size1511; ++_i1515) + 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) { - xfer += this->success[_i1515].read(iprot); + xfer += this->success[_i1542].read(iprot); } xfer += iprot->readListEnd(); } @@ -20029,10 +20280,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 _iter1516; - for (_iter1516 = this->success.begin(); _iter1516 != this->success.end(); ++_iter1516) + std::vector ::const_iterator _iter1543; + for (_iter1543 = this->success.begin(); _iter1543 != this->success.end(); ++_iter1543) { - xfer += (*_iter1516).write(oprot); + xfer += (*_iter1543).write(oprot); } xfer += oprot->writeListEnd(); } @@ -20081,14 +20332,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_presult::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1517; - ::apache::thrift::protocol::TType _etype1520; - xfer += iprot->readListBegin(_etype1520, _size1517); - (*(this->success)).resize(_size1517); - uint32_t _i1521; - for (_i1521 = 0; _i1521 < _size1517; ++_i1521) + uint32_t _size1544; + ::apache::thrift::protocol::TType _etype1547; + xfer += iprot->readListBegin(_etype1547, _size1544); + (*(this->success)).resize(_size1544); + uint32_t _i1548; + for (_i1548 = 0; _i1548 < _size1544; ++_i1548) { - xfer += (*(this->success))[_i1521].read(iprot); + xfer += (*(this->success))[_i1548].read(iprot); } xfer += iprot->readListEnd(); } @@ -20410,14 +20661,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1522; - ::apache::thrift::protocol::TType _etype1525; - xfer += iprot->readListBegin(_etype1525, _size1522); - this->new_parts.resize(_size1522); - uint32_t _i1526; - for (_i1526 = 0; _i1526 < _size1522; ++_i1526) + uint32_t _size1549; + ::apache::thrift::protocol::TType _etype1552; + xfer += iprot->readListBegin(_etype1552, _size1549); + this->new_parts.resize(_size1549); + uint32_t _i1553; + for (_i1553 = 0; _i1553 < _size1549; ++_i1553) { - xfer += this->new_parts[_i1526].read(iprot); + xfer += this->new_parts[_i1553].read(iprot); } xfer += iprot->readListEnd(); } @@ -20454,10 +20705,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 _iter1527; - for (_iter1527 = this->new_parts.begin(); _iter1527 != this->new_parts.end(); ++_iter1527) + std::vector ::const_iterator _iter1554; + for (_iter1554 = this->new_parts.begin(); _iter1554 != this->new_parts.end(); ++_iter1554) { - xfer += (*_iter1527).write(oprot); + xfer += (*_iter1554).write(oprot); } xfer += oprot->writeListEnd(); } @@ -20489,10 +20740,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 _iter1528; - for (_iter1528 = (*(this->new_parts)).begin(); _iter1528 != (*(this->new_parts)).end(); ++_iter1528) + std::vector ::const_iterator _iter1555; + for (_iter1555 = (*(this->new_parts)).begin(); _iter1555 != (*(this->new_parts)).end(); ++_iter1555) { - xfer += (*_iter1528).write(oprot); + xfer += (*_iter1555).write(oprot); } xfer += oprot->writeListEnd(); } @@ -20677,14 +20928,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_with_environment_context_args::rea if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1529; - ::apache::thrift::protocol::TType _etype1532; - xfer += iprot->readListBegin(_etype1532, _size1529); - this->new_parts.resize(_size1529); - uint32_t _i1533; - for (_i1533 = 0; _i1533 < _size1529; ++_i1533) + uint32_t _size1556; + ::apache::thrift::protocol::TType _etype1559; + xfer += iprot->readListBegin(_etype1559, _size1556); + this->new_parts.resize(_size1556); + uint32_t _i1560; + for (_i1560 = 0; _i1560 < _size1556; ++_i1560) { - xfer += this->new_parts[_i1533].read(iprot); + xfer += this->new_parts[_i1560].read(iprot); } xfer += iprot->readListEnd(); } @@ -20729,10 +20980,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 _iter1534; - for (_iter1534 = this->new_parts.begin(); _iter1534 != this->new_parts.end(); ++_iter1534) + std::vector ::const_iterator _iter1561; + for (_iter1561 = this->new_parts.begin(); _iter1561 != this->new_parts.end(); ++_iter1561) { - xfer += (*_iter1534).write(oprot); + xfer += (*_iter1561).write(oprot); } xfer += oprot->writeListEnd(); } @@ -20768,10 +21019,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 _iter1535; - for (_iter1535 = (*(this->new_parts)).begin(); _iter1535 != (*(this->new_parts)).end(); ++_iter1535) + std::vector ::const_iterator _iter1562; + for (_iter1562 = (*(this->new_parts)).begin(); _iter1562 != (*(this->new_parts)).end(); ++_iter1562) { - xfer += (*_iter1535).write(oprot); + xfer += (*_iter1562).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21215,14 +21466,14 @@ uint32_t ThriftHiveMetastore_rename_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1536; - ::apache::thrift::protocol::TType _etype1539; - xfer += iprot->readListBegin(_etype1539, _size1536); - this->part_vals.resize(_size1536); - uint32_t _i1540; - for (_i1540 = 0; _i1540 < _size1536; ++_i1540) + uint32_t _size1563; + ::apache::thrift::protocol::TType _etype1566; + xfer += iprot->readListBegin(_etype1566, _size1563); + this->part_vals.resize(_size1563); + uint32_t _i1567; + for (_i1567 = 0; _i1567 < _size1563; ++_i1567) { - xfer += iprot->readString(this->part_vals[_i1540]); + xfer += iprot->readString(this->part_vals[_i1567]); } xfer += iprot->readListEnd(); } @@ -21267,10 +21518,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 _iter1541; - for (_iter1541 = this->part_vals.begin(); _iter1541 != this->part_vals.end(); ++_iter1541) + std::vector ::const_iterator _iter1568; + for (_iter1568 = this->part_vals.begin(); _iter1568 != this->part_vals.end(); ++_iter1568) { - xfer += oprot->writeString((*_iter1541)); + xfer += oprot->writeString((*_iter1568)); } xfer += oprot->writeListEnd(); } @@ -21306,10 +21557,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 _iter1542; - for (_iter1542 = (*(this->part_vals)).begin(); _iter1542 != (*(this->part_vals)).end(); ++_iter1542) + std::vector ::const_iterator _iter1569; + for (_iter1569 = (*(this->part_vals)).begin(); _iter1569 != (*(this->part_vals)).end(); ++_iter1569) { - xfer += oprot->writeString((*_iter1542)); + xfer += oprot->writeString((*_iter1569)); } xfer += oprot->writeListEnd(); } @@ -21482,14 +21733,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 _size1543; - ::apache::thrift::protocol::TType _etype1546; - xfer += iprot->readListBegin(_etype1546, _size1543); - this->part_vals.resize(_size1543); - uint32_t _i1547; - for (_i1547 = 0; _i1547 < _size1543; ++_i1547) + uint32_t _size1570; + ::apache::thrift::protocol::TType _etype1573; + xfer += iprot->readListBegin(_etype1573, _size1570); + this->part_vals.resize(_size1570); + uint32_t _i1574; + for (_i1574 = 0; _i1574 < _size1570; ++_i1574) { - xfer += iprot->readString(this->part_vals[_i1547]); + xfer += iprot->readString(this->part_vals[_i1574]); } xfer += iprot->readListEnd(); } @@ -21526,10 +21777,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 _iter1548; - for (_iter1548 = this->part_vals.begin(); _iter1548 != this->part_vals.end(); ++_iter1548) + std::vector ::const_iterator _iter1575; + for (_iter1575 = this->part_vals.begin(); _iter1575 != this->part_vals.end(); ++_iter1575) { - xfer += oprot->writeString((*_iter1548)); + xfer += oprot->writeString((*_iter1575)); } xfer += oprot->writeListEnd(); } @@ -21557,10 +21808,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 _iter1549; - for (_iter1549 = (*(this->part_vals)).begin(); _iter1549 != (*(this->part_vals)).end(); ++_iter1549) + std::vector ::const_iterator _iter1576; + for (_iter1576 = (*(this->part_vals)).begin(); _iter1576 != (*(this->part_vals)).end(); ++_iter1576) { - xfer += oprot->writeString((*_iter1549)); + xfer += oprot->writeString((*_iter1576)); } xfer += oprot->writeListEnd(); } @@ -22035,14 +22286,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1550; - ::apache::thrift::protocol::TType _etype1553; - xfer += iprot->readListBegin(_etype1553, _size1550); - this->success.resize(_size1550); - uint32_t _i1554; - for (_i1554 = 0; _i1554 < _size1550; ++_i1554) + uint32_t _size1577; + ::apache::thrift::protocol::TType _etype1580; + xfer += iprot->readListBegin(_etype1580, _size1577); + this->success.resize(_size1577); + uint32_t _i1581; + for (_i1581 = 0; _i1581 < _size1577; ++_i1581) { - xfer += iprot->readString(this->success[_i1554]); + xfer += iprot->readString(this->success[_i1581]); } xfer += iprot->readListEnd(); } @@ -22081,10 +22332,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 _iter1555; - for (_iter1555 = this->success.begin(); _iter1555 != this->success.end(); ++_iter1555) + std::vector ::const_iterator _iter1582; + for (_iter1582 = this->success.begin(); _iter1582 != this->success.end(); ++_iter1582) { - xfer += oprot->writeString((*_iter1555)); + xfer += oprot->writeString((*_iter1582)); } xfer += oprot->writeListEnd(); } @@ -22129,14 +22380,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1556; - ::apache::thrift::protocol::TType _etype1559; - xfer += iprot->readListBegin(_etype1559, _size1556); - (*(this->success)).resize(_size1556); - uint32_t _i1560; - for (_i1560 = 0; _i1560 < _size1556; ++_i1560) + uint32_t _size1583; + ::apache::thrift::protocol::TType _etype1586; + xfer += iprot->readListBegin(_etype1586, _size1583); + (*(this->success)).resize(_size1583); + uint32_t _i1587; + for (_i1587 = 0; _i1587 < _size1583; ++_i1587) { - xfer += iprot->readString((*(this->success))[_i1560]); + xfer += iprot->readString((*(this->success))[_i1587]); } xfer += iprot->readListEnd(); } @@ -22274,17 +22525,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size1561; - ::apache::thrift::protocol::TType _ktype1562; - ::apache::thrift::protocol::TType _vtype1563; - xfer += iprot->readMapBegin(_ktype1562, _vtype1563, _size1561); - uint32_t _i1565; - for (_i1565 = 0; _i1565 < _size1561; ++_i1565) + uint32_t _size1588; + ::apache::thrift::protocol::TType _ktype1589; + ::apache::thrift::protocol::TType _vtype1590; + xfer += iprot->readMapBegin(_ktype1589, _vtype1590, _size1588); + uint32_t _i1592; + for (_i1592 = 0; _i1592 < _size1588; ++_i1592) { - std::string _key1566; - xfer += iprot->readString(_key1566); - std::string& _val1567 = this->success[_key1566]; - xfer += iprot->readString(_val1567); + std::string _key1593; + xfer += iprot->readString(_key1593); + std::string& _val1594 = this->success[_key1593]; + xfer += iprot->readString(_val1594); } xfer += iprot->readMapEnd(); } @@ -22323,11 +22574,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 _iter1568; - for (_iter1568 = this->success.begin(); _iter1568 != this->success.end(); ++_iter1568) + std::map ::const_iterator _iter1595; + for (_iter1595 = this->success.begin(); _iter1595 != this->success.end(); ++_iter1595) { - xfer += oprot->writeString(_iter1568->first); - xfer += oprot->writeString(_iter1568->second); + xfer += oprot->writeString(_iter1595->first); + xfer += oprot->writeString(_iter1595->second); } xfer += oprot->writeMapEnd(); } @@ -22372,17 +22623,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size1569; - ::apache::thrift::protocol::TType _ktype1570; - ::apache::thrift::protocol::TType _vtype1571; - xfer += iprot->readMapBegin(_ktype1570, _vtype1571, _size1569); - uint32_t _i1573; - for (_i1573 = 0; _i1573 < _size1569; ++_i1573) + uint32_t _size1596; + ::apache::thrift::protocol::TType _ktype1597; + ::apache::thrift::protocol::TType _vtype1598; + xfer += iprot->readMapBegin(_ktype1597, _vtype1598, _size1596); + uint32_t _i1600; + for (_i1600 = 0; _i1600 < _size1596; ++_i1600) { - std::string _key1574; - xfer += iprot->readString(_key1574); - std::string& _val1575 = (*(this->success))[_key1574]; - xfer += iprot->readString(_val1575); + std::string _key1601; + xfer += iprot->readString(_key1601); + std::string& _val1602 = (*(this->success))[_key1601]; + xfer += iprot->readString(_val1602); } xfer += iprot->readMapEnd(); } @@ -22457,17 +22708,17 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1576; - ::apache::thrift::protocol::TType _ktype1577; - ::apache::thrift::protocol::TType _vtype1578; - xfer += iprot->readMapBegin(_ktype1577, _vtype1578, _size1576); - uint32_t _i1580; - for (_i1580 = 0; _i1580 < _size1576; ++_i1580) + uint32_t _size1603; + ::apache::thrift::protocol::TType _ktype1604; + ::apache::thrift::protocol::TType _vtype1605; + xfer += iprot->readMapBegin(_ktype1604, _vtype1605, _size1603); + uint32_t _i1607; + for (_i1607 = 0; _i1607 < _size1603; ++_i1607) { - std::string _key1581; - xfer += iprot->readString(_key1581); - std::string& _val1582 = this->part_vals[_key1581]; - xfer += iprot->readString(_val1582); + std::string _key1608; + xfer += iprot->readString(_key1608); + std::string& _val1609 = this->part_vals[_key1608]; + xfer += iprot->readString(_val1609); } xfer += iprot->readMapEnd(); } @@ -22478,9 +22729,9 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1583; - xfer += iprot->readI32(ecast1583); - this->eventType = (PartitionEventType::type)ecast1583; + int32_t ecast1610; + xfer += iprot->readI32(ecast1610); + this->eventType = (PartitionEventType::type)ecast1610; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -22514,11 +22765,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 _iter1584; - for (_iter1584 = this->part_vals.begin(); _iter1584 != this->part_vals.end(); ++_iter1584) + std::map ::const_iterator _iter1611; + for (_iter1611 = this->part_vals.begin(); _iter1611 != this->part_vals.end(); ++_iter1611) { - xfer += oprot->writeString(_iter1584->first); - xfer += oprot->writeString(_iter1584->second); + xfer += oprot->writeString(_iter1611->first); + xfer += oprot->writeString(_iter1611->second); } xfer += oprot->writeMapEnd(); } @@ -22554,11 +22805,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 _iter1585; - for (_iter1585 = (*(this->part_vals)).begin(); _iter1585 != (*(this->part_vals)).end(); ++_iter1585) + std::map ::const_iterator _iter1612; + for (_iter1612 = (*(this->part_vals)).begin(); _iter1612 != (*(this->part_vals)).end(); ++_iter1612) { - xfer += oprot->writeString(_iter1585->first); - xfer += oprot->writeString(_iter1585->second); + xfer += oprot->writeString(_iter1612->first); + xfer += oprot->writeString(_iter1612->second); } xfer += oprot->writeMapEnd(); } @@ -22827,17 +23078,17 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1586; - ::apache::thrift::protocol::TType _ktype1587; - ::apache::thrift::protocol::TType _vtype1588; - xfer += iprot->readMapBegin(_ktype1587, _vtype1588, _size1586); - uint32_t _i1590; - for (_i1590 = 0; _i1590 < _size1586; ++_i1590) + uint32_t _size1613; + ::apache::thrift::protocol::TType _ktype1614; + ::apache::thrift::protocol::TType _vtype1615; + xfer += iprot->readMapBegin(_ktype1614, _vtype1615, _size1613); + uint32_t _i1617; + for (_i1617 = 0; _i1617 < _size1613; ++_i1617) { - std::string _key1591; - xfer += iprot->readString(_key1591); - std::string& _val1592 = this->part_vals[_key1591]; - xfer += iprot->readString(_val1592); + std::string _key1618; + xfer += iprot->readString(_key1618); + std::string& _val1619 = this->part_vals[_key1618]; + xfer += iprot->readString(_val1619); } xfer += iprot->readMapEnd(); } @@ -22848,9 +23099,9 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1593; - xfer += iprot->readI32(ecast1593); - this->eventType = (PartitionEventType::type)ecast1593; + int32_t ecast1620; + xfer += iprot->readI32(ecast1620); + this->eventType = (PartitionEventType::type)ecast1620; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -22884,11 +23135,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 _iter1594; - for (_iter1594 = this->part_vals.begin(); _iter1594 != this->part_vals.end(); ++_iter1594) + std::map ::const_iterator _iter1621; + for (_iter1621 = this->part_vals.begin(); _iter1621 != this->part_vals.end(); ++_iter1621) { - xfer += oprot->writeString(_iter1594->first); - xfer += oprot->writeString(_iter1594->second); + xfer += oprot->writeString(_iter1621->first); + xfer += oprot->writeString(_iter1621->second); } xfer += oprot->writeMapEnd(); } @@ -22924,11 +23175,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 _iter1595; - for (_iter1595 = (*(this->part_vals)).begin(); _iter1595 != (*(this->part_vals)).end(); ++_iter1595) + std::map ::const_iterator _iter1622; + for (_iter1622 = (*(this->part_vals)).begin(); _iter1622 != (*(this->part_vals)).end(); ++_iter1622) { - xfer += oprot->writeString(_iter1595->first); - xfer += oprot->writeString(_iter1595->second); + xfer += oprot->writeString(_iter1622->first); + xfer += oprot->writeString(_iter1622->second); } xfer += oprot->writeMapEnd(); } @@ -24364,14 +24615,14 @@ uint32_t ThriftHiveMetastore_get_indexes_result::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1596; - ::apache::thrift::protocol::TType _etype1599; - xfer += iprot->readListBegin(_etype1599, _size1596); - this->success.resize(_size1596); - uint32_t _i1600; - for (_i1600 = 0; _i1600 < _size1596; ++_i1600) + 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) { - xfer += this->success[_i1600].read(iprot); + xfer += this->success[_i1627].read(iprot); } xfer += iprot->readListEnd(); } @@ -24418,10 +24669,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 _iter1601; - for (_iter1601 = this->success.begin(); _iter1601 != this->success.end(); ++_iter1601) + std::vector ::const_iterator _iter1628; + for (_iter1628 = this->success.begin(); _iter1628 != this->success.end(); ++_iter1628) { - xfer += (*_iter1601).write(oprot); + xfer += (*_iter1628).write(oprot); } xfer += oprot->writeListEnd(); } @@ -24470,14 +24721,14 @@ uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1602; - ::apache::thrift::protocol::TType _etype1605; - xfer += iprot->readListBegin(_etype1605, _size1602); - (*(this->success)).resize(_size1602); - uint32_t _i1606; - for (_i1606 = 0; _i1606 < _size1602; ++_i1606) + uint32_t _size1629; + ::apache::thrift::protocol::TType _etype1632; + xfer += iprot->readListBegin(_etype1632, _size1629); + (*(this->success)).resize(_size1629); + uint32_t _i1633; + for (_i1633 = 0; _i1633 < _size1629; ++_i1633) { - xfer += (*(this->success))[_i1606].read(iprot); + xfer += (*(this->success))[_i1633].read(iprot); } xfer += iprot->readListEnd(); } @@ -24655,14 +24906,14 @@ uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1607; - ::apache::thrift::protocol::TType _etype1610; - xfer += iprot->readListBegin(_etype1610, _size1607); - this->success.resize(_size1607); - uint32_t _i1611; - for (_i1611 = 0; _i1611 < _size1607; ++_i1611) + 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) { - xfer += iprot->readString(this->success[_i1611]); + xfer += iprot->readString(this->success[_i1638]); } xfer += iprot->readListEnd(); } @@ -24701,10 +24952,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 _iter1612; - for (_iter1612 = this->success.begin(); _iter1612 != this->success.end(); ++_iter1612) + std::vector ::const_iterator _iter1639; + for (_iter1639 = this->success.begin(); _iter1639 != this->success.end(); ++_iter1639) { - xfer += oprot->writeString((*_iter1612)); + xfer += oprot->writeString((*_iter1639)); } xfer += oprot->writeListEnd(); } @@ -24749,14 +25000,14 @@ uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1613; - ::apache::thrift::protocol::TType _etype1616; - xfer += iprot->readListBegin(_etype1616, _size1613); - (*(this->success)).resize(_size1613); - uint32_t _i1617; - for (_i1617 = 0; _i1617 < _size1613; ++_i1617) + 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 += iprot->readString((*(this->success))[_i1617]); + xfer += iprot->readString((*(this->success))[_i1644]); } xfer += iprot->readListEnd(); } @@ -25694,11 +25945,11 @@ uint32_t ThriftHiveMetastore_get_not_null_constraints_presult::read(::apache::th } -ThriftHiveMetastore_update_table_column_statistics_args::~ThriftHiveMetastore_update_table_column_statistics_args() throw() { +ThriftHiveMetastore_get_default_constraints_args::~ThriftHiveMetastore_get_default_constraints_args() throw() { } -uint32_t ThriftHiveMetastore_update_table_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_default_constraints_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -25721,8 +25972,8 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_args::read(::apache: { case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->stats_obj.read(iprot); - this->__isset.stats_obj = true; + xfer += this->request.read(iprot); + this->__isset.request = true; } else { xfer += iprot->skip(ftype); } @@ -25739,13 +25990,13 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_args::read(::apache: return xfer; } -uint32_t ThriftHiveMetastore_update_table_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_default_constraints_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_table_column_statistics_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_default_constraints_args"); - xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->stats_obj.write(oprot); + xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->request.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -25754,17 +26005,17 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_args::write(::apache } -ThriftHiveMetastore_update_table_column_statistics_pargs::~ThriftHiveMetastore_update_table_column_statistics_pargs() throw() { +ThriftHiveMetastore_get_default_constraints_pargs::~ThriftHiveMetastore_get_default_constraints_pargs() throw() { } -uint32_t ThriftHiveMetastore_update_table_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_default_constraints_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_table_column_statistics_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_default_constraints_pargs"); - xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->stats_obj)).write(oprot); + xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->request)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -25773,11 +26024,11 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_pargs::write(::apach } -ThriftHiveMetastore_update_table_column_statistics_result::~ThriftHiveMetastore_update_table_column_statistics_result() throw() { +ThriftHiveMetastore_get_default_constraints_result::~ThriftHiveMetastore_get_default_constraints_result() throw() { } -uint32_t ThriftHiveMetastore_update_table_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_default_constraints_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -25799,8 +26050,8 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_result::read(::apach switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -25822,22 +26073,6 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_result::read(::apach 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; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o4.read(iprot); - this->__isset.o4 = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -25850,15 +26085,15 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_result::read(::apach return xfer; } -uint32_t ThriftHiveMetastore_update_table_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_default_constraints_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_table_column_statistics_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_default_constraints_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); @@ -25868,14 +26103,6 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_result::write(::apac 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(); - } else if (this->__isset.o4) { - xfer += oprot->writeFieldBegin("o4", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->o4.write(oprot); - xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -25883,11 +26110,11 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_result::write(::apac } -ThriftHiveMetastore_update_table_column_statistics_presult::~ThriftHiveMetastore_update_table_column_statistics_presult() throw() { +ThriftHiveMetastore_get_default_constraints_presult::~ThriftHiveMetastore_get_default_constraints_presult() throw() { } -uint32_t ThriftHiveMetastore_update_table_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_default_constraints_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -25909,8 +26136,8 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_presult::read(::apac switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -25932,22 +26159,6 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_presult::read(::apac 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; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o4.read(iprot); - this->__isset.o4 = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -25961,11 +26172,11 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_presult::read(::apac } -ThriftHiveMetastore_update_partition_column_statistics_args::~ThriftHiveMetastore_update_partition_column_statistics_args() throw() { +ThriftHiveMetastore_update_table_column_statistics_args::~ThriftHiveMetastore_update_table_column_statistics_args() throw() { } -uint32_t ThriftHiveMetastore_update_partition_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_update_table_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -26006,10 +26217,10 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_args::read(::apa return xfer; } -uint32_t ThriftHiveMetastore_update_partition_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_update_table_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_partition_column_statistics_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_table_column_statistics_args"); xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->stats_obj.write(oprot); @@ -26021,14 +26232,14 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_args::write(::ap } -ThriftHiveMetastore_update_partition_column_statistics_pargs::~ThriftHiveMetastore_update_partition_column_statistics_pargs() throw() { +ThriftHiveMetastore_update_table_column_statistics_pargs::~ThriftHiveMetastore_update_table_column_statistics_pargs() throw() { } -uint32_t ThriftHiveMetastore_update_partition_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_update_table_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_partition_column_statistics_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_table_column_statistics_pargs"); xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->stats_obj)).write(oprot); @@ -26040,11 +26251,11 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_pargs::write(::a } -ThriftHiveMetastore_update_partition_column_statistics_result::~ThriftHiveMetastore_update_partition_column_statistics_result() throw() { +ThriftHiveMetastore_update_table_column_statistics_result::~ThriftHiveMetastore_update_table_column_statistics_result() throw() { } -uint32_t ThriftHiveMetastore_update_partition_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_update_table_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -26117,11 +26328,11 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_result::read(::a return xfer; } -uint32_t ThriftHiveMetastore_update_partition_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_update_table_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_partition_column_statistics_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_table_column_statistics_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); @@ -26150,11 +26361,11 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_result::write(:: } -ThriftHiveMetastore_update_partition_column_statistics_presult::~ThriftHiveMetastore_update_partition_column_statistics_presult() throw() { +ThriftHiveMetastore_update_table_column_statistics_presult::~ThriftHiveMetastore_update_table_column_statistics_presult() throw() { } -uint32_t ThriftHiveMetastore_update_partition_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_update_table_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -26228,11 +26439,11 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_presult::read(:: } -ThriftHiveMetastore_get_table_column_statistics_args::~ThriftHiveMetastore_get_table_column_statistics_args() throw() { +ThriftHiveMetastore_update_partition_column_statistics_args::~ThriftHiveMetastore_update_partition_column_statistics_args() throw() { } -uint32_t ThriftHiveMetastore_get_table_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_update_partition_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -26254,25 +26465,9 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_args::read(::apache::th 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->tbl_name); - this->__isset.tbl_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->col_name); - this->__isset.col_name = true; + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->stats_obj.read(iprot); + this->__isset.stats_obj = true; } else { xfer += iprot->skip(ftype); } @@ -26289,21 +26484,13 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_args::read(::apache::th return xfer; } -uint32_t ThriftHiveMetastore_get_table_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_update_partition_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_column_statistics_args"); - - xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->db_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->tbl_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_partition_column_statistics_args"); - xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->col_name); + xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->stats_obj.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -26312,25 +26499,17 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_args::write(::apache::t } -ThriftHiveMetastore_get_table_column_statistics_pargs::~ThriftHiveMetastore_get_table_column_statistics_pargs() throw() { +ThriftHiveMetastore_update_partition_column_statistics_pargs::~ThriftHiveMetastore_update_partition_column_statistics_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_table_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_update_partition_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_column_statistics_pargs"); - - xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->db_name))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->tbl_name))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_partition_column_statistics_pargs"); - xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString((*(this->col_name))); + xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->stats_obj)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -26339,11 +26518,11 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_pargs::write(::apache:: } -ThriftHiveMetastore_get_table_column_statistics_result::~ThriftHiveMetastore_get_table_column_statistics_result() throw() { +ThriftHiveMetastore_update_partition_column_statistics_result::~ThriftHiveMetastore_update_partition_column_statistics_result() throw() { } -uint32_t ThriftHiveMetastore_get_table_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_update_partition_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -26365,8 +26544,8 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_result::read(::apache:: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -26416,15 +26595,314 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_result::read(::apache:: return xfer; } -uint32_t ThriftHiveMetastore_get_table_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_update_partition_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_column_statistics_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_partition_column_statistics_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); + 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(); + } else if (this->__isset.o4) { + xfer += oprot->writeFieldBegin("o4", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->o4.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_update_partition_column_statistics_presult::~ThriftHiveMetastore_update_partition_column_statistics_presult() throw() { +} + + +uint32_t ThriftHiveMetastore_update_partition_column_statistics_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_BOOL) { + xfer += iprot->readBool((*(this->success))); + 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; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o4.read(iprot); + this->__isset.o4 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + + +ThriftHiveMetastore_get_table_column_statistics_args::~ThriftHiveMetastore_get_table_column_statistics_args() throw() { +} + + +uint32_t ThriftHiveMetastore_get_table_column_statistics_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; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->tbl_name); + this->__isset.tbl_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->col_name); + this->__isset.col_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_table_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_column_statistics_args"); + + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->db_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->tbl_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->col_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_get_table_column_statistics_pargs::~ThriftHiveMetastore_get_table_column_statistics_pargs() throw() { +} + + +uint32_t ThriftHiveMetastore_get_table_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_column_statistics_pargs"); + + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->db_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->tbl_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString((*(this->col_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_get_table_column_statistics_result::~ThriftHiveMetastore_get_table_column_statistics_result() throw() { +} + + +uint32_t ThriftHiveMetastore_get_table_column_statistics_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; + 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; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o4.read(iprot); + this->__isset.o4 = 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_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_column_statistics_result"); + + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); @@ -29237,14 +29715,14 @@ uint32_t ThriftHiveMetastore_get_functions_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1618; - ::apache::thrift::protocol::TType _etype1621; - xfer += iprot->readListBegin(_etype1621, _size1618); - this->success.resize(_size1618); - uint32_t _i1622; - for (_i1622 = 0; _i1622 < _size1618; ++_i1622) + 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) { - xfer += iprot->readString(this->success[_i1622]); + xfer += iprot->readString(this->success[_i1649]); } xfer += iprot->readListEnd(); } @@ -29283,10 +29761,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 _iter1623; - for (_iter1623 = this->success.begin(); _iter1623 != this->success.end(); ++_iter1623) + std::vector ::const_iterator _iter1650; + for (_iter1650 = this->success.begin(); _iter1650 != this->success.end(); ++_iter1650) { - xfer += oprot->writeString((*_iter1623)); + xfer += oprot->writeString((*_iter1650)); } xfer += oprot->writeListEnd(); } @@ -29331,14 +29809,14 @@ uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1624; - ::apache::thrift::protocol::TType _etype1627; - xfer += iprot->readListBegin(_etype1627, _size1624); - (*(this->success)).resize(_size1624); - uint32_t _i1628; - for (_i1628 = 0; _i1628 < _size1624; ++_i1628) + uint32_t _size1651; + ::apache::thrift::protocol::TType _etype1654; + xfer += iprot->readListBegin(_etype1654, _size1651); + (*(this->success)).resize(_size1651); + uint32_t _i1655; + for (_i1655 = 0; _i1655 < _size1651; ++_i1655) { - xfer += iprot->readString((*(this->success))[_i1628]); + xfer += iprot->readString((*(this->success))[_i1655]); } xfer += iprot->readListEnd(); } @@ -30298,14 +30776,14 @@ uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1629; - ::apache::thrift::protocol::TType _etype1632; - xfer += iprot->readListBegin(_etype1632, _size1629); - this->success.resize(_size1629); - uint32_t _i1633; - for (_i1633 = 0; _i1633 < _size1629; ++_i1633) + uint32_t _size1656; + ::apache::thrift::protocol::TType _etype1659; + xfer += iprot->readListBegin(_etype1659, _size1656); + this->success.resize(_size1656); + uint32_t _i1660; + for (_i1660 = 0; _i1660 < _size1656; ++_i1660) { - xfer += iprot->readString(this->success[_i1633]); + xfer += iprot->readString(this->success[_i1660]); } xfer += iprot->readListEnd(); } @@ -30344,10 +30822,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 _iter1634; - for (_iter1634 = this->success.begin(); _iter1634 != this->success.end(); ++_iter1634) + std::vector ::const_iterator _iter1661; + for (_iter1661 = this->success.begin(); _iter1661 != this->success.end(); ++_iter1661) { - xfer += oprot->writeString((*_iter1634)); + xfer += oprot->writeString((*_iter1661)); } xfer += oprot->writeListEnd(); } @@ -30392,14 +30870,14 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1635; - ::apache::thrift::protocol::TType _etype1638; - xfer += iprot->readListBegin(_etype1638, _size1635); - (*(this->success)).resize(_size1635); - uint32_t _i1639; - for (_i1639 = 0; _i1639 < _size1635; ++_i1639) + uint32_t _size1662; + ::apache::thrift::protocol::TType _etype1665; + xfer += iprot->readListBegin(_etype1665, _size1662); + (*(this->success)).resize(_size1662); + uint32_t _i1666; + for (_i1666 = 0; _i1666 < _size1662; ++_i1666) { - xfer += iprot->readString((*(this->success))[_i1639]); + xfer += iprot->readString((*(this->success))[_i1666]); } xfer += iprot->readListEnd(); } @@ -30472,9 +30950,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1640; - xfer += iprot->readI32(ecast1640); - this->principal_type = (PrincipalType::type)ecast1640; + int32_t ecast1667; + xfer += iprot->readI32(ecast1667); + this->principal_type = (PrincipalType::type)ecast1667; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -30490,9 +30968,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1641; - xfer += iprot->readI32(ecast1641); - this->grantorType = (PrincipalType::type)ecast1641; + int32_t ecast1668; + xfer += iprot->readI32(ecast1668); + this->grantorType = (PrincipalType::type)ecast1668; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -30763,9 +31241,9 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol:: break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1642; - xfer += iprot->readI32(ecast1642); - this->principal_type = (PrincipalType::type)ecast1642; + int32_t ecast1669; + xfer += iprot->readI32(ecast1669); + this->principal_type = (PrincipalType::type)ecast1669; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -30996,9 +31474,9 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1643; - xfer += iprot->readI32(ecast1643); - this->principal_type = (PrincipalType::type)ecast1643; + int32_t ecast1670; + xfer += iprot->readI32(ecast1670); + this->principal_type = (PrincipalType::type)ecast1670; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -31087,14 +31565,14 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1644; - ::apache::thrift::protocol::TType _etype1647; - xfer += iprot->readListBegin(_etype1647, _size1644); - this->success.resize(_size1644); - uint32_t _i1648; - for (_i1648 = 0; _i1648 < _size1644; ++_i1648) + uint32_t _size1671; + ::apache::thrift::protocol::TType _etype1674; + xfer += iprot->readListBegin(_etype1674, _size1671); + this->success.resize(_size1671); + uint32_t _i1675; + for (_i1675 = 0; _i1675 < _size1671; ++_i1675) { - xfer += this->success[_i1648].read(iprot); + xfer += this->success[_i1675].read(iprot); } xfer += iprot->readListEnd(); } @@ -31133,10 +31611,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 _iter1649; - for (_iter1649 = this->success.begin(); _iter1649 != this->success.end(); ++_iter1649) + std::vector ::const_iterator _iter1676; + for (_iter1676 = this->success.begin(); _iter1676 != this->success.end(); ++_iter1676) { - xfer += (*_iter1649).write(oprot); + xfer += (*_iter1676).write(oprot); } xfer += oprot->writeListEnd(); } @@ -31181,14 +31659,14 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1650; - ::apache::thrift::protocol::TType _etype1653; - xfer += iprot->readListBegin(_etype1653, _size1650); - (*(this->success)).resize(_size1650); - uint32_t _i1654; - for (_i1654 = 0; _i1654 < _size1650; ++_i1654) + 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 += (*(this->success))[_i1654].read(iprot); + xfer += (*(this->success))[_i1681].read(iprot); } xfer += iprot->readListEnd(); } @@ -31884,14 +32362,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 _size1655; - ::apache::thrift::protocol::TType _etype1658; - xfer += iprot->readListBegin(_etype1658, _size1655); - this->group_names.resize(_size1655); - uint32_t _i1659; - for (_i1659 = 0; _i1659 < _size1655; ++_i1659) + uint32_t _size1682; + ::apache::thrift::protocol::TType _etype1685; + xfer += iprot->readListBegin(_etype1685, _size1682); + this->group_names.resize(_size1682); + uint32_t _i1686; + for (_i1686 = 0; _i1686 < _size1682; ++_i1686) { - xfer += iprot->readString(this->group_names[_i1659]); + xfer += iprot->readString(this->group_names[_i1686]); } xfer += iprot->readListEnd(); } @@ -31928,10 +32406,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 _iter1660; - for (_iter1660 = this->group_names.begin(); _iter1660 != this->group_names.end(); ++_iter1660) + std::vector ::const_iterator _iter1687; + for (_iter1687 = this->group_names.begin(); _iter1687 != this->group_names.end(); ++_iter1687) { - xfer += oprot->writeString((*_iter1660)); + xfer += oprot->writeString((*_iter1687)); } xfer += oprot->writeListEnd(); } @@ -31963,10 +32441,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 _iter1661; - for (_iter1661 = (*(this->group_names)).begin(); _iter1661 != (*(this->group_names)).end(); ++_iter1661) + std::vector ::const_iterator _iter1688; + for (_iter1688 = (*(this->group_names)).begin(); _iter1688 != (*(this->group_names)).end(); ++_iter1688) { - xfer += oprot->writeString((*_iter1661)); + xfer += oprot->writeString((*_iter1688)); } xfer += oprot->writeListEnd(); } @@ -32141,9 +32619,9 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1662; - xfer += iprot->readI32(ecast1662); - this->principal_type = (PrincipalType::type)ecast1662; + int32_t ecast1689; + xfer += iprot->readI32(ecast1689); + this->principal_type = (PrincipalType::type)ecast1689; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -32248,14 +32726,14 @@ uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1663; - ::apache::thrift::protocol::TType _etype1666; - xfer += iprot->readListBegin(_etype1666, _size1663); - this->success.resize(_size1663); - uint32_t _i1667; - for (_i1667 = 0; _i1667 < _size1663; ++_i1667) + uint32_t _size1690; + ::apache::thrift::protocol::TType _etype1693; + xfer += iprot->readListBegin(_etype1693, _size1690); + this->success.resize(_size1690); + uint32_t _i1694; + for (_i1694 = 0; _i1694 < _size1690; ++_i1694) { - xfer += this->success[_i1667].read(iprot); + xfer += this->success[_i1694].read(iprot); } xfer += iprot->readListEnd(); } @@ -32294,10 +32772,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 _iter1668; - for (_iter1668 = this->success.begin(); _iter1668 != this->success.end(); ++_iter1668) + std::vector ::const_iterator _iter1695; + for (_iter1695 = this->success.begin(); _iter1695 != this->success.end(); ++_iter1695) { - xfer += (*_iter1668).write(oprot); + xfer += (*_iter1695).write(oprot); } xfer += oprot->writeListEnd(); } @@ -32342,14 +32820,14 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1669; - ::apache::thrift::protocol::TType _etype1672; - xfer += iprot->readListBegin(_etype1672, _size1669); - (*(this->success)).resize(_size1669); - uint32_t _i1673; - for (_i1673 = 0; _i1673 < _size1669; ++_i1673) + uint32_t _size1696; + ::apache::thrift::protocol::TType _etype1699; + xfer += iprot->readListBegin(_etype1699, _size1696); + (*(this->success)).resize(_size1696); + uint32_t _i1700; + for (_i1700 = 0; _i1700 < _size1696; ++_i1700) { - xfer += (*(this->success))[_i1673].read(iprot); + xfer += (*(this->success))[_i1700].read(iprot); } xfer += iprot->readListEnd(); } @@ -33037,14 +33515,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 _size1674; - ::apache::thrift::protocol::TType _etype1677; - xfer += iprot->readListBegin(_etype1677, _size1674); - this->group_names.resize(_size1674); - uint32_t _i1678; - for (_i1678 = 0; _i1678 < _size1674; ++_i1678) + uint32_t _size1701; + ::apache::thrift::protocol::TType _etype1704; + xfer += iprot->readListBegin(_etype1704, _size1701); + this->group_names.resize(_size1701); + uint32_t _i1705; + for (_i1705 = 0; _i1705 < _size1701; ++_i1705) { - xfer += iprot->readString(this->group_names[_i1678]); + xfer += iprot->readString(this->group_names[_i1705]); } xfer += iprot->readListEnd(); } @@ -33077,10 +33555,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 _iter1679; - for (_iter1679 = this->group_names.begin(); _iter1679 != this->group_names.end(); ++_iter1679) + std::vector ::const_iterator _iter1706; + for (_iter1706 = this->group_names.begin(); _iter1706 != this->group_names.end(); ++_iter1706) { - xfer += oprot->writeString((*_iter1679)); + xfer += oprot->writeString((*_iter1706)); } xfer += oprot->writeListEnd(); } @@ -33108,10 +33586,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 _iter1680; - for (_iter1680 = (*(this->group_names)).begin(); _iter1680 != (*(this->group_names)).end(); ++_iter1680) + std::vector ::const_iterator _iter1707; + for (_iter1707 = (*(this->group_names)).begin(); _iter1707 != (*(this->group_names)).end(); ++_iter1707) { - xfer += oprot->writeString((*_iter1680)); + xfer += oprot->writeString((*_iter1707)); } xfer += oprot->writeListEnd(); } @@ -33152,14 +33630,14 @@ uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TP if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1681; - ::apache::thrift::protocol::TType _etype1684; - xfer += iprot->readListBegin(_etype1684, _size1681); - this->success.resize(_size1681); - uint32_t _i1685; - for (_i1685 = 0; _i1685 < _size1681; ++_i1685) + uint32_t _size1708; + ::apache::thrift::protocol::TType _etype1711; + xfer += iprot->readListBegin(_etype1711, _size1708); + this->success.resize(_size1708); + uint32_t _i1712; + for (_i1712 = 0; _i1712 < _size1708; ++_i1712) { - xfer += iprot->readString(this->success[_i1685]); + xfer += iprot->readString(this->success[_i1712]); } xfer += iprot->readListEnd(); } @@ -33198,10 +33676,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 _iter1686; - for (_iter1686 = this->success.begin(); _iter1686 != this->success.end(); ++_iter1686) + std::vector ::const_iterator _iter1713; + for (_iter1713 = this->success.begin(); _iter1713 != this->success.end(); ++_iter1713) { - xfer += oprot->writeString((*_iter1686)); + xfer += oprot->writeString((*_iter1713)); } xfer += oprot->writeListEnd(); } @@ -33246,14 +33724,14 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1687; - ::apache::thrift::protocol::TType _etype1690; - xfer += iprot->readListBegin(_etype1690, _size1687); - (*(this->success)).resize(_size1687); - uint32_t _i1691; - for (_i1691 = 0; _i1691 < _size1687; ++_i1691) + uint32_t _size1714; + ::apache::thrift::protocol::TType _etype1717; + xfer += iprot->readListBegin(_etype1717, _size1714); + (*(this->success)).resize(_size1714); + uint32_t _i1718; + for (_i1718 = 0; _i1718 < _size1714; ++_i1718) { - xfer += iprot->readString((*(this->success))[_i1691]); + xfer += iprot->readString((*(this->success))[_i1718]); } xfer += iprot->readListEnd(); } @@ -34564,14 +35042,14 @@ uint32_t ThriftHiveMetastore_get_all_token_identifiers_result::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1692; - ::apache::thrift::protocol::TType _etype1695; - xfer += iprot->readListBegin(_etype1695, _size1692); - this->success.resize(_size1692); - uint32_t _i1696; - for (_i1696 = 0; _i1696 < _size1692; ++_i1696) + uint32_t _size1719; + ::apache::thrift::protocol::TType _etype1722; + xfer += iprot->readListBegin(_etype1722, _size1719); + this->success.resize(_size1719); + uint32_t _i1723; + for (_i1723 = 0; _i1723 < _size1719; ++_i1723) { - xfer += iprot->readString(this->success[_i1696]); + xfer += iprot->readString(this->success[_i1723]); } xfer += iprot->readListEnd(); } @@ -34602,10 +35080,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 _iter1697; - for (_iter1697 = this->success.begin(); _iter1697 != this->success.end(); ++_iter1697) + std::vector ::const_iterator _iter1724; + for (_iter1724 = this->success.begin(); _iter1724 != this->success.end(); ++_iter1724) { - xfer += oprot->writeString((*_iter1697)); + xfer += oprot->writeString((*_iter1724)); } xfer += oprot->writeListEnd(); } @@ -34646,14 +35124,14 @@ uint32_t ThriftHiveMetastore_get_all_token_identifiers_presult::read(::apache::t if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1698; - ::apache::thrift::protocol::TType _etype1701; - xfer += iprot->readListBegin(_etype1701, _size1698); - (*(this->success)).resize(_size1698); - uint32_t _i1702; - for (_i1702 = 0; _i1702 < _size1698; ++_i1702) + uint32_t _size1725; + ::apache::thrift::protocol::TType _etype1728; + xfer += iprot->readListBegin(_etype1728, _size1725); + (*(this->success)).resize(_size1725); + uint32_t _i1729; + for (_i1729 = 0; _i1729 < _size1725; ++_i1729) { - xfer += iprot->readString((*(this->success))[_i1702]); + xfer += iprot->readString((*(this->success))[_i1729]); } xfer += iprot->readListEnd(); } @@ -35379,14 +35857,14 @@ uint32_t ThriftHiveMetastore_get_master_keys_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1703; - ::apache::thrift::protocol::TType _etype1706; - xfer += iprot->readListBegin(_etype1706, _size1703); - this->success.resize(_size1703); - uint32_t _i1707; - for (_i1707 = 0; _i1707 < _size1703; ++_i1707) + uint32_t _size1730; + ::apache::thrift::protocol::TType _etype1733; + xfer += iprot->readListBegin(_etype1733, _size1730); + this->success.resize(_size1730); + uint32_t _i1734; + for (_i1734 = 0; _i1734 < _size1730; ++_i1734) { - xfer += iprot->readString(this->success[_i1707]); + xfer += iprot->readString(this->success[_i1734]); } xfer += iprot->readListEnd(); } @@ -35417,10 +35895,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 _iter1708; - for (_iter1708 = this->success.begin(); _iter1708 != this->success.end(); ++_iter1708) + std::vector ::const_iterator _iter1735; + for (_iter1735 = this->success.begin(); _iter1735 != this->success.end(); ++_iter1735) { - xfer += oprot->writeString((*_iter1708)); + xfer += oprot->writeString((*_iter1735)); } xfer += oprot->writeListEnd(); } @@ -35461,14 +35939,14 @@ uint32_t ThriftHiveMetastore_get_master_keys_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1709; - ::apache::thrift::protocol::TType _etype1712; - xfer += iprot->readListBegin(_etype1712, _size1709); - (*(this->success)).resize(_size1709); - uint32_t _i1713; - for (_i1713 = 0; _i1713 < _size1709; ++_i1713) + uint32_t _size1736; + ::apache::thrift::protocol::TType _etype1739; + xfer += iprot->readListBegin(_etype1739, _size1736); + (*(this->success)).resize(_size1736); + uint32_t _i1740; + for (_i1740 = 0; _i1740 < _size1736; ++_i1740) { - xfer += iprot->readString((*(this->success))[_i1713]); + xfer += iprot->readString((*(this->success))[_i1740]); } xfer += iprot->readListEnd(); } @@ -46107,13 +46585,13 @@ void ThriftHiveMetastoreClient::recv_create_table_with_environment_context() return; } -void ThriftHiveMetastoreClient::create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints) +void ThriftHiveMetastoreClient::create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints, const std::vector & defaultConstraints) { - send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints); + send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints); recv_create_table_with_constraints(); } -void ThriftHiveMetastoreClient::send_create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints) +void ThriftHiveMetastoreClient::send_create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints, const std::vector & defaultConstraints) { int32_t cseqid = 0; oprot_->writeMessageBegin("create_table_with_constraints", ::apache::thrift::protocol::T_CALL, cseqid); @@ -46124,6 +46602,7 @@ void ThriftHiveMetastoreClient::send_create_table_with_constraints(const Table& args.foreignKeys = &foreignKeys; args.uniqueConstraints = &uniqueConstraints; args.notNullConstraints = ¬NullConstraints; + args.defaultConstraints = &defaultConstraints; args.write(oprot_); oprot_->writeMessageEnd(); @@ -46471,6 +46950,65 @@ void ThriftHiveMetastoreClient::recv_add_not_null_constraint() return; } +void ThriftHiveMetastoreClient::add_default_constraint(const AddDefaultConstraintRequest& req) +{ + send_add_default_constraint(req); + recv_add_default_constraint(); +} + +void ThriftHiveMetastoreClient::send_add_default_constraint(const AddDefaultConstraintRequest& req) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("add_default_constraint", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_add_default_constraint_pargs args; + args.req = &req; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void ThriftHiveMetastoreClient::recv_add_default_constraint() +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + iprot_->readMessageBegin(fname, mtype, rseqid); + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("add_default_constraint") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_add_default_constraint_presult result; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.o1) { + throw result.o1; + } + if (result.__isset.o2) { + throw result.o2; + } + return; +} + void ThriftHiveMetastoreClient::drop_table(const std::string& dbname, const std::string& name, const bool deleteData) { send_drop_table(dbname, name, deleteData); @@ -51117,6 +51655,70 @@ void ThriftHiveMetastoreClient::recv_get_not_null_constraints(NotNullConstraints throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_not_null_constraints failed: unknown result"); } +void ThriftHiveMetastoreClient::get_default_constraints(DefaultConstraintsResponse& _return, const DefaultConstraintsRequest& request) +{ + send_get_default_constraints(request); + recv_get_default_constraints(_return); +} + +void ThriftHiveMetastoreClient::send_get_default_constraints(const DefaultConstraintsRequest& request) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("get_default_constraints", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_default_constraints_pargs args; + args.request = &request; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void ThriftHiveMetastoreClient::recv_get_default_constraints(DefaultConstraintsResponse& _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_default_constraints") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_get_default_constraints_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; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_default_constraints failed: unknown result"); +} + bool ThriftHiveMetastoreClient::update_table_column_statistics(const ColumnStatistics& stats_obj) { send_update_table_column_statistics(stats_obj); @@ -57647,7 +58249,7 @@ void ThriftHiveMetastoreProcessor::process_create_table_with_constraints(int32_t ThriftHiveMetastore_create_table_with_constraints_result result; try { - iface_->create_table_with_constraints(args.tbl, args.primaryKeys, args.foreignKeys, args.uniqueConstraints, args.notNullConstraints); + iface_->create_table_with_constraints(args.tbl, args.primaryKeys, args.foreignKeys, args.uniqueConstraints, args.notNullConstraints, args.defaultConstraints); } catch (AlreadyExistsException &o1) { result.o1 = o1; result.__isset.o1 = true; @@ -57984,6 +58586,65 @@ void ThriftHiveMetastoreProcessor::process_add_not_null_constraint(int32_t seqid } } +void ThriftHiveMetastoreProcessor::process_add_default_constraint(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +{ + void* ctx = NULL; + if (this->eventHandler_.get() != NULL) { + ctx = this->eventHandler_->getContext("ThriftHiveMetastore.add_default_constraint", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.add_default_constraint"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.add_default_constraint"); + } + + ThriftHiveMetastore_add_default_constraint_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.add_default_constraint", bytes); + } + + ThriftHiveMetastore_add_default_constraint_result result; + try { + iface_->add_default_constraint(args.req); + } catch (NoSuchObjectException &o1) { + result.o1 = o1; + result.__isset.o1 = true; + } catch (MetaException &o2) { + result.o2 = o2; + result.__isset.o2 = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->handlerError(ctx, "ThriftHiveMetastore.add_default_constraint"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("add_default_constraint", ::apache::thrift::protocol::T_EXCEPTION, seqid); + x.write(oprot); + oprot->writeMessageEnd(); + oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + return; + } + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preWrite(ctx, "ThriftHiveMetastore.add_default_constraint"); + } + + oprot->writeMessageBegin("add_default_constraint", ::apache::thrift::protocol::T_REPLY, seqid); + result.write(oprot); + oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postWrite(ctx, "ThriftHiveMetastore.add_default_constraint", bytes); + } +} + void ThriftHiveMetastoreProcessor::process_drop_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; @@ -62269,6 +62930,66 @@ void ThriftHiveMetastoreProcessor::process_get_not_null_constraints(int32_t seqi } } +void ThriftHiveMetastoreProcessor::process_get_default_constraints(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_default_constraints", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.get_default_constraints"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_default_constraints"); + } + + ThriftHiveMetastore_get_default_constraints_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_default_constraints", bytes); + } + + ThriftHiveMetastore_get_default_constraints_result result; + try { + iface_->get_default_constraints(result.success, args.request); + result.__isset.success = true; + } catch (MetaException &o1) { + result.o1 = o1; + result.__isset.o1 = true; + } catch (NoSuchObjectException &o2) { + result.o2 = o2; + result.__isset.o2 = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_default_constraints"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("get_default_constraints", ::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_default_constraints"); + } + + oprot->writeMessageBegin("get_default_constraints", ::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_default_constraints", bytes); + } +} + void ThriftHiveMetastoreProcessor::process_update_table_column_statistics(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; @@ -67677,7 +68398,191 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_database(Database& _return, c iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_database") != 0) { + if (fname.compare("get_database") != 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_database_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; + } + // in a bad state, don't commit + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_database 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::drop_database(const std::string& name, const bool deleteData, const bool cascade) +{ + int32_t seqid = send_drop_database(name, deleteData, cascade); + recv_drop_database(seqid); +} + +int32_t ThriftHiveMetastoreConcurrentClient::send_drop_database(const std::string& name, const bool deleteData, const bool cascade) +{ + int32_t cseqid = this->sync_.generateSeqId(); + ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); + oprot_->writeMessageBegin("drop_database", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_drop_database_pargs args; + args.name = &name; + args.deleteData = &deleteData; + args.cascade = &cascade; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); + + sentry.commit(); + return cseqid; +} + +void ThriftHiveMetastoreConcurrentClient::recv_drop_database(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_database") != 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_database_presult result; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.o1) { + sentry.commit(); + throw result.o1; + } + if (result.__isset.o2) { + sentry.commit(); + throw result.o2; + } + 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::get_databases(std::vector & _return, const std::string& pattern) +{ + int32_t seqid = send_get_databases(pattern); + recv_get_databases(_return, seqid); +} + +int32_t ThriftHiveMetastoreConcurrentClient::send_get_databases(const std::string& pattern) +{ + int32_t cseqid = this->sync_.generateSeqId(); + ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); + oprot_->writeMessageBegin("get_databases", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_databases_pargs args; + args.pattern = &pattern; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); + + sentry.commit(); + return cseqid; +} + +void ThriftHiveMetastoreConcurrentClient::recv_get_databases(std::vector & _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_databases") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -67686,7 +68591,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_database(Database& _return, c using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_database_presult result; + ThriftHiveMetastore_get_databases_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -67701,104 +68606,8 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_database(Database& _return, c sentry.commit(); throw result.o1; } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_database 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::drop_database(const std::string& name, const bool deleteData, const bool cascade) -{ - int32_t seqid = send_drop_database(name, deleteData, cascade); - recv_drop_database(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_drop_database(const std::string& name, const bool deleteData, const bool cascade) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("drop_database", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_drop_database_pargs args; - args.name = &name; - args.deleteData = &deleteData; - args.cascade = &cascade; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_drop_database(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_database") != 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_database_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - sentry.commit(); - return; + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_databases failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -67808,20 +68617,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_drop_database(const int32_t seqid } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_databases(std::vector & _return, const std::string& pattern) +void ThriftHiveMetastoreConcurrentClient::get_all_databases(std::vector & _return) { - int32_t seqid = send_get_databases(pattern); - recv_get_databases(_return, seqid); + int32_t seqid = send_get_all_databases(); + recv_get_all_databases(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_databases(const std::string& pattern) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_all_databases() { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_databases", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_all_databases", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_databases_pargs args; - args.pattern = &pattern; + ThriftHiveMetastore_get_all_databases_pargs args; args.write(oprot_); oprot_->writeMessageEnd(); @@ -67832,7 +68640,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_databases(const std::strin return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_databases(std::vector & _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_all_databases(std::vector & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -67861,7 +68669,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_databases(std::vectorreadMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_databases") != 0) { + if (fname.compare("get_all_databases") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -67870,7 +68678,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_databases(std::vectorreadMessageEnd(); @@ -67886,7 +68694,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_databases(std::vectorsync_.updatePending(fname, mtype, rseqid); @@ -67896,19 +68704,21 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_databases(std::vector & _return) +void ThriftHiveMetastoreConcurrentClient::alter_database(const std::string& dbname, const Database& db) { - int32_t seqid = send_get_all_databases(); - recv_get_all_databases(_return, seqid); + int32_t seqid = send_alter_database(dbname, db); + recv_alter_database(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_all_databases() +int32_t ThriftHiveMetastoreConcurrentClient::send_alter_database(const std::string& dbname, const Database& db) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_all_databases", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("alter_database", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_all_databases_pargs args; + ThriftHiveMetastore_alter_database_pargs args; + args.dbname = &dbname; + args.db = &db; args.write(oprot_); oprot_->writeMessageEnd(); @@ -67919,7 +68729,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_all_databases() return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_all_databases(std::vector & _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_alter_database(const int32_t seqid) { int32_t rseqid = 0; @@ -67948,7 +68758,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_all_databases(std::vectorreadMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_all_databases") != 0) { + if (fname.compare("alter_database") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -67957,23 +68767,21 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_all_databases(std::vectorreadMessageEnd(); iprot_->getTransport()->readEnd(); - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } if (result.__isset.o1) { sentry.commit(); throw result.o1; } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_all_databases failed: unknown result"); + if (result.__isset.o2) { + sentry.commit(); + throw result.o2; + } + sentry.commit(); + return; } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -67983,21 +68791,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_all_databases(std::vectorsync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("alter_database", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_type", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_alter_database_pargs args; - args.dbname = &dbname; - args.db = &db; + ThriftHiveMetastore_get_type_pargs args; + args.name = &name; args.write(oprot_); oprot_->writeMessageEnd(); @@ -68008,7 +68815,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_alter_database(const std::stri return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_alter_database(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_type(Type& _return, const int32_t seqid) { int32_t rseqid = 0; @@ -68037,7 +68844,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_alter_database(const int32_t seqi iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("alter_database") != 0) { + if (fname.compare("get_type") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -68046,11 +68853,17 @@ void ThriftHiveMetastoreConcurrentClient::recv_alter_database(const int32_t seqi using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_alter_database_presult result; + ThriftHiveMetastore_get_type_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; @@ -68059,8 +68872,8 @@ void ThriftHiveMetastoreConcurrentClient::recv_alter_database(const int32_t seqi sentry.commit(); throw result.o2; } - sentry.commit(); - return; + // in a bad state, don't commit + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_type failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -68070,20 +68883,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_alter_database(const int32_t seqi } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_type(Type& _return, const std::string& name) +bool ThriftHiveMetastoreConcurrentClient::create_type(const Type& type) { - int32_t seqid = send_get_type(name); - recv_get_type(_return, seqid); + int32_t seqid = send_create_type(type); + return recv_create_type(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_type(const std::string& name) +int32_t ThriftHiveMetastoreConcurrentClient::send_create_type(const Type& type) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_type", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("create_type", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_type_pargs args; - args.name = &name; + ThriftHiveMetastore_create_type_pargs args; + args.type = &type; args.write(oprot_); oprot_->writeMessageEnd(); @@ -68094,7 +68907,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_type(const std::string& na return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_type(Type& _return, const int32_t seqid) +bool ThriftHiveMetastoreConcurrentClient::recv_create_type(const int32_t seqid) { int32_t rseqid = 0; @@ -68123,7 +68936,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type(Type& _return, const int iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_type") != 0) { + if (fname.compare("create_type") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -68132,16 +68945,16 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type(Type& _return, const int using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_type_presult result; + bool _return; + ThriftHiveMetastore_create_type_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); if (result.__isset.success) { - // _return pointer has now been filled sentry.commit(); - return; + return _return; } if (result.__isset.o1) { sentry.commit(); @@ -68151,8 +68964,12 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type(Type& _return, const int 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_type failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "create_type failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -68162,19 +68979,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type(Type& _return, const int } // end while(true) } -bool ThriftHiveMetastoreConcurrentClient::create_type(const Type& type) +bool ThriftHiveMetastoreConcurrentClient::drop_type(const std::string& type) { - int32_t seqid = send_create_type(type); - return recv_create_type(seqid); + int32_t seqid = send_drop_type(type); + return recv_drop_type(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_create_type(const Type& type) +int32_t ThriftHiveMetastoreConcurrentClient::send_drop_type(const std::string& type) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("create_type", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("drop_type", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_create_type_pargs args; + ThriftHiveMetastore_drop_type_pargs args; args.type = &type; args.write(oprot_); @@ -68186,7 +69003,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_create_type(const Type& type) return cseqid; } -bool ThriftHiveMetastoreConcurrentClient::recv_create_type(const int32_t seqid) +bool ThriftHiveMetastoreConcurrentClient::recv_drop_type(const int32_t seqid) { int32_t rseqid = 0; @@ -68215,7 +69032,7 @@ bool ThriftHiveMetastoreConcurrentClient::recv_create_type(const int32_t seqid) iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("create_type") != 0) { + if (fname.compare("drop_type") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -68225,7 +69042,7 @@ bool ThriftHiveMetastoreConcurrentClient::recv_create_type(const int32_t seqid) throw TProtocolException(TProtocolException::INVALID_DATA); } bool _return; - ThriftHiveMetastore_create_type_presult result; + ThriftHiveMetastore_drop_type_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -68243,12 +69060,8 @@ bool ThriftHiveMetastoreConcurrentClient::recv_create_type(const int32_t seqid) 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, "create_type failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_type failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -68258,20 +69071,20 @@ bool ThriftHiveMetastoreConcurrentClient::recv_create_type(const int32_t seqid) } // end while(true) } -bool ThriftHiveMetastoreConcurrentClient::drop_type(const std::string& type) +void ThriftHiveMetastoreConcurrentClient::get_type_all(std::map & _return, const std::string& name) { - int32_t seqid = send_drop_type(type); - return recv_drop_type(seqid); + int32_t seqid = send_get_type_all(name); + recv_get_type_all(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_drop_type(const std::string& type) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_type_all(const std::string& name) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("drop_type", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_type_all", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_drop_type_pargs args; - args.type = &type; + ThriftHiveMetastore_get_type_all_pargs args; + args.name = &name; args.write(oprot_); oprot_->writeMessageEnd(); @@ -68282,7 +69095,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_drop_type(const std::string& t return cseqid; } -bool ThriftHiveMetastoreConcurrentClient::recv_drop_type(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_type_all(std::map & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -68311,7 +69124,7 @@ bool ThriftHiveMetastoreConcurrentClient::recv_drop_type(const int32_t seqid) iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("drop_type") != 0) { + if (fname.compare("get_type_all") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -68320,27 +69133,23 @@ bool ThriftHiveMetastoreConcurrentClient::recv_drop_type(const int32_t seqid) using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - bool _return; - ThriftHiveMetastore_drop_type_presult result; + ThriftHiveMetastore_get_type_all_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); if (result.__isset.success) { + // _return pointer has now been filled sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; + return; } if (result.__isset.o2) { sentry.commit(); throw result.o2; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_type failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_type_all failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -68350,20 +69159,21 @@ bool ThriftHiveMetastoreConcurrentClient::recv_drop_type(const int32_t seqid) } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_type_all(std::map & _return, const std::string& name) +void ThriftHiveMetastoreConcurrentClient::get_fields(std::vector & _return, const std::string& db_name, const std::string& table_name) { - int32_t seqid = send_get_type_all(name); - recv_get_type_all(_return, seqid); + int32_t seqid = send_get_fields(db_name, table_name); + recv_get_fields(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_type_all(const std::string& name) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_fields(const std::string& db_name, const std::string& table_name) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_type_all", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_fields", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_type_all_pargs args; - args.name = &name; + ThriftHiveMetastore_get_fields_pargs args; + args.db_name = &db_name; + args.table_name = &table_name; args.write(oprot_); oprot_->writeMessageEnd(); @@ -68374,7 +69184,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_type_all(const std::string return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_type_all(std::map & _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_fields(std::vector & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -68403,7 +69213,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type_all(std::mapreadMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_type_all") != 0) { + if (fname.compare("get_fields") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -68412,7 +69222,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type_all(std::mapreadMessageEnd(); @@ -68423,12 +69233,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type_all(std::mapsync_.updatePending(fname, mtype, rseqid); @@ -68438,21 +69256,22 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type_all(std::map & _return, const std::string& db_name, const std::string& table_name) +void ThriftHiveMetastoreConcurrentClient::get_fields_with_environment_context(std::vector & _return, const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context) { - int32_t seqid = send_get_fields(db_name, table_name); - recv_get_fields(_return, seqid); + int32_t seqid = send_get_fields_with_environment_context(db_name, table_name, environment_context); + recv_get_fields_with_environment_context(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_fields(const std::string& db_name, const std::string& table_name) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_fields_with_environment_context(const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_fields", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_fields_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_fields_pargs args; + ThriftHiveMetastore_get_fields_with_environment_context_pargs args; args.db_name = &db_name; args.table_name = &table_name; + args.environment_context = &environment_context; args.write(oprot_); oprot_->writeMessageEnd(); @@ -68463,7 +69282,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_fields(const std::string& return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_fields(std::vector & _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_fields_with_environment_context(std::vector & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -68492,7 +69311,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_fields(std::vectorreadMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_fields") != 0) { + if (fname.compare("get_fields_with_environment_context") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -68501,7 +69320,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_fields(std::vectorreadMessageEnd(); @@ -68525,7 +69344,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_fields(std::vectorsync_.updatePending(fname, mtype, rseqid); @@ -68535,22 +69354,21 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_fields(std::vector & _return, const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context) +void ThriftHiveMetastoreConcurrentClient::get_schema(std::vector & _return, const std::string& db_name, const std::string& table_name) { - int32_t seqid = send_get_fields_with_environment_context(db_name, table_name, environment_context); - recv_get_fields_with_environment_context(_return, seqid); + int32_t seqid = send_get_schema(db_name, table_name); + recv_get_schema(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_fields_with_environment_context(const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_schema(const std::string& db_name, const std::string& table_name) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_fields_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_schema", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_fields_with_environment_context_pargs args; + ThriftHiveMetastore_get_schema_pargs args; args.db_name = &db_name; args.table_name = &table_name; - args.environment_context = &environment_context; args.write(oprot_); oprot_->writeMessageEnd(); @@ -68561,7 +69379,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_fields_with_environment_co return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_fields_with_environment_context(std::vector & _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_schema(std::vector & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -68590,7 +69408,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_fields_with_environment_conte iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_fields_with_environment_context") != 0) { + if (fname.compare("get_schema") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -68599,7 +69417,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_fields_with_environment_conte using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_fields_with_environment_context_presult result; + ThriftHiveMetastore_get_schema_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -68623,7 +69441,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_fields_with_environment_conte throw result.o3; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_fields_with_environment_context failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_schema failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -68633,21 +69451,22 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_fields_with_environment_conte } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_schema(std::vector & _return, const std::string& db_name, const std::string& table_name) +void ThriftHiveMetastoreConcurrentClient::get_schema_with_environment_context(std::vector & _return, const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context) { - int32_t seqid = send_get_schema(db_name, table_name); - recv_get_schema(_return, seqid); + int32_t seqid = send_get_schema_with_environment_context(db_name, table_name, environment_context); + recv_get_schema_with_environment_context(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_schema(const std::string& db_name, const std::string& table_name) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_schema_with_environment_context(const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_schema", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_schema_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_schema_pargs args; + ThriftHiveMetastore_get_schema_with_environment_context_pargs args; args.db_name = &db_name; args.table_name = &table_name; + args.environment_context = &environment_context; args.write(oprot_); oprot_->writeMessageEnd(); @@ -68658,7 +69477,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_schema(const std::string& return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_schema(std::vector & _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_schema_with_environment_context(std::vector & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -68687,7 +69506,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_schema(std::vectorreadMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_schema") != 0) { + if (fname.compare("get_schema_with_environment_context") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -68696,7 +69515,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_schema(std::vectorreadMessageEnd(); @@ -68720,7 +69539,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_schema(std::vectorsync_.updatePending(fname, mtype, rseqid); @@ -68730,22 +69549,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_schema(std::vector & _return, const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context) +void ThriftHiveMetastoreConcurrentClient::create_table(const Table& tbl) { - int32_t seqid = send_get_schema_with_environment_context(db_name, table_name, environment_context); - recv_get_schema_with_environment_context(_return, seqid); + int32_t seqid = send_create_table(tbl); + recv_create_table(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_schema_with_environment_context(const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context) +int32_t ThriftHiveMetastoreConcurrentClient::send_create_table(const Table& tbl) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_schema_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("create_table", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_schema_with_environment_context_pargs args; - args.db_name = &db_name; - args.table_name = &table_name; - args.environment_context = &environment_context; + ThriftHiveMetastore_create_table_pargs args; + args.tbl = &tbl; args.write(oprot_); oprot_->writeMessageEnd(); @@ -68756,7 +69573,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_schema_with_environment_co return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_schema_with_environment_context(std::vector & _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_create_table(const int32_t seqid) { int32_t rseqid = 0; @@ -68785,7 +69602,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_schema_with_environment_conte iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_schema_with_environment_context") != 0) { + if (fname.compare("create_table") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -68794,17 +69611,106 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_schema_with_environment_conte using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_schema_with_environment_context_presult result; - result.success = &_return; + ThriftHiveMetastore_create_table_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - if (result.__isset.success) { - // _return pointer has now been filled + if (result.__isset.o1) { sentry.commit(); - return; + throw result.o1; } + if (result.__isset.o2) { + sentry.commit(); + throw result.o2; + } + if (result.__isset.o3) { + sentry.commit(); + throw result.o3; + } + if (result.__isset.o4) { + sentry.commit(); + throw result.o4; + } + 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::create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context) +{ + int32_t seqid = send_create_table_with_environment_context(tbl, environment_context); + recv_create_table_with_environment_context(seqid); +} + +int32_t ThriftHiveMetastoreConcurrentClient::send_create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context) +{ + int32_t cseqid = this->sync_.generateSeqId(); + ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); + oprot_->writeMessageBegin("create_table_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_create_table_with_environment_context_pargs args; + args.tbl = &tbl; + args.environment_context = &environment_context; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); + + sentry.commit(); + return cseqid; +} + +void ThriftHiveMetastoreConcurrentClient::recv_create_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("create_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_create_table_with_environment_context_presult result; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + if (result.__isset.o1) { sentry.commit(); throw result.o1; @@ -68817,8 +69723,12 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_schema_with_environment_conte sentry.commit(); throw result.o3; } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_schema_with_environment_context failed: unknown result"); + if (result.__isset.o4) { + sentry.commit(); + throw result.o4; + } + sentry.commit(); + return; } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -68828,20 +69738,25 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_schema_with_environment_conte } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::create_table(const Table& tbl) +void ThriftHiveMetastoreConcurrentClient::create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints, const std::vector & defaultConstraints) { - int32_t seqid = send_create_table(tbl); - recv_create_table(seqid); + int32_t seqid = send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints); + recv_create_table_with_constraints(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_create_table(const Table& tbl) +int32_t ThriftHiveMetastoreConcurrentClient::send_create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints, const std::vector & defaultConstraints) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("create_table", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("create_table_with_constraints", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_create_table_pargs args; + ThriftHiveMetastore_create_table_with_constraints_pargs args; args.tbl = &tbl; + args.primaryKeys = &primaryKeys; + args.foreignKeys = &foreignKeys; + args.uniqueConstraints = &uniqueConstraints; + args.notNullConstraints = ¬NullConstraints; + args.defaultConstraints = &defaultConstraints; args.write(oprot_); oprot_->writeMessageEnd(); @@ -68852,7 +69767,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_create_table(const Table& tbl) return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_create_table(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_constraints(const int32_t seqid) { int32_t rseqid = 0; @@ -68881,7 +69796,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table(const int32_t seqid) iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("create_table") != 0) { + if (fname.compare("create_table_with_constraints") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -68890,7 +69805,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table(const int32_t seqid) using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_create_table_presult result; + ThriftHiveMetastore_create_table_with_constraints_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -68922,21 +69837,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table(const int32_t seqid) } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context) +void ThriftHiveMetastoreConcurrentClient::drop_constraint(const DropConstraintRequest& req) { - int32_t seqid = send_create_table_with_environment_context(tbl, environment_context); - recv_create_table_with_environment_context(seqid); + int32_t seqid = send_drop_constraint(req); + recv_drop_constraint(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context) +int32_t ThriftHiveMetastoreConcurrentClient::send_drop_constraint(const DropConstraintRequest& req) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("create_table_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("drop_constraint", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_create_table_with_environment_context_pargs args; - args.tbl = &tbl; - args.environment_context = &environment_context; + ThriftHiveMetastore_drop_constraint_pargs args; + args.req = &req; args.write(oprot_); oprot_->writeMessageEnd(); @@ -68947,7 +69861,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_create_table_with_environment_ return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_environment_context(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_drop_constraint(const int32_t seqid) { int32_t rseqid = 0; @@ -68976,7 +69890,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_environment_con iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("create_table_with_environment_context") != 0) { + if (fname.compare("drop_constraint") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -68985,7 +69899,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_environment_con using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_create_table_with_environment_context_presult result; + ThriftHiveMetastore_drop_constraint_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -68994,18 +69908,10 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_environment_con sentry.commit(); throw result.o1; } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } if (result.__isset.o3) { sentry.commit(); throw result.o3; } - if (result.__isset.o4) { - sentry.commit(); - throw result.o4; - } sentry.commit(); return; } @@ -69017,24 +69923,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_environment_con } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints) +void ThriftHiveMetastoreConcurrentClient::add_primary_key(const AddPrimaryKeyRequest& req) { - int32_t seqid = send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints); - recv_create_table_with_constraints(seqid); + int32_t seqid = send_add_primary_key(req); + recv_add_primary_key(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints) +int32_t ThriftHiveMetastoreConcurrentClient::send_add_primary_key(const AddPrimaryKeyRequest& req) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("create_table_with_constraints", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("add_primary_key", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_create_table_with_constraints_pargs args; - args.tbl = &tbl; - args.primaryKeys = &primaryKeys; - args.foreignKeys = &foreignKeys; - args.uniqueConstraints = &uniqueConstraints; - args.notNullConstraints = ¬NullConstraints; + ThriftHiveMetastore_add_primary_key_pargs args; + args.req = &req; args.write(oprot_); oprot_->writeMessageEnd(); @@ -69045,7 +69947,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_create_table_with_constraints( return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_constraints(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_add_primary_key(const int32_t seqid) { int32_t rseqid = 0; @@ -69074,7 +69976,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_constraints(con iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("create_table_with_constraints") != 0) { + if (fname.compare("add_primary_key") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -69083,7 +69985,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_constraints(con using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_create_table_with_constraints_presult result; + ThriftHiveMetastore_add_primary_key_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -69096,100 +69998,6 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_constraints(con sentry.commit(); throw result.o2; } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - if (result.__isset.o4) { - sentry.commit(); - throw result.o4; - } - 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::drop_constraint(const DropConstraintRequest& req) -{ - int32_t seqid = send_drop_constraint(req); - recv_drop_constraint(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_drop_constraint(const DropConstraintRequest& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("drop_constraint", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_drop_constraint_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_drop_constraint(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_constraint") != 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_constraint_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; } @@ -69201,19 +70009,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_drop_constraint(const int32_t seq } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::add_primary_key(const AddPrimaryKeyRequest& req) +void ThriftHiveMetastoreConcurrentClient::add_foreign_key(const AddForeignKeyRequest& req) { - int32_t seqid = send_add_primary_key(req); - recv_add_primary_key(seqid); + int32_t seqid = send_add_foreign_key(req); + recv_add_foreign_key(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_add_primary_key(const AddPrimaryKeyRequest& req) +int32_t ThriftHiveMetastoreConcurrentClient::send_add_foreign_key(const AddForeignKeyRequest& req) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("add_primary_key", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("add_foreign_key", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_add_primary_key_pargs args; + ThriftHiveMetastore_add_foreign_key_pargs args; args.req = &req; args.write(oprot_); @@ -69225,7 +70033,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_add_primary_key(const AddPrima return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_add_primary_key(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_add_foreign_key(const int32_t seqid) { int32_t rseqid = 0; @@ -69254,7 +70062,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_add_primary_key(const int32_t seq iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("add_primary_key") != 0) { + if (fname.compare("add_foreign_key") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -69263,7 +70071,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_add_primary_key(const int32_t seq using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_add_primary_key_presult result; + ThriftHiveMetastore_add_foreign_key_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -69287,19 +70095,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_add_primary_key(const int32_t seq } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::add_foreign_key(const AddForeignKeyRequest& req) +void ThriftHiveMetastoreConcurrentClient::add_unique_constraint(const AddUniqueConstraintRequest& req) { - int32_t seqid = send_add_foreign_key(req); - recv_add_foreign_key(seqid); + int32_t seqid = send_add_unique_constraint(req); + recv_add_unique_constraint(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_add_foreign_key(const AddForeignKeyRequest& req) +int32_t ThriftHiveMetastoreConcurrentClient::send_add_unique_constraint(const AddUniqueConstraintRequest& req) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("add_foreign_key", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("add_unique_constraint", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_add_foreign_key_pargs args; + ThriftHiveMetastore_add_unique_constraint_pargs args; args.req = &req; args.write(oprot_); @@ -69311,7 +70119,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_add_foreign_key(const AddForei return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_add_foreign_key(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_add_unique_constraint(const int32_t seqid) { int32_t rseqid = 0; @@ -69340,7 +70148,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_add_foreign_key(const int32_t seq iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("add_foreign_key") != 0) { + if (fname.compare("add_unique_constraint") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -69349,7 +70157,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_add_foreign_key(const int32_t seq using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_add_foreign_key_presult result; + ThriftHiveMetastore_add_unique_constraint_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -69373,19 +70181,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_add_foreign_key(const int32_t seq } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::add_unique_constraint(const AddUniqueConstraintRequest& req) +void ThriftHiveMetastoreConcurrentClient::add_not_null_constraint(const AddNotNullConstraintRequest& req) { - int32_t seqid = send_add_unique_constraint(req); - recv_add_unique_constraint(seqid); + int32_t seqid = send_add_not_null_constraint(req); + recv_add_not_null_constraint(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_add_unique_constraint(const AddUniqueConstraintRequest& req) +int32_t ThriftHiveMetastoreConcurrentClient::send_add_not_null_constraint(const AddNotNullConstraintRequest& req) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("add_unique_constraint", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("add_not_null_constraint", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_add_unique_constraint_pargs args; + ThriftHiveMetastore_add_not_null_constraint_pargs args; args.req = &req; args.write(oprot_); @@ -69397,7 +70205,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_add_unique_constraint(const Ad return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_add_unique_constraint(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_add_not_null_constraint(const int32_t seqid) { int32_t rseqid = 0; @@ -69426,7 +70234,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_add_unique_constraint(const int32 iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("add_unique_constraint") != 0) { + if (fname.compare("add_not_null_constraint") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -69435,7 +70243,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_add_unique_constraint(const int32 using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_add_unique_constraint_presult result; + ThriftHiveMetastore_add_not_null_constraint_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -69459,19 +70267,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_add_unique_constraint(const int32 } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::add_not_null_constraint(const AddNotNullConstraintRequest& req) +void ThriftHiveMetastoreConcurrentClient::add_default_constraint(const AddDefaultConstraintRequest& req) { - int32_t seqid = send_add_not_null_constraint(req); - recv_add_not_null_constraint(seqid); + int32_t seqid = send_add_default_constraint(req); + recv_add_default_constraint(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_add_not_null_constraint(const AddNotNullConstraintRequest& req) +int32_t ThriftHiveMetastoreConcurrentClient::send_add_default_constraint(const AddDefaultConstraintRequest& req) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("add_not_null_constraint", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("add_default_constraint", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_add_not_null_constraint_pargs args; + ThriftHiveMetastore_add_default_constraint_pargs args; args.req = &req; args.write(oprot_); @@ -69483,7 +70291,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_add_not_null_constraint(const return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_add_not_null_constraint(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_add_default_constraint(const int32_t seqid) { int32_t rseqid = 0; @@ -69512,7 +70320,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_add_not_null_constraint(const int iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("add_not_null_constraint") != 0) { + if (fname.compare("add_default_constraint") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -69521,7 +70329,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_add_not_null_constraint(const int using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_add_not_null_constraint_presult result; + ThriftHiveMetastore_add_default_constraint_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -76178,6 +76986,98 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_not_null_constraints(NotNullC } // end while(true) } +void ThriftHiveMetastoreConcurrentClient::get_default_constraints(DefaultConstraintsResponse& _return, const DefaultConstraintsRequest& request) +{ + int32_t seqid = send_get_default_constraints(request); + recv_get_default_constraints(_return, seqid); +} + +int32_t ThriftHiveMetastoreConcurrentClient::send_get_default_constraints(const DefaultConstraintsRequest& request) +{ + int32_t cseqid = this->sync_.generateSeqId(); + ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); + oprot_->writeMessageBegin("get_default_constraints", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_default_constraints_pargs args; + args.request = &request; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); + + sentry.commit(); + return cseqid; +} + +void ThriftHiveMetastoreConcurrentClient::recv_get_default_constraints(DefaultConstraintsResponse& _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_default_constraints") != 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_default_constraints_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; + } + // in a bad state, don't commit + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_default_constraints 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) +} + bool ThriftHiveMetastoreConcurrentClient::update_table_column_statistics(const ColumnStatistics& stats_obj) { int32_t seqid = send_update_table_column_statistics(stats_obj); diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h index 2466498885..17df70091e 100644 --- a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h +++ b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h @@ -40,12 +40,13 @@ class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookService virtual void get_schema_with_environment_context(std::vector & _return, const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context) = 0; virtual void create_table(const Table& tbl) = 0; virtual void create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context) = 0; - virtual void create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints) = 0; + virtual void create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints, const std::vector & defaultConstraints) = 0; virtual void drop_constraint(const DropConstraintRequest& req) = 0; virtual void add_primary_key(const AddPrimaryKeyRequest& req) = 0; virtual void add_foreign_key(const AddForeignKeyRequest& req) = 0; virtual void add_unique_constraint(const AddUniqueConstraintRequest& req) = 0; virtual void add_not_null_constraint(const AddNotNullConstraintRequest& req) = 0; + virtual void add_default_constraint(const AddDefaultConstraintRequest& req) = 0; virtual void drop_table(const std::string& dbname, const std::string& name, const bool deleteData) = 0; virtual void drop_table_with_environment_context(const std::string& dbname, const std::string& name, const bool deleteData, const EnvironmentContext& environment_context) = 0; virtual void truncate_table(const std::string& dbName, const std::string& tableName, const std::vector & partNames) = 0; @@ -117,6 +118,7 @@ class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookService virtual void get_foreign_keys(ForeignKeysResponse& _return, const ForeignKeysRequest& request) = 0; virtual void get_unique_constraints(UniqueConstraintsResponse& _return, const UniqueConstraintsRequest& request) = 0; virtual void get_not_null_constraints(NotNullConstraintsResponse& _return, const NotNullConstraintsRequest& request) = 0; + virtual void get_default_constraints(DefaultConstraintsResponse& _return, const DefaultConstraintsRequest& request) = 0; virtual bool update_table_column_statistics(const ColumnStatistics& stats_obj) = 0; virtual bool update_partition_column_statistics(const ColumnStatistics& stats_obj) = 0; virtual void get_table_column_statistics(ColumnStatistics& _return, const std::string& db_name, const std::string& tbl_name, const std::string& col_name) = 0; @@ -289,7 +291,7 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p void create_table_with_environment_context(const Table& /* tbl */, const EnvironmentContext& /* environment_context */) { return; } - void create_table_with_constraints(const Table& /* tbl */, const std::vector & /* primaryKeys */, const std::vector & /* foreignKeys */, const std::vector & /* uniqueConstraints */, const std::vector & /* notNullConstraints */) { + void create_table_with_constraints(const Table& /* tbl */, const std::vector & /* primaryKeys */, const std::vector & /* foreignKeys */, const std::vector & /* uniqueConstraints */, const std::vector & /* notNullConstraints */, const std::vector & /* defaultConstraints */) { return; } void drop_constraint(const DropConstraintRequest& /* req */) { @@ -307,6 +309,9 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p void add_not_null_constraint(const AddNotNullConstraintRequest& /* req */) { return; } + void add_default_constraint(const AddDefaultConstraintRequest& /* req */) { + return; + } void drop_table(const std::string& /* dbname */, const std::string& /* name */, const bool /* deleteData */) { return; } @@ -530,6 +535,9 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p void get_not_null_constraints(NotNullConstraintsResponse& /* _return */, const NotNullConstraintsRequest& /* request */) { return; } + void get_default_constraints(DefaultConstraintsResponse& /* _return */, const DefaultConstraintsRequest& /* request */) { + return; + } bool update_table_column_statistics(const ColumnStatistics& /* stats_obj */) { bool _return = false; return _return; @@ -3035,12 +3043,13 @@ class ThriftHiveMetastore_create_table_with_environment_context_presult { }; typedef struct _ThriftHiveMetastore_create_table_with_constraints_args__isset { - _ThriftHiveMetastore_create_table_with_constraints_args__isset() : tbl(false), primaryKeys(false), foreignKeys(false), uniqueConstraints(false), notNullConstraints(false) {} + _ThriftHiveMetastore_create_table_with_constraints_args__isset() : tbl(false), primaryKeys(false), foreignKeys(false), uniqueConstraints(false), notNullConstraints(false), defaultConstraints(false) {} bool tbl :1; bool primaryKeys :1; bool foreignKeys :1; bool uniqueConstraints :1; bool notNullConstraints :1; + bool defaultConstraints :1; } _ThriftHiveMetastore_create_table_with_constraints_args__isset; class ThriftHiveMetastore_create_table_with_constraints_args { @@ -3057,6 +3066,7 @@ class ThriftHiveMetastore_create_table_with_constraints_args { std::vector foreignKeys; std::vector uniqueConstraints; std::vector notNullConstraints; + std::vector defaultConstraints; _ThriftHiveMetastore_create_table_with_constraints_args__isset __isset; @@ -3070,6 +3080,8 @@ class ThriftHiveMetastore_create_table_with_constraints_args { void __set_notNullConstraints(const std::vector & val); + void __set_defaultConstraints(const std::vector & val); + bool operator == (const ThriftHiveMetastore_create_table_with_constraints_args & rhs) const { if (!(tbl == rhs.tbl)) @@ -3082,6 +3094,8 @@ class ThriftHiveMetastore_create_table_with_constraints_args { return false; if (!(notNullConstraints == rhs.notNullConstraints)) return false; + if (!(defaultConstraints == rhs.defaultConstraints)) + return false; return true; } bool operator != (const ThriftHiveMetastore_create_table_with_constraints_args &rhs) const { @@ -3106,6 +3120,7 @@ class ThriftHiveMetastore_create_table_with_constraints_pargs { const std::vector * foreignKeys; const std::vector * uniqueConstraints; const std::vector * notNullConstraints; + const std::vector * defaultConstraints; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -3750,6 +3765,118 @@ class ThriftHiveMetastore_add_not_null_constraint_presult { }; +typedef struct _ThriftHiveMetastore_add_default_constraint_args__isset { + _ThriftHiveMetastore_add_default_constraint_args__isset() : req(false) {} + bool req :1; +} _ThriftHiveMetastore_add_default_constraint_args__isset; + +class ThriftHiveMetastore_add_default_constraint_args { + public: + + ThriftHiveMetastore_add_default_constraint_args(const ThriftHiveMetastore_add_default_constraint_args&); + ThriftHiveMetastore_add_default_constraint_args& operator=(const ThriftHiveMetastore_add_default_constraint_args&); + ThriftHiveMetastore_add_default_constraint_args() { + } + + virtual ~ThriftHiveMetastore_add_default_constraint_args() throw(); + AddDefaultConstraintRequest req; + + _ThriftHiveMetastore_add_default_constraint_args__isset __isset; + + void __set_req(const AddDefaultConstraintRequest& val); + + bool operator == (const ThriftHiveMetastore_add_default_constraint_args & rhs) const + { + if (!(req == rhs.req)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_add_default_constraint_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_add_default_constraint_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_add_default_constraint_pargs { + public: + + + virtual ~ThriftHiveMetastore_add_default_constraint_pargs() throw(); + const AddDefaultConstraintRequest* req; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_add_default_constraint_result__isset { + _ThriftHiveMetastore_add_default_constraint_result__isset() : o1(false), o2(false) {} + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_add_default_constraint_result__isset; + +class ThriftHiveMetastore_add_default_constraint_result { + public: + + ThriftHiveMetastore_add_default_constraint_result(const ThriftHiveMetastore_add_default_constraint_result&); + ThriftHiveMetastore_add_default_constraint_result& operator=(const ThriftHiveMetastore_add_default_constraint_result&); + ThriftHiveMetastore_add_default_constraint_result() { + } + + virtual ~ThriftHiveMetastore_add_default_constraint_result() throw(); + NoSuchObjectException o1; + MetaException o2; + + _ThriftHiveMetastore_add_default_constraint_result__isset __isset; + + void __set_o1(const NoSuchObjectException& val); + + void __set_o2(const MetaException& val); + + bool operator == (const ThriftHiveMetastore_add_default_constraint_result & rhs) const + { + if (!(o1 == rhs.o1)) + return false; + if (!(o2 == rhs.o2)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_add_default_constraint_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_add_default_constraint_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_add_default_constraint_presult__isset { + _ThriftHiveMetastore_add_default_constraint_presult__isset() : o1(false), o2(false) {} + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_add_default_constraint_presult__isset; + +class ThriftHiveMetastore_add_default_constraint_presult { + public: + + + virtual ~ThriftHiveMetastore_add_default_constraint_presult() throw(); + NoSuchObjectException o1; + MetaException o2; + + _ThriftHiveMetastore_add_default_constraint_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + typedef struct _ThriftHiveMetastore_drop_table_args__isset { _ThriftHiveMetastore_drop_table_args__isset() : dbname(false), name(false), deleteData(false) {} bool dbname :1; @@ -13193,6 +13320,126 @@ class ThriftHiveMetastore_get_not_null_constraints_presult { }; +typedef struct _ThriftHiveMetastore_get_default_constraints_args__isset { + _ThriftHiveMetastore_get_default_constraints_args__isset() : request(false) {} + bool request :1; +} _ThriftHiveMetastore_get_default_constraints_args__isset; + +class ThriftHiveMetastore_get_default_constraints_args { + public: + + ThriftHiveMetastore_get_default_constraints_args(const ThriftHiveMetastore_get_default_constraints_args&); + ThriftHiveMetastore_get_default_constraints_args& operator=(const ThriftHiveMetastore_get_default_constraints_args&); + ThriftHiveMetastore_get_default_constraints_args() { + } + + virtual ~ThriftHiveMetastore_get_default_constraints_args() throw(); + DefaultConstraintsRequest request; + + _ThriftHiveMetastore_get_default_constraints_args__isset __isset; + + void __set_request(const DefaultConstraintsRequest& val); + + bool operator == (const ThriftHiveMetastore_get_default_constraints_args & rhs) const + { + if (!(request == rhs.request)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_default_constraints_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_default_constraints_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_get_default_constraints_pargs { + public: + + + virtual ~ThriftHiveMetastore_get_default_constraints_pargs() throw(); + const DefaultConstraintsRequest* request; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_default_constraints_result__isset { + _ThriftHiveMetastore_get_default_constraints_result__isset() : success(false), o1(false), o2(false) {} + bool success :1; + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_get_default_constraints_result__isset; + +class ThriftHiveMetastore_get_default_constraints_result { + public: + + ThriftHiveMetastore_get_default_constraints_result(const ThriftHiveMetastore_get_default_constraints_result&); + ThriftHiveMetastore_get_default_constraints_result& operator=(const ThriftHiveMetastore_get_default_constraints_result&); + ThriftHiveMetastore_get_default_constraints_result() { + } + + virtual ~ThriftHiveMetastore_get_default_constraints_result() throw(); + DefaultConstraintsResponse success; + MetaException o1; + NoSuchObjectException o2; + + _ThriftHiveMetastore_get_default_constraints_result__isset __isset; + + void __set_success(const DefaultConstraintsResponse& val); + + void __set_o1(const MetaException& val); + + void __set_o2(const NoSuchObjectException& val); + + bool operator == (const ThriftHiveMetastore_get_default_constraints_result & rhs) const + { + if (!(success == rhs.success)) + return false; + if (!(o1 == rhs.o1)) + return false; + if (!(o2 == rhs.o2)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_default_constraints_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_default_constraints_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_default_constraints_presult__isset { + _ThriftHiveMetastore_get_default_constraints_presult__isset() : success(false), o1(false), o2(false) {} + bool success :1; + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_get_default_constraints_presult__isset; + +class ThriftHiveMetastore_get_default_constraints_presult { + public: + + + virtual ~ThriftHiveMetastore_get_default_constraints_presult() throw(); + DefaultConstraintsResponse* success; + MetaException o1; + NoSuchObjectException o2; + + _ThriftHiveMetastore_get_default_constraints_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + typedef struct _ThriftHiveMetastore_update_table_column_statistics_args__isset { _ThriftHiveMetastore_update_table_column_statistics_args__isset() : stats_obj(false) {} bool stats_obj :1; @@ -23363,8 +23610,8 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public void create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context); void send_create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context); void recv_create_table_with_environment_context(); - void create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints); - void send_create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints); + void create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints, const std::vector & defaultConstraints); + void send_create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints, const std::vector & defaultConstraints); void recv_create_table_with_constraints(); void drop_constraint(const DropConstraintRequest& req); void send_drop_constraint(const DropConstraintRequest& req); @@ -23381,6 +23628,9 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public void add_not_null_constraint(const AddNotNullConstraintRequest& req); void send_add_not_null_constraint(const AddNotNullConstraintRequest& req); void recv_add_not_null_constraint(); + void add_default_constraint(const AddDefaultConstraintRequest& req); + void send_add_default_constraint(const AddDefaultConstraintRequest& req); + void recv_add_default_constraint(); void drop_table(const std::string& dbname, const std::string& name, const bool deleteData); void send_drop_table(const std::string& dbname, const std::string& name, const bool deleteData); void recv_drop_table(); @@ -23594,6 +23844,9 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public void get_not_null_constraints(NotNullConstraintsResponse& _return, const NotNullConstraintsRequest& request); void send_get_not_null_constraints(const NotNullConstraintsRequest& request); void recv_get_not_null_constraints(NotNullConstraintsResponse& _return); + void get_default_constraints(DefaultConstraintsResponse& _return, const DefaultConstraintsRequest& request); + void send_get_default_constraints(const DefaultConstraintsRequest& request); + void recv_get_default_constraints(DefaultConstraintsResponse& _return); bool update_table_column_statistics(const ColumnStatistics& stats_obj); void send_update_table_column_statistics(const ColumnStatistics& stats_obj); bool recv_update_table_column_statistics(); @@ -23889,6 +24142,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP void process_add_foreign_key(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_add_unique_constraint(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_add_not_null_constraint(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_add_default_constraint(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_drop_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_drop_table_with_environment_context(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_truncate_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); @@ -23960,6 +24214,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP void process_get_foreign_keys(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_unique_constraints(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_not_null_constraints(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_default_constraints(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_update_table_column_statistics(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_update_partition_column_statistics(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_table_column_statistics(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); @@ -24075,6 +24330,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP processMap_["add_foreign_key"] = &ThriftHiveMetastoreProcessor::process_add_foreign_key; processMap_["add_unique_constraint"] = &ThriftHiveMetastoreProcessor::process_add_unique_constraint; processMap_["add_not_null_constraint"] = &ThriftHiveMetastoreProcessor::process_add_not_null_constraint; + processMap_["add_default_constraint"] = &ThriftHiveMetastoreProcessor::process_add_default_constraint; processMap_["drop_table"] = &ThriftHiveMetastoreProcessor::process_drop_table; processMap_["drop_table_with_environment_context"] = &ThriftHiveMetastoreProcessor::process_drop_table_with_environment_context; processMap_["truncate_table"] = &ThriftHiveMetastoreProcessor::process_truncate_table; @@ -24146,6 +24402,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP processMap_["get_foreign_keys"] = &ThriftHiveMetastoreProcessor::process_get_foreign_keys; processMap_["get_unique_constraints"] = &ThriftHiveMetastoreProcessor::process_get_unique_constraints; processMap_["get_not_null_constraints"] = &ThriftHiveMetastoreProcessor::process_get_not_null_constraints; + processMap_["get_default_constraints"] = &ThriftHiveMetastoreProcessor::process_get_default_constraints; processMap_["update_table_column_statistics"] = &ThriftHiveMetastoreProcessor::process_update_table_column_statistics; processMap_["update_partition_column_statistics"] = &ThriftHiveMetastoreProcessor::process_update_partition_column_statistics; processMap_["get_table_column_statistics"] = &ThriftHiveMetastoreProcessor::process_get_table_column_statistics; @@ -24438,13 +24695,13 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi ifaces_[i]->create_table_with_environment_context(tbl, environment_context); } - void create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints) { + void create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints, const std::vector & defaultConstraints) { size_t sz = ifaces_.size(); size_t i = 0; for (; i < (sz - 1); ++i) { - ifaces_[i]->create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints); + ifaces_[i]->create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints); } - ifaces_[i]->create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints); + ifaces_[i]->create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints); } void drop_constraint(const DropConstraintRequest& req) { @@ -24492,6 +24749,15 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi ifaces_[i]->add_not_null_constraint(req); } + void add_default_constraint(const AddDefaultConstraintRequest& req) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->add_default_constraint(req); + } + ifaces_[i]->add_default_constraint(req); + } + void drop_table(const std::string& dbname, const std::string& name, const bool deleteData) { size_t sz = ifaces_.size(); size_t i = 0; @@ -25178,6 +25444,16 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi return; } + void get_default_constraints(DefaultConstraintsResponse& _return, const DefaultConstraintsRequest& request) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->get_default_constraints(_return, request); + } + ifaces_[i]->get_default_constraints(_return, request); + return; + } + bool update_table_column_statistics(const ColumnStatistics& stats_obj) { size_t sz = ifaces_.size(); size_t i = 0; @@ -26089,8 +26365,8 @@ class ThriftHiveMetastoreConcurrentClient : virtual public ThriftHiveMetastoreIf void create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context); int32_t send_create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context); void recv_create_table_with_environment_context(const int32_t seqid); - void create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints); - int32_t send_create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints); + void create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints, const std::vector & defaultConstraints); + int32_t send_create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints, const std::vector & defaultConstraints); void recv_create_table_with_constraints(const int32_t seqid); void drop_constraint(const DropConstraintRequest& req); int32_t send_drop_constraint(const DropConstraintRequest& req); @@ -26107,6 +26383,9 @@ class ThriftHiveMetastoreConcurrentClient : virtual public ThriftHiveMetastoreIf void add_not_null_constraint(const AddNotNullConstraintRequest& req); int32_t send_add_not_null_constraint(const AddNotNullConstraintRequest& req); void recv_add_not_null_constraint(const int32_t seqid); + void add_default_constraint(const AddDefaultConstraintRequest& req); + int32_t send_add_default_constraint(const AddDefaultConstraintRequest& req); + void recv_add_default_constraint(const int32_t seqid); void drop_table(const std::string& dbname, const std::string& name, const bool deleteData); int32_t send_drop_table(const std::string& dbname, const std::string& name, const bool deleteData); void recv_drop_table(const int32_t seqid); @@ -26320,6 +26599,9 @@ class ThriftHiveMetastoreConcurrentClient : virtual public ThriftHiveMetastoreIf void get_not_null_constraints(NotNullConstraintsResponse& _return, const NotNullConstraintsRequest& request); int32_t send_get_not_null_constraints(const NotNullConstraintsRequest& request); void recv_get_not_null_constraints(NotNullConstraintsResponse& _return, const int32_t seqid); + void get_default_constraints(DefaultConstraintsResponse& _return, const DefaultConstraintsRequest& request); + int32_t send_get_default_constraints(const DefaultConstraintsRequest& request); + void recv_get_default_constraints(DefaultConstraintsResponse& _return, const int32_t seqid); bool update_table_column_statistics(const ColumnStatistics& stats_obj); int32_t send_update_table_column_statistics(const ColumnStatistics& stats_obj); bool recv_update_table_column_statistics(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 f5dc9f08ae..f165cc9f66 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 @@ -112,7 +112,7 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("create_table_with_environment_context\n"); } - void create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints) { + void create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys, const std::vector & uniqueConstraints, const std::vector & notNullConstraints, const std::vector & defaultConstraints) { // Your implementation goes here printf("create_table_with_constraints\n"); } @@ -142,6 +142,11 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("add_not_null_constraint\n"); } + void add_default_constraint(const AddDefaultConstraintRequest& req) { + // Your implementation goes here + printf("add_default_constraint\n"); + } + void drop_table(const std::string& dbname, const std::string& name, const bool deleteData) { // Your implementation goes here printf("drop_table\n"); @@ -497,6 +502,11 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("get_not_null_constraints\n"); } + void get_default_constraints(DefaultConstraintsResponse& _return, const DefaultConstraintsRequest& request) { + // Your implementation goes here + printf("get_default_constraints\n"); + } + bool update_table_column_statistics(const ColumnStatistics& stats_obj) { // Your implementation goes here printf("update_table_column_statistics\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 8f04b9da9e..561e20748f 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 @@ -1446,6 +1446,232 @@ void SQLNotNullConstraint::printTo(std::ostream& out) const { } +SQLDefaultConstraint::~SQLDefaultConstraint() throw() { +} + + +void SQLDefaultConstraint::__set_table_db(const std::string& val) { + this->table_db = val; +} + +void SQLDefaultConstraint::__set_table_name(const std::string& val) { + this->table_name = val; +} + +void SQLDefaultConstraint::__set_column_name(const std::string& val) { + this->column_name = val; +} + +void SQLDefaultConstraint::__set_default_value(const std::string& val) { + this->default_value = val; +} + +void SQLDefaultConstraint::__set_dc_name(const std::string& val) { + this->dc_name = val; +} + +void SQLDefaultConstraint::__set_enable_cstr(const bool val) { + this->enable_cstr = val; +} + +void SQLDefaultConstraint::__set_validate_cstr(const bool val) { + this->validate_cstr = val; +} + +void SQLDefaultConstraint::__set_rely_cstr(const bool val) { + this->rely_cstr = val; +} + +uint32_t SQLDefaultConstraint::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->table_db); + this->__isset.table_db = 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_STRING) { + xfer += iprot->readString(this->column_name); + this->__isset.column_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->default_value); + this->__isset.default_value = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->dc_name); + this->__isset.dc_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->enable_cstr); + this->__isset.enable_cstr = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->validate_cstr); + this->__isset.validate_cstr = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 8: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->rely_cstr); + this->__isset.rely_cstr = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t SQLDefaultConstraint::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("SQLDefaultConstraint"); + + xfer += oprot->writeFieldBegin("table_db", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->table_db); + 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("column_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->column_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("default_value", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->default_value); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("dc_name", ::apache::thrift::protocol::T_STRING, 5); + xfer += oprot->writeString(this->dc_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("enable_cstr", ::apache::thrift::protocol::T_BOOL, 6); + xfer += oprot->writeBool(this->enable_cstr); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("validate_cstr", ::apache::thrift::protocol::T_BOOL, 7); + xfer += oprot->writeBool(this->validate_cstr); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("rely_cstr", ::apache::thrift::protocol::T_BOOL, 8); + xfer += oprot->writeBool(this->rely_cstr); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(SQLDefaultConstraint &a, SQLDefaultConstraint &b) { + using ::std::swap; + swap(a.table_db, b.table_db); + swap(a.table_name, b.table_name); + swap(a.column_name, b.column_name); + swap(a.default_value, b.default_value); + swap(a.dc_name, b.dc_name); + swap(a.enable_cstr, b.enable_cstr); + swap(a.validate_cstr, b.validate_cstr); + swap(a.rely_cstr, b.rely_cstr); + swap(a.__isset, b.__isset); +} + +SQLDefaultConstraint::SQLDefaultConstraint(const SQLDefaultConstraint& other12) { + table_db = other12.table_db; + table_name = other12.table_name; + column_name = other12.column_name; + default_value = other12.default_value; + dc_name = other12.dc_name; + enable_cstr = other12.enable_cstr; + validate_cstr = other12.validate_cstr; + rely_cstr = other12.rely_cstr; + __isset = other12.__isset; +} +SQLDefaultConstraint& SQLDefaultConstraint::operator=(const SQLDefaultConstraint& other13) { + table_db = other13.table_db; + table_name = other13.table_name; + column_name = other13.column_name; + default_value = other13.default_value; + dc_name = other13.dc_name; + enable_cstr = other13.enable_cstr; + validate_cstr = other13.validate_cstr; + rely_cstr = other13.rely_cstr; + __isset = other13.__isset; + return *this; +} +void SQLDefaultConstraint::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "SQLDefaultConstraint("; + out << "table_db=" << to_string(table_db); + out << ", " << "table_name=" << to_string(table_name); + out << ", " << "column_name=" << to_string(column_name); + out << ", " << "default_value=" << to_string(default_value); + out << ", " << "dc_name=" << to_string(dc_name); + out << ", " << "enable_cstr=" << to_string(enable_cstr); + out << ", " << "validate_cstr=" << to_string(validate_cstr); + out << ", " << "rely_cstr=" << to_string(rely_cstr); + out << ")"; +} + + Type::~Type() throw() { } @@ -1518,14 +1744,14 @@ uint32_t Type::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fields.clear(); - uint32_t _size12; - ::apache::thrift::protocol::TType _etype15; - xfer += iprot->readListBegin(_etype15, _size12); - this->fields.resize(_size12); - uint32_t _i16; - for (_i16 = 0; _i16 < _size12; ++_i16) + uint32_t _size14; + ::apache::thrift::protocol::TType _etype17; + xfer += iprot->readListBegin(_etype17, _size14); + this->fields.resize(_size14); + uint32_t _i18; + for (_i18 = 0; _i18 < _size14; ++_i18) { - xfer += this->fields[_i16].read(iprot); + xfer += this->fields[_i18].read(iprot); } xfer += iprot->readListEnd(); } @@ -1569,10 +1795,10 @@ uint32_t Type::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("fields", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->fields.size())); - std::vector ::const_iterator _iter17; - for (_iter17 = this->fields.begin(); _iter17 != this->fields.end(); ++_iter17) + std::vector ::const_iterator _iter19; + for (_iter19 = this->fields.begin(); _iter19 != this->fields.end(); ++_iter19) { - xfer += (*_iter17).write(oprot); + xfer += (*_iter19).write(oprot); } xfer += oprot->writeListEnd(); } @@ -1592,19 +1818,19 @@ void swap(Type &a, Type &b) { swap(a.__isset, b.__isset); } -Type::Type(const Type& other18) { - name = other18.name; - type1 = other18.type1; - type2 = other18.type2; - fields = other18.fields; - __isset = other18.__isset; +Type::Type(const Type& other20) { + name = other20.name; + type1 = other20.type1; + type2 = other20.type2; + fields = other20.fields; + __isset = other20.__isset; } -Type& Type::operator=(const Type& other19) { - name = other19.name; - type1 = other19.type1; - type2 = other19.type2; - fields = other19.fields; - __isset = other19.__isset; +Type& Type::operator=(const Type& other21) { + name = other21.name; + type1 = other21.type1; + type2 = other21.type2; + fields = other21.fields; + __isset = other21.__isset; return *this; } void Type::printTo(std::ostream& out) const { @@ -1665,9 +1891,9 @@ uint32_t HiveObjectRef::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast20; - xfer += iprot->readI32(ecast20); - this->objectType = (HiveObjectType::type)ecast20; + int32_t ecast22; + xfer += iprot->readI32(ecast22); + this->objectType = (HiveObjectType::type)ecast22; this->__isset.objectType = true; } else { xfer += iprot->skip(ftype); @@ -1693,14 +1919,14 @@ uint32_t HiveObjectRef::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partValues.clear(); - uint32_t _size21; - ::apache::thrift::protocol::TType _etype24; - xfer += iprot->readListBegin(_etype24, _size21); - this->partValues.resize(_size21); - uint32_t _i25; - for (_i25 = 0; _i25 < _size21; ++_i25) + uint32_t _size23; + ::apache::thrift::protocol::TType _etype26; + xfer += iprot->readListBegin(_etype26, _size23); + this->partValues.resize(_size23); + uint32_t _i27; + for (_i27 = 0; _i27 < _size23; ++_i27) { - xfer += iprot->readString(this->partValues[_i25]); + xfer += iprot->readString(this->partValues[_i27]); } xfer += iprot->readListEnd(); } @@ -1749,10 +1975,10 @@ uint32_t HiveObjectRef::write(::apache::thrift::protocol::TProtocol* oprot) cons xfer += oprot->writeFieldBegin("partValues", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partValues.size())); - std::vector ::const_iterator _iter26; - for (_iter26 = this->partValues.begin(); _iter26 != this->partValues.end(); ++_iter26) + std::vector ::const_iterator _iter28; + for (_iter28 = this->partValues.begin(); _iter28 != this->partValues.end(); ++_iter28) { - xfer += oprot->writeString((*_iter26)); + xfer += oprot->writeString((*_iter28)); } xfer += oprot->writeListEnd(); } @@ -1777,21 +2003,21 @@ void swap(HiveObjectRef &a, HiveObjectRef &b) { swap(a.__isset, b.__isset); } -HiveObjectRef::HiveObjectRef(const HiveObjectRef& other27) { - objectType = other27.objectType; - dbName = other27.dbName; - objectName = other27.objectName; - partValues = other27.partValues; - columnName = other27.columnName; - __isset = other27.__isset; -} -HiveObjectRef& HiveObjectRef::operator=(const HiveObjectRef& other28) { - objectType = other28.objectType; - dbName = other28.dbName; - objectName = other28.objectName; - partValues = other28.partValues; - columnName = other28.columnName; - __isset = other28.__isset; +HiveObjectRef::HiveObjectRef(const HiveObjectRef& other29) { + objectType = other29.objectType; + dbName = other29.dbName; + objectName = other29.objectName; + partValues = other29.partValues; + columnName = other29.columnName; + __isset = other29.__isset; +} +HiveObjectRef& HiveObjectRef::operator=(const HiveObjectRef& other30) { + objectType = other30.objectType; + dbName = other30.dbName; + objectName = other30.objectName; + partValues = other30.partValues; + columnName = other30.columnName; + __isset = other30.__isset; return *this; } void HiveObjectRef::printTo(std::ostream& out) const { @@ -1877,9 +2103,9 @@ uint32_t PrivilegeGrantInfo::read(::apache::thrift::protocol::TProtocol* iprot) break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast29; - xfer += iprot->readI32(ecast29); - this->grantorType = (PrincipalType::type)ecast29; + int32_t ecast31; + xfer += iprot->readI32(ecast31); + this->grantorType = (PrincipalType::type)ecast31; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -1945,21 +2171,21 @@ void swap(PrivilegeGrantInfo &a, PrivilegeGrantInfo &b) { swap(a.__isset, b.__isset); } -PrivilegeGrantInfo::PrivilegeGrantInfo(const PrivilegeGrantInfo& other30) { - privilege = other30.privilege; - createTime = other30.createTime; - grantor = other30.grantor; - grantorType = other30.grantorType; - grantOption = other30.grantOption; - __isset = other30.__isset; -} -PrivilegeGrantInfo& PrivilegeGrantInfo::operator=(const PrivilegeGrantInfo& other31) { - privilege = other31.privilege; - createTime = other31.createTime; - grantor = other31.grantor; - grantorType = other31.grantorType; - grantOption = other31.grantOption; - __isset = other31.__isset; +PrivilegeGrantInfo::PrivilegeGrantInfo(const PrivilegeGrantInfo& other32) { + privilege = other32.privilege; + createTime = other32.createTime; + grantor = other32.grantor; + grantorType = other32.grantorType; + grantOption = other32.grantOption; + __isset = other32.__isset; +} +PrivilegeGrantInfo& PrivilegeGrantInfo::operator=(const PrivilegeGrantInfo& other33) { + privilege = other33.privilege; + createTime = other33.createTime; + grantor = other33.grantor; + grantorType = other33.grantorType; + grantOption = other33.grantOption; + __isset = other33.__isset; return *this; } void PrivilegeGrantInfo::printTo(std::ostream& out) const { @@ -2033,9 +2259,9 @@ uint32_t HiveObjectPrivilege::read(::apache::thrift::protocol::TProtocol* iprot) break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast32; - xfer += iprot->readI32(ecast32); - this->principalType = (PrincipalType::type)ecast32; + int32_t ecast34; + xfer += iprot->readI32(ecast34); + this->principalType = (PrincipalType::type)ecast34; this->__isset.principalType = true; } else { xfer += iprot->skip(ftype); @@ -2096,19 +2322,19 @@ void swap(HiveObjectPrivilege &a, HiveObjectPrivilege &b) { swap(a.__isset, b.__isset); } -HiveObjectPrivilege::HiveObjectPrivilege(const HiveObjectPrivilege& other33) { - hiveObject = other33.hiveObject; - principalName = other33.principalName; - principalType = other33.principalType; - grantInfo = other33.grantInfo; - __isset = other33.__isset; +HiveObjectPrivilege::HiveObjectPrivilege(const HiveObjectPrivilege& other35) { + hiveObject = other35.hiveObject; + principalName = other35.principalName; + principalType = other35.principalType; + grantInfo = other35.grantInfo; + __isset = other35.__isset; } -HiveObjectPrivilege& HiveObjectPrivilege::operator=(const HiveObjectPrivilege& other34) { - hiveObject = other34.hiveObject; - principalName = other34.principalName; - principalType = other34.principalType; - grantInfo = other34.grantInfo; - __isset = other34.__isset; +HiveObjectPrivilege& HiveObjectPrivilege::operator=(const HiveObjectPrivilege& other36) { + hiveObject = other36.hiveObject; + principalName = other36.principalName; + principalType = other36.principalType; + grantInfo = other36.grantInfo; + __isset = other36.__isset; return *this; } void HiveObjectPrivilege::printTo(std::ostream& out) const { @@ -2155,14 +2381,14 @@ uint32_t PrivilegeBag::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->privileges.clear(); - uint32_t _size35; - ::apache::thrift::protocol::TType _etype38; - xfer += iprot->readListBegin(_etype38, _size35); - this->privileges.resize(_size35); - uint32_t _i39; - for (_i39 = 0; _i39 < _size35; ++_i39) + uint32_t _size37; + ::apache::thrift::protocol::TType _etype40; + xfer += iprot->readListBegin(_etype40, _size37); + this->privileges.resize(_size37); + uint32_t _i41; + for (_i41 = 0; _i41 < _size37; ++_i41) { - xfer += this->privileges[_i39].read(iprot); + xfer += this->privileges[_i41].read(iprot); } xfer += iprot->readListEnd(); } @@ -2191,10 +2417,10 @@ uint32_t PrivilegeBag::write(::apache::thrift::protocol::TProtocol* oprot) const xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->privileges.size())); - std::vector ::const_iterator _iter40; - for (_iter40 = this->privileges.begin(); _iter40 != this->privileges.end(); ++_iter40) + std::vector ::const_iterator _iter42; + for (_iter42 = this->privileges.begin(); _iter42 != this->privileges.end(); ++_iter42) { - xfer += (*_iter40).write(oprot); + xfer += (*_iter42).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2211,13 +2437,13 @@ void swap(PrivilegeBag &a, PrivilegeBag &b) { swap(a.__isset, b.__isset); } -PrivilegeBag::PrivilegeBag(const PrivilegeBag& other41) { - privileges = other41.privileges; - __isset = other41.__isset; +PrivilegeBag::PrivilegeBag(const PrivilegeBag& other43) { + privileges = other43.privileges; + __isset = other43.__isset; } -PrivilegeBag& PrivilegeBag::operator=(const PrivilegeBag& other42) { - privileges = other42.privileges; - __isset = other42.__isset; +PrivilegeBag& PrivilegeBag::operator=(const PrivilegeBag& other44) { + privileges = other44.privileges; + __isset = other44.__isset; return *this; } void PrivilegeBag::printTo(std::ostream& out) const { @@ -2269,26 +2495,26 @@ uint32_t PrincipalPrivilegeSet::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->userPrivileges.clear(); - uint32_t _size43; - ::apache::thrift::protocol::TType _ktype44; - ::apache::thrift::protocol::TType _vtype45; - xfer += iprot->readMapBegin(_ktype44, _vtype45, _size43); - uint32_t _i47; - for (_i47 = 0; _i47 < _size43; ++_i47) + uint32_t _size45; + ::apache::thrift::protocol::TType _ktype46; + ::apache::thrift::protocol::TType _vtype47; + xfer += iprot->readMapBegin(_ktype46, _vtype47, _size45); + uint32_t _i49; + for (_i49 = 0; _i49 < _size45; ++_i49) { - std::string _key48; - xfer += iprot->readString(_key48); - std::vector & _val49 = this->userPrivileges[_key48]; + std::string _key50; + xfer += iprot->readString(_key50); + std::vector & _val51 = this->userPrivileges[_key50]; { - _val49.clear(); - uint32_t _size50; - ::apache::thrift::protocol::TType _etype53; - xfer += iprot->readListBegin(_etype53, _size50); - _val49.resize(_size50); - uint32_t _i54; - for (_i54 = 0; _i54 < _size50; ++_i54) + _val51.clear(); + uint32_t _size52; + ::apache::thrift::protocol::TType _etype55; + xfer += iprot->readListBegin(_etype55, _size52); + _val51.resize(_size52); + uint32_t _i56; + for (_i56 = 0; _i56 < _size52; ++_i56) { - xfer += _val49[_i54].read(iprot); + xfer += _val51[_i56].read(iprot); } xfer += iprot->readListEnd(); } @@ -2304,26 +2530,26 @@ uint32_t PrincipalPrivilegeSet::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->groupPrivileges.clear(); - uint32_t _size55; - ::apache::thrift::protocol::TType _ktype56; - ::apache::thrift::protocol::TType _vtype57; - xfer += iprot->readMapBegin(_ktype56, _vtype57, _size55); - uint32_t _i59; - for (_i59 = 0; _i59 < _size55; ++_i59) + uint32_t _size57; + ::apache::thrift::protocol::TType _ktype58; + ::apache::thrift::protocol::TType _vtype59; + xfer += iprot->readMapBegin(_ktype58, _vtype59, _size57); + uint32_t _i61; + for (_i61 = 0; _i61 < _size57; ++_i61) { - std::string _key60; - xfer += iprot->readString(_key60); - std::vector & _val61 = this->groupPrivileges[_key60]; + std::string _key62; + xfer += iprot->readString(_key62); + std::vector & _val63 = this->groupPrivileges[_key62]; { - _val61.clear(); - uint32_t _size62; - ::apache::thrift::protocol::TType _etype65; - xfer += iprot->readListBegin(_etype65, _size62); - _val61.resize(_size62); - uint32_t _i66; - for (_i66 = 0; _i66 < _size62; ++_i66) + _val63.clear(); + uint32_t _size64; + ::apache::thrift::protocol::TType _etype67; + xfer += iprot->readListBegin(_etype67, _size64); + _val63.resize(_size64); + uint32_t _i68; + for (_i68 = 0; _i68 < _size64; ++_i68) { - xfer += _val61[_i66].read(iprot); + xfer += _val63[_i68].read(iprot); } xfer += iprot->readListEnd(); } @@ -2339,26 +2565,26 @@ uint32_t PrincipalPrivilegeSet::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->rolePrivileges.clear(); - uint32_t _size67; - ::apache::thrift::protocol::TType _ktype68; - ::apache::thrift::protocol::TType _vtype69; - xfer += iprot->readMapBegin(_ktype68, _vtype69, _size67); - uint32_t _i71; - for (_i71 = 0; _i71 < _size67; ++_i71) + uint32_t _size69; + ::apache::thrift::protocol::TType _ktype70; + ::apache::thrift::protocol::TType _vtype71; + xfer += iprot->readMapBegin(_ktype70, _vtype71, _size69); + uint32_t _i73; + for (_i73 = 0; _i73 < _size69; ++_i73) { - std::string _key72; - xfer += iprot->readString(_key72); - std::vector & _val73 = this->rolePrivileges[_key72]; + std::string _key74; + xfer += iprot->readString(_key74); + std::vector & _val75 = this->rolePrivileges[_key74]; { - _val73.clear(); - uint32_t _size74; - ::apache::thrift::protocol::TType _etype77; - xfer += iprot->readListBegin(_etype77, _size74); - _val73.resize(_size74); - uint32_t _i78; - for (_i78 = 0; _i78 < _size74; ++_i78) + _val75.clear(); + uint32_t _size76; + ::apache::thrift::protocol::TType _etype79; + xfer += iprot->readListBegin(_etype79, _size76); + _val75.resize(_size76); + uint32_t _i80; + for (_i80 = 0; _i80 < _size76; ++_i80) { - xfer += _val73[_i78].read(iprot); + xfer += _val75[_i80].read(iprot); } xfer += iprot->readListEnd(); } @@ -2390,16 +2616,16 @@ uint32_t PrincipalPrivilegeSet::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldBegin("userPrivileges", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast(this->userPrivileges.size())); - std::map > ::const_iterator _iter79; - for (_iter79 = this->userPrivileges.begin(); _iter79 != this->userPrivileges.end(); ++_iter79) + std::map > ::const_iterator _iter81; + for (_iter81 = this->userPrivileges.begin(); _iter81 != this->userPrivileges.end(); ++_iter81) { - xfer += oprot->writeString(_iter79->first); + xfer += oprot->writeString(_iter81->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter79->second.size())); - std::vector ::const_iterator _iter80; - for (_iter80 = _iter79->second.begin(); _iter80 != _iter79->second.end(); ++_iter80) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter81->second.size())); + std::vector ::const_iterator _iter82; + for (_iter82 = _iter81->second.begin(); _iter82 != _iter81->second.end(); ++_iter82) { - xfer += (*_iter80).write(oprot); + xfer += (*_iter82).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2411,16 +2637,16 @@ uint32_t PrincipalPrivilegeSet::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldBegin("groupPrivileges", ::apache::thrift::protocol::T_MAP, 2); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast(this->groupPrivileges.size())); - std::map > ::const_iterator _iter81; - for (_iter81 = this->groupPrivileges.begin(); _iter81 != this->groupPrivileges.end(); ++_iter81) + std::map > ::const_iterator _iter83; + for (_iter83 = this->groupPrivileges.begin(); _iter83 != this->groupPrivileges.end(); ++_iter83) { - xfer += oprot->writeString(_iter81->first); + xfer += oprot->writeString(_iter83->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter81->second.size())); - std::vector ::const_iterator _iter82; - for (_iter82 = _iter81->second.begin(); _iter82 != _iter81->second.end(); ++_iter82) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter83->second.size())); + std::vector ::const_iterator _iter84; + for (_iter84 = _iter83->second.begin(); _iter84 != _iter83->second.end(); ++_iter84) { - xfer += (*_iter82).write(oprot); + xfer += (*_iter84).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2432,16 +2658,16 @@ uint32_t PrincipalPrivilegeSet::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldBegin("rolePrivileges", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast(this->rolePrivileges.size())); - std::map > ::const_iterator _iter83; - for (_iter83 = this->rolePrivileges.begin(); _iter83 != this->rolePrivileges.end(); ++_iter83) + std::map > ::const_iterator _iter85; + for (_iter85 = this->rolePrivileges.begin(); _iter85 != this->rolePrivileges.end(); ++_iter85) { - xfer += oprot->writeString(_iter83->first); + xfer += oprot->writeString(_iter85->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter83->second.size())); - std::vector ::const_iterator _iter84; - for (_iter84 = _iter83->second.begin(); _iter84 != _iter83->second.end(); ++_iter84) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter85->second.size())); + std::vector ::const_iterator _iter86; + for (_iter86 = _iter85->second.begin(); _iter86 != _iter85->second.end(); ++_iter86) { - xfer += (*_iter84).write(oprot); + xfer += (*_iter86).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2463,17 +2689,17 @@ void swap(PrincipalPrivilegeSet &a, PrincipalPrivilegeSet &b) { swap(a.__isset, b.__isset); } -PrincipalPrivilegeSet::PrincipalPrivilegeSet(const PrincipalPrivilegeSet& other85) { - userPrivileges = other85.userPrivileges; - groupPrivileges = other85.groupPrivileges; - rolePrivileges = other85.rolePrivileges; - __isset = other85.__isset; +PrincipalPrivilegeSet::PrincipalPrivilegeSet(const PrincipalPrivilegeSet& other87) { + userPrivileges = other87.userPrivileges; + groupPrivileges = other87.groupPrivileges; + rolePrivileges = other87.rolePrivileges; + __isset = other87.__isset; } -PrincipalPrivilegeSet& PrincipalPrivilegeSet::operator=(const PrincipalPrivilegeSet& other86) { - userPrivileges = other86.userPrivileges; - groupPrivileges = other86.groupPrivileges; - rolePrivileges = other86.rolePrivileges; - __isset = other86.__isset; +PrincipalPrivilegeSet& PrincipalPrivilegeSet::operator=(const PrincipalPrivilegeSet& other88) { + userPrivileges = other88.userPrivileges; + groupPrivileges = other88.groupPrivileges; + rolePrivileges = other88.rolePrivileges; + __isset = other88.__isset; return *this; } void PrincipalPrivilegeSet::printTo(std::ostream& out) const { @@ -2526,9 +2752,9 @@ uint32_t GrantRevokePrivilegeRequest::read(::apache::thrift::protocol::TProtocol { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast87; - xfer += iprot->readI32(ecast87); - this->requestType = (GrantRevokeType::type)ecast87; + int32_t ecast89; + xfer += iprot->readI32(ecast89); + this->requestType = (GrantRevokeType::type)ecast89; this->__isset.requestType = true; } else { xfer += iprot->skip(ftype); @@ -2593,17 +2819,17 @@ void swap(GrantRevokePrivilegeRequest &a, GrantRevokePrivilegeRequest &b) { swap(a.__isset, b.__isset); } -GrantRevokePrivilegeRequest::GrantRevokePrivilegeRequest(const GrantRevokePrivilegeRequest& other88) { - requestType = other88.requestType; - privileges = other88.privileges; - revokeGrantOption = other88.revokeGrantOption; - __isset = other88.__isset; +GrantRevokePrivilegeRequest::GrantRevokePrivilegeRequest(const GrantRevokePrivilegeRequest& other90) { + requestType = other90.requestType; + privileges = other90.privileges; + revokeGrantOption = other90.revokeGrantOption; + __isset = other90.__isset; } -GrantRevokePrivilegeRequest& GrantRevokePrivilegeRequest::operator=(const GrantRevokePrivilegeRequest& other89) { - requestType = other89.requestType; - privileges = other89.privileges; - revokeGrantOption = other89.revokeGrantOption; - __isset = other89.__isset; +GrantRevokePrivilegeRequest& GrantRevokePrivilegeRequest::operator=(const GrantRevokePrivilegeRequest& other91) { + requestType = other91.requestType; + privileges = other91.privileges; + revokeGrantOption = other91.revokeGrantOption; + __isset = other91.__isset; return *this; } void GrantRevokePrivilegeRequest::printTo(std::ostream& out) const { @@ -2687,13 +2913,13 @@ void swap(GrantRevokePrivilegeResponse &a, GrantRevokePrivilegeResponse &b) { swap(a.__isset, b.__isset); } -GrantRevokePrivilegeResponse::GrantRevokePrivilegeResponse(const GrantRevokePrivilegeResponse& other90) { - success = other90.success; - __isset = other90.__isset; +GrantRevokePrivilegeResponse::GrantRevokePrivilegeResponse(const GrantRevokePrivilegeResponse& other92) { + success = other92.success; + __isset = other92.__isset; } -GrantRevokePrivilegeResponse& GrantRevokePrivilegeResponse::operator=(const GrantRevokePrivilegeResponse& other91) { - success = other91.success; - __isset = other91.__isset; +GrantRevokePrivilegeResponse& GrantRevokePrivilegeResponse::operator=(const GrantRevokePrivilegeResponse& other93) { + success = other93.success; + __isset = other93.__isset; return *this; } void GrantRevokePrivilegeResponse::printTo(std::ostream& out) const { @@ -2807,17 +3033,17 @@ void swap(Role &a, Role &b) { swap(a.__isset, b.__isset); } -Role::Role(const Role& other92) { - roleName = other92.roleName; - createTime = other92.createTime; - ownerName = other92.ownerName; - __isset = other92.__isset; +Role::Role(const Role& other94) { + roleName = other94.roleName; + createTime = other94.createTime; + ownerName = other94.ownerName; + __isset = other94.__isset; } -Role& Role::operator=(const Role& other93) { - roleName = other93.roleName; - createTime = other93.createTime; - ownerName = other93.ownerName; - __isset = other93.__isset; +Role& Role::operator=(const Role& other95) { + roleName = other95.roleName; + createTime = other95.createTime; + ownerName = other95.ownerName; + __isset = other95.__isset; return *this; } void Role::printTo(std::ostream& out) const { @@ -2901,9 +3127,9 @@ uint32_t RolePrincipalGrant::read(::apache::thrift::protocol::TProtocol* iprot) break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast94; - xfer += iprot->readI32(ecast94); - this->principalType = (PrincipalType::type)ecast94; + int32_t ecast96; + xfer += iprot->readI32(ecast96); + this->principalType = (PrincipalType::type)ecast96; this->__isset.principalType = true; } else { xfer += iprot->skip(ftype); @@ -2935,9 +3161,9 @@ uint32_t RolePrincipalGrant::read(::apache::thrift::protocol::TProtocol* iprot) break; case 7: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast95; - xfer += iprot->readI32(ecast95); - this->grantorPrincipalType = (PrincipalType::type)ecast95; + int32_t ecast97; + xfer += iprot->readI32(ecast97); + this->grantorPrincipalType = (PrincipalType::type)ecast97; this->__isset.grantorPrincipalType = true; } else { xfer += iprot->skip(ftype); @@ -3005,25 +3231,25 @@ void swap(RolePrincipalGrant &a, RolePrincipalGrant &b) { swap(a.__isset, b.__isset); } -RolePrincipalGrant::RolePrincipalGrant(const RolePrincipalGrant& other96) { - roleName = other96.roleName; - principalName = other96.principalName; - principalType = other96.principalType; - grantOption = other96.grantOption; - grantTime = other96.grantTime; - grantorName = other96.grantorName; - grantorPrincipalType = other96.grantorPrincipalType; - __isset = other96.__isset; -} -RolePrincipalGrant& RolePrincipalGrant::operator=(const RolePrincipalGrant& other97) { - roleName = other97.roleName; - principalName = other97.principalName; - principalType = other97.principalType; - grantOption = other97.grantOption; - grantTime = other97.grantTime; - grantorName = other97.grantorName; - grantorPrincipalType = other97.grantorPrincipalType; - __isset = other97.__isset; +RolePrincipalGrant::RolePrincipalGrant(const RolePrincipalGrant& other98) { + roleName = other98.roleName; + principalName = other98.principalName; + principalType = other98.principalType; + grantOption = other98.grantOption; + grantTime = other98.grantTime; + grantorName = other98.grantorName; + grantorPrincipalType = other98.grantorPrincipalType; + __isset = other98.__isset; +} +RolePrincipalGrant& RolePrincipalGrant::operator=(const RolePrincipalGrant& other99) { + roleName = other99.roleName; + principalName = other99.principalName; + principalType = other99.principalType; + grantOption = other99.grantOption; + grantTime = other99.grantTime; + grantorName = other99.grantorName; + grantorPrincipalType = other99.grantorPrincipalType; + __isset = other99.__isset; return *this; } void RolePrincipalGrant::printTo(std::ostream& out) const { @@ -3085,9 +3311,9 @@ uint32_t GetRoleGrantsForPrincipalRequest::read(::apache::thrift::protocol::TPro break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast98; - xfer += iprot->readI32(ecast98); - this->principal_type = (PrincipalType::type)ecast98; + int32_t ecast100; + xfer += iprot->readI32(ecast100); + this->principal_type = (PrincipalType::type)ecast100; isset_principal_type = true; } else { xfer += iprot->skip(ftype); @@ -3133,13 +3359,13 @@ void swap(GetRoleGrantsForPrincipalRequest &a, GetRoleGrantsForPrincipalRequest swap(a.principal_type, b.principal_type); } -GetRoleGrantsForPrincipalRequest::GetRoleGrantsForPrincipalRequest(const GetRoleGrantsForPrincipalRequest& other99) { - principal_name = other99.principal_name; - principal_type = other99.principal_type; +GetRoleGrantsForPrincipalRequest::GetRoleGrantsForPrincipalRequest(const GetRoleGrantsForPrincipalRequest& other101) { + principal_name = other101.principal_name; + principal_type = other101.principal_type; } -GetRoleGrantsForPrincipalRequest& GetRoleGrantsForPrincipalRequest::operator=(const GetRoleGrantsForPrincipalRequest& other100) { - principal_name = other100.principal_name; - principal_type = other100.principal_type; +GetRoleGrantsForPrincipalRequest& GetRoleGrantsForPrincipalRequest::operator=(const GetRoleGrantsForPrincipalRequest& other102) { + principal_name = other102.principal_name; + principal_type = other102.principal_type; return *this; } void GetRoleGrantsForPrincipalRequest::printTo(std::ostream& out) const { @@ -3185,14 +3411,14 @@ uint32_t GetRoleGrantsForPrincipalResponse::read(::apache::thrift::protocol::TPr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->principalGrants.clear(); - uint32_t _size101; - ::apache::thrift::protocol::TType _etype104; - xfer += iprot->readListBegin(_etype104, _size101); - this->principalGrants.resize(_size101); - uint32_t _i105; - for (_i105 = 0; _i105 < _size101; ++_i105) + uint32_t _size103; + ::apache::thrift::protocol::TType _etype106; + xfer += iprot->readListBegin(_etype106, _size103); + this->principalGrants.resize(_size103); + uint32_t _i107; + for (_i107 = 0; _i107 < _size103; ++_i107) { - xfer += this->principalGrants[_i105].read(iprot); + xfer += this->principalGrants[_i107].read(iprot); } xfer += iprot->readListEnd(); } @@ -3223,10 +3449,10 @@ uint32_t GetRoleGrantsForPrincipalResponse::write(::apache::thrift::protocol::TP xfer += oprot->writeFieldBegin("principalGrants", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->principalGrants.size())); - std::vector ::const_iterator _iter106; - for (_iter106 = this->principalGrants.begin(); _iter106 != this->principalGrants.end(); ++_iter106) + std::vector ::const_iterator _iter108; + for (_iter108 = this->principalGrants.begin(); _iter108 != this->principalGrants.end(); ++_iter108) { - xfer += (*_iter106).write(oprot); + xfer += (*_iter108).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3242,11 +3468,11 @@ void swap(GetRoleGrantsForPrincipalResponse &a, GetRoleGrantsForPrincipalRespons swap(a.principalGrants, b.principalGrants); } -GetRoleGrantsForPrincipalResponse::GetRoleGrantsForPrincipalResponse(const GetRoleGrantsForPrincipalResponse& other107) { - principalGrants = other107.principalGrants; +GetRoleGrantsForPrincipalResponse::GetRoleGrantsForPrincipalResponse(const GetRoleGrantsForPrincipalResponse& other109) { + principalGrants = other109.principalGrants; } -GetRoleGrantsForPrincipalResponse& GetRoleGrantsForPrincipalResponse::operator=(const GetRoleGrantsForPrincipalResponse& other108) { - principalGrants = other108.principalGrants; +GetRoleGrantsForPrincipalResponse& GetRoleGrantsForPrincipalResponse::operator=(const GetRoleGrantsForPrincipalResponse& other110) { + principalGrants = other110.principalGrants; return *this; } void GetRoleGrantsForPrincipalResponse::printTo(std::ostream& out) const { @@ -3328,11 +3554,11 @@ void swap(GetPrincipalsInRoleRequest &a, GetPrincipalsInRoleRequest &b) { swap(a.roleName, b.roleName); } -GetPrincipalsInRoleRequest::GetPrincipalsInRoleRequest(const GetPrincipalsInRoleRequest& other109) { - roleName = other109.roleName; +GetPrincipalsInRoleRequest::GetPrincipalsInRoleRequest(const GetPrincipalsInRoleRequest& other111) { + roleName = other111.roleName; } -GetPrincipalsInRoleRequest& GetPrincipalsInRoleRequest::operator=(const GetPrincipalsInRoleRequest& other110) { - roleName = other110.roleName; +GetPrincipalsInRoleRequest& GetPrincipalsInRoleRequest::operator=(const GetPrincipalsInRoleRequest& other112) { + roleName = other112.roleName; return *this; } void GetPrincipalsInRoleRequest::printTo(std::ostream& out) const { @@ -3377,14 +3603,14 @@ uint32_t GetPrincipalsInRoleResponse::read(::apache::thrift::protocol::TProtocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->principalGrants.clear(); - uint32_t _size111; - ::apache::thrift::protocol::TType _etype114; - xfer += iprot->readListBegin(_etype114, _size111); - this->principalGrants.resize(_size111); - uint32_t _i115; - for (_i115 = 0; _i115 < _size111; ++_i115) + uint32_t _size113; + ::apache::thrift::protocol::TType _etype116; + xfer += iprot->readListBegin(_etype116, _size113); + this->principalGrants.resize(_size113); + uint32_t _i117; + for (_i117 = 0; _i117 < _size113; ++_i117) { - xfer += this->principalGrants[_i115].read(iprot); + xfer += this->principalGrants[_i117].read(iprot); } xfer += iprot->readListEnd(); } @@ -3415,10 +3641,10 @@ uint32_t GetPrincipalsInRoleResponse::write(::apache::thrift::protocol::TProtoco xfer += oprot->writeFieldBegin("principalGrants", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->principalGrants.size())); - std::vector ::const_iterator _iter116; - for (_iter116 = this->principalGrants.begin(); _iter116 != this->principalGrants.end(); ++_iter116) + std::vector ::const_iterator _iter118; + for (_iter118 = this->principalGrants.begin(); _iter118 != this->principalGrants.end(); ++_iter118) { - xfer += (*_iter116).write(oprot); + xfer += (*_iter118).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3434,11 +3660,11 @@ void swap(GetPrincipalsInRoleResponse &a, GetPrincipalsInRoleResponse &b) { swap(a.principalGrants, b.principalGrants); } -GetPrincipalsInRoleResponse::GetPrincipalsInRoleResponse(const GetPrincipalsInRoleResponse& other117) { - principalGrants = other117.principalGrants; +GetPrincipalsInRoleResponse::GetPrincipalsInRoleResponse(const GetPrincipalsInRoleResponse& other119) { + principalGrants = other119.principalGrants; } -GetPrincipalsInRoleResponse& GetPrincipalsInRoleResponse::operator=(const GetPrincipalsInRoleResponse& other118) { - principalGrants = other118.principalGrants; +GetPrincipalsInRoleResponse& GetPrincipalsInRoleResponse::operator=(const GetPrincipalsInRoleResponse& other120) { + principalGrants = other120.principalGrants; return *this; } void GetPrincipalsInRoleResponse::printTo(std::ostream& out) const { @@ -3507,9 +3733,9 @@ uint32_t GrantRevokeRoleRequest::read(::apache::thrift::protocol::TProtocol* ipr { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast119; - xfer += iprot->readI32(ecast119); - this->requestType = (GrantRevokeType::type)ecast119; + int32_t ecast121; + xfer += iprot->readI32(ecast121); + this->requestType = (GrantRevokeType::type)ecast121; this->__isset.requestType = true; } else { xfer += iprot->skip(ftype); @@ -3533,9 +3759,9 @@ uint32_t GrantRevokeRoleRequest::read(::apache::thrift::protocol::TProtocol* ipr break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast120; - xfer += iprot->readI32(ecast120); - this->principalType = (PrincipalType::type)ecast120; + int32_t ecast122; + xfer += iprot->readI32(ecast122); + this->principalType = (PrincipalType::type)ecast122; this->__isset.principalType = true; } else { xfer += iprot->skip(ftype); @@ -3551,9 +3777,9 @@ uint32_t GrantRevokeRoleRequest::read(::apache::thrift::protocol::TProtocol* ipr break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast121; - xfer += iprot->readI32(ecast121); - this->grantorType = (PrincipalType::type)ecast121; + int32_t ecast123; + xfer += iprot->readI32(ecast123); + this->grantorType = (PrincipalType::type)ecast123; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -3632,25 +3858,25 @@ void swap(GrantRevokeRoleRequest &a, GrantRevokeRoleRequest &b) { swap(a.__isset, b.__isset); } -GrantRevokeRoleRequest::GrantRevokeRoleRequest(const GrantRevokeRoleRequest& other122) { - requestType = other122.requestType; - roleName = other122.roleName; - principalName = other122.principalName; - principalType = other122.principalType; - grantor = other122.grantor; - grantorType = other122.grantorType; - grantOption = other122.grantOption; - __isset = other122.__isset; -} -GrantRevokeRoleRequest& GrantRevokeRoleRequest::operator=(const GrantRevokeRoleRequest& other123) { - requestType = other123.requestType; - roleName = other123.roleName; - principalName = other123.principalName; - principalType = other123.principalType; - grantor = other123.grantor; - grantorType = other123.grantorType; - grantOption = other123.grantOption; - __isset = other123.__isset; +GrantRevokeRoleRequest::GrantRevokeRoleRequest(const GrantRevokeRoleRequest& other124) { + requestType = other124.requestType; + roleName = other124.roleName; + principalName = other124.principalName; + principalType = other124.principalType; + grantor = other124.grantor; + grantorType = other124.grantorType; + grantOption = other124.grantOption; + __isset = other124.__isset; +} +GrantRevokeRoleRequest& GrantRevokeRoleRequest::operator=(const GrantRevokeRoleRequest& other125) { + requestType = other125.requestType; + roleName = other125.roleName; + principalName = other125.principalName; + principalType = other125.principalType; + grantor = other125.grantor; + grantorType = other125.grantorType; + grantOption = other125.grantOption; + __isset = other125.__isset; return *this; } void GrantRevokeRoleRequest::printTo(std::ostream& out) const { @@ -3738,13 +3964,13 @@ void swap(GrantRevokeRoleResponse &a, GrantRevokeRoleResponse &b) { swap(a.__isset, b.__isset); } -GrantRevokeRoleResponse::GrantRevokeRoleResponse(const GrantRevokeRoleResponse& other124) { - success = other124.success; - __isset = other124.__isset; +GrantRevokeRoleResponse::GrantRevokeRoleResponse(const GrantRevokeRoleResponse& other126) { + success = other126.success; + __isset = other126.__isset; } -GrantRevokeRoleResponse& GrantRevokeRoleResponse::operator=(const GrantRevokeRoleResponse& other125) { - success = other125.success; - __isset = other125.__isset; +GrantRevokeRoleResponse& GrantRevokeRoleResponse::operator=(const GrantRevokeRoleResponse& other127) { + success = other127.success; + __isset = other127.__isset; return *this; } void GrantRevokeRoleResponse::printTo(std::ostream& out) const { @@ -3839,17 +4065,17 @@ uint32_t Database::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size126; - ::apache::thrift::protocol::TType _ktype127; - ::apache::thrift::protocol::TType _vtype128; - xfer += iprot->readMapBegin(_ktype127, _vtype128, _size126); - uint32_t _i130; - for (_i130 = 0; _i130 < _size126; ++_i130) + uint32_t _size128; + ::apache::thrift::protocol::TType _ktype129; + ::apache::thrift::protocol::TType _vtype130; + xfer += iprot->readMapBegin(_ktype129, _vtype130, _size128); + uint32_t _i132; + for (_i132 = 0; _i132 < _size128; ++_i132) { - std::string _key131; - xfer += iprot->readString(_key131); - std::string& _val132 = this->parameters[_key131]; - xfer += iprot->readString(_val132); + std::string _key133; + xfer += iprot->readString(_key133); + std::string& _val134 = this->parameters[_key133]; + xfer += iprot->readString(_val134); } xfer += iprot->readMapEnd(); } @@ -3876,9 +4102,9 @@ uint32_t Database::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 7: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast133; - xfer += iprot->readI32(ecast133); - this->ownerType = (PrincipalType::type)ecast133; + int32_t ecast135; + xfer += iprot->readI32(ecast135); + this->ownerType = (PrincipalType::type)ecast135; this->__isset.ownerType = true; } else { xfer += iprot->skip(ftype); @@ -3916,11 +4142,11 @@ uint32_t Database::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 4); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter134; - for (_iter134 = this->parameters.begin(); _iter134 != this->parameters.end(); ++_iter134) + std::map ::const_iterator _iter136; + for (_iter136 = this->parameters.begin(); _iter136 != this->parameters.end(); ++_iter136) { - xfer += oprot->writeString(_iter134->first); - xfer += oprot->writeString(_iter134->second); + xfer += oprot->writeString(_iter136->first); + xfer += oprot->writeString(_iter136->second); } xfer += oprot->writeMapEnd(); } @@ -3958,25 +4184,25 @@ void swap(Database &a, Database &b) { swap(a.__isset, b.__isset); } -Database::Database(const Database& other135) { - name = other135.name; - description = other135.description; - locationUri = other135.locationUri; - parameters = other135.parameters; - privileges = other135.privileges; - ownerName = other135.ownerName; - ownerType = other135.ownerType; - __isset = other135.__isset; -} -Database& Database::operator=(const Database& other136) { - name = other136.name; - description = other136.description; - locationUri = other136.locationUri; - parameters = other136.parameters; - privileges = other136.privileges; - ownerName = other136.ownerName; - ownerType = other136.ownerType; - __isset = other136.__isset; +Database::Database(const Database& other137) { + name = other137.name; + description = other137.description; + locationUri = other137.locationUri; + parameters = other137.parameters; + privileges = other137.privileges; + ownerName = other137.ownerName; + ownerType = other137.ownerType; + __isset = other137.__isset; +} +Database& Database::operator=(const Database& other138) { + name = other138.name; + description = other138.description; + locationUri = other138.locationUri; + parameters = other138.parameters; + privileges = other138.privileges; + ownerName = other138.ownerName; + ownerType = other138.ownerType; + __isset = other138.__isset; return *this; } void Database::printTo(std::ostream& out) const { @@ -4050,17 +4276,17 @@ uint32_t SerDeInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size137; - ::apache::thrift::protocol::TType _ktype138; - ::apache::thrift::protocol::TType _vtype139; - xfer += iprot->readMapBegin(_ktype138, _vtype139, _size137); - uint32_t _i141; - for (_i141 = 0; _i141 < _size137; ++_i141) + uint32_t _size139; + ::apache::thrift::protocol::TType _ktype140; + ::apache::thrift::protocol::TType _vtype141; + xfer += iprot->readMapBegin(_ktype140, _vtype141, _size139); + uint32_t _i143; + for (_i143 = 0; _i143 < _size139; ++_i143) { - std::string _key142; - xfer += iprot->readString(_key142); - std::string& _val143 = this->parameters[_key142]; - xfer += iprot->readString(_val143); + std::string _key144; + xfer += iprot->readString(_key144); + std::string& _val145 = this->parameters[_key144]; + xfer += iprot->readString(_val145); } xfer += iprot->readMapEnd(); } @@ -4097,11 +4323,11 @@ uint32_t SerDeInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter144; - for (_iter144 = this->parameters.begin(); _iter144 != this->parameters.end(); ++_iter144) + std::map ::const_iterator _iter146; + for (_iter146 = this->parameters.begin(); _iter146 != this->parameters.end(); ++_iter146) { - xfer += oprot->writeString(_iter144->first); - xfer += oprot->writeString(_iter144->second); + xfer += oprot->writeString(_iter146->first); + xfer += oprot->writeString(_iter146->second); } xfer += oprot->writeMapEnd(); } @@ -4120,17 +4346,17 @@ void swap(SerDeInfo &a, SerDeInfo &b) { swap(a.__isset, b.__isset); } -SerDeInfo::SerDeInfo(const SerDeInfo& other145) { - name = other145.name; - serializationLib = other145.serializationLib; - parameters = other145.parameters; - __isset = other145.__isset; +SerDeInfo::SerDeInfo(const SerDeInfo& other147) { + name = other147.name; + serializationLib = other147.serializationLib; + parameters = other147.parameters; + __isset = other147.__isset; } -SerDeInfo& SerDeInfo::operator=(const SerDeInfo& other146) { - name = other146.name; - serializationLib = other146.serializationLib; - parameters = other146.parameters; - __isset = other146.__isset; +SerDeInfo& SerDeInfo::operator=(const SerDeInfo& other148) { + name = other148.name; + serializationLib = other148.serializationLib; + parameters = other148.parameters; + __isset = other148.__isset; return *this; } void SerDeInfo::printTo(std::ostream& out) const { @@ -4229,15 +4455,15 @@ void swap(Order &a, Order &b) { swap(a.__isset, b.__isset); } -Order::Order(const Order& other147) { - col = other147.col; - order = other147.order; - __isset = other147.__isset; +Order::Order(const Order& other149) { + col = other149.col; + order = other149.order; + __isset = other149.__isset; } -Order& Order::operator=(const Order& other148) { - col = other148.col; - order = other148.order; - __isset = other148.__isset; +Order& Order::operator=(const Order& other150) { + col = other150.col; + order = other150.order; + __isset = other150.__isset; return *this; } void Order::printTo(std::ostream& out) const { @@ -4290,14 +4516,14 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->skewedColNames.clear(); - uint32_t _size149; - ::apache::thrift::protocol::TType _etype152; - xfer += iprot->readListBegin(_etype152, _size149); - this->skewedColNames.resize(_size149); - uint32_t _i153; - for (_i153 = 0; _i153 < _size149; ++_i153) + uint32_t _size151; + ::apache::thrift::protocol::TType _etype154; + xfer += iprot->readListBegin(_etype154, _size151); + this->skewedColNames.resize(_size151); + uint32_t _i155; + for (_i155 = 0; _i155 < _size151; ++_i155) { - xfer += iprot->readString(this->skewedColNames[_i153]); + xfer += iprot->readString(this->skewedColNames[_i155]); } xfer += iprot->readListEnd(); } @@ -4310,23 +4536,23 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->skewedColValues.clear(); - uint32_t _size154; - ::apache::thrift::protocol::TType _etype157; - xfer += iprot->readListBegin(_etype157, _size154); - this->skewedColValues.resize(_size154); - uint32_t _i158; - for (_i158 = 0; _i158 < _size154; ++_i158) + uint32_t _size156; + ::apache::thrift::protocol::TType _etype159; + xfer += iprot->readListBegin(_etype159, _size156); + this->skewedColValues.resize(_size156); + uint32_t _i160; + for (_i160 = 0; _i160 < _size156; ++_i160) { { - this->skewedColValues[_i158].clear(); - uint32_t _size159; - ::apache::thrift::protocol::TType _etype162; - xfer += iprot->readListBegin(_etype162, _size159); - this->skewedColValues[_i158].resize(_size159); - uint32_t _i163; - for (_i163 = 0; _i163 < _size159; ++_i163) + this->skewedColValues[_i160].clear(); + uint32_t _size161; + ::apache::thrift::protocol::TType _etype164; + xfer += iprot->readListBegin(_etype164, _size161); + this->skewedColValues[_i160].resize(_size161); + uint32_t _i165; + for (_i165 = 0; _i165 < _size161; ++_i165) { - xfer += iprot->readString(this->skewedColValues[_i158][_i163]); + xfer += iprot->readString(this->skewedColValues[_i160][_i165]); } xfer += iprot->readListEnd(); } @@ -4342,29 +4568,29 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->skewedColValueLocationMaps.clear(); - uint32_t _size164; - ::apache::thrift::protocol::TType _ktype165; - ::apache::thrift::protocol::TType _vtype166; - xfer += iprot->readMapBegin(_ktype165, _vtype166, _size164); - uint32_t _i168; - for (_i168 = 0; _i168 < _size164; ++_i168) + uint32_t _size166; + ::apache::thrift::protocol::TType _ktype167; + ::apache::thrift::protocol::TType _vtype168; + xfer += iprot->readMapBegin(_ktype167, _vtype168, _size166); + uint32_t _i170; + for (_i170 = 0; _i170 < _size166; ++_i170) { - std::vector _key169; + std::vector _key171; { - _key169.clear(); - uint32_t _size171; - ::apache::thrift::protocol::TType _etype174; - xfer += iprot->readListBegin(_etype174, _size171); - _key169.resize(_size171); - uint32_t _i175; - for (_i175 = 0; _i175 < _size171; ++_i175) + _key171.clear(); + uint32_t _size173; + ::apache::thrift::protocol::TType _etype176; + xfer += iprot->readListBegin(_etype176, _size173); + _key171.resize(_size173); + uint32_t _i177; + for (_i177 = 0; _i177 < _size173; ++_i177) { - xfer += iprot->readString(_key169[_i175]); + xfer += iprot->readString(_key171[_i177]); } xfer += iprot->readListEnd(); } - std::string& _val170 = this->skewedColValueLocationMaps[_key169]; - xfer += iprot->readString(_val170); + std::string& _val172 = this->skewedColValueLocationMaps[_key171]; + xfer += iprot->readString(_val172); } xfer += iprot->readMapEnd(); } @@ -4393,10 +4619,10 @@ uint32_t SkewedInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("skewedColNames", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->skewedColNames.size())); - std::vector ::const_iterator _iter176; - for (_iter176 = this->skewedColNames.begin(); _iter176 != this->skewedColNames.end(); ++_iter176) + std::vector ::const_iterator _iter178; + for (_iter178 = this->skewedColNames.begin(); _iter178 != this->skewedColNames.end(); ++_iter178) { - xfer += oprot->writeString((*_iter176)); + xfer += oprot->writeString((*_iter178)); } xfer += oprot->writeListEnd(); } @@ -4405,15 +4631,15 @@ uint32_t SkewedInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("skewedColValues", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_LIST, static_cast(this->skewedColValues.size())); - std::vector > ::const_iterator _iter177; - for (_iter177 = this->skewedColValues.begin(); _iter177 != this->skewedColValues.end(); ++_iter177) + std::vector > ::const_iterator _iter179; + for (_iter179 = this->skewedColValues.begin(); _iter179 != this->skewedColValues.end(); ++_iter179) { { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*_iter177).size())); - std::vector ::const_iterator _iter178; - for (_iter178 = (*_iter177).begin(); _iter178 != (*_iter177).end(); ++_iter178) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*_iter179).size())); + std::vector ::const_iterator _iter180; + for (_iter180 = (*_iter179).begin(); _iter180 != (*_iter179).end(); ++_iter180) { - xfer += oprot->writeString((*_iter178)); + xfer += oprot->writeString((*_iter180)); } xfer += oprot->writeListEnd(); } @@ -4425,19 +4651,19 @@ uint32_t SkewedInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("skewedColValueLocationMaps", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_LIST, ::apache::thrift::protocol::T_STRING, static_cast(this->skewedColValueLocationMaps.size())); - std::map , std::string> ::const_iterator _iter179; - for (_iter179 = this->skewedColValueLocationMaps.begin(); _iter179 != this->skewedColValueLocationMaps.end(); ++_iter179) + std::map , std::string> ::const_iterator _iter181; + for (_iter181 = this->skewedColValueLocationMaps.begin(); _iter181 != this->skewedColValueLocationMaps.end(); ++_iter181) { { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(_iter179->first.size())); - std::vector ::const_iterator _iter180; - for (_iter180 = _iter179->first.begin(); _iter180 != _iter179->first.end(); ++_iter180) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(_iter181->first.size())); + std::vector ::const_iterator _iter182; + for (_iter182 = _iter181->first.begin(); _iter182 != _iter181->first.end(); ++_iter182) { - xfer += oprot->writeString((*_iter180)); + xfer += oprot->writeString((*_iter182)); } xfer += oprot->writeListEnd(); } - xfer += oprot->writeString(_iter179->second); + xfer += oprot->writeString(_iter181->second); } xfer += oprot->writeMapEnd(); } @@ -4456,17 +4682,17 @@ void swap(SkewedInfo &a, SkewedInfo &b) { swap(a.__isset, b.__isset); } -SkewedInfo::SkewedInfo(const SkewedInfo& other181) { - skewedColNames = other181.skewedColNames; - skewedColValues = other181.skewedColValues; - skewedColValueLocationMaps = other181.skewedColValueLocationMaps; - __isset = other181.__isset; +SkewedInfo::SkewedInfo(const SkewedInfo& other183) { + skewedColNames = other183.skewedColNames; + skewedColValues = other183.skewedColValues; + skewedColValueLocationMaps = other183.skewedColValueLocationMaps; + __isset = other183.__isset; } -SkewedInfo& SkewedInfo::operator=(const SkewedInfo& other182) { - skewedColNames = other182.skewedColNames; - skewedColValues = other182.skewedColValues; - skewedColValueLocationMaps = other182.skewedColValueLocationMaps; - __isset = other182.__isset; +SkewedInfo& SkewedInfo::operator=(const SkewedInfo& other184) { + skewedColNames = other184.skewedColNames; + skewedColValues = other184.skewedColValues; + skewedColValueLocationMaps = other184.skewedColValueLocationMaps; + __isset = other184.__isset; return *this; } void SkewedInfo::printTo(std::ostream& out) const { @@ -4558,14 +4784,14 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->cols.clear(); - uint32_t _size183; - ::apache::thrift::protocol::TType _etype186; - xfer += iprot->readListBegin(_etype186, _size183); - this->cols.resize(_size183); - uint32_t _i187; - for (_i187 = 0; _i187 < _size183; ++_i187) + uint32_t _size185; + ::apache::thrift::protocol::TType _etype188; + xfer += iprot->readListBegin(_etype188, _size185); + this->cols.resize(_size185); + uint32_t _i189; + for (_i189 = 0; _i189 < _size185; ++_i189) { - xfer += this->cols[_i187].read(iprot); + xfer += this->cols[_i189].read(iprot); } xfer += iprot->readListEnd(); } @@ -4626,14 +4852,14 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->bucketCols.clear(); - uint32_t _size188; - ::apache::thrift::protocol::TType _etype191; - xfer += iprot->readListBegin(_etype191, _size188); - this->bucketCols.resize(_size188); - uint32_t _i192; - for (_i192 = 0; _i192 < _size188; ++_i192) + uint32_t _size190; + ::apache::thrift::protocol::TType _etype193; + xfer += iprot->readListBegin(_etype193, _size190); + this->bucketCols.resize(_size190); + uint32_t _i194; + for (_i194 = 0; _i194 < _size190; ++_i194) { - xfer += iprot->readString(this->bucketCols[_i192]); + xfer += iprot->readString(this->bucketCols[_i194]); } xfer += iprot->readListEnd(); } @@ -4646,14 +4872,14 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->sortCols.clear(); - uint32_t _size193; - ::apache::thrift::protocol::TType _etype196; - xfer += iprot->readListBegin(_etype196, _size193); - this->sortCols.resize(_size193); - uint32_t _i197; - for (_i197 = 0; _i197 < _size193; ++_i197) + uint32_t _size195; + ::apache::thrift::protocol::TType _etype198; + xfer += iprot->readListBegin(_etype198, _size195); + this->sortCols.resize(_size195); + uint32_t _i199; + for (_i199 = 0; _i199 < _size195; ++_i199) { - xfer += this->sortCols[_i197].read(iprot); + xfer += this->sortCols[_i199].read(iprot); } xfer += iprot->readListEnd(); } @@ -4666,17 +4892,17 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size198; - ::apache::thrift::protocol::TType _ktype199; - ::apache::thrift::protocol::TType _vtype200; - xfer += iprot->readMapBegin(_ktype199, _vtype200, _size198); - uint32_t _i202; - for (_i202 = 0; _i202 < _size198; ++_i202) + uint32_t _size200; + ::apache::thrift::protocol::TType _ktype201; + ::apache::thrift::protocol::TType _vtype202; + xfer += iprot->readMapBegin(_ktype201, _vtype202, _size200); + uint32_t _i204; + for (_i204 = 0; _i204 < _size200; ++_i204) { - std::string _key203; - xfer += iprot->readString(_key203); - std::string& _val204 = this->parameters[_key203]; - xfer += iprot->readString(_val204); + std::string _key205; + xfer += iprot->readString(_key205); + std::string& _val206 = this->parameters[_key205]; + xfer += iprot->readString(_val206); } xfer += iprot->readMapEnd(); } @@ -4721,10 +4947,10 @@ uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("cols", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->cols.size())); - std::vector ::const_iterator _iter205; - for (_iter205 = this->cols.begin(); _iter205 != this->cols.end(); ++_iter205) + std::vector ::const_iterator _iter207; + for (_iter207 = this->cols.begin(); _iter207 != this->cols.end(); ++_iter207) { - xfer += (*_iter205).write(oprot); + xfer += (*_iter207).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4757,10 +4983,10 @@ uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("bucketCols", ::apache::thrift::protocol::T_LIST, 8); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->bucketCols.size())); - std::vector ::const_iterator _iter206; - for (_iter206 = this->bucketCols.begin(); _iter206 != this->bucketCols.end(); ++_iter206) + std::vector ::const_iterator _iter208; + for (_iter208 = this->bucketCols.begin(); _iter208 != this->bucketCols.end(); ++_iter208) { - xfer += oprot->writeString((*_iter206)); + xfer += oprot->writeString((*_iter208)); } xfer += oprot->writeListEnd(); } @@ -4769,10 +4995,10 @@ uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("sortCols", ::apache::thrift::protocol::T_LIST, 9); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->sortCols.size())); - std::vector ::const_iterator _iter207; - for (_iter207 = this->sortCols.begin(); _iter207 != this->sortCols.end(); ++_iter207) + std::vector ::const_iterator _iter209; + for (_iter209 = this->sortCols.begin(); _iter209 != this->sortCols.end(); ++_iter209) { - xfer += (*_iter207).write(oprot); + xfer += (*_iter209).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4781,11 +5007,11 @@ uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 10); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter208; - for (_iter208 = this->parameters.begin(); _iter208 != this->parameters.end(); ++_iter208) + std::map ::const_iterator _iter210; + for (_iter210 = this->parameters.begin(); _iter210 != this->parameters.end(); ++_iter210) { - xfer += oprot->writeString(_iter208->first); - xfer += oprot->writeString(_iter208->second); + xfer += oprot->writeString(_iter210->first); + xfer += oprot->writeString(_iter210->second); } xfer += oprot->writeMapEnd(); } @@ -4823,35 +5049,35 @@ void swap(StorageDescriptor &a, StorageDescriptor &b) { swap(a.__isset, b.__isset); } -StorageDescriptor::StorageDescriptor(const StorageDescriptor& other209) { - cols = other209.cols; - location = other209.location; - inputFormat = other209.inputFormat; - outputFormat = other209.outputFormat; - compressed = other209.compressed; - numBuckets = other209.numBuckets; - serdeInfo = other209.serdeInfo; - bucketCols = other209.bucketCols; - sortCols = other209.sortCols; - parameters = other209.parameters; - skewedInfo = other209.skewedInfo; - storedAsSubDirectories = other209.storedAsSubDirectories; - __isset = other209.__isset; -} -StorageDescriptor& StorageDescriptor::operator=(const StorageDescriptor& other210) { - cols = other210.cols; - location = other210.location; - inputFormat = other210.inputFormat; - outputFormat = other210.outputFormat; - compressed = other210.compressed; - numBuckets = other210.numBuckets; - serdeInfo = other210.serdeInfo; - bucketCols = other210.bucketCols; - sortCols = other210.sortCols; - parameters = other210.parameters; - skewedInfo = other210.skewedInfo; - storedAsSubDirectories = other210.storedAsSubDirectories; - __isset = other210.__isset; +StorageDescriptor::StorageDescriptor(const StorageDescriptor& other211) { + cols = other211.cols; + location = other211.location; + inputFormat = other211.inputFormat; + outputFormat = other211.outputFormat; + compressed = other211.compressed; + numBuckets = other211.numBuckets; + serdeInfo = other211.serdeInfo; + bucketCols = other211.bucketCols; + sortCols = other211.sortCols; + parameters = other211.parameters; + skewedInfo = other211.skewedInfo; + storedAsSubDirectories = other211.storedAsSubDirectories; + __isset = other211.__isset; +} +StorageDescriptor& StorageDescriptor::operator=(const StorageDescriptor& other212) { + cols = other212.cols; + location = other212.location; + inputFormat = other212.inputFormat; + outputFormat = other212.outputFormat; + compressed = other212.compressed; + numBuckets = other212.numBuckets; + serdeInfo = other212.serdeInfo; + bucketCols = other212.bucketCols; + sortCols = other212.sortCols; + parameters = other212.parameters; + skewedInfo = other212.skewedInfo; + storedAsSubDirectories = other212.storedAsSubDirectories; + __isset = other212.__isset; return *this; } void StorageDescriptor::printTo(std::ostream& out) const { @@ -5026,14 +5252,14 @@ uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionKeys.clear(); - uint32_t _size211; - ::apache::thrift::protocol::TType _etype214; - xfer += iprot->readListBegin(_etype214, _size211); - this->partitionKeys.resize(_size211); - uint32_t _i215; - for (_i215 = 0; _i215 < _size211; ++_i215) + uint32_t _size213; + ::apache::thrift::protocol::TType _etype216; + xfer += iprot->readListBegin(_etype216, _size213); + this->partitionKeys.resize(_size213); + uint32_t _i217; + for (_i217 = 0; _i217 < _size213; ++_i217) { - xfer += this->partitionKeys[_i215].read(iprot); + xfer += this->partitionKeys[_i217].read(iprot); } xfer += iprot->readListEnd(); } @@ -5046,17 +5272,17 @@ uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size216; - ::apache::thrift::protocol::TType _ktype217; - ::apache::thrift::protocol::TType _vtype218; - xfer += iprot->readMapBegin(_ktype217, _vtype218, _size216); - uint32_t _i220; - for (_i220 = 0; _i220 < _size216; ++_i220) + uint32_t _size218; + ::apache::thrift::protocol::TType _ktype219; + ::apache::thrift::protocol::TType _vtype220; + xfer += iprot->readMapBegin(_ktype219, _vtype220, _size218); + uint32_t _i222; + for (_i222 = 0; _i222 < _size218; ++_i222) { - std::string _key221; - xfer += iprot->readString(_key221); - std::string& _val222 = this->parameters[_key221]; - xfer += iprot->readString(_val222); + std::string _key223; + xfer += iprot->readString(_key223); + std::string& _val224 = this->parameters[_key223]; + xfer += iprot->readString(_val224); } xfer += iprot->readMapEnd(); } @@ -5169,10 +5395,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 _iter225; + for (_iter225 = this->partitionKeys.begin(); _iter225 != this->partitionKeys.end(); ++_iter225) { - xfer += (*_iter223).write(oprot); + xfer += (*_iter225).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5181,11 +5407,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 _iter226; + for (_iter226 = this->parameters.begin(); _iter226 != this->parameters.end(); ++_iter226) { - xfer += oprot->writeString(_iter224->first); - xfer += oprot->writeString(_iter224->second); + xfer += oprot->writeString(_iter226->first); + xfer += oprot->writeString(_iter226->second); } xfer += oprot->writeMapEnd(); } @@ -5249,43 +5475,43 @@ void swap(Table &a, Table &b) { 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; - creationMetadata = other225.creationMetadata; - __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; - creationMetadata = other226.creationMetadata; - __isset = other226.__isset; +Table::Table(const Table& other227) { + tableName = other227.tableName; + dbName = other227.dbName; + owner = other227.owner; + createTime = other227.createTime; + lastAccessTime = other227.lastAccessTime; + retention = other227.retention; + sd = other227.sd; + partitionKeys = other227.partitionKeys; + parameters = other227.parameters; + viewOriginalText = other227.viewOriginalText; + viewExpandedText = other227.viewExpandedText; + tableType = other227.tableType; + privileges = other227.privileges; + temporary = other227.temporary; + rewriteEnabled = other227.rewriteEnabled; + creationMetadata = other227.creationMetadata; + __isset = other227.__isset; +} +Table& Table::operator=(const Table& other228) { + tableName = other228.tableName; + dbName = other228.dbName; + owner = other228.owner; + createTime = other228.createTime; + lastAccessTime = other228.lastAccessTime; + retention = other228.retention; + sd = other228.sd; + partitionKeys = other228.partitionKeys; + parameters = other228.parameters; + viewOriginalText = other228.viewOriginalText; + viewExpandedText = other228.viewExpandedText; + tableType = other228.tableType; + privileges = other228.privileges; + temporary = other228.temporary; + rewriteEnabled = other228.rewriteEnabled; + creationMetadata = other228.creationMetadata; + __isset = other228.__isset; return *this; } void Table::printTo(std::ostream& out) const { @@ -5373,14 +5599,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 _size229; + ::apache::thrift::protocol::TType _etype232; + xfer += iprot->readListBegin(_etype232, _size229); + this->values.resize(_size229); + uint32_t _i233; + for (_i233 = 0; _i233 < _size229; ++_i233) { - xfer += iprot->readString(this->values[_i231]); + xfer += iprot->readString(this->values[_i233]); } xfer += iprot->readListEnd(); } @@ -5433,17 +5659,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 _size234; + ::apache::thrift::protocol::TType _ktype235; + ::apache::thrift::protocol::TType _vtype236; + xfer += iprot->readMapBegin(_ktype235, _vtype236, _size234); + uint32_t _i238; + for (_i238 = 0; _i238 < _size234; ++_i238) { - std::string _key237; - xfer += iprot->readString(_key237); - std::string& _val238 = this->parameters[_key237]; - xfer += iprot->readString(_val238); + std::string _key239; + xfer += iprot->readString(_key239); + std::string& _val240 = this->parameters[_key239]; + xfer += iprot->readString(_val240); } xfer += iprot->readMapEnd(); } @@ -5480,10 +5706,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 _iter241; + for (_iter241 = this->values.begin(); _iter241 != this->values.end(); ++_iter241) { - xfer += oprot->writeString((*_iter239)); + xfer += oprot->writeString((*_iter241)); } xfer += oprot->writeListEnd(); } @@ -5512,11 +5738,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 _iter242; + for (_iter242 = this->parameters.begin(); _iter242 != this->parameters.end(); ++_iter242) { - xfer += oprot->writeString(_iter240->first); - xfer += oprot->writeString(_iter240->second); + xfer += oprot->writeString(_iter242->first); + xfer += oprot->writeString(_iter242->second); } xfer += oprot->writeMapEnd(); } @@ -5545,27 +5771,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& other243) { + values = other243.values; + dbName = other243.dbName; + tableName = other243.tableName; + createTime = other243.createTime; + lastAccessTime = other243.lastAccessTime; + sd = other243.sd; + parameters = other243.parameters; + privileges = other243.privileges; + __isset = other243.__isset; +} +Partition& Partition::operator=(const Partition& other244) { + values = other244.values; + dbName = other244.dbName; + tableName = other244.tableName; + createTime = other244.createTime; + lastAccessTime = other244.lastAccessTime; + sd = other244.sd; + parameters = other244.parameters; + privileges = other244.privileges; + __isset = other244.__isset; return *this; } void Partition::printTo(std::ostream& out) const { @@ -5637,14 +5863,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 _size245; + ::apache::thrift::protocol::TType _etype248; + xfer += iprot->readListBegin(_etype248, _size245); + this->values.resize(_size245); + uint32_t _i249; + for (_i249 = 0; _i249 < _size245; ++_i249) { - xfer += iprot->readString(this->values[_i247]); + xfer += iprot->readString(this->values[_i249]); } xfer += iprot->readListEnd(); } @@ -5681,17 +5907,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 _size250; + ::apache::thrift::protocol::TType _ktype251; + ::apache::thrift::protocol::TType _vtype252; + xfer += iprot->readMapBegin(_ktype251, _vtype252, _size250); + uint32_t _i254; + for (_i254 = 0; _i254 < _size250; ++_i254) { - std::string _key253; - xfer += iprot->readString(_key253); - std::string& _val254 = this->parameters[_key253]; - xfer += iprot->readString(_val254); + std::string _key255; + xfer += iprot->readString(_key255); + std::string& _val256 = this->parameters[_key255]; + xfer += iprot->readString(_val256); } xfer += iprot->readMapEnd(); } @@ -5728,10 +5954,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 _iter257; + for (_iter257 = this->values.begin(); _iter257 != this->values.end(); ++_iter257) { - xfer += oprot->writeString((*_iter255)); + xfer += oprot->writeString((*_iter257)); } xfer += oprot->writeListEnd(); } @@ -5752,11 +5978,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 _iter258; + for (_iter258 = this->parameters.begin(); _iter258 != this->parameters.end(); ++_iter258) { - xfer += oprot->writeString(_iter256->first); - xfer += oprot->writeString(_iter256->second); + xfer += oprot->writeString(_iter258->first); + xfer += oprot->writeString(_iter258->second); } xfer += oprot->writeMapEnd(); } @@ -5783,23 +6009,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& other259) { + values = other259.values; + createTime = other259.createTime; + lastAccessTime = other259.lastAccessTime; + relativePath = other259.relativePath; + parameters = other259.parameters; + privileges = other259.privileges; + __isset = other259.__isset; +} +PartitionWithoutSD& PartitionWithoutSD::operator=(const PartitionWithoutSD& other260) { + values = other260.values; + createTime = other260.createTime; + lastAccessTime = other260.lastAccessTime; + relativePath = other260.relativePath; + parameters = other260.parameters; + privileges = other260.privileges; + __isset = other260.__isset; return *this; } void PartitionWithoutSD::printTo(std::ostream& out) const { @@ -5852,14 +6078,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 _size261; + ::apache::thrift::protocol::TType _etype264; + xfer += iprot->readListBegin(_etype264, _size261); + this->partitions.resize(_size261); + uint32_t _i265; + for (_i265 = 0; _i265 < _size261; ++_i265) { - xfer += this->partitions[_i263].read(iprot); + xfer += this->partitions[_i265].read(iprot); } xfer += iprot->readListEnd(); } @@ -5896,10 +6122,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 _iter266; + for (_iter266 = this->partitions.begin(); _iter266 != this->partitions.end(); ++_iter266) { - xfer += (*_iter264).write(oprot); + xfer += (*_iter266).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5921,15 +6147,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& other267) { + partitions = other267.partitions; + sd = other267.sd; + __isset = other267.__isset; } -PartitionSpecWithSharedSD& PartitionSpecWithSharedSD::operator=(const PartitionSpecWithSharedSD& other266) { - partitions = other266.partitions; - sd = other266.sd; - __isset = other266.__isset; +PartitionSpecWithSharedSD& PartitionSpecWithSharedSD::operator=(const PartitionSpecWithSharedSD& other268) { + partitions = other268.partitions; + sd = other268.sd; + __isset = other268.__isset; return *this; } void PartitionSpecWithSharedSD::printTo(std::ostream& out) const { @@ -5974,14 +6200,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 _size269; + ::apache::thrift::protocol::TType _etype272; + xfer += iprot->readListBegin(_etype272, _size269); + this->partitions.resize(_size269); + uint32_t _i273; + for (_i273 = 0; _i273 < _size269; ++_i273) { - xfer += this->partitions[_i271].read(iprot); + xfer += this->partitions[_i273].read(iprot); } xfer += iprot->readListEnd(); } @@ -6010,10 +6236,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 _iter274; + for (_iter274 = this->partitions.begin(); _iter274 != this->partitions.end(); ++_iter274) { - xfer += (*_iter272).write(oprot); + xfer += (*_iter274).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6030,13 +6256,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& other275) { + partitions = other275.partitions; + __isset = other275.__isset; } -PartitionListComposingSpec& PartitionListComposingSpec::operator=(const PartitionListComposingSpec& other274) { - partitions = other274.partitions; - __isset = other274.__isset; +PartitionListComposingSpec& PartitionListComposingSpec::operator=(const PartitionListComposingSpec& other276) { + partitions = other276.partitions; + __isset = other276.__isset; return *this; } void PartitionListComposingSpec::printTo(std::ostream& out) const { @@ -6188,21 +6414,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& other277) { + dbName = other277.dbName; + tableName = other277.tableName; + rootPath = other277.rootPath; + sharedSDPartitionSpec = other277.sharedSDPartitionSpec; + partitionList = other277.partitionList; + __isset = other277.__isset; +} +PartitionSpec& PartitionSpec::operator=(const PartitionSpec& other278) { + dbName = other278.dbName; + tableName = other278.tableName; + rootPath = other278.rootPath; + sharedSDPartitionSpec = other278.sharedSDPartitionSpec; + partitionList = other278.partitionList; + __isset = other278.__isset; return *this; } void PartitionSpec::printTo(std::ostream& out) const { @@ -6350,17 +6576,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 _size279; + ::apache::thrift::protocol::TType _ktype280; + ::apache::thrift::protocol::TType _vtype281; + xfer += iprot->readMapBegin(_ktype280, _vtype281, _size279); + uint32_t _i283; + for (_i283 = 0; _i283 < _size279; ++_i283) { - std::string _key282; - xfer += iprot->readString(_key282); - std::string& _val283 = this->parameters[_key282]; - xfer += iprot->readString(_val283); + std::string _key284; + xfer += iprot->readString(_key284); + std::string& _val285 = this->parameters[_key284]; + xfer += iprot->readString(_val285); } xfer += iprot->readMapEnd(); } @@ -6429,11 +6655,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 _iter286; + for (_iter286 = this->parameters.begin(); _iter286 != this->parameters.end(); ++_iter286) { - xfer += oprot->writeString(_iter284->first); - xfer += oprot->writeString(_iter284->second); + xfer += oprot->writeString(_iter286->first); + xfer += oprot->writeString(_iter286->second); } xfer += oprot->writeMapEnd(); } @@ -6463,31 +6689,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& other287) { + indexName = other287.indexName; + indexHandlerClass = other287.indexHandlerClass; + dbName = other287.dbName; + origTableName = other287.origTableName; + createTime = other287.createTime; + lastAccessTime = other287.lastAccessTime; + indexTableName = other287.indexTableName; + sd = other287.sd; + parameters = other287.parameters; + deferredRebuild = other287.deferredRebuild; + __isset = other287.__isset; +} +Index& Index::operator=(const Index& other288) { + indexName = other288.indexName; + indexHandlerClass = other288.indexHandlerClass; + dbName = other288.dbName; + origTableName = other288.origTableName; + createTime = other288.createTime; + lastAccessTime = other288.lastAccessTime; + indexTableName = other288.indexTableName; + sd = other288.sd; + parameters = other288.parameters; + deferredRebuild = other288.deferredRebuild; + __isset = other288.__isset; return *this; } void Index::printTo(std::ostream& out) const { @@ -6638,19 +6864,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& other289) { + numTrues = other289.numTrues; + numFalses = other289.numFalses; + numNulls = other289.numNulls; + bitVectors = other289.bitVectors; + __isset = other289.__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& other290) { + numTrues = other290.numTrues; + numFalses = other290.numFalses; + numNulls = other290.numNulls; + bitVectors = other290.bitVectors; + __isset = other290.__isset; return *this; } void BooleanColumnStatsData::printTo(std::ostream& out) const { @@ -6813,21 +7039,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& other291) { + lowValue = other291.lowValue; + highValue = other291.highValue; + numNulls = other291.numNulls; + numDVs = other291.numDVs; + bitVectors = other291.bitVectors; + __isset = other291.__isset; +} +DoubleColumnStatsData& DoubleColumnStatsData::operator=(const DoubleColumnStatsData& other292) { + lowValue = other292.lowValue; + highValue = other292.highValue; + numNulls = other292.numNulls; + numDVs = other292.numDVs; + bitVectors = other292.bitVectors; + __isset = other292.__isset; return *this; } void DoubleColumnStatsData::printTo(std::ostream& out) const { @@ -6991,21 +7217,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(const LongColumnStatsData& other293) { + lowValue = other293.lowValue; + highValue = other293.highValue; + numNulls = other293.numNulls; + numDVs = other293.numDVs; + bitVectors = other293.bitVectors; + __isset = other293.__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::operator=(const LongColumnStatsData& other294) { + lowValue = other294.lowValue; + highValue = other294.highValue; + numNulls = other294.numNulls; + numDVs = other294.numDVs; + bitVectors = other294.bitVectors; + __isset = other294.__isset; return *this; } void LongColumnStatsData::printTo(std::ostream& out) const { @@ -7171,21 +7397,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(const StringColumnStatsData& other295) { + maxColLen = other295.maxColLen; + avgColLen = other295.avgColLen; + numNulls = other295.numNulls; + numDVs = other295.numDVs; + bitVectors = other295.bitVectors; + __isset = other295.__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::operator=(const StringColumnStatsData& other296) { + maxColLen = other296.maxColLen; + avgColLen = other296.avgColLen; + numNulls = other296.numNulls; + numDVs = other296.numDVs; + bitVectors = other296.bitVectors; + __isset = other296.__isset; return *this; } void StringColumnStatsData::printTo(std::ostream& out) const { @@ -7331,19 +7557,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& other297) { + maxColLen = other297.maxColLen; + avgColLen = other297.avgColLen; + numNulls = other297.numNulls; + bitVectors = other297.bitVectors; + __isset = other297.__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& other298) { + maxColLen = other298.maxColLen; + avgColLen = other298.avgColLen; + numNulls = other298.numNulls; + bitVectors = other298.bitVectors; + __isset = other298.__isset; return *this; } void BinaryColumnStatsData::printTo(std::ostream& out) const { @@ -7448,13 +7674,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& other299) { + unscaled = other299.unscaled; + scale = other299.scale; } -Decimal& Decimal::operator=(const Decimal& other298) { - unscaled = other298.unscaled; - scale = other298.scale; +Decimal& Decimal::operator=(const Decimal& other300) { + unscaled = other300.unscaled; + scale = other300.scale; return *this; } void Decimal::printTo(std::ostream& out) const { @@ -7615,21 +7841,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& other301) { + lowValue = other301.lowValue; + highValue = other301.highValue; + numNulls = other301.numNulls; + numDVs = other301.numDVs; + bitVectors = other301.bitVectors; + __isset = other301.__isset; +} +DecimalColumnStatsData& DecimalColumnStatsData::operator=(const DecimalColumnStatsData& other302) { + lowValue = other302.lowValue; + highValue = other302.highValue; + numNulls = other302.numNulls; + numDVs = other302.numDVs; + bitVectors = other302.bitVectors; + __isset = other302.__isset; return *this; } void DecimalColumnStatsData::printTo(std::ostream& out) const { @@ -7715,11 +7941,11 @@ void swap(Date &a, Date &b) { swap(a.daysSinceEpoch, b.daysSinceEpoch); } -Date::Date(const Date& other301) { - daysSinceEpoch = other301.daysSinceEpoch; +Date::Date(const Date& other303) { + daysSinceEpoch = other303.daysSinceEpoch; } -Date& Date::operator=(const Date& other302) { - daysSinceEpoch = other302.daysSinceEpoch; +Date& Date::operator=(const Date& other304) { + daysSinceEpoch = other304.daysSinceEpoch; return *this; } void Date::printTo(std::ostream& out) const { @@ -7879,21 +8105,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& other305) { + lowValue = other305.lowValue; + highValue = other305.highValue; + numNulls = other305.numNulls; + numDVs = other305.numDVs; + bitVectors = other305.bitVectors; + __isset = other305.__isset; +} +DateColumnStatsData& DateColumnStatsData::operator=(const DateColumnStatsData& other306) { + lowValue = other306.lowValue; + highValue = other306.highValue; + numNulls = other306.numNulls; + numDVs = other306.numDVs; + bitVectors = other306.bitVectors; + __isset = other306.__isset; return *this; } void DateColumnStatsData::printTo(std::ostream& out) const { @@ -8079,25 +8305,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& other307) { + booleanStats = other307.booleanStats; + longStats = other307.longStats; + doubleStats = other307.doubleStats; + stringStats = other307.stringStats; + binaryStats = other307.binaryStats; + decimalStats = other307.decimalStats; + dateStats = other307.dateStats; + __isset = other307.__isset; +} +ColumnStatisticsData& ColumnStatisticsData::operator=(const ColumnStatisticsData& other308) { + booleanStats = other308.booleanStats; + longStats = other308.longStats; + doubleStats = other308.doubleStats; + stringStats = other308.stringStats; + binaryStats = other308.binaryStats; + decimalStats = other308.decimalStats; + dateStats = other308.dateStats; + __isset = other308.__isset; return *this; } void ColumnStatisticsData::printTo(std::ostream& out) const { @@ -8225,15 +8451,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& other309) { + colName = other309.colName; + colType = other309.colType; + statsData = other309.statsData; } -ColumnStatisticsObj& ColumnStatisticsObj::operator=(const ColumnStatisticsObj& other308) { - colName = other308.colName; - colType = other308.colType; - statsData = other308.statsData; +ColumnStatisticsObj& ColumnStatisticsObj::operator=(const ColumnStatisticsObj& other310) { + colName = other310.colName; + colType = other310.colType; + statsData = other310.statsData; return *this; } void ColumnStatisticsObj::printTo(std::ostream& out) const { @@ -8396,21 +8622,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& other311) { + isTblLevel = other311.isTblLevel; + dbName = other311.dbName; + tableName = other311.tableName; + partName = other311.partName; + lastAnalyzed = other311.lastAnalyzed; + __isset = other311.__isset; +} +ColumnStatisticsDesc& ColumnStatisticsDesc::operator=(const ColumnStatisticsDesc& other312) { + isTblLevel = other312.isTblLevel; + dbName = other312.dbName; + tableName = other312.tableName; + partName = other312.partName; + lastAnalyzed = other312.lastAnalyzed; + __isset = other312.__isset; return *this; } void ColumnStatisticsDesc::printTo(std::ostream& out) const { @@ -8472,14 +8698,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 _size313; + ::apache::thrift::protocol::TType _etype316; + xfer += iprot->readListBegin(_etype316, _size313); + this->statsObj.resize(_size313); + uint32_t _i317; + for (_i317 = 0; _i317 < _size313; ++_i317) { - xfer += this->statsObj[_i315].read(iprot); + xfer += this->statsObj[_i317].read(iprot); } xfer += iprot->readListEnd(); } @@ -8516,10 +8742,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 _iter318; + for (_iter318 = this->statsObj.begin(); _iter318 != this->statsObj.end(); ++_iter318) { - xfer += (*_iter316).write(oprot); + xfer += (*_iter318).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8536,13 +8762,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& other319) { + statsDesc = other319.statsDesc; + statsObj = other319.statsObj; } -ColumnStatistics& ColumnStatistics::operator=(const ColumnStatistics& other318) { - statsDesc = other318.statsDesc; - statsObj = other318.statsObj; +ColumnStatistics& ColumnStatistics::operator=(const ColumnStatistics& other320) { + statsDesc = other320.statsDesc; + statsObj = other320.statsObj; return *this; } void ColumnStatistics::printTo(std::ostream& out) const { @@ -8593,14 +8819,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 _size321; + ::apache::thrift::protocol::TType _etype324; + xfer += iprot->readListBegin(_etype324, _size321); + this->colStats.resize(_size321); + uint32_t _i325; + for (_i325 = 0; _i325 < _size321; ++_i325) { - xfer += this->colStats[_i323].read(iprot); + xfer += this->colStats[_i325].read(iprot); } xfer += iprot->readListEnd(); } @@ -8641,10 +8867,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 _iter326; + for (_iter326 = this->colStats.begin(); _iter326 != this->colStats.end(); ++_iter326) { - xfer += (*_iter324).write(oprot); + xfer += (*_iter326).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8665,13 +8891,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& other327) { + colStats = other327.colStats; + partsFound = other327.partsFound; } -AggrStats& AggrStats::operator=(const AggrStats& other326) { - colStats = other326.colStats; - partsFound = other326.partsFound; +AggrStats& AggrStats::operator=(const AggrStats& other328) { + colStats = other328.colStats; + partsFound = other328.partsFound; return *this; } void AggrStats::printTo(std::ostream& out) const { @@ -8722,14 +8948,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 _size329; + ::apache::thrift::protocol::TType _etype332; + xfer += iprot->readListBegin(_etype332, _size329); + this->colStats.resize(_size329); + uint32_t _i333; + for (_i333 = 0; _i333 < _size329; ++_i333) { - xfer += this->colStats[_i331].read(iprot); + xfer += this->colStats[_i333].read(iprot); } xfer += iprot->readListEnd(); } @@ -8768,10 +8994,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 _iter334; + for (_iter334 = this->colStats.begin(); _iter334 != this->colStats.end(); ++_iter334) { - xfer += (*_iter332).write(oprot); + xfer += (*_iter334).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8794,15 +9020,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& other335) { + colStats = other335.colStats; + needMerge = other335.needMerge; + __isset = other335.__isset; } -SetPartitionsStatsRequest& SetPartitionsStatsRequest::operator=(const SetPartitionsStatsRequest& other334) { - colStats = other334.colStats; - needMerge = other334.needMerge; - __isset = other334.__isset; +SetPartitionsStatsRequest& SetPartitionsStatsRequest::operator=(const SetPartitionsStatsRequest& other336) { + colStats = other336.colStats; + needMerge = other336.needMerge; + __isset = other336.__isset; return *this; } void SetPartitionsStatsRequest::printTo(std::ostream& out) const { @@ -8851,14 +9077,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 _size337; + ::apache::thrift::protocol::TType _etype340; + xfer += iprot->readListBegin(_etype340, _size337); + this->fieldSchemas.resize(_size337); + uint32_t _i341; + for (_i341 = 0; _i341 < _size337; ++_i341) { - xfer += this->fieldSchemas[_i339].read(iprot); + xfer += this->fieldSchemas[_i341].read(iprot); } xfer += iprot->readListEnd(); } @@ -8871,17 +9097,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 _size342; + ::apache::thrift::protocol::TType _ktype343; + ::apache::thrift::protocol::TType _vtype344; + xfer += iprot->readMapBegin(_ktype343, _vtype344, _size342); + uint32_t _i346; + for (_i346 = 0; _i346 < _size342; ++_i346) { - std::string _key345; - xfer += iprot->readString(_key345); - std::string& _val346 = this->properties[_key345]; - xfer += iprot->readString(_val346); + std::string _key347; + xfer += iprot->readString(_key347); + std::string& _val348 = this->properties[_key347]; + xfer += iprot->readString(_val348); } xfer += iprot->readMapEnd(); } @@ -8910,10 +9136,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 _iter349; + for (_iter349 = this->fieldSchemas.begin(); _iter349 != this->fieldSchemas.end(); ++_iter349) { - xfer += (*_iter347).write(oprot); + xfer += (*_iter349).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8922,11 +9148,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 _iter350; + for (_iter350 = this->properties.begin(); _iter350 != this->properties.end(); ++_iter350) { - xfer += oprot->writeString(_iter348->first); - xfer += oprot->writeString(_iter348->second); + xfer += oprot->writeString(_iter350->first); + xfer += oprot->writeString(_iter350->second); } xfer += oprot->writeMapEnd(); } @@ -8944,15 +9170,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& other351) { + fieldSchemas = other351.fieldSchemas; + properties = other351.properties; + __isset = other351.__isset; } -Schema& Schema::operator=(const Schema& other350) { - fieldSchemas = other350.fieldSchemas; - properties = other350.properties; - __isset = other350.__isset; +Schema& Schema::operator=(const Schema& other352) { + fieldSchemas = other352.fieldSchemas; + properties = other352.properties; + __isset = other352.__isset; return *this; } void Schema::printTo(std::ostream& out) const { @@ -8997,17 +9223,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 _size353; + ::apache::thrift::protocol::TType _ktype354; + ::apache::thrift::protocol::TType _vtype355; + xfer += iprot->readMapBegin(_ktype354, _vtype355, _size353); + uint32_t _i357; + for (_i357 = 0; _i357 < _size353; ++_i357) { - std::string _key356; - xfer += iprot->readString(_key356); - std::string& _val357 = this->properties[_key356]; - xfer += iprot->readString(_val357); + std::string _key358; + xfer += iprot->readString(_key358); + std::string& _val359 = this->properties[_key358]; + xfer += iprot->readString(_val359); } xfer += iprot->readMapEnd(); } @@ -9036,11 +9262,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 _iter360; + for (_iter360 = this->properties.begin(); _iter360 != this->properties.end(); ++_iter360) { - xfer += oprot->writeString(_iter358->first); - xfer += oprot->writeString(_iter358->second); + xfer += oprot->writeString(_iter360->first); + xfer += oprot->writeString(_iter360->second); } xfer += oprot->writeMapEnd(); } @@ -9057,13 +9283,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& other361) { + properties = other361.properties; + __isset = other361.__isset; } -EnvironmentContext& EnvironmentContext::operator=(const EnvironmentContext& other360) { - properties = other360.properties; - __isset = other360.__isset; +EnvironmentContext& EnvironmentContext::operator=(const EnvironmentContext& other362) { + properties = other362.properties; + __isset = other362.__isset; return *this; } void EnvironmentContext::printTo(std::ostream& out) const { @@ -9165,13 +9391,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& other363) { + db_name = other363.db_name; + tbl_name = other363.tbl_name; } -PrimaryKeysRequest& PrimaryKeysRequest::operator=(const PrimaryKeysRequest& other362) { - db_name = other362.db_name; - tbl_name = other362.tbl_name; +PrimaryKeysRequest& PrimaryKeysRequest::operator=(const PrimaryKeysRequest& other364) { + db_name = other364.db_name; + tbl_name = other364.tbl_name; return *this; } void PrimaryKeysRequest::printTo(std::ostream& out) const { @@ -9217,14 +9443,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 _size365; + ::apache::thrift::protocol::TType _etype368; + xfer += iprot->readListBegin(_etype368, _size365); + this->primaryKeys.resize(_size365); + uint32_t _i369; + for (_i369 = 0; _i369 < _size365; ++_i369) { - xfer += this->primaryKeys[_i367].read(iprot); + xfer += this->primaryKeys[_i369].read(iprot); } xfer += iprot->readListEnd(); } @@ -9255,10 +9481,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 _iter370; + for (_iter370 = this->primaryKeys.begin(); _iter370 != this->primaryKeys.end(); ++_iter370) { - xfer += (*_iter368).write(oprot); + xfer += (*_iter370).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9274,11 +9500,11 @@ void swap(PrimaryKeysResponse &a, PrimaryKeysResponse &b) { swap(a.primaryKeys, b.primaryKeys); } -PrimaryKeysResponse::PrimaryKeysResponse(const PrimaryKeysResponse& other369) { - primaryKeys = other369.primaryKeys; +PrimaryKeysResponse::PrimaryKeysResponse(const PrimaryKeysResponse& other371) { + primaryKeys = other371.primaryKeys; } -PrimaryKeysResponse& PrimaryKeysResponse::operator=(const PrimaryKeysResponse& other370) { - primaryKeys = other370.primaryKeys; +PrimaryKeysResponse& PrimaryKeysResponse::operator=(const PrimaryKeysResponse& other372) { + primaryKeys = other372.primaryKeys; return *this; } void PrimaryKeysResponse::printTo(std::ostream& out) const { @@ -9409,19 +9635,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& other373) { + parent_db_name = other373.parent_db_name; + parent_tbl_name = other373.parent_tbl_name; + foreign_db_name = other373.foreign_db_name; + foreign_tbl_name = other373.foreign_tbl_name; + __isset = other373.__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& other374) { + parent_db_name = other374.parent_db_name; + parent_tbl_name = other374.parent_tbl_name; + foreign_db_name = other374.foreign_db_name; + foreign_tbl_name = other374.foreign_tbl_name; + __isset = other374.__isset; return *this; } void ForeignKeysRequest::printTo(std::ostream& out) const { @@ -9469,14 +9695,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 _size375; + ::apache::thrift::protocol::TType _etype378; + xfer += iprot->readListBegin(_etype378, _size375); + this->foreignKeys.resize(_size375); + uint32_t _i379; + for (_i379 = 0; _i379 < _size375; ++_i379) { - xfer += this->foreignKeys[_i377].read(iprot); + xfer += this->foreignKeys[_i379].read(iprot); } xfer += iprot->readListEnd(); } @@ -9507,10 +9733,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 _iter380; + for (_iter380 = this->foreignKeys.begin(); _iter380 != this->foreignKeys.end(); ++_iter380) { - xfer += (*_iter378).write(oprot); + xfer += (*_iter380).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9526,11 +9752,11 @@ void swap(ForeignKeysResponse &a, ForeignKeysResponse &b) { swap(a.foreignKeys, b.foreignKeys); } -ForeignKeysResponse::ForeignKeysResponse(const ForeignKeysResponse& other379) { - foreignKeys = other379.foreignKeys; +ForeignKeysResponse::ForeignKeysResponse(const ForeignKeysResponse& other381) { + foreignKeys = other381.foreignKeys; } -ForeignKeysResponse& ForeignKeysResponse::operator=(const ForeignKeysResponse& other380) { - foreignKeys = other380.foreignKeys; +ForeignKeysResponse& ForeignKeysResponse::operator=(const ForeignKeysResponse& other382) { + foreignKeys = other382.foreignKeys; return *this; } void ForeignKeysResponse::printTo(std::ostream& out) const { @@ -9632,13 +9858,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& other383) { + db_name = other383.db_name; + tbl_name = other383.tbl_name; } -UniqueConstraintsRequest& UniqueConstraintsRequest::operator=(const UniqueConstraintsRequest& other382) { - db_name = other382.db_name; - tbl_name = other382.tbl_name; +UniqueConstraintsRequest& UniqueConstraintsRequest::operator=(const UniqueConstraintsRequest& other384) { + db_name = other384.db_name; + tbl_name = other384.tbl_name; return *this; } void UniqueConstraintsRequest::printTo(std::ostream& out) const { @@ -9684,14 +9910,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 _size385; + ::apache::thrift::protocol::TType _etype388; + xfer += iprot->readListBegin(_etype388, _size385); + this->uniqueConstraints.resize(_size385); + uint32_t _i389; + for (_i389 = 0; _i389 < _size385; ++_i389) { - xfer += this->uniqueConstraints[_i387].read(iprot); + xfer += this->uniqueConstraints[_i389].read(iprot); } xfer += iprot->readListEnd(); } @@ -9722,10 +9948,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 _iter390; + for (_iter390 = this->uniqueConstraints.begin(); _iter390 != this->uniqueConstraints.end(); ++_iter390) { - xfer += (*_iter388).write(oprot); + xfer += (*_iter390).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9741,11 +9967,11 @@ void swap(UniqueConstraintsResponse &a, UniqueConstraintsResponse &b) { swap(a.uniqueConstraints, b.uniqueConstraints); } -UniqueConstraintsResponse::UniqueConstraintsResponse(const UniqueConstraintsResponse& other389) { - uniqueConstraints = other389.uniqueConstraints; +UniqueConstraintsResponse::UniqueConstraintsResponse(const UniqueConstraintsResponse& other391) { + uniqueConstraints = other391.uniqueConstraints; } -UniqueConstraintsResponse& UniqueConstraintsResponse::operator=(const UniqueConstraintsResponse& other390) { - uniqueConstraints = other390.uniqueConstraints; +UniqueConstraintsResponse& UniqueConstraintsResponse::operator=(const UniqueConstraintsResponse& other392) { + uniqueConstraints = other392.uniqueConstraints; return *this; } void UniqueConstraintsResponse::printTo(std::ostream& out) const { @@ -9847,13 +10073,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& other393) { + db_name = other393.db_name; + tbl_name = other393.tbl_name; } -NotNullConstraintsRequest& NotNullConstraintsRequest::operator=(const NotNullConstraintsRequest& other392) { - db_name = other392.db_name; - tbl_name = other392.tbl_name; +NotNullConstraintsRequest& NotNullConstraintsRequest::operator=(const NotNullConstraintsRequest& other394) { + db_name = other394.db_name; + tbl_name = other394.tbl_name; return *this; } void NotNullConstraintsRequest::printTo(std::ostream& out) const { @@ -9899,14 +10125,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 _size395; + ::apache::thrift::protocol::TType _etype398; + xfer += iprot->readListBegin(_etype398, _size395); + this->notNullConstraints.resize(_size395); + uint32_t _i399; + for (_i399 = 0; _i399 < _size395; ++_i399) { - xfer += this->notNullConstraints[_i397].read(iprot); + xfer += this->notNullConstraints[_i399].read(iprot); } xfer += iprot->readListEnd(); } @@ -9937,10 +10163,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 _iter400; + for (_iter400 = this->notNullConstraints.begin(); _iter400 != this->notNullConstraints.end(); ++_iter400) { - xfer += (*_iter398).write(oprot); + xfer += (*_iter400).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9956,11 +10182,11 @@ void swap(NotNullConstraintsResponse &a, NotNullConstraintsResponse &b) { swap(a.notNullConstraints, b.notNullConstraints); } -NotNullConstraintsResponse::NotNullConstraintsResponse(const NotNullConstraintsResponse& other399) { - notNullConstraints = other399.notNullConstraints; +NotNullConstraintsResponse::NotNullConstraintsResponse(const NotNullConstraintsResponse& other401) { + notNullConstraints = other401.notNullConstraints; } -NotNullConstraintsResponse& NotNullConstraintsResponse::operator=(const NotNullConstraintsResponse& other400) { - notNullConstraints = other400.notNullConstraints; +NotNullConstraintsResponse& NotNullConstraintsResponse::operator=(const NotNullConstraintsResponse& other402) { + notNullConstraints = other402.notNullConstraints; return *this; } void NotNullConstraintsResponse::printTo(std::ostream& out) const { @@ -9971,6 +10197,221 @@ void NotNullConstraintsResponse::printTo(std::ostream& out) const { } +DefaultConstraintsRequest::~DefaultConstraintsRequest() throw() { +} + + +void DefaultConstraintsRequest::__set_db_name(const std::string& val) { + this->db_name = val; +} + +void DefaultConstraintsRequest::__set_tbl_name(const std::string& val) { + this->tbl_name = val; +} + +uint32_t DefaultConstraintsRequest::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_db_name = false; + bool isset_tbl_name = false; + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->db_name); + isset_db_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->tbl_name); + isset_tbl_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_db_name) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_tbl_name) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t DefaultConstraintsRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("DefaultConstraintsRequest"); + + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->db_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->tbl_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(DefaultConstraintsRequest &a, DefaultConstraintsRequest &b) { + using ::std::swap; + swap(a.db_name, b.db_name); + swap(a.tbl_name, b.tbl_name); +} + +DefaultConstraintsRequest::DefaultConstraintsRequest(const DefaultConstraintsRequest& other403) { + db_name = other403.db_name; + tbl_name = other403.tbl_name; +} +DefaultConstraintsRequest& DefaultConstraintsRequest::operator=(const DefaultConstraintsRequest& other404) { + db_name = other404.db_name; + tbl_name = other404.tbl_name; + return *this; +} +void DefaultConstraintsRequest::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "DefaultConstraintsRequest("; + out << "db_name=" << to_string(db_name); + out << ", " << "tbl_name=" << to_string(tbl_name); + out << ")"; +} + + +DefaultConstraintsResponse::~DefaultConstraintsResponse() throw() { +} + + +void DefaultConstraintsResponse::__set_defaultConstraints(const std::vector & val) { + this->defaultConstraints = val; +} + +uint32_t DefaultConstraintsResponse::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_defaultConstraints = false; + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->defaultConstraints.clear(); + uint32_t _size405; + ::apache::thrift::protocol::TType _etype408; + xfer += iprot->readListBegin(_etype408, _size405); + this->defaultConstraints.resize(_size405); + uint32_t _i409; + for (_i409 = 0; _i409 < _size405; ++_i409) + { + xfer += this->defaultConstraints[_i409].read(iprot); + } + xfer += iprot->readListEnd(); + } + isset_defaultConstraints = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_defaultConstraints) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t DefaultConstraintsResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("DefaultConstraintsResponse"); + + xfer += oprot->writeFieldBegin("defaultConstraints", ::apache::thrift::protocol::T_LIST, 1); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->defaultConstraints.size())); + std::vector ::const_iterator _iter410; + for (_iter410 = this->defaultConstraints.begin(); _iter410 != this->defaultConstraints.end(); ++_iter410) + { + xfer += (*_iter410).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(DefaultConstraintsResponse &a, DefaultConstraintsResponse &b) { + using ::std::swap; + swap(a.defaultConstraints, b.defaultConstraints); +} + +DefaultConstraintsResponse::DefaultConstraintsResponse(const DefaultConstraintsResponse& other411) { + defaultConstraints = other411.defaultConstraints; +} +DefaultConstraintsResponse& DefaultConstraintsResponse::operator=(const DefaultConstraintsResponse& other412) { + defaultConstraints = other412.defaultConstraints; + return *this; +} +void DefaultConstraintsResponse::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "DefaultConstraintsResponse("; + out << "defaultConstraints=" << to_string(defaultConstraints); + out << ")"; +} + + DropConstraintRequest::~DropConstraintRequest() throw() { } @@ -10082,15 +10523,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& other413) { + dbname = other413.dbname; + tablename = other413.tablename; + constraintname = other413.constraintname; } -DropConstraintRequest& DropConstraintRequest::operator=(const DropConstraintRequest& other402) { - dbname = other402.dbname; - tablename = other402.tablename; - constraintname = other402.constraintname; +DropConstraintRequest& DropConstraintRequest::operator=(const DropConstraintRequest& other414) { + dbname = other414.dbname; + tablename = other414.tablename; + constraintname = other414.constraintname; return *this; } void DropConstraintRequest::printTo(std::ostream& out) const { @@ -10137,14 +10578,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 _size415; + ::apache::thrift::protocol::TType _etype418; + xfer += iprot->readListBegin(_etype418, _size415); + this->primaryKeyCols.resize(_size415); + uint32_t _i419; + for (_i419 = 0; _i419 < _size415; ++_i419) { - xfer += this->primaryKeyCols[_i407].read(iprot); + xfer += this->primaryKeyCols[_i419].read(iprot); } xfer += iprot->readListEnd(); } @@ -10175,10 +10616,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 _iter420; + for (_iter420 = this->primaryKeyCols.begin(); _iter420 != this->primaryKeyCols.end(); ++_iter420) { - xfer += (*_iter408).write(oprot); + xfer += (*_iter420).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10194,11 +10635,11 @@ void swap(AddPrimaryKeyRequest &a, AddPrimaryKeyRequest &b) { swap(a.primaryKeyCols, b.primaryKeyCols); } -AddPrimaryKeyRequest::AddPrimaryKeyRequest(const AddPrimaryKeyRequest& other409) { - primaryKeyCols = other409.primaryKeyCols; +AddPrimaryKeyRequest::AddPrimaryKeyRequest(const AddPrimaryKeyRequest& other421) { + primaryKeyCols = other421.primaryKeyCols; } -AddPrimaryKeyRequest& AddPrimaryKeyRequest::operator=(const AddPrimaryKeyRequest& other410) { - primaryKeyCols = other410.primaryKeyCols; +AddPrimaryKeyRequest& AddPrimaryKeyRequest::operator=(const AddPrimaryKeyRequest& other422) { + primaryKeyCols = other422.primaryKeyCols; return *this; } void AddPrimaryKeyRequest::printTo(std::ostream& out) const { @@ -10243,14 +10684,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 _size423; + ::apache::thrift::protocol::TType _etype426; + xfer += iprot->readListBegin(_etype426, _size423); + this->foreignKeyCols.resize(_size423); + uint32_t _i427; + for (_i427 = 0; _i427 < _size423; ++_i427) { - xfer += this->foreignKeyCols[_i415].read(iprot); + xfer += this->foreignKeyCols[_i427].read(iprot); } xfer += iprot->readListEnd(); } @@ -10280,11 +10721,117 @@ 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) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->foreignKeyCols.size())); + std::vector ::const_iterator _iter428; + for (_iter428 = this->foreignKeyCols.begin(); _iter428 != this->foreignKeyCols.end(); ++_iter428) + { + xfer += (*_iter428).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(AddForeignKeyRequest &a, AddForeignKeyRequest &b) { + using ::std::swap; + swap(a.foreignKeyCols, b.foreignKeyCols); +} + +AddForeignKeyRequest::AddForeignKeyRequest(const AddForeignKeyRequest& other429) { + foreignKeyCols = other429.foreignKeyCols; +} +AddForeignKeyRequest& AddForeignKeyRequest::operator=(const AddForeignKeyRequest& other430) { + foreignKeyCols = other430.foreignKeyCols; + return *this; +} +void AddForeignKeyRequest::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "AddForeignKeyRequest("; + out << "foreignKeyCols=" << to_string(foreignKeyCols); + out << ")"; +} + + +AddUniqueConstraintRequest::~AddUniqueConstraintRequest() throw() { +} + + +void AddUniqueConstraintRequest::__set_uniqueConstraintCols(const std::vector & val) { + this->uniqueConstraintCols = val; +} + +uint32_t AddUniqueConstraintRequest::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_uniqueConstraintCols = false; + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->uniqueConstraintCols.clear(); + uint32_t _size431; + ::apache::thrift::protocol::TType _etype434; + xfer += iprot->readListBegin(_etype434, _size431); + this->uniqueConstraintCols.resize(_size431); + uint32_t _i435; + for (_i435 = 0; _i435 < _size431; ++_i435) + { + xfer += this->uniqueConstraintCols[_i435].read(iprot); + } + xfer += iprot->readListEnd(); + } + isset_uniqueConstraintCols = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_uniqueConstraintCols) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t AddUniqueConstraintRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("AddUniqueConstraintRequest"); + + 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 _iter436; + for (_iter436 = this->uniqueConstraintCols.begin(); _iter436 != this->uniqueConstraintCols.end(); ++_iter436) { - xfer += (*_iter416).write(oprot); + xfer += (*_iter436).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10295,35 +10842,35 @@ uint32_t AddForeignKeyRequest::write(::apache::thrift::protocol::TProtocol* opro return xfer; } -void swap(AddForeignKeyRequest &a, AddForeignKeyRequest &b) { +void swap(AddUniqueConstraintRequest &a, AddUniqueConstraintRequest &b) { using ::std::swap; - swap(a.foreignKeyCols, b.foreignKeyCols); + swap(a.uniqueConstraintCols, b.uniqueConstraintCols); } -AddForeignKeyRequest::AddForeignKeyRequest(const AddForeignKeyRequest& other417) { - foreignKeyCols = other417.foreignKeyCols; +AddUniqueConstraintRequest::AddUniqueConstraintRequest(const AddUniqueConstraintRequest& other437) { + uniqueConstraintCols = other437.uniqueConstraintCols; } -AddForeignKeyRequest& AddForeignKeyRequest::operator=(const AddForeignKeyRequest& other418) { - foreignKeyCols = other418.foreignKeyCols; +AddUniqueConstraintRequest& AddUniqueConstraintRequest::operator=(const AddUniqueConstraintRequest& other438) { + uniqueConstraintCols = other438.uniqueConstraintCols; return *this; } -void AddForeignKeyRequest::printTo(std::ostream& out) const { +void AddUniqueConstraintRequest::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "AddForeignKeyRequest("; - out << "foreignKeyCols=" << to_string(foreignKeyCols); + out << "AddUniqueConstraintRequest("; + out << "uniqueConstraintCols=" << to_string(uniqueConstraintCols); out << ")"; } -AddUniqueConstraintRequest::~AddUniqueConstraintRequest() throw() { +AddNotNullConstraintRequest::~AddNotNullConstraintRequest() throw() { } -void AddUniqueConstraintRequest::__set_uniqueConstraintCols(const std::vector & val) { - this->uniqueConstraintCols = val; +void AddNotNullConstraintRequest::__set_notNullConstraintCols(const std::vector & val) { + this->notNullConstraintCols = val; } -uint32_t AddUniqueConstraintRequest::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t AddNotNullConstraintRequest::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -10335,7 +10882,7 @@ uint32_t AddUniqueConstraintRequest::read(::apache::thrift::protocol::TProtocol* using ::apache::thrift::protocol::TProtocolException; - bool isset_uniqueConstraintCols = false; + bool isset_notNullConstraintCols = false; while (true) { @@ -10348,19 +10895,19 @@ uint32_t AddUniqueConstraintRequest::read(::apache::thrift::protocol::TProtocol* case 1: 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) + this->notNullConstraintCols.clear(); + uint32_t _size439; + ::apache::thrift::protocol::TType _etype442; + xfer += iprot->readListBegin(_etype442, _size439); + this->notNullConstraintCols.resize(_size439); + uint32_t _i443; + for (_i443 = 0; _i443 < _size439; ++_i443) { - xfer += this->uniqueConstraintCols[_i423].read(iprot); + xfer += this->notNullConstraintCols[_i443].read(iprot); } xfer += iprot->readListEnd(); } - isset_uniqueConstraintCols = true; + isset_notNullConstraintCols = true; } else { xfer += iprot->skip(ftype); } @@ -10374,23 +10921,23 @@ uint32_t AddUniqueConstraintRequest::read(::apache::thrift::protocol::TProtocol* xfer += iprot->readStructEnd(); - if (!isset_uniqueConstraintCols) + if (!isset_notNullConstraintCols) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t AddUniqueConstraintRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t AddNotNullConstraintRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("AddUniqueConstraintRequest"); + xfer += oprot->writeStructBegin("AddNotNullConstraintRequest"); - xfer += oprot->writeFieldBegin("uniqueConstraintCols", ::apache::thrift::protocol::T_LIST, 1); + xfer += oprot->writeFieldBegin("notNullConstraintCols", ::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) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->notNullConstraintCols.size())); + std::vector ::const_iterator _iter444; + for (_iter444 = this->notNullConstraintCols.begin(); _iter444 != this->notNullConstraintCols.end(); ++_iter444) { - xfer += (*_iter424).write(oprot); + xfer += (*_iter444).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10401,35 +10948,35 @@ uint32_t AddUniqueConstraintRequest::write(::apache::thrift::protocol::TProtocol return xfer; } -void swap(AddUniqueConstraintRequest &a, AddUniqueConstraintRequest &b) { +void swap(AddNotNullConstraintRequest &a, AddNotNullConstraintRequest &b) { using ::std::swap; - swap(a.uniqueConstraintCols, b.uniqueConstraintCols); + swap(a.notNullConstraintCols, b.notNullConstraintCols); } -AddUniqueConstraintRequest::AddUniqueConstraintRequest(const AddUniqueConstraintRequest& other425) { - uniqueConstraintCols = other425.uniqueConstraintCols; +AddNotNullConstraintRequest::AddNotNullConstraintRequest(const AddNotNullConstraintRequest& other445) { + notNullConstraintCols = other445.notNullConstraintCols; } -AddUniqueConstraintRequest& AddUniqueConstraintRequest::operator=(const AddUniqueConstraintRequest& other426) { - uniqueConstraintCols = other426.uniqueConstraintCols; +AddNotNullConstraintRequest& AddNotNullConstraintRequest::operator=(const AddNotNullConstraintRequest& other446) { + notNullConstraintCols = other446.notNullConstraintCols; return *this; } -void AddUniqueConstraintRequest::printTo(std::ostream& out) const { +void AddNotNullConstraintRequest::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "AddUniqueConstraintRequest("; - out << "uniqueConstraintCols=" << to_string(uniqueConstraintCols); + out << "AddNotNullConstraintRequest("; + out << "notNullConstraintCols=" << to_string(notNullConstraintCols); out << ")"; } -AddNotNullConstraintRequest::~AddNotNullConstraintRequest() throw() { +AddDefaultConstraintRequest::~AddDefaultConstraintRequest() throw() { } -void AddNotNullConstraintRequest::__set_notNullConstraintCols(const std::vector & val) { - this->notNullConstraintCols = val; +void AddDefaultConstraintRequest::__set_defaultConstraintCols(const std::vector & val) { + this->defaultConstraintCols = val; } -uint32_t AddNotNullConstraintRequest::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t AddDefaultConstraintRequest::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -10441,7 +10988,7 @@ uint32_t AddNotNullConstraintRequest::read(::apache::thrift::protocol::TProtocol using ::apache::thrift::protocol::TProtocolException; - bool isset_notNullConstraintCols = false; + bool isset_defaultConstraintCols = false; while (true) { @@ -10454,19 +11001,19 @@ uint32_t AddNotNullConstraintRequest::read(::apache::thrift::protocol::TProtocol case 1: 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) + this->defaultConstraintCols.clear(); + uint32_t _size447; + ::apache::thrift::protocol::TType _etype450; + xfer += iprot->readListBegin(_etype450, _size447); + this->defaultConstraintCols.resize(_size447); + uint32_t _i451; + for (_i451 = 0; _i451 < _size447; ++_i451) { - xfer += this->notNullConstraintCols[_i431].read(iprot); + xfer += this->defaultConstraintCols[_i451].read(iprot); } xfer += iprot->readListEnd(); } - isset_notNullConstraintCols = true; + isset_defaultConstraintCols = true; } else { xfer += iprot->skip(ftype); } @@ -10480,23 +11027,23 @@ uint32_t AddNotNullConstraintRequest::read(::apache::thrift::protocol::TProtocol xfer += iprot->readStructEnd(); - if (!isset_notNullConstraintCols) + if (!isset_defaultConstraintCols) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t AddNotNullConstraintRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t AddDefaultConstraintRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("AddNotNullConstraintRequest"); + xfer += oprot->writeStructBegin("AddDefaultConstraintRequest"); - xfer += oprot->writeFieldBegin("notNullConstraintCols", ::apache::thrift::protocol::T_LIST, 1); + xfer += oprot->writeFieldBegin("defaultConstraintCols", ::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) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->defaultConstraintCols.size())); + std::vector ::const_iterator _iter452; + for (_iter452 = this->defaultConstraintCols.begin(); _iter452 != this->defaultConstraintCols.end(); ++_iter452) { - xfer += (*_iter432).write(oprot); + xfer += (*_iter452).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10507,22 +11054,22 @@ uint32_t AddNotNullConstraintRequest::write(::apache::thrift::protocol::TProtoco return xfer; } -void swap(AddNotNullConstraintRequest &a, AddNotNullConstraintRequest &b) { +void swap(AddDefaultConstraintRequest &a, AddDefaultConstraintRequest &b) { using ::std::swap; - swap(a.notNullConstraintCols, b.notNullConstraintCols); + swap(a.defaultConstraintCols, b.defaultConstraintCols); } -AddNotNullConstraintRequest::AddNotNullConstraintRequest(const AddNotNullConstraintRequest& other433) { - notNullConstraintCols = other433.notNullConstraintCols; +AddDefaultConstraintRequest::AddDefaultConstraintRequest(const AddDefaultConstraintRequest& other453) { + defaultConstraintCols = other453.defaultConstraintCols; } -AddNotNullConstraintRequest& AddNotNullConstraintRequest::operator=(const AddNotNullConstraintRequest& other434) { - notNullConstraintCols = other434.notNullConstraintCols; +AddDefaultConstraintRequest& AddDefaultConstraintRequest::operator=(const AddDefaultConstraintRequest& other454) { + defaultConstraintCols = other454.defaultConstraintCols; return *this; } -void AddNotNullConstraintRequest::printTo(std::ostream& out) const { +void AddDefaultConstraintRequest::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "AddNotNullConstraintRequest("; - out << "notNullConstraintCols=" << to_string(notNullConstraintCols); + out << "AddDefaultConstraintRequest("; + out << "defaultConstraintCols=" << to_string(defaultConstraintCols); out << ")"; } @@ -10566,14 +11113,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 _size455; + ::apache::thrift::protocol::TType _etype458; + xfer += iprot->readListBegin(_etype458, _size455); + this->partitions.resize(_size455); + uint32_t _i459; + for (_i459 = 0; _i459 < _size455; ++_i459) { - xfer += this->partitions[_i439].read(iprot); + xfer += this->partitions[_i459].read(iprot); } xfer += iprot->readListEnd(); } @@ -10614,10 +11161,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 _iter460; + for (_iter460 = this->partitions.begin(); _iter460 != this->partitions.end(); ++_iter460) { - xfer += (*_iter440).write(oprot); + xfer += (*_iter460).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10638,13 +11185,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& other461) { + partitions = other461.partitions; + hasUnknownPartitions = other461.hasUnknownPartitions; } -PartitionsByExprResult& PartitionsByExprResult::operator=(const PartitionsByExprResult& other442) { - partitions = other442.partitions; - hasUnknownPartitions = other442.hasUnknownPartitions; +PartitionsByExprResult& PartitionsByExprResult::operator=(const PartitionsByExprResult& other462) { + partitions = other462.partitions; + hasUnknownPartitions = other462.hasUnknownPartitions; return *this; } void PartitionsByExprResult::printTo(std::ostream& out) const { @@ -10806,21 +11353,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& other463) { + dbName = other463.dbName; + tblName = other463.tblName; + expr = other463.expr; + defaultPartitionName = other463.defaultPartitionName; + maxParts = other463.maxParts; + __isset = other463.__isset; +} +PartitionsByExprRequest& PartitionsByExprRequest::operator=(const PartitionsByExprRequest& other464) { + dbName = other464.dbName; + tblName = other464.tblName; + expr = other464.expr; + defaultPartitionName = other464.defaultPartitionName; + maxParts = other464.maxParts; + __isset = other464.__isset; return *this; } void PartitionsByExprRequest::printTo(std::ostream& out) const { @@ -10869,14 +11416,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 _size465; + ::apache::thrift::protocol::TType _etype468; + xfer += iprot->readListBegin(_etype468, _size465); + this->tableStats.resize(_size465); + uint32_t _i469; + for (_i469 = 0; _i469 < _size465; ++_i469) { - xfer += this->tableStats[_i449].read(iprot); + xfer += this->tableStats[_i469].read(iprot); } xfer += iprot->readListEnd(); } @@ -10907,10 +11454,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 _iter470; + for (_iter470 = this->tableStats.begin(); _iter470 != this->tableStats.end(); ++_iter470) { - xfer += (*_iter450).write(oprot); + xfer += (*_iter470).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10926,11 +11473,11 @@ void swap(TableStatsResult &a, TableStatsResult &b) { swap(a.tableStats, b.tableStats); } -TableStatsResult::TableStatsResult(const TableStatsResult& other451) { - tableStats = other451.tableStats; +TableStatsResult::TableStatsResult(const TableStatsResult& other471) { + tableStats = other471.tableStats; } -TableStatsResult& TableStatsResult::operator=(const TableStatsResult& other452) { - tableStats = other452.tableStats; +TableStatsResult& TableStatsResult::operator=(const TableStatsResult& other472) { + tableStats = other472.tableStats; return *this; } void TableStatsResult::printTo(std::ostream& out) const { @@ -10975,26 +11522,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 _size473; + ::apache::thrift::protocol::TType _ktype474; + ::apache::thrift::protocol::TType _vtype475; + xfer += iprot->readMapBegin(_ktype474, _vtype475, _size473); + uint32_t _i477; + for (_i477 = 0; _i477 < _size473; ++_i477) { - std::string _key458; - xfer += iprot->readString(_key458); - std::vector & _val459 = this->partStats[_key458]; + std::string _key478; + xfer += iprot->readString(_key478); + std::vector & _val479 = this->partStats[_key478]; { - _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) + _val479.clear(); + uint32_t _size480; + ::apache::thrift::protocol::TType _etype483; + xfer += iprot->readListBegin(_etype483, _size480); + _val479.resize(_size480); + uint32_t _i484; + for (_i484 = 0; _i484 < _size480; ++_i484) { - xfer += _val459[_i464].read(iprot); + xfer += _val479[_i484].read(iprot); } xfer += iprot->readListEnd(); } @@ -11028,16 +11575,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 _iter485; + for (_iter485 = this->partStats.begin(); _iter485 != this->partStats.end(); ++_iter485) { - xfer += oprot->writeString(_iter465->first); + xfer += oprot->writeString(_iter485->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(_iter485->second.size())); + std::vector ::const_iterator _iter486; + for (_iter486 = _iter485->second.begin(); _iter486 != _iter485->second.end(); ++_iter486) { - xfer += (*_iter466).write(oprot); + xfer += (*_iter486).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11056,11 +11603,11 @@ void swap(PartitionsStatsResult &a, PartitionsStatsResult &b) { swap(a.partStats, b.partStats); } -PartitionsStatsResult::PartitionsStatsResult(const PartitionsStatsResult& other467) { - partStats = other467.partStats; +PartitionsStatsResult::PartitionsStatsResult(const PartitionsStatsResult& other487) { + partStats = other487.partStats; } -PartitionsStatsResult& PartitionsStatsResult::operator=(const PartitionsStatsResult& other468) { - partStats = other468.partStats; +PartitionsStatsResult& PartitionsStatsResult::operator=(const PartitionsStatsResult& other488) { + partStats = other488.partStats; return *this; } void PartitionsStatsResult::printTo(std::ostream& out) const { @@ -11131,14 +11678,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 _size489; + ::apache::thrift::protocol::TType _etype492; + xfer += iprot->readListBegin(_etype492, _size489); + this->colNames.resize(_size489); + uint32_t _i493; + for (_i493 = 0; _i493 < _size489; ++_i493) { - xfer += iprot->readString(this->colNames[_i473]); + xfer += iprot->readString(this->colNames[_i493]); } xfer += iprot->readListEnd(); } @@ -11181,10 +11728,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 _iter494; + for (_iter494 = this->colNames.begin(); _iter494 != this->colNames.end(); ++_iter494) { - xfer += oprot->writeString((*_iter474)); + xfer += oprot->writeString((*_iter494)); } xfer += oprot->writeListEnd(); } @@ -11202,15 +11749,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& other495) { + dbName = other495.dbName; + tblName = other495.tblName; + colNames = other495.colNames; } -TableStatsRequest& TableStatsRequest::operator=(const TableStatsRequest& other476) { - dbName = other476.dbName; - tblName = other476.tblName; - colNames = other476.colNames; +TableStatsRequest& TableStatsRequest::operator=(const TableStatsRequest& other496) { + dbName = other496.dbName; + tblName = other496.tblName; + colNames = other496.colNames; return *this; } void TableStatsRequest::printTo(std::ostream& out) const { @@ -11288,14 +11835,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 _size497; + ::apache::thrift::protocol::TType _etype500; + xfer += iprot->readListBegin(_etype500, _size497); + this->colNames.resize(_size497); + uint32_t _i501; + for (_i501 = 0; _i501 < _size497; ++_i501) { - xfer += iprot->readString(this->colNames[_i481]); + xfer += iprot->readString(this->colNames[_i501]); } xfer += iprot->readListEnd(); } @@ -11308,14 +11855,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 _size502; + ::apache::thrift::protocol::TType _etype505; + xfer += iprot->readListBegin(_etype505, _size502); + this->partNames.resize(_size502); + uint32_t _i506; + for (_i506 = 0; _i506 < _size502; ++_i506) { - xfer += iprot->readString(this->partNames[_i486]); + xfer += iprot->readString(this->partNames[_i506]); } xfer += iprot->readListEnd(); } @@ -11360,10 +11907,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 _iter507; + for (_iter507 = this->colNames.begin(); _iter507 != this->colNames.end(); ++_iter507) { - xfer += oprot->writeString((*_iter487)); + xfer += oprot->writeString((*_iter507)); } xfer += oprot->writeListEnd(); } @@ -11372,10 +11919,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 _iter508; + for (_iter508 = this->partNames.begin(); _iter508 != this->partNames.end(); ++_iter508) { - xfer += oprot->writeString((*_iter488)); + xfer += oprot->writeString((*_iter508)); } xfer += oprot->writeListEnd(); } @@ -11394,17 +11941,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& other509) { + dbName = other509.dbName; + tblName = other509.tblName; + colNames = other509.colNames; + partNames = other509.partNames; } -PartitionsStatsRequest& PartitionsStatsRequest::operator=(const PartitionsStatsRequest& other490) { - dbName = other490.dbName; - tblName = other490.tblName; - colNames = other490.colNames; - partNames = other490.partNames; +PartitionsStatsRequest& PartitionsStatsRequest::operator=(const PartitionsStatsRequest& other510) { + dbName = other510.dbName; + tblName = other510.tblName; + colNames = other510.colNames; + partNames = other510.partNames; return *this; } void PartitionsStatsRequest::printTo(std::ostream& out) const { @@ -11452,14 +11999,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 _size511; + ::apache::thrift::protocol::TType _etype514; + xfer += iprot->readListBegin(_etype514, _size511); + this->partitions.resize(_size511); + uint32_t _i515; + for (_i515 = 0; _i515 < _size511; ++_i515) { - xfer += this->partitions[_i495].read(iprot); + xfer += this->partitions[_i515].read(iprot); } xfer += iprot->readListEnd(); } @@ -11489,10 +12036,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 _iter516; + for (_iter516 = this->partitions.begin(); _iter516 != this->partitions.end(); ++_iter516) { - xfer += (*_iter496).write(oprot); + xfer += (*_iter516).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11509,13 +12056,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& other517) { + partitions = other517.partitions; + __isset = other517.__isset; } -AddPartitionsResult& AddPartitionsResult::operator=(const AddPartitionsResult& other498) { - partitions = other498.partitions; - __isset = other498.__isset; +AddPartitionsResult& AddPartitionsResult::operator=(const AddPartitionsResult& other518) { + partitions = other518.partitions; + __isset = other518.__isset; return *this; } void AddPartitionsResult::printTo(std::ostream& out) const { @@ -11596,14 +12143,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 _size519; + ::apache::thrift::protocol::TType _etype522; + xfer += iprot->readListBegin(_etype522, _size519); + this->parts.resize(_size519); + uint32_t _i523; + for (_i523 = 0; _i523 < _size519; ++_i523) { - xfer += this->parts[_i503].read(iprot); + xfer += this->parts[_i523].read(iprot); } xfer += iprot->readListEnd(); } @@ -11664,10 +12211,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 _iter524; + for (_iter524 = this->parts.begin(); _iter524 != this->parts.end(); ++_iter524) { - xfer += (*_iter504).write(oprot); + xfer += (*_iter524).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11697,21 +12244,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::operator=(const AddPartitionsRequest& other506) { - dbName = other506.dbName; - tblName = other506.tblName; - parts = other506.parts; - ifNotExists = other506.ifNotExists; - needResult = other506.needResult; - __isset = other506.__isset; +AddPartitionsRequest::AddPartitionsRequest(const AddPartitionsRequest& other525) { + dbName = other525.dbName; + tblName = other525.tblName; + parts = other525.parts; + ifNotExists = other525.ifNotExists; + needResult = other525.needResult; + __isset = other525.__isset; +} +AddPartitionsRequest& AddPartitionsRequest::operator=(const AddPartitionsRequest& other526) { + dbName = other526.dbName; + tblName = other526.tblName; + parts = other526.parts; + ifNotExists = other526.ifNotExists; + needResult = other526.needResult; + __isset = other526.__isset; return *this; } void AddPartitionsRequest::printTo(std::ostream& out) const { @@ -11760,14 +12307,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 _size527; + ::apache::thrift::protocol::TType _etype530; + xfer += iprot->readListBegin(_etype530, _size527); + this->partitions.resize(_size527); + uint32_t _i531; + for (_i531 = 0; _i531 < _size527; ++_i531) { - xfer += this->partitions[_i511].read(iprot); + xfer += this->partitions[_i531].read(iprot); } xfer += iprot->readListEnd(); } @@ -11797,10 +12344,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 _iter532; + for (_iter532 = this->partitions.begin(); _iter532 != this->partitions.end(); ++_iter532) { - xfer += (*_iter512).write(oprot); + xfer += (*_iter532).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11817,13 +12364,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& other533) { + partitions = other533.partitions; + __isset = other533.__isset; } -DropPartitionsResult& DropPartitionsResult::operator=(const DropPartitionsResult& other514) { - partitions = other514.partitions; - __isset = other514.__isset; +DropPartitionsResult& DropPartitionsResult::operator=(const DropPartitionsResult& other534) { + partitions = other534.partitions; + __isset = other534.__isset; return *this; } void DropPartitionsResult::printTo(std::ostream& out) const { @@ -11925,15 +12472,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& other535) { + expr = other535.expr; + partArchiveLevel = other535.partArchiveLevel; + __isset = other535.__isset; } -DropPartitionsExpr& DropPartitionsExpr::operator=(const DropPartitionsExpr& other516) { - expr = other516.expr; - partArchiveLevel = other516.partArchiveLevel; - __isset = other516.__isset; +DropPartitionsExpr& DropPartitionsExpr::operator=(const DropPartitionsExpr& other536) { + expr = other536.expr; + partArchiveLevel = other536.partArchiveLevel; + __isset = other536.__isset; return *this; } void DropPartitionsExpr::printTo(std::ostream& out) const { @@ -11982,14 +12529,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 _size537; + ::apache::thrift::protocol::TType _etype540; + xfer += iprot->readListBegin(_etype540, _size537); + this->names.resize(_size537); + uint32_t _i541; + for (_i541 = 0; _i541 < _size537; ++_i541) { - xfer += iprot->readString(this->names[_i521]); + xfer += iprot->readString(this->names[_i541]); } xfer += iprot->readListEnd(); } @@ -12002,14 +12549,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 _size542; + ::apache::thrift::protocol::TType _etype545; + xfer += iprot->readListBegin(_etype545, _size542); + this->exprs.resize(_size542); + uint32_t _i546; + for (_i546 = 0; _i546 < _size542; ++_i546) { - xfer += this->exprs[_i526].read(iprot); + xfer += this->exprs[_i546].read(iprot); } xfer += iprot->readListEnd(); } @@ -12038,10 +12585,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 _iter547; + for (_iter547 = this->names.begin(); _iter547 != this->names.end(); ++_iter547) { - xfer += oprot->writeString((*_iter527)); + xfer += oprot->writeString((*_iter547)); } xfer += oprot->writeListEnd(); } @@ -12050,10 +12597,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 _iter548; + for (_iter548 = this->exprs.begin(); _iter548 != this->exprs.end(); ++_iter548) { - xfer += (*_iter528).write(oprot); + xfer += (*_iter548).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12071,15 +12618,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& other549) { + names = other549.names; + exprs = other549.exprs; + __isset = other549.__isset; } -RequestPartsSpec& RequestPartsSpec::operator=(const RequestPartsSpec& other530) { - names = other530.names; - exprs = other530.exprs; - __isset = other530.__isset; +RequestPartsSpec& RequestPartsSpec::operator=(const RequestPartsSpec& other550) { + names = other550.names; + exprs = other550.exprs; + __isset = other550.__isset; return *this; } void RequestPartsSpec::printTo(std::ostream& out) const { @@ -12298,27 +12845,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& other551) { + dbName = other551.dbName; + tblName = other551.tblName; + parts = other551.parts; + deleteData = other551.deleteData; + ifExists = other551.ifExists; + ignoreProtection = other551.ignoreProtection; + environmentContext = other551.environmentContext; + needResult = other551.needResult; + __isset = other551.__isset; +} +DropPartitionsRequest& DropPartitionsRequest::operator=(const DropPartitionsRequest& other552) { + dbName = other552.dbName; + tblName = other552.tblName; + parts = other552.parts; + deleteData = other552.deleteData; + ifExists = other552.ifExists; + ignoreProtection = other552.ignoreProtection; + environmentContext = other552.environmentContext; + needResult = other552.needResult; + __isset = other552.__isset; return *this; } void DropPartitionsRequest::printTo(std::ostream& out) const { @@ -12421,14 +12968,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 _size553; + ::apache::thrift::protocol::TType _etype556; + xfer += iprot->readListBegin(_etype556, _size553); + this->partitionKeys.resize(_size553); + uint32_t _i557; + for (_i557 = 0; _i557 < _size553; ++_i557) { - xfer += this->partitionKeys[_i537].read(iprot); + xfer += this->partitionKeys[_i557].read(iprot); } xfer += iprot->readListEnd(); } @@ -12457,14 +13004,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 _size558; + ::apache::thrift::protocol::TType _etype561; + xfer += iprot->readListBegin(_etype561, _size558); + this->partitionOrder.resize(_size558); + uint32_t _i562; + for (_i562 = 0; _i562 < _size558; ++_i562) { - xfer += this->partitionOrder[_i542].read(iprot); + xfer += this->partitionOrder[_i562].read(iprot); } xfer += iprot->readListEnd(); } @@ -12523,10 +13070,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 _iter563; + for (_iter563 = this->partitionKeys.begin(); _iter563 != this->partitionKeys.end(); ++_iter563) { - xfer += (*_iter543).write(oprot); + xfer += (*_iter563).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12546,10 +13093,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 _iter564; + for (_iter564 = this->partitionOrder.begin(); _iter564 != this->partitionOrder.end(); ++_iter564) { - xfer += (*_iter544).write(oprot); + xfer += (*_iter564).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12583,27 +13130,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& other565) { + dbName = other565.dbName; + tblName = other565.tblName; + partitionKeys = other565.partitionKeys; + applyDistinct = other565.applyDistinct; + filter = other565.filter; + partitionOrder = other565.partitionOrder; + ascending = other565.ascending; + maxParts = other565.maxParts; + __isset = other565.__isset; +} +PartitionValuesRequest& PartitionValuesRequest::operator=(const PartitionValuesRequest& other566) { + dbName = other566.dbName; + tblName = other566.tblName; + partitionKeys = other566.partitionKeys; + applyDistinct = other566.applyDistinct; + filter = other566.filter; + partitionOrder = other566.partitionOrder; + ascending = other566.ascending; + maxParts = other566.maxParts; + __isset = other566.__isset; return *this; } void PartitionValuesRequest::printTo(std::ostream& out) const { @@ -12655,14 +13202,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 _size567; + ::apache::thrift::protocol::TType _etype570; + xfer += iprot->readListBegin(_etype570, _size567); + this->row.resize(_size567); + uint32_t _i571; + for (_i571 = 0; _i571 < _size567; ++_i571) { - xfer += iprot->readString(this->row[_i551]); + xfer += iprot->readString(this->row[_i571]); } xfer += iprot->readListEnd(); } @@ -12693,10 +13240,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 _iter572; + for (_iter572 = this->row.begin(); _iter572 != this->row.end(); ++_iter572) { - xfer += oprot->writeString((*_iter552)); + xfer += oprot->writeString((*_iter572)); } xfer += oprot->writeListEnd(); } @@ -12712,11 +13259,11 @@ void swap(PartitionValuesRow &a, PartitionValuesRow &b) { swap(a.row, b.row); } -PartitionValuesRow::PartitionValuesRow(const PartitionValuesRow& other553) { - row = other553.row; +PartitionValuesRow::PartitionValuesRow(const PartitionValuesRow& other573) { + row = other573.row; } -PartitionValuesRow& PartitionValuesRow::operator=(const PartitionValuesRow& other554) { - row = other554.row; +PartitionValuesRow& PartitionValuesRow::operator=(const PartitionValuesRow& other574) { + row = other574.row; return *this; } void PartitionValuesRow::printTo(std::ostream& out) const { @@ -12761,14 +13308,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 _size575; + ::apache::thrift::protocol::TType _etype578; + xfer += iprot->readListBegin(_etype578, _size575); + this->partitionValues.resize(_size575); + uint32_t _i579; + for (_i579 = 0; _i579 < _size575; ++_i579) { - xfer += this->partitionValues[_i559].read(iprot); + xfer += this->partitionValues[_i579].read(iprot); } xfer += iprot->readListEnd(); } @@ -12799,10 +13346,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 _iter580; + for (_iter580 = this->partitionValues.begin(); _iter580 != this->partitionValues.end(); ++_iter580) { - xfer += (*_iter560).write(oprot); + xfer += (*_iter580).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12818,11 +13365,11 @@ void swap(PartitionValuesResponse &a, PartitionValuesResponse &b) { swap(a.partitionValues, b.partitionValues); } -PartitionValuesResponse::PartitionValuesResponse(const PartitionValuesResponse& other561) { - partitionValues = other561.partitionValues; +PartitionValuesResponse::PartitionValuesResponse(const PartitionValuesResponse& other581) { + partitionValues = other581.partitionValues; } -PartitionValuesResponse& PartitionValuesResponse::operator=(const PartitionValuesResponse& other562) { - partitionValues = other562.partitionValues; +PartitionValuesResponse& PartitionValuesResponse::operator=(const PartitionValuesResponse& other582) { + partitionValues = other582.partitionValues; return *this; } void PartitionValuesResponse::printTo(std::ostream& out) const { @@ -12868,9 +13415,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 ecast583; + xfer += iprot->readI32(ecast583); + this->resourceType = (ResourceType::type)ecast583; this->__isset.resourceType = true; } else { xfer += iprot->skip(ftype); @@ -12921,15 +13468,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& other584) { + resourceType = other584.resourceType; + uri = other584.uri; + __isset = other584.__isset; } -ResourceUri& ResourceUri::operator=(const ResourceUri& other565) { - resourceType = other565.resourceType; - uri = other565.uri; - __isset = other565.__isset; +ResourceUri& ResourceUri::operator=(const ResourceUri& other585) { + resourceType = other585.resourceType; + uri = other585.uri; + __isset = other585.__isset; return *this; } void ResourceUri::printTo(std::ostream& out) const { @@ -13032,9 +13579,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 ecast586; + xfer += iprot->readI32(ecast586); + this->ownerType = (PrincipalType::type)ecast586; this->__isset.ownerType = true; } else { xfer += iprot->skip(ftype); @@ -13050,9 +13597,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 ecast587; + xfer += iprot->readI32(ecast587); + this->functionType = (FunctionType::type)ecast587; this->__isset.functionType = true; } else { xfer += iprot->skip(ftype); @@ -13062,14 +13609,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 _size588; + ::apache::thrift::protocol::TType _etype591; + xfer += iprot->readListBegin(_etype591, _size588); + this->resourceUris.resize(_size588); + uint32_t _i592; + for (_i592 = 0; _i592 < _size588; ++_i592) { - xfer += this->resourceUris[_i572].read(iprot); + xfer += this->resourceUris[_i592].read(iprot); } xfer += iprot->readListEnd(); } @@ -13126,10 +13673,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 _iter593; + for (_iter593 = this->resourceUris.begin(); _iter593 != this->resourceUris.end(); ++_iter593) { - xfer += (*_iter573).write(oprot); + xfer += (*_iter593).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13153,27 +13700,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& other594) { + functionName = other594.functionName; + dbName = other594.dbName; + className = other594.className; + ownerName = other594.ownerName; + ownerType = other594.ownerType; + createTime = other594.createTime; + functionType = other594.functionType; + resourceUris = other594.resourceUris; + __isset = other594.__isset; +} +Function& Function::operator=(const Function& other595) { + functionName = other595.functionName; + dbName = other595.dbName; + className = other595.className; + ownerName = other595.ownerName; + ownerType = other595.ownerType; + createTime = other595.createTime; + functionType = other595.functionType; + resourceUris = other595.resourceUris; + __isset = other595.__isset; return *this; } void Function::printTo(std::ostream& out) const { @@ -13271,9 +13818,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 ecast596; + xfer += iprot->readI32(ecast596); + this->state = (TxnState::type)ecast596; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -13420,29 +13967,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& other597) { + id = other597.id; + state = other597.state; + user = other597.user; + hostname = other597.hostname; + agentInfo = other597.agentInfo; + heartbeatCount = other597.heartbeatCount; + metaInfo = other597.metaInfo; + startedTime = other597.startedTime; + lastHeartbeatTime = other597.lastHeartbeatTime; + __isset = other597.__isset; +} +TxnInfo& TxnInfo::operator=(const TxnInfo& other598) { + id = other598.id; + state = other598.state; + user = other598.user; + hostname = other598.hostname; + agentInfo = other598.agentInfo; + heartbeatCount = other598.heartbeatCount; + metaInfo = other598.metaInfo; + startedTime = other598.startedTime; + lastHeartbeatTime = other598.lastHeartbeatTime; + __isset = other598.__isset; return *this; } void TxnInfo::printTo(std::ostream& out) const { @@ -13508,14 +14055,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 _size599; + ::apache::thrift::protocol::TType _etype602; + xfer += iprot->readListBegin(_etype602, _size599); + this->open_txns.resize(_size599); + uint32_t _i603; + for (_i603 = 0; _i603 < _size599; ++_i603) { - xfer += this->open_txns[_i583].read(iprot); + xfer += this->open_txns[_i603].read(iprot); } xfer += iprot->readListEnd(); } @@ -13552,10 +14099,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 _iter604; + for (_iter604 = this->open_txns.begin(); _iter604 != this->open_txns.end(); ++_iter604) { - xfer += (*_iter584).write(oprot); + xfer += (*_iter604).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13572,13 +14119,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& other605) { + txn_high_water_mark = other605.txn_high_water_mark; + open_txns = other605.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& other606) { + txn_high_water_mark = other606.txn_high_water_mark; + open_txns = other606.open_txns; return *this; } void GetOpenTxnsInfoResponse::printTo(std::ostream& out) const { @@ -13647,14 +14194,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 _size607; + ::apache::thrift::protocol::TType _etype610; + xfer += iprot->readListBegin(_etype610, _size607); + this->open_txns.resize(_size607); + uint32_t _i611; + for (_i611 = 0; _i611 < _size607; ++_i611) { - xfer += iprot->readI64(this->open_txns[_i591]); + xfer += iprot->readI64(this->open_txns[_i611]); } xfer += iprot->readListEnd(); } @@ -13709,10 +14256,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 _iter612; + for (_iter612 = this->open_txns.begin(); _iter612 != this->open_txns.end(); ++_iter612) { - xfer += oprot->writeI64((*_iter592)); + xfer += oprot->writeI64((*_iter612)); } xfer += oprot->writeListEnd(); } @@ -13741,19 +14288,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& other613) { + txn_high_water_mark = other613.txn_high_water_mark; + open_txns = other613.open_txns; + min_open_txn = other613.min_open_txn; + abortedBits = other613.abortedBits; + __isset = other613.__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& other614) { + txn_high_water_mark = other614.txn_high_water_mark; + open_txns = other614.open_txns; + min_open_txn = other614.min_open_txn; + abortedBits = other614.abortedBits; + __isset = other614.__isset; return *this; } void GetOpenTxnsResponse::printTo(std::ostream& out) const { @@ -13898,19 +14445,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& other615) { + num_txns = other615.num_txns; + user = other615.user; + hostname = other615.hostname; + agentInfo = other615.agentInfo; + __isset = other615.__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& other616) { + num_txns = other616.num_txns; + user = other616.user; + hostname = other616.hostname; + agentInfo = other616.agentInfo; + __isset = other616.__isset; return *this; } void OpenTxnRequest::printTo(std::ostream& out) const { @@ -13958,14 +14505,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 _size617; + ::apache::thrift::protocol::TType _etype620; + xfer += iprot->readListBegin(_etype620, _size617); + this->txn_ids.resize(_size617); + uint32_t _i621; + for (_i621 = 0; _i621 < _size617; ++_i621) { - xfer += iprot->readI64(this->txn_ids[_i601]); + xfer += iprot->readI64(this->txn_ids[_i621]); } xfer += iprot->readListEnd(); } @@ -13996,10 +14543,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 _iter622; + for (_iter622 = this->txn_ids.begin(); _iter622 != this->txn_ids.end(); ++_iter622) { - xfer += oprot->writeI64((*_iter602)); + xfer += oprot->writeI64((*_iter622)); } xfer += oprot->writeListEnd(); } @@ -14015,11 +14562,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& other623) { + txn_ids = other623.txn_ids; } -OpenTxnsResponse& OpenTxnsResponse::operator=(const OpenTxnsResponse& other604) { - txn_ids = other604.txn_ids; +OpenTxnsResponse& OpenTxnsResponse::operator=(const OpenTxnsResponse& other624) { + txn_ids = other624.txn_ids; return *this; } void OpenTxnsResponse::printTo(std::ostream& out) const { @@ -14101,11 +14648,11 @@ void swap(AbortTxnRequest &a, AbortTxnRequest &b) { swap(a.txnid, b.txnid); } -AbortTxnRequest::AbortTxnRequest(const AbortTxnRequest& other605) { - txnid = other605.txnid; +AbortTxnRequest::AbortTxnRequest(const AbortTxnRequest& other625) { + txnid = other625.txnid; } -AbortTxnRequest& AbortTxnRequest::operator=(const AbortTxnRequest& other606) { - txnid = other606.txnid; +AbortTxnRequest& AbortTxnRequest::operator=(const AbortTxnRequest& other626) { + txnid = other626.txnid; return *this; } void AbortTxnRequest::printTo(std::ostream& out) const { @@ -14150,14 +14697,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 _size627; + ::apache::thrift::protocol::TType _etype630; + xfer += iprot->readListBegin(_etype630, _size627); + this->txn_ids.resize(_size627); + uint32_t _i631; + for (_i631 = 0; _i631 < _size627; ++_i631) { - xfer += iprot->readI64(this->txn_ids[_i611]); + xfer += iprot->readI64(this->txn_ids[_i631]); } xfer += iprot->readListEnd(); } @@ -14188,10 +14735,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 _iter632; + for (_iter632 = this->txn_ids.begin(); _iter632 != this->txn_ids.end(); ++_iter632) { - xfer += oprot->writeI64((*_iter612)); + xfer += oprot->writeI64((*_iter632)); } xfer += oprot->writeListEnd(); } @@ -14207,11 +14754,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& other633) { + txn_ids = other633.txn_ids; } -AbortTxnsRequest& AbortTxnsRequest::operator=(const AbortTxnsRequest& other614) { - txn_ids = other614.txn_ids; +AbortTxnsRequest& AbortTxnsRequest::operator=(const AbortTxnsRequest& other634) { + txn_ids = other634.txn_ids; return *this; } void AbortTxnsRequest::printTo(std::ostream& out) const { @@ -14293,11 +14840,11 @@ void swap(CommitTxnRequest &a, CommitTxnRequest &b) { swap(a.txnid, b.txnid); } -CommitTxnRequest::CommitTxnRequest(const CommitTxnRequest& other615) { - txnid = other615.txnid; +CommitTxnRequest::CommitTxnRequest(const CommitTxnRequest& other635) { + txnid = other635.txnid; } -CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other616) { - txnid = other616.txnid; +CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other636) { + txnid = other636.txnid; return *this; } void CommitTxnRequest::printTo(std::ostream& out) const { @@ -14375,9 +14922,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 ecast637; + xfer += iprot->readI32(ecast637); + this->type = (LockType::type)ecast637; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -14385,9 +14932,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 ecast638; + xfer += iprot->readI32(ecast638); + this->level = (LockLevel::type)ecast638; isset_level = true; } else { xfer += iprot->skip(ftype); @@ -14419,9 +14966,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 ecast639; + xfer += iprot->readI32(ecast639); + this->operationType = (DataOperationType::type)ecast639; this->__isset.operationType = true; } else { xfer += iprot->skip(ftype); @@ -14521,27 +15068,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& other640) { + type = other640.type; + level = other640.level; + dbname = other640.dbname; + tablename = other640.tablename; + partitionname = other640.partitionname; + operationType = other640.operationType; + isAcid = other640.isAcid; + isDynamicPartitionWrite = other640.isDynamicPartitionWrite; + __isset = other640.__isset; +} +LockComponent& LockComponent::operator=(const LockComponent& other641) { + type = other641.type; + level = other641.level; + dbname = other641.dbname; + tablename = other641.tablename; + partitionname = other641.partitionname; + operationType = other641.operationType; + isAcid = other641.isAcid; + isDynamicPartitionWrite = other641.isDynamicPartitionWrite; + __isset = other641.__isset; return *this; } void LockComponent::printTo(std::ostream& out) const { @@ -14613,14 +15160,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 _size642; + ::apache::thrift::protocol::TType _etype645; + xfer += iprot->readListBegin(_etype645, _size642); + this->component.resize(_size642); + uint32_t _i646; + for (_i646 = 0; _i646 < _size642; ++_i646) { - xfer += this->component[_i626].read(iprot); + xfer += this->component[_i646].read(iprot); } xfer += iprot->readListEnd(); } @@ -14687,10 +15234,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 _iter647; + for (_iter647 = this->component.begin(); _iter647 != this->component.end(); ++_iter647) { - xfer += (*_iter627).write(oprot); + xfer += (*_iter647).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14729,21 +15276,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& other648) { + component = other648.component; + txnid = other648.txnid; + user = other648.user; + hostname = other648.hostname; + agentInfo = other648.agentInfo; + __isset = other648.__isset; +} +LockRequest& LockRequest::operator=(const LockRequest& other649) { + component = other649.component; + txnid = other649.txnid; + user = other649.user; + hostname = other649.hostname; + agentInfo = other649.agentInfo; + __isset = other649.__isset; return *this; } void LockRequest::printTo(std::ostream& out) const { @@ -14803,9 +15350,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 ecast650; + xfer += iprot->readI32(ecast650); + this->state = (LockState::type)ecast650; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -14851,13 +15398,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& other651) { + lockid = other651.lockid; + state = other651.state; } -LockResponse& LockResponse::operator=(const LockResponse& other632) { - lockid = other632.lockid; - state = other632.state; +LockResponse& LockResponse::operator=(const LockResponse& other652) { + lockid = other652.lockid; + state = other652.state; return *this; } void LockResponse::printTo(std::ostream& out) const { @@ -14979,17 +15526,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& other653) { + lockid = other653.lockid; + txnid = other653.txnid; + elapsed_ms = other653.elapsed_ms; + __isset = other653.__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& other654) { + lockid = other654.lockid; + txnid = other654.txnid; + elapsed_ms = other654.elapsed_ms; + __isset = other654.__isset; return *this; } void CheckLockRequest::printTo(std::ostream& out) const { @@ -15073,11 +15620,11 @@ void swap(UnlockRequest &a, UnlockRequest &b) { swap(a.lockid, b.lockid); } -UnlockRequest::UnlockRequest(const UnlockRequest& other635) { - lockid = other635.lockid; +UnlockRequest::UnlockRequest(const UnlockRequest& other655) { + lockid = other655.lockid; } -UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other636) { - lockid = other636.lockid; +UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other656) { + lockid = other656.lockid; return *this; } void UnlockRequest::printTo(std::ostream& out) const { @@ -15216,19 +15763,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& other657) { + dbname = other657.dbname; + tablename = other657.tablename; + partname = other657.partname; + isExtended = other657.isExtended; + __isset = other657.__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& other658) { + dbname = other658.dbname; + tablename = other658.tablename; + partname = other658.partname; + isExtended = other658.isExtended; + __isset = other658.__isset; return *this; } void ShowLocksRequest::printTo(std::ostream& out) const { @@ -15381,9 +15928,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 ecast659; + xfer += iprot->readI32(ecast659); + this->state = (LockState::type)ecast659; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -15391,9 +15938,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 ecast660; + xfer += iprot->readI32(ecast660); + this->type = (LockType::type)ecast660; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -15609,43 +16156,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::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(const ShowLocksResponseElement& other661) { + lockid = other661.lockid; + dbname = other661.dbname; + tablename = other661.tablename; + partname = other661.partname; + state = other661.state; + type = other661.type; + txnid = other661.txnid; + lastheartbeat = other661.lastheartbeat; + acquiredat = other661.acquiredat; + user = other661.user; + hostname = other661.hostname; + heartbeatCount = other661.heartbeatCount; + agentInfo = other661.agentInfo; + blockedByExtId = other661.blockedByExtId; + blockedByIntId = other661.blockedByIntId; + lockIdInternal = other661.lockIdInternal; + __isset = other661.__isset; +} +ShowLocksResponseElement& ShowLocksResponseElement::operator=(const ShowLocksResponseElement& other662) { + lockid = other662.lockid; + dbname = other662.dbname; + tablename = other662.tablename; + partname = other662.partname; + state = other662.state; + type = other662.type; + txnid = other662.txnid; + lastheartbeat = other662.lastheartbeat; + acquiredat = other662.acquiredat; + user = other662.user; + hostname = other662.hostname; + heartbeatCount = other662.heartbeatCount; + agentInfo = other662.agentInfo; + blockedByExtId = other662.blockedByExtId; + blockedByIntId = other662.blockedByIntId; + lockIdInternal = other662.lockIdInternal; + __isset = other662.__isset; return *this; } void ShowLocksResponseElement::printTo(std::ostream& out) const { @@ -15704,14 +16251,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 _size663; + ::apache::thrift::protocol::TType _etype666; + xfer += iprot->readListBegin(_etype666, _size663); + this->locks.resize(_size663); + uint32_t _i667; + for (_i667 = 0; _i667 < _size663; ++_i667) { - xfer += this->locks[_i647].read(iprot); + xfer += this->locks[_i667].read(iprot); } xfer += iprot->readListEnd(); } @@ -15740,10 +16287,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 _iter668; + for (_iter668 = this->locks.begin(); _iter668 != this->locks.end(); ++_iter668) { - xfer += (*_iter648).write(oprot); + xfer += (*_iter668).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15760,13 +16307,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& other669) { + locks = other669.locks; + __isset = other669.__isset; } -ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other650) { - locks = other650.locks; - __isset = other650.__isset; +ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other670) { + locks = other670.locks; + __isset = other670.__isset; return *this; } void ShowLocksResponse::printTo(std::ostream& out) const { @@ -15867,15 +16414,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& other671) { + lockid = other671.lockid; + txnid = other671.txnid; + __isset = other671.__isset; } -HeartbeatRequest& HeartbeatRequest::operator=(const HeartbeatRequest& other652) { - lockid = other652.lockid; - txnid = other652.txnid; - __isset = other652.__isset; +HeartbeatRequest& HeartbeatRequest::operator=(const HeartbeatRequest& other672) { + lockid = other672.lockid; + txnid = other672.txnid; + __isset = other672.__isset; return *this; } void HeartbeatRequest::printTo(std::ostream& out) const { @@ -15978,13 +16525,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& other673) { + min = other673.min; + max = other673.max; } -HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other654) { - min = other654.min; - max = other654.max; +HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other674) { + min = other674.min; + max = other674.max; return *this; } void HeartbeatTxnRangeRequest::printTo(std::ostream& out) const { @@ -16035,15 +16582,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 _size675; + ::apache::thrift::protocol::TType _etype678; + xfer += iprot->readSetBegin(_etype678, _size675); + uint32_t _i679; + for (_i679 = 0; _i679 < _size675; ++_i679) { - int64_t _elem660; - xfer += iprot->readI64(_elem660); - this->aborted.insert(_elem660); + int64_t _elem680; + xfer += iprot->readI64(_elem680); + this->aborted.insert(_elem680); } xfer += iprot->readSetEnd(); } @@ -16056,15 +16603,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 _size681; + ::apache::thrift::protocol::TType _etype684; + xfer += iprot->readSetBegin(_etype684, _size681); + uint32_t _i685; + for (_i685 = 0; _i685 < _size681; ++_i685) { - int64_t _elem666; - xfer += iprot->readI64(_elem666); - this->nosuch.insert(_elem666); + int64_t _elem686; + xfer += iprot->readI64(_elem686); + this->nosuch.insert(_elem686); } xfer += iprot->readSetEnd(); } @@ -16097,10 +16644,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 _iter687; + for (_iter687 = this->aborted.begin(); _iter687 != this->aborted.end(); ++_iter687) { - xfer += oprot->writeI64((*_iter667)); + xfer += oprot->writeI64((*_iter687)); } xfer += oprot->writeSetEnd(); } @@ -16109,10 +16656,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 _iter688; + for (_iter688 = this->nosuch.begin(); _iter688 != this->nosuch.end(); ++_iter688) { - xfer += oprot->writeI64((*_iter668)); + xfer += oprot->writeI64((*_iter688)); } xfer += oprot->writeSetEnd(); } @@ -16129,13 +16676,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& other689) { + aborted = other689.aborted; + nosuch = other689.nosuch; } -HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other670) { - aborted = other670.aborted; - nosuch = other670.nosuch; +HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other690) { + aborted = other690.aborted; + nosuch = other690.nosuch; return *this; } void HeartbeatTxnRangeResponse::printTo(std::ostream& out) const { @@ -16228,9 +16775,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 ecast691; + xfer += iprot->readI32(ecast691); + this->type = (CompactionType::type)ecast691; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -16248,17 +16795,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 _size692; + ::apache::thrift::protocol::TType _ktype693; + ::apache::thrift::protocol::TType _vtype694; + xfer += iprot->readMapBegin(_ktype693, _vtype694, _size692); + uint32_t _i696; + for (_i696 = 0; _i696 < _size692; ++_i696) { - std::string _key677; - xfer += iprot->readString(_key677); - std::string& _val678 = this->properties[_key677]; - xfer += iprot->readString(_val678); + std::string _key697; + xfer += iprot->readString(_key697); + std::string& _val698 = this->properties[_key697]; + xfer += iprot->readString(_val698); } xfer += iprot->readMapEnd(); } @@ -16316,11 +16863,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 _iter699; + for (_iter699 = this->properties.begin(); _iter699 != this->properties.end(); ++_iter699) { - xfer += oprot->writeString(_iter679->first); - xfer += oprot->writeString(_iter679->second); + xfer += oprot->writeString(_iter699->first); + xfer += oprot->writeString(_iter699->second); } xfer += oprot->writeMapEnd(); } @@ -16342,23 +16889,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& other700) { + dbname = other700.dbname; + tablename = other700.tablename; + partitionname = other700.partitionname; + type = other700.type; + runas = other700.runas; + properties = other700.properties; + __isset = other700.__isset; +} +CompactionRequest& CompactionRequest::operator=(const CompactionRequest& other701) { + dbname = other701.dbname; + tablename = other701.tablename; + partitionname = other701.partitionname; + type = other701.type; + runas = other701.runas; + properties = other701.properties; + __isset = other701.__isset; return *this; } void CompactionRequest::printTo(std::ostream& out) const { @@ -16485,15 +17032,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& other702) { + id = other702.id; + state = other702.state; + accepted = other702.accepted; } -CompactionResponse& CompactionResponse::operator=(const CompactionResponse& other683) { - id = other683.id; - state = other683.state; - accepted = other683.accepted; +CompactionResponse& CompactionResponse::operator=(const CompactionResponse& other703) { + id = other703.id; + state = other703.state; + accepted = other703.accepted; return *this; } void CompactionResponse::printTo(std::ostream& out) const { @@ -16554,11 +17101,11 @@ void swap(ShowCompactRequest &a, ShowCompactRequest &b) { (void) b; } -ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other684) { - (void) other684; +ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other704) { + (void) other704; } -ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other685) { - (void) other685; +ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other705) { + (void) other705; return *this; } void ShowCompactRequest::printTo(std::ostream& out) const { @@ -16684,9 +17231,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 ecast706; + xfer += iprot->readI32(ecast706); + this->type = (CompactionType::type)ecast706; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -16873,37 +17420,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& other707) { + dbname = other707.dbname; + tablename = other707.tablename; + partitionname = other707.partitionname; + type = other707.type; + state = other707.state; + workerid = other707.workerid; + start = other707.start; + runAs = other707.runAs; + hightestTxnId = other707.hightestTxnId; + metaInfo = other707.metaInfo; + endTime = other707.endTime; + hadoopJobId = other707.hadoopJobId; + id = other707.id; + __isset = other707.__isset; +} +ShowCompactResponseElement& ShowCompactResponseElement::operator=(const ShowCompactResponseElement& other708) { + dbname = other708.dbname; + tablename = other708.tablename; + partitionname = other708.partitionname; + type = other708.type; + state = other708.state; + workerid = other708.workerid; + start = other708.start; + runAs = other708.runAs; + hightestTxnId = other708.hightestTxnId; + metaInfo = other708.metaInfo; + endTime = other708.endTime; + hadoopJobId = other708.hadoopJobId; + id = other708.id; + __isset = other708.__isset; return *this; } void ShowCompactResponseElement::printTo(std::ostream& out) const { @@ -16960,14 +17507,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 _size709; + ::apache::thrift::protocol::TType _etype712; + xfer += iprot->readListBegin(_etype712, _size709); + this->compacts.resize(_size709); + uint32_t _i713; + for (_i713 = 0; _i713 < _size709; ++_i713) { - xfer += this->compacts[_i693].read(iprot); + xfer += this->compacts[_i713].read(iprot); } xfer += iprot->readListEnd(); } @@ -16998,10 +17545,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 _iter714; + for (_iter714 = this->compacts.begin(); _iter714 != this->compacts.end(); ++_iter714) { - xfer += (*_iter694).write(oprot); + xfer += (*_iter714).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17017,11 +17564,11 @@ void swap(ShowCompactResponse &a, ShowCompactResponse &b) { swap(a.compacts, b.compacts); } -ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other695) { - compacts = other695.compacts; +ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other715) { + compacts = other715.compacts; } -ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other696) { - compacts = other696.compacts; +ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other716) { + compacts = other716.compacts; return *this; } void ShowCompactResponse::printTo(std::ostream& out) const { @@ -17110,14 +17657,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 _size717; + ::apache::thrift::protocol::TType _etype720; + xfer += iprot->readListBegin(_etype720, _size717); + this->partitionnames.resize(_size717); + uint32_t _i721; + for (_i721 = 0; _i721 < _size717; ++_i721) { - xfer += iprot->readString(this->partitionnames[_i701]); + xfer += iprot->readString(this->partitionnames[_i721]); } xfer += iprot->readListEnd(); } @@ -17128,9 +17675,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 ecast722; + xfer += iprot->readI32(ecast722); + this->operationType = (DataOperationType::type)ecast722; this->__isset.operationType = true; } else { xfer += iprot->skip(ftype); @@ -17176,10 +17723,10 @@ 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) + std::vector ::const_iterator _iter723; + for (_iter723 = this->partitionnames.begin(); _iter723 != this->partitionnames.end(); ++_iter723) { - xfer += oprot->writeString((*_iter703)); + xfer += oprot->writeString((*_iter723)); } xfer += oprot->writeListEnd(); } @@ -17205,21 +17752,21 @@ void swap(AddDynamicPartitions &a, AddDynamicPartitions &b) { swap(a.__isset, b.__isset); } -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; +AddDynamicPartitions::AddDynamicPartitions(const AddDynamicPartitions& other724) { + txnid = other724.txnid; + dbname = other724.dbname; + tablename = other724.tablename; + partitionnames = other724.partitionnames; + operationType = other724.operationType; + __isset = other724.__isset; +} +AddDynamicPartitions& AddDynamicPartitions::operator=(const AddDynamicPartitions& other725) { + txnid = other725.txnid; + dbname = other725.dbname; + tablename = other725.tablename; + partitionnames = other725.partitionnames; + operationType = other725.operationType; + __isset = other725.__isset; return *this; } void AddDynamicPartitions::printTo(std::ostream& out) const { @@ -17401,23 +17948,23 @@ void swap(BasicTxnInfo &a, BasicTxnInfo &b) { swap(a.__isset, b.__isset); } -BasicTxnInfo::BasicTxnInfo(const BasicTxnInfo& other706) { - isnull = other706.isnull; - time = other706.time; - txnid = other706.txnid; - dbname = other706.dbname; - tablename = other706.tablename; - partitionname = other706.partitionname; - __isset = other706.__isset; -} -BasicTxnInfo& BasicTxnInfo::operator=(const BasicTxnInfo& other707) { - isnull = other707.isnull; - time = other707.time; - txnid = other707.txnid; - dbname = other707.dbname; - tablename = other707.tablename; - partitionname = other707.partitionname; - __isset = other707.__isset; +BasicTxnInfo::BasicTxnInfo(const BasicTxnInfo& other726) { + isnull = other726.isnull; + time = other726.time; + txnid = other726.txnid; + dbname = other726.dbname; + tablename = other726.tablename; + partitionname = other726.partitionname; + __isset = other726.__isset; +} +BasicTxnInfo& BasicTxnInfo::operator=(const BasicTxnInfo& other727) { + isnull = other727.isnull; + time = other727.time; + txnid = other727.txnid; + dbname = other727.dbname; + tablename = other727.tablename; + partitionname = other727.partitionname; + __isset = other727.__isset; return *this; } void BasicTxnInfo::printTo(std::ostream& out) const { @@ -17498,15 +18045,15 @@ uint32_t CreationMetadata::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_SET) { { this->tablesUsed.clear(); - uint32_t _size708; - ::apache::thrift::protocol::TType _etype711; - xfer += iprot->readSetBegin(_etype711, _size708); - uint32_t _i712; - for (_i712 = 0; _i712 < _size708; ++_i712) + uint32_t _size728; + ::apache::thrift::protocol::TType _etype731; + xfer += iprot->readSetBegin(_etype731, _size728); + uint32_t _i732; + for (_i732 = 0; _i732 < _size728; ++_i732) { - std::string _elem713; - xfer += iprot->readString(_elem713); - this->tablesUsed.insert(_elem713); + std::string _elem733; + xfer += iprot->readString(_elem733); + this->tablesUsed.insert(_elem733); } xfer += iprot->readSetEnd(); } @@ -17557,10 +18104,10 @@ uint32_t CreationMetadata::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("tablesUsed", ::apache::thrift::protocol::T_SET, 3); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tablesUsed.size())); - std::set ::const_iterator _iter714; - for (_iter714 = this->tablesUsed.begin(); _iter714 != this->tablesUsed.end(); ++_iter714) + std::set ::const_iterator _iter734; + for (_iter734 = this->tablesUsed.begin(); _iter734 != this->tablesUsed.end(); ++_iter734) { - xfer += oprot->writeString((*_iter714)); + xfer += oprot->writeString((*_iter734)); } xfer += oprot->writeSetEnd(); } @@ -17585,19 +18132,19 @@ void swap(CreationMetadata &a, CreationMetadata &b) { swap(a.__isset, b.__isset); } -CreationMetadata::CreationMetadata(const CreationMetadata& other715) { - dbName = other715.dbName; - tblName = other715.tblName; - tablesUsed = other715.tablesUsed; - validTxnList = other715.validTxnList; - __isset = other715.__isset; +CreationMetadata::CreationMetadata(const CreationMetadata& other735) { + dbName = other735.dbName; + tblName = other735.tblName; + tablesUsed = other735.tablesUsed; + validTxnList = other735.validTxnList; + __isset = other735.__isset; } -CreationMetadata& CreationMetadata::operator=(const CreationMetadata& other716) { - dbName = other716.dbName; - tblName = other716.tblName; - tablesUsed = other716.tablesUsed; - validTxnList = other716.validTxnList; - __isset = other716.__isset; +CreationMetadata& CreationMetadata::operator=(const CreationMetadata& other736) { + dbName = other736.dbName; + tblName = other736.tblName; + tablesUsed = other736.tablesUsed; + validTxnList = other736.validTxnList; + __isset = other736.__isset; return *this; } void CreationMetadata::printTo(std::ostream& out) const { @@ -17702,15 +18249,15 @@ void swap(NotificationEventRequest &a, NotificationEventRequest &b) { swap(a.__isset, b.__isset); } -NotificationEventRequest::NotificationEventRequest(const NotificationEventRequest& other717) { - lastEvent = other717.lastEvent; - maxEvents = other717.maxEvents; - __isset = other717.__isset; +NotificationEventRequest::NotificationEventRequest(const NotificationEventRequest& other737) { + lastEvent = other737.lastEvent; + maxEvents = other737.maxEvents; + __isset = other737.__isset; } -NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other718) { - lastEvent = other718.lastEvent; - maxEvents = other718.maxEvents; - __isset = other718.__isset; +NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other738) { + lastEvent = other738.lastEvent; + maxEvents = other738.maxEvents; + __isset = other738.__isset; return *this; } void NotificationEventRequest::printTo(std::ostream& out) const { @@ -17911,25 +18458,25 @@ void swap(NotificationEvent &a, NotificationEvent &b) { swap(a.__isset, b.__isset); } -NotificationEvent::NotificationEvent(const NotificationEvent& other719) { - eventId = other719.eventId; - eventTime = other719.eventTime; - eventType = other719.eventType; - dbName = other719.dbName; - tableName = other719.tableName; - message = other719.message; - messageFormat = other719.messageFormat; - __isset = other719.__isset; -} -NotificationEvent& NotificationEvent::operator=(const NotificationEvent& other720) { - eventId = other720.eventId; - eventTime = other720.eventTime; - eventType = other720.eventType; - dbName = other720.dbName; - tableName = other720.tableName; - message = other720.message; - messageFormat = other720.messageFormat; - __isset = other720.__isset; +NotificationEvent::NotificationEvent(const NotificationEvent& other739) { + eventId = other739.eventId; + eventTime = other739.eventTime; + eventType = other739.eventType; + dbName = other739.dbName; + tableName = other739.tableName; + message = other739.message; + messageFormat = other739.messageFormat; + __isset = other739.__isset; +} +NotificationEvent& NotificationEvent::operator=(const NotificationEvent& other740) { + eventId = other740.eventId; + eventTime = other740.eventTime; + eventType = other740.eventType; + dbName = other740.dbName; + tableName = other740.tableName; + message = other740.message; + messageFormat = other740.messageFormat; + __isset = other740.__isset; return *this; } void NotificationEvent::printTo(std::ostream& out) const { @@ -17980,14 +18527,14 @@ uint32_t NotificationEventResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->events.clear(); - uint32_t _size721; - ::apache::thrift::protocol::TType _etype724; - xfer += iprot->readListBegin(_etype724, _size721); - this->events.resize(_size721); - uint32_t _i725; - for (_i725 = 0; _i725 < _size721; ++_i725) + uint32_t _size741; + ::apache::thrift::protocol::TType _etype744; + xfer += iprot->readListBegin(_etype744, _size741); + this->events.resize(_size741); + uint32_t _i745; + for (_i745 = 0; _i745 < _size741; ++_i745) { - xfer += this->events[_i725].read(iprot); + xfer += this->events[_i745].read(iprot); } xfer += iprot->readListEnd(); } @@ -18018,10 +18565,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 _iter726; - for (_iter726 = this->events.begin(); _iter726 != this->events.end(); ++_iter726) + std::vector ::const_iterator _iter746; + for (_iter746 = this->events.begin(); _iter746 != this->events.end(); ++_iter746) { - xfer += (*_iter726).write(oprot); + xfer += (*_iter746).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18037,11 +18584,11 @@ void swap(NotificationEventResponse &a, NotificationEventResponse &b) { swap(a.events, b.events); } -NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other727) { - events = other727.events; +NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other747) { + events = other747.events; } -NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other728) { - events = other728.events; +NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other748) { + events = other748.events; return *this; } void NotificationEventResponse::printTo(std::ostream& out) const { @@ -18123,11 +18670,11 @@ void swap(CurrentNotificationEventId &a, CurrentNotificationEventId &b) { swap(a.eventId, b.eventId); } -CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other729) { - eventId = other729.eventId; +CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other749) { + eventId = other749.eventId; } -CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other730) { - eventId = other730.eventId; +CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other750) { + eventId = other750.eventId; return *this; } void CurrentNotificationEventId::printTo(std::ostream& out) const { @@ -18229,13 +18776,13 @@ void swap(NotificationEventsCountRequest &a, NotificationEventsCountRequest &b) swap(a.dbName, b.dbName); } -NotificationEventsCountRequest::NotificationEventsCountRequest(const NotificationEventsCountRequest& other731) { - fromEventId = other731.fromEventId; - dbName = other731.dbName; +NotificationEventsCountRequest::NotificationEventsCountRequest(const NotificationEventsCountRequest& other751) { + fromEventId = other751.fromEventId; + dbName = other751.dbName; } -NotificationEventsCountRequest& NotificationEventsCountRequest::operator=(const NotificationEventsCountRequest& other732) { - fromEventId = other732.fromEventId; - dbName = other732.dbName; +NotificationEventsCountRequest& NotificationEventsCountRequest::operator=(const NotificationEventsCountRequest& other752) { + fromEventId = other752.fromEventId; + dbName = other752.dbName; return *this; } void NotificationEventsCountRequest::printTo(std::ostream& out) const { @@ -18318,11 +18865,11 @@ void swap(NotificationEventsCountResponse &a, NotificationEventsCountResponse &b swap(a.eventsCount, b.eventsCount); } -NotificationEventsCountResponse::NotificationEventsCountResponse(const NotificationEventsCountResponse& other733) { - eventsCount = other733.eventsCount; +NotificationEventsCountResponse::NotificationEventsCountResponse(const NotificationEventsCountResponse& other753) { + eventsCount = other753.eventsCount; } -NotificationEventsCountResponse& NotificationEventsCountResponse::operator=(const NotificationEventsCountResponse& other734) { - eventsCount = other734.eventsCount; +NotificationEventsCountResponse& NotificationEventsCountResponse::operator=(const NotificationEventsCountResponse& other754) { + eventsCount = other754.eventsCount; return *this; } void NotificationEventsCountResponse::printTo(std::ostream& out) const { @@ -18385,14 +18932,14 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->filesAdded.clear(); - uint32_t _size735; - ::apache::thrift::protocol::TType _etype738; - xfer += iprot->readListBegin(_etype738, _size735); - this->filesAdded.resize(_size735); - uint32_t _i739; - for (_i739 = 0; _i739 < _size735; ++_i739) + uint32_t _size755; + ::apache::thrift::protocol::TType _etype758; + xfer += iprot->readListBegin(_etype758, _size755); + this->filesAdded.resize(_size755); + uint32_t _i759; + for (_i759 = 0; _i759 < _size755; ++_i759) { - xfer += iprot->readString(this->filesAdded[_i739]); + xfer += iprot->readString(this->filesAdded[_i759]); } xfer += iprot->readListEnd(); } @@ -18405,14 +18952,14 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->filesAddedChecksum.clear(); - uint32_t _size740; - ::apache::thrift::protocol::TType _etype743; - xfer += iprot->readListBegin(_etype743, _size740); - this->filesAddedChecksum.resize(_size740); - uint32_t _i744; - for (_i744 = 0; _i744 < _size740; ++_i744) + uint32_t _size760; + ::apache::thrift::protocol::TType _etype763; + xfer += iprot->readListBegin(_etype763, _size760); + this->filesAddedChecksum.resize(_size760); + uint32_t _i764; + for (_i764 = 0; _i764 < _size760; ++_i764) { - xfer += iprot->readString(this->filesAddedChecksum[_i744]); + xfer += iprot->readString(this->filesAddedChecksum[_i764]); } xfer += iprot->readListEnd(); } @@ -18448,10 +18995,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 _iter745; - for (_iter745 = this->filesAdded.begin(); _iter745 != this->filesAdded.end(); ++_iter745) + std::vector ::const_iterator _iter765; + for (_iter765 = this->filesAdded.begin(); _iter765 != this->filesAdded.end(); ++_iter765) { - xfer += oprot->writeString((*_iter745)); + xfer += oprot->writeString((*_iter765)); } xfer += oprot->writeListEnd(); } @@ -18461,10 +19008,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 _iter746; - for (_iter746 = this->filesAddedChecksum.begin(); _iter746 != this->filesAddedChecksum.end(); ++_iter746) + std::vector ::const_iterator _iter766; + for (_iter766 = this->filesAddedChecksum.begin(); _iter766 != this->filesAddedChecksum.end(); ++_iter766) { - xfer += oprot->writeString((*_iter746)); + xfer += oprot->writeString((*_iter766)); } xfer += oprot->writeListEnd(); } @@ -18483,17 +19030,17 @@ void swap(InsertEventRequestData &a, InsertEventRequestData &b) { swap(a.__isset, b.__isset); } -InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other747) { - replace = other747.replace; - filesAdded = other747.filesAdded; - filesAddedChecksum = other747.filesAddedChecksum; - __isset = other747.__isset; +InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other767) { + replace = other767.replace; + filesAdded = other767.filesAdded; + filesAddedChecksum = other767.filesAddedChecksum; + __isset = other767.__isset; } -InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other748) { - replace = other748.replace; - filesAdded = other748.filesAdded; - filesAddedChecksum = other748.filesAddedChecksum; - __isset = other748.__isset; +InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other768) { + replace = other768.replace; + filesAdded = other768.filesAdded; + filesAddedChecksum = other768.filesAddedChecksum; + __isset = other768.__isset; return *this; } void InsertEventRequestData::printTo(std::ostream& out) const { @@ -18575,13 +19122,13 @@ void swap(FireEventRequestData &a, FireEventRequestData &b) { swap(a.__isset, b.__isset); } -FireEventRequestData::FireEventRequestData(const FireEventRequestData& other749) { - insertData = other749.insertData; - __isset = other749.__isset; +FireEventRequestData::FireEventRequestData(const FireEventRequestData& other769) { + insertData = other769.insertData; + __isset = other769.__isset; } -FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other750) { - insertData = other750.insertData; - __isset = other750.__isset; +FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other770) { + insertData = other770.insertData; + __isset = other770.__isset; return *this; } void FireEventRequestData::printTo(std::ostream& out) const { @@ -18678,14 +19225,14 @@ uint32_t FireEventRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionVals.clear(); - uint32_t _size751; - ::apache::thrift::protocol::TType _etype754; - xfer += iprot->readListBegin(_etype754, _size751); - this->partitionVals.resize(_size751); - uint32_t _i755; - for (_i755 = 0; _i755 < _size751; ++_i755) + uint32_t _size771; + ::apache::thrift::protocol::TType _etype774; + xfer += iprot->readListBegin(_etype774, _size771); + this->partitionVals.resize(_size771); + uint32_t _i775; + for (_i775 = 0; _i775 < _size771; ++_i775) { - xfer += iprot->readString(this->partitionVals[_i755]); + xfer += iprot->readString(this->partitionVals[_i775]); } xfer += iprot->readListEnd(); } @@ -18737,10 +19284,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 _iter756; - for (_iter756 = this->partitionVals.begin(); _iter756 != this->partitionVals.end(); ++_iter756) + std::vector ::const_iterator _iter776; + for (_iter776 = this->partitionVals.begin(); _iter776 != this->partitionVals.end(); ++_iter776) { - xfer += oprot->writeString((*_iter756)); + xfer += oprot->writeString((*_iter776)); } xfer += oprot->writeListEnd(); } @@ -18761,21 +19308,21 @@ void swap(FireEventRequest &a, FireEventRequest &b) { swap(a.__isset, b.__isset); } -FireEventRequest::FireEventRequest(const FireEventRequest& other757) { - successful = other757.successful; - data = other757.data; - dbName = other757.dbName; - tableName = other757.tableName; - partitionVals = other757.partitionVals; - __isset = other757.__isset; -} -FireEventRequest& FireEventRequest::operator=(const FireEventRequest& other758) { - successful = other758.successful; - data = other758.data; - dbName = other758.dbName; - tableName = other758.tableName; - partitionVals = other758.partitionVals; - __isset = other758.__isset; +FireEventRequest::FireEventRequest(const FireEventRequest& other777) { + successful = other777.successful; + data = other777.data; + dbName = other777.dbName; + tableName = other777.tableName; + partitionVals = other777.partitionVals; + __isset = other777.__isset; +} +FireEventRequest& FireEventRequest::operator=(const FireEventRequest& other778) { + successful = other778.successful; + data = other778.data; + dbName = other778.dbName; + tableName = other778.tableName; + partitionVals = other778.partitionVals; + __isset = other778.__isset; return *this; } void FireEventRequest::printTo(std::ostream& out) const { @@ -18838,11 +19385,11 @@ void swap(FireEventResponse &a, FireEventResponse &b) { (void) b; } -FireEventResponse::FireEventResponse(const FireEventResponse& other759) { - (void) other759; +FireEventResponse::FireEventResponse(const FireEventResponse& other779) { + (void) other779; } -FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other760) { - (void) other760; +FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other780) { + (void) other780; return *this; } void FireEventResponse::printTo(std::ostream& out) const { @@ -18942,15 +19489,15 @@ void swap(MetadataPpdResult &a, MetadataPpdResult &b) { swap(a.__isset, b.__isset); } -MetadataPpdResult::MetadataPpdResult(const MetadataPpdResult& other761) { - metadata = other761.metadata; - includeBitset = other761.includeBitset; - __isset = other761.__isset; +MetadataPpdResult::MetadataPpdResult(const MetadataPpdResult& other781) { + metadata = other781.metadata; + includeBitset = other781.includeBitset; + __isset = other781.__isset; } -MetadataPpdResult& MetadataPpdResult::operator=(const MetadataPpdResult& other762) { - metadata = other762.metadata; - includeBitset = other762.includeBitset; - __isset = other762.__isset; +MetadataPpdResult& MetadataPpdResult::operator=(const MetadataPpdResult& other782) { + metadata = other782.metadata; + includeBitset = other782.includeBitset; + __isset = other782.__isset; return *this; } void MetadataPpdResult::printTo(std::ostream& out) const { @@ -19001,17 +19548,17 @@ uint32_t GetFileMetadataByExprResult::read(::apache::thrift::protocol::TProtocol if (ftype == ::apache::thrift::protocol::T_MAP) { { this->metadata.clear(); - uint32_t _size763; - ::apache::thrift::protocol::TType _ktype764; - ::apache::thrift::protocol::TType _vtype765; - xfer += iprot->readMapBegin(_ktype764, _vtype765, _size763); - uint32_t _i767; - for (_i767 = 0; _i767 < _size763; ++_i767) + uint32_t _size783; + ::apache::thrift::protocol::TType _ktype784; + ::apache::thrift::protocol::TType _vtype785; + xfer += iprot->readMapBegin(_ktype784, _vtype785, _size783); + uint32_t _i787; + for (_i787 = 0; _i787 < _size783; ++_i787) { - int64_t _key768; - xfer += iprot->readI64(_key768); - MetadataPpdResult& _val769 = this->metadata[_key768]; - xfer += _val769.read(iprot); + int64_t _key788; + xfer += iprot->readI64(_key788); + MetadataPpdResult& _val789 = this->metadata[_key788]; + xfer += _val789.read(iprot); } xfer += iprot->readMapEnd(); } @@ -19052,11 +19599,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 _iter770; - for (_iter770 = this->metadata.begin(); _iter770 != this->metadata.end(); ++_iter770) + std::map ::const_iterator _iter790; + for (_iter790 = this->metadata.begin(); _iter790 != this->metadata.end(); ++_iter790) { - xfer += oprot->writeI64(_iter770->first); - xfer += _iter770->second.write(oprot); + xfer += oprot->writeI64(_iter790->first); + xfer += _iter790->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -19077,13 +19624,13 @@ void swap(GetFileMetadataByExprResult &a, GetFileMetadataByExprResult &b) { swap(a.isSupported, b.isSupported); } -GetFileMetadataByExprResult::GetFileMetadataByExprResult(const GetFileMetadataByExprResult& other771) { - metadata = other771.metadata; - isSupported = other771.isSupported; +GetFileMetadataByExprResult::GetFileMetadataByExprResult(const GetFileMetadataByExprResult& other791) { + metadata = other791.metadata; + isSupported = other791.isSupported; } -GetFileMetadataByExprResult& GetFileMetadataByExprResult::operator=(const GetFileMetadataByExprResult& other772) { - metadata = other772.metadata; - isSupported = other772.isSupported; +GetFileMetadataByExprResult& GetFileMetadataByExprResult::operator=(const GetFileMetadataByExprResult& other792) { + metadata = other792.metadata; + isSupported = other792.isSupported; return *this; } void GetFileMetadataByExprResult::printTo(std::ostream& out) const { @@ -19144,14 +19691,14 @@ uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size773; - ::apache::thrift::protocol::TType _etype776; - xfer += iprot->readListBegin(_etype776, _size773); - this->fileIds.resize(_size773); - uint32_t _i777; - for (_i777 = 0; _i777 < _size773; ++_i777) + uint32_t _size793; + ::apache::thrift::protocol::TType _etype796; + xfer += iprot->readListBegin(_etype796, _size793); + this->fileIds.resize(_size793); + uint32_t _i797; + for (_i797 = 0; _i797 < _size793; ++_i797) { - xfer += iprot->readI64(this->fileIds[_i777]); + xfer += iprot->readI64(this->fileIds[_i797]); } xfer += iprot->readListEnd(); } @@ -19178,9 +19725,9 @@ uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtoco break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast778; - xfer += iprot->readI32(ecast778); - this->type = (FileMetadataExprType::type)ecast778; + int32_t ecast798; + xfer += iprot->readI32(ecast798); + this->type = (FileMetadataExprType::type)ecast798; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -19210,10 +19757,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 _iter779; - for (_iter779 = this->fileIds.begin(); _iter779 != this->fileIds.end(); ++_iter779) + std::vector ::const_iterator _iter799; + for (_iter799 = this->fileIds.begin(); _iter799 != this->fileIds.end(); ++_iter799) { - xfer += oprot->writeI64((*_iter779)); + xfer += oprot->writeI64((*_iter799)); } xfer += oprot->writeListEnd(); } @@ -19247,19 +19794,19 @@ void swap(GetFileMetadataByExprRequest &a, GetFileMetadataByExprRequest &b) { swap(a.__isset, b.__isset); } -GetFileMetadataByExprRequest::GetFileMetadataByExprRequest(const GetFileMetadataByExprRequest& other780) { - fileIds = other780.fileIds; - expr = other780.expr; - doGetFooters = other780.doGetFooters; - type = other780.type; - __isset = other780.__isset; +GetFileMetadataByExprRequest::GetFileMetadataByExprRequest(const GetFileMetadataByExprRequest& other800) { + fileIds = other800.fileIds; + expr = other800.expr; + doGetFooters = other800.doGetFooters; + type = other800.type; + __isset = other800.__isset; } -GetFileMetadataByExprRequest& GetFileMetadataByExprRequest::operator=(const GetFileMetadataByExprRequest& other781) { - fileIds = other781.fileIds; - expr = other781.expr; - doGetFooters = other781.doGetFooters; - type = other781.type; - __isset = other781.__isset; +GetFileMetadataByExprRequest& GetFileMetadataByExprRequest::operator=(const GetFileMetadataByExprRequest& other801) { + fileIds = other801.fileIds; + expr = other801.expr; + doGetFooters = other801.doGetFooters; + type = other801.type; + __isset = other801.__isset; return *this; } void GetFileMetadataByExprRequest::printTo(std::ostream& out) const { @@ -19312,17 +19859,17 @@ uint32_t GetFileMetadataResult::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->metadata.clear(); - uint32_t _size782; - ::apache::thrift::protocol::TType _ktype783; - ::apache::thrift::protocol::TType _vtype784; - xfer += iprot->readMapBegin(_ktype783, _vtype784, _size782); - uint32_t _i786; - for (_i786 = 0; _i786 < _size782; ++_i786) + uint32_t _size802; + ::apache::thrift::protocol::TType _ktype803; + ::apache::thrift::protocol::TType _vtype804; + xfer += iprot->readMapBegin(_ktype803, _vtype804, _size802); + uint32_t _i806; + for (_i806 = 0; _i806 < _size802; ++_i806) { - int64_t _key787; - xfer += iprot->readI64(_key787); - std::string& _val788 = this->metadata[_key787]; - xfer += iprot->readBinary(_val788); + int64_t _key807; + xfer += iprot->readI64(_key807); + std::string& _val808 = this->metadata[_key807]; + xfer += iprot->readBinary(_val808); } xfer += iprot->readMapEnd(); } @@ -19363,11 +19910,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 _iter789; - for (_iter789 = this->metadata.begin(); _iter789 != this->metadata.end(); ++_iter789) + std::map ::const_iterator _iter809; + for (_iter809 = this->metadata.begin(); _iter809 != this->metadata.end(); ++_iter809) { - xfer += oprot->writeI64(_iter789->first); - xfer += oprot->writeBinary(_iter789->second); + xfer += oprot->writeI64(_iter809->first); + xfer += oprot->writeBinary(_iter809->second); } xfer += oprot->writeMapEnd(); } @@ -19388,13 +19935,13 @@ void swap(GetFileMetadataResult &a, GetFileMetadataResult &b) { swap(a.isSupported, b.isSupported); } -GetFileMetadataResult::GetFileMetadataResult(const GetFileMetadataResult& other790) { - metadata = other790.metadata; - isSupported = other790.isSupported; +GetFileMetadataResult::GetFileMetadataResult(const GetFileMetadataResult& other810) { + metadata = other810.metadata; + isSupported = other810.isSupported; } -GetFileMetadataResult& GetFileMetadataResult::operator=(const GetFileMetadataResult& other791) { - metadata = other791.metadata; - isSupported = other791.isSupported; +GetFileMetadataResult& GetFileMetadataResult::operator=(const GetFileMetadataResult& other811) { + metadata = other811.metadata; + isSupported = other811.isSupported; return *this; } void GetFileMetadataResult::printTo(std::ostream& out) const { @@ -19440,14 +19987,14 @@ uint32_t GetFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size792; - ::apache::thrift::protocol::TType _etype795; - xfer += iprot->readListBegin(_etype795, _size792); - this->fileIds.resize(_size792); - uint32_t _i796; - for (_i796 = 0; _i796 < _size792; ++_i796) + uint32_t _size812; + ::apache::thrift::protocol::TType _etype815; + xfer += iprot->readListBegin(_etype815, _size812); + this->fileIds.resize(_size812); + uint32_t _i816; + for (_i816 = 0; _i816 < _size812; ++_i816) { - xfer += iprot->readI64(this->fileIds[_i796]); + xfer += iprot->readI64(this->fileIds[_i816]); } xfer += iprot->readListEnd(); } @@ -19478,10 +20025,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 _iter797; - for (_iter797 = this->fileIds.begin(); _iter797 != this->fileIds.end(); ++_iter797) + std::vector ::const_iterator _iter817; + for (_iter817 = this->fileIds.begin(); _iter817 != this->fileIds.end(); ++_iter817) { - xfer += oprot->writeI64((*_iter797)); + xfer += oprot->writeI64((*_iter817)); } xfer += oprot->writeListEnd(); } @@ -19497,11 +20044,11 @@ void swap(GetFileMetadataRequest &a, GetFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -GetFileMetadataRequest::GetFileMetadataRequest(const GetFileMetadataRequest& other798) { - fileIds = other798.fileIds; +GetFileMetadataRequest::GetFileMetadataRequest(const GetFileMetadataRequest& other818) { + fileIds = other818.fileIds; } -GetFileMetadataRequest& GetFileMetadataRequest::operator=(const GetFileMetadataRequest& other799) { - fileIds = other799.fileIds; +GetFileMetadataRequest& GetFileMetadataRequest::operator=(const GetFileMetadataRequest& other819) { + fileIds = other819.fileIds; return *this; } void GetFileMetadataRequest::printTo(std::ostream& out) const { @@ -19560,11 +20107,11 @@ void swap(PutFileMetadataResult &a, PutFileMetadataResult &b) { (void) b; } -PutFileMetadataResult::PutFileMetadataResult(const PutFileMetadataResult& other800) { - (void) other800; +PutFileMetadataResult::PutFileMetadataResult(const PutFileMetadataResult& other820) { + (void) other820; } -PutFileMetadataResult& PutFileMetadataResult::operator=(const PutFileMetadataResult& other801) { - (void) other801; +PutFileMetadataResult& PutFileMetadataResult::operator=(const PutFileMetadataResult& other821) { + (void) other821; return *this; } void PutFileMetadataResult::printTo(std::ostream& out) const { @@ -19618,14 +20165,14 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size802; - ::apache::thrift::protocol::TType _etype805; - xfer += iprot->readListBegin(_etype805, _size802); - this->fileIds.resize(_size802); - uint32_t _i806; - for (_i806 = 0; _i806 < _size802; ++_i806) + uint32_t _size822; + ::apache::thrift::protocol::TType _etype825; + xfer += iprot->readListBegin(_etype825, _size822); + this->fileIds.resize(_size822); + uint32_t _i826; + for (_i826 = 0; _i826 < _size822; ++_i826) { - xfer += iprot->readI64(this->fileIds[_i806]); + xfer += iprot->readI64(this->fileIds[_i826]); } xfer += iprot->readListEnd(); } @@ -19638,14 +20185,14 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->metadata.clear(); - uint32_t _size807; - ::apache::thrift::protocol::TType _etype810; - xfer += iprot->readListBegin(_etype810, _size807); - this->metadata.resize(_size807); - uint32_t _i811; - for (_i811 = 0; _i811 < _size807; ++_i811) + uint32_t _size827; + ::apache::thrift::protocol::TType _etype830; + xfer += iprot->readListBegin(_etype830, _size827); + this->metadata.resize(_size827); + uint32_t _i831; + for (_i831 = 0; _i831 < _size827; ++_i831) { - xfer += iprot->readBinary(this->metadata[_i811]); + xfer += iprot->readBinary(this->metadata[_i831]); } xfer += iprot->readListEnd(); } @@ -19656,9 +20203,9 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast812; - xfer += iprot->readI32(ecast812); - this->type = (FileMetadataExprType::type)ecast812; + int32_t ecast832; + xfer += iprot->readI32(ecast832); + this->type = (FileMetadataExprType::type)ecast832; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -19688,10 +20235,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 _iter813; - for (_iter813 = this->fileIds.begin(); _iter813 != this->fileIds.end(); ++_iter813) + std::vector ::const_iterator _iter833; + for (_iter833 = this->fileIds.begin(); _iter833 != this->fileIds.end(); ++_iter833) { - xfer += oprot->writeI64((*_iter813)); + xfer += oprot->writeI64((*_iter833)); } xfer += oprot->writeListEnd(); } @@ -19700,10 +20247,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 _iter814; - for (_iter814 = this->metadata.begin(); _iter814 != this->metadata.end(); ++_iter814) + std::vector ::const_iterator _iter834; + for (_iter834 = this->metadata.begin(); _iter834 != this->metadata.end(); ++_iter834) { - xfer += oprot->writeBinary((*_iter814)); + xfer += oprot->writeBinary((*_iter834)); } xfer += oprot->writeListEnd(); } @@ -19727,17 +20274,17 @@ void swap(PutFileMetadataRequest &a, PutFileMetadataRequest &b) { swap(a.__isset, b.__isset); } -PutFileMetadataRequest::PutFileMetadataRequest(const PutFileMetadataRequest& other815) { - fileIds = other815.fileIds; - metadata = other815.metadata; - type = other815.type; - __isset = other815.__isset; +PutFileMetadataRequest::PutFileMetadataRequest(const PutFileMetadataRequest& other835) { + fileIds = other835.fileIds; + metadata = other835.metadata; + type = other835.type; + __isset = other835.__isset; } -PutFileMetadataRequest& PutFileMetadataRequest::operator=(const PutFileMetadataRequest& other816) { - fileIds = other816.fileIds; - metadata = other816.metadata; - type = other816.type; - __isset = other816.__isset; +PutFileMetadataRequest& PutFileMetadataRequest::operator=(const PutFileMetadataRequest& other836) { + fileIds = other836.fileIds; + metadata = other836.metadata; + type = other836.type; + __isset = other836.__isset; return *this; } void PutFileMetadataRequest::printTo(std::ostream& out) const { @@ -19798,11 +20345,11 @@ void swap(ClearFileMetadataResult &a, ClearFileMetadataResult &b) { (void) b; } -ClearFileMetadataResult::ClearFileMetadataResult(const ClearFileMetadataResult& other817) { - (void) other817; +ClearFileMetadataResult::ClearFileMetadataResult(const ClearFileMetadataResult& other837) { + (void) other837; } -ClearFileMetadataResult& ClearFileMetadataResult::operator=(const ClearFileMetadataResult& other818) { - (void) other818; +ClearFileMetadataResult& ClearFileMetadataResult::operator=(const ClearFileMetadataResult& other838) { + (void) other838; return *this; } void ClearFileMetadataResult::printTo(std::ostream& out) const { @@ -19846,14 +20393,14 @@ uint32_t ClearFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* i if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size819; - ::apache::thrift::protocol::TType _etype822; - xfer += iprot->readListBegin(_etype822, _size819); - this->fileIds.resize(_size819); - uint32_t _i823; - for (_i823 = 0; _i823 < _size819; ++_i823) + uint32_t _size839; + ::apache::thrift::protocol::TType _etype842; + xfer += iprot->readListBegin(_etype842, _size839); + this->fileIds.resize(_size839); + uint32_t _i843; + for (_i843 = 0; _i843 < _size839; ++_i843) { - xfer += iprot->readI64(this->fileIds[_i823]); + xfer += iprot->readI64(this->fileIds[_i843]); } xfer += iprot->readListEnd(); } @@ -19884,10 +20431,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 _iter824; - for (_iter824 = this->fileIds.begin(); _iter824 != this->fileIds.end(); ++_iter824) + std::vector ::const_iterator _iter844; + for (_iter844 = this->fileIds.begin(); _iter844 != this->fileIds.end(); ++_iter844) { - xfer += oprot->writeI64((*_iter824)); + xfer += oprot->writeI64((*_iter844)); } xfer += oprot->writeListEnd(); } @@ -19903,11 +20450,11 @@ void swap(ClearFileMetadataRequest &a, ClearFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -ClearFileMetadataRequest::ClearFileMetadataRequest(const ClearFileMetadataRequest& other825) { - fileIds = other825.fileIds; +ClearFileMetadataRequest::ClearFileMetadataRequest(const ClearFileMetadataRequest& other845) { + fileIds = other845.fileIds; } -ClearFileMetadataRequest& ClearFileMetadataRequest::operator=(const ClearFileMetadataRequest& other826) { - fileIds = other826.fileIds; +ClearFileMetadataRequest& ClearFileMetadataRequest::operator=(const ClearFileMetadataRequest& other846) { + fileIds = other846.fileIds; return *this; } void ClearFileMetadataRequest::printTo(std::ostream& out) const { @@ -19989,11 +20536,11 @@ void swap(CacheFileMetadataResult &a, CacheFileMetadataResult &b) { swap(a.isSupported, b.isSupported); } -CacheFileMetadataResult::CacheFileMetadataResult(const CacheFileMetadataResult& other827) { - isSupported = other827.isSupported; +CacheFileMetadataResult::CacheFileMetadataResult(const CacheFileMetadataResult& other847) { + isSupported = other847.isSupported; } -CacheFileMetadataResult& CacheFileMetadataResult::operator=(const CacheFileMetadataResult& other828) { - isSupported = other828.isSupported; +CacheFileMetadataResult& CacheFileMetadataResult::operator=(const CacheFileMetadataResult& other848) { + isSupported = other848.isSupported; return *this; } void CacheFileMetadataResult::printTo(std::ostream& out) const { @@ -20134,19 +20681,19 @@ void swap(CacheFileMetadataRequest &a, CacheFileMetadataRequest &b) { swap(a.__isset, b.__isset); } -CacheFileMetadataRequest::CacheFileMetadataRequest(const CacheFileMetadataRequest& other829) { - dbName = other829.dbName; - tblName = other829.tblName; - partName = other829.partName; - isAllParts = other829.isAllParts; - __isset = other829.__isset; +CacheFileMetadataRequest::CacheFileMetadataRequest(const CacheFileMetadataRequest& other849) { + dbName = other849.dbName; + tblName = other849.tblName; + partName = other849.partName; + isAllParts = other849.isAllParts; + __isset = other849.__isset; } -CacheFileMetadataRequest& CacheFileMetadataRequest::operator=(const CacheFileMetadataRequest& other830) { - dbName = other830.dbName; - tblName = other830.tblName; - partName = other830.partName; - isAllParts = other830.isAllParts; - __isset = other830.__isset; +CacheFileMetadataRequest& CacheFileMetadataRequest::operator=(const CacheFileMetadataRequest& other850) { + dbName = other850.dbName; + tblName = other850.tblName; + partName = other850.partName; + isAllParts = other850.isAllParts; + __isset = other850.__isset; return *this; } void CacheFileMetadataRequest::printTo(std::ostream& out) const { @@ -20194,14 +20741,14 @@ uint32_t GetAllFunctionsResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->functions.clear(); - uint32_t _size831; - ::apache::thrift::protocol::TType _etype834; - xfer += iprot->readListBegin(_etype834, _size831); - this->functions.resize(_size831); - uint32_t _i835; - for (_i835 = 0; _i835 < _size831; ++_i835) + uint32_t _size851; + ::apache::thrift::protocol::TType _etype854; + xfer += iprot->readListBegin(_etype854, _size851); + this->functions.resize(_size851); + uint32_t _i855; + for (_i855 = 0; _i855 < _size851; ++_i855) { - xfer += this->functions[_i835].read(iprot); + xfer += this->functions[_i855].read(iprot); } xfer += iprot->readListEnd(); } @@ -20231,10 +20778,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 _iter836; - for (_iter836 = this->functions.begin(); _iter836 != this->functions.end(); ++_iter836) + std::vector ::const_iterator _iter856; + for (_iter856 = this->functions.begin(); _iter856 != this->functions.end(); ++_iter856) { - xfer += (*_iter836).write(oprot); + xfer += (*_iter856).write(oprot); } xfer += oprot->writeListEnd(); } @@ -20251,13 +20798,13 @@ void swap(GetAllFunctionsResponse &a, GetAllFunctionsResponse &b) { swap(a.__isset, b.__isset); } -GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other837) { - functions = other837.functions; - __isset = other837.__isset; +GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other857) { + functions = other857.functions; + __isset = other857.__isset; } -GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other838) { - functions = other838.functions; - __isset = other838.__isset; +GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other858) { + functions = other858.functions; + __isset = other858.__isset; return *this; } void GetAllFunctionsResponse::printTo(std::ostream& out) const { @@ -20302,16 +20849,16 @@ uint32_t ClientCapabilities::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size839; - ::apache::thrift::protocol::TType _etype842; - xfer += iprot->readListBegin(_etype842, _size839); - this->values.resize(_size839); - uint32_t _i843; - for (_i843 = 0; _i843 < _size839; ++_i843) + uint32_t _size859; + ::apache::thrift::protocol::TType _etype862; + xfer += iprot->readListBegin(_etype862, _size859); + this->values.resize(_size859); + uint32_t _i863; + for (_i863 = 0; _i863 < _size859; ++_i863) { - int32_t ecast844; - xfer += iprot->readI32(ecast844); - this->values[_i843] = (ClientCapability::type)ecast844; + int32_t ecast864; + xfer += iprot->readI32(ecast864); + this->values[_i863] = (ClientCapability::type)ecast864; } xfer += iprot->readListEnd(); } @@ -20342,10 +20889,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 _iter845; - for (_iter845 = this->values.begin(); _iter845 != this->values.end(); ++_iter845) + std::vector ::const_iterator _iter865; + for (_iter865 = this->values.begin(); _iter865 != this->values.end(); ++_iter865) { - xfer += oprot->writeI32((int32_t)(*_iter845)); + xfer += oprot->writeI32((int32_t)(*_iter865)); } xfer += oprot->writeListEnd(); } @@ -20361,11 +20908,11 @@ void swap(ClientCapabilities &a, ClientCapabilities &b) { swap(a.values, b.values); } -ClientCapabilities::ClientCapabilities(const ClientCapabilities& other846) { - values = other846.values; +ClientCapabilities::ClientCapabilities(const ClientCapabilities& other866) { + values = other866.values; } -ClientCapabilities& ClientCapabilities::operator=(const ClientCapabilities& other847) { - values = other847.values; +ClientCapabilities& ClientCapabilities::operator=(const ClientCapabilities& other867) { + values = other867.values; return *this; } void ClientCapabilities::printTo(std::ostream& out) const { @@ -20487,17 +21034,17 @@ void swap(GetTableRequest &a, GetTableRequest &b) { swap(a.__isset, b.__isset); } -GetTableRequest::GetTableRequest(const GetTableRequest& other848) { - dbName = other848.dbName; - tblName = other848.tblName; - capabilities = other848.capabilities; - __isset = other848.__isset; +GetTableRequest::GetTableRequest(const GetTableRequest& other868) { + dbName = other868.dbName; + tblName = other868.tblName; + capabilities = other868.capabilities; + __isset = other868.__isset; } -GetTableRequest& GetTableRequest::operator=(const GetTableRequest& other849) { - dbName = other849.dbName; - tblName = other849.tblName; - capabilities = other849.capabilities; - __isset = other849.__isset; +GetTableRequest& GetTableRequest::operator=(const GetTableRequest& other869) { + dbName = other869.dbName; + tblName = other869.tblName; + capabilities = other869.capabilities; + __isset = other869.__isset; return *this; } void GetTableRequest::printTo(std::ostream& out) const { @@ -20581,11 +21128,11 @@ void swap(GetTableResult &a, GetTableResult &b) { swap(a.table, b.table); } -GetTableResult::GetTableResult(const GetTableResult& other850) { - table = other850.table; +GetTableResult::GetTableResult(const GetTableResult& other870) { + table = other870.table; } -GetTableResult& GetTableResult::operator=(const GetTableResult& other851) { - table = other851.table; +GetTableResult& GetTableResult::operator=(const GetTableResult& other871) { + table = other871.table; return *this; } void GetTableResult::printTo(std::ostream& out) const { @@ -20648,14 +21195,14 @@ uint32_t GetTablesRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tblNames.clear(); - uint32_t _size852; - ::apache::thrift::protocol::TType _etype855; - xfer += iprot->readListBegin(_etype855, _size852); - this->tblNames.resize(_size852); - uint32_t _i856; - for (_i856 = 0; _i856 < _size852; ++_i856) + uint32_t _size872; + ::apache::thrift::protocol::TType _etype875; + xfer += iprot->readListBegin(_etype875, _size872); + this->tblNames.resize(_size872); + uint32_t _i876; + for (_i876 = 0; _i876 < _size872; ++_i876) { - xfer += iprot->readString(this->tblNames[_i856]); + xfer += iprot->readString(this->tblNames[_i876]); } xfer += iprot->readListEnd(); } @@ -20699,10 +21246,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 _iter857; - for (_iter857 = this->tblNames.begin(); _iter857 != this->tblNames.end(); ++_iter857) + std::vector ::const_iterator _iter877; + for (_iter877 = this->tblNames.begin(); _iter877 != this->tblNames.end(); ++_iter877) { - xfer += oprot->writeString((*_iter857)); + xfer += oprot->writeString((*_iter877)); } xfer += oprot->writeListEnd(); } @@ -20726,17 +21273,17 @@ void swap(GetTablesRequest &a, GetTablesRequest &b) { swap(a.__isset, b.__isset); } -GetTablesRequest::GetTablesRequest(const GetTablesRequest& other858) { - dbName = other858.dbName; - tblNames = other858.tblNames; - capabilities = other858.capabilities; - __isset = other858.__isset; +GetTablesRequest::GetTablesRequest(const GetTablesRequest& other878) { + dbName = other878.dbName; + tblNames = other878.tblNames; + capabilities = other878.capabilities; + __isset = other878.__isset; } -GetTablesRequest& GetTablesRequest::operator=(const GetTablesRequest& other859) { - dbName = other859.dbName; - tblNames = other859.tblNames; - capabilities = other859.capabilities; - __isset = other859.__isset; +GetTablesRequest& GetTablesRequest::operator=(const GetTablesRequest& other879) { + dbName = other879.dbName; + tblNames = other879.tblNames; + capabilities = other879.capabilities; + __isset = other879.__isset; return *this; } void GetTablesRequest::printTo(std::ostream& out) const { @@ -20783,14 +21330,14 @@ uint32_t GetTablesResult::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tables.clear(); - uint32_t _size860; - ::apache::thrift::protocol::TType _etype863; - xfer += iprot->readListBegin(_etype863, _size860); - this->tables.resize(_size860); - uint32_t _i864; - for (_i864 = 0; _i864 < _size860; ++_i864) + uint32_t _size880; + ::apache::thrift::protocol::TType _etype883; + xfer += iprot->readListBegin(_etype883, _size880); + this->tables.resize(_size880); + uint32_t _i884; + for (_i884 = 0; _i884 < _size880; ++_i884) { - xfer += this->tables[_i864].read(iprot); + xfer += this->tables[_i884].read(iprot); } xfer += iprot->readListEnd(); } @@ -20821,10 +21368,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 _iter865; - for (_iter865 = this->tables.begin(); _iter865 != this->tables.end(); ++_iter865) + std::vector
::const_iterator _iter885; + for (_iter885 = this->tables.begin(); _iter885 != this->tables.end(); ++_iter885) { - xfer += (*_iter865).write(oprot); + xfer += (*_iter885).write(oprot); } xfer += oprot->writeListEnd(); } @@ -20840,11 +21387,11 @@ void swap(GetTablesResult &a, GetTablesResult &b) { swap(a.tables, b.tables); } -GetTablesResult::GetTablesResult(const GetTablesResult& other866) { - tables = other866.tables; +GetTablesResult::GetTablesResult(const GetTablesResult& other886) { + tables = other886.tables; } -GetTablesResult& GetTablesResult::operator=(const GetTablesResult& other867) { - tables = other867.tables; +GetTablesResult& GetTablesResult::operator=(const GetTablesResult& other887) { + tables = other887.tables; return *this; } void GetTablesResult::printTo(std::ostream& out) const { @@ -20946,13 +21493,13 @@ void swap(CmRecycleRequest &a, CmRecycleRequest &b) { swap(a.purge, b.purge); } -CmRecycleRequest::CmRecycleRequest(const CmRecycleRequest& other868) { - dataPath = other868.dataPath; - purge = other868.purge; +CmRecycleRequest::CmRecycleRequest(const CmRecycleRequest& other888) { + dataPath = other888.dataPath; + purge = other888.purge; } -CmRecycleRequest& CmRecycleRequest::operator=(const CmRecycleRequest& other869) { - dataPath = other869.dataPath; - purge = other869.purge; +CmRecycleRequest& CmRecycleRequest::operator=(const CmRecycleRequest& other889) { + dataPath = other889.dataPath; + purge = other889.purge; return *this; } void CmRecycleRequest::printTo(std::ostream& out) const { @@ -21012,11 +21559,11 @@ void swap(CmRecycleResponse &a, CmRecycleResponse &b) { (void) b; } -CmRecycleResponse::CmRecycleResponse(const CmRecycleResponse& other870) { - (void) other870; +CmRecycleResponse::CmRecycleResponse(const CmRecycleResponse& other890) { + (void) other890; } -CmRecycleResponse& CmRecycleResponse::operator=(const CmRecycleResponse& other871) { - (void) other871; +CmRecycleResponse& CmRecycleResponse::operator=(const CmRecycleResponse& other891) { + (void) other891; return *this; } void CmRecycleResponse::printTo(std::ostream& out) const { @@ -21157,19 +21704,19 @@ void swap(TableMeta &a, TableMeta &b) { swap(a.__isset, b.__isset); } -TableMeta::TableMeta(const TableMeta& other872) { - dbName = other872.dbName; - tableName = other872.tableName; - tableType = other872.tableType; - comments = other872.comments; - __isset = other872.__isset; +TableMeta::TableMeta(const TableMeta& other892) { + dbName = other892.dbName; + tableName = other892.tableName; + tableType = other892.tableType; + comments = other892.comments; + __isset = other892.__isset; } -TableMeta& TableMeta::operator=(const TableMeta& other873) { - dbName = other873.dbName; - tableName = other873.tableName; - tableType = other873.tableType; - comments = other873.comments; - __isset = other873.__isset; +TableMeta& TableMeta::operator=(const TableMeta& other893) { + dbName = other893.dbName; + tableName = other893.tableName; + tableType = other893.tableType; + comments = other893.comments; + __isset = other893.__isset; return *this; } void TableMeta::printTo(std::ostream& out) const { @@ -21227,15 +21774,15 @@ uint32_t Materialization::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_SET) { { this->tablesUsed.clear(); - uint32_t _size874; - ::apache::thrift::protocol::TType _etype877; - xfer += iprot->readSetBegin(_etype877, _size874); - uint32_t _i878; - for (_i878 = 0; _i878 < _size874; ++_i878) + uint32_t _size894; + ::apache::thrift::protocol::TType _etype897; + xfer += iprot->readSetBegin(_etype897, _size894); + uint32_t _i898; + for (_i898 = 0; _i898 < _size894; ++_i898) { - std::string _elem879; - xfer += iprot->readString(_elem879); - this->tablesUsed.insert(_elem879); + std::string _elem899; + xfer += iprot->readString(_elem899); + this->tablesUsed.insert(_elem899); } xfer += iprot->readSetEnd(); } @@ -21284,10 +21831,10 @@ uint32_t Materialization::write(::apache::thrift::protocol::TProtocol* oprot) co xfer += oprot->writeFieldBegin("tablesUsed", ::apache::thrift::protocol::T_SET, 1); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tablesUsed.size())); - std::set ::const_iterator _iter880; - for (_iter880 = this->tablesUsed.begin(); _iter880 != this->tablesUsed.end(); ++_iter880) + std::set ::const_iterator _iter900; + for (_iter900 = this->tablesUsed.begin(); _iter900 != this->tablesUsed.end(); ++_iter900) { - xfer += oprot->writeString((*_iter880)); + xfer += oprot->writeString((*_iter900)); } xfer += oprot->writeSetEnd(); } @@ -21315,17 +21862,17 @@ void swap(Materialization &a, Materialization &b) { swap(a.__isset, b.__isset); } -Materialization::Materialization(const Materialization& other881) { - tablesUsed = other881.tablesUsed; - validTxnList = other881.validTxnList; - invalidationTime = other881.invalidationTime; - __isset = other881.__isset; +Materialization::Materialization(const Materialization& other901) { + tablesUsed = other901.tablesUsed; + validTxnList = other901.validTxnList; + invalidationTime = other901.invalidationTime; + __isset = other901.__isset; } -Materialization& Materialization::operator=(const Materialization& other882) { - tablesUsed = other882.tablesUsed; - validTxnList = other882.validTxnList; - invalidationTime = other882.invalidationTime; - __isset = other882.__isset; +Materialization& Materialization::operator=(const Materialization& other902) { + tablesUsed = other902.tablesUsed; + validTxnList = other902.validTxnList; + invalidationTime = other902.invalidationTime; + __isset = other902.__isset; return *this; } void Materialization::printTo(std::ostream& out) const { @@ -21393,9 +21940,9 @@ uint32_t WMResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast883; - xfer += iprot->readI32(ecast883); - this->status = (WMResourcePlanStatus::type)ecast883; + int32_t ecast903; + xfer += iprot->readI32(ecast903); + this->status = (WMResourcePlanStatus::type)ecast903; this->__isset.status = true; } else { xfer += iprot->skip(ftype); @@ -21469,19 +22016,19 @@ void swap(WMResourcePlan &a, WMResourcePlan &b) { swap(a.__isset, b.__isset); } -WMResourcePlan::WMResourcePlan(const WMResourcePlan& other884) { - name = other884.name; - status = other884.status; - queryParallelism = other884.queryParallelism; - defaultPoolPath = other884.defaultPoolPath; - __isset = other884.__isset; +WMResourcePlan::WMResourcePlan(const WMResourcePlan& other904) { + name = other904.name; + status = other904.status; + queryParallelism = other904.queryParallelism; + defaultPoolPath = other904.defaultPoolPath; + __isset = other904.__isset; } -WMResourcePlan& WMResourcePlan::operator=(const WMResourcePlan& other885) { - name = other885.name; - status = other885.status; - queryParallelism = other885.queryParallelism; - defaultPoolPath = other885.defaultPoolPath; - __isset = other885.__isset; +WMResourcePlan& WMResourcePlan::operator=(const WMResourcePlan& other905) { + name = other905.name; + status = other905.status; + queryParallelism = other905.queryParallelism; + defaultPoolPath = other905.defaultPoolPath; + __isset = other905.__isset; return *this; } void WMResourcePlan::printTo(std::ostream& out) const { @@ -21560,9 +22107,9 @@ uint32_t WMNullableResourcePlan::read(::apache::thrift::protocol::TProtocol* ipr break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast886; - xfer += iprot->readI32(ecast886); - this->status = (WMResourcePlanStatus::type)ecast886; + int32_t ecast906; + xfer += iprot->readI32(ecast906); + this->status = (WMResourcePlanStatus::type)ecast906; this->__isset.status = true; } else { xfer += iprot->skip(ftype); @@ -21664,23 +22211,23 @@ void swap(WMNullableResourcePlan &a, WMNullableResourcePlan &b) { swap(a.__isset, b.__isset); } -WMNullableResourcePlan::WMNullableResourcePlan(const WMNullableResourcePlan& other887) { - name = other887.name; - status = other887.status; - queryParallelism = other887.queryParallelism; - isSetQueryParallelism = other887.isSetQueryParallelism; - defaultPoolPath = other887.defaultPoolPath; - isSetDefaultPoolPath = other887.isSetDefaultPoolPath; - __isset = other887.__isset; -} -WMNullableResourcePlan& WMNullableResourcePlan::operator=(const WMNullableResourcePlan& other888) { - name = other888.name; - status = other888.status; - queryParallelism = other888.queryParallelism; - isSetQueryParallelism = other888.isSetQueryParallelism; - defaultPoolPath = other888.defaultPoolPath; - isSetDefaultPoolPath = other888.isSetDefaultPoolPath; - __isset = other888.__isset; +WMNullableResourcePlan::WMNullableResourcePlan(const WMNullableResourcePlan& other907) { + name = other907.name; + status = other907.status; + queryParallelism = other907.queryParallelism; + isSetQueryParallelism = other907.isSetQueryParallelism; + defaultPoolPath = other907.defaultPoolPath; + isSetDefaultPoolPath = other907.isSetDefaultPoolPath; + __isset = other907.__isset; +} +WMNullableResourcePlan& WMNullableResourcePlan::operator=(const WMNullableResourcePlan& other908) { + name = other908.name; + status = other908.status; + queryParallelism = other908.queryParallelism; + isSetQueryParallelism = other908.isSetQueryParallelism; + defaultPoolPath = other908.defaultPoolPath; + isSetDefaultPoolPath = other908.isSetDefaultPoolPath; + __isset = other908.__isset; return *this; } void WMNullableResourcePlan::printTo(std::ostream& out) const { @@ -21845,21 +22392,21 @@ void swap(WMPool &a, WMPool &b) { swap(a.__isset, b.__isset); } -WMPool::WMPool(const WMPool& other889) { - resourcePlanName = other889.resourcePlanName; - poolPath = other889.poolPath; - allocFraction = other889.allocFraction; - queryParallelism = other889.queryParallelism; - schedulingPolicy = other889.schedulingPolicy; - __isset = other889.__isset; -} -WMPool& WMPool::operator=(const WMPool& other890) { - resourcePlanName = other890.resourcePlanName; - poolPath = other890.poolPath; - allocFraction = other890.allocFraction; - queryParallelism = other890.queryParallelism; - schedulingPolicy = other890.schedulingPolicy; - __isset = other890.__isset; +WMPool::WMPool(const WMPool& other909) { + resourcePlanName = other909.resourcePlanName; + poolPath = other909.poolPath; + allocFraction = other909.allocFraction; + queryParallelism = other909.queryParallelism; + schedulingPolicy = other909.schedulingPolicy; + __isset = other909.__isset; +} +WMPool& WMPool::operator=(const WMPool& other910) { + resourcePlanName = other910.resourcePlanName; + poolPath = other910.poolPath; + allocFraction = other910.allocFraction; + queryParallelism = other910.queryParallelism; + schedulingPolicy = other910.schedulingPolicy; + __isset = other910.__isset; return *this; } void WMPool::printTo(std::ostream& out) const { @@ -22042,23 +22589,23 @@ void swap(WMNullablePool &a, WMNullablePool &b) { swap(a.__isset, b.__isset); } -WMNullablePool::WMNullablePool(const WMNullablePool& other891) { - resourcePlanName = other891.resourcePlanName; - poolPath = other891.poolPath; - allocFraction = other891.allocFraction; - queryParallelism = other891.queryParallelism; - schedulingPolicy = other891.schedulingPolicy; - isSetSchedulingPolicy = other891.isSetSchedulingPolicy; - __isset = other891.__isset; -} -WMNullablePool& WMNullablePool::operator=(const WMNullablePool& other892) { - resourcePlanName = other892.resourcePlanName; - poolPath = other892.poolPath; - allocFraction = other892.allocFraction; - queryParallelism = other892.queryParallelism; - schedulingPolicy = other892.schedulingPolicy; - isSetSchedulingPolicy = other892.isSetSchedulingPolicy; - __isset = other892.__isset; +WMNullablePool::WMNullablePool(const WMNullablePool& other911) { + resourcePlanName = other911.resourcePlanName; + poolPath = other911.poolPath; + allocFraction = other911.allocFraction; + queryParallelism = other911.queryParallelism; + schedulingPolicy = other911.schedulingPolicy; + isSetSchedulingPolicy = other911.isSetSchedulingPolicy; + __isset = other911.__isset; +} +WMNullablePool& WMNullablePool::operator=(const WMNullablePool& other912) { + resourcePlanName = other912.resourcePlanName; + poolPath = other912.poolPath; + allocFraction = other912.allocFraction; + queryParallelism = other912.queryParallelism; + schedulingPolicy = other912.schedulingPolicy; + isSetSchedulingPolicy = other912.isSetSchedulingPolicy; + __isset = other912.__isset; return *this; } void WMNullablePool::printTo(std::ostream& out) const { @@ -22223,21 +22770,21 @@ void swap(WMTrigger &a, WMTrigger &b) { swap(a.__isset, b.__isset); } -WMTrigger::WMTrigger(const WMTrigger& other893) { - resourcePlanName = other893.resourcePlanName; - triggerName = other893.triggerName; - triggerExpression = other893.triggerExpression; - actionExpression = other893.actionExpression; - isInUnmanaged = other893.isInUnmanaged; - __isset = other893.__isset; -} -WMTrigger& WMTrigger::operator=(const WMTrigger& other894) { - resourcePlanName = other894.resourcePlanName; - triggerName = other894.triggerName; - triggerExpression = other894.triggerExpression; - actionExpression = other894.actionExpression; - isInUnmanaged = other894.isInUnmanaged; - __isset = other894.__isset; +WMTrigger::WMTrigger(const WMTrigger& other913) { + resourcePlanName = other913.resourcePlanName; + triggerName = other913.triggerName; + triggerExpression = other913.triggerExpression; + actionExpression = other913.actionExpression; + isInUnmanaged = other913.isInUnmanaged; + __isset = other913.__isset; +} +WMTrigger& WMTrigger::operator=(const WMTrigger& other914) { + resourcePlanName = other914.resourcePlanName; + triggerName = other914.triggerName; + triggerExpression = other914.triggerExpression; + actionExpression = other914.actionExpression; + isInUnmanaged = other914.isInUnmanaged; + __isset = other914.__isset; return *this; } void WMTrigger::printTo(std::ostream& out) const { @@ -22402,21 +22949,21 @@ void swap(WMMapping &a, WMMapping &b) { swap(a.__isset, b.__isset); } -WMMapping::WMMapping(const WMMapping& other895) { - resourcePlanName = other895.resourcePlanName; - entityType = other895.entityType; - entityName = other895.entityName; - poolPath = other895.poolPath; - ordering = other895.ordering; - __isset = other895.__isset; -} -WMMapping& WMMapping::operator=(const WMMapping& other896) { - resourcePlanName = other896.resourcePlanName; - entityType = other896.entityType; - entityName = other896.entityName; - poolPath = other896.poolPath; - ordering = other896.ordering; - __isset = other896.__isset; +WMMapping::WMMapping(const WMMapping& other915) { + resourcePlanName = other915.resourcePlanName; + entityType = other915.entityType; + entityName = other915.entityName; + poolPath = other915.poolPath; + ordering = other915.ordering; + __isset = other915.__isset; +} +WMMapping& WMMapping::operator=(const WMMapping& other916) { + resourcePlanName = other916.resourcePlanName; + entityType = other916.entityType; + entityName = other916.entityName; + poolPath = other916.poolPath; + ordering = other916.ordering; + __isset = other916.__isset; return *this; } void WMMapping::printTo(std::ostream& out) const { @@ -22522,13 +23069,13 @@ void swap(WMPoolTrigger &a, WMPoolTrigger &b) { swap(a.trigger, b.trigger); } -WMPoolTrigger::WMPoolTrigger(const WMPoolTrigger& other897) { - pool = other897.pool; - trigger = other897.trigger; +WMPoolTrigger::WMPoolTrigger(const WMPoolTrigger& other917) { + pool = other917.pool; + trigger = other917.trigger; } -WMPoolTrigger& WMPoolTrigger::operator=(const WMPoolTrigger& other898) { - pool = other898.pool; - trigger = other898.trigger; +WMPoolTrigger& WMPoolTrigger::operator=(const WMPoolTrigger& other918) { + pool = other918.pool; + trigger = other918.trigger; return *this; } void WMPoolTrigger::printTo(std::ostream& out) const { @@ -22602,14 +23149,14 @@ uint32_t WMFullResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->pools.clear(); - uint32_t _size899; - ::apache::thrift::protocol::TType _etype902; - xfer += iprot->readListBegin(_etype902, _size899); - this->pools.resize(_size899); - uint32_t _i903; - for (_i903 = 0; _i903 < _size899; ++_i903) + uint32_t _size919; + ::apache::thrift::protocol::TType _etype922; + xfer += iprot->readListBegin(_etype922, _size919); + this->pools.resize(_size919); + uint32_t _i923; + for (_i923 = 0; _i923 < _size919; ++_i923) { - xfer += this->pools[_i903].read(iprot); + xfer += this->pools[_i923].read(iprot); } xfer += iprot->readListEnd(); } @@ -22622,14 +23169,14 @@ uint32_t WMFullResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->mappings.clear(); - uint32_t _size904; - ::apache::thrift::protocol::TType _etype907; - xfer += iprot->readListBegin(_etype907, _size904); - this->mappings.resize(_size904); - uint32_t _i908; - for (_i908 = 0; _i908 < _size904; ++_i908) + uint32_t _size924; + ::apache::thrift::protocol::TType _etype927; + xfer += iprot->readListBegin(_etype927, _size924); + this->mappings.resize(_size924); + uint32_t _i928; + for (_i928 = 0; _i928 < _size924; ++_i928) { - xfer += this->mappings[_i908].read(iprot); + xfer += this->mappings[_i928].read(iprot); } xfer += iprot->readListEnd(); } @@ -22642,14 +23189,14 @@ uint32_t WMFullResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->triggers.clear(); - uint32_t _size909; - ::apache::thrift::protocol::TType _etype912; - xfer += iprot->readListBegin(_etype912, _size909); - this->triggers.resize(_size909); - uint32_t _i913; - for (_i913 = 0; _i913 < _size909; ++_i913) + uint32_t _size929; + ::apache::thrift::protocol::TType _etype932; + xfer += iprot->readListBegin(_etype932, _size929); + this->triggers.resize(_size929); + uint32_t _i933; + for (_i933 = 0; _i933 < _size929; ++_i933) { - xfer += this->triggers[_i913].read(iprot); + xfer += this->triggers[_i933].read(iprot); } xfer += iprot->readListEnd(); } @@ -22662,14 +23209,14 @@ uint32_t WMFullResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->poolTriggers.clear(); - uint32_t _size914; - ::apache::thrift::protocol::TType _etype917; - xfer += iprot->readListBegin(_etype917, _size914); - this->poolTriggers.resize(_size914); - uint32_t _i918; - for (_i918 = 0; _i918 < _size914; ++_i918) + uint32_t _size934; + ::apache::thrift::protocol::TType _etype937; + xfer += iprot->readListBegin(_etype937, _size934); + this->poolTriggers.resize(_size934); + uint32_t _i938; + for (_i938 = 0; _i938 < _size934; ++_i938) { - xfer += this->poolTriggers[_i918].read(iprot); + xfer += this->poolTriggers[_i938].read(iprot); } xfer += iprot->readListEnd(); } @@ -22706,10 +23253,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 _iter919; - for (_iter919 = this->pools.begin(); _iter919 != this->pools.end(); ++_iter919) + std::vector ::const_iterator _iter939; + for (_iter939 = this->pools.begin(); _iter939 != this->pools.end(); ++_iter939) { - xfer += (*_iter919).write(oprot); + xfer += (*_iter939).write(oprot); } xfer += oprot->writeListEnd(); } @@ -22719,10 +23266,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 _iter920; - for (_iter920 = this->mappings.begin(); _iter920 != this->mappings.end(); ++_iter920) + std::vector ::const_iterator _iter940; + for (_iter940 = this->mappings.begin(); _iter940 != this->mappings.end(); ++_iter940) { - xfer += (*_iter920).write(oprot); + xfer += (*_iter940).write(oprot); } xfer += oprot->writeListEnd(); } @@ -22732,10 +23279,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 _iter921; - for (_iter921 = this->triggers.begin(); _iter921 != this->triggers.end(); ++_iter921) + std::vector ::const_iterator _iter941; + for (_iter941 = this->triggers.begin(); _iter941 != this->triggers.end(); ++_iter941) { - xfer += (*_iter921).write(oprot); + xfer += (*_iter941).write(oprot); } xfer += oprot->writeListEnd(); } @@ -22745,10 +23292,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 _iter922; - for (_iter922 = this->poolTriggers.begin(); _iter922 != this->poolTriggers.end(); ++_iter922) + std::vector ::const_iterator _iter942; + for (_iter942 = this->poolTriggers.begin(); _iter942 != this->poolTriggers.end(); ++_iter942) { - xfer += (*_iter922).write(oprot); + xfer += (*_iter942).write(oprot); } xfer += oprot->writeListEnd(); } @@ -22769,21 +23316,21 @@ void swap(WMFullResourcePlan &a, WMFullResourcePlan &b) { swap(a.__isset, b.__isset); } -WMFullResourcePlan::WMFullResourcePlan(const WMFullResourcePlan& other923) { - plan = other923.plan; - pools = other923.pools; - mappings = other923.mappings; - triggers = other923.triggers; - poolTriggers = other923.poolTriggers; - __isset = other923.__isset; -} -WMFullResourcePlan& WMFullResourcePlan::operator=(const WMFullResourcePlan& other924) { - plan = other924.plan; - pools = other924.pools; - mappings = other924.mappings; - triggers = other924.triggers; - poolTriggers = other924.poolTriggers; - __isset = other924.__isset; +WMFullResourcePlan::WMFullResourcePlan(const WMFullResourcePlan& other943) { + plan = other943.plan; + pools = other943.pools; + mappings = other943.mappings; + triggers = other943.triggers; + poolTriggers = other943.poolTriggers; + __isset = other943.__isset; +} +WMFullResourcePlan& WMFullResourcePlan::operator=(const WMFullResourcePlan& other944) { + plan = other944.plan; + pools = other944.pools; + mappings = other944.mappings; + triggers = other944.triggers; + poolTriggers = other944.poolTriggers; + __isset = other944.__isset; return *this; } void WMFullResourcePlan::printTo(std::ostream& out) const { @@ -22888,15 +23435,15 @@ void swap(WMCreateResourcePlanRequest &a, WMCreateResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMCreateResourcePlanRequest::WMCreateResourcePlanRequest(const WMCreateResourcePlanRequest& other925) { - resourcePlan = other925.resourcePlan; - copyFrom = other925.copyFrom; - __isset = other925.__isset; +WMCreateResourcePlanRequest::WMCreateResourcePlanRequest(const WMCreateResourcePlanRequest& other945) { + resourcePlan = other945.resourcePlan; + copyFrom = other945.copyFrom; + __isset = other945.__isset; } -WMCreateResourcePlanRequest& WMCreateResourcePlanRequest::operator=(const WMCreateResourcePlanRequest& other926) { - resourcePlan = other926.resourcePlan; - copyFrom = other926.copyFrom; - __isset = other926.__isset; +WMCreateResourcePlanRequest& WMCreateResourcePlanRequest::operator=(const WMCreateResourcePlanRequest& other946) { + resourcePlan = other946.resourcePlan; + copyFrom = other946.copyFrom; + __isset = other946.__isset; return *this; } void WMCreateResourcePlanRequest::printTo(std::ostream& out) const { @@ -22956,11 +23503,11 @@ void swap(WMCreateResourcePlanResponse &a, WMCreateResourcePlanResponse &b) { (void) b; } -WMCreateResourcePlanResponse::WMCreateResourcePlanResponse(const WMCreateResourcePlanResponse& other927) { - (void) other927; +WMCreateResourcePlanResponse::WMCreateResourcePlanResponse(const WMCreateResourcePlanResponse& other947) { + (void) other947; } -WMCreateResourcePlanResponse& WMCreateResourcePlanResponse::operator=(const WMCreateResourcePlanResponse& other928) { - (void) other928; +WMCreateResourcePlanResponse& WMCreateResourcePlanResponse::operator=(const WMCreateResourcePlanResponse& other948) { + (void) other948; return *this; } void WMCreateResourcePlanResponse::printTo(std::ostream& out) const { @@ -23018,11 +23565,11 @@ void swap(WMGetActiveResourcePlanRequest &a, WMGetActiveResourcePlanRequest &b) (void) b; } -WMGetActiveResourcePlanRequest::WMGetActiveResourcePlanRequest(const WMGetActiveResourcePlanRequest& other929) { - (void) other929; +WMGetActiveResourcePlanRequest::WMGetActiveResourcePlanRequest(const WMGetActiveResourcePlanRequest& other949) { + (void) other949; } -WMGetActiveResourcePlanRequest& WMGetActiveResourcePlanRequest::operator=(const WMGetActiveResourcePlanRequest& other930) { - (void) other930; +WMGetActiveResourcePlanRequest& WMGetActiveResourcePlanRequest::operator=(const WMGetActiveResourcePlanRequest& other950) { + (void) other950; return *this; } void WMGetActiveResourcePlanRequest::printTo(std::ostream& out) const { @@ -23103,13 +23650,13 @@ void swap(WMGetActiveResourcePlanResponse &a, WMGetActiveResourcePlanResponse &b swap(a.__isset, b.__isset); } -WMGetActiveResourcePlanResponse::WMGetActiveResourcePlanResponse(const WMGetActiveResourcePlanResponse& other931) { - resourcePlan = other931.resourcePlan; - __isset = other931.__isset; +WMGetActiveResourcePlanResponse::WMGetActiveResourcePlanResponse(const WMGetActiveResourcePlanResponse& other951) { + resourcePlan = other951.resourcePlan; + __isset = other951.__isset; } -WMGetActiveResourcePlanResponse& WMGetActiveResourcePlanResponse::operator=(const WMGetActiveResourcePlanResponse& other932) { - resourcePlan = other932.resourcePlan; - __isset = other932.__isset; +WMGetActiveResourcePlanResponse& WMGetActiveResourcePlanResponse::operator=(const WMGetActiveResourcePlanResponse& other952) { + resourcePlan = other952.resourcePlan; + __isset = other952.__isset; return *this; } void WMGetActiveResourcePlanResponse::printTo(std::ostream& out) const { @@ -23191,13 +23738,13 @@ void swap(WMGetResourcePlanRequest &a, WMGetResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMGetResourcePlanRequest::WMGetResourcePlanRequest(const WMGetResourcePlanRequest& other933) { - resourcePlanName = other933.resourcePlanName; - __isset = other933.__isset; +WMGetResourcePlanRequest::WMGetResourcePlanRequest(const WMGetResourcePlanRequest& other953) { + resourcePlanName = other953.resourcePlanName; + __isset = other953.__isset; } -WMGetResourcePlanRequest& WMGetResourcePlanRequest::operator=(const WMGetResourcePlanRequest& other934) { - resourcePlanName = other934.resourcePlanName; - __isset = other934.__isset; +WMGetResourcePlanRequest& WMGetResourcePlanRequest::operator=(const WMGetResourcePlanRequest& other954) { + resourcePlanName = other954.resourcePlanName; + __isset = other954.__isset; return *this; } void WMGetResourcePlanRequest::printTo(std::ostream& out) const { @@ -23279,13 +23826,13 @@ void swap(WMGetResourcePlanResponse &a, WMGetResourcePlanResponse &b) { swap(a.__isset, b.__isset); } -WMGetResourcePlanResponse::WMGetResourcePlanResponse(const WMGetResourcePlanResponse& other935) { - resourcePlan = other935.resourcePlan; - __isset = other935.__isset; +WMGetResourcePlanResponse::WMGetResourcePlanResponse(const WMGetResourcePlanResponse& other955) { + resourcePlan = other955.resourcePlan; + __isset = other955.__isset; } -WMGetResourcePlanResponse& WMGetResourcePlanResponse::operator=(const WMGetResourcePlanResponse& other936) { - resourcePlan = other936.resourcePlan; - __isset = other936.__isset; +WMGetResourcePlanResponse& WMGetResourcePlanResponse::operator=(const WMGetResourcePlanResponse& other956) { + resourcePlan = other956.resourcePlan; + __isset = other956.__isset; return *this; } void WMGetResourcePlanResponse::printTo(std::ostream& out) const { @@ -23344,11 +23891,11 @@ void swap(WMGetAllResourcePlanRequest &a, WMGetAllResourcePlanRequest &b) { (void) b; } -WMGetAllResourcePlanRequest::WMGetAllResourcePlanRequest(const WMGetAllResourcePlanRequest& other937) { - (void) other937; +WMGetAllResourcePlanRequest::WMGetAllResourcePlanRequest(const WMGetAllResourcePlanRequest& other957) { + (void) other957; } -WMGetAllResourcePlanRequest& WMGetAllResourcePlanRequest::operator=(const WMGetAllResourcePlanRequest& other938) { - (void) other938; +WMGetAllResourcePlanRequest& WMGetAllResourcePlanRequest::operator=(const WMGetAllResourcePlanRequest& other958) { + (void) other958; return *this; } void WMGetAllResourcePlanRequest::printTo(std::ostream& out) const { @@ -23392,14 +23939,14 @@ uint32_t WMGetAllResourcePlanResponse::read(::apache::thrift::protocol::TProtoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->resourcePlans.clear(); - uint32_t _size939; - ::apache::thrift::protocol::TType _etype942; - xfer += iprot->readListBegin(_etype942, _size939); - this->resourcePlans.resize(_size939); - uint32_t _i943; - for (_i943 = 0; _i943 < _size939; ++_i943) + uint32_t _size959; + ::apache::thrift::protocol::TType _etype962; + xfer += iprot->readListBegin(_etype962, _size959); + this->resourcePlans.resize(_size959); + uint32_t _i963; + for (_i963 = 0; _i963 < _size959; ++_i963) { - xfer += this->resourcePlans[_i943].read(iprot); + xfer += this->resourcePlans[_i963].read(iprot); } xfer += iprot->readListEnd(); } @@ -23429,10 +23976,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 _iter944; - for (_iter944 = this->resourcePlans.begin(); _iter944 != this->resourcePlans.end(); ++_iter944) + std::vector ::const_iterator _iter964; + for (_iter964 = this->resourcePlans.begin(); _iter964 != this->resourcePlans.end(); ++_iter964) { - xfer += (*_iter944).write(oprot); + xfer += (*_iter964).write(oprot); } xfer += oprot->writeListEnd(); } @@ -23449,13 +23996,13 @@ void swap(WMGetAllResourcePlanResponse &a, WMGetAllResourcePlanResponse &b) { swap(a.__isset, b.__isset); } -WMGetAllResourcePlanResponse::WMGetAllResourcePlanResponse(const WMGetAllResourcePlanResponse& other945) { - resourcePlans = other945.resourcePlans; - __isset = other945.__isset; +WMGetAllResourcePlanResponse::WMGetAllResourcePlanResponse(const WMGetAllResourcePlanResponse& other965) { + resourcePlans = other965.resourcePlans; + __isset = other965.__isset; } -WMGetAllResourcePlanResponse& WMGetAllResourcePlanResponse::operator=(const WMGetAllResourcePlanResponse& other946) { - resourcePlans = other946.resourcePlans; - __isset = other946.__isset; +WMGetAllResourcePlanResponse& WMGetAllResourcePlanResponse::operator=(const WMGetAllResourcePlanResponse& other966) { + resourcePlans = other966.resourcePlans; + __isset = other966.__isset; return *this; } void WMGetAllResourcePlanResponse::printTo(std::ostream& out) const { @@ -23613,21 +24160,21 @@ void swap(WMAlterResourcePlanRequest &a, WMAlterResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMAlterResourcePlanRequest::WMAlterResourcePlanRequest(const WMAlterResourcePlanRequest& other947) { - resourcePlanName = other947.resourcePlanName; - resourcePlan = other947.resourcePlan; - isEnableAndActivate = other947.isEnableAndActivate; - isForceDeactivate = other947.isForceDeactivate; - isReplace = other947.isReplace; - __isset = other947.__isset; -} -WMAlterResourcePlanRequest& WMAlterResourcePlanRequest::operator=(const WMAlterResourcePlanRequest& other948) { - resourcePlanName = other948.resourcePlanName; - resourcePlan = other948.resourcePlan; - isEnableAndActivate = other948.isEnableAndActivate; - isForceDeactivate = other948.isForceDeactivate; - isReplace = other948.isReplace; - __isset = other948.__isset; +WMAlterResourcePlanRequest::WMAlterResourcePlanRequest(const WMAlterResourcePlanRequest& other967) { + resourcePlanName = other967.resourcePlanName; + resourcePlan = other967.resourcePlan; + isEnableAndActivate = other967.isEnableAndActivate; + isForceDeactivate = other967.isForceDeactivate; + isReplace = other967.isReplace; + __isset = other967.__isset; +} +WMAlterResourcePlanRequest& WMAlterResourcePlanRequest::operator=(const WMAlterResourcePlanRequest& other968) { + resourcePlanName = other968.resourcePlanName; + resourcePlan = other968.resourcePlan; + isEnableAndActivate = other968.isEnableAndActivate; + isForceDeactivate = other968.isForceDeactivate; + isReplace = other968.isReplace; + __isset = other968.__isset; return *this; } void WMAlterResourcePlanRequest::printTo(std::ostream& out) const { @@ -23713,13 +24260,13 @@ void swap(WMAlterResourcePlanResponse &a, WMAlterResourcePlanResponse &b) { swap(a.__isset, b.__isset); } -WMAlterResourcePlanResponse::WMAlterResourcePlanResponse(const WMAlterResourcePlanResponse& other949) { - fullResourcePlan = other949.fullResourcePlan; - __isset = other949.__isset; +WMAlterResourcePlanResponse::WMAlterResourcePlanResponse(const WMAlterResourcePlanResponse& other969) { + fullResourcePlan = other969.fullResourcePlan; + __isset = other969.__isset; } -WMAlterResourcePlanResponse& WMAlterResourcePlanResponse::operator=(const WMAlterResourcePlanResponse& other950) { - fullResourcePlan = other950.fullResourcePlan; - __isset = other950.__isset; +WMAlterResourcePlanResponse& WMAlterResourcePlanResponse::operator=(const WMAlterResourcePlanResponse& other970) { + fullResourcePlan = other970.fullResourcePlan; + __isset = other970.__isset; return *this; } void WMAlterResourcePlanResponse::printTo(std::ostream& out) const { @@ -23801,13 +24348,13 @@ void swap(WMValidateResourcePlanRequest &a, WMValidateResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMValidateResourcePlanRequest::WMValidateResourcePlanRequest(const WMValidateResourcePlanRequest& other951) { - resourcePlanName = other951.resourcePlanName; - __isset = other951.__isset; +WMValidateResourcePlanRequest::WMValidateResourcePlanRequest(const WMValidateResourcePlanRequest& other971) { + resourcePlanName = other971.resourcePlanName; + __isset = other971.__isset; } -WMValidateResourcePlanRequest& WMValidateResourcePlanRequest::operator=(const WMValidateResourcePlanRequest& other952) { - resourcePlanName = other952.resourcePlanName; - __isset = other952.__isset; +WMValidateResourcePlanRequest& WMValidateResourcePlanRequest::operator=(const WMValidateResourcePlanRequest& other972) { + resourcePlanName = other972.resourcePlanName; + __isset = other972.__isset; return *this; } void WMValidateResourcePlanRequest::printTo(std::ostream& out) const { @@ -23857,14 +24404,14 @@ uint32_t WMValidateResourcePlanResponse::read(::apache::thrift::protocol::TProto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->errors.clear(); - uint32_t _size953; - ::apache::thrift::protocol::TType _etype956; - xfer += iprot->readListBegin(_etype956, _size953); - this->errors.resize(_size953); - uint32_t _i957; - for (_i957 = 0; _i957 < _size953; ++_i957) + uint32_t _size973; + ::apache::thrift::protocol::TType _etype976; + xfer += iprot->readListBegin(_etype976, _size973); + this->errors.resize(_size973); + uint32_t _i977; + for (_i977 = 0; _i977 < _size973; ++_i977) { - xfer += iprot->readString(this->errors[_i957]); + xfer += iprot->readString(this->errors[_i977]); } xfer += iprot->readListEnd(); } @@ -23877,14 +24424,14 @@ uint32_t WMValidateResourcePlanResponse::read(::apache::thrift::protocol::TProto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->warnings.clear(); - uint32_t _size958; - ::apache::thrift::protocol::TType _etype961; - xfer += iprot->readListBegin(_etype961, _size958); - this->warnings.resize(_size958); - uint32_t _i962; - for (_i962 = 0; _i962 < _size958; ++_i962) + uint32_t _size978; + ::apache::thrift::protocol::TType _etype981; + xfer += iprot->readListBegin(_etype981, _size978); + this->warnings.resize(_size978); + uint32_t _i982; + for (_i982 = 0; _i982 < _size978; ++_i982) { - xfer += iprot->readString(this->warnings[_i962]); + xfer += iprot->readString(this->warnings[_i982]); } xfer += iprot->readListEnd(); } @@ -23914,10 +24461,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 _iter963; - for (_iter963 = this->errors.begin(); _iter963 != this->errors.end(); ++_iter963) + std::vector ::const_iterator _iter983; + for (_iter983 = this->errors.begin(); _iter983 != this->errors.end(); ++_iter983) { - xfer += oprot->writeString((*_iter963)); + xfer += oprot->writeString((*_iter983)); } xfer += oprot->writeListEnd(); } @@ -23927,10 +24474,10 @@ uint32_t WMValidateResourcePlanResponse::write(::apache::thrift::protocol::TProt xfer += oprot->writeFieldBegin("warnings", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->warnings.size())); - std::vector ::const_iterator _iter964; - for (_iter964 = this->warnings.begin(); _iter964 != this->warnings.end(); ++_iter964) + std::vector ::const_iterator _iter984; + for (_iter984 = this->warnings.begin(); _iter984 != this->warnings.end(); ++_iter984) { - xfer += oprot->writeString((*_iter964)); + xfer += oprot->writeString((*_iter984)); } xfer += oprot->writeListEnd(); } @@ -23948,15 +24495,15 @@ void swap(WMValidateResourcePlanResponse &a, WMValidateResourcePlanResponse &b) swap(a.__isset, b.__isset); } -WMValidateResourcePlanResponse::WMValidateResourcePlanResponse(const WMValidateResourcePlanResponse& other965) { - errors = other965.errors; - warnings = other965.warnings; - __isset = other965.__isset; +WMValidateResourcePlanResponse::WMValidateResourcePlanResponse(const WMValidateResourcePlanResponse& other985) { + errors = other985.errors; + warnings = other985.warnings; + __isset = other985.__isset; } -WMValidateResourcePlanResponse& WMValidateResourcePlanResponse::operator=(const WMValidateResourcePlanResponse& other966) { - errors = other966.errors; - warnings = other966.warnings; - __isset = other966.__isset; +WMValidateResourcePlanResponse& WMValidateResourcePlanResponse::operator=(const WMValidateResourcePlanResponse& other986) { + errors = other986.errors; + warnings = other986.warnings; + __isset = other986.__isset; return *this; } void WMValidateResourcePlanResponse::printTo(std::ostream& out) const { @@ -24039,13 +24586,13 @@ void swap(WMDropResourcePlanRequest &a, WMDropResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMDropResourcePlanRequest::WMDropResourcePlanRequest(const WMDropResourcePlanRequest& other967) { - resourcePlanName = other967.resourcePlanName; - __isset = other967.__isset; +WMDropResourcePlanRequest::WMDropResourcePlanRequest(const WMDropResourcePlanRequest& other987) { + resourcePlanName = other987.resourcePlanName; + __isset = other987.__isset; } -WMDropResourcePlanRequest& WMDropResourcePlanRequest::operator=(const WMDropResourcePlanRequest& other968) { - resourcePlanName = other968.resourcePlanName; - __isset = other968.__isset; +WMDropResourcePlanRequest& WMDropResourcePlanRequest::operator=(const WMDropResourcePlanRequest& other988) { + resourcePlanName = other988.resourcePlanName; + __isset = other988.__isset; return *this; } void WMDropResourcePlanRequest::printTo(std::ostream& out) const { @@ -24104,11 +24651,11 @@ void swap(WMDropResourcePlanResponse &a, WMDropResourcePlanResponse &b) { (void) b; } -WMDropResourcePlanResponse::WMDropResourcePlanResponse(const WMDropResourcePlanResponse& other969) { - (void) other969; +WMDropResourcePlanResponse::WMDropResourcePlanResponse(const WMDropResourcePlanResponse& other989) { + (void) other989; } -WMDropResourcePlanResponse& WMDropResourcePlanResponse::operator=(const WMDropResourcePlanResponse& other970) { - (void) other970; +WMDropResourcePlanResponse& WMDropResourcePlanResponse::operator=(const WMDropResourcePlanResponse& other990) { + (void) other990; return *this; } void WMDropResourcePlanResponse::printTo(std::ostream& out) const { @@ -24189,13 +24736,13 @@ void swap(WMCreateTriggerRequest &a, WMCreateTriggerRequest &b) { swap(a.__isset, b.__isset); } -WMCreateTriggerRequest::WMCreateTriggerRequest(const WMCreateTriggerRequest& other971) { - trigger = other971.trigger; - __isset = other971.__isset; +WMCreateTriggerRequest::WMCreateTriggerRequest(const WMCreateTriggerRequest& other991) { + trigger = other991.trigger; + __isset = other991.__isset; } -WMCreateTriggerRequest& WMCreateTriggerRequest::operator=(const WMCreateTriggerRequest& other972) { - trigger = other972.trigger; - __isset = other972.__isset; +WMCreateTriggerRequest& WMCreateTriggerRequest::operator=(const WMCreateTriggerRequest& other992) { + trigger = other992.trigger; + __isset = other992.__isset; return *this; } void WMCreateTriggerRequest::printTo(std::ostream& out) const { @@ -24254,11 +24801,11 @@ void swap(WMCreateTriggerResponse &a, WMCreateTriggerResponse &b) { (void) b; } -WMCreateTriggerResponse::WMCreateTriggerResponse(const WMCreateTriggerResponse& other973) { - (void) other973; +WMCreateTriggerResponse::WMCreateTriggerResponse(const WMCreateTriggerResponse& other993) { + (void) other993; } -WMCreateTriggerResponse& WMCreateTriggerResponse::operator=(const WMCreateTriggerResponse& other974) { - (void) other974; +WMCreateTriggerResponse& WMCreateTriggerResponse::operator=(const WMCreateTriggerResponse& other994) { + (void) other994; return *this; } void WMCreateTriggerResponse::printTo(std::ostream& out) const { @@ -24339,13 +24886,13 @@ void swap(WMAlterTriggerRequest &a, WMAlterTriggerRequest &b) { swap(a.__isset, b.__isset); } -WMAlterTriggerRequest::WMAlterTriggerRequest(const WMAlterTriggerRequest& other975) { - trigger = other975.trigger; - __isset = other975.__isset; +WMAlterTriggerRequest::WMAlterTriggerRequest(const WMAlterTriggerRequest& other995) { + trigger = other995.trigger; + __isset = other995.__isset; } -WMAlterTriggerRequest& WMAlterTriggerRequest::operator=(const WMAlterTriggerRequest& other976) { - trigger = other976.trigger; - __isset = other976.__isset; +WMAlterTriggerRequest& WMAlterTriggerRequest::operator=(const WMAlterTriggerRequest& other996) { + trigger = other996.trigger; + __isset = other996.__isset; return *this; } void WMAlterTriggerRequest::printTo(std::ostream& out) const { @@ -24404,11 +24951,11 @@ void swap(WMAlterTriggerResponse &a, WMAlterTriggerResponse &b) { (void) b; } -WMAlterTriggerResponse::WMAlterTriggerResponse(const WMAlterTriggerResponse& other977) { - (void) other977; +WMAlterTriggerResponse::WMAlterTriggerResponse(const WMAlterTriggerResponse& other997) { + (void) other997; } -WMAlterTriggerResponse& WMAlterTriggerResponse::operator=(const WMAlterTriggerResponse& other978) { - (void) other978; +WMAlterTriggerResponse& WMAlterTriggerResponse::operator=(const WMAlterTriggerResponse& other998) { + (void) other998; return *this; } void WMAlterTriggerResponse::printTo(std::ostream& out) const { @@ -24508,15 +25055,15 @@ void swap(WMDropTriggerRequest &a, WMDropTriggerRequest &b) { swap(a.__isset, b.__isset); } -WMDropTriggerRequest::WMDropTriggerRequest(const WMDropTriggerRequest& other979) { - resourcePlanName = other979.resourcePlanName; - triggerName = other979.triggerName; - __isset = other979.__isset; +WMDropTriggerRequest::WMDropTriggerRequest(const WMDropTriggerRequest& other999) { + resourcePlanName = other999.resourcePlanName; + triggerName = other999.triggerName; + __isset = other999.__isset; } -WMDropTriggerRequest& WMDropTriggerRequest::operator=(const WMDropTriggerRequest& other980) { - resourcePlanName = other980.resourcePlanName; - triggerName = other980.triggerName; - __isset = other980.__isset; +WMDropTriggerRequest& WMDropTriggerRequest::operator=(const WMDropTriggerRequest& other1000) { + resourcePlanName = other1000.resourcePlanName; + triggerName = other1000.triggerName; + __isset = other1000.__isset; return *this; } void WMDropTriggerRequest::printTo(std::ostream& out) const { @@ -24576,11 +25123,11 @@ void swap(WMDropTriggerResponse &a, WMDropTriggerResponse &b) { (void) b; } -WMDropTriggerResponse::WMDropTriggerResponse(const WMDropTriggerResponse& other981) { - (void) other981; +WMDropTriggerResponse::WMDropTriggerResponse(const WMDropTriggerResponse& other1001) { + (void) other1001; } -WMDropTriggerResponse& WMDropTriggerResponse::operator=(const WMDropTriggerResponse& other982) { - (void) other982; +WMDropTriggerResponse& WMDropTriggerResponse::operator=(const WMDropTriggerResponse& other1002) { + (void) other1002; return *this; } void WMDropTriggerResponse::printTo(std::ostream& out) const { @@ -24661,13 +25208,13 @@ void swap(WMGetTriggersForResourePlanRequest &a, WMGetTriggersForResourePlanRequ swap(a.__isset, b.__isset); } -WMGetTriggersForResourePlanRequest::WMGetTriggersForResourePlanRequest(const WMGetTriggersForResourePlanRequest& other983) { - resourcePlanName = other983.resourcePlanName; - __isset = other983.__isset; +WMGetTriggersForResourePlanRequest::WMGetTriggersForResourePlanRequest(const WMGetTriggersForResourePlanRequest& other1003) { + resourcePlanName = other1003.resourcePlanName; + __isset = other1003.__isset; } -WMGetTriggersForResourePlanRequest& WMGetTriggersForResourePlanRequest::operator=(const WMGetTriggersForResourePlanRequest& other984) { - resourcePlanName = other984.resourcePlanName; - __isset = other984.__isset; +WMGetTriggersForResourePlanRequest& WMGetTriggersForResourePlanRequest::operator=(const WMGetTriggersForResourePlanRequest& other1004) { + resourcePlanName = other1004.resourcePlanName; + __isset = other1004.__isset; return *this; } void WMGetTriggersForResourePlanRequest::printTo(std::ostream& out) const { @@ -24712,14 +25259,14 @@ uint32_t WMGetTriggersForResourePlanResponse::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { this->triggers.clear(); - uint32_t _size985; - ::apache::thrift::protocol::TType _etype988; - xfer += iprot->readListBegin(_etype988, _size985); - this->triggers.resize(_size985); - uint32_t _i989; - for (_i989 = 0; _i989 < _size985; ++_i989) + uint32_t _size1005; + ::apache::thrift::protocol::TType _etype1008; + xfer += iprot->readListBegin(_etype1008, _size1005); + this->triggers.resize(_size1005); + uint32_t _i1009; + for (_i1009 = 0; _i1009 < _size1005; ++_i1009) { - xfer += this->triggers[_i989].read(iprot); + xfer += this->triggers[_i1009].read(iprot); } xfer += iprot->readListEnd(); } @@ -24749,10 +25296,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 _iter990; - for (_iter990 = this->triggers.begin(); _iter990 != this->triggers.end(); ++_iter990) + std::vector ::const_iterator _iter1010; + for (_iter1010 = this->triggers.begin(); _iter1010 != this->triggers.end(); ++_iter1010) { - xfer += (*_iter990).write(oprot); + xfer += (*_iter1010).write(oprot); } xfer += oprot->writeListEnd(); } @@ -24769,13 +25316,13 @@ void swap(WMGetTriggersForResourePlanResponse &a, WMGetTriggersForResourePlanRes swap(a.__isset, b.__isset); } -WMGetTriggersForResourePlanResponse::WMGetTriggersForResourePlanResponse(const WMGetTriggersForResourePlanResponse& other991) { - triggers = other991.triggers; - __isset = other991.__isset; +WMGetTriggersForResourePlanResponse::WMGetTriggersForResourePlanResponse(const WMGetTriggersForResourePlanResponse& other1011) { + triggers = other1011.triggers; + __isset = other1011.__isset; } -WMGetTriggersForResourePlanResponse& WMGetTriggersForResourePlanResponse::operator=(const WMGetTriggersForResourePlanResponse& other992) { - triggers = other992.triggers; - __isset = other992.__isset; +WMGetTriggersForResourePlanResponse& WMGetTriggersForResourePlanResponse::operator=(const WMGetTriggersForResourePlanResponse& other1012) { + triggers = other1012.triggers; + __isset = other1012.__isset; return *this; } void WMGetTriggersForResourePlanResponse::printTo(std::ostream& out) const { @@ -24857,13 +25404,13 @@ void swap(WMCreatePoolRequest &a, WMCreatePoolRequest &b) { swap(a.__isset, b.__isset); } -WMCreatePoolRequest::WMCreatePoolRequest(const WMCreatePoolRequest& other993) { - pool = other993.pool; - __isset = other993.__isset; +WMCreatePoolRequest::WMCreatePoolRequest(const WMCreatePoolRequest& other1013) { + pool = other1013.pool; + __isset = other1013.__isset; } -WMCreatePoolRequest& WMCreatePoolRequest::operator=(const WMCreatePoolRequest& other994) { - pool = other994.pool; - __isset = other994.__isset; +WMCreatePoolRequest& WMCreatePoolRequest::operator=(const WMCreatePoolRequest& other1014) { + pool = other1014.pool; + __isset = other1014.__isset; return *this; } void WMCreatePoolRequest::printTo(std::ostream& out) const { @@ -24922,11 +25469,11 @@ void swap(WMCreatePoolResponse &a, WMCreatePoolResponse &b) { (void) b; } -WMCreatePoolResponse::WMCreatePoolResponse(const WMCreatePoolResponse& other995) { - (void) other995; +WMCreatePoolResponse::WMCreatePoolResponse(const WMCreatePoolResponse& other1015) { + (void) other1015; } -WMCreatePoolResponse& WMCreatePoolResponse::operator=(const WMCreatePoolResponse& other996) { - (void) other996; +WMCreatePoolResponse& WMCreatePoolResponse::operator=(const WMCreatePoolResponse& other1016) { + (void) other1016; return *this; } void WMCreatePoolResponse::printTo(std::ostream& out) const { @@ -25026,15 +25573,15 @@ void swap(WMAlterPoolRequest &a, WMAlterPoolRequest &b) { swap(a.__isset, b.__isset); } -WMAlterPoolRequest::WMAlterPoolRequest(const WMAlterPoolRequest& other997) { - pool = other997.pool; - poolPath = other997.poolPath; - __isset = other997.__isset; +WMAlterPoolRequest::WMAlterPoolRequest(const WMAlterPoolRequest& other1017) { + pool = other1017.pool; + poolPath = other1017.poolPath; + __isset = other1017.__isset; } -WMAlterPoolRequest& WMAlterPoolRequest::operator=(const WMAlterPoolRequest& other998) { - pool = other998.pool; - poolPath = other998.poolPath; - __isset = other998.__isset; +WMAlterPoolRequest& WMAlterPoolRequest::operator=(const WMAlterPoolRequest& other1018) { + pool = other1018.pool; + poolPath = other1018.poolPath; + __isset = other1018.__isset; return *this; } void WMAlterPoolRequest::printTo(std::ostream& out) const { @@ -25094,11 +25641,11 @@ void swap(WMAlterPoolResponse &a, WMAlterPoolResponse &b) { (void) b; } -WMAlterPoolResponse::WMAlterPoolResponse(const WMAlterPoolResponse& other999) { - (void) other999; +WMAlterPoolResponse::WMAlterPoolResponse(const WMAlterPoolResponse& other1019) { + (void) other1019; } -WMAlterPoolResponse& WMAlterPoolResponse::operator=(const WMAlterPoolResponse& other1000) { - (void) other1000; +WMAlterPoolResponse& WMAlterPoolResponse::operator=(const WMAlterPoolResponse& other1020) { + (void) other1020; return *this; } void WMAlterPoolResponse::printTo(std::ostream& out) const { @@ -25198,15 +25745,15 @@ void swap(WMDropPoolRequest &a, WMDropPoolRequest &b) { swap(a.__isset, b.__isset); } -WMDropPoolRequest::WMDropPoolRequest(const WMDropPoolRequest& other1001) { - resourcePlanName = other1001.resourcePlanName; - poolPath = other1001.poolPath; - __isset = other1001.__isset; +WMDropPoolRequest::WMDropPoolRequest(const WMDropPoolRequest& other1021) { + resourcePlanName = other1021.resourcePlanName; + poolPath = other1021.poolPath; + __isset = other1021.__isset; } -WMDropPoolRequest& WMDropPoolRequest::operator=(const WMDropPoolRequest& other1002) { - resourcePlanName = other1002.resourcePlanName; - poolPath = other1002.poolPath; - __isset = other1002.__isset; +WMDropPoolRequest& WMDropPoolRequest::operator=(const WMDropPoolRequest& other1022) { + resourcePlanName = other1022.resourcePlanName; + poolPath = other1022.poolPath; + __isset = other1022.__isset; return *this; } void WMDropPoolRequest::printTo(std::ostream& out) const { @@ -25266,11 +25813,11 @@ void swap(WMDropPoolResponse &a, WMDropPoolResponse &b) { (void) b; } -WMDropPoolResponse::WMDropPoolResponse(const WMDropPoolResponse& other1003) { - (void) other1003; +WMDropPoolResponse::WMDropPoolResponse(const WMDropPoolResponse& other1023) { + (void) other1023; } -WMDropPoolResponse& WMDropPoolResponse::operator=(const WMDropPoolResponse& other1004) { - (void) other1004; +WMDropPoolResponse& WMDropPoolResponse::operator=(const WMDropPoolResponse& other1024) { + (void) other1024; return *this; } void WMDropPoolResponse::printTo(std::ostream& out) const { @@ -25370,15 +25917,15 @@ void swap(WMCreateOrUpdateMappingRequest &a, WMCreateOrUpdateMappingRequest &b) swap(a.__isset, b.__isset); } -WMCreateOrUpdateMappingRequest::WMCreateOrUpdateMappingRequest(const WMCreateOrUpdateMappingRequest& other1005) { - mapping = other1005.mapping; - update = other1005.update; - __isset = other1005.__isset; +WMCreateOrUpdateMappingRequest::WMCreateOrUpdateMappingRequest(const WMCreateOrUpdateMappingRequest& other1025) { + mapping = other1025.mapping; + update = other1025.update; + __isset = other1025.__isset; } -WMCreateOrUpdateMappingRequest& WMCreateOrUpdateMappingRequest::operator=(const WMCreateOrUpdateMappingRequest& other1006) { - mapping = other1006.mapping; - update = other1006.update; - __isset = other1006.__isset; +WMCreateOrUpdateMappingRequest& WMCreateOrUpdateMappingRequest::operator=(const WMCreateOrUpdateMappingRequest& other1026) { + mapping = other1026.mapping; + update = other1026.update; + __isset = other1026.__isset; return *this; } void WMCreateOrUpdateMappingRequest::printTo(std::ostream& out) const { @@ -25438,11 +25985,11 @@ void swap(WMCreateOrUpdateMappingResponse &a, WMCreateOrUpdateMappingResponse &b (void) b; } -WMCreateOrUpdateMappingResponse::WMCreateOrUpdateMappingResponse(const WMCreateOrUpdateMappingResponse& other1007) { - (void) other1007; +WMCreateOrUpdateMappingResponse::WMCreateOrUpdateMappingResponse(const WMCreateOrUpdateMappingResponse& other1027) { + (void) other1027; } -WMCreateOrUpdateMappingResponse& WMCreateOrUpdateMappingResponse::operator=(const WMCreateOrUpdateMappingResponse& other1008) { - (void) other1008; +WMCreateOrUpdateMappingResponse& WMCreateOrUpdateMappingResponse::operator=(const WMCreateOrUpdateMappingResponse& other1028) { + (void) other1028; return *this; } void WMCreateOrUpdateMappingResponse::printTo(std::ostream& out) const { @@ -25523,13 +26070,13 @@ void swap(WMDropMappingRequest &a, WMDropMappingRequest &b) { swap(a.__isset, b.__isset); } -WMDropMappingRequest::WMDropMappingRequest(const WMDropMappingRequest& other1009) { - mapping = other1009.mapping; - __isset = other1009.__isset; +WMDropMappingRequest::WMDropMappingRequest(const WMDropMappingRequest& other1029) { + mapping = other1029.mapping; + __isset = other1029.__isset; } -WMDropMappingRequest& WMDropMappingRequest::operator=(const WMDropMappingRequest& other1010) { - mapping = other1010.mapping; - __isset = other1010.__isset; +WMDropMappingRequest& WMDropMappingRequest::operator=(const WMDropMappingRequest& other1030) { + mapping = other1030.mapping; + __isset = other1030.__isset; return *this; } void WMDropMappingRequest::printTo(std::ostream& out) const { @@ -25588,11 +26135,11 @@ void swap(WMDropMappingResponse &a, WMDropMappingResponse &b) { (void) b; } -WMDropMappingResponse::WMDropMappingResponse(const WMDropMappingResponse& other1011) { - (void) other1011; +WMDropMappingResponse::WMDropMappingResponse(const WMDropMappingResponse& other1031) { + (void) other1031; } -WMDropMappingResponse& WMDropMappingResponse::operator=(const WMDropMappingResponse& other1012) { - (void) other1012; +WMDropMappingResponse& WMDropMappingResponse::operator=(const WMDropMappingResponse& other1032) { + (void) other1032; return *this; } void WMDropMappingResponse::printTo(std::ostream& out) const { @@ -25730,19 +26277,19 @@ void swap(WMCreateOrDropTriggerToPoolMappingRequest &a, WMCreateOrDropTriggerToP swap(a.__isset, b.__isset); } -WMCreateOrDropTriggerToPoolMappingRequest::WMCreateOrDropTriggerToPoolMappingRequest(const WMCreateOrDropTriggerToPoolMappingRequest& other1013) { - resourcePlanName = other1013.resourcePlanName; - triggerName = other1013.triggerName; - poolPath = other1013.poolPath; - drop = other1013.drop; - __isset = other1013.__isset; +WMCreateOrDropTriggerToPoolMappingRequest::WMCreateOrDropTriggerToPoolMappingRequest(const WMCreateOrDropTriggerToPoolMappingRequest& other1033) { + resourcePlanName = other1033.resourcePlanName; + triggerName = other1033.triggerName; + poolPath = other1033.poolPath; + drop = other1033.drop; + __isset = other1033.__isset; } -WMCreateOrDropTriggerToPoolMappingRequest& WMCreateOrDropTriggerToPoolMappingRequest::operator=(const WMCreateOrDropTriggerToPoolMappingRequest& other1014) { - resourcePlanName = other1014.resourcePlanName; - triggerName = other1014.triggerName; - poolPath = other1014.poolPath; - drop = other1014.drop; - __isset = other1014.__isset; +WMCreateOrDropTriggerToPoolMappingRequest& WMCreateOrDropTriggerToPoolMappingRequest::operator=(const WMCreateOrDropTriggerToPoolMappingRequest& other1034) { + resourcePlanName = other1034.resourcePlanName; + triggerName = other1034.triggerName; + poolPath = other1034.poolPath; + drop = other1034.drop; + __isset = other1034.__isset; return *this; } void WMCreateOrDropTriggerToPoolMappingRequest::printTo(std::ostream& out) const { @@ -25804,11 +26351,11 @@ void swap(WMCreateOrDropTriggerToPoolMappingResponse &a, WMCreateOrDropTriggerTo (void) b; } -WMCreateOrDropTriggerToPoolMappingResponse::WMCreateOrDropTriggerToPoolMappingResponse(const WMCreateOrDropTriggerToPoolMappingResponse& other1015) { - (void) other1015; +WMCreateOrDropTriggerToPoolMappingResponse::WMCreateOrDropTriggerToPoolMappingResponse(const WMCreateOrDropTriggerToPoolMappingResponse& other1035) { + (void) other1035; } -WMCreateOrDropTriggerToPoolMappingResponse& WMCreateOrDropTriggerToPoolMappingResponse::operator=(const WMCreateOrDropTriggerToPoolMappingResponse& other1016) { - (void) other1016; +WMCreateOrDropTriggerToPoolMappingResponse& WMCreateOrDropTriggerToPoolMappingResponse::operator=(const WMCreateOrDropTriggerToPoolMappingResponse& other1036) { + (void) other1036; return *this; } void WMCreateOrDropTriggerToPoolMappingResponse::printTo(std::ostream& out) const { @@ -25887,13 +26434,13 @@ void swap(MetaException &a, MetaException &b) { swap(a.__isset, b.__isset); } -MetaException::MetaException(const MetaException& other1017) : TException() { - message = other1017.message; - __isset = other1017.__isset; +MetaException::MetaException(const MetaException& other1037) : TException() { + message = other1037.message; + __isset = other1037.__isset; } -MetaException& MetaException::operator=(const MetaException& other1018) { - message = other1018.message; - __isset = other1018.__isset; +MetaException& MetaException::operator=(const MetaException& other1038) { + message = other1038.message; + __isset = other1038.__isset; return *this; } void MetaException::printTo(std::ostream& out) const { @@ -25984,13 +26531,13 @@ void swap(UnknownTableException &a, UnknownTableException &b) { swap(a.__isset, b.__isset); } -UnknownTableException::UnknownTableException(const UnknownTableException& other1019) : TException() { - message = other1019.message; - __isset = other1019.__isset; +UnknownTableException::UnknownTableException(const UnknownTableException& other1039) : TException() { + message = other1039.message; + __isset = other1039.__isset; } -UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other1020) { - message = other1020.message; - __isset = other1020.__isset; +UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other1040) { + message = other1040.message; + __isset = other1040.__isset; return *this; } void UnknownTableException::printTo(std::ostream& out) const { @@ -26081,13 +26628,13 @@ void swap(UnknownDBException &a, UnknownDBException &b) { swap(a.__isset, b.__isset); } -UnknownDBException::UnknownDBException(const UnknownDBException& other1021) : TException() { - message = other1021.message; - __isset = other1021.__isset; +UnknownDBException::UnknownDBException(const UnknownDBException& other1041) : TException() { + message = other1041.message; + __isset = other1041.__isset; } -UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other1022) { - message = other1022.message; - __isset = other1022.__isset; +UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other1042) { + message = other1042.message; + __isset = other1042.__isset; return *this; } void UnknownDBException::printTo(std::ostream& out) const { @@ -26178,13 +26725,13 @@ void swap(AlreadyExistsException &a, AlreadyExistsException &b) { swap(a.__isset, b.__isset); } -AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other1023) : TException() { - message = other1023.message; - __isset = other1023.__isset; +AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other1043) : TException() { + message = other1043.message; + __isset = other1043.__isset; } -AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other1024) { - message = other1024.message; - __isset = other1024.__isset; +AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other1044) { + message = other1044.message; + __isset = other1044.__isset; return *this; } void AlreadyExistsException::printTo(std::ostream& out) const { @@ -26275,13 +26822,13 @@ void swap(InvalidPartitionException &a, InvalidPartitionException &b) { swap(a.__isset, b.__isset); } -InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other1025) : TException() { - message = other1025.message; - __isset = other1025.__isset; +InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other1045) : TException() { + message = other1045.message; + __isset = other1045.__isset; } -InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other1026) { - message = other1026.message; - __isset = other1026.__isset; +InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other1046) { + message = other1046.message; + __isset = other1046.__isset; return *this; } void InvalidPartitionException::printTo(std::ostream& out) const { @@ -26372,13 +26919,13 @@ void swap(UnknownPartitionException &a, UnknownPartitionException &b) { swap(a.__isset, b.__isset); } -UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other1027) : TException() { - message = other1027.message; - __isset = other1027.__isset; +UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other1047) : TException() { + message = other1047.message; + __isset = other1047.__isset; } -UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other1028) { - message = other1028.message; - __isset = other1028.__isset; +UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other1048) { + message = other1048.message; + __isset = other1048.__isset; return *this; } void UnknownPartitionException::printTo(std::ostream& out) const { @@ -26469,13 +27016,13 @@ void swap(InvalidObjectException &a, InvalidObjectException &b) { swap(a.__isset, b.__isset); } -InvalidObjectException::InvalidObjectException(const InvalidObjectException& other1029) : TException() { - message = other1029.message; - __isset = other1029.__isset; +InvalidObjectException::InvalidObjectException(const InvalidObjectException& other1049) : TException() { + message = other1049.message; + __isset = other1049.__isset; } -InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other1030) { - message = other1030.message; - __isset = other1030.__isset; +InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other1050) { + message = other1050.message; + __isset = other1050.__isset; return *this; } void InvalidObjectException::printTo(std::ostream& out) const { @@ -26566,13 +27113,13 @@ void swap(NoSuchObjectException &a, NoSuchObjectException &b) { swap(a.__isset, b.__isset); } -NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other1031) : TException() { - message = other1031.message; - __isset = other1031.__isset; +NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other1051) : TException() { + message = other1051.message; + __isset = other1051.__isset; } -NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other1032) { - message = other1032.message; - __isset = other1032.__isset; +NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other1052) { + message = other1052.message; + __isset = other1052.__isset; return *this; } void NoSuchObjectException::printTo(std::ostream& out) const { @@ -26663,13 +27210,13 @@ void swap(IndexAlreadyExistsException &a, IndexAlreadyExistsException &b) { swap(a.__isset, b.__isset); } -IndexAlreadyExistsException::IndexAlreadyExistsException(const IndexAlreadyExistsException& other1033) : TException() { - message = other1033.message; - __isset = other1033.__isset; +IndexAlreadyExistsException::IndexAlreadyExistsException(const IndexAlreadyExistsException& other1053) : TException() { + message = other1053.message; + __isset = other1053.__isset; } -IndexAlreadyExistsException& IndexAlreadyExistsException::operator=(const IndexAlreadyExistsException& other1034) { - message = other1034.message; - __isset = other1034.__isset; +IndexAlreadyExistsException& IndexAlreadyExistsException::operator=(const IndexAlreadyExistsException& other1054) { + message = other1054.message; + __isset = other1054.__isset; return *this; } void IndexAlreadyExistsException::printTo(std::ostream& out) const { @@ -26760,13 +27307,13 @@ void swap(InvalidOperationException &a, InvalidOperationException &b) { swap(a.__isset, b.__isset); } -InvalidOperationException::InvalidOperationException(const InvalidOperationException& other1035) : TException() { - message = other1035.message; - __isset = other1035.__isset; +InvalidOperationException::InvalidOperationException(const InvalidOperationException& other1055) : TException() { + message = other1055.message; + __isset = other1055.__isset; } -InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other1036) { - message = other1036.message; - __isset = other1036.__isset; +InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other1056) { + message = other1056.message; + __isset = other1056.__isset; return *this; } void InvalidOperationException::printTo(std::ostream& out) const { @@ -26857,13 +27404,13 @@ void swap(ConfigValSecurityException &a, ConfigValSecurityException &b) { swap(a.__isset, b.__isset); } -ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other1037) : TException() { - message = other1037.message; - __isset = other1037.__isset; +ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other1057) : TException() { + message = other1057.message; + __isset = other1057.__isset; } -ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other1038) { - message = other1038.message; - __isset = other1038.__isset; +ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other1058) { + message = other1058.message; + __isset = other1058.__isset; return *this; } void ConfigValSecurityException::printTo(std::ostream& out) const { @@ -26954,13 +27501,13 @@ void swap(InvalidInputException &a, InvalidInputException &b) { swap(a.__isset, b.__isset); } -InvalidInputException::InvalidInputException(const InvalidInputException& other1039) : TException() { - message = other1039.message; - __isset = other1039.__isset; +InvalidInputException::InvalidInputException(const InvalidInputException& other1059) : TException() { + message = other1059.message; + __isset = other1059.__isset; } -InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other1040) { - message = other1040.message; - __isset = other1040.__isset; +InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other1060) { + message = other1060.message; + __isset = other1060.__isset; return *this; } void InvalidInputException::printTo(std::ostream& out) const { @@ -27051,13 +27598,13 @@ void swap(NoSuchTxnException &a, NoSuchTxnException &b) { swap(a.__isset, b.__isset); } -NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other1041) : TException() { - message = other1041.message; - __isset = other1041.__isset; +NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other1061) : TException() { + message = other1061.message; + __isset = other1061.__isset; } -NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other1042) { - message = other1042.message; - __isset = other1042.__isset; +NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other1062) { + message = other1062.message; + __isset = other1062.__isset; return *this; } void NoSuchTxnException::printTo(std::ostream& out) const { @@ -27148,13 +27695,13 @@ void swap(TxnAbortedException &a, TxnAbortedException &b) { swap(a.__isset, b.__isset); } -TxnAbortedException::TxnAbortedException(const TxnAbortedException& other1043) : TException() { - message = other1043.message; - __isset = other1043.__isset; +TxnAbortedException::TxnAbortedException(const TxnAbortedException& other1063) : TException() { + message = other1063.message; + __isset = other1063.__isset; } -TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other1044) { - message = other1044.message; - __isset = other1044.__isset; +TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other1064) { + message = other1064.message; + __isset = other1064.__isset; return *this; } void TxnAbortedException::printTo(std::ostream& out) const { @@ -27245,13 +27792,13 @@ void swap(TxnOpenException &a, TxnOpenException &b) { swap(a.__isset, b.__isset); } -TxnOpenException::TxnOpenException(const TxnOpenException& other1045) : TException() { - message = other1045.message; - __isset = other1045.__isset; +TxnOpenException::TxnOpenException(const TxnOpenException& other1065) : TException() { + message = other1065.message; + __isset = other1065.__isset; } -TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other1046) { - message = other1046.message; - __isset = other1046.__isset; +TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other1066) { + message = other1066.message; + __isset = other1066.__isset; return *this; } void TxnOpenException::printTo(std::ostream& out) const { @@ -27342,13 +27889,13 @@ void swap(NoSuchLockException &a, NoSuchLockException &b) { swap(a.__isset, b.__isset); } -NoSuchLockException::NoSuchLockException(const NoSuchLockException& other1047) : TException() { - message = other1047.message; - __isset = other1047.__isset; +NoSuchLockException::NoSuchLockException(const NoSuchLockException& other1067) : TException() { + message = other1067.message; + __isset = other1067.__isset; } -NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other1048) { - message = other1048.message; - __isset = other1048.__isset; +NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other1068) { + message = other1068.message; + __isset = other1068.__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 c25089357b..c0e37ab1e3 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 @@ -198,6 +198,8 @@ class SQLUniqueConstraint; class SQLNotNullConstraint; +class SQLDefaultConstraint; + class Type; class HiveObjectRef; @@ -304,6 +306,10 @@ class NotNullConstraintsRequest; class NotNullConstraintsResponse; +class DefaultConstraintsRequest; + +class DefaultConstraintsResponse; + class DropConstraintRequest; class AddPrimaryKeyRequest; @@ -314,6 +320,8 @@ class AddUniqueConstraintRequest; class AddNotNullConstraintRequest; +class AddDefaultConstraintRequest; + class PartitionsByExprResult; class PartitionsByExprRequest; @@ -1072,6 +1080,94 @@ inline std::ostream& operator<<(std::ostream& out, const SQLNotNullConstraint& o return out; } +typedef struct _SQLDefaultConstraint__isset { + _SQLDefaultConstraint__isset() : table_db(false), table_name(false), column_name(false), default_value(false), dc_name(false), enable_cstr(false), validate_cstr(false), rely_cstr(false) {} + bool table_db :1; + bool table_name :1; + bool column_name :1; + bool default_value :1; + bool dc_name :1; + bool enable_cstr :1; + bool validate_cstr :1; + bool rely_cstr :1; +} _SQLDefaultConstraint__isset; + +class SQLDefaultConstraint { + public: + + SQLDefaultConstraint(const SQLDefaultConstraint&); + SQLDefaultConstraint& operator=(const SQLDefaultConstraint&); + SQLDefaultConstraint() : table_db(), table_name(), column_name(), default_value(), dc_name(), enable_cstr(0), validate_cstr(0), rely_cstr(0) { + } + + virtual ~SQLDefaultConstraint() throw(); + std::string table_db; + std::string table_name; + std::string column_name; + std::string default_value; + std::string dc_name; + bool enable_cstr; + bool validate_cstr; + bool rely_cstr; + + _SQLDefaultConstraint__isset __isset; + + void __set_table_db(const std::string& val); + + void __set_table_name(const std::string& val); + + void __set_column_name(const std::string& val); + + void __set_default_value(const std::string& val); + + void __set_dc_name(const std::string& val); + + void __set_enable_cstr(const bool val); + + void __set_validate_cstr(const bool val); + + void __set_rely_cstr(const bool val); + + bool operator == (const SQLDefaultConstraint & rhs) const + { + if (!(table_db == rhs.table_db)) + return false; + if (!(table_name == rhs.table_name)) + return false; + if (!(column_name == rhs.column_name)) + return false; + if (!(default_value == rhs.default_value)) + return false; + if (!(dc_name == rhs.dc_name)) + return false; + if (!(enable_cstr == rhs.enable_cstr)) + return false; + if (!(validate_cstr == rhs.validate_cstr)) + return false; + if (!(rely_cstr == rhs.rely_cstr)) + return false; + return true; + } + bool operator != (const SQLDefaultConstraint &rhs) const { + return !(*this == rhs); + } + + bool operator < (const SQLDefaultConstraint & ) 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(SQLDefaultConstraint &a, SQLDefaultConstraint &b); + +inline std::ostream& operator<<(std::ostream& out, const SQLDefaultConstraint& obj) +{ + obj.printTo(out); + return out; +} + typedef struct _Type__isset { _Type__isset() : name(false), type1(false), type2(false), fields(false) {} bool name :1; @@ -4334,6 +4430,91 @@ inline std::ostream& operator<<(std::ostream& out, const NotNullConstraintsRespo } +class DefaultConstraintsRequest { + public: + + DefaultConstraintsRequest(const DefaultConstraintsRequest&); + DefaultConstraintsRequest& operator=(const DefaultConstraintsRequest&); + DefaultConstraintsRequest() : db_name(), tbl_name() { + } + + virtual ~DefaultConstraintsRequest() throw(); + std::string db_name; + std::string tbl_name; + + void __set_db_name(const std::string& val); + + void __set_tbl_name(const std::string& val); + + bool operator == (const DefaultConstraintsRequest & rhs) const + { + if (!(db_name == rhs.db_name)) + return false; + if (!(tbl_name == rhs.tbl_name)) + return false; + return true; + } + bool operator != (const DefaultConstraintsRequest &rhs) const { + return !(*this == rhs); + } + + bool operator < (const DefaultConstraintsRequest & ) 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(DefaultConstraintsRequest &a, DefaultConstraintsRequest &b); + +inline std::ostream& operator<<(std::ostream& out, const DefaultConstraintsRequest& obj) +{ + obj.printTo(out); + return out; +} + + +class DefaultConstraintsResponse { + public: + + DefaultConstraintsResponse(const DefaultConstraintsResponse&); + DefaultConstraintsResponse& operator=(const DefaultConstraintsResponse&); + DefaultConstraintsResponse() { + } + + virtual ~DefaultConstraintsResponse() throw(); + std::vector defaultConstraints; + + void __set_defaultConstraints(const std::vector & val); + + bool operator == (const DefaultConstraintsResponse & rhs) const + { + if (!(defaultConstraints == rhs.defaultConstraints)) + return false; + return true; + } + bool operator != (const DefaultConstraintsResponse &rhs) const { + return !(*this == rhs); + } + + bool operator < (const DefaultConstraintsResponse & ) 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(DefaultConstraintsResponse &a, DefaultConstraintsResponse &b); + +inline std::ostream& operator<<(std::ostream& out, const DefaultConstraintsResponse& obj) +{ + obj.printTo(out); + return out; +} + + class DropConstraintRequest { public: @@ -4544,6 +4725,46 @@ inline std::ostream& operator<<(std::ostream& out, const AddNotNullConstraintReq } +class AddDefaultConstraintRequest { + public: + + AddDefaultConstraintRequest(const AddDefaultConstraintRequest&); + AddDefaultConstraintRequest& operator=(const AddDefaultConstraintRequest&); + AddDefaultConstraintRequest() { + } + + virtual ~AddDefaultConstraintRequest() throw(); + std::vector defaultConstraintCols; + + void __set_defaultConstraintCols(const std::vector & val); + + bool operator == (const AddDefaultConstraintRequest & rhs) const + { + if (!(defaultConstraintCols == rhs.defaultConstraintCols)) + return false; + return true; + } + bool operator != (const AddDefaultConstraintRequest &rhs) const { + return !(*this == rhs); + } + + bool operator < (const AddDefaultConstraintRequest & ) 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(AddDefaultConstraintRequest &a, AddDefaultConstraintRequest &b); + +inline std::ostream& operator<<(std::ostream& out, const AddDefaultConstraintRequest& obj) +{ + obj.printTo(out); + return out; +} + + class PartitionsByExprResult { public: 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..29e4e69cc4 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 _list564 = iprot.readListBegin(); + struct.txn_ids = new ArrayList(_list564.size); + long _elem565; + for (int _i566 = 0; _i566 < _list564.size; ++_i566) { - _elem549 = iprot.readI64(); - struct.txn_ids.add(_elem549); + _elem565 = iprot.readI64(); + struct.txn_ids.add(_elem565); } 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 _iter567 : struct.txn_ids) { - oprot.writeI64(_iter551); + oprot.writeI64(_iter567); } 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 _iter568 : struct.txn_ids) { - oprot.writeI64(_iter552); + oprot.writeI64(_iter568); } } } @@ -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 _list569 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txn_ids = new ArrayList(_list569.size); + long _elem570; + for (int _i571 = 0; _i571 < _list569.size; ++_i571) { - _elem554 = iprot.readI64(); - struct.txn_ids.add(_elem554); + _elem570 = iprot.readI64(); + struct.txn_ids.add(_elem570); } } struct.setTxn_idsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDefaultConstraintRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDefaultConstraintRequest.java new file mode 100644 index 0000000000..8703b61cf1 --- /dev/null +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDefaultConstraintRequest.java @@ -0,0 +1,443 @@ +/** + * 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 AddDefaultConstraintRequest 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("AddDefaultConstraintRequest"); + + private static final org.apache.thrift.protocol.TField DEFAULT_CONSTRAINT_COLS_FIELD_DESC = new org.apache.thrift.protocol.TField("defaultConstraintCols", org.apache.thrift.protocol.TType.LIST, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new AddDefaultConstraintRequestStandardSchemeFactory()); + schemes.put(TupleScheme.class, new AddDefaultConstraintRequestTupleSchemeFactory()); + } + + private List defaultConstraintCols; // 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 { + DEFAULT_CONSTRAINT_COLS((short)1, "defaultConstraintCols"); + + 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: // DEFAULT_CONSTRAINT_COLS + return DEFAULT_CONSTRAINT_COLS; + 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.DEFAULT_CONSTRAINT_COLS, new org.apache.thrift.meta_data.FieldMetaData("defaultConstraintCols", org.apache.thrift.TFieldRequirementType.REQUIRED, + 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, SQLDefaultConstraint.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AddDefaultConstraintRequest.class, metaDataMap); + } + + public AddDefaultConstraintRequest() { + } + + public AddDefaultConstraintRequest( + List defaultConstraintCols) + { + this(); + this.defaultConstraintCols = defaultConstraintCols; + } + + /** + * Performs a deep copy on other. + */ + public AddDefaultConstraintRequest(AddDefaultConstraintRequest other) { + if (other.isSetDefaultConstraintCols()) { + List __this__defaultConstraintCols = new ArrayList(other.defaultConstraintCols.size()); + for (SQLDefaultConstraint other_element : other.defaultConstraintCols) { + __this__defaultConstraintCols.add(new SQLDefaultConstraint(other_element)); + } + this.defaultConstraintCols = __this__defaultConstraintCols; + } + } + + public AddDefaultConstraintRequest deepCopy() { + return new AddDefaultConstraintRequest(this); + } + + @Override + public void clear() { + this.defaultConstraintCols = null; + } + + public int getDefaultConstraintColsSize() { + return (this.defaultConstraintCols == null) ? 0 : this.defaultConstraintCols.size(); + } + + public java.util.Iterator getDefaultConstraintColsIterator() { + return (this.defaultConstraintCols == null) ? null : this.defaultConstraintCols.iterator(); + } + + public void addToDefaultConstraintCols(SQLDefaultConstraint elem) { + if (this.defaultConstraintCols == null) { + this.defaultConstraintCols = new ArrayList(); + } + this.defaultConstraintCols.add(elem); + } + + public List getDefaultConstraintCols() { + return this.defaultConstraintCols; + } + + public void setDefaultConstraintCols(List defaultConstraintCols) { + this.defaultConstraintCols = defaultConstraintCols; + } + + public void unsetDefaultConstraintCols() { + this.defaultConstraintCols = null; + } + + /** Returns true if field defaultConstraintCols is set (has been assigned a value) and false otherwise */ + public boolean isSetDefaultConstraintCols() { + return this.defaultConstraintCols != null; + } + + public void setDefaultConstraintColsIsSet(boolean value) { + if (!value) { + this.defaultConstraintCols = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case DEFAULT_CONSTRAINT_COLS: + if (value == null) { + unsetDefaultConstraintCols(); + } else { + setDefaultConstraintCols((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case DEFAULT_CONSTRAINT_COLS: + return getDefaultConstraintCols(); + + } + 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 DEFAULT_CONSTRAINT_COLS: + return isSetDefaultConstraintCols(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof AddDefaultConstraintRequest) + return this.equals((AddDefaultConstraintRequest)that); + return false; + } + + public boolean equals(AddDefaultConstraintRequest that) { + if (that == null) + return false; + + boolean this_present_defaultConstraintCols = true && this.isSetDefaultConstraintCols(); + boolean that_present_defaultConstraintCols = true && that.isSetDefaultConstraintCols(); + if (this_present_defaultConstraintCols || that_present_defaultConstraintCols) { + if (!(this_present_defaultConstraintCols && that_present_defaultConstraintCols)) + return false; + if (!this.defaultConstraintCols.equals(that.defaultConstraintCols)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_defaultConstraintCols = true && (isSetDefaultConstraintCols()); + list.add(present_defaultConstraintCols); + if (present_defaultConstraintCols) + list.add(defaultConstraintCols); + + return list.hashCode(); + } + + @Override + public int compareTo(AddDefaultConstraintRequest other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetDefaultConstraintCols()).compareTo(other.isSetDefaultConstraintCols()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDefaultConstraintCols()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultConstraintCols, other.defaultConstraintCols); + 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("AddDefaultConstraintRequest("); + boolean first = true; + + sb.append("defaultConstraintCols:"); + if (this.defaultConstraintCols == null) { + sb.append("null"); + } else { + sb.append(this.defaultConstraintCols); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetDefaultConstraintCols()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'defaultConstraintCols' is unset! Struct:" + toString()); + } + + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class AddDefaultConstraintRequestStandardSchemeFactory implements SchemeFactory { + public AddDefaultConstraintRequestStandardScheme getScheme() { + return new AddDefaultConstraintRequestStandardScheme(); + } + } + + private static class AddDefaultConstraintRequestStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, AddDefaultConstraintRequest 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: // DEFAULT_CONSTRAINT_COLS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list394 = iprot.readListBegin(); + struct.defaultConstraintCols = new ArrayList(_list394.size); + SQLDefaultConstraint _elem395; + for (int _i396 = 0; _i396 < _list394.size; ++_i396) + { + _elem395 = new SQLDefaultConstraint(); + _elem395.read(iprot); + struct.defaultConstraintCols.add(_elem395); + } + iprot.readListEnd(); + } + struct.setDefaultConstraintColsIsSet(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, AddDefaultConstraintRequest struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.defaultConstraintCols != null) { + oprot.writeFieldBegin(DEFAULT_CONSTRAINT_COLS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.defaultConstraintCols.size())); + for (SQLDefaultConstraint _iter397 : struct.defaultConstraintCols) + { + _iter397.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class AddDefaultConstraintRequestTupleSchemeFactory implements SchemeFactory { + public AddDefaultConstraintRequestTupleScheme getScheme() { + return new AddDefaultConstraintRequestTupleScheme(); + } + } + + private static class AddDefaultConstraintRequestTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, AddDefaultConstraintRequest struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + { + oprot.writeI32(struct.defaultConstraintCols.size()); + for (SQLDefaultConstraint _iter398 : struct.defaultConstraintCols) + { + _iter398.write(oprot); + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, AddDefaultConstraintRequest 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.defaultConstraintCols = new ArrayList(_list399.size); + SQLDefaultConstraint _elem400; + for (int _i401 = 0; _i401 < _list399.size; ++_i401) + { + _elem400 = new SQLDefaultConstraint(); + _elem400.read(iprot); + struct.defaultConstraintCols.add(_elem400); + } + } + struct.setDefaultConstraintColsIsSet(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..b3fb2b07f3 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 _list622 = iprot.readListBegin(); + struct.partitionnames = new ArrayList(_list622.size); + String _elem623; + for (int _i624 = 0; _i624 < _list622.size; ++_i624) { - _elem607 = iprot.readString(); - struct.partitionnames.add(_elem607); + _elem623 = iprot.readString(); + struct.partitionnames.add(_elem623); } 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 _iter625 : struct.partitionnames) { - oprot.writeString(_iter609); + oprot.writeString(_iter625); } 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 _iter626 : struct.partitionnames) { - oprot.writeString(_iter610); + oprot.writeString(_iter626); } } 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 _list627 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionnames = new ArrayList(_list627.size); + String _elem628; + for (int _i629 = 0; _i629 < _list627.size; ++_i629) { - _elem612 = iprot.readString(); - struct.partitionnames.add(_elem612); + _elem628 = iprot.readString(); + struct.partitionnames.add(_elem628); } } 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..2bcdea1728 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 _list370 = iprot.readListBegin(); + struct.foreignKeyCols = new ArrayList(_list370.size); + SQLForeignKey _elem371; + for (int _i372 = 0; _i372 < _list370.size; ++_i372) { - _elem363 = new SQLForeignKey(); - _elem363.read(iprot); - struct.foreignKeyCols.add(_elem363); + _elem371 = new SQLForeignKey(); + _elem371.read(iprot); + struct.foreignKeyCols.add(_elem371); } 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 _iter373 : struct.foreignKeyCols) { - _iter365.write(oprot); + _iter373.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 _iter374 : struct.foreignKeyCols) { - _iter366.write(oprot); + _iter374.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 _list375 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.foreignKeyCols = new ArrayList(_list375.size); + SQLForeignKey _elem376; + for (int _i377 = 0; _i377 < _list375.size; ++_i377) { - _elem368 = new SQLForeignKey(); - _elem368.read(iprot); - struct.foreignKeyCols.add(_elem368); + _elem376 = new SQLForeignKey(); + _elem376.read(iprot); + struct.foreignKeyCols.add(_elem376); } } 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..f944e46fd6 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 _list386 = iprot.readListBegin(); + struct.notNullConstraintCols = new ArrayList(_list386.size); + SQLNotNullConstraint _elem387; + for (int _i388 = 0; _i388 < _list386.size; ++_i388) { - _elem379 = new SQLNotNullConstraint(); - _elem379.read(iprot); - struct.notNullConstraintCols.add(_elem379); + _elem387 = new SQLNotNullConstraint(); + _elem387.read(iprot); + struct.notNullConstraintCols.add(_elem387); } 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 _iter389 : struct.notNullConstraintCols) { - _iter381.write(oprot); + _iter389.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 _iter390 : struct.notNullConstraintCols) { - _iter382.write(oprot); + _iter390.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 _list391 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.notNullConstraintCols = new ArrayList(_list391.size); + SQLNotNullConstraint _elem392; + for (int _i393 = 0; _i393 < _list391.size; ++_i393) { - _elem384 = new SQLNotNullConstraint(); - _elem384.read(iprot); - struct.notNullConstraintCols.add(_elem384); + _elem392 = new SQLNotNullConstraint(); + _elem392.read(iprot); + struct.notNullConstraintCols.add(_elem392); } } 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..d351678bb6 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 _list468 = iprot.readListBegin(); + struct.parts = new ArrayList(_list468.size); + Partition _elem469; + for (int _i470 = 0; _i470 < _list468.size; ++_i470) { - _elem453 = new Partition(); - _elem453.read(iprot); - struct.parts.add(_elem453); + _elem469 = new Partition(); + _elem469.read(iprot); + struct.parts.add(_elem469); } 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 _iter471 : struct.parts) { - _iter455.write(oprot); + _iter471.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 _iter472 : struct.parts) { - _iter456.write(oprot); + _iter472.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 _list473 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.parts = new ArrayList(_list473.size); + Partition _elem474; + for (int _i475 = 0; _i475 < _list473.size; ++_i475) { - _elem458 = new Partition(); - _elem458.read(iprot); - struct.parts.add(_elem458); + _elem474 = new Partition(); + _elem474.read(iprot); + struct.parts.add(_elem474); } } 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..23525e2703 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 _list460 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list460.size); + Partition _elem461; + for (int _i462 = 0; _i462 < _list460.size; ++_i462) { - _elem445 = new Partition(); - _elem445.read(iprot); - struct.partitions.add(_elem445); + _elem461 = new Partition(); + _elem461.read(iprot); + struct.partitions.add(_elem461); } 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 _iter463 : struct.partitions) { - _iter447.write(oprot); + _iter463.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 _iter464 : struct.partitions) { - _iter448.write(oprot); + _iter464.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 _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) { - _elem450 = new Partition(); - _elem450.read(iprot); - struct.partitions.add(_elem450); + _elem466 = new Partition(); + _elem466.read(iprot); + struct.partitions.add(_elem466); } } 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..9efcfe0a1b 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 _list362 = iprot.readListBegin(); + struct.primaryKeyCols = new ArrayList(_list362.size); + SQLPrimaryKey _elem363; + for (int _i364 = 0; _i364 < _list362.size; ++_i364) { - _elem355 = new SQLPrimaryKey(); - _elem355.read(iprot); - struct.primaryKeyCols.add(_elem355); + _elem363 = new SQLPrimaryKey(); + _elem363.read(iprot); + struct.primaryKeyCols.add(_elem363); } 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 _iter365 : struct.primaryKeyCols) { - _iter357.write(oprot); + _iter365.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 _iter366 : struct.primaryKeyCols) { - _iter358.write(oprot); + _iter366.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 _list367 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.primaryKeyCols = new ArrayList(_list367.size); + SQLPrimaryKey _elem368; + for (int _i369 = 0; _i369 < _list367.size; ++_i369) { - _elem360 = new SQLPrimaryKey(); - _elem360.read(iprot); - struct.primaryKeyCols.add(_elem360); + _elem368 = new SQLPrimaryKey(); + _elem368.read(iprot); + struct.primaryKeyCols.add(_elem368); } } 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..0429fd5dc1 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 _list378 = iprot.readListBegin(); + struct.uniqueConstraintCols = new ArrayList(_list378.size); + SQLUniqueConstraint _elem379; + for (int _i380 = 0; _i380 < _list378.size; ++_i380) { - _elem371 = new SQLUniqueConstraint(); - _elem371.read(iprot); - struct.uniqueConstraintCols.add(_elem371); + _elem379 = new SQLUniqueConstraint(); + _elem379.read(iprot); + struct.uniqueConstraintCols.add(_elem379); } 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 _iter381 : struct.uniqueConstraintCols) { - _iter373.write(oprot); + _iter381.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 _iter382 : struct.uniqueConstraintCols) { - _iter374.write(oprot); + _iter382.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 _list383 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.uniqueConstraintCols = new ArrayList(_list383.size); + SQLUniqueConstraint _elem384; + for (int _i385 = 0; _i385 < _list383.size; ++_i385) { - _elem376 = new SQLUniqueConstraint(); - _elem376.read(iprot); - struct.uniqueConstraintCols.add(_elem376); + _elem384 = new SQLUniqueConstraint(); + _elem384.read(iprot); + struct.uniqueConstraintCols.add(_elem384); } } struct.setUniqueConstraintColsIsSet(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 16e85cf25d..444dc0f452 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 _list706 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list706.size); - long _elem707; - for (int _i708 = 0; _i708 < _list706.size; ++_i708) + org.apache.thrift.protocol.TList _list722 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list722.size); + long _elem723; + for (int _i724 = 0; _i724 < _list722.size; ++_i724) { - _elem707 = iprot.readI64(); - struct.fileIds.add(_elem707); + _elem723 = iprot.readI64(); + struct.fileIds.add(_elem723); } 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 _iter709 : struct.fileIds) + for (long _iter725 : struct.fileIds) { - oprot.writeI64(_iter709); + oprot.writeI64(_iter725); } 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 _iter710 : struct.fileIds) + for (long _iter726 : struct.fileIds) { - oprot.writeI64(_iter710); + oprot.writeI64(_iter726); } } } @@ -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 _list711 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list711.size); - long _elem712; - for (int _i713 = 0; _i713 < _list711.size; ++_i713) + org.apache.thrift.protocol.TList _list727 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list727.size); + long _elem728; + for (int _i729 = 0; _i729 < _list727.size; ++_i729) { - _elem712 = iprot.readI64(); - struct.fileIds.add(_elem712); + _elem728 = iprot.readI64(); + struct.fileIds.add(_elem728); } } 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 816b61b899..82955de3e1 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 _list722 = iprot.readListBegin(); - struct.values = new ArrayList(_list722.size); - ClientCapability _elem723; - for (int _i724 = 0; _i724 < _list722.size; ++_i724) + org.apache.thrift.protocol.TList _list738 = iprot.readListBegin(); + struct.values = new ArrayList(_list738.size); + ClientCapability _elem739; + for (int _i740 = 0; _i740 < _list738.size; ++_i740) { - _elem723 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem723); + _elem739 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem739); } 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 _iter725 : struct.values) + for (ClientCapability _iter741 : struct.values) { - oprot.writeI32(_iter725.getValue()); + oprot.writeI32(_iter741.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 _iter726 : struct.values) + for (ClientCapability _iter742 : struct.values) { - oprot.writeI32(_iter726.getValue()); + oprot.writeI32(_iter742.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 _list727 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.values = new ArrayList(_list727.size); - ClientCapability _elem728; - for (int _i729 = 0; _i729 < _list727.size; ++_i729) + org.apache.thrift.protocol.TList _list743 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.values = new ArrayList(_list743.size); + ClientCapability _elem744; + for (int _i745 = 0; _i745 < _list743.size; ++_i745) { - _elem728 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem728); + _elem744 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem744); } } struct.setValuesIsSet(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..1afbbe66b2 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 _map604 = iprot.readMapBegin(); + struct.properties = new HashMap(2*_map604.size); + String _key605; + String _val606; + for (int _i607 = 0; _i607 < _map604.size; ++_i607) { - _key589 = iprot.readString(); - _val590 = iprot.readString(); - struct.properties.put(_key589, _val590); + _key605 = iprot.readString(); + _val606 = iprot.readString(); + struct.properties.put(_key605, _val606); } 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 _iter608 : struct.properties.entrySet()) { - oprot.writeString(_iter592.getKey()); - oprot.writeString(_iter592.getValue()); + oprot.writeString(_iter608.getKey()); + oprot.writeString(_iter608.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 _iter609 : struct.properties.entrySet()) { - oprot.writeString(_iter593.getKey()); - oprot.writeString(_iter593.getValue()); + oprot.writeString(_iter609.getKey()); + oprot.writeString(_iter609.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 _map610 = 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*_map610.size); + String _key611; + String _val612; + for (int _i613 = 0; _i613 < _map610.size; ++_i613) { - _key595 = iprot.readString(); - _val596 = iprot.readString(); - struct.properties.put(_key595, _val596); + _key611 = iprot.readString(); + _val612 = iprot.readString(); + struct.properties.put(_key611, _val612); } } struct.setPropertiesIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreationMetadata.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreationMetadata.java index 74cfce65a3..cb1376e1c3 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreationMetadata.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CreationMetadata.java @@ -619,13 +619,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, CreationMetadata st case 3: // TABLES_USED if (schemeField.type == org.apache.thrift.protocol.TType.SET) { { - org.apache.thrift.protocol.TSet _set614 = iprot.readSetBegin(); - struct.tablesUsed = new HashSet(2*_set614.size); - String _elem615; - for (int _i616 = 0; _i616 < _set614.size; ++_i616) + org.apache.thrift.protocol.TSet _set630 = iprot.readSetBegin(); + struct.tablesUsed = new HashSet(2*_set630.size); + String _elem631; + for (int _i632 = 0; _i632 < _set630.size; ++_i632) { - _elem615 = iprot.readString(); - struct.tablesUsed.add(_elem615); + _elem631 = iprot.readString(); + struct.tablesUsed.add(_elem631); } iprot.readSetEnd(); } @@ -669,9 +669,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, CreationMetadata s oprot.writeFieldBegin(TABLES_USED_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.tablesUsed.size())); - for (String _iter617 : struct.tablesUsed) + for (String _iter633 : struct.tablesUsed) { - oprot.writeString(_iter617); + oprot.writeString(_iter633); } oprot.writeSetEnd(); } @@ -705,9 +705,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, CreationMetadata st oprot.writeString(struct.tblName); { oprot.writeI32(struct.tablesUsed.size()); - for (String _iter618 : struct.tablesUsed) + for (String _iter634 : struct.tablesUsed) { - oprot.writeString(_iter618); + oprot.writeString(_iter634); } } BitSet optionals = new BitSet(); @@ -728,13 +728,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CreationMetadata str struct.tblName = iprot.readString(); struct.setTblNameIsSet(true); { - org.apache.thrift.protocol.TSet _set619 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tablesUsed = new HashSet(2*_set619.size); - String _elem620; - for (int _i621 = 0; _i621 < _set619.size; ++_i621) + org.apache.thrift.protocol.TSet _set635 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tablesUsed = new HashSet(2*_set635.size); + String _elem636; + for (int _i637 = 0; _i637 < _set635.size; ++_i637) { - _elem620 = iprot.readString(); - struct.tablesUsed.add(_elem620); + _elem636 = iprot.readString(); + struct.tablesUsed.add(_elem636); } } struct.setTablesUsedIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DefaultConstraintsRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DefaultConstraintsRequest.java new file mode 100644 index 0000000000..5f4954d2a7 --- /dev/null +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DefaultConstraintsRequest.java @@ -0,0 +1,490 @@ +/** + * 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 DefaultConstraintsRequest 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("DefaultConstraintsRequest"); + + 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 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 DefaultConstraintsRequestStandardSchemeFactory()); + schemes.put(TupleScheme.class, new DefaultConstraintsRequestTupleSchemeFactory()); + } + + private String db_name; // 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 { + DB_NAME((short)1, "db_name"), + TBL_NAME((short)2, "tbl_name"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(DefaultConstraintsRequest.class, metaDataMap); + } + + public DefaultConstraintsRequest() { + } + + public DefaultConstraintsRequest( + String db_name, + String tbl_name) + { + this(); + this.db_name = db_name; + this.tbl_name = tbl_name; + } + + /** + * Performs a deep copy on other. + */ + public DefaultConstraintsRequest(DefaultConstraintsRequest other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + } + + public DefaultConstraintsRequest deepCopy() { + return new DefaultConstraintsRequest(this); + } + + @Override + public void clear() { + this.db_name = null; + this.tbl_name = null; + } + + public String getDb_name() { + return this.db_name; + } + + public void setDb_name(String db_name) { + this.db_name = db_name; + } + + public void unsetDb_name() { + this.db_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 setDb_nameIsSet(boolean value) { + if (!value) { + this.db_name = 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 DB_NAME: + if (value == null) { + unsetDb_name(); + } else { + setDb_name((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 DB_NAME: + return getDb_name(); + + 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 DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof DefaultConstraintsRequest) + return this.equals((DefaultConstraintsRequest)that); + return false; + } + + public boolean equals(DefaultConstraintsRequest 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)) + return false; + if (!this.db_name.equals(that.db_name)) + 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_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); + + 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(DefaultConstraintsRequest 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()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + 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("DefaultConstraintsRequest("); + boolean first = true; + + sb.append("db_name:"); + if (this.db_name == null) { + sb.append("null"); + } else { + sb.append(this.db_name); + } + 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 + if (!isSetDb_name()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'db_name' is unset! Struct:" + toString()); + } + + if (!isSetTbl_name()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tbl_name' is unset! Struct:" + toString()); + } + + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class DefaultConstraintsRequestStandardSchemeFactory implements SchemeFactory { + public DefaultConstraintsRequestStandardScheme getScheme() { + return new DefaultConstraintsRequestStandardScheme(); + } + } + + private static class DefaultConstraintsRequestStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, DefaultConstraintsRequest struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // DB_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(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, DefaultConstraintsRequest 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); + 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 DefaultConstraintsRequestTupleSchemeFactory implements SchemeFactory { + public DefaultConstraintsRequestTupleScheme getScheme() { + return new DefaultConstraintsRequestTupleScheme(); + } + } + + private static class DefaultConstraintsRequestTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, DefaultConstraintsRequest struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeString(struct.db_name); + oprot.writeString(struct.tbl_name); + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, DefaultConstraintsRequest struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } + } + +} + diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DefaultConstraintsResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DefaultConstraintsResponse.java new file mode 100644 index 0000000000..22514de513 --- /dev/null +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DefaultConstraintsResponse.java @@ -0,0 +1,443 @@ +/** + * 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 DefaultConstraintsResponse 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("DefaultConstraintsResponse"); + + private static final org.apache.thrift.protocol.TField DEFAULT_CONSTRAINTS_FIELD_DESC = new org.apache.thrift.protocol.TField("defaultConstraints", org.apache.thrift.protocol.TType.LIST, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new DefaultConstraintsResponseStandardSchemeFactory()); + schemes.put(TupleScheme.class, new DefaultConstraintsResponseTupleSchemeFactory()); + } + + private List defaultConstraints; // 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 { + DEFAULT_CONSTRAINTS((short)1, "defaultConstraints"); + + 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: // DEFAULT_CONSTRAINTS + return DEFAULT_CONSTRAINTS; + 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.DEFAULT_CONSTRAINTS, new org.apache.thrift.meta_data.FieldMetaData("defaultConstraints", org.apache.thrift.TFieldRequirementType.REQUIRED, + 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, SQLDefaultConstraint.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(DefaultConstraintsResponse.class, metaDataMap); + } + + public DefaultConstraintsResponse() { + } + + public DefaultConstraintsResponse( + List defaultConstraints) + { + this(); + this.defaultConstraints = defaultConstraints; + } + + /** + * Performs a deep copy on other. + */ + public DefaultConstraintsResponse(DefaultConstraintsResponse other) { + if (other.isSetDefaultConstraints()) { + List __this__defaultConstraints = new ArrayList(other.defaultConstraints.size()); + for (SQLDefaultConstraint other_element : other.defaultConstraints) { + __this__defaultConstraints.add(new SQLDefaultConstraint(other_element)); + } + this.defaultConstraints = __this__defaultConstraints; + } + } + + public DefaultConstraintsResponse deepCopy() { + return new DefaultConstraintsResponse(this); + } + + @Override + public void clear() { + this.defaultConstraints = null; + } + + public int getDefaultConstraintsSize() { + return (this.defaultConstraints == null) ? 0 : this.defaultConstraints.size(); + } + + public java.util.Iterator getDefaultConstraintsIterator() { + return (this.defaultConstraints == null) ? null : this.defaultConstraints.iterator(); + } + + public void addToDefaultConstraints(SQLDefaultConstraint elem) { + if (this.defaultConstraints == null) { + this.defaultConstraints = new ArrayList(); + } + this.defaultConstraints.add(elem); + } + + public List getDefaultConstraints() { + return this.defaultConstraints; + } + + public void setDefaultConstraints(List defaultConstraints) { + this.defaultConstraints = defaultConstraints; + } + + public void unsetDefaultConstraints() { + this.defaultConstraints = null; + } + + /** Returns true if field defaultConstraints is set (has been assigned a value) and false otherwise */ + public boolean isSetDefaultConstraints() { + return this.defaultConstraints != null; + } + + public void setDefaultConstraintsIsSet(boolean value) { + if (!value) { + this.defaultConstraints = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case DEFAULT_CONSTRAINTS: + if (value == null) { + unsetDefaultConstraints(); + } else { + setDefaultConstraints((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case DEFAULT_CONSTRAINTS: + return getDefaultConstraints(); + + } + 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 DEFAULT_CONSTRAINTS: + return isSetDefaultConstraints(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof DefaultConstraintsResponse) + return this.equals((DefaultConstraintsResponse)that); + return false; + } + + public boolean equals(DefaultConstraintsResponse that) { + if (that == null) + return false; + + boolean this_present_defaultConstraints = true && this.isSetDefaultConstraints(); + boolean that_present_defaultConstraints = true && that.isSetDefaultConstraints(); + if (this_present_defaultConstraints || that_present_defaultConstraints) { + if (!(this_present_defaultConstraints && that_present_defaultConstraints)) + return false; + if (!this.defaultConstraints.equals(that.defaultConstraints)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_defaultConstraints = true && (isSetDefaultConstraints()); + list.add(present_defaultConstraints); + if (present_defaultConstraints) + list.add(defaultConstraints); + + return list.hashCode(); + } + + @Override + public int compareTo(DefaultConstraintsResponse other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetDefaultConstraints()).compareTo(other.isSetDefaultConstraints()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDefaultConstraints()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultConstraints, other.defaultConstraints); + 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("DefaultConstraintsResponse("); + boolean first = true; + + sb.append("defaultConstraints:"); + if (this.defaultConstraints == null) { + sb.append("null"); + } else { + sb.append(this.defaultConstraints); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetDefaultConstraints()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'defaultConstraints' is unset! Struct:" + toString()); + } + + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class DefaultConstraintsResponseStandardSchemeFactory implements SchemeFactory { + public DefaultConstraintsResponseStandardScheme getScheme() { + return new DefaultConstraintsResponseStandardScheme(); + } + } + + private static class DefaultConstraintsResponseStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, DefaultConstraintsResponse 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: // DEFAULT_CONSTRAINTS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list354 = iprot.readListBegin(); + struct.defaultConstraints = new ArrayList(_list354.size); + SQLDefaultConstraint _elem355; + for (int _i356 = 0; _i356 < _list354.size; ++_i356) + { + _elem355 = new SQLDefaultConstraint(); + _elem355.read(iprot); + struct.defaultConstraints.add(_elem355); + } + iprot.readListEnd(); + } + struct.setDefaultConstraintsIsSet(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, DefaultConstraintsResponse struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.defaultConstraints != null) { + oprot.writeFieldBegin(DEFAULT_CONSTRAINTS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.defaultConstraints.size())); + for (SQLDefaultConstraint _iter357 : struct.defaultConstraints) + { + _iter357.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class DefaultConstraintsResponseTupleSchemeFactory implements SchemeFactory { + public DefaultConstraintsResponseTupleScheme getScheme() { + return new DefaultConstraintsResponseTupleScheme(); + } + } + + private static class DefaultConstraintsResponseTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, DefaultConstraintsResponse struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + { + oprot.writeI32(struct.defaultConstraints.size()); + for (SQLDefaultConstraint _iter358 : struct.defaultConstraints) + { + _iter358.write(oprot); + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, DefaultConstraintsResponse 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.defaultConstraints = new ArrayList(_list359.size); + SQLDefaultConstraint _elem360; + for (int _i361 = 0; _i361 < _list359.size; ++_i361) + { + _elem360 = new SQLDefaultConstraint(); + _elem360.read(iprot); + struct.defaultConstraints.add(_elem360); + } + } + struct.setDefaultConstraintsIsSet(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..daf87c559f 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 _list476 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list476.size); + Partition _elem477; + for (int _i478 = 0; _i478 < _list476.size; ++_i478) { - _elem461 = new Partition(); - _elem461.read(iprot); - struct.partitions.add(_elem461); + _elem477 = new Partition(); + _elem477.read(iprot); + struct.partitions.add(_elem477); } 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 _iter479 : struct.partitions) { - _iter463.write(oprot); + _iter479.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 _iter480 : struct.partitions) { - _iter464.write(oprot); + _iter480.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 _list481 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list481.size); + Partition _elem482; + for (int _i483 = 0; _i483 < _list481.size; ++_i483) { - _elem466 = new Partition(); - _elem466.read(iprot); - struct.partitions.add(_elem466); + _elem482 = new Partition(); + _elem482.read(iprot); + struct.partitions.add(_elem482); } } struct.setPartitionsIsSet(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 7cc201b64f..bac7cc55e0 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 _list646 = iprot.readListBegin(); - struct.partitionVals = new ArrayList(_list646.size); - String _elem647; - for (int _i648 = 0; _i648 < _list646.size; ++_i648) + org.apache.thrift.protocol.TList _list662 = iprot.readListBegin(); + struct.partitionVals = new ArrayList(_list662.size); + String _elem663; + for (int _i664 = 0; _i664 < _list662.size; ++_i664) { - _elem647 = iprot.readString(); - struct.partitionVals.add(_elem647); + _elem663 = iprot.readString(); + struct.partitionVals.add(_elem663); } 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 _iter649 : struct.partitionVals) + for (String _iter665 : struct.partitionVals) { - oprot.writeString(_iter649); + oprot.writeString(_iter665); } 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 _iter650 : struct.partitionVals) + for (String _iter666 : struct.partitionVals) { - oprot.writeString(_iter650); + oprot.writeString(_iter666); } } } @@ -843,13 +843,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, FireEventRequest str } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list651 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionVals = new ArrayList(_list651.size); - String _elem652; - for (int _i653 = 0; _i653 < _list651.size; ++_i653) + org.apache.thrift.protocol.TList _list667 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionVals = new ArrayList(_list667.size); + String _elem668; + for (int _i669 = 0; _i669 < _list667.size; ++_i669) { - _elem652 = iprot.readString(); - struct.partitionVals.add(_elem652); + _elem668 = iprot.readString(); + struct.partitionVals.add(_elem668); } } struct.setPartitionValsIsSet(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..32e94cc821 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 _list532 = iprot.readListBegin(); + struct.resourceUris = new ArrayList(_list532.size); + ResourceUri _elem533; + for (int _i534 = 0; _i534 < _list532.size; ++_i534) { - _elem517 = new ResourceUri(); - _elem517.read(iprot); - struct.resourceUris.add(_elem517); + _elem533 = new ResourceUri(); + _elem533.read(iprot); + struct.resourceUris.add(_elem533); } 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 _iter535 : struct.resourceUris) { - _iter519.write(oprot); + _iter535.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 _iter536 : struct.resourceUris) { - _iter520.write(oprot); + _iter536.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 _list537 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.resourceUris = new ArrayList(_list537.size); + ResourceUri _elem538; + for (int _i539 = 0; _i539 < _list537.size; ++_i539) { - _elem522 = new ResourceUri(); - _elem522.read(iprot); - struct.resourceUris.add(_elem522); + _elem538 = new ResourceUri(); + _elem538.read(iprot); + struct.resourceUris.add(_elem538); } } 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 2b4883deec..4a7674ea6b 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 _list714 = iprot.readListBegin(); - struct.functions = new ArrayList(_list714.size); - Function _elem715; - for (int _i716 = 0; _i716 < _list714.size; ++_i716) + org.apache.thrift.protocol.TList _list730 = iprot.readListBegin(); + struct.functions = new ArrayList(_list730.size); + Function _elem731; + for (int _i732 = 0; _i732 < _list730.size; ++_i732) { - _elem715 = new Function(); - _elem715.read(iprot); - struct.functions.add(_elem715); + _elem731 = new Function(); + _elem731.read(iprot); + struct.functions.add(_elem731); } 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 _iter717 : struct.functions) + for (Function _iter733 : struct.functions) { - _iter717.write(oprot); + _iter733.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 _iter718 : struct.functions) + for (Function _iter734 : struct.functions) { - _iter718.write(oprot); + _iter734.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 _list719 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.functions = new ArrayList(_list719.size); - Function _elem720; - for (int _i721 = 0; _i721 < _list719.size; ++_i721) + org.apache.thrift.protocol.TList _list735 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.functions = new ArrayList(_list735.size); + Function _elem736; + for (int _i737 = 0; _i737 < _list735.size; ++_i737) { - _elem720 = new Function(); - _elem720.read(iprot); - struct.functions.add(_elem720); + _elem736 = new Function(); + _elem736.read(iprot); + struct.functions.add(_elem736); } } 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 5a371c405b..54bdfa3690 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 _list664 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list664.size); - long _elem665; - for (int _i666 = 0; _i666 < _list664.size; ++_i666) + org.apache.thrift.protocol.TList _list680 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list680.size); + long _elem681; + for (int _i682 = 0; _i682 < _list680.size; ++_i682) { - _elem665 = iprot.readI64(); - struct.fileIds.add(_elem665); + _elem681 = iprot.readI64(); + struct.fileIds.add(_elem681); } 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 _iter667 : struct.fileIds) + for (long _iter683 : struct.fileIds) { - oprot.writeI64(_iter667); + oprot.writeI64(_iter683); } 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 _iter668 : struct.fileIds) + for (long _iter684 : struct.fileIds) { - oprot.writeI64(_iter668); + oprot.writeI64(_iter684); } } 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 _list669 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list669.size); - long _elem670; - for (int _i671 = 0; _i671 < _list669.size; ++_i671) + org.apache.thrift.protocol.TList _list685 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list685.size); + long _elem686; + for (int _i687 = 0; _i687 < _list685.size; ++_i687) { - _elem670 = iprot.readI64(); - struct.fileIds.add(_elem670); + _elem686 = iprot.readI64(); + struct.fileIds.add(_elem686); } } 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 6eb6eee6e3..8f343e732a 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 _map654 = iprot.readMapBegin(); - struct.metadata = new HashMap(2*_map654.size); - long _key655; - MetadataPpdResult _val656; - for (int _i657 = 0; _i657 < _map654.size; ++_i657) + org.apache.thrift.protocol.TMap _map670 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map670.size); + long _key671; + MetadataPpdResult _val672; + for (int _i673 = 0; _i673 < _map670.size; ++_i673) { - _key655 = iprot.readI64(); - _val656 = new MetadataPpdResult(); - _val656.read(iprot); - struct.metadata.put(_key655, _val656); + _key671 = iprot.readI64(); + _val672 = new MetadataPpdResult(); + _val672.read(iprot); + struct.metadata.put(_key671, _val672); } 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 _iter658 : struct.metadata.entrySet()) + for (Map.Entry _iter674 : struct.metadata.entrySet()) { - oprot.writeI64(_iter658.getKey()); - _iter658.getValue().write(oprot); + oprot.writeI64(_iter674.getKey()); + _iter674.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 _iter659 : struct.metadata.entrySet()) + for (Map.Entry _iter675 : struct.metadata.entrySet()) { - oprot.writeI64(_iter659.getKey()); - _iter659.getValue().write(oprot); + oprot.writeI64(_iter675.getKey()); + _iter675.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 _map660 = 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*_map660.size); - long _key661; - MetadataPpdResult _val662; - for (int _i663 = 0; _i663 < _map660.size; ++_i663) + org.apache.thrift.protocol.TMap _map676 = 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*_map676.size); + long _key677; + MetadataPpdResult _val678; + for (int _i679 = 0; _i679 < _map676.size; ++_i679) { - _key661 = iprot.readI64(); - _val662 = new MetadataPpdResult(); - _val662.read(iprot); - struct.metadata.put(_key661, _val662); + _key677 = iprot.readI64(); + _val678 = new MetadataPpdResult(); + _val678.read(iprot); + struct.metadata.put(_key677, _val678); } } 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 04043580d6..effe56e089 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 _list682 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list682.size); - long _elem683; - for (int _i684 = 0; _i684 < _list682.size; ++_i684) + org.apache.thrift.protocol.TList _list698 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list698.size); + long _elem699; + for (int _i700 = 0; _i700 < _list698.size; ++_i700) { - _elem683 = iprot.readI64(); - struct.fileIds.add(_elem683); + _elem699 = iprot.readI64(); + struct.fileIds.add(_elem699); } 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 _iter685 : struct.fileIds) + for (long _iter701 : struct.fileIds) { - oprot.writeI64(_iter685); + oprot.writeI64(_iter701); } 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 _iter686 : struct.fileIds) + for (long _iter702 : struct.fileIds) { - oprot.writeI64(_iter686); + oprot.writeI64(_iter702); } } } @@ -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 _list687 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list687.size); - long _elem688; - for (int _i689 = 0; _i689 < _list687.size; ++_i689) + 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) { - _elem688 = iprot.readI64(); - struct.fileIds.add(_elem688); + _elem704 = iprot.readI64(); + struct.fileIds.add(_elem704); } } 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 38588905c6..8be1e1c176 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 _map672 = iprot.readMapBegin(); - struct.metadata = new HashMap(2*_map672.size); - long _key673; - ByteBuffer _val674; - for (int _i675 = 0; _i675 < _map672.size; ++_i675) + org.apache.thrift.protocol.TMap _map688 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map688.size); + long _key689; + ByteBuffer _val690; + for (int _i691 = 0; _i691 < _map688.size; ++_i691) { - _key673 = iprot.readI64(); - _val674 = iprot.readBinary(); - struct.metadata.put(_key673, _val674); + _key689 = iprot.readI64(); + _val690 = iprot.readBinary(); + struct.metadata.put(_key689, _val690); } 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 _iter676 : struct.metadata.entrySet()) + for (Map.Entry _iter692 : struct.metadata.entrySet()) { - oprot.writeI64(_iter676.getKey()); - oprot.writeBinary(_iter676.getValue()); + oprot.writeI64(_iter692.getKey()); + oprot.writeBinary(_iter692.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 _iter677 : struct.metadata.entrySet()) + for (Map.Entry _iter693 : struct.metadata.entrySet()) { - oprot.writeI64(_iter677.getKey()); - oprot.writeBinary(_iter677.getValue()); + oprot.writeI64(_iter693.getKey()); + oprot.writeBinary(_iter693.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 _map678 = 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*_map678.size); - long _key679; - ByteBuffer _val680; - for (int _i681 = 0; _i681 < _map678.size; ++_i681) + org.apache.thrift.protocol.TMap _map694 = 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*_map694.size); + long _key695; + ByteBuffer _val696; + for (int _i697 = 0; _i697 < _map694.size; ++_i697) { - _key679 = iprot.readI64(); - _val680 = iprot.readBinary(); - struct.metadata.put(_key679, _val680); + _key695 = iprot.readI64(); + _val696 = iprot.readBinary(); + struct.metadata.put(_key695, _val696); } } 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..ede4b7e0c1 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 _list540 = iprot.readListBegin(); + struct.open_txns = new ArrayList(_list540.size); + TxnInfo _elem541; + for (int _i542 = 0; _i542 < _list540.size; ++_i542) { - _elem525 = new TxnInfo(); - _elem525.read(iprot); - struct.open_txns.add(_elem525); + _elem541 = new TxnInfo(); + _elem541.read(iprot); + struct.open_txns.add(_elem541); } 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 _iter543 : struct.open_txns) { - _iter527.write(oprot); + _iter543.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 _iter544 : struct.open_txns) { - _iter528.write(oprot); + _iter544.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 _list545 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.open_txns = new ArrayList(_list545.size); + TxnInfo _elem546; + for (int _i547 = 0; _i547 < _list545.size; ++_i547) { - _elem530 = new TxnInfo(); - _elem530.read(iprot); - struct.open_txns.add(_elem530); + _elem546 = new TxnInfo(); + _elem546.read(iprot); + struct.open_txns.add(_elem546); } } 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..9c6bcb740f 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 _list548 = iprot.readListBegin(); + struct.open_txns = new ArrayList(_list548.size); + long _elem549; + for (int _i550 = 0; _i550 < _list548.size; ++_i550) { - _elem533 = iprot.readI64(); - struct.open_txns.add(_elem533); + _elem549 = iprot.readI64(); + struct.open_txns.add(_elem549); } 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 _iter551 : struct.open_txns) { - oprot.writeI64(_iter535); + oprot.writeI64(_iter551); } 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 _iter552 : struct.open_txns) { - oprot.writeI64(_iter536); + oprot.writeI64(_iter552); } } 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 _list553 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.open_txns = new ArrayList(_list553.size); + long _elem554; + for (int _i555 = 0; _i555 < _list553.size; ++_i555) { - _elem538 = iprot.readI64(); - struct.open_txns.add(_elem538); + _elem554 = iprot.readI64(); + struct.open_txns.add(_elem554); } } 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 680ce86a9a..175691aa95 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 _list730 = iprot.readListBegin(); - struct.tblNames = new ArrayList(_list730.size); - String _elem731; - for (int _i732 = 0; _i732 < _list730.size; ++_i732) + org.apache.thrift.protocol.TList _list746 = iprot.readListBegin(); + struct.tblNames = new ArrayList(_list746.size); + String _elem747; + for (int _i748 = 0; _i748 < _list746.size; ++_i748) { - _elem731 = iprot.readString(); - struct.tblNames.add(_elem731); + _elem747 = iprot.readString(); + struct.tblNames.add(_elem747); } 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 _iter733 : struct.tblNames) + for (String _iter749 : struct.tblNames) { - oprot.writeString(_iter733); + oprot.writeString(_iter749); } 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 _iter734 : struct.tblNames) + for (String _iter750 : struct.tblNames) { - oprot.writeString(_iter734); + oprot.writeString(_iter750); } } } @@ -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 _list735 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tblNames = new ArrayList(_list735.size); - String _elem736; - for (int _i737 = 0; _i737 < _list735.size; ++_i737) + org.apache.thrift.protocol.TList _list751 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tblNames = new ArrayList(_list751.size); + String _elem752; + for (int _i753 = 0; _i753 < _list751.size; ++_i753) { - _elem736 = iprot.readString(); - struct.tblNames.add(_elem736); + _elem752 = iprot.readString(); + struct.tblNames.add(_elem752); } } 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 ccd85c4904..97e11f8321 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 _list738 = iprot.readListBegin(); - struct.tables = new ArrayList
(_list738.size); - Table _elem739; - for (int _i740 = 0; _i740 < _list738.size; ++_i740) + org.apache.thrift.protocol.TList _list754 = iprot.readListBegin(); + struct.tables = new ArrayList
(_list754.size); + Table _elem755; + for (int _i756 = 0; _i756 < _list754.size; ++_i756) { - _elem739 = new Table(); - _elem739.read(iprot); - struct.tables.add(_elem739); + _elem755 = new Table(); + _elem755.read(iprot); + struct.tables.add(_elem755); } 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 _iter741 : struct.tables) + for (Table _iter757 : struct.tables) { - _iter741.write(oprot); + _iter757.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 _iter742 : struct.tables) + for (Table _iter758 : struct.tables) { - _iter742.write(oprot); + _iter758.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 _list743 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tables = new ArrayList
(_list743.size); - Table _elem744; - for (int _i745 = 0; _i745 < _list743.size; ++_i745) + org.apache.thrift.protocol.TList _list759 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tables = new ArrayList
(_list759.size); + Table _elem760; + for (int _i761 = 0; _i761 < _list759.size; ++_i761) { - _elem744 = new Table(); - _elem744.read(iprot); - struct.tables.add(_elem744); + _elem760 = new Table(); + _elem760.read(iprot); + struct.tables.add(_elem760); } } 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..ff0f8c7342 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 _set588 = iprot.readSetBegin(); + struct.aborted = new HashSet(2*_set588.size); + long _elem589; + for (int _i590 = 0; _i590 < _set588.size; ++_i590) { - _elem573 = iprot.readI64(); - struct.aborted.add(_elem573); + _elem589 = iprot.readI64(); + struct.aborted.add(_elem589); } 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 _set591 = iprot.readSetBegin(); + struct.nosuch = new HashSet(2*_set591.size); + long _elem592; + for (int _i593 = 0; _i593 < _set591.size; ++_i593) { - _elem576 = iprot.readI64(); - struct.nosuch.add(_elem576); + _elem592 = iprot.readI64(); + struct.nosuch.add(_elem592); } 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 _iter594 : struct.aborted) { - oprot.writeI64(_iter578); + oprot.writeI64(_iter594); } 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 _iter595 : struct.nosuch) { - oprot.writeI64(_iter579); + oprot.writeI64(_iter595); } 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 _iter596 : struct.aborted) { - oprot.writeI64(_iter580); + oprot.writeI64(_iter596); } } { oprot.writeI32(struct.nosuch.size()); - for (long _iter581 : struct.nosuch) + for (long _iter597 : struct.nosuch) { - oprot.writeI64(_iter581); + oprot.writeI64(_iter597); } } } @@ -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 _set598 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.aborted = new HashSet(2*_set598.size); + long _elem599; + for (int _i600 = 0; _i600 < _set598.size; ++_i600) { - _elem583 = iprot.readI64(); - struct.aborted.add(_elem583); + _elem599 = iprot.readI64(); + struct.aborted.add(_elem599); } } 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 _set601 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.nosuch = new HashSet(2*_set601.size); + long _elem602; + for (int _i603 = 0; _i603 < _set601.size; ++_i603) { - _elem586 = iprot.readI64(); - struct.nosuch.add(_elem586); + _elem602 = iprot.readI64(); + struct.nosuch.add(_elem602); } } struct.setNosuchIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java index e23bc04801..751e92bd08 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 _list630 = iprot.readListBegin(); - struct.filesAdded = new ArrayList(_list630.size); - String _elem631; - for (int _i632 = 0; _i632 < _list630.size; ++_i632) + org.apache.thrift.protocol.TList _list646 = iprot.readListBegin(); + struct.filesAdded = new ArrayList(_list646.size); + String _elem647; + for (int _i648 = 0; _i648 < _list646.size; ++_i648) { - _elem631 = iprot.readString(); - struct.filesAdded.add(_elem631); + _elem647 = iprot.readString(); + struct.filesAdded.add(_elem647); } 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 _list633 = iprot.readListBegin(); - struct.filesAddedChecksum = new ArrayList(_list633.size); - String _elem634; - for (int _i635 = 0; _i635 < _list633.size; ++_i635) + org.apache.thrift.protocol.TList _list649 = iprot.readListBegin(); + struct.filesAddedChecksum = new ArrayList(_list649.size); + String _elem650; + for (int _i651 = 0; _i651 < _list649.size; ++_i651) { - _elem634 = iprot.readString(); - struct.filesAddedChecksum.add(_elem634); + _elem650 = iprot.readString(); + struct.filesAddedChecksum.add(_elem650); } 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 _iter636 : struct.filesAdded) + for (String _iter652 : struct.filesAdded) { - oprot.writeString(_iter636); + oprot.writeString(_iter652); } 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 _iter637 : struct.filesAddedChecksum) + for (String _iter653 : struct.filesAddedChecksum) { - oprot.writeString(_iter637); + oprot.writeString(_iter653); } 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 _iter638 : struct.filesAdded) + for (String _iter654 : struct.filesAdded) { - oprot.writeString(_iter638); + oprot.writeString(_iter654); } } 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 _iter639 : struct.filesAddedChecksum) + for (String _iter655 : struct.filesAddedChecksum) { - oprot.writeString(_iter639); + oprot.writeString(_iter655); } } } @@ -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 _list640 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filesAdded = new ArrayList(_list640.size); - String _elem641; - for (int _i642 = 0; _i642 < _list640.size; ++_i642) + org.apache.thrift.protocol.TList _list656 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filesAdded = new ArrayList(_list656.size); + String _elem657; + for (int _i658 = 0; _i658 < _list656.size; ++_i658) { - _elem641 = iprot.readString(); - struct.filesAdded.add(_elem641); + _elem657 = iprot.readString(); + struct.filesAdded.add(_elem657); } } 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 _list643 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filesAddedChecksum = new ArrayList(_list643.size); - String _elem644; - for (int _i645 = 0; _i645 < _list643.size; ++_i645) + org.apache.thrift.protocol.TList _list659 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filesAddedChecksum = new ArrayList(_list659.size); + String _elem660; + for (int _i661 = 0; _i661 < _list659.size; ++_i661) { - _elem644 = iprot.readString(); - struct.filesAddedChecksum.add(_elem644); + _elem660 = iprot.readString(); + struct.filesAddedChecksum.add(_elem660); } } 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..49a2981cbe 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 _list572 = iprot.readListBegin(); + struct.component = new ArrayList(_list572.size); + LockComponent _elem573; + for (int _i574 = 0; _i574 < _list572.size; ++_i574) { - _elem557 = new LockComponent(); - _elem557.read(iprot); - struct.component.add(_elem557); + _elem573 = new LockComponent(); + _elem573.read(iprot); + struct.component.add(_elem573); } 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 _iter575 : struct.component) { - _iter559.write(oprot); + _iter575.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 _iter576 : struct.component) { - _iter560.write(oprot); + _iter576.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 _list577 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.component = new ArrayList(_list577.size); + LockComponent _elem578; + for (int _i579 = 0; _i579 < _list577.size; ++_i579) { - _elem562 = new LockComponent(); - _elem562.read(iprot); - struct.component.add(_elem562); + _elem578 = new LockComponent(); + _elem578.read(iprot); + struct.component.add(_elem578); } } struct.setComponentIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Materialization.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Materialization.java index ccef0244be..95df961380 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Materialization.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Materialization.java @@ -518,13 +518,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Materialization str case 1: // TABLES_USED if (schemeField.type == org.apache.thrift.protocol.TType.SET) { { - org.apache.thrift.protocol.TSet _set746 = iprot.readSetBegin(); - struct.tablesUsed = new HashSet(2*_set746.size); - String _elem747; - for (int _i748 = 0; _i748 < _set746.size; ++_i748) + org.apache.thrift.protocol.TSet _set762 = iprot.readSetBegin(); + struct.tablesUsed = new HashSet(2*_set762.size); + String _elem763; + for (int _i764 = 0; _i764 < _set762.size; ++_i764) { - _elem747 = iprot.readString(); - struct.tablesUsed.add(_elem747); + _elem763 = iprot.readString(); + struct.tablesUsed.add(_elem763); } iprot.readSetEnd(); } @@ -566,9 +566,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Materialization st oprot.writeFieldBegin(TABLES_USED_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.tablesUsed.size())); - for (String _iter749 : struct.tablesUsed) + for (String _iter765 : struct.tablesUsed) { - oprot.writeString(_iter749); + oprot.writeString(_iter765); } oprot.writeSetEnd(); } @@ -603,9 +603,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Materialization str TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.tablesUsed.size()); - for (String _iter750 : struct.tablesUsed) + for (String _iter766 : struct.tablesUsed) { - oprot.writeString(_iter750); + oprot.writeString(_iter766); } } oprot.writeI64(struct.invalidationTime); @@ -623,13 +623,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Materialization str public void read(org.apache.thrift.protocol.TProtocol prot, Materialization struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TSet _set751 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tablesUsed = new HashSet(2*_set751.size); - String _elem752; - for (int _i753 = 0; _i753 < _set751.size; ++_i753) + org.apache.thrift.protocol.TSet _set767 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tablesUsed = new HashSet(2*_set767.size); + String _elem768; + for (int _i769 = 0; _i769 < _set767.size; ++_i769) { - _elem752 = iprot.readString(); - struct.tablesUsed.add(_elem752); + _elem768 = iprot.readString(); + struct.tablesUsed.add(_elem768); } } struct.setTablesUsedIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java index a28350bc2b..79c667bda9 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 _list622 = iprot.readListBegin(); - struct.events = new ArrayList(_list622.size); - NotificationEvent _elem623; - for (int _i624 = 0; _i624 < _list622.size; ++_i624) + org.apache.thrift.protocol.TList _list638 = iprot.readListBegin(); + struct.events = new ArrayList(_list638.size); + NotificationEvent _elem639; + for (int _i640 = 0; _i640 < _list638.size; ++_i640) { - _elem623 = new NotificationEvent(); - _elem623.read(iprot); - struct.events.add(_elem623); + _elem639 = new NotificationEvent(); + _elem639.read(iprot); + struct.events.add(_elem639); } 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 _iter625 : struct.events) + for (NotificationEvent _iter641 : struct.events) { - _iter625.write(oprot); + _iter641.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 _iter626 : struct.events) + for (NotificationEvent _iter642 : struct.events) { - _iter626.write(oprot); + _iter642.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 _list627 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.events = new ArrayList(_list627.size); - NotificationEvent _elem628; - for (int _i629 = 0; _i629 < _list627.size; ++_i629) + org.apache.thrift.protocol.TList _list643 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.events = new ArrayList(_list643.size); + NotificationEvent _elem644; + for (int _i645 = 0; _i645 < _list643.size; ++_i645) { - _elem628 = new NotificationEvent(); - _elem628.read(iprot); - struct.events.add(_elem628); + _elem644 = new NotificationEvent(); + _elem644.read(iprot); + struct.events.add(_elem644); } } 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..672c6886c4 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 _list556 = iprot.readListBegin(); + struct.txn_ids = new ArrayList(_list556.size); + long _elem557; + for (int _i558 = 0; _i558 < _list556.size; ++_i558) { - _elem541 = iprot.readI64(); - struct.txn_ids.add(_elem541); + _elem557 = iprot.readI64(); + struct.txn_ids.add(_elem557); } 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 _iter559 : struct.txn_ids) { - oprot.writeI64(_iter543); + oprot.writeI64(_iter559); } 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 _iter560 : struct.txn_ids) { - oprot.writeI64(_iter544); + oprot.writeI64(_iter560); } } } @@ -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 _list561 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txn_ids = new ArrayList(_list561.size); + long _elem562; + for (int _i563 = 0; _i563 < _list561.size; ++_i563) { - _elem546 = iprot.readI64(); - struct.txn_ids.add(_elem546); + _elem562 = iprot.readI64(); + struct.txn_ids.add(_elem562); } } struct.setTxn_idsIsSet(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..93a5034606 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 _list500 = iprot.readListBegin(); + struct.partitionKeys = new ArrayList(_list500.size); + FieldSchema _elem501; + for (int _i502 = 0; _i502 < _list500.size; ++_i502) { - _elem485 = new FieldSchema(); - _elem485.read(iprot); - struct.partitionKeys.add(_elem485); + _elem501 = new FieldSchema(); + _elem501.read(iprot); + struct.partitionKeys.add(_elem501); } 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 _list503 = iprot.readListBegin(); + struct.partitionOrder = new ArrayList(_list503.size); + FieldSchema _elem504; + for (int _i505 = 0; _i505 < _list503.size; ++_i505) { - _elem488 = new FieldSchema(); - _elem488.read(iprot); - struct.partitionOrder.add(_elem488); + _elem504 = new FieldSchema(); + _elem504.read(iprot); + struct.partitionOrder.add(_elem504); } 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 _iter506 : struct.partitionKeys) { - _iter490.write(oprot); + _iter506.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 _iter507 : struct.partitionOrder) { - _iter491.write(oprot); + _iter507.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 _iter508 : struct.partitionKeys) { - _iter492.write(oprot); + _iter508.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 _iter509 : struct.partitionOrder) { - _iter493.write(oprot); + _iter509.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 _list510 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitionKeys = new ArrayList(_list510.size); + FieldSchema _elem511; + for (int _i512 = 0; _i512 < _list510.size; ++_i512) { - _elem495 = new FieldSchema(); - _elem495.read(iprot); - struct.partitionKeys.add(_elem495); + _elem511 = new FieldSchema(); + _elem511.read(iprot); + struct.partitionKeys.add(_elem511); } } 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 _list513 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitionOrder = new ArrayList(_list513.size); + FieldSchema _elem514; + for (int _i515 = 0; _i515 < _list513.size; ++_i515) { - _elem498 = new FieldSchema(); - _elem498.read(iprot); - struct.partitionOrder.add(_elem498); + _elem514 = new FieldSchema(); + _elem514.read(iprot); + struct.partitionOrder.add(_elem514); } } 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..e1e0de4dca 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 _list524 = iprot.readListBegin(); + struct.partitionValues = new ArrayList(_list524.size); + PartitionValuesRow _elem525; + for (int _i526 = 0; _i526 < _list524.size; ++_i526) { - _elem509 = new PartitionValuesRow(); - _elem509.read(iprot); - struct.partitionValues.add(_elem509); + _elem525 = new PartitionValuesRow(); + _elem525.read(iprot); + struct.partitionValues.add(_elem525); } 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 _iter527 : struct.partitionValues) { - _iter511.write(oprot); + _iter527.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 _iter528 : struct.partitionValues) { - _iter512.write(oprot); + _iter528.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 _list529 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitionValues = new ArrayList(_list529.size); + PartitionValuesRow _elem530; + for (int _i531 = 0; _i531 < _list529.size; ++_i531) { - _elem514 = new PartitionValuesRow(); - _elem514.read(iprot); - struct.partitionValues.add(_elem514); + _elem530 = new PartitionValuesRow(); + _elem530.read(iprot); + struct.partitionValues.add(_elem530); } } 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..e39063f71b 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 _list516 = iprot.readListBegin(); + struct.row = new ArrayList(_list516.size); + String _elem517; + for (int _i518 = 0; _i518 < _list516.size; ++_i518) { - _elem501 = iprot.readString(); - struct.row.add(_elem501); + _elem517 = iprot.readString(); + struct.row.add(_elem517); } 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 _iter519 : struct.row) { - oprot.writeString(_iter503); + oprot.writeString(_iter519); } 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 _iter520 : struct.row) { - oprot.writeString(_iter504); + oprot.writeString(_iter520); } } } @@ -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 _list521 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.row = new ArrayList(_list521.size); + String _elem522; + for (int _i523 = 0; _i523 < _list521.size; ++_i523) { - _elem506 = iprot.readString(); - struct.row.add(_elem506); + _elem522 = iprot.readString(); + struct.row.add(_elem522); } } struct.setRowIsSet(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..1069accfb3 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 _list402 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list402.size); + Partition _elem403; + for (int _i404 = 0; _i404 < _list402.size; ++_i404) { - _elem387 = new Partition(); - _elem387.read(iprot); - struct.partitions.add(_elem387); + _elem403 = new Partition(); + _elem403.read(iprot); + struct.partitions.add(_elem403); } 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 _iter405 : struct.partitions) { - _iter389.write(oprot); + _iter405.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 _iter406 : struct.partitions) { - _iter390.write(oprot); + _iter406.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 _list407 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list407.size); + Partition _elem408; + for (int _i409 = 0; _i409 < _list407.size; ++_i409) { - _elem392 = new Partition(); - _elem392.read(iprot); - struct.partitions.add(_elem392); + _elem408 = new Partition(); + _elem408.read(iprot); + struct.partitions.add(_elem408); } } 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..1de1233336 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 _list444 = iprot.readListBegin(); + struct.colNames = new ArrayList(_list444.size); + String _elem445; + for (int _i446 = 0; _i446 < _list444.size; ++_i446) { - _elem429 = iprot.readString(); - struct.colNames.add(_elem429); + _elem445 = iprot.readString(); + struct.colNames.add(_elem445); } 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 _list447 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list447.size); + String _elem448; + for (int _i449 = 0; _i449 < _list447.size; ++_i449) { - _elem432 = iprot.readString(); - struct.partNames.add(_elem432); + _elem448 = iprot.readString(); + struct.partNames.add(_elem448); } 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 _iter450 : struct.colNames) { - oprot.writeString(_iter434); + oprot.writeString(_iter450); } 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 _iter451 : struct.partNames) { - oprot.writeString(_iter435); + oprot.writeString(_iter451); } 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 _iter452 : struct.colNames) { - oprot.writeString(_iter436); + oprot.writeString(_iter452); } } { oprot.writeI32(struct.partNames.size()); - for (String _iter437 : struct.partNames) + for (String _iter453 : struct.partNames) { - oprot.writeString(_iter437); + oprot.writeString(_iter453); } } } @@ -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 _list454 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.colNames = new ArrayList(_list454.size); + String _elem455; + for (int _i456 = 0; _i456 < _list454.size; ++_i456) { - _elem439 = iprot.readString(); - struct.colNames.add(_elem439); + _elem455 = iprot.readString(); + struct.colNames.add(_elem455); } } 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 _list457 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partNames = new ArrayList(_list457.size); + String _elem458; + for (int _i459 = 0; _i459 < _list457.size; ++_i459) { - _elem442 = iprot.readString(); - struct.partNames.add(_elem442); + _elem458 = iprot.readString(); + struct.partNames.add(_elem458); } } 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..c2183e50e4 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 _map418 = iprot.readMapBegin(); + struct.partStats = new HashMap>(2*_map418.size); + String _key419; + List _val420; + for (int _i421 = 0; _i421 < _map418.size; ++_i421) { - _key403 = iprot.readString(); + _key419 = 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 _list422 = iprot.readListBegin(); + _val420 = new ArrayList(_list422.size); + ColumnStatisticsObj _elem423; + for (int _i424 = 0; _i424 < _list422.size; ++_i424) { - _elem407 = new ColumnStatisticsObj(); - _elem407.read(iprot); - _val404.add(_elem407); + _elem423 = new ColumnStatisticsObj(); + _elem423.read(iprot); + _val420.add(_elem423); } iprot.readListEnd(); } - struct.partStats.put(_key403, _val404); + struct.partStats.put(_key419, _val420); } 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> _iter425 : struct.partStats.entrySet()) { - oprot.writeString(_iter409.getKey()); + oprot.writeString(_iter425.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, _iter425.getValue().size())); + for (ColumnStatisticsObj _iter426 : _iter425.getValue()) { - _iter410.write(oprot); + _iter426.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> _iter427 : struct.partStats.entrySet()) { - oprot.writeString(_iter411.getKey()); + oprot.writeString(_iter427.getKey()); { - oprot.writeI32(_iter411.getValue().size()); - for (ColumnStatisticsObj _iter412 : _iter411.getValue()) + oprot.writeI32(_iter427.getValue().size()); + for (ColumnStatisticsObj _iter428 : _iter427.getValue()) { - _iter412.write(oprot); + _iter428.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 _map429 = 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*_map429.size); + String _key430; + List _val431; + for (int _i432 = 0; _i432 < _map429.size; ++_i432) { - _key414 = iprot.readString(); + _key430 = 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 _list433 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + _val431 = new ArrayList(_list433.size); + ColumnStatisticsObj _elem434; + for (int _i435 = 0; _i435 < _list433.size; ++_i435) { - _elem418 = new ColumnStatisticsObj(); - _elem418.read(iprot); - _val415.add(_elem418); + _elem434 = new ColumnStatisticsObj(); + _elem434.read(iprot); + _val431.add(_elem434); } } - struct.partStats.put(_key414, _val415); + struct.partStats.put(_key430, _val431); } } struct.setPartStatsIsSet(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 4bdca8c5c2..cb313ddd06 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 _list690 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list690.size); - long _elem691; - for (int _i692 = 0; _i692 < _list690.size; ++_i692) + org.apache.thrift.protocol.TList _list706 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list706.size); + long _elem707; + for (int _i708 = 0; _i708 < _list706.size; ++_i708) { - _elem691 = iprot.readI64(); - struct.fileIds.add(_elem691); + _elem707 = iprot.readI64(); + struct.fileIds.add(_elem707); } 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 _list693 = iprot.readListBegin(); - struct.metadata = new ArrayList(_list693.size); - ByteBuffer _elem694; - for (int _i695 = 0; _i695 < _list693.size; ++_i695) + org.apache.thrift.protocol.TList _list709 = iprot.readListBegin(); + struct.metadata = new ArrayList(_list709.size); + ByteBuffer _elem710; + for (int _i711 = 0; _i711 < _list709.size; ++_i711) { - _elem694 = iprot.readBinary(); - struct.metadata.add(_elem694); + _elem710 = iprot.readBinary(); + struct.metadata.add(_elem710); } 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 _iter696 : struct.fileIds) + for (long _iter712 : struct.fileIds) { - oprot.writeI64(_iter696); + oprot.writeI64(_iter712); } 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 _iter697 : struct.metadata) + for (ByteBuffer _iter713 : struct.metadata) { - oprot.writeBinary(_iter697); + oprot.writeBinary(_iter713); } 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 _iter698 : struct.fileIds) + for (long _iter714 : struct.fileIds) { - oprot.writeI64(_iter698); + oprot.writeI64(_iter714); } } { oprot.writeI32(struct.metadata.size()); - for (ByteBuffer _iter699 : struct.metadata) + for (ByteBuffer _iter715 : struct.metadata) { - oprot.writeBinary(_iter699); + oprot.writeBinary(_iter715); } } 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 _list700 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list700.size); - long _elem701; - for (int _i702 = 0; _i702 < _list700.size; ++_i702) + org.apache.thrift.protocol.TList _list716 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list716.size); + long _elem717; + for (int _i718 = 0; _i718 < _list716.size; ++_i718) { - _elem701 = iprot.readI64(); - struct.fileIds.add(_elem701); + _elem717 = iprot.readI64(); + struct.fileIds.add(_elem717); } } struct.setFileIdsIsSet(true); { - org.apache.thrift.protocol.TList _list703 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.metadata = new ArrayList(_list703.size); - ByteBuffer _elem704; - for (int _i705 = 0; _i705 < _list703.size; ++_i705) + org.apache.thrift.protocol.TList _list719 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.metadata = new ArrayList(_list719.size); + ByteBuffer _elem720; + for (int _i721 = 0; _i721 < _list719.size; ++_i721) { - _elem704 = iprot.readBinary(); - struct.metadata.add(_elem704); + _elem720 = iprot.readBinary(); + struct.metadata.add(_elem720); } } 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..96fd264bcd 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 _list484 = iprot.readListBegin(); + names = new ArrayList(_list484.size); + String _elem485; + for (int _i486 = 0; _i486 < _list484.size; ++_i486) { - _elem469 = iprot.readString(); - names.add(_elem469); + _elem485 = iprot.readString(); + names.add(_elem485); } 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 _list487 = iprot.readListBegin(); + exprs = new ArrayList(_list487.size); + DropPartitionsExpr _elem488; + for (int _i489 = 0; _i489 < _list487.size; ++_i489) { - _elem472 = new DropPartitionsExpr(); - _elem472.read(iprot); - exprs.add(_elem472); + _elem488 = new DropPartitionsExpr(); + _elem488.read(iprot); + exprs.add(_elem488); } 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 _iter490 : names) { - oprot.writeString(_iter474); + oprot.writeString(_iter490); } 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 _iter491 : exprs) { - _iter475.write(oprot); + _iter491.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 _list492 = iprot.readListBegin(); + names = new ArrayList(_list492.size); + String _elem493; + for (int _i494 = 0; _i494 < _list492.size; ++_i494) { - _elem477 = iprot.readString(); - names.add(_elem477); + _elem493 = iprot.readString(); + names.add(_elem493); } 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 _list495 = iprot.readListBegin(); + exprs = new ArrayList(_list495.size); + DropPartitionsExpr _elem496; + for (int _i497 = 0; _i497 < _list495.size; ++_i497) { - _elem480 = new DropPartitionsExpr(); - _elem480.read(iprot); - exprs.add(_elem480); + _elem496 = new DropPartitionsExpr(); + _elem496.read(iprot); + exprs.add(_elem496); } 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 _iter498 : names) { - oprot.writeString(_iter482); + oprot.writeString(_iter498); } 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 _iter499 : exprs) { - _iter483.write(oprot); + _iter499.write(oprot); } oprot.writeListEnd(); } diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SQLDefaultConstraint.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SQLDefaultConstraint.java new file mode 100644 index 0000000000..185b77ed21 --- /dev/null +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SQLDefaultConstraint.java @@ -0,0 +1,1109 @@ +/** + * 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 SQLDefaultConstraint 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("SQLDefaultConstraint"); + + private static final org.apache.thrift.protocol.TField TABLE_DB_FIELD_DESC = new org.apache.thrift.protocol.TField("table_db", 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 COLUMN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("column_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField DEFAULT_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("default_value", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField DC_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dc_name", org.apache.thrift.protocol.TType.STRING, (short)5); + private static final org.apache.thrift.protocol.TField ENABLE_CSTR_FIELD_DESC = new org.apache.thrift.protocol.TField("enable_cstr", org.apache.thrift.protocol.TType.BOOL, (short)6); + private static final org.apache.thrift.protocol.TField VALIDATE_CSTR_FIELD_DESC = new org.apache.thrift.protocol.TField("validate_cstr", org.apache.thrift.protocol.TType.BOOL, (short)7); + private static final org.apache.thrift.protocol.TField RELY_CSTR_FIELD_DESC = new org.apache.thrift.protocol.TField("rely_cstr", org.apache.thrift.protocol.TType.BOOL, (short)8); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new SQLDefaultConstraintStandardSchemeFactory()); + schemes.put(TupleScheme.class, new SQLDefaultConstraintTupleSchemeFactory()); + } + + private String table_db; // required + private String table_name; // required + private String column_name; // required + private String default_value; // required + private String dc_name; // required + private boolean enable_cstr; // required + private boolean validate_cstr; // required + private boolean rely_cstr; // 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 { + TABLE_DB((short)1, "table_db"), + TABLE_NAME((short)2, "table_name"), + COLUMN_NAME((short)3, "column_name"), + DEFAULT_VALUE((short)4, "default_value"), + DC_NAME((short)5, "dc_name"), + ENABLE_CSTR((short)6, "enable_cstr"), + VALIDATE_CSTR((short)7, "validate_cstr"), + RELY_CSTR((short)8, "rely_cstr"); + + 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: // TABLE_DB + return TABLE_DB; + case 2: // TABLE_NAME + return TABLE_NAME; + case 3: // COLUMN_NAME + return COLUMN_NAME; + case 4: // DEFAULT_VALUE + return DEFAULT_VALUE; + case 5: // DC_NAME + return DC_NAME; + case 6: // ENABLE_CSTR + return ENABLE_CSTR; + case 7: // VALIDATE_CSTR + return VALIDATE_CSTR; + case 8: // RELY_CSTR + return RELY_CSTR; + 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 __ENABLE_CSTR_ISSET_ID = 0; + private static final int __VALIDATE_CSTR_ISSET_ID = 1; + private static final int __RELY_CSTR_ISSET_ID = 2; + 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.TABLE_DB, new org.apache.thrift.meta_data.FieldMetaData("table_db", 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.COLUMN_NAME, new org.apache.thrift.meta_data.FieldMetaData("column_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DEFAULT_VALUE, new org.apache.thrift.meta_data.FieldMetaData("default_value", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DC_NAME, new org.apache.thrift.meta_data.FieldMetaData("dc_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.ENABLE_CSTR, new org.apache.thrift.meta_data.FieldMetaData("enable_cstr", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.VALIDATE_CSTR, new org.apache.thrift.meta_data.FieldMetaData("validate_cstr", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.RELY_CSTR, new org.apache.thrift.meta_data.FieldMetaData("rely_cstr", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SQLDefaultConstraint.class, metaDataMap); + } + + public SQLDefaultConstraint() { + } + + public SQLDefaultConstraint( + String table_db, + String table_name, + String column_name, + String default_value, + String dc_name, + boolean enable_cstr, + boolean validate_cstr, + boolean rely_cstr) + { + this(); + this.table_db = table_db; + this.table_name = table_name; + this.column_name = column_name; + this.default_value = default_value; + this.dc_name = dc_name; + this.enable_cstr = enable_cstr; + setEnable_cstrIsSet(true); + this.validate_cstr = validate_cstr; + setValidate_cstrIsSet(true); + this.rely_cstr = rely_cstr; + setRely_cstrIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public SQLDefaultConstraint(SQLDefaultConstraint other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetTable_db()) { + this.table_db = other.table_db; + } + if (other.isSetTable_name()) { + this.table_name = other.table_name; + } + if (other.isSetColumn_name()) { + this.column_name = other.column_name; + } + if (other.isSetDefault_value()) { + this.default_value = other.default_value; + } + if (other.isSetDc_name()) { + this.dc_name = other.dc_name; + } + this.enable_cstr = other.enable_cstr; + this.validate_cstr = other.validate_cstr; + this.rely_cstr = other.rely_cstr; + } + + public SQLDefaultConstraint deepCopy() { + return new SQLDefaultConstraint(this); + } + + @Override + public void clear() { + this.table_db = null; + this.table_name = null; + this.column_name = null; + this.default_value = null; + this.dc_name = null; + setEnable_cstrIsSet(false); + this.enable_cstr = false; + setValidate_cstrIsSet(false); + this.validate_cstr = false; + setRely_cstrIsSet(false); + this.rely_cstr = false; + } + + public String getTable_db() { + return this.table_db; + } + + public void setTable_db(String table_db) { + this.table_db = table_db; + } + + public void unsetTable_db() { + this.table_db = null; + } + + /** Returns true if field table_db is set (has been assigned a value) and false otherwise */ + public boolean isSetTable_db() { + return this.table_db != null; + } + + public void setTable_dbIsSet(boolean value) { + if (!value) { + this.table_db = 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 String getColumn_name() { + return this.column_name; + } + + public void setColumn_name(String column_name) { + this.column_name = column_name; + } + + public void unsetColumn_name() { + this.column_name = null; + } + + /** Returns true if field column_name is set (has been assigned a value) and false otherwise */ + public boolean isSetColumn_name() { + return this.column_name != null; + } + + public void setColumn_nameIsSet(boolean value) { + if (!value) { + this.column_name = null; + } + } + + public String getDefault_value() { + return this.default_value; + } + + public void setDefault_value(String default_value) { + this.default_value = default_value; + } + + public void unsetDefault_value() { + this.default_value = null; + } + + /** Returns true if field default_value is set (has been assigned a value) and false otherwise */ + public boolean isSetDefault_value() { + return this.default_value != null; + } + + public void setDefault_valueIsSet(boolean value) { + if (!value) { + this.default_value = null; + } + } + + public String getDc_name() { + return this.dc_name; + } + + public void setDc_name(String dc_name) { + this.dc_name = dc_name; + } + + public void unsetDc_name() { + this.dc_name = null; + } + + /** Returns true if field dc_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDc_name() { + return this.dc_name != null; + } + + public void setDc_nameIsSet(boolean value) { + if (!value) { + this.dc_name = null; + } + } + + public boolean isEnable_cstr() { + return this.enable_cstr; + } + + public void setEnable_cstr(boolean enable_cstr) { + this.enable_cstr = enable_cstr; + setEnable_cstrIsSet(true); + } + + public void unsetEnable_cstr() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ENABLE_CSTR_ISSET_ID); + } + + /** Returns true if field enable_cstr is set (has been assigned a value) and false otherwise */ + public boolean isSetEnable_cstr() { + return EncodingUtils.testBit(__isset_bitfield, __ENABLE_CSTR_ISSET_ID); + } + + public void setEnable_cstrIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ENABLE_CSTR_ISSET_ID, value); + } + + public boolean isValidate_cstr() { + return this.validate_cstr; + } + + public void setValidate_cstr(boolean validate_cstr) { + this.validate_cstr = validate_cstr; + setValidate_cstrIsSet(true); + } + + public void unsetValidate_cstr() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __VALIDATE_CSTR_ISSET_ID); + } + + /** Returns true if field validate_cstr is set (has been assigned a value) and false otherwise */ + public boolean isSetValidate_cstr() { + return EncodingUtils.testBit(__isset_bitfield, __VALIDATE_CSTR_ISSET_ID); + } + + public void setValidate_cstrIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __VALIDATE_CSTR_ISSET_ID, value); + } + + public boolean isRely_cstr() { + return this.rely_cstr; + } + + public void setRely_cstr(boolean rely_cstr) { + this.rely_cstr = rely_cstr; + setRely_cstrIsSet(true); + } + + public void unsetRely_cstr() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RELY_CSTR_ISSET_ID); + } + + /** Returns true if field rely_cstr is set (has been assigned a value) and false otherwise */ + public boolean isSetRely_cstr() { + return EncodingUtils.testBit(__isset_bitfield, __RELY_CSTR_ISSET_ID); + } + + public void setRely_cstrIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RELY_CSTR_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case TABLE_DB: + if (value == null) { + unsetTable_db(); + } else { + setTable_db((String)value); + } + break; + + case TABLE_NAME: + if (value == null) { + unsetTable_name(); + } else { + setTable_name((String)value); + } + break; + + case COLUMN_NAME: + if (value == null) { + unsetColumn_name(); + } else { + setColumn_name((String)value); + } + break; + + case DEFAULT_VALUE: + if (value == null) { + unsetDefault_value(); + } else { + setDefault_value((String)value); + } + break; + + case DC_NAME: + if (value == null) { + unsetDc_name(); + } else { + setDc_name((String)value); + } + break; + + case ENABLE_CSTR: + if (value == null) { + unsetEnable_cstr(); + } else { + setEnable_cstr((Boolean)value); + } + break; + + case VALIDATE_CSTR: + if (value == null) { + unsetValidate_cstr(); + } else { + setValidate_cstr((Boolean)value); + } + break; + + case RELY_CSTR: + if (value == null) { + unsetRely_cstr(); + } else { + setRely_cstr((Boolean)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case TABLE_DB: + return getTable_db(); + + case TABLE_NAME: + return getTable_name(); + + case COLUMN_NAME: + return getColumn_name(); + + case DEFAULT_VALUE: + return getDefault_value(); + + case DC_NAME: + return getDc_name(); + + case ENABLE_CSTR: + return isEnable_cstr(); + + case VALIDATE_CSTR: + return isValidate_cstr(); + + case RELY_CSTR: + return isRely_cstr(); + + } + 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 TABLE_DB: + return isSetTable_db(); + case TABLE_NAME: + return isSetTable_name(); + case COLUMN_NAME: + return isSetColumn_name(); + case DEFAULT_VALUE: + return isSetDefault_value(); + case DC_NAME: + return isSetDc_name(); + case ENABLE_CSTR: + return isSetEnable_cstr(); + case VALIDATE_CSTR: + return isSetValidate_cstr(); + case RELY_CSTR: + return isSetRely_cstr(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof SQLDefaultConstraint) + return this.equals((SQLDefaultConstraint)that); + return false; + } + + public boolean equals(SQLDefaultConstraint that) { + if (that == null) + return false; + + boolean this_present_table_db = true && this.isSetTable_db(); + boolean that_present_table_db = true && that.isSetTable_db(); + if (this_present_table_db || that_present_table_db) { + if (!(this_present_table_db && that_present_table_db)) + return false; + if (!this.table_db.equals(that.table_db)) + 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_column_name = true && this.isSetColumn_name(); + boolean that_present_column_name = true && that.isSetColumn_name(); + if (this_present_column_name || that_present_column_name) { + if (!(this_present_column_name && that_present_column_name)) + return false; + if (!this.column_name.equals(that.column_name)) + return false; + } + + boolean this_present_default_value = true && this.isSetDefault_value(); + boolean that_present_default_value = true && that.isSetDefault_value(); + if (this_present_default_value || that_present_default_value) { + if (!(this_present_default_value && that_present_default_value)) + return false; + if (!this.default_value.equals(that.default_value)) + return false; + } + + boolean this_present_dc_name = true && this.isSetDc_name(); + boolean that_present_dc_name = true && that.isSetDc_name(); + if (this_present_dc_name || that_present_dc_name) { + if (!(this_present_dc_name && that_present_dc_name)) + return false; + if (!this.dc_name.equals(that.dc_name)) + return false; + } + + boolean this_present_enable_cstr = true; + boolean that_present_enable_cstr = true; + if (this_present_enable_cstr || that_present_enable_cstr) { + if (!(this_present_enable_cstr && that_present_enable_cstr)) + return false; + if (this.enable_cstr != that.enable_cstr) + return false; + } + + boolean this_present_validate_cstr = true; + boolean that_present_validate_cstr = true; + if (this_present_validate_cstr || that_present_validate_cstr) { + if (!(this_present_validate_cstr && that_present_validate_cstr)) + return false; + if (this.validate_cstr != that.validate_cstr) + return false; + } + + boolean this_present_rely_cstr = true; + boolean that_present_rely_cstr = true; + if (this_present_rely_cstr || that_present_rely_cstr) { + if (!(this_present_rely_cstr && that_present_rely_cstr)) + return false; + if (this.rely_cstr != that.rely_cstr) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_table_db = true && (isSetTable_db()); + list.add(present_table_db); + if (present_table_db) + list.add(table_db); + + boolean present_table_name = true && (isSetTable_name()); + list.add(present_table_name); + if (present_table_name) + list.add(table_name); + + boolean present_column_name = true && (isSetColumn_name()); + list.add(present_column_name); + if (present_column_name) + list.add(column_name); + + boolean present_default_value = true && (isSetDefault_value()); + list.add(present_default_value); + if (present_default_value) + list.add(default_value); + + boolean present_dc_name = true && (isSetDc_name()); + list.add(present_dc_name); + if (present_dc_name) + list.add(dc_name); + + boolean present_enable_cstr = true; + list.add(present_enable_cstr); + if (present_enable_cstr) + list.add(enable_cstr); + + boolean present_validate_cstr = true; + list.add(present_validate_cstr); + if (present_validate_cstr) + list.add(validate_cstr); + + boolean present_rely_cstr = true; + list.add(present_rely_cstr); + if (present_rely_cstr) + list.add(rely_cstr); + + return list.hashCode(); + } + + @Override + public int compareTo(SQLDefaultConstraint other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetTable_db()).compareTo(other.isSetTable_db()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTable_db()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_db, other.table_db); + 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(isSetColumn_name()).compareTo(other.isSetColumn_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetColumn_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_name, other.column_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDefault_value()).compareTo(other.isSetDefault_value()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDefault_value()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.default_value, other.default_value); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDc_name()).compareTo(other.isSetDc_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDc_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dc_name, other.dc_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetEnable_cstr()).compareTo(other.isSetEnable_cstr()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEnable_cstr()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.enable_cstr, other.enable_cstr); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetValidate_cstr()).compareTo(other.isSetValidate_cstr()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetValidate_cstr()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.validate_cstr, other.validate_cstr); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetRely_cstr()).compareTo(other.isSetRely_cstr()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRely_cstr()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rely_cstr, other.rely_cstr); + 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("SQLDefaultConstraint("); + boolean first = true; + + sb.append("table_db:"); + if (this.table_db == null) { + sb.append("null"); + } else { + sb.append(this.table_db); + } + 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("column_name:"); + if (this.column_name == null) { + sb.append("null"); + } else { + sb.append(this.column_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("default_value:"); + if (this.default_value == null) { + sb.append("null"); + } else { + sb.append(this.default_value); + } + first = false; + if (!first) sb.append(", "); + sb.append("dc_name:"); + if (this.dc_name == null) { + sb.append("null"); + } else { + sb.append(this.dc_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("enable_cstr:"); + sb.append(this.enable_cstr); + first = false; + if (!first) sb.append(", "); + sb.append("validate_cstr:"); + sb.append(this.validate_cstr); + first = false; + if (!first) sb.append(", "); + sb.append("rely_cstr:"); + sb.append(this.rely_cstr); + 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 { + // 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 SQLDefaultConstraintStandardSchemeFactory implements SchemeFactory { + public SQLDefaultConstraintStandardScheme getScheme() { + return new SQLDefaultConstraintStandardScheme(); + } + } + + private static class SQLDefaultConstraintStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, SQLDefaultConstraint 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: // TABLE_DB + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.table_db = iprot.readString(); + struct.setTable_dbIsSet(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: // COLUMN_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.column_name = iprot.readString(); + struct.setColumn_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // DEFAULT_VALUE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.default_value = iprot.readString(); + struct.setDefault_valueIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // DC_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dc_name = iprot.readString(); + struct.setDc_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // ENABLE_CSTR + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.enable_cstr = iprot.readBool(); + struct.setEnable_cstrIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // VALIDATE_CSTR + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.validate_cstr = iprot.readBool(); + struct.setValidate_cstrIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 8: // RELY_CSTR + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.rely_cstr = iprot.readBool(); + struct.setRely_cstrIsSet(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, SQLDefaultConstraint struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.table_db != null) { + oprot.writeFieldBegin(TABLE_DB_FIELD_DESC); + oprot.writeString(struct.table_db); + oprot.writeFieldEnd(); + } + if (struct.table_name != null) { + oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); + oprot.writeString(struct.table_name); + oprot.writeFieldEnd(); + } + if (struct.column_name != null) { + oprot.writeFieldBegin(COLUMN_NAME_FIELD_DESC); + oprot.writeString(struct.column_name); + oprot.writeFieldEnd(); + } + if (struct.default_value != null) { + oprot.writeFieldBegin(DEFAULT_VALUE_FIELD_DESC); + oprot.writeString(struct.default_value); + oprot.writeFieldEnd(); + } + if (struct.dc_name != null) { + oprot.writeFieldBegin(DC_NAME_FIELD_DESC); + oprot.writeString(struct.dc_name); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(ENABLE_CSTR_FIELD_DESC); + oprot.writeBool(struct.enable_cstr); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(VALIDATE_CSTR_FIELD_DESC); + oprot.writeBool(struct.validate_cstr); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(RELY_CSTR_FIELD_DESC); + oprot.writeBool(struct.rely_cstr); + oprot.writeFieldEnd(); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class SQLDefaultConstraintTupleSchemeFactory implements SchemeFactory { + public SQLDefaultConstraintTupleScheme getScheme() { + return new SQLDefaultConstraintTupleScheme(); + } + } + + private static class SQLDefaultConstraintTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, SQLDefaultConstraint struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetTable_db()) { + optionals.set(0); + } + if (struct.isSetTable_name()) { + optionals.set(1); + } + if (struct.isSetColumn_name()) { + optionals.set(2); + } + if (struct.isSetDefault_value()) { + optionals.set(3); + } + if (struct.isSetDc_name()) { + optionals.set(4); + } + if (struct.isSetEnable_cstr()) { + optionals.set(5); + } + if (struct.isSetValidate_cstr()) { + optionals.set(6); + } + if (struct.isSetRely_cstr()) { + optionals.set(7); + } + oprot.writeBitSet(optionals, 8); + if (struct.isSetTable_db()) { + oprot.writeString(struct.table_db); + } + if (struct.isSetTable_name()) { + oprot.writeString(struct.table_name); + } + if (struct.isSetColumn_name()) { + oprot.writeString(struct.column_name); + } + if (struct.isSetDefault_value()) { + oprot.writeString(struct.default_value); + } + if (struct.isSetDc_name()) { + oprot.writeString(struct.dc_name); + } + if (struct.isSetEnable_cstr()) { + oprot.writeBool(struct.enable_cstr); + } + if (struct.isSetValidate_cstr()) { + oprot.writeBool(struct.validate_cstr); + } + if (struct.isSetRely_cstr()) { + oprot.writeBool(struct.rely_cstr); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, SQLDefaultConstraint struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(8); + if (incoming.get(0)) { + struct.table_db = iprot.readString(); + struct.setTable_dbIsSet(true); + } + if (incoming.get(1)) { + struct.table_name = iprot.readString(); + struct.setTable_nameIsSet(true); + } + if (incoming.get(2)) { + struct.column_name = iprot.readString(); + struct.setColumn_nameIsSet(true); + } + if (incoming.get(3)) { + struct.default_value = iprot.readString(); + struct.setDefault_valueIsSet(true); + } + if (incoming.get(4)) { + struct.dc_name = iprot.readString(); + struct.setDc_nameIsSet(true); + } + if (incoming.get(5)) { + struct.enable_cstr = iprot.readBool(); + struct.setEnable_cstrIsSet(true); + } + if (incoming.get(6)) { + struct.validate_cstr = iprot.readBool(); + struct.setValidate_cstrIsSet(true); + } + if (incoming.get(7)) { + struct.rely_cstr = iprot.readBool(); + struct.setRely_cstrIsSet(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..b6421a0077 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 _list614 = iprot.readListBegin(); + struct.compacts = new ArrayList(_list614.size); + ShowCompactResponseElement _elem615; + for (int _i616 = 0; _i616 < _list614.size; ++_i616) { - _elem599 = new ShowCompactResponseElement(); - _elem599.read(iprot); - struct.compacts.add(_elem599); + _elem615 = new ShowCompactResponseElement(); + _elem615.read(iprot); + struct.compacts.add(_elem615); } 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 _iter617 : struct.compacts) { - _iter601.write(oprot); + _iter617.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 _iter618 : struct.compacts) { - _iter602.write(oprot); + _iter618.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 _list619 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.compacts = new ArrayList(_list619.size); + ShowCompactResponseElement _elem620; + for (int _i621 = 0; _i621 < _list619.size; ++_i621) { - _elem604 = new ShowCompactResponseElement(); - _elem604.read(iprot); - struct.compacts.add(_elem604); + _elem620 = new ShowCompactResponseElement(); + _elem620.read(iprot); + struct.compacts.add(_elem620); } } 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..6423b362b7 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 _list580 = iprot.readListBegin(); + struct.locks = new ArrayList(_list580.size); + ShowLocksResponseElement _elem581; + for (int _i582 = 0; _i582 < _list580.size; ++_i582) { - _elem565 = new ShowLocksResponseElement(); - _elem565.read(iprot); - struct.locks.add(_elem565); + _elem581 = new ShowLocksResponseElement(); + _elem581.read(iprot); + struct.locks.add(_elem581); } 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 _iter583 : struct.locks) { - _iter567.write(oprot); + _iter583.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 _iter584 : struct.locks) { - _iter568.write(oprot); + _iter584.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 _list585 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.locks = new ArrayList(_list585.size); + ShowLocksResponseElement _elem586; + for (int _i587 = 0; _i587 < _list585.size; ++_i587) { - _elem570 = new ShowLocksResponseElement(); - _elem570.read(iprot); - struct.locks.add(_elem570); + _elem586 = new ShowLocksResponseElement(); + _elem586.read(iprot); + struct.locks.add(_elem586); } } struct.setLocksIsSet(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..ad886b853c 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 _list436 = iprot.readListBegin(); + struct.colNames = new ArrayList(_list436.size); + String _elem437; + for (int _i438 = 0; _i438 < _list436.size; ++_i438) { - _elem421 = iprot.readString(); - struct.colNames.add(_elem421); + _elem437 = iprot.readString(); + struct.colNames.add(_elem437); } 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 _iter439 : struct.colNames) { - oprot.writeString(_iter423); + oprot.writeString(_iter439); } 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 _iter440 : struct.colNames) { - oprot.writeString(_iter424); + oprot.writeString(_iter440); } } } @@ -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 _list441 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.colNames = new ArrayList(_list441.size); + String _elem442; + for (int _i443 = 0; _i443 < _list441.size; ++_i443) { - _elem426 = iprot.readString(); - struct.colNames.add(_elem426); + _elem442 = iprot.readString(); + struct.colNames.add(_elem442); } } 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..64af8ba907 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 _list410 = iprot.readListBegin(); + struct.tableStats = new ArrayList(_list410.size); + ColumnStatisticsObj _elem411; + for (int _i412 = 0; _i412 < _list410.size; ++_i412) { - _elem395 = new ColumnStatisticsObj(); - _elem395.read(iprot); - struct.tableStats.add(_elem395); + _elem411 = new ColumnStatisticsObj(); + _elem411.read(iprot); + struct.tableStats.add(_elem411); } 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 _iter413 : struct.tableStats) { - _iter397.write(oprot); + _iter413.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 _iter414 : struct.tableStats) { - _iter398.write(oprot); + _iter414.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 _list415 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tableStats = new ArrayList(_list415.size); + ColumnStatisticsObj _elem416; + for (int _i417 = 0; _i417 < _list415.size; ++_i417) { - _elem400 = new ColumnStatisticsObj(); - _elem400.read(iprot); - struct.tableStats.add(_elem400); + _elem416 = new ColumnStatisticsObj(); + _elem416.read(iprot); + struct.tableStats.add(_elem416); } } 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 05064cb2c9..0a1abe8906 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 @@ -78,7 +78,7 @@ public void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException; - public void create_table_with_constraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException; + public void create_table_with_constraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, List defaultConstraints) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException; public void drop_constraint(DropConstraintRequest req) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; @@ -90,6 +90,8 @@ public void add_not_null_constraint(AddNotNullConstraintRequest req) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; + public void add_default_constraint(AddDefaultConstraintRequest req) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; + public void drop_table(String dbname, String name, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; public void drop_table_with_environment_context(String dbname, String name, boolean deleteData, EnvironmentContext environment_context) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; @@ -232,6 +234,8 @@ public NotNullConstraintsResponse get_not_null_constraints(NotNullConstraintsRequest request) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; + public DefaultConstraintsResponse get_default_constraints(DefaultConstraintsRequest request) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; + public boolean update_table_column_statistics(ColumnStatistics stats_obj) throws NoSuchObjectException, InvalidObjectException, MetaException, InvalidInputException, org.apache.thrift.TException; public boolean update_partition_column_statistics(ColumnStatistics stats_obj) throws NoSuchObjectException, InvalidObjectException, MetaException, InvalidInputException, org.apache.thrift.TException; @@ -446,7 +450,7 @@ public void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void create_table_with_constraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void create_table_with_constraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, List defaultConstraints, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void drop_constraint(DropConstraintRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -458,6 +462,8 @@ public void add_not_null_constraint(AddNotNullConstraintRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void add_default_constraint(AddDefaultConstraintRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_table(String dbname, String name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void drop_table_with_environment_context(String dbname, String name, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -600,6 +606,8 @@ public void get_not_null_constraints(NotNullConstraintsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_default_constraints(DefaultConstraintsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void update_table_column_statistics(ColumnStatistics stats_obj, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void update_partition_column_statistics(ColumnStatistics stats_obj, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -1328,13 +1336,13 @@ public void recv_create_table_with_environment_context() throws AlreadyExistsExc return; } - public void create_table_with_constraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException + public void create_table_with_constraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, List defaultConstraints) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException { - send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints); + send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints); recv_create_table_with_constraints(); } - public void send_create_table_with_constraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints) throws org.apache.thrift.TException + public void send_create_table_with_constraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, List defaultConstraints) throws org.apache.thrift.TException { create_table_with_constraints_args args = new create_table_with_constraints_args(); args.setTbl(tbl); @@ -1342,6 +1350,7 @@ public void send_create_table_with_constraints(Table tbl, List pr args.setForeignKeys(foreignKeys); args.setUniqueConstraints(uniqueConstraints); args.setNotNullConstraints(notNullConstraints); + args.setDefaultConstraints(defaultConstraints); sendBase("create_table_with_constraints", args); } @@ -1494,6 +1503,32 @@ public void recv_add_not_null_constraint() throws NoSuchObjectException, MetaExc return; } + public void add_default_constraint(AddDefaultConstraintRequest req) throws NoSuchObjectException, MetaException, org.apache.thrift.TException + { + send_add_default_constraint(req); + recv_add_default_constraint(); + } + + public void send_add_default_constraint(AddDefaultConstraintRequest req) throws org.apache.thrift.TException + { + add_default_constraint_args args = new add_default_constraint_args(); + args.setReq(req); + sendBase("add_default_constraint", args); + } + + public void recv_add_default_constraint() throws NoSuchObjectException, MetaException, org.apache.thrift.TException + { + add_default_constraint_result result = new add_default_constraint_result(); + receiveBase(result, "add_default_constraint"); + if (result.o1 != null) { + throw result.o1; + } + if (result.o2 != null) { + throw result.o2; + } + return; + } + public void drop_table(String dbname, String name, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException { send_drop_table(dbname, name, deleteData); @@ -3683,6 +3718,35 @@ public NotNullConstraintsResponse recv_get_not_null_constraints() throws MetaExc throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_not_null_constraints failed: unknown result"); } + public DefaultConstraintsResponse get_default_constraints(DefaultConstraintsRequest request) throws MetaException, NoSuchObjectException, org.apache.thrift.TException + { + send_get_default_constraints(request); + return recv_get_default_constraints(); + } + + public void send_get_default_constraints(DefaultConstraintsRequest request) throws org.apache.thrift.TException + { + get_default_constraints_args args = new get_default_constraints_args(); + args.setRequest(request); + sendBase("get_default_constraints", args); + } + + public DefaultConstraintsResponse recv_get_default_constraints() throws MetaException, NoSuchObjectException, org.apache.thrift.TException + { + get_default_constraints_result result = new get_default_constraints_result(); + receiveBase(result, "get_default_constraints"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.o1 != null) { + throw result.o1; + } + if (result.o2 != null) { + throw result.o2; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_default_constraints failed: unknown result"); + } + public boolean update_table_column_statistics(ColumnStatistics stats_obj) throws NoSuchObjectException, InvalidObjectException, MetaException, InvalidInputException, org.apache.thrift.TException { send_update_table_column_statistics(stats_obj); @@ -6693,9 +6757,9 @@ public void getResult() throws AlreadyExistsException, InvalidObjectException, M } } - public void create_table_with_constraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void create_table_with_constraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, List defaultConstraints, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - create_table_with_constraints_call method_call = new create_table_with_constraints_call(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, resultHandler, this, ___protocolFactory, ___transport); + create_table_with_constraints_call method_call = new create_table_with_constraints_call(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } @@ -6706,13 +6770,15 @@ public void create_table_with_constraints(Table tbl, List primary private List foreignKeys; private List uniqueConstraints; private List notNullConstraints; - public create_table_with_constraints_call(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, 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 { + private List defaultConstraints; + public create_table_with_constraints_call(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, List defaultConstraints, 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.tbl = tbl; this.primaryKeys = primaryKeys; this.foreignKeys = foreignKeys; this.uniqueConstraints = uniqueConstraints; this.notNullConstraints = notNullConstraints; + this.defaultConstraints = defaultConstraints; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { @@ -6723,6 +6789,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa args.setForeignKeys(foreignKeys); args.setUniqueConstraints(uniqueConstraints); args.setNotNullConstraints(notNullConstraints); + args.setDefaultConstraints(defaultConstraints); args.write(prot); prot.writeMessageEnd(); } @@ -6897,6 +6964,38 @@ public void getResult() throws NoSuchObjectException, MetaException, org.apache. } } + public void add_default_constraint(AddDefaultConstraintRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + add_default_constraint_call method_call = new add_default_constraint_call(req, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_default_constraint_call extends org.apache.thrift.async.TAsyncMethodCall { + private AddDefaultConstraintRequest req; + public add_default_constraint_call(AddDefaultConstraintRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.req = req; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("add_default_constraint", org.apache.thrift.protocol.TMessageType.CALL, 0)); + add_default_constraint_args args = new add_default_constraint_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public void getResult() throws NoSuchObjectException, 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); + (new Client(prot)).recv_add_default_constraint(); + } + } + public void drop_table(String dbname, String name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_table_call method_call = new drop_table_call(dbname, name, deleteData, resultHandler, this, ___protocolFactory, ___transport); @@ -9568,6 +9667,38 @@ public NotNullConstraintsResponse getResult() throws MetaException, NoSuchObject } } + public void get_default_constraints(DefaultConstraintsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + get_default_constraints_call method_call = new get_default_constraints_call(request, 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_default_constraints_call extends org.apache.thrift.async.TAsyncMethodCall { + private DefaultConstraintsRequest request; + public get_default_constraints_call(DefaultConstraintsRequest request, 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.request = request; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_default_constraints", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_default_constraints_args args = new get_default_constraints_args(); + args.setRequest(request); + args.write(prot); + prot.writeMessageEnd(); + } + + public DefaultConstraintsResponse getResult() throws MetaException, NoSuchObjectException, 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_default_constraints(); + } + } + public void update_table_column_statistics(ColumnStatistics stats_obj, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); update_table_column_statistics_call method_call = new update_table_column_statistics_call(stats_obj, resultHandler, this, ___protocolFactory, ___transport); @@ -12455,6 +12586,7 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { + public add_default_constraint() { + super("add_default_constraint"); + } + + public add_default_constraint_args getEmptyArgsInstance() { + return new add_default_constraint_args(); + } + + protected boolean isOneway() { + return false; + } + + public add_default_constraint_result getResult(I iface, add_default_constraint_args args) throws org.apache.thrift.TException { + add_default_constraint_result result = new add_default_constraint_result(); + try { + iface.add_default_constraint(args.req); + } catch (NoSuchObjectException o1) { + result.o1 = o1; + } catch (MetaException o2) { + result.o2 = o2; + } + return result; + } + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_table extends org.apache.thrift.ProcessFunction { public drop_table() { super("drop_table"); @@ -15138,6 +15297,32 @@ public get_not_null_constraints_result getResult(I iface, get_not_null_constrain } } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_default_constraints extends org.apache.thrift.ProcessFunction { + public get_default_constraints() { + super("get_default_constraints"); + } + + public get_default_constraints_args getEmptyArgsInstance() { + return new get_default_constraints_args(); + } + + protected boolean isOneway() { + return false; + } + + public get_default_constraints_result getResult(I iface, get_default_constraints_args args) throws org.apache.thrift.TException { + get_default_constraints_result result = new get_default_constraints_result(); + try { + result.success = iface.get_default_constraints(args.request); + } catch (MetaException o1) { + result.o1 = o1; + } catch (NoSuchObjectException o2) { + result.o2 = o2; + } + return result; + } + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class update_table_column_statistics extends org.apache.thrift.ProcessFunction { public update_table_column_statistics() { super("update_table_column_statistics"); @@ -17325,6 +17510,7 @@ protected AsyncProcessor(I iface, Map resultHandler) throws TException { - iface.create_table_with_constraints(args.tbl, args.primaryKeys, args.foreignKeys, args.uniqueConstraints, args.notNullConstraints,resultHandler); + iface.create_table_with_constraints(args.tbl, args.primaryKeys, args.foreignKeys, args.uniqueConstraints, args.notNullConstraints, args.defaultConstraints,resultHandler); } } @@ -19004,6 +19191,67 @@ public void start(I iface, add_not_null_constraint_args args, org.apache.thrift. } } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_default_constraint extends org.apache.thrift.AsyncProcessFunction { + public add_default_constraint() { + super("add_default_constraint"); + } + + public add_default_constraint_args getEmptyArgsInstance() { + return new add_default_constraint_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + add_default_constraint_result result = new add_default_constraint_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + add_default_constraint_result result = new add_default_constraint_result(); + if (e instanceof NoSuchObjectException) { + result.o1 = (NoSuchObjectException) e; + result.setO1IsSet(true); + msg = result; + } + else if (e instanceof MetaException) { + result.o2 = (MetaException) e; + result.setO2IsSet(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, add_default_constraint_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.add_default_constraint(args.req,resultHandler); + } + } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_table extends org.apache.thrift.AsyncProcessFunction { public drop_table() { super("drop_table"); @@ -23466,22 +23714,21 @@ public void start(I iface, get_not_null_constraints_args args, org.apache.thrift } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class update_table_column_statistics extends org.apache.thrift.AsyncProcessFunction { - public update_table_column_statistics() { - super("update_table_column_statistics"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_default_constraints extends org.apache.thrift.AsyncProcessFunction { + public get_default_constraints() { + super("get_default_constraints"); } - public update_table_column_statistics_args getEmptyArgsInstance() { - return new update_table_column_statistics_args(); + public get_default_constraints_args getEmptyArgsInstance() { + return new get_default_constraints_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - update_table_column_statistics_result result = new update_table_column_statistics_result(); + return new AsyncMethodCallback() { + public void onComplete(DefaultConstraintsResponse o) { + get_default_constraints_result result = new get_default_constraints_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -23493,26 +23740,16 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - update_table_column_statistics_result result = new update_table_column_statistics_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; + get_default_constraints_result result = new get_default_constraints_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; result.setO1IsSet(true); msg = result; } - else if (e instanceof InvalidObjectException) { - result.o2 = (InvalidObjectException) e; + else if (e instanceof NoSuchObjectException) { + result.o2 = (NoSuchObjectException) e; result.setO2IsSet(true); msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else if (e instanceof InvalidInputException) { - result.o4 = (InvalidInputException) e; - result.setO4IsSet(true); - msg = result; } else { @@ -23534,25 +23771,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, update_table_column_statistics_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.update_table_column_statistics(args.stats_obj,resultHandler); + public void start(I iface, get_default_constraints_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get_default_constraints(args.request,resultHandler); } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class update_partition_column_statistics extends org.apache.thrift.AsyncProcessFunction { - public update_partition_column_statistics() { - super("update_partition_column_statistics"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class update_table_column_statistics extends org.apache.thrift.AsyncProcessFunction { + public update_table_column_statistics() { + super("update_table_column_statistics"); } - public update_partition_column_statistics_args getEmptyArgsInstance() { - return new update_partition_column_statistics_args(); + public update_table_column_statistics_args getEmptyArgsInstance() { + return new update_table_column_statistics_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - update_partition_column_statistics_result result = new update_partition_column_statistics_result(); + update_table_column_statistics_result result = new update_table_column_statistics_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -23566,7 +23803,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - update_partition_column_statistics_result result = new update_partition_column_statistics_result(); + update_table_column_statistics_result result = new update_table_column_statistics_result(); if (e instanceof NoSuchObjectException) { result.o1 = (NoSuchObjectException) e; result.setO1IsSet(true); @@ -23607,26 +23844,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, update_partition_column_statistics_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.update_partition_column_statistics(args.stats_obj,resultHandler); + public void start(I iface, update_table_column_statistics_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.update_table_column_statistics(args.stats_obj,resultHandler); } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_column_statistics extends org.apache.thrift.AsyncProcessFunction { - public get_table_column_statistics() { - super("get_table_column_statistics"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class update_partition_column_statistics extends org.apache.thrift.AsyncProcessFunction { + public update_partition_column_statistics() { + super("update_partition_column_statistics"); } - public get_table_column_statistics_args getEmptyArgsInstance() { - return new get_table_column_statistics_args(); + public update_partition_column_statistics_args getEmptyArgsInstance() { + return new update_partition_column_statistics_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(ColumnStatistics o) { - get_table_column_statistics_result result = new get_table_column_statistics_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + update_partition_column_statistics_result result = new update_partition_column_statistics_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -23638,24 +23876,96 @@ public void onComplete(ColumnStatistics o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_table_column_statistics_result result = new get_table_column_statistics_result(); + update_partition_column_statistics_result result = new update_partition_column_statistics_result(); if (e instanceof NoSuchObjectException) { result.o1 = (NoSuchObjectException) e; result.setO1IsSet(true); msg = result; } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; + else if (e instanceof InvalidObjectException) { + result.o2 = (InvalidObjectException) e; result.setO2IsSet(true); msg = result; } - else if (e instanceof InvalidInputException) { - result.o3 = (InvalidInputException) e; + else if (e instanceof MetaException) { + result.o3 = (MetaException) e; result.setO3IsSet(true); msg = result; } - else if (e instanceof InvalidObjectException) { - result.o4 = (InvalidObjectException) e; + else if (e instanceof InvalidInputException) { + result.o4 = (InvalidInputException) e; + result.setO4IsSet(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, update_partition_column_statistics_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.update_partition_column_statistics(args.stats_obj,resultHandler); + } + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_column_statistics extends org.apache.thrift.AsyncProcessFunction { + public get_table_column_statistics() { + super("get_table_column_statistics"); + } + + public get_table_column_statistics_args getEmptyArgsInstance() { + return new get_table_column_statistics_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(ColumnStatistics o) { + get_table_column_statistics_result result = new get_table_column_statistics_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_table_column_statistics_result result = new get_table_column_statistics_result(); + if (e instanceof NoSuchObjectException) { + result.o1 = (NoSuchObjectException) e; + result.setO1IsSet(true); + msg = result; + } + else if (e instanceof MetaException) { + result.o2 = (MetaException) e; + result.setO2IsSet(true); + msg = result; + } + else if (e instanceof InvalidInputException) { + result.o3 = (InvalidInputException) e; + result.setO3IsSet(true); + msg = result; + } + else if (e instanceof InvalidObjectException) { + result.o4 = (InvalidObjectException) e; result.setO4IsSet(true); msg = result; } @@ -34034,13 +34344,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 _list818 = iprot.readListBegin(); - struct.success = new ArrayList(_list818.size); - String _elem819; - for (int _i820 = 0; _i820 < _list818.size; ++_i820) + org.apache.thrift.protocol.TList _list834 = iprot.readListBegin(); + struct.success = new ArrayList(_list834.size); + String _elem835; + for (int _i836 = 0; _i836 < _list834.size; ++_i836) { - _elem819 = iprot.readString(); - struct.success.add(_elem819); + _elem835 = iprot.readString(); + struct.success.add(_elem835); } iprot.readListEnd(); } @@ -34075,9 +34385,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 _iter821 : struct.success) + for (String _iter837 : struct.success) { - oprot.writeString(_iter821); + oprot.writeString(_iter837); } oprot.writeListEnd(); } @@ -34116,9 +34426,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_databases_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter822 : struct.success) + for (String _iter838 : struct.success) { - oprot.writeString(_iter822); + oprot.writeString(_iter838); } } } @@ -34133,13 +34443,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 _list823 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list823.size); - String _elem824; - for (int _i825 = 0; _i825 < _list823.size; ++_i825) + org.apache.thrift.protocol.TList _list839 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list839.size); + String _elem840; + for (int _i841 = 0; _i841 < _list839.size; ++_i841) { - _elem824 = iprot.readString(); - struct.success.add(_elem824); + _elem840 = iprot.readString(); + struct.success.add(_elem840); } } struct.setSuccessIsSet(true); @@ -34793,13 +35103,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 _list826 = iprot.readListBegin(); - struct.success = new ArrayList(_list826.size); - String _elem827; - for (int _i828 = 0; _i828 < _list826.size; ++_i828) + org.apache.thrift.protocol.TList _list842 = iprot.readListBegin(); + struct.success = new ArrayList(_list842.size); + String _elem843; + for (int _i844 = 0; _i844 < _list842.size; ++_i844) { - _elem827 = iprot.readString(); - struct.success.add(_elem827); + _elem843 = iprot.readString(); + struct.success.add(_elem843); } iprot.readListEnd(); } @@ -34834,9 +35144,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 _iter829 : struct.success) + for (String _iter845 : struct.success) { - oprot.writeString(_iter829); + oprot.writeString(_iter845); } oprot.writeListEnd(); } @@ -34875,9 +35185,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_databases_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter830 : struct.success) + for (String _iter846 : struct.success) { - oprot.writeString(_iter830); + oprot.writeString(_iter846); } } } @@ -34892,13 +35202,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 _list831 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list831.size); - String _elem832; - for (int _i833 = 0; _i833 < _list831.size; ++_i833) + org.apache.thrift.protocol.TList _list847 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list847.size); + String _elem848; + for (int _i849 = 0; _i849 < _list847.size; ++_i849) { - _elem832 = iprot.readString(); - struct.success.add(_elem832); + _elem848 = iprot.readString(); + struct.success.add(_elem848); } } struct.setSuccessIsSet(true); @@ -39505,16 +39815,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 _map834 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map834.size); - String _key835; - Type _val836; - for (int _i837 = 0; _i837 < _map834.size; ++_i837) + org.apache.thrift.protocol.TMap _map850 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map850.size); + String _key851; + Type _val852; + for (int _i853 = 0; _i853 < _map850.size; ++_i853) { - _key835 = iprot.readString(); - _val836 = new Type(); - _val836.read(iprot); - struct.success.put(_key835, _val836); + _key851 = iprot.readString(); + _val852 = new Type(); + _val852.read(iprot); + struct.success.put(_key851, _val852); } iprot.readMapEnd(); } @@ -39549,10 +39859,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 _iter838 : struct.success.entrySet()) + for (Map.Entry _iter854 : struct.success.entrySet()) { - oprot.writeString(_iter838.getKey()); - _iter838.getValue().write(oprot); + oprot.writeString(_iter854.getKey()); + _iter854.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -39591,10 +39901,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 _iter839 : struct.success.entrySet()) + for (Map.Entry _iter855 : struct.success.entrySet()) { - oprot.writeString(_iter839.getKey()); - _iter839.getValue().write(oprot); + oprot.writeString(_iter855.getKey()); + _iter855.getValue().write(oprot); } } } @@ -39609,16 +39919,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 _map840 = 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*_map840.size); - String _key841; - Type _val842; - for (int _i843 = 0; _i843 < _map840.size; ++_i843) + org.apache.thrift.protocol.TMap _map856 = 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*_map856.size); + String _key857; + Type _val858; + for (int _i859 = 0; _i859 < _map856.size; ++_i859) { - _key841 = iprot.readString(); - _val842 = new Type(); - _val842.read(iprot); - struct.success.put(_key841, _val842); + _key857 = iprot.readString(); + _val858 = new Type(); + _val858.read(iprot); + struct.success.put(_key857, _val858); } } struct.setSuccessIsSet(true); @@ -40653,14 +40963,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 _list844 = iprot.readListBegin(); - struct.success = new ArrayList(_list844.size); - FieldSchema _elem845; - for (int _i846 = 0; _i846 < _list844.size; ++_i846) + org.apache.thrift.protocol.TList _list860 = iprot.readListBegin(); + struct.success = new ArrayList(_list860.size); + FieldSchema _elem861; + for (int _i862 = 0; _i862 < _list860.size; ++_i862) { - _elem845 = new FieldSchema(); - _elem845.read(iprot); - struct.success.add(_elem845); + _elem861 = new FieldSchema(); + _elem861.read(iprot); + struct.success.add(_elem861); } iprot.readListEnd(); } @@ -40713,9 +41023,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 _iter847 : struct.success) + for (FieldSchema _iter863 : struct.success) { - _iter847.write(oprot); + _iter863.write(oprot); } oprot.writeListEnd(); } @@ -40770,9 +41080,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter848 : struct.success) + for (FieldSchema _iter864 : struct.success) { - _iter848.write(oprot); + _iter864.write(oprot); } } } @@ -40793,14 +41103,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 _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 _list865 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list865.size); + FieldSchema _elem866; + for (int _i867 = 0; _i867 < _list865.size; ++_i867) { - _elem850 = new FieldSchema(); - _elem850.read(iprot); - struct.success.add(_elem850); + _elem866 = new FieldSchema(); + _elem866.read(iprot); + struct.success.add(_elem866); } } struct.setSuccessIsSet(true); @@ -41954,14 +42264,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 _list852 = iprot.readListBegin(); - struct.success = new ArrayList(_list852.size); - FieldSchema _elem853; - for (int _i854 = 0; _i854 < _list852.size; ++_i854) + org.apache.thrift.protocol.TList _list868 = iprot.readListBegin(); + struct.success = new ArrayList(_list868.size); + FieldSchema _elem869; + for (int _i870 = 0; _i870 < _list868.size; ++_i870) { - _elem853 = new FieldSchema(); - _elem853.read(iprot); - struct.success.add(_elem853); + _elem869 = new FieldSchema(); + _elem869.read(iprot); + struct.success.add(_elem869); } iprot.readListEnd(); } @@ -42014,9 +42324,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 _iter855 : struct.success) + for (FieldSchema _iter871 : struct.success) { - _iter855.write(oprot); + _iter871.write(oprot); } oprot.writeListEnd(); } @@ -42071,9 +42381,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter856 : struct.success) + for (FieldSchema _iter872 : struct.success) { - _iter856.write(oprot); + _iter872.write(oprot); } } } @@ -42094,14 +42404,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 _list857 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list857.size); - FieldSchema _elem858; - for (int _i859 = 0; _i859 < _list857.size; ++_i859) + org.apache.thrift.protocol.TList _list873 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list873.size); + FieldSchema _elem874; + for (int _i875 = 0; _i875 < _list873.size; ++_i875) { - _elem858 = new FieldSchema(); - _elem858.read(iprot); - struct.success.add(_elem858); + _elem874 = new FieldSchema(); + _elem874.read(iprot); + struct.success.add(_elem874); } } struct.setSuccessIsSet(true); @@ -43146,14 +43456,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 _list860 = iprot.readListBegin(); - struct.success = new ArrayList(_list860.size); - FieldSchema _elem861; - for (int _i862 = 0; _i862 < _list860.size; ++_i862) + org.apache.thrift.protocol.TList _list876 = iprot.readListBegin(); + struct.success = new ArrayList(_list876.size); + FieldSchema _elem877; + for (int _i878 = 0; _i878 < _list876.size; ++_i878) { - _elem861 = new FieldSchema(); - _elem861.read(iprot); - struct.success.add(_elem861); + _elem877 = new FieldSchema(); + _elem877.read(iprot); + struct.success.add(_elem877); } iprot.readListEnd(); } @@ -43206,9 +43516,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 _iter863 : struct.success) + for (FieldSchema _iter879 : struct.success) { - _iter863.write(oprot); + _iter879.write(oprot); } oprot.writeListEnd(); } @@ -43263,9 +43573,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter864 : struct.success) + for (FieldSchema _iter880 : struct.success) { - _iter864.write(oprot); + _iter880.write(oprot); } } } @@ -43286,14 +43596,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 _list865 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list865.size); - FieldSchema _elem866; - for (int _i867 = 0; _i867 < _list865.size; ++_i867) + org.apache.thrift.protocol.TList _list881 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list881.size); + FieldSchema _elem882; + for (int _i883 = 0; _i883 < _list881.size; ++_i883) { - _elem866 = new FieldSchema(); - _elem866.read(iprot); - struct.success.add(_elem866); + _elem882 = new FieldSchema(); + _elem882.read(iprot); + struct.success.add(_elem882); } } struct.setSuccessIsSet(true); @@ -44447,14 +44757,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 _list868 = iprot.readListBegin(); - struct.success = new ArrayList(_list868.size); - FieldSchema _elem869; - for (int _i870 = 0; _i870 < _list868.size; ++_i870) + org.apache.thrift.protocol.TList _list884 = iprot.readListBegin(); + struct.success = new ArrayList(_list884.size); + FieldSchema _elem885; + for (int _i886 = 0; _i886 < _list884.size; ++_i886) { - _elem869 = new FieldSchema(); - _elem869.read(iprot); - struct.success.add(_elem869); + _elem885 = new FieldSchema(); + _elem885.read(iprot); + struct.success.add(_elem885); } iprot.readListEnd(); } @@ -44507,9 +44817,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 _iter871 : struct.success) + for (FieldSchema _iter887 : struct.success) { - _iter871.write(oprot); + _iter887.write(oprot); } oprot.writeListEnd(); } @@ -44564,9 +44874,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter872 : struct.success) + for (FieldSchema _iter888 : struct.success) { - _iter872.write(oprot); + _iter888.write(oprot); } } } @@ -44587,14 +44897,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 _list873 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list873.size); - FieldSchema _elem874; - for (int _i875 = 0; _i875 < _list873.size; ++_i875) + org.apache.thrift.protocol.TList _list889 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list889.size); + FieldSchema _elem890; + for (int _i891 = 0; _i891 < _list889.size; ++_i891) { - _elem874 = new FieldSchema(); - _elem874.read(iprot); - struct.success.add(_elem874); + _elem890 = new FieldSchema(); + _elem890.read(iprot); + struct.success.add(_elem890); } } struct.setSuccessIsSet(true); @@ -46818,6 +47128,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_en private static final org.apache.thrift.protocol.TField FOREIGN_KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("foreignKeys", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField UNIQUE_CONSTRAINTS_FIELD_DESC = new org.apache.thrift.protocol.TField("uniqueConstraints", org.apache.thrift.protocol.TType.LIST, (short)4); private static final org.apache.thrift.protocol.TField NOT_NULL_CONSTRAINTS_FIELD_DESC = new org.apache.thrift.protocol.TField("notNullConstraints", org.apache.thrift.protocol.TType.LIST, (short)5); + private static final org.apache.thrift.protocol.TField DEFAULT_CONSTRAINTS_FIELD_DESC = new org.apache.thrift.protocol.TField("defaultConstraints", org.apache.thrift.protocol.TType.LIST, (short)6); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -46830,6 +47141,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_en private List foreignKeys; // required private List uniqueConstraints; // required private List notNullConstraints; // required + private List defaultConstraints; // 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 { @@ -46837,7 +47149,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_en PRIMARY_KEYS((short)2, "primaryKeys"), FOREIGN_KEYS((short)3, "foreignKeys"), UNIQUE_CONSTRAINTS((short)4, "uniqueConstraints"), - NOT_NULL_CONSTRAINTS((short)5, "notNullConstraints"); + NOT_NULL_CONSTRAINTS((short)5, "notNullConstraints"), + DEFAULT_CONSTRAINTS((short)6, "defaultConstraints"); private static final Map byName = new HashMap(); @@ -46862,6 +47175,8 @@ public static _Fields findByThriftId(int fieldId) { return UNIQUE_CONSTRAINTS; case 5: // NOT_NULL_CONSTRAINTS return NOT_NULL_CONSTRAINTS; + case 6: // DEFAULT_CONSTRAINTS + return DEFAULT_CONSTRAINTS; default: return null; } @@ -46919,6 +47234,9 @@ public String getFieldName() { tmpMap.put(_Fields.NOT_NULL_CONSTRAINTS, new org.apache.thrift.meta_data.FieldMetaData("notNullConstraints", 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, SQLNotNullConstraint.class)))); + tmpMap.put(_Fields.DEFAULT_CONSTRAINTS, new org.apache.thrift.meta_data.FieldMetaData("defaultConstraints", 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, SQLDefaultConstraint.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_with_constraints_args.class, metaDataMap); } @@ -46931,7 +47249,8 @@ public create_table_with_constraints_args( List primaryKeys, List foreignKeys, List uniqueConstraints, - List notNullConstraints) + List notNullConstraints, + List defaultConstraints) { this(); this.tbl = tbl; @@ -46939,6 +47258,7 @@ public create_table_with_constraints_args( this.foreignKeys = foreignKeys; this.uniqueConstraints = uniqueConstraints; this.notNullConstraints = notNullConstraints; + this.defaultConstraints = defaultConstraints; } /** @@ -46976,6 +47296,13 @@ public create_table_with_constraints_args(create_table_with_constraints_args oth } this.notNullConstraints = __this__notNullConstraints; } + if (other.isSetDefaultConstraints()) { + List __this__defaultConstraints = new ArrayList(other.defaultConstraints.size()); + for (SQLDefaultConstraint other_element : other.defaultConstraints) { + __this__defaultConstraints.add(new SQLDefaultConstraint(other_element)); + } + this.defaultConstraints = __this__defaultConstraints; + } } public create_table_with_constraints_args deepCopy() { @@ -46989,6 +47316,7 @@ public void clear() { this.foreignKeys = null; this.uniqueConstraints = null; this.notNullConstraints = null; + this.defaultConstraints = null; } public Table getTbl() { @@ -47166,6 +47494,44 @@ public void setNotNullConstraintsIsSet(boolean value) { } } + public int getDefaultConstraintsSize() { + return (this.defaultConstraints == null) ? 0 : this.defaultConstraints.size(); + } + + public java.util.Iterator getDefaultConstraintsIterator() { + return (this.defaultConstraints == null) ? null : this.defaultConstraints.iterator(); + } + + public void addToDefaultConstraints(SQLDefaultConstraint elem) { + if (this.defaultConstraints == null) { + this.defaultConstraints = new ArrayList(); + } + this.defaultConstraints.add(elem); + } + + public List getDefaultConstraints() { + return this.defaultConstraints; + } + + public void setDefaultConstraints(List defaultConstraints) { + this.defaultConstraints = defaultConstraints; + } + + public void unsetDefaultConstraints() { + this.defaultConstraints = null; + } + + /** Returns true if field defaultConstraints is set (has been assigned a value) and false otherwise */ + public boolean isSetDefaultConstraints() { + return this.defaultConstraints != null; + } + + public void setDefaultConstraintsIsSet(boolean value) { + if (!value) { + this.defaultConstraints = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case TBL: @@ -47208,6 +47574,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case DEFAULT_CONSTRAINTS: + if (value == null) { + unsetDefaultConstraints(); + } else { + setDefaultConstraints((List)value); + } + break; + } } @@ -47228,6 +47602,9 @@ public Object getFieldValue(_Fields field) { case NOT_NULL_CONSTRAINTS: return getNotNullConstraints(); + case DEFAULT_CONSTRAINTS: + return getDefaultConstraints(); + } throw new IllegalStateException(); } @@ -47249,6 +47626,8 @@ public boolean isSet(_Fields field) { return isSetUniqueConstraints(); case NOT_NULL_CONSTRAINTS: return isSetNotNullConstraints(); + case DEFAULT_CONSTRAINTS: + return isSetDefaultConstraints(); } throw new IllegalStateException(); } @@ -47311,6 +47690,15 @@ public boolean equals(create_table_with_constraints_args that) { return false; } + boolean this_present_defaultConstraints = true && this.isSetDefaultConstraints(); + boolean that_present_defaultConstraints = true && that.isSetDefaultConstraints(); + if (this_present_defaultConstraints || that_present_defaultConstraints) { + if (!(this_present_defaultConstraints && that_present_defaultConstraints)) + return false; + if (!this.defaultConstraints.equals(that.defaultConstraints)) + return false; + } + return true; } @@ -47343,6 +47731,11 @@ public int hashCode() { if (present_notNullConstraints) list.add(notNullConstraints); + boolean present_defaultConstraints = true && (isSetDefaultConstraints()); + list.add(present_defaultConstraints); + if (present_defaultConstraints) + list.add(defaultConstraints); + return list.hashCode(); } @@ -47404,6 +47797,16 @@ public int compareTo(create_table_with_constraints_args other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetDefaultConstraints()).compareTo(other.isSetDefaultConstraints()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDefaultConstraints()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultConstraints, other.defaultConstraints); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -47463,6 +47866,14 @@ public String toString() { sb.append(this.notNullConstraints); } first = false; + if (!first) sb.append(", "); + sb.append("defaultConstraints:"); + if (this.defaultConstraints == null) { + sb.append("null"); + } else { + sb.append(this.defaultConstraints); + } + first = false; sb.append(")"); return sb.toString(); } @@ -47521,14 +47932,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 _list876 = iprot.readListBegin(); - struct.primaryKeys = new ArrayList(_list876.size); - SQLPrimaryKey _elem877; - for (int _i878 = 0; _i878 < _list876.size; ++_i878) + org.apache.thrift.protocol.TList _list892 = iprot.readListBegin(); + struct.primaryKeys = new ArrayList(_list892.size); + SQLPrimaryKey _elem893; + for (int _i894 = 0; _i894 < _list892.size; ++_i894) { - _elem877 = new SQLPrimaryKey(); - _elem877.read(iprot); - struct.primaryKeys.add(_elem877); + _elem893 = new SQLPrimaryKey(); + _elem893.read(iprot); + struct.primaryKeys.add(_elem893); } iprot.readListEnd(); } @@ -47540,14 +47951,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 _list879 = iprot.readListBegin(); - struct.foreignKeys = new ArrayList(_list879.size); - SQLForeignKey _elem880; - for (int _i881 = 0; _i881 < _list879.size; ++_i881) + org.apache.thrift.protocol.TList _list895 = iprot.readListBegin(); + struct.foreignKeys = new ArrayList(_list895.size); + SQLForeignKey _elem896; + for (int _i897 = 0; _i897 < _list895.size; ++_i897) { - _elem880 = new SQLForeignKey(); - _elem880.read(iprot); - struct.foreignKeys.add(_elem880); + _elem896 = new SQLForeignKey(); + _elem896.read(iprot); + struct.foreignKeys.add(_elem896); } iprot.readListEnd(); } @@ -47559,14 +47970,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 _list882 = iprot.readListBegin(); - struct.uniqueConstraints = new ArrayList(_list882.size); - SQLUniqueConstraint _elem883; - for (int _i884 = 0; _i884 < _list882.size; ++_i884) + org.apache.thrift.protocol.TList _list898 = iprot.readListBegin(); + struct.uniqueConstraints = new ArrayList(_list898.size); + SQLUniqueConstraint _elem899; + for (int _i900 = 0; _i900 < _list898.size; ++_i900) { - _elem883 = new SQLUniqueConstraint(); - _elem883.read(iprot); - struct.uniqueConstraints.add(_elem883); + _elem899 = new SQLUniqueConstraint(); + _elem899.read(iprot); + struct.uniqueConstraints.add(_elem899); } iprot.readListEnd(); } @@ -47578,14 +47989,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 _list885 = iprot.readListBegin(); - struct.notNullConstraints = new ArrayList(_list885.size); - SQLNotNullConstraint _elem886; - for (int _i887 = 0; _i887 < _list885.size; ++_i887) + org.apache.thrift.protocol.TList _list901 = iprot.readListBegin(); + struct.notNullConstraints = new ArrayList(_list901.size); + SQLNotNullConstraint _elem902; + for (int _i903 = 0; _i903 < _list901.size; ++_i903) { - _elem886 = new SQLNotNullConstraint(); - _elem886.read(iprot); - struct.notNullConstraints.add(_elem886); + _elem902 = new SQLNotNullConstraint(); + _elem902.read(iprot); + struct.notNullConstraints.add(_elem902); } iprot.readListEnd(); } @@ -47594,6 +48005,25 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 6: // DEFAULT_CONSTRAINTS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list904 = iprot.readListBegin(); + struct.defaultConstraints = new ArrayList(_list904.size); + SQLDefaultConstraint _elem905; + for (int _i906 = 0; _i906 < _list904.size; ++_i906) + { + _elem905 = new SQLDefaultConstraint(); + _elem905.read(iprot); + struct.defaultConstraints.add(_elem905); + } + iprot.readListEnd(); + } + struct.setDefaultConstraintsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -47616,9 +48046,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 _iter888 : struct.primaryKeys) + for (SQLPrimaryKey _iter907 : struct.primaryKeys) { - _iter888.write(oprot); + _iter907.write(oprot); } oprot.writeListEnd(); } @@ -47628,9 +48058,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 _iter889 : struct.foreignKeys) + for (SQLForeignKey _iter908 : struct.foreignKeys) { - _iter889.write(oprot); + _iter908.write(oprot); } oprot.writeListEnd(); } @@ -47640,9 +48070,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 _iter890 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter909 : struct.uniqueConstraints) { - _iter890.write(oprot); + _iter909.write(oprot); } oprot.writeListEnd(); } @@ -47652,9 +48082,21 @@ 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 _iter891 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter910 : struct.notNullConstraints) + { + _iter910.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.defaultConstraints != null) { + oprot.writeFieldBegin(DEFAULT_CONSTRAINTS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.defaultConstraints.size())); + for (SQLDefaultConstraint _iter911 : struct.defaultConstraints) { - _iter891.write(oprot); + _iter911.write(oprot); } oprot.writeListEnd(); } @@ -47693,43 +48135,55 @@ public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_c if (struct.isSetNotNullConstraints()) { optionals.set(4); } - oprot.writeBitSet(optionals, 5); + if (struct.isSetDefaultConstraints()) { + optionals.set(5); + } + oprot.writeBitSet(optionals, 6); if (struct.isSetTbl()) { struct.tbl.write(oprot); } if (struct.isSetPrimaryKeys()) { { oprot.writeI32(struct.primaryKeys.size()); - for (SQLPrimaryKey _iter892 : struct.primaryKeys) + for (SQLPrimaryKey _iter912 : struct.primaryKeys) { - _iter892.write(oprot); + _iter912.write(oprot); } } } if (struct.isSetForeignKeys()) { { oprot.writeI32(struct.foreignKeys.size()); - for (SQLForeignKey _iter893 : struct.foreignKeys) + for (SQLForeignKey _iter913 : struct.foreignKeys) { - _iter893.write(oprot); + _iter913.write(oprot); } } } if (struct.isSetUniqueConstraints()) { { oprot.writeI32(struct.uniqueConstraints.size()); - for (SQLUniqueConstraint _iter894 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter914 : struct.uniqueConstraints) { - _iter894.write(oprot); + _iter914.write(oprot); } } } if (struct.isSetNotNullConstraints()) { { oprot.writeI32(struct.notNullConstraints.size()); - for (SQLNotNullConstraint _iter895 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter915 : struct.notNullConstraints) + { + _iter915.write(oprot); + } + } + } + if (struct.isSetDefaultConstraints()) { + { + oprot.writeI32(struct.defaultConstraints.size()); + for (SQLDefaultConstraint _iter916 : struct.defaultConstraints) { - _iter895.write(oprot); + _iter916.write(oprot); } } } @@ -47738,7 +48192,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_c @Override public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_constraints_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.tbl = new Table(); struct.tbl.read(iprot); @@ -47746,60 +48200,74 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_co } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list896 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.primaryKeys = new ArrayList(_list896.size); - SQLPrimaryKey _elem897; - for (int _i898 = 0; _i898 < _list896.size; ++_i898) + org.apache.thrift.protocol.TList _list917 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.primaryKeys = new ArrayList(_list917.size); + SQLPrimaryKey _elem918; + for (int _i919 = 0; _i919 < _list917.size; ++_i919) { - _elem897 = new SQLPrimaryKey(); - _elem897.read(iprot); - struct.primaryKeys.add(_elem897); + _elem918 = new SQLPrimaryKey(); + _elem918.read(iprot); + struct.primaryKeys.add(_elem918); } } struct.setPrimaryKeysIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list899 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.foreignKeys = new ArrayList(_list899.size); - SQLForeignKey _elem900; - for (int _i901 = 0; _i901 < _list899.size; ++_i901) + org.apache.thrift.protocol.TList _list920 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.foreignKeys = new ArrayList(_list920.size); + SQLForeignKey _elem921; + for (int _i922 = 0; _i922 < _list920.size; ++_i922) { - _elem900 = new SQLForeignKey(); - _elem900.read(iprot); - struct.foreignKeys.add(_elem900); + _elem921 = new SQLForeignKey(); + _elem921.read(iprot); + struct.foreignKeys.add(_elem921); } } struct.setForeignKeysIsSet(true); } if (incoming.get(3)) { { - org.apache.thrift.protocol.TList _list902 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.uniqueConstraints = new ArrayList(_list902.size); - SQLUniqueConstraint _elem903; - for (int _i904 = 0; _i904 < _list902.size; ++_i904) + org.apache.thrift.protocol.TList _list923 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.uniqueConstraints = new ArrayList(_list923.size); + SQLUniqueConstraint _elem924; + for (int _i925 = 0; _i925 < _list923.size; ++_i925) { - _elem903 = new SQLUniqueConstraint(); - _elem903.read(iprot); - struct.uniqueConstraints.add(_elem903); + _elem924 = new SQLUniqueConstraint(); + _elem924.read(iprot); + struct.uniqueConstraints.add(_elem924); } } struct.setUniqueConstraintsIsSet(true); } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list905 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.notNullConstraints = new ArrayList(_list905.size); - SQLNotNullConstraint _elem906; - for (int _i907 = 0; _i907 < _list905.size; ++_i907) + org.apache.thrift.protocol.TList _list926 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.notNullConstraints = new ArrayList(_list926.size); + SQLNotNullConstraint _elem927; + for (int _i928 = 0; _i928 < _list926.size; ++_i928) { - _elem906 = new SQLNotNullConstraint(); - _elem906.read(iprot); - struct.notNullConstraints.add(_elem906); + _elem927 = new SQLNotNullConstraint(); + _elem927.read(iprot); + struct.notNullConstraints.add(_elem927); } } struct.setNotNullConstraintsIsSet(true); } + if (incoming.get(5)) { + { + org.apache.thrift.protocol.TList _list929 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.defaultConstraints = new ArrayList(_list929.size); + SQLDefaultConstraint _elem930; + for (int _i931 = 0; _i931 < _list929.size; ++_i931) + { + _elem930 = new SQLDefaultConstraint(); + _elem930.read(iprot); + struct.defaultConstraints.add(_elem930); + } + } + struct.setDefaultConstraintsIsSet(true); + } } } @@ -52628,28 +53096,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_not_null_constra } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_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("drop_table_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_default_constraint_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_default_constraint_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 NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)3); + 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 drop_table_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_table_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_default_constraint_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_default_constraint_argsTupleSchemeFactory()); } - private String dbname; // required - private String name; // required - private boolean deleteData; // required + private AddDefaultConstraintRequest 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 { - DBNAME((short)1, "dbname"), - NAME((short)2, "name"), - DELETE_DATA((short)3, "deleteData"); + REQ((short)1, "req"); private static final Map byName = new HashMap(); @@ -52664,12 +53126,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_not_null_constra */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DBNAME - return DBNAME; - case 2: // NAME - return NAME; - case 3: // DELETE_DATA - return DELETE_DATA; + case 1: // REQ + return REQ; default: return null; } @@ -52710,153 +53168,73 @@ public String getFieldName() { } // isset id assignments - private static final int __DELETEDATA_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.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.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + 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, AddDefaultConstraintRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_default_constraint_args.class, metaDataMap); } - public drop_table_args() { + public add_default_constraint_args() { } - public drop_table_args( - String dbname, - String name, - boolean deleteData) + public add_default_constraint_args( + AddDefaultConstraintRequest req) { this(); - this.dbname = dbname; - this.name = name; - this.deleteData = deleteData; - setDeleteDataIsSet(true); + this.req = req; } /** * Performs a deep copy on other. */ - public drop_table_args(drop_table_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetDbname()) { - this.dbname = other.dbname; - } - if (other.isSetName()) { - this.name = other.name; + public add_default_constraint_args(add_default_constraint_args other) { + if (other.isSetReq()) { + this.req = new AddDefaultConstraintRequest(other.req); } - this.deleteData = other.deleteData; } - public drop_table_args deepCopy() { - return new drop_table_args(this); + public add_default_constraint_args deepCopy() { + return new add_default_constraint_args(this); } @Override public void clear() { - this.dbname = null; - this.name = null; - setDeleteDataIsSet(false); - this.deleteData = false; - } - - public String getDbname() { - return this.dbname; - } - - public void setDbname(String dbname) { - this.dbname = dbname; - } - - public void unsetDbname() { - this.dbname = null; - } - - /** Returns true if field dbname is set (has been assigned a value) and false otherwise */ - public boolean isSetDbname() { - return this.dbname != null; - } - - public void setDbnameIsSet(boolean value) { - if (!value) { - this.dbname = null; - } + this.req = null; } - public String getName() { - return this.name; + public AddDefaultConstraintRequest getReq() { + return this.req; } - public void setName(String name) { - this.name = name; + public void setReq(AddDefaultConstraintRequest req) { + this.req = req; } - public void unsetName() { - this.name = null; + public void unsetReq() { + this.req = null; } - /** Returns true if field name is set (has been assigned a value) and false otherwise */ - public boolean isSetName() { - return this.name != 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 setNameIsSet(boolean value) { + public void setReqIsSet(boolean value) { if (!value) { - this.name = null; + this.req = null; } } - public boolean isDeleteData() { - return this.deleteData; - } - - public void setDeleteData(boolean deleteData) { - this.deleteData = deleteData; - setDeleteDataIsSet(true); - } - - public void unsetDeleteData() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); - } - - /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ - public boolean isSetDeleteData() { - return EncodingUtils.testBit(__isset_bitfield, __DELETEDATA_ISSET_ID); - } - - public void setDeleteDataIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { - case DBNAME: - if (value == null) { - unsetDbname(); - } else { - setDbname((String)value); - } - break; - - case NAME: - if (value == null) { - unsetName(); - } else { - setName((String)value); - } - break; - - case DELETE_DATA: + case REQ: if (value == null) { - unsetDeleteData(); + unsetReq(); } else { - setDeleteData((Boolean)value); + setReq((AddDefaultConstraintRequest)value); } break; @@ -52865,14 +53243,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DBNAME: - return getDbname(); - - case NAME: - return getName(); - - case DELETE_DATA: - return isDeleteData(); + case REQ: + return getReq(); } throw new IllegalStateException(); @@ -52885,12 +53257,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DBNAME: - return isSetDbname(); - case NAME: - return isSetName(); - case DELETE_DATA: - return isSetDeleteData(); + case REQ: + return isSetReq(); } throw new IllegalStateException(); } @@ -52899,39 +53267,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_table_args) - return this.equals((drop_table_args)that); + if (that instanceof add_default_constraint_args) + return this.equals((add_default_constraint_args)that); return false; } - public boolean equals(drop_table_args that) { + public boolean equals(add_default_constraint_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_name = true && this.isSetName(); - boolean that_present_name = true && that.isSetName(); - if (this_present_name || that_present_name) { - if (!(this_present_name && that_present_name)) - return false; - if (!this.name.equals(that.name)) - return false; - } - - boolean this_present_deleteData = true; - boolean that_present_deleteData = true; - if (this_present_deleteData || that_present_deleteData) { - if (!(this_present_deleteData && that_present_deleteData)) + 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.deleteData != that.deleteData) + if (!this.req.equals(that.req)) return false; } @@ -52942,58 +53292,28 @@ public boolean equals(drop_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_name = true && (isSetName()); - list.add(present_name); - if (present_name) - list.add(name); - - boolean present_deleteData = true; - list.add(present_deleteData); - if (present_deleteData) - list.add(deleteData); + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); return list.hashCode(); } @Override - public int compareTo(drop_table_args other) { + public int compareTo(add_default_constraint_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(isSetName()).compareTo(other.isSetName()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); if (lastComparison != 0) { return lastComparison; } - if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); if (lastComparison != 0) { return lastComparison; } @@ -53015,28 +53335,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_table_args("); + StringBuilder sb = new StringBuilder("add_default_constraint_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("name:"); - if (this.name == null) { + sb.append("req:"); + if (this.req == null) { sb.append("null"); } else { - sb.append(this.name); + sb.append(this.req); } first = false; - if (!first) sb.append(", "); - sb.append("deleteData:"); - sb.append(this.deleteData); - first = false; sb.append(")"); return sb.toString(); } @@ -53044,6 +53352,9 @@ 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 { @@ -53056,23 +53367,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept 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 drop_table_argsStandardSchemeFactory implements SchemeFactory { - public drop_table_argsStandardScheme getScheme() { - return new drop_table_argsStandardScheme(); + private static class add_default_constraint_argsStandardSchemeFactory implements SchemeFactory { + public add_default_constraint_argsStandardScheme getScheme() { + return new add_default_constraint_argsStandardScheme(); } } - private static class drop_table_argsStandardScheme extends StandardScheme { + private static class add_default_constraint_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_default_constraint_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -53082,26 +53391,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_args str 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: // NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // DELETE_DATA - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); + case 1: // REQ + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.req = new AddDefaultConstraintRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -53115,102 +53409,75 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_args str struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_default_constraint_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.name != null) { - oprot.writeFieldBegin(NAME_FIELD_DESC); - oprot.writeString(struct.name); + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); - oprot.writeBool(struct.deleteData); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class drop_table_argsTupleSchemeFactory implements SchemeFactory { - public drop_table_argsTupleScheme getScheme() { - return new drop_table_argsTupleScheme(); + private static class add_default_constraint_argsTupleSchemeFactory implements SchemeFactory { + public add_default_constraint_argsTupleScheme getScheme() { + return new add_default_constraint_argsTupleScheme(); } } - private static class drop_table_argsTupleScheme extends TupleScheme { + private static class add_default_constraint_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_default_constraint_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDbname()) { + if (struct.isSetReq()) { optionals.set(0); } - if (struct.isSetName()) { - optionals.set(1); - } - if (struct.isSetDeleteData()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetDbname()) { - oprot.writeString(struct.dbname); - } - if (struct.isSetName()) { - oprot.writeString(struct.name); - } - if (struct.isSetDeleteData()) { - oprot.writeBool(struct.deleteData); + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_default_constraint_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.dbname = iprot.readString(); - struct.setDbnameIsSet(true); - } - if (incoming.get(1)) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); - } - if (incoming.get(2)) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); + struct.req = new AddDefaultConstraintRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_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("drop_table_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_default_constraint_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_default_constraint_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 O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)2); + 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 drop_table_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_table_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_default_constraint_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_default_constraint_resultTupleSchemeFactory()); } private NoSuchObjectException o1; // required - private MetaException o3; // required + private MetaException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { O1((short)1, "o1"), - O3((short)2, "o3"); + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -53227,8 +53494,8 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // O1 return O1; - case 2: // O3 - return O3; + case 2: // O2 + return O2; default: return null; } @@ -53274,44 +53541,44 @@ 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.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.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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(drop_table_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_default_constraint_result.class, metaDataMap); } - public drop_table_result() { + public add_default_constraint_result() { } - public drop_table_result( + public add_default_constraint_result( NoSuchObjectException o1, - MetaException o3) + MetaException o2) { this(); this.o1 = o1; - this.o3 = o3; + this.o2 = o2; } /** * Performs a deep copy on other. */ - public drop_table_result(drop_table_result other) { + public add_default_constraint_result(add_default_constraint_result other) { if (other.isSetO1()) { this.o1 = new NoSuchObjectException(other.o1); } - if (other.isSetO3()) { - this.o3 = new MetaException(other.o3); + if (other.isSetO2()) { + this.o2 = new MetaException(other.o2); } } - public drop_table_result deepCopy() { - return new drop_table_result(this); + public add_default_constraint_result deepCopy() { + return new add_default_constraint_result(this); } @Override public void clear() { this.o1 = null; - this.o3 = null; + this.o2 = null; } public NoSuchObjectException getO1() { @@ -53337,26 +53604,26 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO3() { - return this.o3; + public MetaException getO2() { + return this.o2; } - public void setO3(MetaException o3) { - this.o3 = o3; + public void setO2(MetaException o2) { + this.o2 = o2; } - public void unsetO3() { - this.o3 = null; + public void unsetO2() { + this.o2 = null; } - /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ - public boolean isSetO3() { - return this.o3 != 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 setO3IsSet(boolean value) { + public void setO2IsSet(boolean value) { if (!value) { - this.o3 = null; + this.o2 = null; } } @@ -53370,11 +53637,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case O3: + case O2: if (value == null) { - unsetO3(); + unsetO2(); } else { - setO3((MetaException)value); + setO2((MetaException)value); } break; @@ -53386,8 +53653,8 @@ public Object getFieldValue(_Fields field) { case O1: return getO1(); - case O3: - return getO3(); + case O2: + return getO2(); } throw new IllegalStateException(); @@ -53402,8 +53669,8 @@ public boolean isSet(_Fields field) { switch (field) { case O1: return isSetO1(); - case O3: - return isSetO3(); + case O2: + return isSetO2(); } throw new IllegalStateException(); } @@ -53412,12 +53679,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_table_result) - return this.equals((drop_table_result)that); + if (that instanceof add_default_constraint_result) + return this.equals((add_default_constraint_result)that); return false; } - public boolean equals(drop_table_result that) { + public boolean equals(add_default_constraint_result that) { if (that == null) return false; @@ -53430,12 +53697,12 @@ public boolean equals(drop_table_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)) + 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.o3.equals(that.o3)) + if (!this.o2.equals(that.o2)) return false; } @@ -53451,16 +53718,16 @@ public int hashCode() { if (present_o1) list.add(o1); - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); + boolean present_o2 = true && (isSetO2()); + list.add(present_o2); + if (present_o2) + list.add(o2); return list.hashCode(); } @Override - public int compareTo(drop_table_result other) { + public int compareTo(add_default_constraint_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -53477,12 +53744,12 @@ public int compareTo(drop_table_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); if (lastComparison != 0) { return lastComparison; } - if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); if (lastComparison != 0) { return lastComparison; } @@ -53504,7 +53771,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_table_result("); + StringBuilder sb = new StringBuilder("add_default_constraint_result("); boolean first = true; sb.append("o1:"); @@ -53515,11 +53782,11 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("o3:"); - if (this.o3 == null) { + sb.append("o2:"); + if (this.o2 == null) { sb.append("null"); } else { - sb.append(this.o3); + sb.append(this.o2); } first = false; sb.append(")"); @@ -53547,15 +53814,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_table_resultStandardSchemeFactory implements SchemeFactory { - public drop_table_resultStandardScheme getScheme() { - return new drop_table_resultStandardScheme(); + private static class add_default_constraint_resultStandardSchemeFactory implements SchemeFactory { + public add_default_constraint_resultStandardScheme getScheme() { + return new add_default_constraint_resultStandardScheme(); } } - private static class drop_table_resultStandardScheme extends StandardScheme { + private static class add_default_constraint_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_default_constraint_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -53574,11 +53841,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_result s org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // O3 + case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -53592,7 +53859,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_result s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_default_constraint_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -53601,9 +53868,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_result struct.o1.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -53612,35 +53879,35 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_result } - private static class drop_table_resultTupleSchemeFactory implements SchemeFactory { - public drop_table_resultTupleScheme getScheme() { - return new drop_table_resultTupleScheme(); + private static class add_default_constraint_resultTupleSchemeFactory implements SchemeFactory { + public add_default_constraint_resultTupleScheme getScheme() { + return new add_default_constraint_resultTupleScheme(); } } - private static class drop_table_resultTupleScheme extends TupleScheme { + private static class add_default_constraint_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_default_constraint_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { optionals.set(0); } - if (struct.isSetO3()) { + if (struct.isSetO2()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetO1()) { struct.o1.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); + if (struct.isSetO2()) { + struct.o2.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_default_constraint_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -53649,40 +53916,37 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_result st struct.setO1IsSet(true); } if (incoming.get(1)) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_table_with_environment_context_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("drop_table_with_environment_context_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_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("drop_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 NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)3); - private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_table_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_table_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_table_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_table_argsTupleSchemeFactory()); } private String dbname; // required private String name; // required private boolean deleteData; // required - private EnvironmentContext environment_context; // 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"), NAME((short)2, "name"), - DELETE_DATA((short)3, "deleteData"), - ENVIRONMENT_CONTEXT((short)4, "environment_context"); + DELETE_DATA((short)3, "deleteData"); private static final Map byName = new HashMap(); @@ -53703,8 +53967,6 @@ public static _Fields findByThriftId(int fieldId) { return NAME; case 3: // DELETE_DATA return DELETE_DATA; - case 4: // ENVIRONMENT_CONTEXT - return ENVIRONMENT_CONTEXT; default: return null; } @@ -53756,33 +54018,29 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_args.class, metaDataMap); } - public drop_table_with_environment_context_args() { + public drop_table_args() { } - public drop_table_with_environment_context_args( + public drop_table_args( String dbname, String name, - boolean deleteData, - EnvironmentContext environment_context) + boolean deleteData) { this(); this.dbname = dbname; this.name = name; this.deleteData = deleteData; setDeleteDataIsSet(true); - this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public drop_table_with_environment_context_args(drop_table_with_environment_context_args other) { + public drop_table_args(drop_table_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDbname()) { this.dbname = other.dbname; @@ -53791,13 +54049,10 @@ public drop_table_with_environment_context_args(drop_table_with_environment_cont this.name = other.name; } this.deleteData = other.deleteData; - if (other.isSetEnvironment_context()) { - this.environment_context = new EnvironmentContext(other.environment_context); - } } - public drop_table_with_environment_context_args deepCopy() { - return new drop_table_with_environment_context_args(this); + public drop_table_args deepCopy() { + return new drop_table_args(this); } @Override @@ -53806,7 +54061,6 @@ public void clear() { this.name = null; setDeleteDataIsSet(false); this.deleteData = false; - this.environment_context = null; } public String getDbname() { @@ -53877,29 +54131,6 @@ public void setDeleteDataIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); } - public EnvironmentContext getEnvironment_context() { - return this.environment_context; - } - - public void setEnvironment_context(EnvironmentContext environment_context) { - this.environment_context = environment_context; - } - - public void unsetEnvironment_context() { - this.environment_context = null; - } - - /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ - public boolean isSetEnvironment_context() { - return this.environment_context != null; - } - - public void setEnvironment_contextIsSet(boolean value) { - if (!value) { - this.environment_context = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case DBNAME: @@ -53926,14 +54157,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case ENVIRONMENT_CONTEXT: - if (value == null) { - unsetEnvironment_context(); - } else { - setEnvironment_context((EnvironmentContext)value); - } - break; - } } @@ -53948,9 +54171,6 @@ public Object getFieldValue(_Fields field) { case DELETE_DATA: return isDeleteData(); - case ENVIRONMENT_CONTEXT: - return getEnvironment_context(); - } throw new IllegalStateException(); } @@ -53968,8 +54188,6 @@ public boolean isSet(_Fields field) { return isSetName(); case DELETE_DATA: return isSetDeleteData(); - case ENVIRONMENT_CONTEXT: - return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -53978,12 +54196,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_table_with_environment_context_args) - return this.equals((drop_table_with_environment_context_args)that); + if (that instanceof drop_table_args) + return this.equals((drop_table_args)that); return false; } - public boolean equals(drop_table_with_environment_context_args that) { + public boolean equals(drop_table_args that) { if (that == null) return false; @@ -54014,15 +54232,6 @@ public boolean equals(drop_table_with_environment_context_args that) { return false; } - boolean this_present_environment_context = true && this.isSetEnvironment_context(); - boolean that_present_environment_context = true && that.isSetEnvironment_context(); - if (this_present_environment_context || that_present_environment_context) { - if (!(this_present_environment_context && that_present_environment_context)) - return false; - if (!this.environment_context.equals(that.environment_context)) - return false; - } - return true; } @@ -54045,16 +54254,11 @@ public int hashCode() { if (present_deleteData) list.add(deleteData); - boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); - if (present_environment_context) - list.add(environment_context); - return list.hashCode(); } @Override - public int compareTo(drop_table_with_environment_context_args other) { + public int compareTo(drop_table_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -54091,16 +54295,6 @@ public int compareTo(drop_table_with_environment_context_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -54118,7 +54312,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_table_with_environment_context_args("); + StringBuilder sb = new StringBuilder("drop_table_args("); boolean first = true; sb.append("dbname:"); @@ -54140,14 +54334,6 @@ public String toString() { sb.append("deleteData:"); sb.append(this.deleteData); first = false; - if (!first) sb.append(", "); - sb.append("environment_context:"); - if (this.environment_context == null) { - sb.append("null"); - } else { - sb.append(this.environment_context); - } - first = false; sb.append(")"); return sb.toString(); } @@ -54155,9 +54341,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (environment_context != null) { - environment_context.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -54178,15 +54361,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_table_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public drop_table_with_environment_context_argsStandardScheme getScheme() { - return new drop_table_with_environment_context_argsStandardScheme(); + private static class drop_table_argsStandardSchemeFactory implements SchemeFactory { + public drop_table_argsStandardScheme getScheme() { + return new drop_table_argsStandardScheme(); } } - private static class drop_table_with_environment_context_argsStandardScheme extends StandardScheme { + private static class drop_table_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -54220,15 +54403,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_env org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // ENVIRONMENT_CONTEXT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -54238,7 +54412,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_env struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -54255,27 +54429,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_with_en oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); oprot.writeBool(struct.deleteData); oprot.writeFieldEnd(); - if (struct.environment_context != null) { - oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); - struct.environment_context.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class drop_table_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public drop_table_with_environment_context_argsTupleScheme getScheme() { - return new drop_table_with_environment_context_argsTupleScheme(); + private static class drop_table_argsTupleSchemeFactory implements SchemeFactory { + public drop_table_argsTupleScheme getScheme() { + return new drop_table_argsTupleScheme(); } } - private static class drop_table_with_environment_context_argsTupleScheme extends TupleScheme { + private static class drop_table_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDbname()) { @@ -54287,10 +54456,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_with_env if (struct.isSetDeleteData()) { optionals.set(2); } - if (struct.isSetEnvironment_context()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); if (struct.isSetDbname()) { oprot.writeString(struct.dbname); } @@ -54300,15 +54466,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_with_env if (struct.isSetDeleteData()) { oprot.writeBool(struct.deleteData); } - if (struct.isSetEnvironment_context()) { - struct.environment_context.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.dbname = iprot.readString(); struct.setDbnameIsSet(true); @@ -54321,26 +54484,21 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_envi struct.deleteData = iprot.readBool(); struct.setDeleteDataIsSet(true); } - if (incoming.get(3)) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_table_with_environment_context_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("drop_table_with_environment_context_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_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("drop_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 O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_table_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_table_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_table_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_table_resultTupleSchemeFactory()); } private NoSuchObjectException o1; // required @@ -54416,13 +54574,13 @@ 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(drop_table_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_result.class, metaDataMap); } - public drop_table_with_environment_context_result() { + public drop_table_result() { } - public drop_table_with_environment_context_result( + public drop_table_result( NoSuchObjectException o1, MetaException o3) { @@ -54434,7 +54592,7 @@ public drop_table_with_environment_context_result( /** * Performs a deep copy on other. */ - public drop_table_with_environment_context_result(drop_table_with_environment_context_result other) { + public drop_table_result(drop_table_result other) { if (other.isSetO1()) { this.o1 = new NoSuchObjectException(other.o1); } @@ -54443,8 +54601,8 @@ public drop_table_with_environment_context_result(drop_table_with_environment_co } } - public drop_table_with_environment_context_result deepCopy() { - return new drop_table_with_environment_context_result(this); + public drop_table_result deepCopy() { + return new drop_table_result(this); } @Override @@ -54551,12 +54709,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_table_with_environment_context_result) - return this.equals((drop_table_with_environment_context_result)that); + if (that instanceof drop_table_result) + return this.equals((drop_table_result)that); return false; } - public boolean equals(drop_table_with_environment_context_result that) { + public boolean equals(drop_table_result that) { if (that == null) return false; @@ -54599,7 +54757,7 @@ public int hashCode() { } @Override - public int compareTo(drop_table_with_environment_context_result other) { + public int compareTo(drop_table_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -54643,7 +54801,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_table_with_environment_context_result("); + StringBuilder sb = new StringBuilder("drop_table_result("); boolean first = true; sb.append("o1:"); @@ -54686,15 +54844,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_table_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public drop_table_with_environment_context_resultStandardScheme getScheme() { - return new drop_table_with_environment_context_resultStandardScheme(); + private static class drop_table_resultStandardSchemeFactory implements SchemeFactory { + public drop_table_resultStandardScheme getScheme() { + return new drop_table_resultStandardScheme(); } } - private static class drop_table_with_environment_context_resultStandardScheme extends StandardScheme { + private static class drop_table_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -54731,7 +54889,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_env struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -54751,16 +54909,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_with_en } - private static class drop_table_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public drop_table_with_environment_context_resultTupleScheme getScheme() { - return new drop_table_with_environment_context_resultTupleScheme(); + private static class drop_table_resultTupleSchemeFactory implements SchemeFactory { + public drop_table_resultTupleScheme getScheme() { + return new drop_table_resultTupleScheme(); } } - private static class drop_table_with_environment_context_resultTupleScheme extends TupleScheme { + private static class drop_table_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { @@ -54779,7 +54937,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_with_env } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -54797,28 +54955,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_envi } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class truncate_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("truncate_table_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_table_with_environment_context_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("drop_table_with_environment_context_args"); - private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PART_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("partNames", org.apache.thrift.protocol.TType.LIST, (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)1); + private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)3); + private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new truncate_table_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new truncate_table_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_table_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_table_with_environment_context_argsTupleSchemeFactory()); } - private String dbName; // required - private String tableName; // required - private List partNames; // required + private String dbname; // required + private String name; // required + private boolean deleteData; // required + private EnvironmentContext environment_context; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - DB_NAME((short)1, "dbName"), - TABLE_NAME((short)2, "tableName"), - PART_NAMES((short)3, "partNames"); + DBNAME((short)1, "dbname"), + NAME((short)2, "name"), + DELETE_DATA((short)3, "deleteData"), + ENVIRONMENT_CONTEXT((short)4, "environment_context"); private static final Map byName = new HashMap(); @@ -54833,12 +54994,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_envi */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TABLE_NAME - return TABLE_NAME; - case 3: // PART_NAMES - return PART_NAMES; + case 1: // DBNAME + return DBNAME; + case 2: // NAME + return NAME; + case 3: // DELETE_DATA + return DELETE_DATA; + case 4: // ENVIRONMENT_CONTEXT + return ENVIRONMENT_CONTEXT; default: return null; } @@ -54879,168 +55042,192 @@ public String getFieldName() { } // isset id assignments + private static final int __DELETEDATA_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("dbName", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_NAMES, new org.apache.thrift.meta_data.FieldMetaData("partNames", 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)))); + tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(truncate_table_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_with_environment_context_args.class, metaDataMap); } - public truncate_table_args() { + public drop_table_with_environment_context_args() { } - public truncate_table_args( - String dbName, - String tableName, - List partNames) + public drop_table_with_environment_context_args( + String dbname, + String name, + boolean deleteData, + EnvironmentContext environment_context) { this(); - this.dbName = dbName; - this.tableName = tableName; - this.partNames = partNames; + this.dbname = dbname; + this.name = name; + this.deleteData = deleteData; + setDeleteDataIsSet(true); + this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public truncate_table_args(truncate_table_args other) { - if (other.isSetDbName()) { - this.dbName = other.dbName; + public drop_table_with_environment_context_args(drop_table_with_environment_context_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetDbname()) { + this.dbname = other.dbname; } - if (other.isSetTableName()) { - this.tableName = other.tableName; + if (other.isSetName()) { + this.name = other.name; } - if (other.isSetPartNames()) { - List __this__partNames = new ArrayList(other.partNames); - this.partNames = __this__partNames; + this.deleteData = other.deleteData; + if (other.isSetEnvironment_context()) { + this.environment_context = new EnvironmentContext(other.environment_context); } } - public truncate_table_args deepCopy() { - return new truncate_table_args(this); + public drop_table_with_environment_context_args deepCopy() { + return new drop_table_with_environment_context_args(this); } @Override public void clear() { - this.dbName = null; - this.tableName = null; - this.partNames = null; + this.dbname = null; + this.name = null; + setDeleteDataIsSet(false); + this.deleteData = false; + this.environment_context = null; } - public String getDbName() { - return this.dbName; + public String getDbname() { + return this.dbname; } - public void setDbName(String dbName) { - this.dbName = dbName; + public void setDbname(String dbname) { + this.dbname = dbname; } - public void unsetDbName() { - this.dbName = null; + 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; + /** 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) { + public void setDbnameIsSet(boolean value) { if (!value) { - this.dbName = null; + this.dbname = null; } } - public String getTableName() { - return this.tableName; + public String getName() { + return this.name; } - public void setTableName(String tableName) { - this.tableName = tableName; + public void setName(String name) { + this.name = name; } - public void unsetTableName() { - this.tableName = null; + public void unsetName() { + this.name = null; } - /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ - public boolean isSetTableName() { - return this.tableName != null; + /** Returns true if field name is set (has been assigned a value) and false otherwise */ + public boolean isSetName() { + return this.name != null; } - public void setTableNameIsSet(boolean value) { + public void setNameIsSet(boolean value) { if (!value) { - this.tableName = null; + this.name = null; } } - public int getPartNamesSize() { - return (this.partNames == null) ? 0 : this.partNames.size(); + public boolean isDeleteData() { + return this.deleteData; } - public java.util.Iterator getPartNamesIterator() { - return (this.partNames == null) ? null : this.partNames.iterator(); + public void setDeleteData(boolean deleteData) { + this.deleteData = deleteData; + setDeleteDataIsSet(true); } - public void addToPartNames(String elem) { - if (this.partNames == null) { - this.partNames = new ArrayList(); - } - this.partNames.add(elem); + public void unsetDeleteData() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); } - public List getPartNames() { - return this.partNames; + /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ + public boolean isSetDeleteData() { + return EncodingUtils.testBit(__isset_bitfield, __DELETEDATA_ISSET_ID); } - public void setPartNames(List partNames) { - this.partNames = partNames; + public void setDeleteDataIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); } - public void unsetPartNames() { - this.partNames = null; + public EnvironmentContext getEnvironment_context() { + return this.environment_context; } - /** Returns true if field partNames is set (has been assigned a value) and false otherwise */ - public boolean isSetPartNames() { - return this.partNames != null; + public void setEnvironment_context(EnvironmentContext environment_context) { + this.environment_context = environment_context; } - public void setPartNamesIsSet(boolean value) { + public void unsetEnvironment_context() { + this.environment_context = null; + } + + /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ + public boolean isSetEnvironment_context() { + return this.environment_context != null; + } + + public void setEnvironment_contextIsSet(boolean value) { if (!value) { - this.partNames = null; + this.environment_context = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_NAME: + case DBNAME: if (value == null) { - unsetDbName(); + unsetDbname(); } else { - setDbName((String)value); + setDbname((String)value); } break; - case TABLE_NAME: + case NAME: if (value == null) { - unsetTableName(); + unsetName(); } else { - setTableName((String)value); + setName((String)value); } break; - case PART_NAMES: + case DELETE_DATA: if (value == null) { - unsetPartNames(); + unsetDeleteData(); } else { - setPartNames((List)value); + setDeleteData((Boolean)value); + } + break; + + case ENVIRONMENT_CONTEXT: + if (value == null) { + unsetEnvironment_context(); + } else { + setEnvironment_context((EnvironmentContext)value); } break; @@ -55049,14 +55236,17 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDbName(); + case DBNAME: + return getDbname(); - case TABLE_NAME: - return getTableName(); + case NAME: + return getName(); - case PART_NAMES: - return getPartNames(); + case DELETE_DATA: + return isDeleteData(); + + case ENVIRONMENT_CONTEXT: + return getEnvironment_context(); } throw new IllegalStateException(); @@ -55069,12 +55259,14 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDbName(); - case TABLE_NAME: - return isSetTableName(); - case PART_NAMES: - return isSetPartNames(); + case DBNAME: + return isSetDbname(); + case NAME: + return isSetName(); + case DELETE_DATA: + return isSetDeleteData(); + case ENVIRONMENT_CONTEXT: + return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -55083,39 +55275,48 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof truncate_table_args) - return this.equals((truncate_table_args)that); + if (that instanceof drop_table_with_environment_context_args) + return this.equals((drop_table_with_environment_context_args)that); return false; } - public boolean equals(truncate_table_args that) { + public boolean equals(drop_table_with_environment_context_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)) + 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)) + 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)) + boolean this_present_name = true && this.isSetName(); + boolean that_present_name = true && that.isSetName(); + if (this_present_name || that_present_name) { + if (!(this_present_name && that_present_name)) return false; - if (!this.tableName.equals(that.tableName)) + if (!this.name.equals(that.name)) return false; } - boolean this_present_partNames = true && this.isSetPartNames(); - boolean that_present_partNames = true && that.isSetPartNames(); - if (this_present_partNames || that_present_partNames) { - if (!(this_present_partNames && that_present_partNames)) + boolean this_present_deleteData = true; + boolean that_present_deleteData = true; + if (this_present_deleteData || that_present_deleteData) { + if (!(this_present_deleteData && that_present_deleteData)) return false; - if (!this.partNames.equals(that.partNames)) + if (this.deleteData != that.deleteData) + return false; + } + + boolean this_present_environment_context = true && this.isSetEnvironment_context(); + boolean that_present_environment_context = true && that.isSetEnvironment_context(); + if (this_present_environment_context || that_present_environment_context) { + if (!(this_present_environment_context && that_present_environment_context)) + return false; + if (!this.environment_context.equals(that.environment_context)) return false; } @@ -55126,58 +55327,73 @@ public boolean equals(truncate_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_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_name = true && (isSetName()); + list.add(present_name); + if (present_name) + list.add(name); - boolean present_partNames = true && (isSetPartNames()); - list.add(present_partNames); - if (present_partNames) - list.add(partNames); + boolean present_deleteData = true; + list.add(present_deleteData); + if (present_deleteData) + list.add(deleteData); + + boolean present_environment_context = true && (isSetEnvironment_context()); + list.add(present_environment_context); + if (present_environment_context) + list.add(environment_context); return list.hashCode(); } @Override - public int compareTo(truncate_table_args other) { + public int compareTo(drop_table_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + 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 (isSetDbname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } - if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); + if (isSetName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartNames()).compareTo(other.isSetPartNames()); + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); if (lastComparison != 0) { return lastComparison; } - if (isSetPartNames()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partNames, other.partNames); + if (isSetDeleteData()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEnvironment_context()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -55199,30 +55415,34 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("truncate_table_args("); + StringBuilder sb = new StringBuilder("drop_table_with_environment_context_args("); boolean first = true; - sb.append("dbName:"); - if (this.dbName == null) { + sb.append("dbname:"); + if (this.dbname == null) { sb.append("null"); } else { - sb.append(this.dbName); + sb.append(this.dbname); } first = false; if (!first) sb.append(", "); - sb.append("tableName:"); - if (this.tableName == null) { + sb.append("name:"); + if (this.name == null) { sb.append("null"); } else { - sb.append(this.tableName); + sb.append(this.name); } first = false; if (!first) sb.append(", "); - sb.append("partNames:"); - if (this.partNames == null) { + sb.append("deleteData:"); + sb.append(this.deleteData); + first = false; + if (!first) sb.append(", "); + sb.append("environment_context:"); + if (this.environment_context == null) { sb.append("null"); } else { - sb.append(this.partNames); + sb.append(this.environment_context); } first = false; sb.append(")"); @@ -55232,6 +55452,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (environment_context != null) { + environment_context.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -55244,21 +55467,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept 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 truncate_table_argsStandardSchemeFactory implements SchemeFactory { - public truncate_table_argsStandardScheme getScheme() { - return new truncate_table_argsStandardScheme(); + private static class drop_table_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public drop_table_with_environment_context_argsStandardScheme getScheme() { + return new drop_table_with_environment_context_argsStandardScheme(); } } - private static class truncate_table_argsStandardScheme extends StandardScheme { + private static class drop_table_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -55268,36 +55493,35 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_args break; } switch (schemeField.id) { - case 1: // DB_NAME + case 1: // DBNAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dbName = iprot.readString(); - struct.setDbNameIsSet(true); + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // TABLE_NAME + case 2: // NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); + struct.name = iprot.readString(); + struct.setNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PART_NAMES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list908 = iprot.readListBegin(); - struct.partNames = new ArrayList(_list908.size); - String _elem909; - for (int _i910 = 0; _i910 < _list908.size; ++_i910) - { - _elem909 = iprot.readString(); - struct.partNames.add(_elem909); - } - iprot.readListEnd(); - } - struct.setPartNamesIsSet(true); + case 3: // DELETE_DATA + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // ENVIRONMENT_CONTEXT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -55311,30 +55535,26 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, truncate_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.dbName != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.dbName); + if (struct.dbname != null) { + oprot.writeFieldBegin(DBNAME_FIELD_DESC); + oprot.writeString(struct.dbname); oprot.writeFieldEnd(); } - if (struct.tableName != null) { - oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); - oprot.writeString(struct.tableName); + if (struct.name != null) { + oprot.writeFieldBegin(NAME_FIELD_DESC); + oprot.writeString(struct.name); oprot.writeFieldEnd(); } - if (struct.partNames != null) { - 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 _iter911 : struct.partNames) - { - oprot.writeString(_iter911); - } - oprot.writeListEnd(); - } + oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); + oprot.writeBool(struct.deleteData); + oprot.writeFieldEnd(); + if (struct.environment_context != null) { + oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); + struct.environment_context.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -55343,91 +55563,90 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, truncate_table_arg } - private static class truncate_table_argsTupleSchemeFactory implements SchemeFactory { - public truncate_table_argsTupleScheme getScheme() { - return new truncate_table_argsTupleScheme(); + private static class drop_table_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public drop_table_with_environment_context_argsTupleScheme getScheme() { + return new drop_table_with_environment_context_argsTupleScheme(); } } - private static class truncate_table_argsTupleScheme extends TupleScheme { + private static class drop_table_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, truncate_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDbName()) { + if (struct.isSetDbname()) { optionals.set(0); } - if (struct.isSetTableName()) { + if (struct.isSetName()) { optionals.set(1); } - if (struct.isSetPartNames()) { + if (struct.isSetDeleteData()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); - if (struct.isSetDbName()) { - oprot.writeString(struct.dbName); + if (struct.isSetEnvironment_context()) { + optionals.set(3); } - if (struct.isSetTableName()) { - oprot.writeString(struct.tableName); + oprot.writeBitSet(optionals, 4); + if (struct.isSetDbname()) { + oprot.writeString(struct.dbname); } - if (struct.isSetPartNames()) { - { - oprot.writeI32(struct.partNames.size()); - for (String _iter912 : struct.partNames) - { - oprot.writeString(_iter912); - } - } + if (struct.isSetName()) { + oprot.writeString(struct.name); + } + if (struct.isSetDeleteData()) { + oprot.writeBool(struct.deleteData); + } + if (struct.isSetEnvironment_context()) { + struct.environment_context.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_args 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.dbName = iprot.readString(); - struct.setDbNameIsSet(true); + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); } if (incoming.get(1)) { - struct.tableName = iprot.readString(); - struct.setTableNameIsSet(true); + struct.name = iprot.readString(); + struct.setNameIsSet(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.partNames = new ArrayList(_list913.size); - String _elem914; - for (int _i915 = 0; _i915 < _list913.size; ++_i915) - { - _elem914 = iprot.readString(); - struct.partNames.add(_elem914); - } - } - struct.setPartNamesIsSet(true); + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(true); + } + if (incoming.get(3)) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class truncate_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("truncate_table_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_table_with_environment_context_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("drop_table_with_environment_context_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 O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new truncate_table_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new truncate_table_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_table_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_table_with_environment_context_resultTupleSchemeFactory()); } - private MetaException o1; // required + private NoSuchObjectException o1; // required + private MetaException 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 { - O1((short)1, "o1"); + O1((short)1, "o1"), + O3((short)2, "o3"); private static final Map byName = new HashMap(); @@ -55444,6 +55663,8 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // O1 return O1; + case 2: // O3 + return O3; default: return null; } @@ -55489,43 +55710,51 @@ 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.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.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(truncate_table_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_with_environment_context_result.class, metaDataMap); } - public truncate_table_result() { + public drop_table_with_environment_context_result() { } - public truncate_table_result( - MetaException o1) + public drop_table_with_environment_context_result( + NoSuchObjectException o1, + MetaException o3) { this(); this.o1 = o1; + this.o3 = o3; } /** * Performs a deep copy on other. */ - public truncate_table_result(truncate_table_result other) { + public drop_table_with_environment_context_result(drop_table_with_environment_context_result other) { if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + this.o1 = new NoSuchObjectException(other.o1); + } + if (other.isSetO3()) { + this.o3 = new MetaException(other.o3); } } - public truncate_table_result deepCopy() { - return new truncate_table_result(this); + public drop_table_with_environment_context_result deepCopy() { + return new drop_table_with_environment_context_result(this); } @Override public void clear() { this.o1 = null; + this.o3 = null; } - public MetaException getO1() { + public NoSuchObjectException getO1() { return this.o1; } - public void setO1(MetaException o1) { + public void setO1(NoSuchObjectException o1) { this.o1 = o1; } @@ -55544,13 +55773,44 @@ public void setO1IsSet(boolean value) { } } + public MetaException getO3() { + return this.o3; + } + + public void setO3(MetaException 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 O1: if (value == null) { unsetO1(); } else { - setO1((MetaException)value); + setO1((NoSuchObjectException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((MetaException)value); } break; @@ -55562,6 +55822,9 @@ public Object getFieldValue(_Fields field) { case O1: return getO1(); + case O3: + return getO3(); + } throw new IllegalStateException(); } @@ -55575,6 +55838,8 @@ public boolean isSet(_Fields field) { switch (field) { case O1: return isSetO1(); + case O3: + return isSetO3(); } throw new IllegalStateException(); } @@ -55583,12 +55848,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof truncate_table_result) - return this.equals((truncate_table_result)that); + if (that instanceof drop_table_with_environment_context_result) + return this.equals((drop_table_with_environment_context_result)that); return false; } - public boolean equals(truncate_table_result that) { + public boolean equals(drop_table_with_environment_context_result that) { if (that == null) return false; @@ -55601,6 +55866,15 @@ public boolean equals(truncate_table_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; } @@ -55613,11 +55887,16 @@ public int hashCode() { if (present_o1) list.add(o1); + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + return list.hashCode(); } @Override - public int compareTo(truncate_table_result other) { + public int compareTo(drop_table_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -55634,6 +55913,16 @@ public int compareTo(truncate_table_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; } @@ -55651,7 +55940,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("truncate_table_result("); + StringBuilder sb = new StringBuilder("drop_table_with_environment_context_result("); boolean first = true; sb.append("o1:"); @@ -55661,6 +55950,14 @@ public String toString() { sb.append(this.o1); } 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(); } @@ -55686,15 +55983,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class truncate_table_resultStandardSchemeFactory implements SchemeFactory { - public truncate_table_resultStandardScheme getScheme() { - return new truncate_table_resultStandardScheme(); + private static class drop_table_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public drop_table_with_environment_context_resultStandardScheme getScheme() { + return new drop_table_with_environment_context_resultStandardScheme(); } } - private static class truncate_table_resultStandardScheme extends StandardScheme { + private static class drop_table_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -55706,13 +56003,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_resu switch (schemeField.id) { case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new MetaException(); + 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); } @@ -55722,7 +56028,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_resu struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, truncate_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -55731,66 +56037,85 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, truncate_table_res struct.o1.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 truncate_table_resultTupleSchemeFactory implements SchemeFactory { - public truncate_table_resultTupleScheme getScheme() { - return new truncate_table_resultTupleScheme(); + private static class drop_table_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public drop_table_with_environment_context_resultTupleScheme getScheme() { + return new drop_table_with_environment_context_resultTupleScheme(); } } - private static class truncate_table_resultTupleScheme extends TupleScheme { + private static class drop_table_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, truncate_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetO3()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); if (struct.isSetO1()) { struct.o1.write(oprot); } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_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.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } + if (incoming.get(1)) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_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_tables_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class truncate_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("truncate_table_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 PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pattern", 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("dbName", 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("tableName", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("partNames", org.apache.thrift.protocol.TType.LIST, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_tables_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_tables_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new truncate_table_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new truncate_table_argsTupleSchemeFactory()); } - private String db_name; // required - private String pattern; // required + private String dbName; // required + private String tableName; // required + private List partNames; // 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"), - PATTERN((short)2, "pattern"); + DB_NAME((short)1, "dbName"), + TABLE_NAME((short)2, "tableName"), + PART_NAMES((short)3, "partNames"); private static final Map byName = new HashMap(); @@ -55807,8 +56132,10 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // DB_NAME return DB_NAME; - case 2: // PATTERN - return PATTERN; + case 2: // TABLE_NAME + return TABLE_NAME; + case 3: // PART_NAMES + return PART_NAMES; default: return null; } @@ -55852,91 +56179,139 @@ 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_NAME, 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.PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pattern", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_NAMES, new org.apache.thrift.meta_data.FieldMetaData("partNames", 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_tables_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(truncate_table_args.class, metaDataMap); } - public get_tables_args() { + public truncate_table_args() { } - public get_tables_args( - String db_name, - String pattern) + public truncate_table_args( + String dbName, + String tableName, + List partNames) { this(); - this.db_name = db_name; - this.pattern = pattern; + this.dbName = dbName; + this.tableName = tableName; + this.partNames = partNames; } /** * Performs a deep copy on other. */ - public get_tables_args(get_tables_args other) { - if (other.isSetDb_name()) { - this.db_name = other.db_name; + public truncate_table_args(truncate_table_args other) { + if (other.isSetDbName()) { + this.dbName = other.dbName; } - if (other.isSetPattern()) { - this.pattern = other.pattern; + if (other.isSetTableName()) { + this.tableName = other.tableName; + } + if (other.isSetPartNames()) { + List __this__partNames = new ArrayList(other.partNames); + this.partNames = __this__partNames; } } - public get_tables_args deepCopy() { - return new get_tables_args(this); + public truncate_table_args deepCopy() { + return new truncate_table_args(this); } @Override public void clear() { - this.db_name = null; - this.pattern = null; + this.dbName = null; + this.tableName = null; + this.partNames = null; } - public String getDb_name() { - return this.db_name; + public String getDbName() { + return this.dbName; } - public void setDb_name(String db_name) { - this.db_name = db_name; + public void setDbName(String dbName) { + this.dbName = dbName; } - public void unsetDb_name() { - this.db_name = null; + public void unsetDbName() { + this.dbName = 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 dbName is set (has been assigned a value) and false otherwise */ + public boolean isSetDbName() { + return this.dbName != null; } - public void setDb_nameIsSet(boolean value) { + public void setDbNameIsSet(boolean value) { if (!value) { - this.db_name = null; + this.dbName = null; } } - public String getPattern() { - return this.pattern; + public String getTableName() { + return this.tableName; } - public void setPattern(String pattern) { - this.pattern = pattern; + public void setTableName(String tableName) { + this.tableName = tableName; } - public void unsetPattern() { - this.pattern = null; + public void unsetTableName() { + this.tableName = null; } - /** Returns true if field pattern is set (has been assigned a value) and false otherwise */ - public boolean isSetPattern() { - return this.pattern != 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 setPatternIsSet(boolean value) { + public void setTableNameIsSet(boolean value) { if (!value) { - this.pattern = null; + this.tableName = null; + } + } + + public int getPartNamesSize() { + return (this.partNames == null) ? 0 : this.partNames.size(); + } + + public java.util.Iterator getPartNamesIterator() { + return (this.partNames == null) ? null : this.partNames.iterator(); + } + + public void addToPartNames(String elem) { + if (this.partNames == null) { + this.partNames = new ArrayList(); + } + this.partNames.add(elem); + } + + public List getPartNames() { + return this.partNames; + } + + public void setPartNames(List partNames) { + this.partNames = partNames; + } + + public void unsetPartNames() { + this.partNames = null; + } + + /** Returns true if field partNames is set (has been assigned a value) and false otherwise */ + public boolean isSetPartNames() { + return this.partNames != null; + } + + public void setPartNamesIsSet(boolean value) { + if (!value) { + this.partNames = null; } } @@ -55944,17 +56319,25 @@ public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: if (value == null) { - unsetDb_name(); + unsetDbName(); } else { - setDb_name((String)value); + setDbName((String)value); } break; - case PATTERN: + case TABLE_NAME: if (value == null) { - unsetPattern(); + unsetTableName(); } else { - setPattern((String)value); + setTableName((String)value); + } + break; + + case PART_NAMES: + if (value == null) { + unsetPartNames(); + } else { + setPartNames((List)value); } break; @@ -55964,10 +56347,13 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case DB_NAME: - return getDb_name(); + return getDbName(); - case PATTERN: - return getPattern(); + case TABLE_NAME: + return getTableName(); + + case PART_NAMES: + return getPartNames(); } throw new IllegalStateException(); @@ -55981,9 +56367,11 @@ public boolean isSet(_Fields field) { switch (field) { case DB_NAME: - return isSetDb_name(); - case PATTERN: - return isSetPattern(); + return isSetDbName(); + case TABLE_NAME: + return isSetTableName(); + case PART_NAMES: + return isSetPartNames(); } throw new IllegalStateException(); } @@ -55992,30 +56380,39 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_tables_args) - return this.equals((get_tables_args)that); + if (that instanceof truncate_table_args) + return this.equals((truncate_table_args)that); return false; } - public boolean equals(get_tables_args that) { + public boolean equals(truncate_table_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_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.db_name.equals(that.db_name)) + if (!this.dbName.equals(that.dbName)) return false; } - boolean this_present_pattern = true && this.isSetPattern(); - boolean that_present_pattern = true && that.isSetPattern(); - if (this_present_pattern || that_present_pattern) { - if (!(this_present_pattern && that_present_pattern)) + 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.pattern.equals(that.pattern)) + if (!this.tableName.equals(that.tableName)) + return false; + } + + boolean this_present_partNames = true && this.isSetPartNames(); + boolean that_present_partNames = true && that.isSetPartNames(); + if (this_present_partNames || that_present_partNames) { + if (!(this_present_partNames && that_present_partNames)) + return false; + if (!this.partNames.equals(that.partNames)) return false; } @@ -56026,43 +56423,58 @@ public boolean equals(get_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_dbName = true && (isSetDbName()); + list.add(present_dbName); + if (present_dbName) + list.add(dbName); - boolean present_pattern = true && (isSetPattern()); - list.add(present_pattern); - if (present_pattern) - list.add(pattern); + boolean present_tableName = true && (isSetTableName()); + list.add(present_tableName); + if (present_tableName) + list.add(tableName); + + boolean present_partNames = true && (isSetPartNames()); + list.add(present_partNames); + if (present_partNames) + list.add(partNames); return list.hashCode(); } @Override - public int compareTo(get_tables_args other) { + public int compareTo(truncate_table_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(isSetDbName()).compareTo(other.isSetDbName()); if (lastComparison != 0) { return lastComparison; } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (isSetDbName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPattern()).compareTo(other.isSetPattern()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; } - if (isSetPattern()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pattern, other.pattern); + if (isSetTableName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPartNames()).compareTo(other.isSetPartNames()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPartNames()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partNames, other.partNames); if (lastComparison != 0) { return lastComparison; } @@ -56084,22 +56496,30 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_tables_args("); + StringBuilder sb = new StringBuilder("truncate_table_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { + sb.append("dbName:"); + if (this.dbName == null) { sb.append("null"); } else { - sb.append(this.db_name); + sb.append(this.dbName); } first = false; if (!first) sb.append(", "); - sb.append("pattern:"); - if (this.pattern == null) { + sb.append("tableName:"); + if (this.tableName == null) { sb.append("null"); } else { - sb.append(this.pattern); + sb.append(this.tableName); + } + first = false; + if (!first) sb.append(", "); + sb.append("partNames:"); + if (this.partNames == null) { + sb.append("null"); + } else { + sb.append(this.partNames); } first = false; sb.append(")"); @@ -56127,15 +56547,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_tables_argsStandardSchemeFactory implements SchemeFactory { - public get_tables_argsStandardScheme getScheme() { - return new get_tables_argsStandardScheme(); + private static class truncate_table_argsStandardSchemeFactory implements SchemeFactory { + public truncate_table_argsStandardScheme getScheme() { + return new truncate_table_argsStandardScheme(); } } - private static class get_tables_argsStandardScheme extends StandardScheme { + private static class truncate_table_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -56147,16 +56567,34 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_args str switch (schemeField.id) { case 1: // DB_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); + struct.dbName = iprot.readString(); + struct.setDbNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // PATTERN + case 2: // TABLE_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.pattern = iprot.readString(); - struct.setPatternIsSet(true); + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PART_NAMES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list932 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list932.size); + String _elem933; + for (int _i934 = 0; _i934 < _list932.size; ++_i934) + { + _elem933 = iprot.readString(); + struct.partNames.add(_elem933); + } + iprot.readListEnd(); + } + struct.setPartNamesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -56170,18 +56608,30 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_args str struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, truncate_table_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.db_name != null) { + if (struct.dbName != null) { oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.db_name); + oprot.writeString(struct.dbName); oprot.writeFieldEnd(); } - if (struct.pattern != null) { - oprot.writeFieldBegin(PATTERN_FIELD_DESC); - oprot.writeString(struct.pattern); + if (struct.tableName != null) { + oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); + oprot.writeString(struct.tableName); + oprot.writeFieldEnd(); + } + if (struct.partNames != null) { + 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 _iter935 : struct.partNames) + { + oprot.writeString(_iter935); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -56190,68 +56640,90 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_args st } - private static class get_tables_argsTupleSchemeFactory implements SchemeFactory { - public get_tables_argsTupleScheme getScheme() { - return new get_tables_argsTupleScheme(); + private static class truncate_table_argsTupleSchemeFactory implements SchemeFactory { + public truncate_table_argsTupleScheme getScheme() { + return new truncate_table_argsTupleScheme(); } } - private static class get_tables_argsTupleScheme extends TupleScheme { + private static class truncate_table_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, truncate_table_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetDbName()) { optionals.set(0); } - if (struct.isSetPattern()) { + if (struct.isSetTableName()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); + if (struct.isSetPartNames()) { + optionals.set(2); } - if (struct.isSetPattern()) { - oprot.writeString(struct.pattern); + oprot.writeBitSet(optionals, 3); + if (struct.isSetDbName()) { + oprot.writeString(struct.dbName); + } + if (struct.isSetTableName()) { + oprot.writeString(struct.tableName); + } + if (struct.isSetPartNames()) { + { + oprot.writeI32(struct.partNames.size()); + for (String _iter936 : struct.partNames) + { + oprot.writeString(_iter936); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, truncate_table_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); + struct.dbName = iprot.readString(); + struct.setDbNameIsSet(true); } if (incoming.get(1)) { - struct.pattern = iprot.readString(); - struct.setPatternIsSet(true); + struct.tableName = iprot.readString(); + struct.setTableNameIsSet(true); + } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TList _list937 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partNames = new ArrayList(_list937.size); + String _elem938; + for (int _i939 = 0; _i939 < _list937.size; ++_i939) + { + _elem938 = iprot.readString(); + struct.partNames.add(_elem938); + } + } + struct.setPartNamesIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_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_tables_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class truncate_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("truncate_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.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_tables_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_tables_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new truncate_table_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new truncate_table_resultTupleSchemeFactory()); } - private List success; // required private MetaException o1; // 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"); private static final Map byName = new HashMap(); @@ -56267,8 +56739,6 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_args stru */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // O1 return O1; default: @@ -56314,88 +56784,40 @@ 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.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))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(truncate_table_result.class, metaDataMap); } - public get_tables_result() { + public truncate_table_result() { } - public get_tables_result( - List success, + public truncate_table_result( MetaException o1) { this(); - this.success = success; this.o1 = o1; } /** * Performs a deep copy on other. */ - public get_tables_result(get_tables_result other) { - if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); - this.success = __this__success; - } + public truncate_table_result(truncate_table_result other) { if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } } - public get_tables_result deepCopy() { - return new get_tables_result(this); + public truncate_table_result deepCopy() { + return new truncate_table_result(this); } @Override public void clear() { - this.success = null; this.o1 = null; } - 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(List 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; } @@ -56421,14 +56843,6 @@ public void setO1IsSet(boolean value) { public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((List)value); - } - break; - case O1: if (value == null) { unsetO1(); @@ -56442,9 +56856,6 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case O1: return getO1(); @@ -56459,8 +56870,6 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); case O1: return isSetO1(); } @@ -56471,24 +56880,15 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_tables_result) - return this.equals((get_tables_result)that); + if (that instanceof truncate_table_result) + return this.equals((truncate_table_result)that); return false; } - public boolean equals(get_tables_result that) { + public boolean equals(truncate_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) { @@ -56505,11 +56905,6 @@ public boolean equals(get_tables_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) @@ -56519,23 +56914,13 @@ public int hashCode() { } @Override - public int compareTo(get_tables_result other) { + public int compareTo(truncate_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; @@ -56563,17 +56948,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_tables_result("); + StringBuilder sb = new StringBuilder("truncate_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"); @@ -56606,15 +56983,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_tables_resultStandardSchemeFactory implements SchemeFactory { - public get_tables_resultStandardScheme getScheme() { - return new get_tables_resultStandardScheme(); + private static class truncate_table_resultStandardSchemeFactory implements SchemeFactory { + public truncate_table_resultStandardScheme getScheme() { + return new truncate_table_resultStandardScheme(); } } - private static class get_tables_resultStandardScheme extends StandardScheme { + private static class truncate_table_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, truncate_table_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -56624,24 +57001,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_result s break; } switch (schemeField.id) { - 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); - String _elem917; - for (int _i918 = 0; _i918 < _list916.size; ++_i918) - { - _elem917 = iprot.readString(); - struct.success.add(_elem917); - } - iprot.readListEnd(); - } - 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(); @@ -56660,22 +57019,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_result s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, truncate_table_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 _iter919 : struct.success) - { - oprot.writeString(_iter919); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -56687,57 +57034,32 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_result } - private static class get_tables_resultTupleSchemeFactory implements SchemeFactory { - public get_tables_resultTupleScheme getScheme() { - return new get_tables_resultTupleScheme(); + private static class truncate_table_resultTupleSchemeFactory implements SchemeFactory { + public truncate_table_resultTupleScheme getScheme() { + return new truncate_table_resultTupleScheme(); } } - private static class get_tables_resultTupleScheme extends TupleScheme { + private static class truncate_table_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, truncate_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); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (String _iter920 : struct.success) - { - oprot.writeString(_iter920); - } - } + optionals.set(0); } + oprot.writeBitSet(optionals, 1); if (struct.isSetO1()) { struct.o1.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, truncate_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)) { - { - org.apache.thrift.protocol.TList _list921 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list921.size); - String _elem922; - for (int _i923 = 0; _i923 < _list921.size; ++_i923) - { - _elem922 = iprot.readString(); - struct.success.add(_elem922); - } - } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); @@ -56747,28 +57069,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_result st } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_tables_by_type_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_tables_by_type_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_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_tables_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 PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pattern", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField TABLE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("tableType", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_tables_by_type_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_tables_by_type_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_tables_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_tables_argsTupleSchemeFactory()); } private String db_name; // required private String pattern; // required - private String tableType; // 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"), - PATTERN((short)2, "pattern"), - TABLE_TYPE((short)3, "tableType"); + PATTERN((short)2, "pattern"); private static final Map byName = new HashMap(); @@ -56787,8 +57106,6 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // PATTERN return PATTERN; - case 3: // TABLE_TYPE - return TABLE_TYPE; default: return null; } @@ -56836,50 +57153,42 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pattern", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TABLE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("tableType", 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_tables_by_type_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_args.class, metaDataMap); } - public get_tables_by_type_args() { + public get_tables_args() { } - public get_tables_by_type_args( + public get_tables_args( String db_name, - String pattern, - String tableType) + String pattern) { this(); this.db_name = db_name; this.pattern = pattern; - this.tableType = tableType; } /** * Performs a deep copy on other. */ - public get_tables_by_type_args(get_tables_by_type_args other) { + public get_tables_args(get_tables_args other) { if (other.isSetDb_name()) { this.db_name = other.db_name; } if (other.isSetPattern()) { this.pattern = other.pattern; } - if (other.isSetTableType()) { - this.tableType = other.tableType; - } } - public get_tables_by_type_args deepCopy() { - return new get_tables_by_type_args(this); + public get_tables_args deepCopy() { + return new get_tables_args(this); } @Override public void clear() { this.db_name = null; this.pattern = null; - this.tableType = null; } public String getDb_name() { @@ -56928,29 +57237,6 @@ public void setPatternIsSet(boolean value) { } } - public String getTableType() { - return this.tableType; - } - - public void setTableType(String tableType) { - this.tableType = tableType; - } - - public void unsetTableType() { - this.tableType = null; - } - - /** Returns true if field tableType is set (has been assigned a value) and false otherwise */ - public boolean isSetTableType() { - return this.tableType != null; - } - - public void setTableTypeIsSet(boolean value) { - if (!value) { - this.tableType = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -56969,14 +57255,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case TABLE_TYPE: - if (value == null) { - unsetTableType(); - } else { - setTableType((String)value); - } - break; - } } @@ -56988,9 +57266,6 @@ public Object getFieldValue(_Fields field) { case PATTERN: return getPattern(); - case TABLE_TYPE: - return getTableType(); - } throw new IllegalStateException(); } @@ -57006,8 +57281,6 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case PATTERN: return isSetPattern(); - case TABLE_TYPE: - return isSetTableType(); } throw new IllegalStateException(); } @@ -57016,12 +57289,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_tables_by_type_args) - return this.equals((get_tables_by_type_args)that); + if (that instanceof get_tables_args) + return this.equals((get_tables_args)that); return false; } - public boolean equals(get_tables_by_type_args that) { + public boolean equals(get_tables_args that) { if (that == null) return false; @@ -57043,15 +57316,6 @@ public boolean equals(get_tables_by_type_args that) { return false; } - boolean this_present_tableType = true && this.isSetTableType(); - boolean that_present_tableType = true && that.isSetTableType(); - if (this_present_tableType || that_present_tableType) { - if (!(this_present_tableType && that_present_tableType)) - return false; - if (!this.tableType.equals(that.tableType)) - return false; - } - return true; } @@ -57069,16 +57333,11 @@ public int hashCode() { if (present_pattern) list.add(pattern); - boolean present_tableType = true && (isSetTableType()); - list.add(present_tableType); - if (present_tableType) - list.add(tableType); - return list.hashCode(); } @Override - public int compareTo(get_tables_by_type_args other) { + public int compareTo(get_tables_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -57105,16 +57364,6 @@ public int compareTo(get_tables_by_type_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTableType()).compareTo(other.isSetTableType()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTableType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableType, other.tableType); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -57132,7 +57381,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_tables_by_type_args("); + StringBuilder sb = new StringBuilder("get_tables_args("); boolean first = true; sb.append("db_name:"); @@ -57150,14 +57399,6 @@ public String toString() { sb.append(this.pattern); } first = false; - if (!first) sb.append(", "); - sb.append("tableType:"); - if (this.tableType == null) { - sb.append("null"); - } else { - sb.append(this.tableType); - } - first = false; sb.append(")"); return sb.toString(); } @@ -57183,15 +57424,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_tables_by_type_argsStandardSchemeFactory implements SchemeFactory { - public get_tables_by_type_argsStandardScheme getScheme() { - return new get_tables_by_type_argsStandardScheme(); + private static class get_tables_argsStandardSchemeFactory implements SchemeFactory { + public get_tables_argsStandardScheme getScheme() { + return new get_tables_argsStandardScheme(); } } - private static class get_tables_by_type_argsStandardScheme extends StandardScheme { + private static class get_tables_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_by_type_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -57217,14 +57458,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_by_type_ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // TABLE_TYPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableType = iprot.readString(); - struct.setTableTypeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -57234,7 +57467,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_by_type_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_by_type_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -57248,27 +57481,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_by_type oprot.writeString(struct.pattern); oprot.writeFieldEnd(); } - if (struct.tableType != null) { - oprot.writeFieldBegin(TABLE_TYPE_FIELD_DESC); - oprot.writeString(struct.tableType); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_tables_by_type_argsTupleSchemeFactory implements SchemeFactory { - public get_tables_by_type_argsTupleScheme getScheme() { - return new get_tables_by_type_argsTupleScheme(); + private static class get_tables_argsTupleSchemeFactory implements SchemeFactory { + public get_tables_argsTupleScheme getScheme() { + return new get_tables_argsTupleScheme(); } } - private static class get_tables_by_type_argsTupleScheme extends TupleScheme { + private static class get_tables_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -57277,25 +57505,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_ if (struct.isSetPattern()) { optionals.set(1); } - if (struct.isSetTableType()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } if (struct.isSetPattern()) { oprot.writeString(struct.pattern); } - if (struct.isSetTableType()) { - oprot.writeString(struct.tableType); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_args 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.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -57304,25 +57526,21 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_a struct.pattern = iprot.readString(); struct.setPatternIsSet(true); } - if (incoming.get(2)) { - struct.tableType = iprot.readString(); - struct.setTableTypeIsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_tables_by_type_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_tables_by_type_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_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_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.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_tables_by_type_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_tables_by_type_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_tables_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_tables_resultTupleSchemeFactory()); } private List success; // required @@ -57399,13 +57617,13 @@ public String getFieldName() { 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_tables_by_type_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_result.class, metaDataMap); } - public get_tables_by_type_result() { + public get_tables_result() { } - public get_tables_by_type_result( + public get_tables_result( List success, MetaException o1) { @@ -57417,7 +57635,7 @@ public get_tables_by_type_result( /** * Performs a deep copy on other. */ - public get_tables_by_type_result(get_tables_by_type_result other) { + public get_tables_result(get_tables_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success); this.success = __this__success; @@ -57427,8 +57645,8 @@ public get_tables_by_type_result(get_tables_by_type_result other) { } } - public get_tables_by_type_result deepCopy() { - return new get_tables_by_type_result(this); + public get_tables_result deepCopy() { + return new get_tables_result(this); } @Override @@ -57550,12 +57768,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_tables_by_type_result) - return this.equals((get_tables_by_type_result)that); + if (that instanceof get_tables_result) + return this.equals((get_tables_result)that); return false; } - public boolean equals(get_tables_by_type_result that) { + public boolean equals(get_tables_result that) { if (that == null) return false; @@ -57598,7 +57816,7 @@ public int hashCode() { } @Override - public int compareTo(get_tables_by_type_result other) { + public int compareTo(get_tables_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -57642,7 +57860,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_tables_by_type_result("); + StringBuilder sb = new StringBuilder("get_tables_result("); boolean first = true; sb.append("success:"); @@ -57685,15 +57903,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_tables_by_type_resultStandardSchemeFactory implements SchemeFactory { - public get_tables_by_type_resultStandardScheme getScheme() { - return new get_tables_by_type_resultStandardScheme(); + private static class get_tables_resultStandardSchemeFactory implements SchemeFactory { + public get_tables_resultStandardScheme getScheme() { + return new get_tables_resultStandardScheme(); } } - private static class get_tables_by_type_resultStandardScheme extends StandardScheme { + private static class get_tables_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_by_type_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -57706,13 +57924,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 _list924 = iprot.readListBegin(); - struct.success = new ArrayList(_list924.size); - String _elem925; - for (int _i926 = 0; _i926 < _list924.size; ++_i926) + org.apache.thrift.protocol.TList _list940 = iprot.readListBegin(); + struct.success = new ArrayList(_list940.size); + String _elem941; + for (int _i942 = 0; _i942 < _list940.size; ++_i942) { - _elem925 = iprot.readString(); - struct.success.add(_elem925); + _elem941 = iprot.readString(); + struct.success.add(_elem941); } iprot.readListEnd(); } @@ -57739,7 +57957,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_by_type_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_by_type_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -57747,9 +57965,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 _iter927 : struct.success) + for (String _iter943 : struct.success) { - oprot.writeString(_iter927); + oprot.writeString(_iter943); } oprot.writeListEnd(); } @@ -57766,16 +57984,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_by_type } - private static class get_tables_by_type_resultTupleSchemeFactory implements SchemeFactory { - public get_tables_by_type_resultTupleScheme getScheme() { - return new get_tables_by_type_resultTupleScheme(); + private static class get_tables_resultTupleSchemeFactory implements SchemeFactory { + public get_tables_resultTupleScheme getScheme() { + return new get_tables_resultTupleScheme(); } } - private static class get_tables_by_type_resultTupleScheme extends TupleScheme { + private static class get_tables_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -57788,9 +58006,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter928 : struct.success) + for (String _iter944 : struct.success) { - oprot.writeString(_iter928); + oprot.writeString(_iter944); } } } @@ -57800,18 +58018,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_ } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_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 _list945 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list945.size); + String _elem946; + for (int _i947 = 0; _i947 < _list945.size; ++_i947) { - _elem930 = iprot.readString(); - struct.success.add(_elem930); + _elem946 = iprot.readString(); + struct.success.add(_elem946); } } struct.setSuccessIsSet(true); @@ -57826,22 +58044,28 @@ 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_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"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_tables_by_type_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_tables_by_type_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 PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pattern", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField TABLE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("tableType", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_materialized_views_for_rewriting_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_materialized_views_for_rewriting_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_tables_by_type_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_tables_by_type_argsTupleSchemeFactory()); } private String db_name; // required + private String pattern; // required + private String tableType; // 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_NAME((short)1, "db_name"), + PATTERN((short)2, "pattern"), + TABLE_TYPE((short)3, "tableType"); private static final Map byName = new HashMap(); @@ -57858,6 +58082,10 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // DB_NAME return DB_NAME; + case 2: // PATTERN + return PATTERN; + case 3: // TABLE_TYPE + return TABLE_TYPE; default: return null; } @@ -57903,36 +58131,52 @@ 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.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.PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pattern", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("tableType", 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_materialized_views_for_rewriting_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_by_type_args.class, metaDataMap); } - public get_materialized_views_for_rewriting_args() { + public get_tables_by_type_args() { } - public get_materialized_views_for_rewriting_args( - String db_name) + public get_tables_by_type_args( + String db_name, + String pattern, + String tableType) { this(); this.db_name = db_name; + this.pattern = pattern; + this.tableType = tableType; } /** * Performs a deep copy on other. */ - public get_materialized_views_for_rewriting_args(get_materialized_views_for_rewriting_args other) { + public get_tables_by_type_args(get_tables_by_type_args other) { if (other.isSetDb_name()) { this.db_name = other.db_name; } + if (other.isSetPattern()) { + this.pattern = other.pattern; + } + if (other.isSetTableType()) { + this.tableType = other.tableType; + } } - public get_materialized_views_for_rewriting_args deepCopy() { - return new get_materialized_views_for_rewriting_args(this); + public get_tables_by_type_args deepCopy() { + return new get_tables_by_type_args(this); } @Override public void clear() { this.db_name = null; + this.pattern = null; + this.tableType = null; } public String getDb_name() { @@ -57958,6 +58202,52 @@ public void setDb_nameIsSet(boolean value) { } } + public String getPattern() { + return this.pattern; + } + + public void setPattern(String pattern) { + this.pattern = pattern; + } + + public void unsetPattern() { + this.pattern = null; + } + + /** Returns true if field pattern is set (has been assigned a value) and false otherwise */ + public boolean isSetPattern() { + return this.pattern != null; + } + + public void setPatternIsSet(boolean value) { + if (!value) { + this.pattern = null; + } + } + + public String getTableType() { + return this.tableType; + } + + public void setTableType(String tableType) { + this.tableType = tableType; + } + + public void unsetTableType() { + this.tableType = null; + } + + /** Returns true if field tableType is set (has been assigned a value) and false otherwise */ + public boolean isSetTableType() { + return this.tableType != null; + } + + public void setTableTypeIsSet(boolean value) { + if (!value) { + this.tableType = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -57968,6 +58258,22 @@ public void setFieldValue(_Fields field, Object value) { } break; + case PATTERN: + if (value == null) { + unsetPattern(); + } else { + setPattern((String)value); + } + break; + + case TABLE_TYPE: + if (value == null) { + unsetTableType(); + } else { + setTableType((String)value); + } + break; + } } @@ -57976,6 +58282,12 @@ public Object getFieldValue(_Fields field) { case DB_NAME: return getDb_name(); + case PATTERN: + return getPattern(); + + case TABLE_TYPE: + return getTableType(); + } throw new IllegalStateException(); } @@ -57989,6 +58301,10 @@ public boolean isSet(_Fields field) { switch (field) { case DB_NAME: return isSetDb_name(); + case PATTERN: + return isSetPattern(); + case TABLE_TYPE: + return isSetTableType(); } throw new IllegalStateException(); } @@ -57997,12 +58313,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_materialized_views_for_rewriting_args) - return this.equals((get_materialized_views_for_rewriting_args)that); + if (that instanceof get_tables_by_type_args) + return this.equals((get_tables_by_type_args)that); return false; } - public boolean equals(get_materialized_views_for_rewriting_args that) { + public boolean equals(get_tables_by_type_args that) { if (that == null) return false; @@ -58015,6 +58331,24 @@ public boolean equals(get_materialized_views_for_rewriting_args that) { return false; } + boolean this_present_pattern = true && this.isSetPattern(); + boolean that_present_pattern = true && that.isSetPattern(); + if (this_present_pattern || that_present_pattern) { + if (!(this_present_pattern && that_present_pattern)) + return false; + if (!this.pattern.equals(that.pattern)) + return false; + } + + boolean this_present_tableType = true && this.isSetTableType(); + boolean that_present_tableType = true && that.isSetTableType(); + if (this_present_tableType || that_present_tableType) { + if (!(this_present_tableType && that_present_tableType)) + return false; + if (!this.tableType.equals(that.tableType)) + return false; + } + return true; } @@ -58027,11 +58361,21 @@ public int hashCode() { if (present_db_name) list.add(db_name); + boolean present_pattern = true && (isSetPattern()); + list.add(present_pattern); + if (present_pattern) + list.add(pattern); + + boolean present_tableType = true && (isSetTableType()); + list.add(present_tableType); + if (present_tableType) + list.add(tableType); + return list.hashCode(); } @Override - public int compareTo(get_materialized_views_for_rewriting_args other) { + public int compareTo(get_tables_by_type_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -58048,6 +58392,26 @@ public int compareTo(get_materialized_views_for_rewriting_args other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetPattern()).compareTo(other.isSetPattern()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPattern()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pattern, other.pattern); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTableType()).compareTo(other.isSetTableType()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTableType()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableType, other.tableType); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -58065,7 +58429,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_materialized_views_for_rewriting_args("); + StringBuilder sb = new StringBuilder("get_tables_by_type_args("); boolean first = true; sb.append("db_name:"); @@ -58075,6 +58439,22 @@ public String toString() { sb.append(this.db_name); } first = false; + if (!first) sb.append(", "); + sb.append("pattern:"); + if (this.pattern == null) { + sb.append("null"); + } else { + sb.append(this.pattern); + } + first = false; + if (!first) sb.append(", "); + sb.append("tableType:"); + if (this.tableType == null) { + sb.append("null"); + } else { + sb.append(this.tableType); + } + first = false; sb.append(")"); return sb.toString(); } @@ -58100,15 +58480,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - 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_tables_by_type_argsStandardSchemeFactory implements SchemeFactory { + public get_tables_by_type_argsStandardScheme getScheme() { + return new get_tables_by_type_argsStandardScheme(); } } - private static class get_materialized_views_for_rewriting_argsStandardScheme extends StandardScheme { + private static class get_tables_by_type_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_views_for_rewriting_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_by_type_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -58126,6 +58506,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_vi org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // PATTERN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.pattern = iprot.readString(); + struct.setPatternIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // TABLE_TYPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tableType = iprot.readString(); + struct.setTableTypeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -58135,7 +58531,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_vi struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialized_views_for_rewriting_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_by_type_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -58144,56 +58540,86 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialized_v oprot.writeString(struct.db_name); oprot.writeFieldEnd(); } + if (struct.pattern != null) { + oprot.writeFieldBegin(PATTERN_FIELD_DESC); + oprot.writeString(struct.pattern); + oprot.writeFieldEnd(); + } + if (struct.tableType != null) { + oprot.writeFieldBegin(TABLE_TYPE_FIELD_DESC); + oprot.writeString(struct.tableType); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - 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_tables_by_type_argsTupleSchemeFactory implements SchemeFactory { + public get_tables_by_type_argsTupleScheme getScheme() { + return new get_tables_by_type_argsTupleScheme(); } } - private static class get_materialized_views_for_rewriting_argsTupleScheme extends TupleScheme { + private static class get_tables_by_type_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_materialized_views_for_rewriting_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetPattern()) { + optionals.set(1); + } + if (struct.isSetTableType()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } + if (struct.isSetPattern()) { + oprot.writeString(struct.pattern); + } + if (struct.isSetTableType()) { + oprot.writeString(struct.tableType); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_materialized_views_for_rewriting_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_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); } + if (incoming.get(1)) { + struct.pattern = iprot.readString(); + struct.setPatternIsSet(true); + } + if (incoming.get(2)) { + struct.tableType = iprot.readString(); + struct.setTableTypeIsSet(true); + } } } } - @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"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_tables_by_type_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_tables_by_type_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_materialized_views_for_rewriting_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_materialized_views_for_rewriting_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_tables_by_type_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_tables_by_type_resultTupleSchemeFactory()); } private List success; // required @@ -58270,13 +58696,13 @@ public String getFieldName() { 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_materialized_views_for_rewriting_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_by_type_result.class, metaDataMap); } - public get_materialized_views_for_rewriting_result() { + public get_tables_by_type_result() { } - public get_materialized_views_for_rewriting_result( + public get_tables_by_type_result( List success, MetaException o1) { @@ -58288,7 +58714,7 @@ public get_materialized_views_for_rewriting_result( /** * Performs a deep copy on other. */ - public get_materialized_views_for_rewriting_result(get_materialized_views_for_rewriting_result other) { + public get_tables_by_type_result(get_tables_by_type_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success); this.success = __this__success; @@ -58298,8 +58724,8 @@ public get_materialized_views_for_rewriting_result(get_materialized_views_for_re } } - public get_materialized_views_for_rewriting_result deepCopy() { - return new get_materialized_views_for_rewriting_result(this); + public get_tables_by_type_result deepCopy() { + return new get_tables_by_type_result(this); } @Override @@ -58421,12 +58847,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_materialized_views_for_rewriting_result) - return this.equals((get_materialized_views_for_rewriting_result)that); + if (that instanceof get_tables_by_type_result) + return this.equals((get_tables_by_type_result)that); return false; } - public boolean equals(get_materialized_views_for_rewriting_result that) { + public boolean equals(get_tables_by_type_result that) { if (that == null) return false; @@ -58469,7 +58895,7 @@ public int hashCode() { } @Override - public int compareTo(get_materialized_views_for_rewriting_result other) { + public int compareTo(get_tables_by_type_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -58513,7 +58939,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_materialized_views_for_rewriting_result("); + StringBuilder sb = new StringBuilder("get_tables_by_type_result("); boolean first = true; sb.append("success:"); @@ -58556,15 +58982,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - 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_tables_by_type_resultStandardSchemeFactory implements SchemeFactory { + public get_tables_by_type_resultStandardScheme getScheme() { + return new get_tables_by_type_resultStandardScheme(); } } - private static class get_materialized_views_for_rewriting_resultStandardScheme extends StandardScheme { + private static class get_tables_by_type_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_views_for_rewriting_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_by_type_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -58577,13 +59003,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_vi case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list932 = iprot.readListBegin(); - struct.success = new ArrayList(_list932.size); - String _elem933; - for (int _i934 = 0; _i934 < _list932.size; ++_i934) + org.apache.thrift.protocol.TList _list948 = iprot.readListBegin(); + struct.success = new ArrayList(_list948.size); + String _elem949; + for (int _i950 = 0; _i950 < _list948.size; ++_i950) { - _elem933 = iprot.readString(); - struct.success.add(_elem933); + _elem949 = iprot.readString(); + struct.success.add(_elem949); } iprot.readListEnd(); } @@ -58610,7 +59036,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_vi struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialized_views_for_rewriting_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_by_type_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -58618,9 +59044,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialized_v oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter935 : struct.success) + for (String _iter951 : struct.success) { - oprot.writeString(_iter935); + oprot.writeString(_iter951); } oprot.writeListEnd(); } @@ -58637,16 +59063,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialized_v } - 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_tables_by_type_resultTupleSchemeFactory implements SchemeFactory { + public get_tables_by_type_resultTupleScheme getScheme() { + return new get_tables_by_type_resultTupleScheme(); } } - private static class get_materialized_views_for_rewriting_resultTupleScheme extends TupleScheme { + private static class get_tables_by_type_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_materialized_views_for_rewriting_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -58659,9 +59085,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_materialized_vi if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter936 : struct.success) + for (String _iter952 : struct.success) { - oprot.writeString(_iter936); + oprot.writeString(_iter952); } } } @@ -58671,18 +59097,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_materialized_vi } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_materialized_views_for_rewriting_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_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 _list937 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list937.size); - String _elem938; - for (int _i939 = 0; _i939 < _list937.size; ++_i939) + 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) { - _elem938 = iprot.readString(); - struct.success.add(_elem938); + _elem954 = iprot.readString(); + struct.success.add(_elem954); } } struct.setSuccessIsSet(true); @@ -58697,28 +59123,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_materialized_vie } - @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(); @@ -58733,12 +59153,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_materialized_vie */ 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; } @@ -58782,165 +59198,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; @@ -58949,14 +59270,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(); @@ -58969,12 +59284,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(); } @@ -58983,39 +59294,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; } @@ -59026,58 +59319,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; } @@ -59099,30 +59362,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(")"); @@ -59150,15 +59397,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) @@ -59168,36 +59415,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 _list940 = iprot.readListBegin(); - struct.tbl_types = new ArrayList(_list940.size); - String _elem941; - for (int _i942 = 0; _i942 < _list940.size; ++_i942) - { - _elem941 = iprot.readString(); - struct.tbl_types.add(_elem941); - } - 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); } @@ -59211,30 +59432,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 _iter943 : struct.tbl_types) - { - oprot.writeString(_iter943); - } - oprot.writeListEnd(); - } + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -59243,88 +59447,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 _iter944 : struct.tbl_types) - { - oprot.writeString(_iter944); - } - } + 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 _list945 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_types = new ArrayList(_list945.size); - String _elem946; - for (int _i947 = 0; _i947 < _list945.size; ++_i947) - { - _elem946 = iprot.readString(); - struct.tbl_types.add(_elem946); - } - } - 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. */ @@ -59394,18 +59563,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(); @@ -59416,12 +59585,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()) { @@ -59429,8 +59595,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 @@ -59443,22 +59609,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; } @@ -59506,7 +59672,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -59552,12 +59718,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; @@ -59600,7 +59766,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()); } @@ -59644,7 +59810,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:"); @@ -59687,15 +59853,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) @@ -59708,14 +59874,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 _list948 = iprot.readListBegin(); - struct.success = new ArrayList(_list948.size); - TableMeta _elem949; - for (int _i950 = 0; _i950 < _list948.size; ++_i950) + org.apache.thrift.protocol.TList _list956 = iprot.readListBegin(); + struct.success = new ArrayList(_list956.size); + String _elem957; + for (int _i958 = 0; _i958 < _list956.size; ++_i958) { - _elem949 = new TableMeta(); - _elem949.read(iprot); - struct.success.add(_elem949); + _elem957 = iprot.readString(); + struct.success.add(_elem957); } iprot.readListEnd(); } @@ -59742,17 +59907,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 _iter951 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter959 : struct.success) { - _iter951.write(oprot); + oprot.writeString(_iter959); } oprot.writeListEnd(); } @@ -59769,16 +59934,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()) { @@ -59791,9 +59956,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (TableMeta _iter952 : struct.success) + for (String _iter960 : struct.success) { - _iter952.write(oprot); + oprot.writeString(_iter960); } } } @@ -59803,19 +59968,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 _list953 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list953.size); - TableMeta _elem954; - for (int _i955 = 0; _i955 < _list953.size; ++_i955) + org.apache.thrift.protocol.TList _list961 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list961.size); + String _elem962; + for (int _i963 = 0; _i963 < _list961.size; ++_i963) { - _elem954 = new TableMeta(); - _elem954.read(iprot); - struct.success.add(_elem954); + _elem962 = iprot.readString(); + struct.success.add(_elem962); } } struct.setSuccessIsSet(true); @@ -59830,22 +59994,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(); @@ -59860,8 +60030,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; } @@ -59905,70 +60079,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; @@ -59977,8 +60246,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(); @@ -59991,8 +60266,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(); } @@ -60001,21 +60280,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; } @@ -60026,28 +60323,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; } @@ -60069,14 +60396,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(")"); @@ -60104,15 +60447,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) @@ -60122,10 +60465,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 _list964 = iprot.readListBegin(); + struct.tbl_types = new ArrayList(_list964.size); + String _elem965; + for (int _i966 = 0; _i966 < _list964.size; ++_i966) + { + _elem965 = iprot.readString(); + struct.tbl_types.add(_elem965); + } + iprot.readListEnd(); + } + struct.setTbl_typesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -60139,13 +60508,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 _iter967 : struct.tbl_types) + { + oprot.writeString(_iter967); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -60154,53 +60540,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 _iter968 : struct.tbl_types) + { + oprot.writeString(_iter968); + } + } } } @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 _list969 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_types = new ArrayList(_list969.size); + String _elem970; + for (int _i971 = 0; _i971 < _list969.size; ++_i971) + { + _elem970 = iprot.readString(); + struct.tbl_types.add(_elem970); + } + } + 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. */ @@ -60270,18 +60691,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(); @@ -60292,9 +60713,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()) { @@ -60302,8 +60726,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 @@ -60316,22 +60740,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; } @@ -60379,7 +60803,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -60425,12 +60849,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; @@ -60473,7 +60897,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()); } @@ -60517,7 +60941,880 @@ 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:"); + 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; + 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_meta_resultStandardSchemeFactory implements SchemeFactory { + public get_table_meta_resultStandardScheme getScheme() { + return new get_table_meta_resultStandardScheme(); + } + } + + private static class get_table_meta_resultStandardScheme extends StandardScheme { + + 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) + { + 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.LIST) { + { + org.apache.thrift.protocol.TList _list972 = iprot.readListBegin(); + struct.success = new ArrayList(_list972.size); + TableMeta _elem973; + for (int _i974 = 0; _i974 < _list972.size; ++_i974) + { + _elem973 = new TableMeta(); + _elem973.read(iprot); + struct.success.add(_elem973); + } + iprot.readListEnd(); + } + 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; + 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_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.STRUCT, struct.success.size())); + for (TableMeta _iter975 : struct.success) + { + _iter975.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + 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_table_meta_resultTupleScheme extends TupleScheme { + + @Override + 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()) { + optionals.set(0); + } + if (struct.isSetO1()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (TableMeta _iter976 : struct.success) + { + _iter976.write(oprot); + } + } + } + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + } + + @Override + 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 _list977 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list977.size); + TableMeta _elem978; + for (int _i979 = 0; _i979 < _list977.size; ++_i979) + { + _elem978 = new TableMeta(); + _elem978.read(iprot); + struct.success.add(_elem978); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + } + } + + } + + @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 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_all_tables_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_all_tables_argsTupleSchemeFactory()); + } + + 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_NAME((short)1, "db_name"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // DB_NAME + return DB_NAME; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("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_all_tables_args.class, metaDataMap); + } + + public get_all_tables_args() { + } + + public get_all_tables_args( + String db_name) + { + this(); + this.db_name = db_name; + } + + /** + * 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_all_tables_args deepCopy() { + return new get_all_tables_args(this); + } + + @Override + public void clear() { + this.db_name = null; + } + + public String getDb_name() { + return this.db_name; + } + + public void setDb_name(String db_name) { + this.db_name = db_name; + } + + public void unsetDb_name() { + this.db_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 setDb_nameIsSet(boolean value) { + if (!value) { + this.db_name = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case DB_NAME: + if (value == null) { + unsetDb_name(); + } else { + setDb_name((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case DB_NAME: + return getDb_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 DB_NAME: + return isSetDb_name(); + } + throw new IllegalStateException(); + } + + @Override + 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); + return false; + } + + public boolean equals(get_all_tables_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)) + return false; + if (!this.db_name.equals(that.db_name)) + return false; + } + + return true; + } + + @Override + 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); + + return list.hashCode(); + } + + @Override + 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(isSetDb_name()).compareTo(other.isSetDb_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_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_all_tables_args("); + boolean first = true; + + sb.append("db_name:"); + if (this.db_name == null) { + sb.append("null"); + } else { + sb.append(this.db_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_all_tables_argsStandardSchemeFactory implements SchemeFactory { + public get_all_tables_argsStandardScheme getScheme() { + return new get_all_tables_argsStandardScheme(); + } + } + + private static class get_all_tables_argsStandardScheme extends StandardScheme { + + 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) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // DB_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.db_name = iprot.readString(); + struct.setDb_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_all_tables_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); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + 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_all_tables_argsTupleScheme extends TupleScheme { + + @Override + 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.isSetDb_name()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); + } + } + + @Override + 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(1); + if (incoming.get(0)) { + 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_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.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()); + } + + private List success; // required + private MetaException o1; // 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"); + + 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; + 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.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))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_tables_result.class, metaDataMap); + } + + public get_all_tables_result() { + } + + public get_all_tables_result( + List success, + MetaException o1) + { + this(); + this.success = success; + this.o1 = o1; + } + + /** + * Performs a deep copy on other. + */ + public get_all_tables_result(get_all_tables_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success); + this.success = __this__success; + } + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); + } + } + + public get_all_tables_result deepCopy() { + return new get_all_tables_result(this); + } + + @Override + public void clear() { + this.success = null; + this.o1 = null; + } + + 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(List 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 void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((MetaException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case O1: + return getO1(); + + } + 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(); + } + throw new IllegalStateException(); + } + + @Override + 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); + return false; + } + + public boolean equals(get_all_tables_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; + } + + 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); + + return list.hashCode(); + } + + @Override + public int compareTo(get_all_tables_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; + } + } + 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_all_tables_result("); boolean first = true; sb.append("success:"); @@ -60581,13 +61878,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list956 = iprot.readListBegin(); - struct.success = new ArrayList(_list956.size); - String _elem957; - for (int _i958 = 0; _i958 < _list956.size; ++_i958) + org.apache.thrift.protocol.TList _list980 = iprot.readListBegin(); + struct.success = new ArrayList(_list980.size); + String _elem981; + for (int _i982 = 0; _i982 < _list980.size; ++_i982) { - _elem957 = iprot.readString(); - struct.success.add(_elem957); + _elem981 = iprot.readString(); + struct.success.add(_elem981); } iprot.readListEnd(); } @@ -60622,9 +61919,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter959 : struct.success) + for (String _iter983 : struct.success) { - oprot.writeString(_iter959); + oprot.writeString(_iter983); } oprot.writeListEnd(); } @@ -60663,9 +61960,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter960 : struct.success) + for (String _iter984 : struct.success) { - oprot.writeString(_iter960); + oprot.writeString(_iter984); } } } @@ -60680,13 +61977,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resul BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list961 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list961.size); - String _elem962; - for (int _i963 = 0; _i963 < _list961.size; ++_i963) + org.apache.thrift.protocol.TList _list985 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list985.size); + String _elem986; + for (int _i987 = 0; _i987 < _list985.size; ++_i987) { - _elem962 = iprot.readString(); - struct.success.add(_elem962); + _elem986 = iprot.readString(); + struct.success.add(_elem986); } } struct.setSuccessIsSet(true); @@ -62139,13 +63436,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 _list964 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list964.size); - String _elem965; - for (int _i966 = 0; _i966 < _list964.size; ++_i966) + org.apache.thrift.protocol.TList _list988 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list988.size); + String _elem989; + for (int _i990 = 0; _i990 < _list988.size; ++_i990) { - _elem965 = iprot.readString(); - struct.tbl_names.add(_elem965); + _elem989 = iprot.readString(); + struct.tbl_names.add(_elem989); } iprot.readListEnd(); } @@ -62176,9 +63473,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 _iter967 : struct.tbl_names) + for (String _iter991 : struct.tbl_names) { - oprot.writeString(_iter967); + oprot.writeString(_iter991); } oprot.writeListEnd(); } @@ -62215,9 +63512,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 _iter968 : struct.tbl_names) + for (String _iter992 : struct.tbl_names) { - oprot.writeString(_iter968); + oprot.writeString(_iter992); } } } @@ -62233,13 +63530,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list969 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = new ArrayList(_list969.size); - String _elem970; - for (int _i971 = 0; _i971 < _list969.size; ++_i971) + org.apache.thrift.protocol.TList _list993 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list993.size); + String _elem994; + for (int _i995 = 0; _i995 < _list993.size; ++_i995) { - _elem970 = iprot.readString(); - struct.tbl_names.add(_elem970); + _elem994 = iprot.readString(); + struct.tbl_names.add(_elem994); } } struct.setTbl_namesIsSet(true); @@ -62564,14 +63861,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 _list972 = iprot.readListBegin(); - struct.success = new ArrayList
(_list972.size); - Table _elem973; - for (int _i974 = 0; _i974 < _list972.size; ++_i974) + org.apache.thrift.protocol.TList _list996 = iprot.readListBegin(); + struct.success = new ArrayList
(_list996.size); + Table _elem997; + for (int _i998 = 0; _i998 < _list996.size; ++_i998) { - _elem973 = new Table(); - _elem973.read(iprot); - struct.success.add(_elem973); + _elem997 = new Table(); + _elem997.read(iprot); + struct.success.add(_elem997); } iprot.readListEnd(); } @@ -62597,9 +63894,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 _iter975 : struct.success) + for (Table _iter999 : struct.success) { - _iter975.write(oprot); + _iter999.write(oprot); } oprot.writeListEnd(); } @@ -62630,9 +63927,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Table _iter976 : struct.success) + for (Table _iter1000 : struct.success) { - _iter976.write(oprot); + _iter1000.write(oprot); } } } @@ -62644,14 +63941,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 _list977 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList
(_list977.size); - Table _elem978; - for (int _i979 = 0; _i979 < _list977.size; ++_i979) + org.apache.thrift.protocol.TList _list1001 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList
(_list1001.size); + Table _elem1002; + for (int _i1003 = 0; _i1003 < _list1001.size; ++_i1003) { - _elem978 = new Table(); - _elem978.read(iprot); - struct.success.add(_elem978); + _elem1002 = new Table(); + _elem1002.read(iprot); + struct.success.add(_elem1002); } } struct.setSuccessIsSet(true); @@ -65044,13 +66341,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialization case 2: // TBL_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list980 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list980.size); - String _elem981; - for (int _i982 = 0; _i982 < _list980.size; ++_i982) + org.apache.thrift.protocol.TList _list1004 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list1004.size); + String _elem1005; + for (int _i1006 = 0; _i1006 < _list1004.size; ++_i1006) { - _elem981 = iprot.readString(); - struct.tbl_names.add(_elem981); + _elem1005 = iprot.readString(); + struct.tbl_names.add(_elem1005); } iprot.readListEnd(); } @@ -65081,9 +66378,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_materializatio oprot.writeFieldBegin(TBL_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_names.size())); - for (String _iter983 : struct.tbl_names) + for (String _iter1007 : struct.tbl_names) { - oprot.writeString(_iter983); + oprot.writeString(_iter1007); } oprot.writeListEnd(); } @@ -65120,9 +66417,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_materialization if (struct.isSetTbl_names()) { { oprot.writeI32(struct.tbl_names.size()); - for (String _iter984 : struct.tbl_names) + for (String _iter1008 : struct.tbl_names) { - oprot.writeString(_iter984); + oprot.writeString(_iter1008); } } } @@ -65138,13 +66435,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_materialization_ } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list985 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = new ArrayList(_list985.size); - String _elem986; - for (int _i987 = 0; _i987 < _list985.size; ++_i987) + org.apache.thrift.protocol.TList _list1009 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list1009.size); + String _elem1010; + for (int _i1011 = 0; _i1011 < _list1009.size; ++_i1011) { - _elem986 = iprot.readString(); - struct.tbl_names.add(_elem986); + _elem1010 = iprot.readString(); + struct.tbl_names.add(_elem1010); } } struct.setTbl_namesIsSet(true); @@ -65717,16 +67014,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialization case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map988 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map988.size); - String _key989; - Materialization _val990; - for (int _i991 = 0; _i991 < _map988.size; ++_i991) + org.apache.thrift.protocol.TMap _map1012 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1012.size); + String _key1013; + Materialization _val1014; + for (int _i1015 = 0; _i1015 < _map1012.size; ++_i1015) { - _key989 = iprot.readString(); - _val990 = new Materialization(); - _val990.read(iprot); - struct.success.put(_key989, _val990); + _key1013 = iprot.readString(); + _val1014 = new Materialization(); + _val1014.read(iprot); + struct.success.put(_key1013, _val1014); } iprot.readMapEnd(); } @@ -65779,10 +67076,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_materializatio oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Map.Entry _iter992 : struct.success.entrySet()) + for (Map.Entry _iter1016 : struct.success.entrySet()) { - oprot.writeString(_iter992.getKey()); - _iter992.getValue().write(oprot); + oprot.writeString(_iter1016.getKey()); + _iter1016.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -65837,10 +67134,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_materialization if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter993 : struct.success.entrySet()) + for (Map.Entry _iter1017 : struct.success.entrySet()) { - oprot.writeString(_iter993.getKey()); - _iter993.getValue().write(oprot); + oprot.writeString(_iter1017.getKey()); + _iter1017.getValue().write(oprot); } } } @@ -65861,16 +67158,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_materialization_ BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map994 = 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*_map994.size); - String _key995; - Materialization _val996; - for (int _i997 = 0; _i997 < _map994.size; ++_i997) + org.apache.thrift.protocol.TMap _map1018 = 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*_map1018.size); + String _key1019; + Materialization _val1020; + for (int _i1021 = 0; _i1021 < _map1018.size; ++_i1021) { - _key995 = iprot.readString(); - _val996 = new Materialization(); - _val996.read(iprot); - struct.success.put(_key995, _val996); + _key1019 = iprot.readString(); + _val1020 = new Materialization(); + _val1020.read(iprot); + struct.success.put(_key1019, _val1020); } } struct.setSuccessIsSet(true); @@ -68159,13 +69456,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 _list998 = iprot.readListBegin(); - struct.success = new ArrayList(_list998.size); - String _elem999; - for (int _i1000 = 0; _i1000 < _list998.size; ++_i1000) + org.apache.thrift.protocol.TList _list1022 = iprot.readListBegin(); + struct.success = new ArrayList(_list1022.size); + String _elem1023; + for (int _i1024 = 0; _i1024 < _list1022.size; ++_i1024) { - _elem999 = iprot.readString(); - struct.success.add(_elem999); + _elem1023 = iprot.readString(); + struct.success.add(_elem1023); } iprot.readListEnd(); } @@ -68218,9 +69515,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 _iter1001 : struct.success) + for (String _iter1025 : struct.success) { - oprot.writeString(_iter1001); + oprot.writeString(_iter1025); } oprot.writeListEnd(); } @@ -68275,9 +69572,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1002 : struct.success) + for (String _iter1026 : struct.success) { - oprot.writeString(_iter1002); + oprot.writeString(_iter1026); } } } @@ -68298,13 +69595,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 _list1003 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1003.size); - String _elem1004; - for (int _i1005 = 0; _i1005 < _list1003.size; ++_i1005) + org.apache.thrift.protocol.TList _list1027 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1027.size); + String _elem1028; + for (int _i1029 = 0; _i1029 < _list1027.size; ++_i1029) { - _elem1004 = iprot.readString(); - struct.success.add(_elem1004); + _elem1028 = iprot.readString(); + struct.success.add(_elem1028); } } struct.setSuccessIsSet(true); @@ -74163,14 +75460,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 _list1006 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1006.size); - Partition _elem1007; - for (int _i1008 = 0; _i1008 < _list1006.size; ++_i1008) + org.apache.thrift.protocol.TList _list1030 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1030.size); + Partition _elem1031; + for (int _i1032 = 0; _i1032 < _list1030.size; ++_i1032) { - _elem1007 = new Partition(); - _elem1007.read(iprot); - struct.new_parts.add(_elem1007); + _elem1031 = new Partition(); + _elem1031.read(iprot); + struct.new_parts.add(_elem1031); } iprot.readListEnd(); } @@ -74196,9 +75493,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 _iter1009 : struct.new_parts) + for (Partition _iter1033 : struct.new_parts) { - _iter1009.write(oprot); + _iter1033.write(oprot); } oprot.writeListEnd(); } @@ -74229,9 +75526,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 _iter1010 : struct.new_parts) + for (Partition _iter1034 : struct.new_parts) { - _iter1010.write(oprot); + _iter1034.write(oprot); } } } @@ -74243,14 +75540,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 _list1011 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1011.size); - Partition _elem1012; - for (int _i1013 = 0; _i1013 < _list1011.size; ++_i1013) + org.apache.thrift.protocol.TList _list1035 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1035.size); + Partition _elem1036; + for (int _i1037 = 0; _i1037 < _list1035.size; ++_i1037) { - _elem1012 = new Partition(); - _elem1012.read(iprot); - struct.new_parts.add(_elem1012); + _elem1036 = new Partition(); + _elem1036.read(iprot); + struct.new_parts.add(_elem1036); } } struct.setNew_partsIsSet(true); @@ -75251,14 +76548,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 _list1014 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1014.size); - PartitionSpec _elem1015; - for (int _i1016 = 0; _i1016 < _list1014.size; ++_i1016) + org.apache.thrift.protocol.TList _list1038 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1038.size); + PartitionSpec _elem1039; + for (int _i1040 = 0; _i1040 < _list1038.size; ++_i1040) { - _elem1015 = new PartitionSpec(); - _elem1015.read(iprot); - struct.new_parts.add(_elem1015); + _elem1039 = new PartitionSpec(); + _elem1039.read(iprot); + struct.new_parts.add(_elem1039); } iprot.readListEnd(); } @@ -75284,9 +76581,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 _iter1017 : struct.new_parts) + for (PartitionSpec _iter1041 : struct.new_parts) { - _iter1017.write(oprot); + _iter1041.write(oprot); } oprot.writeListEnd(); } @@ -75317,9 +76614,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 _iter1018 : struct.new_parts) + for (PartitionSpec _iter1042 : struct.new_parts) { - _iter1018.write(oprot); + _iter1042.write(oprot); } } } @@ -75331,14 +76628,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 _list1019 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1019.size); - PartitionSpec _elem1020; - for (int _i1021 = 0; _i1021 < _list1019.size; ++_i1021) + org.apache.thrift.protocol.TList _list1043 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1043.size); + PartitionSpec _elem1044; + for (int _i1045 = 0; _i1045 < _list1043.size; ++_i1045) { - _elem1020 = new PartitionSpec(); - _elem1020.read(iprot); - struct.new_parts.add(_elem1020); + _elem1044 = new PartitionSpec(); + _elem1044.read(iprot); + struct.new_parts.add(_elem1044); } } struct.setNew_partsIsSet(true); @@ -76514,13 +77811,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 _list1022 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1022.size); - String _elem1023; - for (int _i1024 = 0; _i1024 < _list1022.size; ++_i1024) + org.apache.thrift.protocol.TList _list1046 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1046.size); + String _elem1047; + for (int _i1048 = 0; _i1048 < _list1046.size; ++_i1048) { - _elem1023 = iprot.readString(); - struct.part_vals.add(_elem1023); + _elem1047 = iprot.readString(); + struct.part_vals.add(_elem1047); } iprot.readListEnd(); } @@ -76556,9 +77853,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 _iter1025 : struct.part_vals) + for (String _iter1049 : struct.part_vals) { - oprot.writeString(_iter1025); + oprot.writeString(_iter1049); } oprot.writeListEnd(); } @@ -76601,9 +77898,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 _iter1026 : struct.part_vals) + for (String _iter1050 : struct.part_vals) { - oprot.writeString(_iter1026); + oprot.writeString(_iter1050); } } } @@ -76623,13 +77920,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1027 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1027.size); - String _elem1028; - for (int _i1029 = 0; _i1029 < _list1027.size; ++_i1029) + org.apache.thrift.protocol.TList _list1051 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1051.size); + String _elem1052; + for (int _i1053 = 0; _i1053 < _list1051.size; ++_i1053) { - _elem1028 = iprot.readString(); - struct.part_vals.add(_elem1028); + _elem1052 = iprot.readString(); + struct.part_vals.add(_elem1052); } } struct.setPart_valsIsSet(true); @@ -78938,13 +80235,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 _list1030 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1030.size); - String _elem1031; - for (int _i1032 = 0; _i1032 < _list1030.size; ++_i1032) + org.apache.thrift.protocol.TList _list1054 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1054.size); + String _elem1055; + for (int _i1056 = 0; _i1056 < _list1054.size; ++_i1056) { - _elem1031 = iprot.readString(); - struct.part_vals.add(_elem1031); + _elem1055 = iprot.readString(); + struct.part_vals.add(_elem1055); } iprot.readListEnd(); } @@ -78989,9 +80286,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 _iter1033 : struct.part_vals) + for (String _iter1057 : struct.part_vals) { - oprot.writeString(_iter1033); + oprot.writeString(_iter1057); } oprot.writeListEnd(); } @@ -79042,9 +80339,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 _iter1034 : struct.part_vals) + for (String _iter1058 : struct.part_vals) { - oprot.writeString(_iter1034); + oprot.writeString(_iter1058); } } } @@ -79067,13 +80364,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1035 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1035.size); - String _elem1036; - for (int _i1037 = 0; _i1037 < _list1035.size; ++_i1037) + org.apache.thrift.protocol.TList _list1059 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1059.size); + String _elem1060; + for (int _i1061 = 0; _i1061 < _list1059.size; ++_i1061) { - _elem1036 = iprot.readString(); - struct.part_vals.add(_elem1036); + _elem1060 = iprot.readString(); + struct.part_vals.add(_elem1060); } } struct.setPart_valsIsSet(true); @@ -82943,13 +84240,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 _list1038 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1038.size); - String _elem1039; - for (int _i1040 = 0; _i1040 < _list1038.size; ++_i1040) + org.apache.thrift.protocol.TList _list1062 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1062.size); + String _elem1063; + for (int _i1064 = 0; _i1064 < _list1062.size; ++_i1064) { - _elem1039 = iprot.readString(); - struct.part_vals.add(_elem1039); + _elem1063 = iprot.readString(); + struct.part_vals.add(_elem1063); } iprot.readListEnd(); } @@ -82993,9 +84290,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 _iter1041 : struct.part_vals) + for (String _iter1065 : struct.part_vals) { - oprot.writeString(_iter1041); + oprot.writeString(_iter1065); } oprot.writeListEnd(); } @@ -83044,9 +84341,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 _iter1042 : struct.part_vals) + for (String _iter1066 : struct.part_vals) { - oprot.writeString(_iter1042); + oprot.writeString(_iter1066); } } } @@ -83069,13 +84366,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1043 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1043.size); - String _elem1044; - for (int _i1045 = 0; _i1045 < _list1043.size; ++_i1045) + org.apache.thrift.protocol.TList _list1067 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1067.size); + String _elem1068; + for (int _i1069 = 0; _i1069 < _list1067.size; ++_i1069) { - _elem1044 = iprot.readString(); - struct.part_vals.add(_elem1044); + _elem1068 = iprot.readString(); + struct.part_vals.add(_elem1068); } } struct.setPart_valsIsSet(true); @@ -84314,13 +85611,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 _list1046 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1046.size); - String _elem1047; - for (int _i1048 = 0; _i1048 < _list1046.size; ++_i1048) + org.apache.thrift.protocol.TList _list1070 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1070.size); + String _elem1071; + for (int _i1072 = 0; _i1072 < _list1070.size; ++_i1072) { - _elem1047 = iprot.readString(); - struct.part_vals.add(_elem1047); + _elem1071 = iprot.readString(); + struct.part_vals.add(_elem1071); } iprot.readListEnd(); } @@ -84373,9 +85670,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 _iter1049 : struct.part_vals) + for (String _iter1073 : struct.part_vals) { - oprot.writeString(_iter1049); + oprot.writeString(_iter1073); } oprot.writeListEnd(); } @@ -84432,9 +85729,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 _iter1050 : struct.part_vals) + for (String _iter1074 : struct.part_vals) { - oprot.writeString(_iter1050); + oprot.writeString(_iter1074); } } } @@ -84460,13 +85757,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1051 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1051.size); - String _elem1052; - for (int _i1053 = 0; _i1053 < _list1051.size; ++_i1053) + org.apache.thrift.protocol.TList _list1075 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1075.size); + String _elem1076; + for (int _i1077 = 0; _i1077 < _list1075.size; ++_i1077) { - _elem1052 = iprot.readString(); - struct.part_vals.add(_elem1052); + _elem1076 = iprot.readString(); + struct.part_vals.add(_elem1076); } } struct.setPart_valsIsSet(true); @@ -89068,13 +90365,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 _list1054 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1054.size); - String _elem1055; - for (int _i1056 = 0; _i1056 < _list1054.size; ++_i1056) + org.apache.thrift.protocol.TList _list1078 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1078.size); + String _elem1079; + for (int _i1080 = 0; _i1080 < _list1078.size; ++_i1080) { - _elem1055 = iprot.readString(); - struct.part_vals.add(_elem1055); + _elem1079 = iprot.readString(); + struct.part_vals.add(_elem1079); } iprot.readListEnd(); } @@ -89110,9 +90407,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 _iter1057 : struct.part_vals) + for (String _iter1081 : struct.part_vals) { - oprot.writeString(_iter1057); + oprot.writeString(_iter1081); } oprot.writeListEnd(); } @@ -89155,9 +90452,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 _iter1058 : struct.part_vals) + for (String _iter1082 : struct.part_vals) { - oprot.writeString(_iter1058); + oprot.writeString(_iter1082); } } } @@ -89177,13 +90474,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1059 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1059.size); - String _elem1060; - for (int _i1061 = 0; _i1061 < _list1059.size; ++_i1061) + org.apache.thrift.protocol.TList _list1083 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1083.size); + String _elem1084; + for (int _i1085 = 0; _i1085 < _list1083.size; ++_i1085) { - _elem1060 = iprot.readString(); - struct.part_vals.add(_elem1060); + _elem1084 = iprot.readString(); + struct.part_vals.add(_elem1084); } } struct.setPart_valsIsSet(true); @@ -90401,15 +91698,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 _map1062 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map1062.size); - String _key1063; - String _val1064; - for (int _i1065 = 0; _i1065 < _map1062.size; ++_i1065) + org.apache.thrift.protocol.TMap _map1086 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map1086.size); + String _key1087; + String _val1088; + for (int _i1089 = 0; _i1089 < _map1086.size; ++_i1089) { - _key1063 = iprot.readString(); - _val1064 = iprot.readString(); - struct.partitionSpecs.put(_key1063, _val1064); + _key1087 = iprot.readString(); + _val1088 = iprot.readString(); + struct.partitionSpecs.put(_key1087, _val1088); } iprot.readMapEnd(); } @@ -90467,10 +91764,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 _iter1066 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1090 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1066.getKey()); - oprot.writeString(_iter1066.getValue()); + oprot.writeString(_iter1090.getKey()); + oprot.writeString(_iter1090.getValue()); } oprot.writeMapEnd(); } @@ -90533,10 +91830,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter1067 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1091 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1067.getKey()); - oprot.writeString(_iter1067.getValue()); + oprot.writeString(_iter1091.getKey()); + oprot.writeString(_iter1091.getValue()); } } } @@ -90560,15 +91857,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 _map1068 = 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*_map1068.size); - String _key1069; - String _val1070; - for (int _i1071 = 0; _i1071 < _map1068.size; ++_i1071) + org.apache.thrift.protocol.TMap _map1092 = 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*_map1092.size); + String _key1093; + String _val1094; + for (int _i1095 = 0; _i1095 < _map1092.size; ++_i1095) { - _key1069 = iprot.readString(); - _val1070 = iprot.readString(); - struct.partitionSpecs.put(_key1069, _val1070); + _key1093 = iprot.readString(); + _val1094 = iprot.readString(); + struct.partitionSpecs.put(_key1093, _val1094); } } struct.setPartitionSpecsIsSet(true); @@ -92014,15 +93311,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 _map1072 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map1072.size); - String _key1073; - String _val1074; - for (int _i1075 = 0; _i1075 < _map1072.size; ++_i1075) + org.apache.thrift.protocol.TMap _map1096 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map1096.size); + String _key1097; + String _val1098; + for (int _i1099 = 0; _i1099 < _map1096.size; ++_i1099) { - _key1073 = iprot.readString(); - _val1074 = iprot.readString(); - struct.partitionSpecs.put(_key1073, _val1074); + _key1097 = iprot.readString(); + _val1098 = iprot.readString(); + struct.partitionSpecs.put(_key1097, _val1098); } iprot.readMapEnd(); } @@ -92080,10 +93377,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 _iter1076 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1100 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1076.getKey()); - oprot.writeString(_iter1076.getValue()); + oprot.writeString(_iter1100.getKey()); + oprot.writeString(_iter1100.getValue()); } oprot.writeMapEnd(); } @@ -92146,10 +93443,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter1077 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1101 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1077.getKey()); - oprot.writeString(_iter1077.getValue()); + oprot.writeString(_iter1101.getKey()); + oprot.writeString(_iter1101.getValue()); } } } @@ -92173,15 +93470,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 _map1078 = 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*_map1078.size); - String _key1079; - String _val1080; - for (int _i1081 = 0; _i1081 < _map1078.size; ++_i1081) + org.apache.thrift.protocol.TMap _map1102 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionSpecs = new HashMap(2*_map1102.size); + String _key1103; + String _val1104; + for (int _i1105 = 0; _i1105 < _map1102.size; ++_i1105) { - _key1079 = iprot.readString(); - _val1080 = iprot.readString(); - struct.partitionSpecs.put(_key1079, _val1080); + _key1103 = iprot.readString(); + _val1104 = iprot.readString(); + struct.partitionSpecs.put(_key1103, _val1104); } } struct.setPartitionSpecsIsSet(true); @@ -92846,14 +94143,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 _list1082 = iprot.readListBegin(); - struct.success = new ArrayList(_list1082.size); - Partition _elem1083; - for (int _i1084 = 0; _i1084 < _list1082.size; ++_i1084) + org.apache.thrift.protocol.TList _list1106 = iprot.readListBegin(); + struct.success = new ArrayList(_list1106.size); + Partition _elem1107; + for (int _i1108 = 0; _i1108 < _list1106.size; ++_i1108) { - _elem1083 = new Partition(); - _elem1083.read(iprot); - struct.success.add(_elem1083); + _elem1107 = new Partition(); + _elem1107.read(iprot); + struct.success.add(_elem1107); } iprot.readListEnd(); } @@ -92915,9 +94212,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 _iter1085 : struct.success) + for (Partition _iter1109 : struct.success) { - _iter1085.write(oprot); + _iter1109.write(oprot); } oprot.writeListEnd(); } @@ -92980,9 +94277,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1086 : struct.success) + for (Partition _iter1110 : struct.success) { - _iter1086.write(oprot); + _iter1110.write(oprot); } } } @@ -93006,14 +94303,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 _list1087 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1087.size); - Partition _elem1088; - for (int _i1089 = 0; _i1089 < _list1087.size; ++_i1089) + org.apache.thrift.protocol.TList _list1111 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1111.size); + Partition _elem1112; + for (int _i1113 = 0; _i1113 < _list1111.size; ++_i1113) { - _elem1088 = new Partition(); - _elem1088.read(iprot); - struct.success.add(_elem1088); + _elem1112 = new Partition(); + _elem1112.read(iprot); + struct.success.add(_elem1112); } } struct.setSuccessIsSet(true); @@ -93712,13 +95009,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 _list1090 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1090.size); - String _elem1091; - for (int _i1092 = 0; _i1092 < _list1090.size; ++_i1092) + org.apache.thrift.protocol.TList _list1114 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1114.size); + String _elem1115; + for (int _i1116 = 0; _i1116 < _list1114.size; ++_i1116) { - _elem1091 = iprot.readString(); - struct.part_vals.add(_elem1091); + _elem1115 = iprot.readString(); + struct.part_vals.add(_elem1115); } iprot.readListEnd(); } @@ -93738,13 +95035,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 _list1093 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1093.size); - String _elem1094; - for (int _i1095 = 0; _i1095 < _list1093.size; ++_i1095) + org.apache.thrift.protocol.TList _list1117 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1117.size); + String _elem1118; + for (int _i1119 = 0; _i1119 < _list1117.size; ++_i1119) { - _elem1094 = iprot.readString(); - struct.group_names.add(_elem1094); + _elem1118 = iprot.readString(); + struct.group_names.add(_elem1118); } iprot.readListEnd(); } @@ -93780,9 +95077,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 _iter1096 : struct.part_vals) + for (String _iter1120 : struct.part_vals) { - oprot.writeString(_iter1096); + oprot.writeString(_iter1120); } oprot.writeListEnd(); } @@ -93797,9 +95094,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 _iter1097 : struct.group_names) + for (String _iter1121 : struct.group_names) { - oprot.writeString(_iter1097); + oprot.writeString(_iter1121); } oprot.writeListEnd(); } @@ -93848,9 +95145,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 _iter1098 : struct.part_vals) + for (String _iter1122 : struct.part_vals) { - oprot.writeString(_iter1098); + oprot.writeString(_iter1122); } } } @@ -93860,9 +95157,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 _iter1099 : struct.group_names) + for (String _iter1123 : struct.group_names) { - oprot.writeString(_iter1099); + oprot.writeString(_iter1123); } } } @@ -93882,13 +95179,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1100 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1100.size); - String _elem1101; - for (int _i1102 = 0; _i1102 < _list1100.size; ++_i1102) + org.apache.thrift.protocol.TList _list1124 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1124.size); + String _elem1125; + for (int _i1126 = 0; _i1126 < _list1124.size; ++_i1126) { - _elem1101 = iprot.readString(); - struct.part_vals.add(_elem1101); + _elem1125 = iprot.readString(); + struct.part_vals.add(_elem1125); } } struct.setPart_valsIsSet(true); @@ -93899,13 +95196,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1103 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1103.size); - String _elem1104; - for (int _i1105 = 0; _i1105 < _list1103.size; ++_i1105) + org.apache.thrift.protocol.TList _list1127 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1127.size); + String _elem1128; + for (int _i1129 = 0; _i1129 < _list1127.size; ++_i1129) { - _elem1104 = iprot.readString(); - struct.group_names.add(_elem1104); + _elem1128 = iprot.readString(); + struct.group_names.add(_elem1128); } } struct.setGroup_namesIsSet(true); @@ -96674,14 +97971,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 _list1106 = iprot.readListBegin(); - struct.success = new ArrayList(_list1106.size); - Partition _elem1107; - for (int _i1108 = 0; _i1108 < _list1106.size; ++_i1108) + org.apache.thrift.protocol.TList _list1130 = iprot.readListBegin(); + struct.success = new ArrayList(_list1130.size); + Partition _elem1131; + for (int _i1132 = 0; _i1132 < _list1130.size; ++_i1132) { - _elem1107 = new Partition(); - _elem1107.read(iprot); - struct.success.add(_elem1107); + _elem1131 = new Partition(); + _elem1131.read(iprot); + struct.success.add(_elem1131); } iprot.readListEnd(); } @@ -96725,9 +98022,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 _iter1109 : struct.success) + for (Partition _iter1133 : struct.success) { - _iter1109.write(oprot); + _iter1133.write(oprot); } oprot.writeListEnd(); } @@ -96774,9 +98071,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1110 : struct.success) + for (Partition _iter1134 : struct.success) { - _iter1110.write(oprot); + _iter1134.write(oprot); } } } @@ -96794,14 +98091,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 _list1111 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1111.size); - Partition _elem1112; - for (int _i1113 = 0; _i1113 < _list1111.size; ++_i1113) + org.apache.thrift.protocol.TList _list1135 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1135.size); + Partition _elem1136; + for (int _i1137 = 0; _i1137 < _list1135.size; ++_i1137) { - _elem1112 = new Partition(); - _elem1112.read(iprot); - struct.success.add(_elem1112); + _elem1136 = new Partition(); + _elem1136.read(iprot); + struct.success.add(_elem1136); } } struct.setSuccessIsSet(true); @@ -97491,13 +98788,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 _list1114 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1114.size); - String _elem1115; - for (int _i1116 = 0; _i1116 < _list1114.size; ++_i1116) + org.apache.thrift.protocol.TList _list1138 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1138.size); + String _elem1139; + for (int _i1140 = 0; _i1140 < _list1138.size; ++_i1140) { - _elem1115 = iprot.readString(); - struct.group_names.add(_elem1115); + _elem1139 = iprot.readString(); + struct.group_names.add(_elem1139); } iprot.readListEnd(); } @@ -97541,9 +98838,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 _iter1117 : struct.group_names) + for (String _iter1141 : struct.group_names) { - oprot.writeString(_iter1117); + oprot.writeString(_iter1141); } oprot.writeListEnd(); } @@ -97598,9 +98895,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 _iter1118 : struct.group_names) + for (String _iter1142 : struct.group_names) { - oprot.writeString(_iter1118); + oprot.writeString(_iter1142); } } } @@ -97628,13 +98925,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1119 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1119.size); - String _elem1120; - for (int _i1121 = 0; _i1121 < _list1119.size; ++_i1121) + org.apache.thrift.protocol.TList _list1143 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1143.size); + String _elem1144; + for (int _i1145 = 0; _i1145 < _list1143.size; ++_i1145) { - _elem1120 = iprot.readString(); - struct.group_names.add(_elem1120); + _elem1144 = iprot.readString(); + struct.group_names.add(_elem1144); } } struct.setGroup_namesIsSet(true); @@ -98121,14 +99418,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 _list1122 = iprot.readListBegin(); - struct.success = new ArrayList(_list1122.size); - Partition _elem1123; - for (int _i1124 = 0; _i1124 < _list1122.size; ++_i1124) + org.apache.thrift.protocol.TList _list1146 = iprot.readListBegin(); + struct.success = new ArrayList(_list1146.size); + Partition _elem1147; + for (int _i1148 = 0; _i1148 < _list1146.size; ++_i1148) { - _elem1123 = new Partition(); - _elem1123.read(iprot); - struct.success.add(_elem1123); + _elem1147 = new Partition(); + _elem1147.read(iprot); + struct.success.add(_elem1147); } iprot.readListEnd(); } @@ -98172,9 +99469,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 _iter1125 : struct.success) + for (Partition _iter1149 : struct.success) { - _iter1125.write(oprot); + _iter1149.write(oprot); } oprot.writeListEnd(); } @@ -98221,9 +99518,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1126 : struct.success) + for (Partition _iter1150 : struct.success) { - _iter1126.write(oprot); + _iter1150.write(oprot); } } } @@ -98241,14 +99538,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 _list1127 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1127.size); - Partition _elem1128; - for (int _i1129 = 0; _i1129 < _list1127.size; ++_i1129) + org.apache.thrift.protocol.TList _list1151 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1151.size); + Partition _elem1152; + for (int _i1153 = 0; _i1153 < _list1151.size; ++_i1153) { - _elem1128 = new Partition(); - _elem1128.read(iprot); - struct.success.add(_elem1128); + _elem1152 = new Partition(); + _elem1152.read(iprot); + struct.success.add(_elem1152); } } struct.setSuccessIsSet(true); @@ -99311,14 +100608,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 _list1130 = iprot.readListBegin(); - struct.success = new ArrayList(_list1130.size); - PartitionSpec _elem1131; - for (int _i1132 = 0; _i1132 < _list1130.size; ++_i1132) + org.apache.thrift.protocol.TList _list1154 = iprot.readListBegin(); + struct.success = new ArrayList(_list1154.size); + PartitionSpec _elem1155; + for (int _i1156 = 0; _i1156 < _list1154.size; ++_i1156) { - _elem1131 = new PartitionSpec(); - _elem1131.read(iprot); - struct.success.add(_elem1131); + _elem1155 = new PartitionSpec(); + _elem1155.read(iprot); + struct.success.add(_elem1155); } iprot.readListEnd(); } @@ -99362,9 +100659,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 _iter1133 : struct.success) + for (PartitionSpec _iter1157 : struct.success) { - _iter1133.write(oprot); + _iter1157.write(oprot); } oprot.writeListEnd(); } @@ -99411,9 +100708,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspe if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter1134 : struct.success) + for (PartitionSpec _iter1158 : struct.success) { - _iter1134.write(oprot); + _iter1158.write(oprot); } } } @@ -99431,14 +100728,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 _list1135 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1135.size); - PartitionSpec _elem1136; - for (int _i1137 = 0; _i1137 < _list1135.size; ++_i1137) + org.apache.thrift.protocol.TList _list1159 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1159.size); + PartitionSpec _elem1160; + for (int _i1161 = 0; _i1161 < _list1159.size; ++_i1161) { - _elem1136 = new PartitionSpec(); - _elem1136.read(iprot); - struct.success.add(_elem1136); + _elem1160 = new PartitionSpec(); + _elem1160.read(iprot); + struct.success.add(_elem1160); } } struct.setSuccessIsSet(true); @@ -100498,13 +101795,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 _list1138 = iprot.readListBegin(); - struct.success = new ArrayList(_list1138.size); - String _elem1139; - for (int _i1140 = 0; _i1140 < _list1138.size; ++_i1140) + org.apache.thrift.protocol.TList _list1162 = iprot.readListBegin(); + struct.success = new ArrayList(_list1162.size); + String _elem1163; + for (int _i1164 = 0; _i1164 < _list1162.size; ++_i1164) { - _elem1139 = iprot.readString(); - struct.success.add(_elem1139); + _elem1163 = iprot.readString(); + struct.success.add(_elem1163); } iprot.readListEnd(); } @@ -100548,9 +101845,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 _iter1141 : struct.success) + for (String _iter1165 : struct.success) { - oprot.writeString(_iter1141); + oprot.writeString(_iter1165); } oprot.writeListEnd(); } @@ -100597,9 +101894,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1142 : struct.success) + for (String _iter1166 : struct.success) { - oprot.writeString(_iter1142); + oprot.writeString(_iter1166); } } } @@ -100617,13 +101914,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 _list1143 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1143.size); - String _elem1144; - for (int _i1145 = 0; _i1145 < _list1143.size; ++_i1145) + org.apache.thrift.protocol.TList _list1167 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1167.size); + String _elem1168; + for (int _i1169 = 0; _i1169 < _list1167.size; ++_i1169) { - _elem1144 = iprot.readString(); - struct.success.add(_elem1144); + _elem1168 = iprot.readString(); + struct.success.add(_elem1168); } } struct.setSuccessIsSet(true); @@ -102154,13 +103451,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 _list1146 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1146.size); - String _elem1147; - for (int _i1148 = 0; _i1148 < _list1146.size; ++_i1148) + org.apache.thrift.protocol.TList _list1170 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1170.size); + String _elem1171; + for (int _i1172 = 0; _i1172 < _list1170.size; ++_i1172) { - _elem1147 = iprot.readString(); - struct.part_vals.add(_elem1147); + _elem1171 = iprot.readString(); + struct.part_vals.add(_elem1171); } iprot.readListEnd(); } @@ -102204,9 +103501,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 _iter1149 : struct.part_vals) + for (String _iter1173 : struct.part_vals) { - oprot.writeString(_iter1149); + oprot.writeString(_iter1173); } oprot.writeListEnd(); } @@ -102255,9 +103552,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 _iter1150 : struct.part_vals) + for (String _iter1174 : struct.part_vals) { - oprot.writeString(_iter1150); + oprot.writeString(_iter1174); } } } @@ -102280,13 +103577,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1151 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1151.size); - String _elem1152; - for (int _i1153 = 0; _i1153 < _list1151.size; ++_i1153) + org.apache.thrift.protocol.TList _list1175 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1175.size); + String _elem1176; + for (int _i1177 = 0; _i1177 < _list1175.size; ++_i1177) { - _elem1152 = iprot.readString(); - struct.part_vals.add(_elem1152); + _elem1176 = iprot.readString(); + struct.part_vals.add(_elem1176); } } struct.setPart_valsIsSet(true); @@ -102777,14 +104074,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 _list1154 = iprot.readListBegin(); - struct.success = new ArrayList(_list1154.size); - Partition _elem1155; - for (int _i1156 = 0; _i1156 < _list1154.size; ++_i1156) + org.apache.thrift.protocol.TList _list1178 = iprot.readListBegin(); + struct.success = new ArrayList(_list1178.size); + Partition _elem1179; + for (int _i1180 = 0; _i1180 < _list1178.size; ++_i1180) { - _elem1155 = new Partition(); - _elem1155.read(iprot); - struct.success.add(_elem1155); + _elem1179 = new Partition(); + _elem1179.read(iprot); + struct.success.add(_elem1179); } iprot.readListEnd(); } @@ -102828,9 +104125,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 _iter1157 : struct.success) + for (Partition _iter1181 : struct.success) { - _iter1157.write(oprot); + _iter1181.write(oprot); } oprot.writeListEnd(); } @@ -102877,9 +104174,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1158 : struct.success) + for (Partition _iter1182 : struct.success) { - _iter1158.write(oprot); + _iter1182.write(oprot); } } } @@ -102897,14 +104194,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 _list1159 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1159.size); - Partition _elem1160; - for (int _i1161 = 0; _i1161 < _list1159.size; ++_i1161) + org.apache.thrift.protocol.TList _list1183 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1183.size); + Partition _elem1184; + for (int _i1185 = 0; _i1185 < _list1183.size; ++_i1185) { - _elem1160 = new Partition(); - _elem1160.read(iprot); - struct.success.add(_elem1160); + _elem1184 = new Partition(); + _elem1184.read(iprot); + struct.success.add(_elem1184); } } struct.setSuccessIsSet(true); @@ -103676,13 +104973,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 _list1162 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1162.size); - String _elem1163; - for (int _i1164 = 0; _i1164 < _list1162.size; ++_i1164) + org.apache.thrift.protocol.TList _list1186 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1186.size); + String _elem1187; + for (int _i1188 = 0; _i1188 < _list1186.size; ++_i1188) { - _elem1163 = iprot.readString(); - struct.part_vals.add(_elem1163); + _elem1187 = iprot.readString(); + struct.part_vals.add(_elem1187); } iprot.readListEnd(); } @@ -103710,13 +105007,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 _list1165 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1165.size); - String _elem1166; - for (int _i1167 = 0; _i1167 < _list1165.size; ++_i1167) + org.apache.thrift.protocol.TList _list1189 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1189.size); + String _elem1190; + for (int _i1191 = 0; _i1191 < _list1189.size; ++_i1191) { - _elem1166 = iprot.readString(); - struct.group_names.add(_elem1166); + _elem1190 = iprot.readString(); + struct.group_names.add(_elem1190); } iprot.readListEnd(); } @@ -103752,9 +105049,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 _iter1168 : struct.part_vals) + for (String _iter1192 : struct.part_vals) { - oprot.writeString(_iter1168); + oprot.writeString(_iter1192); } oprot.writeListEnd(); } @@ -103772,9 +105069,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 _iter1169 : struct.group_names) + for (String _iter1193 : struct.group_names) { - oprot.writeString(_iter1169); + oprot.writeString(_iter1193); } oprot.writeListEnd(); } @@ -103826,9 +105123,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 _iter1170 : struct.part_vals) + for (String _iter1194 : struct.part_vals) { - oprot.writeString(_iter1170); + oprot.writeString(_iter1194); } } } @@ -103841,9 +105138,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 _iter1171 : struct.group_names) + for (String _iter1195 : struct.group_names) { - oprot.writeString(_iter1171); + oprot.writeString(_iter1195); } } } @@ -103863,13 +105160,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1172 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1172.size); - String _elem1173; - for (int _i1174 = 0; _i1174 < _list1172.size; ++_i1174) + org.apache.thrift.protocol.TList _list1196 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1196.size); + String _elem1197; + for (int _i1198 = 0; _i1198 < _list1196.size; ++_i1198) { - _elem1173 = iprot.readString(); - struct.part_vals.add(_elem1173); + _elem1197 = iprot.readString(); + struct.part_vals.add(_elem1197); } } struct.setPart_valsIsSet(true); @@ -103884,13 +105181,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list1175 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1175.size); - String _elem1176; - for (int _i1177 = 0; _i1177 < _list1175.size; ++_i1177) + org.apache.thrift.protocol.TList _list1199 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1199.size); + String _elem1200; + for (int _i1201 = 0; _i1201 < _list1199.size; ++_i1201) { - _elem1176 = iprot.readString(); - struct.group_names.add(_elem1176); + _elem1200 = iprot.readString(); + struct.group_names.add(_elem1200); } } struct.setGroup_namesIsSet(true); @@ -104377,14 +105674,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 _list1178 = iprot.readListBegin(); - struct.success = new ArrayList(_list1178.size); - Partition _elem1179; - for (int _i1180 = 0; _i1180 < _list1178.size; ++_i1180) + org.apache.thrift.protocol.TList _list1202 = iprot.readListBegin(); + struct.success = new ArrayList(_list1202.size); + Partition _elem1203; + for (int _i1204 = 0; _i1204 < _list1202.size; ++_i1204) { - _elem1179 = new Partition(); - _elem1179.read(iprot); - struct.success.add(_elem1179); + _elem1203 = new Partition(); + _elem1203.read(iprot); + struct.success.add(_elem1203); } iprot.readListEnd(); } @@ -104428,9 +105725,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 _iter1181 : struct.success) + for (Partition _iter1205 : struct.success) { - _iter1181.write(oprot); + _iter1205.write(oprot); } oprot.writeListEnd(); } @@ -104477,9 +105774,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1182 : struct.success) + for (Partition _iter1206 : struct.success) { - _iter1182.write(oprot); + _iter1206.write(oprot); } } } @@ -104497,14 +105794,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 _list1183 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1183.size); - Partition _elem1184; - for (int _i1185 = 0; _i1185 < _list1183.size; ++_i1185) + org.apache.thrift.protocol.TList _list1207 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1207.size); + Partition _elem1208; + for (int _i1209 = 0; _i1209 < _list1207.size; ++_i1209) { - _elem1184 = new Partition(); - _elem1184.read(iprot); - struct.success.add(_elem1184); + _elem1208 = new Partition(); + _elem1208.read(iprot); + struct.success.add(_elem1208); } } struct.setSuccessIsSet(true); @@ -105097,13 +106394,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 _list1186 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1186.size); - String _elem1187; - for (int _i1188 = 0; _i1188 < _list1186.size; ++_i1188) + org.apache.thrift.protocol.TList _list1210 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1210.size); + String _elem1211; + for (int _i1212 = 0; _i1212 < _list1210.size; ++_i1212) { - _elem1187 = iprot.readString(); - struct.part_vals.add(_elem1187); + _elem1211 = iprot.readString(); + struct.part_vals.add(_elem1211); } iprot.readListEnd(); } @@ -105147,9 +106444,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 _iter1189 : struct.part_vals) + for (String _iter1213 : struct.part_vals) { - oprot.writeString(_iter1189); + oprot.writeString(_iter1213); } oprot.writeListEnd(); } @@ -105198,9 +106495,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 _iter1190 : struct.part_vals) + for (String _iter1214 : struct.part_vals) { - oprot.writeString(_iter1190); + oprot.writeString(_iter1214); } } } @@ -105223,13 +106520,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1191 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1191.size); - String _elem1192; - for (int _i1193 = 0; _i1193 < _list1191.size; ++_i1193) + org.apache.thrift.protocol.TList _list1215 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1215.size); + String _elem1216; + for (int _i1217 = 0; _i1217 < _list1215.size; ++_i1217) { - _elem1192 = iprot.readString(); - struct.part_vals.add(_elem1192); + _elem1216 = iprot.readString(); + struct.part_vals.add(_elem1216); } } struct.setPart_valsIsSet(true); @@ -105717,13 +107014,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 _list1194 = iprot.readListBegin(); - struct.success = new ArrayList(_list1194.size); - String _elem1195; - for (int _i1196 = 0; _i1196 < _list1194.size; ++_i1196) + org.apache.thrift.protocol.TList _list1218 = iprot.readListBegin(); + struct.success = new ArrayList(_list1218.size); + String _elem1219; + for (int _i1220 = 0; _i1220 < _list1218.size; ++_i1220) { - _elem1195 = iprot.readString(); - struct.success.add(_elem1195); + _elem1219 = iprot.readString(); + struct.success.add(_elem1219); } iprot.readListEnd(); } @@ -105767,9 +107064,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 _iter1197 : struct.success) + for (String _iter1221 : struct.success) { - oprot.writeString(_iter1197); + oprot.writeString(_iter1221); } oprot.writeListEnd(); } @@ -105816,9 +107113,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1198 : struct.success) + for (String _iter1222 : struct.success) { - oprot.writeString(_iter1198); + oprot.writeString(_iter1222); } } } @@ -105836,13 +107133,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 _list1199 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1199.size); - String _elem1200; - for (int _i1201 = 0; _i1201 < _list1199.size; ++_i1201) + org.apache.thrift.protocol.TList _list1223 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1223.size); + String _elem1224; + for (int _i1225 = 0; _i1225 < _list1223.size; ++_i1225) { - _elem1200 = iprot.readString(); - struct.success.add(_elem1200); + _elem1224 = iprot.readString(); + struct.success.add(_elem1224); } } struct.setSuccessIsSet(true); @@ -107009,14 +108306,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 _list1202 = iprot.readListBegin(); - struct.success = new ArrayList(_list1202.size); - Partition _elem1203; - for (int _i1204 = 0; _i1204 < _list1202.size; ++_i1204) + org.apache.thrift.protocol.TList _list1226 = iprot.readListBegin(); + struct.success = new ArrayList(_list1226.size); + Partition _elem1227; + for (int _i1228 = 0; _i1228 < _list1226.size; ++_i1228) { - _elem1203 = new Partition(); - _elem1203.read(iprot); - struct.success.add(_elem1203); + _elem1227 = new Partition(); + _elem1227.read(iprot); + struct.success.add(_elem1227); } iprot.readListEnd(); } @@ -107060,9 +108357,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 _iter1205 : struct.success) + for (Partition _iter1229 : struct.success) { - _iter1205.write(oprot); + _iter1229.write(oprot); } oprot.writeListEnd(); } @@ -107109,9 +108406,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1206 : struct.success) + for (Partition _iter1230 : struct.success) { - _iter1206.write(oprot); + _iter1230.write(oprot); } } } @@ -107129,14 +108426,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 _list1207 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1207.size); - Partition _elem1208; - for (int _i1209 = 0; _i1209 < _list1207.size; ++_i1209) + org.apache.thrift.protocol.TList _list1231 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1231.size); + Partition _elem1232; + for (int _i1233 = 0; _i1233 < _list1231.size; ++_i1233) { - _elem1208 = new Partition(); - _elem1208.read(iprot); - struct.success.add(_elem1208); + _elem1232 = new Partition(); + _elem1232.read(iprot); + struct.success.add(_elem1232); } } struct.setSuccessIsSet(true); @@ -108303,14 +109600,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 _list1210 = iprot.readListBegin(); - struct.success = new ArrayList(_list1210.size); - PartitionSpec _elem1211; - for (int _i1212 = 0; _i1212 < _list1210.size; ++_i1212) + org.apache.thrift.protocol.TList _list1234 = iprot.readListBegin(); + struct.success = new ArrayList(_list1234.size); + PartitionSpec _elem1235; + for (int _i1236 = 0; _i1236 < _list1234.size; ++_i1236) { - _elem1211 = new PartitionSpec(); - _elem1211.read(iprot); - struct.success.add(_elem1211); + _elem1235 = new PartitionSpec(); + _elem1235.read(iprot); + struct.success.add(_elem1235); } iprot.readListEnd(); } @@ -108354,9 +109651,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 _iter1213 : struct.success) + for (PartitionSpec _iter1237 : struct.success) { - _iter1213.write(oprot); + _iter1237.write(oprot); } oprot.writeListEnd(); } @@ -108403,9 +109700,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 _iter1214 : struct.success) + for (PartitionSpec _iter1238 : struct.success) { - _iter1214.write(oprot); + _iter1238.write(oprot); } } } @@ -108423,14 +109720,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 _list1215 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1215.size); - PartitionSpec _elem1216; - for (int _i1217 = 0; _i1217 < _list1215.size; ++_i1217) + org.apache.thrift.protocol.TList _list1239 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1239.size); + PartitionSpec _elem1240; + for (int _i1241 = 0; _i1241 < _list1239.size; ++_i1241) { - _elem1216 = new PartitionSpec(); - _elem1216.read(iprot); - struct.success.add(_elem1216); + _elem1240 = new PartitionSpec(); + _elem1240.read(iprot); + struct.success.add(_elem1240); } } struct.setSuccessIsSet(true); @@ -111014,13 +112311,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 _list1218 = iprot.readListBegin(); - struct.names = new ArrayList(_list1218.size); - String _elem1219; - for (int _i1220 = 0; _i1220 < _list1218.size; ++_i1220) + org.apache.thrift.protocol.TList _list1242 = iprot.readListBegin(); + struct.names = new ArrayList(_list1242.size); + String _elem1243; + for (int _i1244 = 0; _i1244 < _list1242.size; ++_i1244) { - _elem1219 = iprot.readString(); - struct.names.add(_elem1219); + _elem1243 = iprot.readString(); + struct.names.add(_elem1243); } iprot.readListEnd(); } @@ -111056,9 +112353,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 _iter1221 : struct.names) + for (String _iter1245 : struct.names) { - oprot.writeString(_iter1221); + oprot.writeString(_iter1245); } oprot.writeListEnd(); } @@ -111101,9 +112398,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter1222 : struct.names) + for (String _iter1246 : struct.names) { - oprot.writeString(_iter1222); + oprot.writeString(_iter1246); } } } @@ -111123,13 +112420,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1223 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list1223.size); - String _elem1224; - for (int _i1225 = 0; _i1225 < _list1223.size; ++_i1225) + org.apache.thrift.protocol.TList _list1247 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list1247.size); + String _elem1248; + for (int _i1249 = 0; _i1249 < _list1247.size; ++_i1249) { - _elem1224 = iprot.readString(); - struct.names.add(_elem1224); + _elem1248 = iprot.readString(); + struct.names.add(_elem1248); } } struct.setNamesIsSet(true); @@ -111616,14 +112913,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 _list1226 = iprot.readListBegin(); - struct.success = new ArrayList(_list1226.size); - Partition _elem1227; - for (int _i1228 = 0; _i1228 < _list1226.size; ++_i1228) + org.apache.thrift.protocol.TList _list1250 = iprot.readListBegin(); + struct.success = new ArrayList(_list1250.size); + Partition _elem1251; + for (int _i1252 = 0; _i1252 < _list1250.size; ++_i1252) { - _elem1227 = new Partition(); - _elem1227.read(iprot); - struct.success.add(_elem1227); + _elem1251 = new Partition(); + _elem1251.read(iprot); + struct.success.add(_elem1251); } iprot.readListEnd(); } @@ -111667,9 +112964,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 _iter1229 : struct.success) + for (Partition _iter1253 : struct.success) { - _iter1229.write(oprot); + _iter1253.write(oprot); } oprot.writeListEnd(); } @@ -111716,9 +113013,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1230 : struct.success) + for (Partition _iter1254 : struct.success) { - _iter1230.write(oprot); + _iter1254.write(oprot); } } } @@ -111736,14 +113033,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 _list1231 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1231.size); - Partition _elem1232; - for (int _i1233 = 0; _i1233 < _list1231.size; ++_i1233) + org.apache.thrift.protocol.TList _list1255 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1255.size); + Partition _elem1256; + for (int _i1257 = 0; _i1257 < _list1255.size; ++_i1257) { - _elem1232 = new Partition(); - _elem1232.read(iprot); - struct.success.add(_elem1232); + _elem1256 = new Partition(); + _elem1256.read(iprot); + struct.success.add(_elem1256); } } struct.setSuccessIsSet(true); @@ -113293,14 +114590,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 _list1234 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1234.size); - Partition _elem1235; - for (int _i1236 = 0; _i1236 < _list1234.size; ++_i1236) + org.apache.thrift.protocol.TList _list1258 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1258.size); + Partition _elem1259; + for (int _i1260 = 0; _i1260 < _list1258.size; ++_i1260) { - _elem1235 = new Partition(); - _elem1235.read(iprot); - struct.new_parts.add(_elem1235); + _elem1259 = new Partition(); + _elem1259.read(iprot); + struct.new_parts.add(_elem1259); } iprot.readListEnd(); } @@ -113336,9 +114633,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 _iter1237 : struct.new_parts) + for (Partition _iter1261 : struct.new_parts) { - _iter1237.write(oprot); + _iter1261.write(oprot); } oprot.writeListEnd(); } @@ -113381,9 +114678,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 _iter1238 : struct.new_parts) + for (Partition _iter1262 : struct.new_parts) { - _iter1238.write(oprot); + _iter1262.write(oprot); } } } @@ -113403,14 +114700,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1239 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1239.size); - Partition _elem1240; - for (int _i1241 = 0; _i1241 < _list1239.size; ++_i1241) + org.apache.thrift.protocol.TList _list1263 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1263.size); + Partition _elem1264; + for (int _i1265 = 0; _i1265 < _list1263.size; ++_i1265) { - _elem1240 = new Partition(); - _elem1240.read(iprot); - struct.new_parts.add(_elem1240); + _elem1264 = new Partition(); + _elem1264.read(iprot); + struct.new_parts.add(_elem1264); } } struct.setNew_partsIsSet(true); @@ -114463,14 +115760,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 _list1242 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1242.size); - Partition _elem1243; - for (int _i1244 = 0; _i1244 < _list1242.size; ++_i1244) + org.apache.thrift.protocol.TList _list1266 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1266.size); + Partition _elem1267; + for (int _i1268 = 0; _i1268 < _list1266.size; ++_i1268) { - _elem1243 = new Partition(); - _elem1243.read(iprot); - struct.new_parts.add(_elem1243); + _elem1267 = new Partition(); + _elem1267.read(iprot); + struct.new_parts.add(_elem1267); } iprot.readListEnd(); } @@ -114515,9 +115812,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 _iter1245 : struct.new_parts) + for (Partition _iter1269 : struct.new_parts) { - _iter1245.write(oprot); + _iter1269.write(oprot); } oprot.writeListEnd(); } @@ -114568,9 +115865,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 _iter1246 : struct.new_parts) + for (Partition _iter1270 : struct.new_parts) { - _iter1246.write(oprot); + _iter1270.write(oprot); } } } @@ -114593,14 +115890,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1247 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1247.size); - Partition _elem1248; - for (int _i1249 = 0; _i1249 < _list1247.size; ++_i1249) + org.apache.thrift.protocol.TList _list1271 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1271.size); + Partition _elem1272; + for (int _i1273 = 0; _i1273 < _list1271.size; ++_i1273) { - _elem1248 = new Partition(); - _elem1248.read(iprot); - struct.new_parts.add(_elem1248); + _elem1272 = new Partition(); + _elem1272.read(iprot); + struct.new_parts.add(_elem1272); } } struct.setNew_partsIsSet(true); @@ -116801,13 +118098,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 _list1250 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1250.size); - String _elem1251; - for (int _i1252 = 0; _i1252 < _list1250.size; ++_i1252) + org.apache.thrift.protocol.TList _list1274 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1274.size); + String _elem1275; + for (int _i1276 = 0; _i1276 < _list1274.size; ++_i1276) { - _elem1251 = iprot.readString(); - struct.part_vals.add(_elem1251); + _elem1275 = iprot.readString(); + struct.part_vals.add(_elem1275); } iprot.readListEnd(); } @@ -116852,9 +118149,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 _iter1253 : struct.part_vals) + for (String _iter1277 : struct.part_vals) { - oprot.writeString(_iter1253); + oprot.writeString(_iter1277); } oprot.writeListEnd(); } @@ -116905,9 +118202,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 _iter1254 : struct.part_vals) + for (String _iter1278 : struct.part_vals) { - oprot.writeString(_iter1254); + oprot.writeString(_iter1278); } } } @@ -116930,13 +118227,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1255 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1255.size); - String _elem1256; - for (int _i1257 = 0; _i1257 < _list1255.size; ++_i1257) + org.apache.thrift.protocol.TList _list1279 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1279.size); + String _elem1280; + for (int _i1281 = 0; _i1281 < _list1279.size; ++_i1281) { - _elem1256 = iprot.readString(); - struct.part_vals.add(_elem1256); + _elem1280 = iprot.readString(); + struct.part_vals.add(_elem1280); } } struct.setPart_valsIsSet(true); @@ -117810,13 +119107,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 _list1258 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1258.size); - String _elem1259; - for (int _i1260 = 0; _i1260 < _list1258.size; ++_i1260) + org.apache.thrift.protocol.TList _list1282 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1282.size); + String _elem1283; + for (int _i1284 = 0; _i1284 < _list1282.size; ++_i1284) { - _elem1259 = iprot.readString(); - struct.part_vals.add(_elem1259); + _elem1283 = iprot.readString(); + struct.part_vals.add(_elem1283); } iprot.readListEnd(); } @@ -117850,9 +119147,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 _iter1261 : struct.part_vals) + for (String _iter1285 : struct.part_vals) { - oprot.writeString(_iter1261); + oprot.writeString(_iter1285); } oprot.writeListEnd(); } @@ -117889,9 +119186,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 _iter1262 : struct.part_vals) + for (String _iter1286 : struct.part_vals) { - oprot.writeString(_iter1262); + oprot.writeString(_iter1286); } } } @@ -117906,13 +119203,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 _list1263 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1263.size); - String _elem1264; - for (int _i1265 = 0; _i1265 < _list1263.size; ++_i1265) + org.apache.thrift.protocol.TList _list1287 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1287.size); + String _elem1288; + for (int _i1289 = 0; _i1289 < _list1287.size; ++_i1289) { - _elem1264 = iprot.readString(); - struct.part_vals.add(_elem1264); + _elem1288 = iprot.readString(); + struct.part_vals.add(_elem1288); } } struct.setPart_valsIsSet(true); @@ -120067,13 +121364,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 _list1266 = iprot.readListBegin(); - struct.success = new ArrayList(_list1266.size); - String _elem1267; - for (int _i1268 = 0; _i1268 < _list1266.size; ++_i1268) + org.apache.thrift.protocol.TList _list1290 = iprot.readListBegin(); + struct.success = new ArrayList(_list1290.size); + String _elem1291; + for (int _i1292 = 0; _i1292 < _list1290.size; ++_i1292) { - _elem1267 = iprot.readString(); - struct.success.add(_elem1267); + _elem1291 = iprot.readString(); + struct.success.add(_elem1291); } iprot.readListEnd(); } @@ -120108,9 +121405,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 _iter1269 : struct.success) + for (String _iter1293 : struct.success) { - oprot.writeString(_iter1269); + oprot.writeString(_iter1293); } oprot.writeListEnd(); } @@ -120149,9 +121446,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1270 : struct.success) + for (String _iter1294 : struct.success) { - oprot.writeString(_iter1270); + oprot.writeString(_iter1294); } } } @@ -120166,13 +121463,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 _list1271 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1271.size); - String _elem1272; - for (int _i1273 = 0; _i1273 < _list1271.size; ++_i1273) + org.apache.thrift.protocol.TList _list1295 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1295.size); + String _elem1296; + for (int _i1297 = 0; _i1297 < _list1295.size; ++_i1297) { - _elem1272 = iprot.readString(); - struct.success.add(_elem1272); + _elem1296 = iprot.readString(); + struct.success.add(_elem1296); } } struct.setSuccessIsSet(true); @@ -120935,15 +122232,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 _map1274 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map1274.size); - String _key1275; - String _val1276; - for (int _i1277 = 0; _i1277 < _map1274.size; ++_i1277) + org.apache.thrift.protocol.TMap _map1298 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1298.size); + String _key1299; + String _val1300; + for (int _i1301 = 0; _i1301 < _map1298.size; ++_i1301) { - _key1275 = iprot.readString(); - _val1276 = iprot.readString(); - struct.success.put(_key1275, _val1276); + _key1299 = iprot.readString(); + _val1300 = iprot.readString(); + struct.success.put(_key1299, _val1300); } iprot.readMapEnd(); } @@ -120978,10 +122275,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 _iter1278 : struct.success.entrySet()) + for (Map.Entry _iter1302 : struct.success.entrySet()) { - oprot.writeString(_iter1278.getKey()); - oprot.writeString(_iter1278.getValue()); + oprot.writeString(_iter1302.getKey()); + oprot.writeString(_iter1302.getValue()); } oprot.writeMapEnd(); } @@ -121020,10 +122317,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 _iter1279 : struct.success.entrySet()) + for (Map.Entry _iter1303 : struct.success.entrySet()) { - oprot.writeString(_iter1279.getKey()); - oprot.writeString(_iter1279.getValue()); + oprot.writeString(_iter1303.getKey()); + oprot.writeString(_iter1303.getValue()); } } } @@ -121038,15 +122335,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 _map1280 = 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*_map1280.size); - String _key1281; - String _val1282; - for (int _i1283 = 0; _i1283 < _map1280.size; ++_i1283) + org.apache.thrift.protocol.TMap _map1304 = 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*_map1304.size); + String _key1305; + String _val1306; + for (int _i1307 = 0; _i1307 < _map1304.size; ++_i1307) { - _key1281 = iprot.readString(); - _val1282 = iprot.readString(); - struct.success.put(_key1281, _val1282); + _key1305 = iprot.readString(); + _val1306 = iprot.readString(); + struct.success.put(_key1305, _val1306); } } struct.setSuccessIsSet(true); @@ -121641,15 +122938,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 _map1284 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1284.size); - String _key1285; - String _val1286; - for (int _i1287 = 0; _i1287 < _map1284.size; ++_i1287) + org.apache.thrift.protocol.TMap _map1308 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1308.size); + String _key1309; + String _val1310; + for (int _i1311 = 0; _i1311 < _map1308.size; ++_i1311) { - _key1285 = iprot.readString(); - _val1286 = iprot.readString(); - struct.part_vals.put(_key1285, _val1286); + _key1309 = iprot.readString(); + _val1310 = iprot.readString(); + struct.part_vals.put(_key1309, _val1310); } iprot.readMapEnd(); } @@ -121693,10 +122990,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 _iter1288 : struct.part_vals.entrySet()) + for (Map.Entry _iter1312 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1288.getKey()); - oprot.writeString(_iter1288.getValue()); + oprot.writeString(_iter1312.getKey()); + oprot.writeString(_iter1312.getValue()); } oprot.writeMapEnd(); } @@ -121747,10 +123044,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1289 : struct.part_vals.entrySet()) + for (Map.Entry _iter1313 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1289.getKey()); - oprot.writeString(_iter1289.getValue()); + oprot.writeString(_iter1313.getKey()); + oprot.writeString(_iter1313.getValue()); } } } @@ -121773,15 +123070,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1290 = 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*_map1290.size); - String _key1291; - String _val1292; - for (int _i1293 = 0; _i1293 < _map1290.size; ++_i1293) + org.apache.thrift.protocol.TMap _map1314 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new HashMap(2*_map1314.size); + String _key1315; + String _val1316; + for (int _i1317 = 0; _i1317 < _map1314.size; ++_i1317) { - _key1291 = iprot.readString(); - _val1292 = iprot.readString(); - struct.part_vals.put(_key1291, _val1292); + _key1315 = iprot.readString(); + _val1316 = iprot.readString(); + struct.part_vals.put(_key1315, _val1316); } } struct.setPart_valsIsSet(true); @@ -123265,15 +124562,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 _map1294 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1294.size); - String _key1295; - String _val1296; - for (int _i1297 = 0; _i1297 < _map1294.size; ++_i1297) + org.apache.thrift.protocol.TMap _map1318 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1318.size); + String _key1319; + String _val1320; + for (int _i1321 = 0; _i1321 < _map1318.size; ++_i1321) { - _key1295 = iprot.readString(); - _val1296 = iprot.readString(); - struct.part_vals.put(_key1295, _val1296); + _key1319 = iprot.readString(); + _val1320 = iprot.readString(); + struct.part_vals.put(_key1319, _val1320); } iprot.readMapEnd(); } @@ -123317,10 +124614,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 _iter1298 : struct.part_vals.entrySet()) + for (Map.Entry _iter1322 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1298.getKey()); - oprot.writeString(_iter1298.getValue()); + oprot.writeString(_iter1322.getKey()); + oprot.writeString(_iter1322.getValue()); } oprot.writeMapEnd(); } @@ -123371,10 +124668,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1299 : struct.part_vals.entrySet()) + for (Map.Entry _iter1323 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1299.getKey()); - oprot.writeString(_iter1299.getValue()); + oprot.writeString(_iter1323.getKey()); + oprot.writeString(_iter1323.getValue()); } } } @@ -123397,15 +124694,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1300 = 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*_map1300.size); - String _key1301; - String _val1302; - for (int _i1303 = 0; _i1303 < _map1300.size; ++_i1303) + org.apache.thrift.protocol.TMap _map1324 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new HashMap(2*_map1324.size); + String _key1325; + String _val1326; + for (int _i1327 = 0; _i1327 < _map1324.size; ++_i1327) { - _key1301 = iprot.readString(); - _val1302 = iprot.readString(); - struct.part_vals.put(_key1301, _val1302); + _key1325 = iprot.readString(); + _val1326 = iprot.readString(); + struct.part_vals.put(_key1325, _val1326); } } struct.setPart_valsIsSet(true); @@ -126326,17 +127623,1163 @@ public String getFieldName() { 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(alter_index_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_index_result.class, metaDataMap); + } + + public alter_index_result() { + } + + public alter_index_result( + InvalidOperationException o1, + MetaException o2) + { + this(); + this.o1 = o1; + this.o2 = o2; + } + + /** + * Performs a deep copy on other. + */ + public alter_index_result(alter_index_result other) { + if (other.isSetO1()) { + this.o1 = new InvalidOperationException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new MetaException(other.o2); + } + } + + public alter_index_result deepCopy() { + return new alter_index_result(this); + } + + @Override + public void clear() { + this.o1 = null; + this.o2 = null; + } + + public InvalidOperationException getO1() { + return this.o1; + } + + public void setO1(InvalidOperationException 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 MetaException getO2() { + return this.o2; + } + + public void setO2(MetaException o2) { + this.o2 = o2; + } + + public void unsetO2() { + this.o2 = null; + } + + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ + public boolean isSetO2() { + return this.o2 != null; + } + + public void setO2IsSet(boolean value) { + if (!value) { + this.o2 = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((InvalidOperationException)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((MetaException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case O1: + return getO1(); + + case O2: + return getO2(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case O1: + return isSetO1(); + case O2: + return isSetO2(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof alter_index_result) + return this.equals((alter_index_result)that); + return false; + } + + public boolean equals(alter_index_result that) { + if (that == null) + return false; + + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + if (!(this_present_o1 && that_present_o1)) + return false; + if (!this.o1.equals(that.o1)) + return false; + } + + boolean this_present_o2 = true && this.isSetO2(); + boolean that_present_o2 = true && that.isSetO2(); + if (this_present_o2 || that_present_o2) { + if (!(this_present_o2 && that_present_o2)) + return false; + if (!this.o2.equals(that.o2)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + + boolean present_o2 = true && (isSetO2()); + list.add(present_o2); + if (present_o2) + list.add(o2); + + return list.hashCode(); + } + + @Override + public int compareTo(alter_index_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("alter_index_result("); + boolean first = true; + + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + 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 alter_index_resultStandardSchemeFactory implements SchemeFactory { + public alter_index_resultStandardScheme getScheme() { + return new alter_index_resultStandardScheme(); + } + } + + private static class alter_index_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_index_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 1: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new InvalidOperationException(); + 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 MetaException(); + 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, alter_index_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class alter_index_resultTupleSchemeFactory implements SchemeFactory { + public alter_index_resultTupleScheme getScheme() { + return new alter_index_resultTupleScheme(); + } + } + + private static class alter_index_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, alter_index_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetO1()) { + optionals.set(0); + } + if (struct.isSetO2()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, alter_index_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.o1 = new InvalidOperationException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(1)) { + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_index_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("drop_index_by_name_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 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 INDEX_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("index_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)4); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new drop_index_by_name_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_index_by_name_argsTupleSchemeFactory()); + } + + private String db_name; // required + private String tbl_name; // required + private String index_name; // required + private boolean deleteData; // 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"), + TBL_NAME((short)2, "tbl_name"), + INDEX_NAME((short)3, "index_name"), + DELETE_DATA((short)4, "deleteData"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // INDEX_NAME + return INDEX_NAME; + case 4: // DELETE_DATA + return DELETE_DATA; + 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 __DELETEDATA_ISSET_ID = 0; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", 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))); + tmpMap.put(_Fields.INDEX_NAME, new org.apache.thrift.meta_data.FieldMetaData("index_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_index_by_name_args.class, metaDataMap); + } + + public drop_index_by_name_args() { + } + + public drop_index_by_name_args( + String db_name, + String tbl_name, + String index_name, + boolean deleteData) + { + this(); + this.db_name = db_name; + this.tbl_name = tbl_name; + this.index_name = index_name; + this.deleteData = deleteData; + setDeleteDataIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public drop_index_by_name_args(drop_index_by_name_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetIndex_name()) { + this.index_name = other.index_name; + } + this.deleteData = other.deleteData; + } + + public drop_index_by_name_args deepCopy() { + return new drop_index_by_name_args(this); + } + + @Override + public void clear() { + this.db_name = null; + this.tbl_name = null; + this.index_name = null; + setDeleteDataIsSet(false); + this.deleteData = false; + } + + public String getDb_name() { + return this.db_name; + } + + public void setDb_name(String db_name) { + this.db_name = db_name; + } + + public void unsetDb_name() { + this.db_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 setDb_nameIsSet(boolean value) { + if (!value) { + this.db_name = 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 String getIndex_name() { + return this.index_name; + } + + public void setIndex_name(String index_name) { + this.index_name = index_name; + } + + public void unsetIndex_name() { + this.index_name = null; + } + + /** Returns true if field index_name is set (has been assigned a value) and false otherwise */ + public boolean isSetIndex_name() { + return this.index_name != null; + } + + public void setIndex_nameIsSet(boolean value) { + if (!value) { + this.index_name = null; + } + } + + public boolean isDeleteData() { + return this.deleteData; + } + + public void setDeleteData(boolean deleteData) { + this.deleteData = deleteData; + setDeleteDataIsSet(true); + } + + public void unsetDeleteData() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + } + + /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ + public boolean isSetDeleteData() { + return EncodingUtils.testBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + } + + public void setDeleteDataIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case DB_NAME: + if (value == null) { + unsetDb_name(); + } else { + setDb_name((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTbl_name(); + } else { + setTbl_name((String)value); + } + break; + + case INDEX_NAME: + if (value == null) { + unsetIndex_name(); + } else { + setIndex_name((String)value); + } + break; + + case DELETE_DATA: + if (value == null) { + unsetDeleteData(); + } else { + setDeleteData((Boolean)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case DB_NAME: + return getDb_name(); + + case TBL_NAME: + return getTbl_name(); + + case INDEX_NAME: + return getIndex_name(); + + case DELETE_DATA: + return isDeleteData(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case INDEX_NAME: + return isSetIndex_name(); + case DELETE_DATA: + return isSetDeleteData(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof drop_index_by_name_args) + return this.equals((drop_index_by_name_args)that); + return false; + } + + public boolean equals(drop_index_by_name_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)) + return false; + if (!this.db_name.equals(that.db_name)) + 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; + } + + boolean this_present_index_name = true && this.isSetIndex_name(); + boolean that_present_index_name = true && that.isSetIndex_name(); + if (this_present_index_name || that_present_index_name) { + if (!(this_present_index_name && that_present_index_name)) + return false; + if (!this.index_name.equals(that.index_name)) + return false; + } + + boolean this_present_deleteData = true; + boolean that_present_deleteData = true; + if (this_present_deleteData || that_present_deleteData) { + if (!(this_present_deleteData && that_present_deleteData)) + return false; + if (this.deleteData != that.deleteData) + return false; + } + + return true; + } + + @Override + 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_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); + + boolean present_index_name = true && (isSetIndex_name()); + list.add(present_index_name); + if (present_index_name) + list.add(index_name); + + boolean present_deleteData = true; + list.add(present_deleteData); + if (present_deleteData) + list.add(deleteData); + + return list.hashCode(); + } + + @Override + public int compareTo(drop_index_by_name_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()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + 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; + } + } + lastComparison = Boolean.valueOf(isSetIndex_name()).compareTo(other.isSetIndex_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIndex_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_name, other.index_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDeleteData()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + 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("drop_index_by_name_args("); + boolean first = true; + + sb.append("db_name:"); + if (this.db_name == null) { + sb.append("null"); + } else { + sb.append(this.db_name); + } + 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; + if (!first) sb.append(", "); + sb.append("index_name:"); + if (this.index_name == null) { + sb.append("null"); + } else { + sb.append(this.index_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("deleteData:"); + sb.append(this.deleteData); + 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 { + // 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 drop_index_by_name_argsStandardSchemeFactory implements SchemeFactory { + public drop_index_by_name_argsStandardScheme getScheme() { + return new drop_index_by_name_argsStandardScheme(); + } + } + + private static class drop_index_by_name_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_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: // 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: // 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; + case 3: // INDEX_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.index_name = iprot.readString(); + struct.setIndex_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // DELETE_DATA + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(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, drop_index_by_name_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); + oprot.writeFieldEnd(); + } + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); + oprot.writeFieldEnd(); + } + if (struct.index_name != null) { + oprot.writeFieldBegin(INDEX_NAME_FIELD_DESC); + oprot.writeString(struct.index_name); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); + oprot.writeBool(struct.deleteData); + oprot.writeFieldEnd(); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class drop_index_by_name_argsTupleSchemeFactory implements SchemeFactory { + public drop_index_by_name_argsTupleScheme getScheme() { + return new drop_index_by_name_argsTupleScheme(); + } + } + + private static class drop_index_by_name_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetDb_name()) { + optionals.set(0); + } + if (struct.isSetTbl_name()) { + optionals.set(1); + } + if (struct.isSetIndex_name()) { + optionals.set(2); + } + if (struct.isSetDeleteData()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); + } + if (struct.isSetIndex_name()) { + oprot.writeString(struct.index_name); + } + if (struct.isSetDeleteData()) { + oprot.writeBool(struct.deleteData); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } + if (incoming.get(1)) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } + if (incoming.get(2)) { + struct.index_name = iprot.readString(); + struct.setIndex_nameIsSet(true); + } + if (incoming.get(3)) { + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(true); + } + } + } + + } + + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_index_by_name_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("drop_index_by_name_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (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 drop_index_by_name_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_index_by_name_resultTupleSchemeFactory()); + } + + private boolean success; // required + private NoSuchObjectException o1; // required + private MetaException 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 + private static final int __SUCCESS_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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + 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(drop_index_by_name_result.class, metaDataMap); } - public alter_index_result() { + public drop_index_by_name_result() { } - public alter_index_result( - InvalidOperationException o1, + public drop_index_by_name_result( + boolean success, + NoSuchObjectException o1, MetaException o2) { this(); + this.success = success; + setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; } @@ -126344,30 +128787,56 @@ public alter_index_result( /** * Performs a deep copy on other. */ - public alter_index_result(alter_index_result other) { + public drop_index_by_name_result(drop_index_by_name_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; if (other.isSetO1()) { - this.o1 = new InvalidOperationException(other.o1); + this.o1 = new NoSuchObjectException(other.o1); } if (other.isSetO2()) { this.o2 = new MetaException(other.o2); } } - public alter_index_result deepCopy() { - return new alter_index_result(this); + public drop_index_by_name_result deepCopy() { + return new drop_index_by_name_result(this); } @Override public void clear() { + setSuccessIsSet(false); + this.success = false; this.o1 = null; this.o2 = null; } - public InvalidOperationException getO1() { + public boolean isSuccess() { + return this.success; + } + + public void setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); + } + + public void unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + } + + public NoSuchObjectException getO1() { return this.o1; } - public void setO1(InvalidOperationException o1) { + public void setO1(NoSuchObjectException o1) { this.o1 = o1; } @@ -126411,11 +128880,19 @@ public void setO2IsSet(boolean value) { public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Boolean)value); + } + break; + case O1: if (value == null) { unsetO1(); } else { - setO1((InvalidOperationException)value); + setO1((NoSuchObjectException)value); } break; @@ -126432,6 +128909,9 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return isSuccess(); + case O1: return getO1(); @@ -126449,6 +128929,8 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); case O1: return isSetO1(); case O2: @@ -126461,15 +128943,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_index_result) - return this.equals((alter_index_result)that); + if (that instanceof drop_index_by_name_result) + return this.equals((drop_index_by_name_result)that); return false; } - public boolean equals(alter_index_result that) { + public boolean equals(drop_index_by_name_result that) { if (that == null) return false; + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != 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) { @@ -126495,6 +128986,11 @@ public boolean equals(alter_index_result that) { public int hashCode() { List list = new ArrayList(); + boolean present_success = true; + list.add(present_success); + if (present_success) + list.add(success); + boolean present_o1 = true && (isSetO1()); list.add(present_o1); if (present_o1) @@ -126509,13 +129005,23 @@ public int hashCode() { } @Override - public int compareTo(alter_index_result other) { + public int compareTo(drop_index_by_name_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; @@ -126553,9 +129059,13 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_index_result("); + StringBuilder sb = new StringBuilder("drop_index_by_name_result("); boolean first = true; + sb.append("success:"); + sb.append(this.success); + first = false; + if (!first) sb.append(", "); sb.append("o1:"); if (this.o1 == null) { sb.append("null"); @@ -126590,21 +129100,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept 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 alter_index_resultStandardSchemeFactory implements SchemeFactory { - public alter_index_resultStandardScheme getScheme() { - return new alter_index_resultStandardScheme(); + private static class drop_index_by_name_resultStandardSchemeFactory implements SchemeFactory { + public drop_index_by_name_resultStandardScheme getScheme() { + return new drop_index_by_name_resultStandardScheme(); } } - private static class alter_index_resultStandardScheme extends StandardScheme { + private static class drop_index_by_name_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_index_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -126614,9 +129126,17 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_index_result break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + 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 InvalidOperationException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -126641,10 +129161,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_index_result struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_index_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_index_by_name_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); + oprot.writeFieldEnd(); + } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -126661,25 +129186,31 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_index_result } - private static class alter_index_resultTupleSchemeFactory implements SchemeFactory { - public alter_index_resultTupleScheme getScheme() { - return new alter_index_resultTupleScheme(); + private static class drop_index_by_name_resultTupleSchemeFactory implements SchemeFactory { + public drop_index_by_name_resultTupleScheme getScheme() { + return new drop_index_by_name_resultTupleScheme(); } } - private static class alter_index_resultTupleScheme extends TupleScheme { + private static class drop_index_by_name_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_index_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_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()) { + if (struct.isSetO1()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetO2()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); + } if (struct.isSetO1()) { struct.o1.write(oprot); } @@ -126689,15 +129220,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_index_result } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_index_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.o1 = new InvalidOperationException(); + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(1)) { + if (incoming.get(2)) { struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); @@ -126707,31 +129242,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_index_result s } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_index_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("drop_index_by_name_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_index_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_index_by_name_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 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 INDEX_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("index_name", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_index_by_name_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_index_by_name_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_index_by_name_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_index_by_name_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required private String index_name; // required - private boolean deleteData; // 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"), TBL_NAME((short)2, "tbl_name"), - INDEX_NAME((short)3, "index_name"), - DELETE_DATA((short)4, "deleteData"); + INDEX_NAME((short)3, "index_name"); private static final Map byName = new HashMap(); @@ -126752,8 +129284,6 @@ public static _Fields findByThriftId(int fieldId) { return TBL_NAME; case 3: // INDEX_NAME return INDEX_NAME; - case 4: // DELETE_DATA - return DELETE_DATA; default: return null; } @@ -126794,8 +129324,6 @@ public String getFieldName() { } // isset id assignments - private static final int __DELETEDATA_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); @@ -126805,34 +129333,28 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.INDEX_NAME, new org.apache.thrift.meta_data.FieldMetaData("index_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_index_by_name_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_index_by_name_args.class, metaDataMap); } - public drop_index_by_name_args() { + public get_index_by_name_args() { } - public drop_index_by_name_args( + public get_index_by_name_args( String db_name, String tbl_name, - String index_name, - boolean deleteData) + String index_name) { this(); this.db_name = db_name; this.tbl_name = tbl_name; this.index_name = index_name; - this.deleteData = deleteData; - setDeleteDataIsSet(true); } /** * Performs a deep copy on other. */ - public drop_index_by_name_args(drop_index_by_name_args other) { - __isset_bitfield = other.__isset_bitfield; + public get_index_by_name_args(get_index_by_name_args other) { if (other.isSetDb_name()) { this.db_name = other.db_name; } @@ -126842,11 +129364,10 @@ public drop_index_by_name_args(drop_index_by_name_args other) { if (other.isSetIndex_name()) { this.index_name = other.index_name; } - this.deleteData = other.deleteData; } - public drop_index_by_name_args deepCopy() { - return new drop_index_by_name_args(this); + public get_index_by_name_args deepCopy() { + return new get_index_by_name_args(this); } @Override @@ -126854,8 +129375,6 @@ public void clear() { this.db_name = null; this.tbl_name = null; this.index_name = null; - setDeleteDataIsSet(false); - this.deleteData = false; } public String getDb_name() { @@ -126927,28 +129446,6 @@ public void setIndex_nameIsSet(boolean value) { } } - public boolean isDeleteData() { - return this.deleteData; - } - - public void setDeleteData(boolean deleteData) { - this.deleteData = deleteData; - setDeleteDataIsSet(true); - } - - public void unsetDeleteData() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); - } - - /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ - public boolean isSetDeleteData() { - return EncodingUtils.testBit(__isset_bitfield, __DELETEDATA_ISSET_ID); - } - - public void setDeleteDataIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -126975,14 +129472,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case DELETE_DATA: - if (value == null) { - unsetDeleteData(); - } else { - setDeleteData((Boolean)value); - } - break; - } } @@ -126997,9 +129486,6 @@ public Object getFieldValue(_Fields field) { case INDEX_NAME: return getIndex_name(); - case DELETE_DATA: - return isDeleteData(); - } throw new IllegalStateException(); } @@ -127017,8 +129503,6 @@ public boolean isSet(_Fields field) { return isSetTbl_name(); case INDEX_NAME: return isSetIndex_name(); - case DELETE_DATA: - return isSetDeleteData(); } throw new IllegalStateException(); } @@ -127027,12 +129511,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_index_by_name_args) - return this.equals((drop_index_by_name_args)that); + if (that instanceof get_index_by_name_args) + return this.equals((get_index_by_name_args)that); return false; } - public boolean equals(drop_index_by_name_args that) { + public boolean equals(get_index_by_name_args that) { if (that == null) return false; @@ -127063,15 +129547,6 @@ public boolean equals(drop_index_by_name_args that) { return false; } - boolean this_present_deleteData = true; - boolean that_present_deleteData = true; - if (this_present_deleteData || that_present_deleteData) { - if (!(this_present_deleteData && that_present_deleteData)) - return false; - if (this.deleteData != that.deleteData) - return false; - } - return true; } @@ -127094,16 +129569,11 @@ public int hashCode() { if (present_index_name) list.add(index_name); - boolean present_deleteData = true; - list.add(present_deleteData); - if (present_deleteData) - list.add(deleteData); - return list.hashCode(); } @Override - public int compareTo(drop_index_by_name_args other) { + public int compareTo(get_index_by_name_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -127140,16 +129610,6 @@ public int compareTo(drop_index_by_name_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -127167,7 +129627,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_index_by_name_args("); + StringBuilder sb = new StringBuilder("get_index_by_name_args("); boolean first = true; sb.append("db_name:"); @@ -127193,10 +129653,6 @@ public String toString() { sb.append(this.index_name); } first = false; - if (!first) sb.append(", "); - sb.append("deleteData:"); - sb.append(this.deleteData); - first = false; sb.append(")"); return sb.toString(); } @@ -127216,23 +129672,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept 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 drop_index_by_name_argsStandardSchemeFactory implements SchemeFactory { - public drop_index_by_name_argsStandardScheme getScheme() { - return new drop_index_by_name_argsStandardScheme(); + private static class get_index_by_name_argsStandardSchemeFactory implements SchemeFactory { + public get_index_by_name_argsStandardScheme getScheme() { + return new get_index_by_name_argsStandardScheme(); } } - private static class drop_index_by_name_argsStandardScheme extends StandardScheme { + private static class get_index_by_name_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -127266,14 +129720,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // DELETE_DATA - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -127283,7 +129729,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_index_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_by_name_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -127302,25 +129748,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_index_by_name oprot.writeString(struct.index_name); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); - oprot.writeBool(struct.deleteData); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class drop_index_by_name_argsTupleSchemeFactory implements SchemeFactory { - public drop_index_by_name_argsTupleScheme getScheme() { - return new drop_index_by_name_argsTupleScheme(); + private static class get_index_by_name_argsTupleSchemeFactory implements SchemeFactory { + public get_index_by_name_argsTupleScheme getScheme() { + return new get_index_by_name_argsTupleScheme(); } } - private static class drop_index_by_name_argsTupleScheme extends TupleScheme { + private static class get_index_by_name_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -127332,10 +129775,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_ if (struct.isSetIndex_name()) { optionals.set(2); } - if (struct.isSetDeleteData()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } @@ -127345,15 +129785,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_ if (struct.isSetIndex_name()) { oprot.writeString(struct.index_name); } - if (struct.isSetDeleteData()) { - oprot.writeBool(struct.deleteData); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -127366,31 +129803,27 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_a struct.index_name = iprot.readString(); struct.setIndex_nameIsSet(true); } - if (incoming.get(3)) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); - } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_index_by_name_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("drop_index_by_name_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_index_by_name_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_index_by_name_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (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.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 drop_index_by_name_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_index_by_name_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_index_by_name_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_index_by_name_resultTupleSchemeFactory()); } - private boolean success; // required - private NoSuchObjectException o1; // required - private MetaException o2; // required + private Index 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 { @@ -127457,32 +129890,29 @@ public String getFieldName() { } // isset id assignments - private static final int __SUCCESS_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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Index.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(drop_index_by_name_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_index_by_name_result.class, metaDataMap); } - public drop_index_by_name_result() { + public get_index_by_name_result() { } - public drop_index_by_name_result( - boolean success, - NoSuchObjectException o1, - MetaException o2) + public get_index_by_name_result( + Index success, + MetaException o1, + NoSuchObjectException o2) { this(); this.success = success; - setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; } @@ -127490,56 +129920,57 @@ public drop_index_by_name_result( /** * Performs a deep copy on other. */ - public drop_index_by_name_result(drop_index_by_name_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public get_index_by_name_result(get_index_by_name_result other) { + if (other.isSetSuccess()) { + this.success = new Index(other.success); + } if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); + this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new NoSuchObjectException(other.o2); } } - public drop_index_by_name_result deepCopy() { - return new drop_index_by_name_result(this); + public get_index_by_name_result deepCopy() { + return new get_index_by_name_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.success = null; this.o1 = null; this.o2 = null; } - public boolean isSuccess() { + public Index getSuccess() { return this.success; } - public void setSuccess(boolean success) { + public void setSuccess(Index success) { this.success = success; - setSuccessIsSet(true); } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } } - public NoSuchObjectException getO1() { + public MetaException getO1() { return this.o1; } - public void setO1(NoSuchObjectException o1) { + public void setO1(MetaException o1) { this.o1 = o1; } @@ -127558,11 +129989,11 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { + public NoSuchObjectException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(NoSuchObjectException o2) { this.o2 = o2; } @@ -127587,7 +130018,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((Index)value); } break; @@ -127595,7 +130026,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((NoSuchObjectException)value); + setO1((MetaException)value); } break; @@ -127603,7 +130034,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((NoSuchObjectException)value); } break; @@ -127613,7 +130044,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return getSuccess(); case O1: return getO1(); @@ -127646,21 +130077,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_index_by_name_result) - return this.equals((drop_index_by_name_result)that); + if (that instanceof get_index_by_name_result) + return this.equals((get_index_by_name_result)that); return false; } - public boolean equals(drop_index_by_name_result that) { + public boolean equals(get_index_by_name_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + 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 != that.success) + if (!this.success.equals(that.success)) return false; } @@ -127689,7 +130120,7 @@ public boolean equals(drop_index_by_name_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true; + boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); @@ -127708,7 +130139,7 @@ public int hashCode() { } @Override - public int compareTo(drop_index_by_name_result other) { + public int compareTo(get_index_by_name_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -127762,11 +130193,15 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_index_by_name_result("); + StringBuilder sb = new StringBuilder("get_index_by_name_result("); boolean first = true; sb.append("success:"); - sb.append(this.success); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -127791,6 +130226,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 { @@ -127803,23 +130241,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept 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 drop_index_by_name_resultStandardSchemeFactory implements SchemeFactory { - public drop_index_by_name_resultStandardScheme getScheme() { - return new drop_index_by_name_resultStandardScheme(); + private static class get_index_by_name_resultStandardSchemeFactory implements SchemeFactory { + public get_index_by_name_resultStandardScheme getScheme() { + return new get_index_by_name_resultStandardScheme(); } } - private static class drop_index_by_name_resultStandardScheme extends StandardScheme { + private static class get_index_by_name_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -127830,8 +130266,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_ } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new Index(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -127839,7 +130276,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_ break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -127848,7 +130285,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_ break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -127864,13 +130301,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_index_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_by_name_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -127889,16 +130326,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_index_by_name } - private static class drop_index_by_name_resultTupleSchemeFactory implements SchemeFactory { - public drop_index_by_name_resultTupleScheme getScheme() { - return new drop_index_by_name_resultTupleScheme(); + private static class get_index_by_name_resultTupleSchemeFactory implements SchemeFactory { + public get_index_by_name_resultTupleScheme getScheme() { + return new get_index_by_name_resultTupleScheme(); } } - private static class drop_index_by_name_resultTupleScheme extends TupleScheme { + private static class get_index_by_name_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -127912,7 +130349,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_ } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -127923,20 +130360,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_ } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = iprot.readBool(); + struct.success = new Index(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -127945,28 +130383,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_r } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_index_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_index_by_name_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_indexes_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_indexes_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 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 INDEX_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("index_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField MAX_INDEXES_FIELD_DESC = new org.apache.thrift.protocol.TField("max_indexes", org.apache.thrift.protocol.TType.I16, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_index_by_name_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_index_by_name_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_indexes_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_indexes_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private String index_name; // required + private short max_indexes; // 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"), TBL_NAME((short)2, "tbl_name"), - INDEX_NAME((short)3, "index_name"); + MAX_INDEXES((short)3, "max_indexes"); private static final Map byName = new HashMap(); @@ -127985,8 +130423,8 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // INDEX_NAME - return INDEX_NAME; + case 3: // MAX_INDEXES + return MAX_INDEXES; default: return null; } @@ -128027,6 +130465,8 @@ public String getFieldName() { } // isset id assignments + private static final int __MAX_INDEXES_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); @@ -128034,50 +130474,53 @@ public String getFieldName() { 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))); - tmpMap.put(_Fields.INDEX_NAME, new org.apache.thrift.meta_data.FieldMetaData("index_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.MAX_INDEXES, new org.apache.thrift.meta_data.FieldMetaData("max_indexes", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_index_by_name_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_indexes_args.class, metaDataMap); } - public get_index_by_name_args() { + public get_indexes_args() { + this.max_indexes = (short)-1; + } - public get_index_by_name_args( + public get_indexes_args( String db_name, String tbl_name, - String index_name) + short max_indexes) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.index_name = index_name; + this.max_indexes = max_indexes; + setMax_indexesIsSet(true); } /** * Performs a deep copy on other. */ - public get_index_by_name_args(get_index_by_name_args other) { + public get_indexes_args(get_indexes_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; } if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetIndex_name()) { - this.index_name = other.index_name; - } + this.max_indexes = other.max_indexes; } - public get_index_by_name_args deepCopy() { - return new get_index_by_name_args(this); + public get_indexes_args deepCopy() { + return new get_indexes_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.index_name = null; + this.max_indexes = (short)-1; + } public String getDb_name() { @@ -128126,27 +130569,26 @@ public void setTbl_nameIsSet(boolean value) { } } - public String getIndex_name() { - return this.index_name; + public short getMax_indexes() { + return this.max_indexes; } - public void setIndex_name(String index_name) { - this.index_name = index_name; + public void setMax_indexes(short max_indexes) { + this.max_indexes = max_indexes; + setMax_indexesIsSet(true); } - public void unsetIndex_name() { - this.index_name = null; + public void unsetMax_indexes() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID); } - /** Returns true if field index_name is set (has been assigned a value) and false otherwise */ - public boolean isSetIndex_name() { - return this.index_name != null; + /** Returns true if field max_indexes is set (has been assigned a value) and false otherwise */ + public boolean isSetMax_indexes() { + return EncodingUtils.testBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID); } - public void setIndex_nameIsSet(boolean value) { - if (!value) { - this.index_name = null; - } + public void setMax_indexesIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -128167,11 +130609,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case INDEX_NAME: + case MAX_INDEXES: if (value == null) { - unsetIndex_name(); + unsetMax_indexes(); } else { - setIndex_name((String)value); + setMax_indexes((Short)value); } break; @@ -128186,8 +130628,8 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case INDEX_NAME: - return getIndex_name(); + case MAX_INDEXES: + return getMax_indexes(); } throw new IllegalStateException(); @@ -128204,8 +130646,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case INDEX_NAME: - return isSetIndex_name(); + case MAX_INDEXES: + return isSetMax_indexes(); } throw new IllegalStateException(); } @@ -128214,12 +130656,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_index_by_name_args) - return this.equals((get_index_by_name_args)that); + if (that instanceof get_indexes_args) + return this.equals((get_indexes_args)that); return false; } - public boolean equals(get_index_by_name_args that) { + public boolean equals(get_indexes_args that) { if (that == null) return false; @@ -128241,12 +130683,12 @@ public boolean equals(get_index_by_name_args that) { return false; } - boolean this_present_index_name = true && this.isSetIndex_name(); - boolean that_present_index_name = true && that.isSetIndex_name(); - if (this_present_index_name || that_present_index_name) { - if (!(this_present_index_name && that_present_index_name)) + boolean this_present_max_indexes = true; + boolean that_present_max_indexes = true; + if (this_present_max_indexes || that_present_max_indexes) { + if (!(this_present_max_indexes && that_present_max_indexes)) return false; - if (!this.index_name.equals(that.index_name)) + if (this.max_indexes != that.max_indexes) return false; } @@ -128267,16 +130709,16 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_index_name = true && (isSetIndex_name()); - list.add(present_index_name); - if (present_index_name) - list.add(index_name); + boolean present_max_indexes = true; + list.add(present_max_indexes); + if (present_max_indexes) + list.add(max_indexes); return list.hashCode(); } @Override - public int compareTo(get_index_by_name_args other) { + public int compareTo(get_indexes_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -128303,12 +130745,12 @@ public int compareTo(get_index_by_name_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIndex_name()).compareTo(other.isSetIndex_name()); + lastComparison = Boolean.valueOf(isSetMax_indexes()).compareTo(other.isSetMax_indexes()); if (lastComparison != 0) { return lastComparison; } - if (isSetIndex_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_name, other.index_name); + if (isSetMax_indexes()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_indexes, other.max_indexes); if (lastComparison != 0) { return lastComparison; } @@ -128330,7 +130772,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_index_by_name_args("); + StringBuilder sb = new StringBuilder("get_indexes_args("); boolean first = true; sb.append("db_name:"); @@ -128349,12 +130791,8 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("index_name:"); - if (this.index_name == null) { - sb.append("null"); - } else { - sb.append(this.index_name); - } + sb.append("max_indexes:"); + sb.append(this.max_indexes); first = false; sb.append(")"); return sb.toString(); @@ -128375,21 +130813,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept 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 get_index_by_name_argsStandardSchemeFactory implements SchemeFactory { - public get_index_by_name_argsStandardScheme getScheme() { - return new get_index_by_name_argsStandardScheme(); + private static class get_indexes_argsStandardSchemeFactory implements SchemeFactory { + public get_indexes_argsStandardScheme getScheme() { + return new get_indexes_argsStandardScheme(); } } - private static class get_index_by_name_argsStandardScheme extends StandardScheme { + private static class get_indexes_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -128415,10 +130855,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_a org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // INDEX_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.index_name = iprot.readString(); - struct.setIndex_nameIsSet(true); + case 3: // MAX_INDEXES + if (schemeField.type == org.apache.thrift.protocol.TType.I16) { + struct.max_indexes = iprot.readI16(); + struct.setMax_indexesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -128432,7 +130872,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_a struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_indexes_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -128446,27 +130886,25 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_by_name_ oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.index_name != null) { - oprot.writeFieldBegin(INDEX_NAME_FIELD_DESC); - oprot.writeString(struct.index_name); - oprot.writeFieldEnd(); - } + oprot.writeFieldBegin(MAX_INDEXES_FIELD_DESC); + oprot.writeI16(struct.max_indexes); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_index_by_name_argsTupleSchemeFactory implements SchemeFactory { - public get_index_by_name_argsTupleScheme getScheme() { - return new get_index_by_name_argsTupleScheme(); + private static class get_indexes_argsTupleSchemeFactory implements SchemeFactory { + public get_indexes_argsTupleScheme getScheme() { + return new get_indexes_argsTupleScheme(); } } - private static class get_index_by_name_argsTupleScheme extends TupleScheme { + private static class get_indexes_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -128475,7 +130913,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_a if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetIndex_name()) { + if (struct.isSetMax_indexes()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); @@ -128485,13 +130923,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_a if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetIndex_name()) { - oprot.writeString(struct.index_name); + if (struct.isSetMax_indexes()) { + oprot.writeI16(struct.max_indexes); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -128503,30 +130941,30 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_ar struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.index_name = iprot.readString(); - struct.setIndex_nameIsSet(true); + struct.max_indexes = iprot.readI16(); + struct.setMax_indexesIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_index_by_name_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_index_by_name_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_indexes_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_indexes_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_index_by_name_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_index_by_name_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_indexes_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_indexes_resultTupleSchemeFactory()); } - private Index success; // required - private MetaException o1; // required - private NoSuchObjectException o2; // required + private List success; // required + private NoSuchObjectException o1; // required + private MetaException 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 { @@ -128597,22 +131035,23 @@ 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, Index.class))); + 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, Index.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_index_by_name_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_indexes_result.class, metaDataMap); } - public get_index_by_name_result() { + public get_indexes_result() { } - public get_index_by_name_result( - Index success, - MetaException o1, - NoSuchObjectException o2) + public get_indexes_result( + List success, + NoSuchObjectException o1, + MetaException o2) { this(); this.success = success; @@ -128623,20 +131062,24 @@ public get_index_by_name_result( /** * Performs a deep copy on other. */ - public get_index_by_name_result(get_index_by_name_result other) { + public get_indexes_result(get_indexes_result other) { if (other.isSetSuccess()) { - this.success = new Index(other.success); + List __this__success = new ArrayList(other.success.size()); + for (Index other_element : other.success) { + __this__success.add(new Index(other_element)); + } + this.success = __this__success; } if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + this.o1 = new NoSuchObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new NoSuchObjectException(other.o2); + this.o2 = new MetaException(other.o2); } } - public get_index_by_name_result deepCopy() { - return new get_index_by_name_result(this); + public get_indexes_result deepCopy() { + return new get_indexes_result(this); } @Override @@ -128646,11 +131089,26 @@ public void clear() { this.o2 = null; } - public Index 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(Index elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public void setSuccess(Index success) { + public void setSuccess(List success) { this.success = success; } @@ -128669,11 +131127,11 @@ public void setSuccessIsSet(boolean value) { } } - public MetaException getO1() { + public NoSuchObjectException getO1() { return this.o1; } - public void setO1(MetaException o1) { + public void setO1(NoSuchObjectException o1) { this.o1 = o1; } @@ -128692,11 +131150,11 @@ public void setO1IsSet(boolean value) { } } - public NoSuchObjectException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(NoSuchObjectException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -128721,7 +131179,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Index)value); + setSuccess((List)value); } break; @@ -128729,7 +131187,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((MetaException)value); + setO1((NoSuchObjectException)value); } break; @@ -128737,7 +131195,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((NoSuchObjectException)value); + setO2((MetaException)value); } break; @@ -128780,12 +131238,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_index_by_name_result) - return this.equals((get_index_by_name_result)that); + if (that instanceof get_indexes_result) + return this.equals((get_indexes_result)that); return false; } - public boolean equals(get_index_by_name_result that) { + public boolean equals(get_indexes_result that) { if (that == null) return false; @@ -128842,7 +131300,7 @@ public int hashCode() { } @Override - public int compareTo(get_index_by_name_result other) { + public int compareTo(get_indexes_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -128896,7 +131354,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_index_by_name_result("); + StringBuilder sb = new StringBuilder("get_indexes_result("); boolean first = true; sb.append("success:"); @@ -128929,9 +131387,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 { @@ -128950,15 +131405,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_index_by_name_resultStandardSchemeFactory implements SchemeFactory { - public get_index_by_name_resultStandardScheme getScheme() { - return new get_index_by_name_resultStandardScheme(); + private static class get_indexes_resultStandardSchemeFactory implements SchemeFactory { + public get_indexes_resultStandardScheme getScheme() { + return new get_indexes_resultStandardScheme(); } } - private static class get_index_by_name_resultStandardScheme extends StandardScheme { + private static class get_indexes_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -128969,9 +131424,19 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_r } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Index(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1328 = iprot.readListBegin(); + struct.success = new ArrayList(_list1328.size); + Index _elem1329; + for (int _i1330 = 0; _i1330 < _list1328.size; ++_i1330) + { + _elem1329 = new Index(); + _elem1329.read(iprot); + struct.success.add(_elem1329); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -128979,7 +131444,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_r break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -128988,7 +131453,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_r break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -129004,13 +131469,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_r struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_indexes_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.STRUCT, struct.success.size())); + for (Index _iter1331 : struct.success) + { + _iter1331.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -129029,16 +131501,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_by_name_ } - private static class get_index_by_name_resultTupleSchemeFactory implements SchemeFactory { - public get_index_by_name_resultTupleScheme getScheme() { - return new get_index_by_name_resultTupleScheme(); + private static class get_indexes_resultTupleSchemeFactory implements SchemeFactory { + public get_indexes_resultTupleScheme getScheme() { + return new get_indexes_resultTupleScheme(); } } - private static class get_index_by_name_resultTupleScheme extends TupleScheme { + private static class get_indexes_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -129052,7 +131524,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_r } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - struct.success.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (Index _iter1332 : struct.success) + { + _iter1332.write(oprot); + } + } } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -129063,21 +131541,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_r } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new Index(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list1333 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1333.size); + Index _elem1334; + for (int _i1335 = 0; _i1335 < _list1333.size; ++_i1335) + { + _elem1334 = new Index(); + _elem1334.read(iprot); + struct.success.add(_elem1334); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -129086,8 +131573,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_re } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_indexes_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_indexes_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_index_names_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_index_names_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 TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); @@ -129095,8 +131582,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_re private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_indexes_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_indexes_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_index_names_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_index_names_argsTupleSchemeFactory()); } private String db_name; // required @@ -129180,15 +131667,15 @@ public String getFieldName() { tmpMap.put(_Fields.MAX_INDEXES, new org.apache.thrift.meta_data.FieldMetaData("max_indexes", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_indexes_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_index_names_args.class, metaDataMap); } - public get_indexes_args() { + public get_index_names_args() { this.max_indexes = (short)-1; } - public get_indexes_args( + public get_index_names_args( String db_name, String tbl_name, short max_indexes) @@ -129203,7 +131690,7 @@ public get_indexes_args( /** * Performs a deep copy on other. */ - public get_indexes_args(get_indexes_args other) { + public get_index_names_args(get_index_names_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -129214,8 +131701,8 @@ public get_indexes_args(get_indexes_args other) { this.max_indexes = other.max_indexes; } - public get_indexes_args deepCopy() { - return new get_indexes_args(this); + public get_index_names_args deepCopy() { + return new get_index_names_args(this); } @Override @@ -129359,12 +131846,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_indexes_args) - return this.equals((get_indexes_args)that); + if (that instanceof get_index_names_args) + return this.equals((get_index_names_args)that); return false; } - public boolean equals(get_indexes_args that) { + public boolean equals(get_index_names_args that) { if (that == null) return false; @@ -129421,7 +131908,7 @@ public int hashCode() { } @Override - public int compareTo(get_indexes_args other) { + public int compareTo(get_index_names_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -129475,7 +131962,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_indexes_args("); + StringBuilder sb = new StringBuilder("get_index_names_args("); boolean first = true; sb.append("db_name:"); @@ -129524,15 +132011,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_indexes_argsStandardSchemeFactory implements SchemeFactory { - public get_indexes_argsStandardScheme getScheme() { - return new get_indexes_argsStandardScheme(); + private static class get_index_names_argsStandardSchemeFactory implements SchemeFactory { + public get_index_names_argsStandardScheme getScheme() { + return new get_index_names_argsStandardScheme(); } } - private static class get_indexes_argsStandardScheme extends StandardScheme { + private static class get_index_names_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -129575,7 +132062,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_args st struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_indexes_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_names_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -129598,16 +132085,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_indexes_args s } - private static class get_indexes_argsTupleSchemeFactory implements SchemeFactory { - public get_indexes_argsTupleScheme getScheme() { - return new get_indexes_argsTupleScheme(); + private static class get_index_names_argsTupleSchemeFactory implements SchemeFactory { + public get_index_names_argsTupleScheme getScheme() { + return new get_index_names_argsTupleScheme(); } } - private static class get_indexes_argsTupleScheme extends TupleScheme { + private static class get_index_names_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -129632,7 +132119,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_args st } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_index_names_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -129652,28 +132139,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_args str } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_indexes_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_indexes_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_index_names_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_index_names_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 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 O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_indexes_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_indexes_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_index_names_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_index_names_resultTupleSchemeFactory()); } - private List success; // required - private NoSuchObjectException o1; // required + private List success; // required private MetaException 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"); + O2((short)1, "o2"); private static final Map byName = new HashMap(); @@ -129690,9 +132174,7 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; - case 1: // O1 - return O1; - case 2: // O2 + case 1: // O2 return O2; default: return null; @@ -129739,56 +132221,45 @@ 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, Index.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))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); 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_indexes_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_index_names_result.class, metaDataMap); } - public get_indexes_result() { + public get_index_names_result() { } - public get_indexes_result( - List success, - NoSuchObjectException o1, + public get_index_names_result( + List success, MetaException o2) { this(); this.success = success; - this.o1 = o1; this.o2 = o2; } /** * Performs a deep copy on other. */ - public get_indexes_result(get_indexes_result other) { + public get_index_names_result(get_index_names_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Index other_element : other.success) { - __this__success.add(new Index(other_element)); - } + List __this__success = new ArrayList(other.success); this.success = __this__success; } - if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); - } if (other.isSetO2()) { this.o2 = new MetaException(other.o2); } } - public get_indexes_result deepCopy() { - return new get_indexes_result(this); + public get_index_names_result deepCopy() { + return new get_index_names_result(this); } @Override public void clear() { this.success = null; - this.o1 = null; this.o2 = null; } @@ -129796,22 +132267,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(Index 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; } @@ -129830,29 +132301,6 @@ public void setSuccessIsSet(boolean value) { } } - public NoSuchObjectException getO1() { - return this.o1; - } - - public void setO1(NoSuchObjectException 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 MetaException getO2() { return this.o2; } @@ -129882,15 +132330,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); - } - break; - - case O1: - if (value == null) { - unsetO1(); - } else { - setO1((NoSuchObjectException)value); + setSuccess((List)value); } break; @@ -129910,9 +132350,6 @@ public Object getFieldValue(_Fields field) { case SUCCESS: return getSuccess(); - case O1: - return getO1(); - case O2: return getO2(); @@ -129929,8 +132366,6 @@ public boolean isSet(_Fields field) { switch (field) { case SUCCESS: return isSetSuccess(); - case O1: - return isSetO1(); case O2: return isSetO2(); } @@ -129941,12 +132376,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_indexes_result) - return this.equals((get_indexes_result)that); + if (that instanceof get_index_names_result) + return this.equals((get_index_names_result)that); return false; } - public boolean equals(get_indexes_result that) { + public boolean equals(get_index_names_result that) { if (that == null) return false; @@ -129959,15 +132394,6 @@ public boolean equals(get_indexes_result that) { 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) { @@ -129989,11 +132415,6 @@ public int hashCode() { 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) @@ -130003,7 +132424,7 @@ public int hashCode() { } @Override - public int compareTo(get_indexes_result other) { + public int compareTo(get_index_names_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -130020,16 +132441,6 @@ public int compareTo(get_indexes_result other) { 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; @@ -130057,7 +132468,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_indexes_result("); + StringBuilder sb = new StringBuilder("get_index_names_result("); boolean first = true; sb.append("success:"); @@ -130068,14 +132479,6 @@ public String toString() { } 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"); @@ -130108,15 +132511,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_indexes_resultStandardSchemeFactory implements SchemeFactory { - public get_indexes_resultStandardScheme getScheme() { - return new get_indexes_resultStandardScheme(); + private static class get_index_names_resultStandardSchemeFactory implements SchemeFactory { + public get_index_names_resultStandardScheme getScheme() { + return new get_index_names_resultStandardScheme(); } } - private static class get_indexes_resultStandardScheme extends StandardScheme { + private static class get_index_names_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -130129,14 +132532,13 @@ 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 _list1304 = iprot.readListBegin(); - struct.success = new ArrayList(_list1304.size); - Index _elem1305; - for (int _i1306 = 0; _i1306 < _list1304.size; ++_i1306) + org.apache.thrift.protocol.TList _list1336 = iprot.readListBegin(); + struct.success = new ArrayList(_list1336.size); + String _elem1337; + for (int _i1338 = 0; _i1338 < _list1336.size; ++_i1338) { - _elem1305 = new Index(); - _elem1305.read(iprot); - struct.success.add(_elem1305); + _elem1337 = iprot.readString(); + struct.success.add(_elem1337); } iprot.readListEnd(); } @@ -130145,16 +132547,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_result 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 NoSuchObjectException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // O2 + case 1: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.o2 = new MetaException(); struct.o2.read(iprot); @@ -130172,27 +132565,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_result struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_indexes_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_names_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 (Index _iter1307 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter1339 : struct.success) { - _iter1307.write(oprot); + oprot.writeString(_iter1339); } oprot.writeListEnd(); } 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); @@ -130204,69 +132592,57 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_indexes_result } - private static class get_indexes_resultTupleSchemeFactory implements SchemeFactory { - public get_indexes_resultTupleScheme getScheme() { - return new get_indexes_resultTupleScheme(); + private static class get_index_names_resultTupleSchemeFactory implements SchemeFactory { + public get_index_names_resultTupleScheme getScheme() { + return new get_index_names_resultTupleScheme(); } } - private static class get_indexes_resultTupleScheme extends TupleScheme { + private static class get_index_names_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_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); + optionals.set(1); } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Index _iter1308 : struct.success) + for (String _iter1340 : struct.success) { - _iter1308.write(oprot); + oprot.writeString(_iter1340); } } } - 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_indexes_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_index_names_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)) { { - org.apache.thrift.protocol.TList _list1309 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1309.size); - Index _elem1310; - for (int _i1311 = 0; _i1311 < _list1309.size; ++_i1311) + org.apache.thrift.protocol.TList _list1341 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1341.size); + String _elem1342; + for (int _i1343 = 0; _i1343 < _list1341.size; ++_i1343) { - _elem1310 = new Index(); - _elem1310.read(iprot); - struct.success.add(_elem1310); + _elem1342 = iprot.readString(); + struct.success.add(_elem1342); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new NoSuchObjectException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); - } - if (incoming.get(2)) { struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); @@ -130276,28 +132652,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_result s } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_index_names_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_index_names_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_primary_keys_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_primary_keys_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 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 MAX_INDEXES_FIELD_DESC = new org.apache.thrift.protocol.TField("max_indexes", org.apache.thrift.protocol.TType.I16, (short)3); + private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_index_names_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_index_names_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_primary_keys_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_primary_keys_argsTupleSchemeFactory()); } - private String db_name; // required - private String tbl_name; // required - private short max_indexes; // required + private PrimaryKeysRequest request; // 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"), - TBL_NAME((short)2, "tbl_name"), - MAX_INDEXES((short)3, "max_indexes"); + REQUEST((short)1, "request"); private static final Map byName = new HashMap(); @@ -130312,12 +132682,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_result s */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // MAX_INDEXES - return MAX_INDEXES; + case 1: // REQUEST + return REQUEST; default: return null; } @@ -130358,155 +132724,73 @@ public String getFieldName() { } // isset id assignments - private static final int __MAX_INDEXES_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", 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))); - tmpMap.put(_Fields.MAX_INDEXES, new org.apache.thrift.meta_data.FieldMetaData("max_indexes", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); + tmpMap.put(_Fields.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PrimaryKeysRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_index_names_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_primary_keys_args.class, metaDataMap); } - public get_index_names_args() { - this.max_indexes = (short)-1; - + public get_primary_keys_args() { } - public get_index_names_args( - String db_name, - String tbl_name, - short max_indexes) + public get_primary_keys_args( + PrimaryKeysRequest request) { this(); - this.db_name = db_name; - this.tbl_name = tbl_name; - this.max_indexes = max_indexes; - setMax_indexesIsSet(true); + this.request = request; } /** * Performs a deep copy on other. */ - public get_index_names_args(get_index_names_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetDb_name()) { - this.db_name = other.db_name; - } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; + public get_primary_keys_args(get_primary_keys_args other) { + if (other.isSetRequest()) { + this.request = new PrimaryKeysRequest(other.request); } - this.max_indexes = other.max_indexes; } - public get_index_names_args deepCopy() { - return new get_index_names_args(this); + public get_primary_keys_args deepCopy() { + return new get_primary_keys_args(this); } @Override public void clear() { - this.db_name = null; - this.tbl_name = null; - this.max_indexes = (short)-1; - - } - - public String getDb_name() { - return this.db_name; - } - - public void setDb_name(String db_name) { - this.db_name = db_name; - } - - public void unsetDb_name() { - this.db_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 setDb_nameIsSet(boolean value) { - if (!value) { - this.db_name = null; - } + this.request = null; } - public String getTbl_name() { - return this.tbl_name; + public PrimaryKeysRequest getRequest() { + return this.request; } - public void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; + public void setRequest(PrimaryKeysRequest request) { + this.request = request; } - public void unsetTbl_name() { - this.tbl_name = null; + public void unsetRequest() { + this.request = 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 request is set (has been assigned a value) and false otherwise */ + public boolean isSetRequest() { + return this.request != null; } - public void setTbl_nameIsSet(boolean value) { + public void setRequestIsSet(boolean value) { if (!value) { - this.tbl_name = null; + this.request = null; } } - public short getMax_indexes() { - return this.max_indexes; - } - - public void setMax_indexes(short max_indexes) { - this.max_indexes = max_indexes; - setMax_indexesIsSet(true); - } - - public void unsetMax_indexes() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID); - } - - /** Returns true if field max_indexes is set (has been assigned a value) and false otherwise */ - public boolean isSetMax_indexes() { - return EncodingUtils.testBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID); - } - - public void setMax_indexesIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_NAME: - if (value == null) { - unsetDb_name(); - } else { - setDb_name((String)value); - } - break; - - case TBL_NAME: - if (value == null) { - unsetTbl_name(); - } else { - setTbl_name((String)value); - } - break; - - case MAX_INDEXES: + case REQUEST: if (value == null) { - unsetMax_indexes(); + unsetRequest(); } else { - setMax_indexes((Short)value); + setRequest((PrimaryKeysRequest)value); } break; @@ -130515,14 +132799,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); - - case TBL_NAME: - return getTbl_name(); - - case MAX_INDEXES: - return getMax_indexes(); + case REQUEST: + return getRequest(); } throw new IllegalStateException(); @@ -130535,12 +132813,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case TBL_NAME: - return isSetTbl_name(); - case MAX_INDEXES: - return isSetMax_indexes(); + case REQUEST: + return isSetRequest(); } throw new IllegalStateException(); } @@ -130549,39 +132823,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_index_names_args) - return this.equals((get_index_names_args)that); + if (that instanceof get_primary_keys_args) + return this.equals((get_primary_keys_args)that); return false; } - public boolean equals(get_index_names_args that) { + public boolean equals(get_primary_keys_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)) - return false; - if (!this.db_name.equals(that.db_name)) - 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; - } - - boolean this_present_max_indexes = true; - boolean that_present_max_indexes = true; - if (this_present_max_indexes || that_present_max_indexes) { - if (!(this_present_max_indexes && that_present_max_indexes)) + boolean this_present_request = true && this.isSetRequest(); + boolean that_present_request = true && that.isSetRequest(); + if (this_present_request || that_present_request) { + if (!(this_present_request && that_present_request)) return false; - if (this.max_indexes != that.max_indexes) + if (!this.request.equals(that.request)) return false; } @@ -130592,58 +132848,28 @@ public boolean equals(get_index_names_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_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); - - boolean present_max_indexes = true; - list.add(present_max_indexes); - if (present_max_indexes) - list.add(max_indexes); + boolean present_request = true && (isSetRequest()); + list.add(present_request); + if (present_request) + list.add(request); return list.hashCode(); } @Override - public int compareTo(get_index_names_args other) { + public int compareTo(get_primary_keys_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()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); - 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; - } - } - lastComparison = Boolean.valueOf(isSetMax_indexes()).compareTo(other.isSetMax_indexes()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); if (lastComparison != 0) { return lastComparison; } - if (isSetMax_indexes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_indexes, other.max_indexes); + if (isSetRequest()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); if (lastComparison != 0) { return lastComparison; } @@ -130665,28 +132891,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_index_names_args("); + StringBuilder sb = new StringBuilder("get_primary_keys_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { - sb.append("null"); - } else { - sb.append(this.db_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { + sb.append("request:"); + if (this.request == null) { sb.append("null"); } else { - sb.append(this.tbl_name); + sb.append(this.request); } first = false; - if (!first) sb.append(", "); - sb.append("max_indexes:"); - sb.append(this.max_indexes); - first = false; sb.append(")"); return sb.toString(); } @@ -130694,6 +132908,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (request != null) { + request.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -130706,23 +132923,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept 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 get_index_names_argsStandardSchemeFactory implements SchemeFactory { - public get_index_names_argsStandardScheme getScheme() { - return new get_index_names_argsStandardScheme(); + private static class get_primary_keys_argsStandardSchemeFactory implements SchemeFactory { + public get_primary_keys_argsStandardScheme getScheme() { + return new get_primary_keys_argsStandardScheme(); } } - private static class get_index_names_argsStandardScheme extends StandardScheme { + private static class get_primary_keys_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_primary_keys_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -130732,26 +132947,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_arg break; } switch (schemeField.id) { - 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: // 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; - case 3: // MAX_INDEXES - if (schemeField.type == org.apache.thrift.protocol.TType.I16) { - struct.max_indexes = iprot.readI16(); - struct.setMax_indexesIsSet(true); + case 1: // REQUEST + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.request = new PrimaryKeysRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -130765,102 +132965,78 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_arg struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_names_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_primary_keys_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); - oprot.writeFieldEnd(); - } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); + if (struct.request != null) { + oprot.writeFieldBegin(REQUEST_FIELD_DESC); + struct.request.write(oprot); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(MAX_INDEXES_FIELD_DESC); - oprot.writeI16(struct.max_indexes); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_index_names_argsTupleSchemeFactory implements SchemeFactory { - public get_index_names_argsTupleScheme getScheme() { - return new get_index_names_argsTupleScheme(); + private static class get_primary_keys_argsTupleSchemeFactory implements SchemeFactory { + public get_primary_keys_argsTupleScheme getScheme() { + return new get_primary_keys_argsTupleScheme(); } } - private static class get_index_names_argsTupleScheme extends TupleScheme { + private static class get_primary_keys_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_primary_keys_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetRequest()) { optionals.set(0); } - if (struct.isSetTbl_name()) { - optionals.set(1); - } - if (struct.isSetMax_indexes()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); - } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); - } - if (struct.isSetMax_indexes()) { - oprot.writeI16(struct.max_indexes); + oprot.writeBitSet(optionals, 1); + if (struct.isSetRequest()) { + struct.request.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_index_names_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_primary_keys_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_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } - if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } - if (incoming.get(2)) { - struct.max_indexes = iprot.readI16(); - struct.setMax_indexesIsSet(true); + struct.request = new PrimaryKeysRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); } } } } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_index_names_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_index_names_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_primary_keys_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_primary_keys_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 O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)1); + 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_index_names_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_index_names_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_primary_keys_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_primary_keys_resultTupleSchemeFactory()); } - private List success; // required - private MetaException o2; // required + private PrimaryKeysResponse 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"), - O2((short)1, "o2"); + O1((short)1, "o1"), + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -130877,7 +133053,9 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; - case 1: // O2 + case 1: // O1 + return O1; + case 2: // O2 return O2; default: return null; @@ -130923,69 +133101,60 @@ 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.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, PrimaryKeysResponse.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_index_names_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_primary_keys_result.class, metaDataMap); } - public get_index_names_result() { + public get_primary_keys_result() { } - public get_index_names_result( - List success, - MetaException o2) + public get_primary_keys_result( + PrimaryKeysResponse success, + MetaException o1, + NoSuchObjectException o2) { this(); this.success = success; + this.o1 = o1; this.o2 = o2; } /** * Performs a deep copy on other. */ - public get_index_names_result(get_index_names_result other) { + public get_primary_keys_result(get_primary_keys_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); - this.success = __this__success; + this.success = new PrimaryKeysResponse(other.success); + } + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new NoSuchObjectException(other.o2); } } - public get_index_names_result deepCopy() { - return new get_index_names_result(this); + public get_primary_keys_result deepCopy() { + return new get_primary_keys_result(this); } @Override public void clear() { this.success = null; + this.o1 = null; this.o2 = null; } - 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() { + public PrimaryKeysResponse getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(PrimaryKeysResponse success) { this.success = success; } @@ -131004,11 +133173,34 @@ public void setSuccessIsSet(boolean value) { } } - public MetaException getO2() { + 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(MetaException o2) { + public void setO2(NoSuchObjectException o2) { this.o2 = o2; } @@ -131033,7 +133225,15 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((PrimaryKeysResponse)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((MetaException)value); } break; @@ -131041,7 +133241,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((NoSuchObjectException)value); } break; @@ -131053,6 +133253,9 @@ public Object getFieldValue(_Fields field) { case SUCCESS: return getSuccess(); + case O1: + return getO1(); + case O2: return getO2(); @@ -131069,6 +133272,8 @@ public boolean isSet(_Fields field) { switch (field) { case SUCCESS: return isSetSuccess(); + case O1: + return isSetO1(); case O2: return isSetO2(); } @@ -131079,12 +133284,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_index_names_result) - return this.equals((get_index_names_result)that); + if (that instanceof get_primary_keys_result) + return this.equals((get_primary_keys_result)that); return false; } - public boolean equals(get_index_names_result that) { + public boolean equals(get_primary_keys_result that) { if (that == null) return false; @@ -131097,6 +133302,15 @@ public boolean equals(get_index_names_result that) { 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) { @@ -131118,6 +133332,11 @@ public int hashCode() { 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) @@ -131127,7 +133346,7 @@ public int hashCode() { } @Override - public int compareTo(get_index_names_result other) { + public int compareTo(get_primary_keys_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -131144,6 +133363,16 @@ public int compareTo(get_index_names_result other) { 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; @@ -131171,7 +133400,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_index_names_result("); + StringBuilder sb = new StringBuilder("get_primary_keys_result("); boolean first = true; sb.append("success:"); @@ -131182,6 +133411,14 @@ public String toString() { } 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"); @@ -131196,6 +133433,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 { @@ -131214,15 +133454,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_index_names_resultStandardSchemeFactory implements SchemeFactory { - public get_index_names_resultStandardScheme getScheme() { - return new get_index_names_resultStandardScheme(); + private static class get_primary_keys_resultStandardSchemeFactory implements SchemeFactory { + public get_primary_keys_resultStandardScheme getScheme() { + return new get_primary_keys_resultStandardScheme(); } } - private static class get_index_names_resultStandardScheme extends StandardScheme { + private static class get_primary_keys_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_primary_keys_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -131233,26 +133473,26 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_res } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list1312 = iprot.readListBegin(); - struct.success = new ArrayList(_list1312.size); - String _elem1313; - for (int _i1314 = 0; _i1314 < _list1312.size; ++_i1314) - { - _elem1313 = iprot.readString(); - struct.success.add(_elem1313); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new PrimaryKeysResponse(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 1: // O2 + case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + 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 { @@ -131268,20 +133508,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_res struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_names_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_primary_keys_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 _iter1315 : struct.success) - { - oprot.writeString(_iter1315); - } - oprot.writeListEnd(); - } + 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) { @@ -131295,33 +133533,33 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_names_re } - private static class get_index_names_resultTupleSchemeFactory implements SchemeFactory { - public get_index_names_resultTupleScheme getScheme() { - return new get_index_names_resultTupleScheme(); + private static class get_primary_keys_resultTupleSchemeFactory implements SchemeFactory { + public get_primary_keys_resultTupleScheme getScheme() { + return new get_primary_keys_resultTupleScheme(); } } - private static class get_index_names_resultTupleScheme extends TupleScheme { + private static class get_primary_keys_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_primary_keys_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO2()) { + if (struct.isSetO1()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetO2()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (String _iter1316 : struct.success) - { - oprot.writeString(_iter1316); - } - } + struct.success.write(oprot); + } + if (struct.isSetO1()) { + struct.o1.write(oprot); } if (struct.isSetO2()) { struct.o2.write(oprot); @@ -131329,24 +133567,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_res } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_index_names_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_primary_keys_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list1317 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1317.size); - String _elem1318; - for (int _i1319 = 0; _i1319 < _list1317.size; ++_i1319) - { - _elem1318 = iprot.readString(); - struct.success.add(_elem1318); - } - } + struct.success = new PrimaryKeysResponse(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o2 = new MetaException(); + 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); } @@ -131355,18 +133590,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_index_names_resu } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_primary_keys_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_primary_keys_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_foreign_keys_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_foreign_keys_args"); private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_primary_keys_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_primary_keys_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_foreign_keys_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_foreign_keys_argsTupleSchemeFactory()); } - private PrimaryKeysRequest request; // required + private ForeignKeysRequest request; // 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 { @@ -131431,16 +133666,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.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PrimaryKeysRequest.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ForeignKeysRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_primary_keys_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_foreign_keys_args.class, metaDataMap); } - public get_primary_keys_args() { + public get_foreign_keys_args() { } - public get_primary_keys_args( - PrimaryKeysRequest request) + public get_foreign_keys_args( + ForeignKeysRequest request) { this(); this.request = request; @@ -131449,14 +133684,14 @@ public get_primary_keys_args( /** * Performs a deep copy on other. */ - public get_primary_keys_args(get_primary_keys_args other) { + public get_foreign_keys_args(get_foreign_keys_args other) { if (other.isSetRequest()) { - this.request = new PrimaryKeysRequest(other.request); + this.request = new ForeignKeysRequest(other.request); } } - public get_primary_keys_args deepCopy() { - return new get_primary_keys_args(this); + public get_foreign_keys_args deepCopy() { + return new get_foreign_keys_args(this); } @Override @@ -131464,11 +133699,11 @@ public void clear() { this.request = null; } - public PrimaryKeysRequest getRequest() { + public ForeignKeysRequest getRequest() { return this.request; } - public void setRequest(PrimaryKeysRequest request) { + public void setRequest(ForeignKeysRequest request) { this.request = request; } @@ -131493,7 +133728,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetRequest(); } else { - setRequest((PrimaryKeysRequest)value); + setRequest((ForeignKeysRequest)value); } break; @@ -131526,12 +133761,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_primary_keys_args) - return this.equals((get_primary_keys_args)that); + if (that instanceof get_foreign_keys_args) + return this.equals((get_foreign_keys_args)that); return false; } - public boolean equals(get_primary_keys_args that) { + public boolean equals(get_foreign_keys_args that) { if (that == null) return false; @@ -131560,7 +133795,7 @@ public int hashCode() { } @Override - public int compareTo(get_primary_keys_args other) { + public int compareTo(get_foreign_keys_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -131594,7 +133829,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_primary_keys_args("); + StringBuilder sb = new StringBuilder("get_foreign_keys_args("); boolean first = true; sb.append("request:"); @@ -131632,15 +133867,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_primary_keys_argsStandardSchemeFactory implements SchemeFactory { - public get_primary_keys_argsStandardScheme getScheme() { - return new get_primary_keys_argsStandardScheme(); + private static class get_foreign_keys_argsStandardSchemeFactory implements SchemeFactory { + public get_foreign_keys_argsStandardScheme getScheme() { + return new get_foreign_keys_argsStandardScheme(); } } - private static class get_primary_keys_argsStandardScheme extends StandardScheme { + private static class get_foreign_keys_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_primary_keys_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_foreign_keys_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -131652,7 +133887,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_primary_keys_ar switch (schemeField.id) { case 1: // REQUEST if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.request = new PrimaryKeysRequest(); + struct.request = new ForeignKeysRequest(); struct.request.read(iprot); struct.setRequestIsSet(true); } else { @@ -131668,7 +133903,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_primary_keys_ar struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_primary_keys_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_foreign_keys_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -131683,16 +133918,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_primary_keys_a } - private static class get_primary_keys_argsTupleSchemeFactory implements SchemeFactory { - public get_primary_keys_argsTupleScheme getScheme() { - return new get_primary_keys_argsTupleScheme(); + private static class get_foreign_keys_argsTupleSchemeFactory implements SchemeFactory { + public get_foreign_keys_argsTupleScheme getScheme() { + return new get_foreign_keys_argsTupleScheme(); } } - private static class get_primary_keys_argsTupleScheme extends TupleScheme { + private static class get_foreign_keys_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_primary_keys_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_foreign_keys_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRequest()) { @@ -131705,11 +133940,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_primary_keys_ar } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_primary_keys_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_foreign_keys_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.request = new PrimaryKeysRequest(); + struct.request = new ForeignKeysRequest(); struct.request.read(iprot); struct.setRequestIsSet(true); } @@ -131718,8 +133953,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_primary_keys_arg } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_primary_keys_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_primary_keys_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_foreign_keys_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_foreign_keys_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); @@ -131727,11 +133962,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_primary_keys_arg private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_primary_keys_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_primary_keys_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_foreign_keys_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_foreign_keys_resultTupleSchemeFactory()); } - private PrimaryKeysResponse success; // required + private ForeignKeysResponse success; // required private MetaException o1; // required private NoSuchObjectException o2; // required @@ -131804,20 +134039,20 @@ 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, PrimaryKeysResponse.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ForeignKeysResponse.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_primary_keys_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_foreign_keys_result.class, metaDataMap); } - public get_primary_keys_result() { + public get_foreign_keys_result() { } - public get_primary_keys_result( - PrimaryKeysResponse success, + public get_foreign_keys_result( + ForeignKeysResponse success, MetaException o1, NoSuchObjectException o2) { @@ -131830,9 +134065,9 @@ public get_primary_keys_result( /** * Performs a deep copy on other. */ - public get_primary_keys_result(get_primary_keys_result other) { + public get_foreign_keys_result(get_foreign_keys_result other) { if (other.isSetSuccess()) { - this.success = new PrimaryKeysResponse(other.success); + this.success = new ForeignKeysResponse(other.success); } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); @@ -131842,8 +134077,8 @@ public get_primary_keys_result(get_primary_keys_result other) { } } - public get_primary_keys_result deepCopy() { - return new get_primary_keys_result(this); + public get_foreign_keys_result deepCopy() { + return new get_foreign_keys_result(this); } @Override @@ -131853,11 +134088,11 @@ public void clear() { this.o2 = null; } - public PrimaryKeysResponse getSuccess() { + public ForeignKeysResponse getSuccess() { return this.success; } - public void setSuccess(PrimaryKeysResponse success) { + public void setSuccess(ForeignKeysResponse success) { this.success = success; } @@ -131928,7 +134163,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((PrimaryKeysResponse)value); + setSuccess((ForeignKeysResponse)value); } break; @@ -131987,12 +134222,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_primary_keys_result) - return this.equals((get_primary_keys_result)that); + if (that instanceof get_foreign_keys_result) + return this.equals((get_foreign_keys_result)that); return false; } - public boolean equals(get_primary_keys_result that) { + public boolean equals(get_foreign_keys_result that) { if (that == null) return false; @@ -132049,7 +134284,7 @@ public int hashCode() { } @Override - public int compareTo(get_primary_keys_result other) { + public int compareTo(get_foreign_keys_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -132103,7 +134338,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_primary_keys_result("); + StringBuilder sb = new StringBuilder("get_foreign_keys_result("); boolean first = true; sb.append("success:"); @@ -132157,15 +134392,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_primary_keys_resultStandardSchemeFactory implements SchemeFactory { - public get_primary_keys_resultStandardScheme getScheme() { - return new get_primary_keys_resultStandardScheme(); + private static class get_foreign_keys_resultStandardSchemeFactory implements SchemeFactory { + public get_foreign_keys_resultStandardScheme getScheme() { + return new get_foreign_keys_resultStandardScheme(); } } - private static class get_primary_keys_resultStandardScheme extends StandardScheme { + private static class get_foreign_keys_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_primary_keys_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_foreign_keys_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -132177,7 +134412,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_primary_keys_re switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new PrimaryKeysResponse(); + struct.success = new ForeignKeysResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -132211,7 +134446,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_primary_keys_re struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_primary_keys_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_foreign_keys_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -132236,16 +134471,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_primary_keys_r } - private static class get_primary_keys_resultTupleSchemeFactory implements SchemeFactory { - public get_primary_keys_resultTupleScheme getScheme() { - return new get_primary_keys_resultTupleScheme(); + private static class get_foreign_keys_resultTupleSchemeFactory implements SchemeFactory { + public get_foreign_keys_resultTupleScheme getScheme() { + return new get_foreign_keys_resultTupleScheme(); } } - private static class get_primary_keys_resultTupleScheme extends TupleScheme { + private static class get_foreign_keys_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_primary_keys_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_foreign_keys_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -132270,11 +134505,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_primary_keys_re } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_primary_keys_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_foreign_keys_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new PrimaryKeysResponse(); + struct.success = new ForeignKeysResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -132293,18 +134528,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_primary_keys_res } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_foreign_keys_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_foreign_keys_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_unique_constraints_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_unique_constraints_args"); private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_foreign_keys_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_foreign_keys_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_unique_constraints_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_unique_constraints_argsTupleSchemeFactory()); } - private ForeignKeysRequest request; // required + private UniqueConstraintsRequest request; // 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 { @@ -132369,16 +134604,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.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ForeignKeysRequest.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UniqueConstraintsRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_foreign_keys_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_unique_constraints_args.class, metaDataMap); } - public get_foreign_keys_args() { + public get_unique_constraints_args() { } - public get_foreign_keys_args( - ForeignKeysRequest request) + public get_unique_constraints_args( + UniqueConstraintsRequest request) { this(); this.request = request; @@ -132387,14 +134622,14 @@ public get_foreign_keys_args( /** * Performs a deep copy on other. */ - public get_foreign_keys_args(get_foreign_keys_args other) { + public get_unique_constraints_args(get_unique_constraints_args other) { if (other.isSetRequest()) { - this.request = new ForeignKeysRequest(other.request); + this.request = new UniqueConstraintsRequest(other.request); } } - public get_foreign_keys_args deepCopy() { - return new get_foreign_keys_args(this); + public get_unique_constraints_args deepCopy() { + return new get_unique_constraints_args(this); } @Override @@ -132402,11 +134637,11 @@ public void clear() { this.request = null; } - public ForeignKeysRequest getRequest() { + public UniqueConstraintsRequest getRequest() { return this.request; } - public void setRequest(ForeignKeysRequest request) { + public void setRequest(UniqueConstraintsRequest request) { this.request = request; } @@ -132431,7 +134666,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetRequest(); } else { - setRequest((ForeignKeysRequest)value); + setRequest((UniqueConstraintsRequest)value); } break; @@ -132464,12 +134699,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_foreign_keys_args) - return this.equals((get_foreign_keys_args)that); + if (that instanceof get_unique_constraints_args) + return this.equals((get_unique_constraints_args)that); return false; } - public boolean equals(get_foreign_keys_args that) { + public boolean equals(get_unique_constraints_args that) { if (that == null) return false; @@ -132498,7 +134733,7 @@ public int hashCode() { } @Override - public int compareTo(get_foreign_keys_args other) { + public int compareTo(get_unique_constraints_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -132532,7 +134767,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_foreign_keys_args("); + StringBuilder sb = new StringBuilder("get_unique_constraints_args("); boolean first = true; sb.append("request:"); @@ -132570,15 +134805,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_foreign_keys_argsStandardSchemeFactory implements SchemeFactory { - public get_foreign_keys_argsStandardScheme getScheme() { - return new get_foreign_keys_argsStandardScheme(); + private static class get_unique_constraints_argsStandardSchemeFactory implements SchemeFactory { + public get_unique_constraints_argsStandardScheme getScheme() { + return new get_unique_constraints_argsStandardScheme(); } } - private static class get_foreign_keys_argsStandardScheme extends StandardScheme { + private static class get_unique_constraints_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_foreign_keys_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_unique_constraints_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -132590,7 +134825,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_foreign_keys_ar switch (schemeField.id) { case 1: // REQUEST if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.request = new ForeignKeysRequest(); + struct.request = new UniqueConstraintsRequest(); struct.request.read(iprot); struct.setRequestIsSet(true); } else { @@ -132606,7 +134841,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_foreign_keys_ar struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_foreign_keys_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_unique_constraints_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -132621,16 +134856,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_foreign_keys_a } - private static class get_foreign_keys_argsTupleSchemeFactory implements SchemeFactory { - public get_foreign_keys_argsTupleScheme getScheme() { - return new get_foreign_keys_argsTupleScheme(); + private static class get_unique_constraints_argsTupleSchemeFactory implements SchemeFactory { + public get_unique_constraints_argsTupleScheme getScheme() { + return new get_unique_constraints_argsTupleScheme(); } } - private static class get_foreign_keys_argsTupleScheme extends TupleScheme { + private static class get_unique_constraints_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_foreign_keys_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_unique_constraints_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRequest()) { @@ -132643,11 +134878,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_foreign_keys_ar } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_foreign_keys_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_unique_constraints_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.request = new ForeignKeysRequest(); + struct.request = new UniqueConstraintsRequest(); struct.request.read(iprot); struct.setRequestIsSet(true); } @@ -132656,8 +134891,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_foreign_keys_arg } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_foreign_keys_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_foreign_keys_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_unique_constraints_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_unique_constraints_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); @@ -132665,11 +134900,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_foreign_keys_arg private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_foreign_keys_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_foreign_keys_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_unique_constraints_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_unique_constraints_resultTupleSchemeFactory()); } - private ForeignKeysResponse success; // required + private UniqueConstraintsResponse success; // required private MetaException o1; // required private NoSuchObjectException o2; // required @@ -132742,20 +134977,20 @@ 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, ForeignKeysResponse.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UniqueConstraintsResponse.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_foreign_keys_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_unique_constraints_result.class, metaDataMap); } - public get_foreign_keys_result() { + public get_unique_constraints_result() { } - public get_foreign_keys_result( - ForeignKeysResponse success, + public get_unique_constraints_result( + UniqueConstraintsResponse success, MetaException o1, NoSuchObjectException o2) { @@ -132768,9 +135003,9 @@ public get_foreign_keys_result( /** * Performs a deep copy on other. */ - public get_foreign_keys_result(get_foreign_keys_result other) { + public get_unique_constraints_result(get_unique_constraints_result other) { if (other.isSetSuccess()) { - this.success = new ForeignKeysResponse(other.success); + this.success = new UniqueConstraintsResponse(other.success); } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); @@ -132780,8 +135015,8 @@ public get_foreign_keys_result(get_foreign_keys_result other) { } } - public get_foreign_keys_result deepCopy() { - return new get_foreign_keys_result(this); + public get_unique_constraints_result deepCopy() { + return new get_unique_constraints_result(this); } @Override @@ -132791,11 +135026,11 @@ public void clear() { this.o2 = null; } - public ForeignKeysResponse getSuccess() { + public UniqueConstraintsResponse getSuccess() { return this.success; } - public void setSuccess(ForeignKeysResponse success) { + public void setSuccess(UniqueConstraintsResponse success) { this.success = success; } @@ -132866,7 +135101,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((ForeignKeysResponse)value); + setSuccess((UniqueConstraintsResponse)value); } break; @@ -132925,12 +135160,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_foreign_keys_result) - return this.equals((get_foreign_keys_result)that); + if (that instanceof get_unique_constraints_result) + return this.equals((get_unique_constraints_result)that); return false; } - public boolean equals(get_foreign_keys_result that) { + public boolean equals(get_unique_constraints_result that) { if (that == null) return false; @@ -132987,7 +135222,7 @@ public int hashCode() { } @Override - public int compareTo(get_foreign_keys_result other) { + public int compareTo(get_unique_constraints_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -133041,7 +135276,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_foreign_keys_result("); + StringBuilder sb = new StringBuilder("get_unique_constraints_result("); boolean first = true; sb.append("success:"); @@ -133095,15 +135330,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_foreign_keys_resultStandardSchemeFactory implements SchemeFactory { - public get_foreign_keys_resultStandardScheme getScheme() { - return new get_foreign_keys_resultStandardScheme(); + private static class get_unique_constraints_resultStandardSchemeFactory implements SchemeFactory { + public get_unique_constraints_resultStandardScheme getScheme() { + return new get_unique_constraints_resultStandardScheme(); } } - private static class get_foreign_keys_resultStandardScheme extends StandardScheme { + private static class get_unique_constraints_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_foreign_keys_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_unique_constraints_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -133115,7 +135350,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_foreign_keys_re switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new ForeignKeysResponse(); + struct.success = new UniqueConstraintsResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -133149,7 +135384,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_foreign_keys_re struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_foreign_keys_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_unique_constraints_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -133174,16 +135409,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_foreign_keys_r } - private static class get_foreign_keys_resultTupleSchemeFactory implements SchemeFactory { - public get_foreign_keys_resultTupleScheme getScheme() { - return new get_foreign_keys_resultTupleScheme(); + private static class get_unique_constraints_resultTupleSchemeFactory implements SchemeFactory { + public get_unique_constraints_resultTupleScheme getScheme() { + return new get_unique_constraints_resultTupleScheme(); } } - private static class get_foreign_keys_resultTupleScheme extends TupleScheme { + private static class get_unique_constraints_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_foreign_keys_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_unique_constraints_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -133208,11 +135443,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_foreign_keys_re } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_foreign_keys_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_unique_constraints_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new ForeignKeysResponse(); + struct.success = new UniqueConstraintsResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -133231,18 +135466,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_foreign_keys_res } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_unique_constraints_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_unique_constraints_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_not_null_constraints_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_not_null_constraints_args"); private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_unique_constraints_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_unique_constraints_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_not_null_constraints_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_not_null_constraints_argsTupleSchemeFactory()); } - private UniqueConstraintsRequest request; // required + private NotNullConstraintsRequest request; // 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 { @@ -133307,16 +135542,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.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UniqueConstraintsRequest.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, NotNullConstraintsRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_unique_constraints_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_not_null_constraints_args.class, metaDataMap); } - public get_unique_constraints_args() { + public get_not_null_constraints_args() { } - public get_unique_constraints_args( - UniqueConstraintsRequest request) + public get_not_null_constraints_args( + NotNullConstraintsRequest request) { this(); this.request = request; @@ -133325,14 +135560,14 @@ public get_unique_constraints_args( /** * Performs a deep copy on other. */ - public get_unique_constraints_args(get_unique_constraints_args other) { + public get_not_null_constraints_args(get_not_null_constraints_args other) { if (other.isSetRequest()) { - this.request = new UniqueConstraintsRequest(other.request); + this.request = new NotNullConstraintsRequest(other.request); } } - public get_unique_constraints_args deepCopy() { - return new get_unique_constraints_args(this); + public get_not_null_constraints_args deepCopy() { + return new get_not_null_constraints_args(this); } @Override @@ -133340,11 +135575,11 @@ public void clear() { this.request = null; } - public UniqueConstraintsRequest getRequest() { + public NotNullConstraintsRequest getRequest() { return this.request; } - public void setRequest(UniqueConstraintsRequest request) { + public void setRequest(NotNullConstraintsRequest request) { this.request = request; } @@ -133369,7 +135604,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetRequest(); } else { - setRequest((UniqueConstraintsRequest)value); + setRequest((NotNullConstraintsRequest)value); } break; @@ -133402,12 +135637,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_unique_constraints_args) - return this.equals((get_unique_constraints_args)that); + if (that instanceof get_not_null_constraints_args) + return this.equals((get_not_null_constraints_args)that); return false; } - public boolean equals(get_unique_constraints_args that) { + public boolean equals(get_not_null_constraints_args that) { if (that == null) return false; @@ -133436,7 +135671,7 @@ public int hashCode() { } @Override - public int compareTo(get_unique_constraints_args other) { + public int compareTo(get_not_null_constraints_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -133470,7 +135705,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_unique_constraints_args("); + StringBuilder sb = new StringBuilder("get_not_null_constraints_args("); boolean first = true; sb.append("request:"); @@ -133508,15 +135743,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_unique_constraints_argsStandardSchemeFactory implements SchemeFactory { - public get_unique_constraints_argsStandardScheme getScheme() { - return new get_unique_constraints_argsStandardScheme(); + private static class get_not_null_constraints_argsStandardSchemeFactory implements SchemeFactory { + public get_not_null_constraints_argsStandardScheme getScheme() { + return new get_not_null_constraints_argsStandardScheme(); } } - private static class get_unique_constraints_argsStandardScheme extends StandardScheme { + private static class get_not_null_constraints_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_unique_constraints_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_not_null_constraints_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -133528,7 +135763,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_unique_constrai switch (schemeField.id) { case 1: // REQUEST if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.request = new UniqueConstraintsRequest(); + struct.request = new NotNullConstraintsRequest(); struct.request.read(iprot); struct.setRequestIsSet(true); } else { @@ -133544,7 +135779,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_unique_constrai struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_unique_constraints_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_not_null_constraints_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -133559,16 +135794,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_unique_constra } - private static class get_unique_constraints_argsTupleSchemeFactory implements SchemeFactory { - public get_unique_constraints_argsTupleScheme getScheme() { - return new get_unique_constraints_argsTupleScheme(); + private static class get_not_null_constraints_argsTupleSchemeFactory implements SchemeFactory { + public get_not_null_constraints_argsTupleScheme getScheme() { + return new get_not_null_constraints_argsTupleScheme(); } } - private static class get_unique_constraints_argsTupleScheme extends TupleScheme { + private static class get_not_null_constraints_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_unique_constraints_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_not_null_constraints_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRequest()) { @@ -133581,11 +135816,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_unique_constrai } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_unique_constraints_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_not_null_constraints_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.request = new UniqueConstraintsRequest(); + struct.request = new NotNullConstraintsRequest(); struct.request.read(iprot); struct.setRequestIsSet(true); } @@ -133594,8 +135829,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_unique_constrain } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_unique_constraints_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_unique_constraints_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_not_null_constraints_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_not_null_constraints_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); @@ -133603,11 +135838,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_unique_constrain private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_unique_constraints_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_unique_constraints_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_not_null_constraints_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_not_null_constraints_resultTupleSchemeFactory()); } - private UniqueConstraintsResponse success; // required + private NotNullConstraintsResponse success; // required private MetaException o1; // required private NoSuchObjectException o2; // required @@ -133680,20 +135915,20 @@ 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, UniqueConstraintsResponse.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, NotNullConstraintsResponse.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_unique_constraints_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_not_null_constraints_result.class, metaDataMap); } - public get_unique_constraints_result() { + public get_not_null_constraints_result() { } - public get_unique_constraints_result( - UniqueConstraintsResponse success, + public get_not_null_constraints_result( + NotNullConstraintsResponse success, MetaException o1, NoSuchObjectException o2) { @@ -133706,9 +135941,9 @@ public get_unique_constraints_result( /** * Performs a deep copy on other. */ - public get_unique_constraints_result(get_unique_constraints_result other) { + public get_not_null_constraints_result(get_not_null_constraints_result other) { if (other.isSetSuccess()) { - this.success = new UniqueConstraintsResponse(other.success); + this.success = new NotNullConstraintsResponse(other.success); } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); @@ -133718,8 +135953,8 @@ public get_unique_constraints_result(get_unique_constraints_result other) { } } - public get_unique_constraints_result deepCopy() { - return new get_unique_constraints_result(this); + public get_not_null_constraints_result deepCopy() { + return new get_not_null_constraints_result(this); } @Override @@ -133729,11 +135964,11 @@ public void clear() { this.o2 = null; } - public UniqueConstraintsResponse getSuccess() { + public NotNullConstraintsResponse getSuccess() { return this.success; } - public void setSuccess(UniqueConstraintsResponse success) { + public void setSuccess(NotNullConstraintsResponse success) { this.success = success; } @@ -133804,7 +136039,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((UniqueConstraintsResponse)value); + setSuccess((NotNullConstraintsResponse)value); } break; @@ -133863,12 +136098,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_unique_constraints_result) - return this.equals((get_unique_constraints_result)that); + if (that instanceof get_not_null_constraints_result) + return this.equals((get_not_null_constraints_result)that); return false; } - public boolean equals(get_unique_constraints_result that) { + public boolean equals(get_not_null_constraints_result that) { if (that == null) return false; @@ -133925,7 +136160,7 @@ public int hashCode() { } @Override - public int compareTo(get_unique_constraints_result other) { + public int compareTo(get_not_null_constraints_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -133979,7 +136214,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_unique_constraints_result("); + StringBuilder sb = new StringBuilder("get_not_null_constraints_result("); boolean first = true; sb.append("success:"); @@ -134033,15 +136268,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_unique_constraints_resultStandardSchemeFactory implements SchemeFactory { - public get_unique_constraints_resultStandardScheme getScheme() { - return new get_unique_constraints_resultStandardScheme(); + private static class get_not_null_constraints_resultStandardSchemeFactory implements SchemeFactory { + public get_not_null_constraints_resultStandardScheme getScheme() { + return new get_not_null_constraints_resultStandardScheme(); } } - private static class get_unique_constraints_resultStandardScheme extends StandardScheme { + private static class get_not_null_constraints_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_unique_constraints_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_not_null_constraints_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -134053,7 +136288,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_unique_constrai switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new UniqueConstraintsResponse(); + struct.success = new NotNullConstraintsResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -134087,7 +136322,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_unique_constrai struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_unique_constraints_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_not_null_constraints_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -134112,16 +136347,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_unique_constra } - private static class get_unique_constraints_resultTupleSchemeFactory implements SchemeFactory { - public get_unique_constraints_resultTupleScheme getScheme() { - return new get_unique_constraints_resultTupleScheme(); + private static class get_not_null_constraints_resultTupleSchemeFactory implements SchemeFactory { + public get_not_null_constraints_resultTupleScheme getScheme() { + return new get_not_null_constraints_resultTupleScheme(); } } - private static class get_unique_constraints_resultTupleScheme extends TupleScheme { + private static class get_not_null_constraints_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_unique_constraints_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_not_null_constraints_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -134146,11 +136381,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_unique_constrai } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_unique_constraints_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_not_null_constraints_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new UniqueConstraintsResponse(); + struct.success = new NotNullConstraintsResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -134169,18 +136404,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_unique_constrain } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_not_null_constraints_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_not_null_constraints_args"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_default_constraints_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_default_constraints_args"); private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_not_null_constraints_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_not_null_constraints_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_default_constraints_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_default_constraints_argsTupleSchemeFactory()); } - private NotNullConstraintsRequest request; // required + private DefaultConstraintsRequest request; // 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 { @@ -134245,16 +136480,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.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, NotNullConstraintsRequest.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DefaultConstraintsRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_not_null_constraints_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_default_constraints_args.class, metaDataMap); } - public get_not_null_constraints_args() { + public get_default_constraints_args() { } - public get_not_null_constraints_args( - NotNullConstraintsRequest request) + public get_default_constraints_args( + DefaultConstraintsRequest request) { this(); this.request = request; @@ -134263,14 +136498,14 @@ public get_not_null_constraints_args( /** * Performs a deep copy on other. */ - public get_not_null_constraints_args(get_not_null_constraints_args other) { + public get_default_constraints_args(get_default_constraints_args other) { if (other.isSetRequest()) { - this.request = new NotNullConstraintsRequest(other.request); + this.request = new DefaultConstraintsRequest(other.request); } } - public get_not_null_constraints_args deepCopy() { - return new get_not_null_constraints_args(this); + public get_default_constraints_args deepCopy() { + return new get_default_constraints_args(this); } @Override @@ -134278,11 +136513,11 @@ public void clear() { this.request = null; } - public NotNullConstraintsRequest getRequest() { + public DefaultConstraintsRequest getRequest() { return this.request; } - public void setRequest(NotNullConstraintsRequest request) { + public void setRequest(DefaultConstraintsRequest request) { this.request = request; } @@ -134307,7 +136542,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetRequest(); } else { - setRequest((NotNullConstraintsRequest)value); + setRequest((DefaultConstraintsRequest)value); } break; @@ -134340,12 +136575,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_not_null_constraints_args) - return this.equals((get_not_null_constraints_args)that); + if (that instanceof get_default_constraints_args) + return this.equals((get_default_constraints_args)that); return false; } - public boolean equals(get_not_null_constraints_args that) { + public boolean equals(get_default_constraints_args that) { if (that == null) return false; @@ -134374,7 +136609,7 @@ public int hashCode() { } @Override - public int compareTo(get_not_null_constraints_args other) { + public int compareTo(get_default_constraints_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -134408,7 +136643,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_not_null_constraints_args("); + StringBuilder sb = new StringBuilder("get_default_constraints_args("); boolean first = true; sb.append("request:"); @@ -134446,15 +136681,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_not_null_constraints_argsStandardSchemeFactory implements SchemeFactory { - public get_not_null_constraints_argsStandardScheme getScheme() { - return new get_not_null_constraints_argsStandardScheme(); + private static class get_default_constraints_argsStandardSchemeFactory implements SchemeFactory { + public get_default_constraints_argsStandardScheme getScheme() { + return new get_default_constraints_argsStandardScheme(); } } - private static class get_not_null_constraints_argsStandardScheme extends StandardScheme { + private static class get_default_constraints_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_not_null_constraints_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_default_constraints_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -134466,7 +136701,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_not_null_constr switch (schemeField.id) { case 1: // REQUEST if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.request = new NotNullConstraintsRequest(); + struct.request = new DefaultConstraintsRequest(); struct.request.read(iprot); struct.setRequestIsSet(true); } else { @@ -134482,7 +136717,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_not_null_constr struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_not_null_constraints_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_default_constraints_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -134497,16 +136732,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_not_null_const } - private static class get_not_null_constraints_argsTupleSchemeFactory implements SchemeFactory { - public get_not_null_constraints_argsTupleScheme getScheme() { - return new get_not_null_constraints_argsTupleScheme(); + private static class get_default_constraints_argsTupleSchemeFactory implements SchemeFactory { + public get_default_constraints_argsTupleScheme getScheme() { + return new get_default_constraints_argsTupleScheme(); } } - private static class get_not_null_constraints_argsTupleScheme extends TupleScheme { + private static class get_default_constraints_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_not_null_constraints_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_default_constraints_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRequest()) { @@ -134519,11 +136754,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_not_null_constr } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_not_null_constraints_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_default_constraints_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.request = new NotNullConstraintsRequest(); + struct.request = new DefaultConstraintsRequest(); struct.request.read(iprot); struct.setRequestIsSet(true); } @@ -134532,8 +136767,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_not_null_constra } - @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_not_null_constraints_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_not_null_constraints_result"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_default_constraints_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_default_constraints_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); @@ -134541,11 +136776,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_not_null_constra private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_not_null_constraints_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_not_null_constraints_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_default_constraints_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_default_constraints_resultTupleSchemeFactory()); } - private NotNullConstraintsResponse success; // required + private DefaultConstraintsResponse success; // required private MetaException o1; // required private NoSuchObjectException o2; // required @@ -134618,20 +136853,20 @@ 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, NotNullConstraintsResponse.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DefaultConstraintsResponse.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_not_null_constraints_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_default_constraints_result.class, metaDataMap); } - public get_not_null_constraints_result() { + public get_default_constraints_result() { } - public get_not_null_constraints_result( - NotNullConstraintsResponse success, + public get_default_constraints_result( + DefaultConstraintsResponse success, MetaException o1, NoSuchObjectException o2) { @@ -134644,9 +136879,9 @@ public get_not_null_constraints_result( /** * Performs a deep copy on other. */ - public get_not_null_constraints_result(get_not_null_constraints_result other) { + public get_default_constraints_result(get_default_constraints_result other) { if (other.isSetSuccess()) { - this.success = new NotNullConstraintsResponse(other.success); + this.success = new DefaultConstraintsResponse(other.success); } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); @@ -134656,8 +136891,8 @@ public get_not_null_constraints_result(get_not_null_constraints_result other) { } } - public get_not_null_constraints_result deepCopy() { - return new get_not_null_constraints_result(this); + public get_default_constraints_result deepCopy() { + return new get_default_constraints_result(this); } @Override @@ -134667,11 +136902,11 @@ public void clear() { this.o2 = null; } - public NotNullConstraintsResponse getSuccess() { + public DefaultConstraintsResponse getSuccess() { return this.success; } - public void setSuccess(NotNullConstraintsResponse success) { + public void setSuccess(DefaultConstraintsResponse success) { this.success = success; } @@ -134742,7 +136977,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((NotNullConstraintsResponse)value); + setSuccess((DefaultConstraintsResponse)value); } break; @@ -134801,12 +137036,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_not_null_constraints_result) - return this.equals((get_not_null_constraints_result)that); + if (that instanceof get_default_constraints_result) + return this.equals((get_default_constraints_result)that); return false; } - public boolean equals(get_not_null_constraints_result that) { + public boolean equals(get_default_constraints_result that) { if (that == null) return false; @@ -134863,7 +137098,7 @@ public int hashCode() { } @Override - public int compareTo(get_not_null_constraints_result other) { + public int compareTo(get_default_constraints_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -134917,7 +137152,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_not_null_constraints_result("); + StringBuilder sb = new StringBuilder("get_default_constraints_result("); boolean first = true; sb.append("success:"); @@ -134971,15 +137206,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_not_null_constraints_resultStandardSchemeFactory implements SchemeFactory { - public get_not_null_constraints_resultStandardScheme getScheme() { - return new get_not_null_constraints_resultStandardScheme(); + private static class get_default_constraints_resultStandardSchemeFactory implements SchemeFactory { + public get_default_constraints_resultStandardScheme getScheme() { + return new get_default_constraints_resultStandardScheme(); } } - private static class get_not_null_constraints_resultStandardScheme extends StandardScheme { + private static class get_default_constraints_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_not_null_constraints_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_default_constraints_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -134991,7 +137226,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_not_null_constr switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new NotNullConstraintsResponse(); + struct.success = new DefaultConstraintsResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -135025,7 +137260,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_not_null_constr struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_not_null_constraints_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_default_constraints_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -135050,16 +137285,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_not_null_const } - private static class get_not_null_constraints_resultTupleSchemeFactory implements SchemeFactory { - public get_not_null_constraints_resultTupleScheme getScheme() { - return new get_not_null_constraints_resultTupleScheme(); + private static class get_default_constraints_resultTupleSchemeFactory implements SchemeFactory { + public get_default_constraints_resultTupleScheme getScheme() { + return new get_default_constraints_resultTupleScheme(); } } - private static class get_not_null_constraints_resultTupleScheme extends TupleScheme { + private static class get_default_constraints_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_not_null_constraints_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_default_constraints_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -135084,11 +137319,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_not_null_constr } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_not_null_constraints_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_default_constraints_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new NotNullConstraintsResponse(); + struct.success = new DefaultConstraintsResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -150827,13 +153062,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 _list1320 = iprot.readListBegin(); - struct.success = new ArrayList(_list1320.size); - String _elem1321; - for (int _i1322 = 0; _i1322 < _list1320.size; ++_i1322) + org.apache.thrift.protocol.TList _list1344 = iprot.readListBegin(); + struct.success = new ArrayList(_list1344.size); + String _elem1345; + for (int _i1346 = 0; _i1346 < _list1344.size; ++_i1346) { - _elem1321 = iprot.readString(); - struct.success.add(_elem1321); + _elem1345 = iprot.readString(); + struct.success.add(_elem1345); } iprot.readListEnd(); } @@ -150868,9 +153103,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 _iter1323 : struct.success) + for (String _iter1347 : struct.success) { - oprot.writeString(_iter1323); + oprot.writeString(_iter1347); } oprot.writeListEnd(); } @@ -150909,9 +153144,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1324 : struct.success) + for (String _iter1348 : struct.success) { - oprot.writeString(_iter1324); + oprot.writeString(_iter1348); } } } @@ -150926,13 +153161,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 _list1325 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1325.size); - String _elem1326; - for (int _i1327 = 0; _i1327 < _list1325.size; ++_i1327) + org.apache.thrift.protocol.TList _list1349 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1349.size); + String _elem1350; + for (int _i1351 = 0; _i1351 < _list1349.size; ++_i1351) { - _elem1326 = iprot.readString(); - struct.success.add(_elem1326); + _elem1350 = iprot.readString(); + struct.success.add(_elem1350); } } struct.setSuccessIsSet(true); @@ -154987,13 +157222,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 _list1328 = iprot.readListBegin(); - struct.success = new ArrayList(_list1328.size); - String _elem1329; - for (int _i1330 = 0; _i1330 < _list1328.size; ++_i1330) + org.apache.thrift.protocol.TList _list1352 = iprot.readListBegin(); + struct.success = new ArrayList(_list1352.size); + String _elem1353; + for (int _i1354 = 0; _i1354 < _list1352.size; ++_i1354) { - _elem1329 = iprot.readString(); - struct.success.add(_elem1329); + _elem1353 = iprot.readString(); + struct.success.add(_elem1353); } iprot.readListEnd(); } @@ -155028,9 +157263,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 _iter1331 : struct.success) + for (String _iter1355 : struct.success) { - oprot.writeString(_iter1331); + oprot.writeString(_iter1355); } oprot.writeListEnd(); } @@ -155069,9 +157304,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1332 : struct.success) + for (String _iter1356 : struct.success) { - oprot.writeString(_iter1332); + oprot.writeString(_iter1356); } } } @@ -155086,13 +157321,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 _list1333 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1333.size); - String _elem1334; - for (int _i1335 = 0; _i1335 < _list1333.size; ++_i1335) + org.apache.thrift.protocol.TList _list1357 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1357.size); + String _elem1358; + for (int _i1359 = 0; _i1359 < _list1357.size; ++_i1359) { - _elem1334 = iprot.readString(); - struct.success.add(_elem1334); + _elem1358 = iprot.readString(); + struct.success.add(_elem1358); } } struct.setSuccessIsSet(true); @@ -158383,14 +160618,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 _list1336 = iprot.readListBegin(); - struct.success = new ArrayList(_list1336.size); - Role _elem1337; - for (int _i1338 = 0; _i1338 < _list1336.size; ++_i1338) + org.apache.thrift.protocol.TList _list1360 = iprot.readListBegin(); + struct.success = new ArrayList(_list1360.size); + Role _elem1361; + for (int _i1362 = 0; _i1362 < _list1360.size; ++_i1362) { - _elem1337 = new Role(); - _elem1337.read(iprot); - struct.success.add(_elem1337); + _elem1361 = new Role(); + _elem1361.read(iprot); + struct.success.add(_elem1361); } iprot.readListEnd(); } @@ -158425,9 +160660,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 _iter1339 : struct.success) + for (Role _iter1363 : struct.success) { - _iter1339.write(oprot); + _iter1363.write(oprot); } oprot.writeListEnd(); } @@ -158466,9 +160701,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Role _iter1340 : struct.success) + for (Role _iter1364 : struct.success) { - _iter1340.write(oprot); + _iter1364.write(oprot); } } } @@ -158483,14 +160718,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 _list1341 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1341.size); - Role _elem1342; - for (int _i1343 = 0; _i1343 < _list1341.size; ++_i1343) + org.apache.thrift.protocol.TList _list1365 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1365.size); + Role _elem1366; + for (int _i1367 = 0; _i1367 < _list1365.size; ++_i1367) { - _elem1342 = new Role(); - _elem1342.read(iprot); - struct.success.add(_elem1342); + _elem1366 = new Role(); + _elem1366.read(iprot); + struct.success.add(_elem1366); } } struct.setSuccessIsSet(true); @@ -161495,13 +163730,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 _list1344 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1344.size); - String _elem1345; - for (int _i1346 = 0; _i1346 < _list1344.size; ++_i1346) + org.apache.thrift.protocol.TList _list1368 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1368.size); + String _elem1369; + for (int _i1370 = 0; _i1370 < _list1368.size; ++_i1370) { - _elem1345 = iprot.readString(); - struct.group_names.add(_elem1345); + _elem1369 = iprot.readString(); + struct.group_names.add(_elem1369); } iprot.readListEnd(); } @@ -161537,9 +163772,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 _iter1347 : struct.group_names) + for (String _iter1371 : struct.group_names) { - oprot.writeString(_iter1347); + oprot.writeString(_iter1371); } oprot.writeListEnd(); } @@ -161582,9 +163817,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 _iter1348 : struct.group_names) + for (String _iter1372 : struct.group_names) { - oprot.writeString(_iter1348); + oprot.writeString(_iter1372); } } } @@ -161605,13 +163840,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1349 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1349.size); - String _elem1350; - for (int _i1351 = 0; _i1351 < _list1349.size; ++_i1351) + org.apache.thrift.protocol.TList _list1373 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1373.size); + String _elem1374; + for (int _i1375 = 0; _i1375 < _list1373.size; ++_i1375) { - _elem1350 = iprot.readString(); - struct.group_names.add(_elem1350); + _elem1374 = iprot.readString(); + struct.group_names.add(_elem1374); } } struct.setGroup_namesIsSet(true); @@ -163069,14 +165304,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 _list1352 = iprot.readListBegin(); - struct.success = new ArrayList(_list1352.size); - HiveObjectPrivilege _elem1353; - for (int _i1354 = 0; _i1354 < _list1352.size; ++_i1354) + org.apache.thrift.protocol.TList _list1376 = iprot.readListBegin(); + struct.success = new ArrayList(_list1376.size); + HiveObjectPrivilege _elem1377; + for (int _i1378 = 0; _i1378 < _list1376.size; ++_i1378) { - _elem1353 = new HiveObjectPrivilege(); - _elem1353.read(iprot); - struct.success.add(_elem1353); + _elem1377 = new HiveObjectPrivilege(); + _elem1377.read(iprot); + struct.success.add(_elem1377); } iprot.readListEnd(); } @@ -163111,9 +165346,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 _iter1355 : struct.success) + for (HiveObjectPrivilege _iter1379 : struct.success) { - _iter1355.write(oprot); + _iter1379.write(oprot); } oprot.writeListEnd(); } @@ -163152,9 +165387,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter1356 : struct.success) + for (HiveObjectPrivilege _iter1380 : struct.success) { - _iter1356.write(oprot); + _iter1380.write(oprot); } } } @@ -163169,14 +165404,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 _list1357 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1357.size); - HiveObjectPrivilege _elem1358; - for (int _i1359 = 0; _i1359 < _list1357.size; ++_i1359) + org.apache.thrift.protocol.TList _list1381 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1381.size); + HiveObjectPrivilege _elem1382; + for (int _i1383 = 0; _i1383 < _list1381.size; ++_i1383) { - _elem1358 = new HiveObjectPrivilege(); - _elem1358.read(iprot); - struct.success.add(_elem1358); + _elem1382 = new HiveObjectPrivilege(); + _elem1382.read(iprot); + struct.success.add(_elem1382); } } struct.setSuccessIsSet(true); @@ -166078,13 +168313,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 _list1360 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1360.size); - String _elem1361; - for (int _i1362 = 0; _i1362 < _list1360.size; ++_i1362) + org.apache.thrift.protocol.TList _list1384 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1384.size); + String _elem1385; + for (int _i1386 = 0; _i1386 < _list1384.size; ++_i1386) { - _elem1361 = iprot.readString(); - struct.group_names.add(_elem1361); + _elem1385 = iprot.readString(); + struct.group_names.add(_elem1385); } iprot.readListEnd(); } @@ -166115,9 +168350,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 _iter1363 : struct.group_names) + for (String _iter1387 : struct.group_names) { - oprot.writeString(_iter1363); + oprot.writeString(_iter1387); } oprot.writeListEnd(); } @@ -166154,9 +168389,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 _iter1364 : struct.group_names) + for (String _iter1388 : struct.group_names) { - oprot.writeString(_iter1364); + oprot.writeString(_iter1388); } } } @@ -166172,13 +168407,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1365 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1365.size); - String _elem1366; - for (int _i1367 = 0; _i1367 < _list1365.size; ++_i1367) + org.apache.thrift.protocol.TList _list1389 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1389.size); + String _elem1390; + for (int _i1391 = 0; _i1391 < _list1389.size; ++_i1391) { - _elem1366 = iprot.readString(); - struct.group_names.add(_elem1366); + _elem1390 = iprot.readString(); + struct.group_names.add(_elem1390); } } struct.setGroup_namesIsSet(true); @@ -166581,13 +168816,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 _list1368 = iprot.readListBegin(); - struct.success = new ArrayList(_list1368.size); - String _elem1369; - for (int _i1370 = 0; _i1370 < _list1368.size; ++_i1370) + org.apache.thrift.protocol.TList _list1392 = iprot.readListBegin(); + struct.success = new ArrayList(_list1392.size); + String _elem1393; + for (int _i1394 = 0; _i1394 < _list1392.size; ++_i1394) { - _elem1369 = iprot.readString(); - struct.success.add(_elem1369); + _elem1393 = iprot.readString(); + struct.success.add(_elem1393); } iprot.readListEnd(); } @@ -166622,9 +168857,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 _iter1371 : struct.success) + for (String _iter1395 : struct.success) { - oprot.writeString(_iter1371); + oprot.writeString(_iter1395); } oprot.writeListEnd(); } @@ -166663,9 +168898,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1372 : struct.success) + for (String _iter1396 : struct.success) { - oprot.writeString(_iter1372); + oprot.writeString(_iter1396); } } } @@ -166680,13 +168915,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 _list1373 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1373.size); - String _elem1374; - for (int _i1375 = 0; _i1375 < _list1373.size; ++_i1375) + org.apache.thrift.protocol.TList _list1397 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1397.size); + String _elem1398; + for (int _i1399 = 0; _i1399 < _list1397.size; ++_i1399) { - _elem1374 = iprot.readString(); - struct.success.add(_elem1374); + _elem1398 = iprot.readString(); + struct.success.add(_elem1398); } } struct.setSuccessIsSet(true); @@ -171977,13 +174212,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 _list1376 = iprot.readListBegin(); - struct.success = new ArrayList(_list1376.size); - String _elem1377; - for (int _i1378 = 0; _i1378 < _list1376.size; ++_i1378) + org.apache.thrift.protocol.TList _list1400 = iprot.readListBegin(); + struct.success = new ArrayList(_list1400.size); + String _elem1401; + for (int _i1402 = 0; _i1402 < _list1400.size; ++_i1402) { - _elem1377 = iprot.readString(); - struct.success.add(_elem1377); + _elem1401 = iprot.readString(); + struct.success.add(_elem1401); } iprot.readListEnd(); } @@ -172009,9 +174244,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 _iter1379 : struct.success) + for (String _iter1403 : struct.success) { - oprot.writeString(_iter1379); + oprot.writeString(_iter1403); } oprot.writeListEnd(); } @@ -172042,9 +174277,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_token_ident if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1380 : struct.success) + for (String _iter1404 : struct.success) { - oprot.writeString(_iter1380); + oprot.writeString(_iter1404); } } } @@ -172056,13 +174291,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 _list1381 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1381.size); - String _elem1382; - for (int _i1383 = 0; _i1383 < _list1381.size; ++_i1383) + org.apache.thrift.protocol.TList _list1405 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1405.size); + String _elem1406; + for (int _i1407 = 0; _i1407 < _list1405.size; ++_i1407) { - _elem1382 = iprot.readString(); - struct.success.add(_elem1382); + _elem1406 = iprot.readString(); + struct.success.add(_elem1406); } } struct.setSuccessIsSet(true); @@ -175092,13 +177327,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 _list1384 = iprot.readListBegin(); - struct.success = new ArrayList(_list1384.size); - String _elem1385; - for (int _i1386 = 0; _i1386 < _list1384.size; ++_i1386) + org.apache.thrift.protocol.TList _list1408 = iprot.readListBegin(); + struct.success = new ArrayList(_list1408.size); + String _elem1409; + for (int _i1410 = 0; _i1410 < _list1408.size; ++_i1410) { - _elem1385 = iprot.readString(); - struct.success.add(_elem1385); + _elem1409 = iprot.readString(); + struct.success.add(_elem1409); } iprot.readListEnd(); } @@ -175124,9 +177359,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 _iter1387 : struct.success) + for (String _iter1411 : struct.success) { - oprot.writeString(_iter1387); + oprot.writeString(_iter1411); } oprot.writeListEnd(); } @@ -175157,9 +177392,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_master_keys_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1388 : struct.success) + for (String _iter1412 : struct.success) { - oprot.writeString(_iter1388); + oprot.writeString(_iter1412); } } } @@ -175171,13 +177406,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 _list1389 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1389.size); - String _elem1390; - for (int _i1391 = 0; _i1391 < _list1389.size; ++_i1391) + org.apache.thrift.protocol.TList _list1413 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1413.size); + String _elem1414; + for (int _i1415 = 0; _i1415 < _list1413.size; ++_i1415) { - _elem1390 = iprot.readString(); - struct.success.add(_elem1390); + _elem1414 = iprot.readString(); + struct.success.add(_elem1414); } } struct.setSuccessIsSet(true); 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 01654c7c4a..7fde983b3c 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 _list754 = iprot.readListBegin(); - struct.pools = new ArrayList(_list754.size); - WMPool _elem755; - for (int _i756 = 0; _i756 < _list754.size; ++_i756) + org.apache.thrift.protocol.TList _list770 = iprot.readListBegin(); + struct.pools = new ArrayList(_list770.size); + WMPool _elem771; + for (int _i772 = 0; _i772 < _list770.size; ++_i772) { - _elem755 = new WMPool(); - _elem755.read(iprot); - struct.pools.add(_elem755); + _elem771 = new WMPool(); + _elem771.read(iprot); + struct.pools.add(_elem771); } 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 _list757 = iprot.readListBegin(); - struct.mappings = new ArrayList(_list757.size); - WMMapping _elem758; - for (int _i759 = 0; _i759 < _list757.size; ++_i759) + org.apache.thrift.protocol.TList _list773 = iprot.readListBegin(); + struct.mappings = new ArrayList(_list773.size); + WMMapping _elem774; + for (int _i775 = 0; _i775 < _list773.size; ++_i775) { - _elem758 = new WMMapping(); - _elem758.read(iprot); - struct.mappings.add(_elem758); + _elem774 = new WMMapping(); + _elem774.read(iprot); + struct.mappings.add(_elem774); } 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 _list760 = iprot.readListBegin(); - struct.triggers = new ArrayList(_list760.size); - WMTrigger _elem761; - for (int _i762 = 0; _i762 < _list760.size; ++_i762) + org.apache.thrift.protocol.TList _list776 = iprot.readListBegin(); + struct.triggers = new ArrayList(_list776.size); + WMTrigger _elem777; + for (int _i778 = 0; _i778 < _list776.size; ++_i778) { - _elem761 = new WMTrigger(); - _elem761.read(iprot); - struct.triggers.add(_elem761); + _elem777 = new WMTrigger(); + _elem777.read(iprot); + struct.triggers.add(_elem777); } 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 _list763 = iprot.readListBegin(); - struct.poolTriggers = new ArrayList(_list763.size); - WMPoolTrigger _elem764; - for (int _i765 = 0; _i765 < _list763.size; ++_i765) + org.apache.thrift.protocol.TList _list779 = iprot.readListBegin(); + struct.poolTriggers = new ArrayList(_list779.size); + WMPoolTrigger _elem780; + for (int _i781 = 0; _i781 < _list779.size; ++_i781) { - _elem764 = new WMPoolTrigger(); - _elem764.read(iprot); - struct.poolTriggers.add(_elem764); + _elem780 = new WMPoolTrigger(); + _elem780.read(iprot); + struct.poolTriggers.add(_elem780); } 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 _iter766 : struct.pools) + for (WMPool _iter782 : struct.pools) { - _iter766.write(oprot); + _iter782.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 _iter767 : struct.mappings) + for (WMMapping _iter783 : struct.mappings) { - _iter767.write(oprot); + _iter783.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 _iter768 : struct.triggers) + for (WMTrigger _iter784 : struct.triggers) { - _iter768.write(oprot); + _iter784.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 _iter769 : struct.poolTriggers) + for (WMPoolTrigger _iter785 : struct.poolTriggers) { - _iter769.write(oprot); + _iter785.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 _iter770 : struct.pools) + for (WMPool _iter786 : struct.pools) { - _iter770.write(oprot); + _iter786.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 _iter771 : struct.mappings) + for (WMMapping _iter787 : struct.mappings) { - _iter771.write(oprot); + _iter787.write(oprot); } } } if (struct.isSetTriggers()) { { oprot.writeI32(struct.triggers.size()); - for (WMTrigger _iter772 : struct.triggers) + for (WMTrigger _iter788 : struct.triggers) { - _iter772.write(oprot); + _iter788.write(oprot); } } } if (struct.isSetPoolTriggers()) { { oprot.writeI32(struct.poolTriggers.size()); - for (WMPoolTrigger _iter773 : struct.poolTriggers) + for (WMPoolTrigger _iter789 : struct.poolTriggers) { - _iter773.write(oprot); + _iter789.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 _list774 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.pools = new ArrayList(_list774.size); - WMPool _elem775; - for (int _i776 = 0; _i776 < _list774.size; ++_i776) + org.apache.thrift.protocol.TList _list790 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.pools = new ArrayList(_list790.size); + WMPool _elem791; + for (int _i792 = 0; _i792 < _list790.size; ++_i792) { - _elem775 = new WMPool(); - _elem775.read(iprot); - struct.pools.add(_elem775); + _elem791 = new WMPool(); + _elem791.read(iprot); + struct.pools.add(_elem791); } } struct.setPoolsIsSet(true); BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list777 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.mappings = new ArrayList(_list777.size); - WMMapping _elem778; - for (int _i779 = 0; _i779 < _list777.size; ++_i779) + org.apache.thrift.protocol.TList _list793 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.mappings = new ArrayList(_list793.size); + WMMapping _elem794; + for (int _i795 = 0; _i795 < _list793.size; ++_i795) { - _elem778 = new WMMapping(); - _elem778.read(iprot); - struct.mappings.add(_elem778); + _elem794 = new WMMapping(); + _elem794.read(iprot); + struct.mappings.add(_elem794); } } struct.setMappingsIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list780 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.triggers = new ArrayList(_list780.size); - WMTrigger _elem781; - for (int _i782 = 0; _i782 < _list780.size; ++_i782) + org.apache.thrift.protocol.TList _list796 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.triggers = new ArrayList(_list796.size); + WMTrigger _elem797; + for (int _i798 = 0; _i798 < _list796.size; ++_i798) { - _elem781 = new WMTrigger(); - _elem781.read(iprot); - struct.triggers.add(_elem781); + _elem797 = new WMTrigger(); + _elem797.read(iprot); + struct.triggers.add(_elem797); } } struct.setTriggersIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list783 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.poolTriggers = new ArrayList(_list783.size); - WMPoolTrigger _elem784; - for (int _i785 = 0; _i785 < _list783.size; ++_i785) + org.apache.thrift.protocol.TList _list799 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.poolTriggers = new ArrayList(_list799.size); + WMPoolTrigger _elem800; + for (int _i801 = 0; _i801 < _list799.size; ++_i801) { - _elem784 = new WMPoolTrigger(); - _elem784.read(iprot); - struct.poolTriggers.add(_elem784); + _elem800 = new WMPoolTrigger(); + _elem800.read(iprot); + struct.poolTriggers.add(_elem800); } } 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 69ccf539c9..007f66ebab 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 _list786 = iprot.readListBegin(); - struct.resourcePlans = new ArrayList(_list786.size); - WMResourcePlan _elem787; - for (int _i788 = 0; _i788 < _list786.size; ++_i788) + org.apache.thrift.protocol.TList _list802 = iprot.readListBegin(); + struct.resourcePlans = new ArrayList(_list802.size); + WMResourcePlan _elem803; + for (int _i804 = 0; _i804 < _list802.size; ++_i804) { - _elem787 = new WMResourcePlan(); - _elem787.read(iprot); - struct.resourcePlans.add(_elem787); + _elem803 = new WMResourcePlan(); + _elem803.read(iprot); + struct.resourcePlans.add(_elem803); } 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 _iter789 : struct.resourcePlans) + for (WMResourcePlan _iter805 : struct.resourcePlans) { - _iter789.write(oprot); + _iter805.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 _iter790 : struct.resourcePlans) + for (WMResourcePlan _iter806 : struct.resourcePlans) { - _iter790.write(oprot); + _iter806.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 _list791 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.resourcePlans = new ArrayList(_list791.size); - WMResourcePlan _elem792; - for (int _i793 = 0; _i793 < _list791.size; ++_i793) + org.apache.thrift.protocol.TList _list807 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.resourcePlans = new ArrayList(_list807.size); + WMResourcePlan _elem808; + for (int _i809 = 0; _i809 < _list807.size; ++_i809) { - _elem792 = new WMResourcePlan(); - _elem792.read(iprot); - struct.resourcePlans.add(_elem792); + _elem808 = new WMResourcePlan(); + _elem808.read(iprot); + struct.resourcePlans.add(_elem808); } } 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 ee30063f14..4340ade8da 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 _list810 = iprot.readListBegin(); - struct.triggers = new ArrayList(_list810.size); - WMTrigger _elem811; - for (int _i812 = 0; _i812 < _list810.size; ++_i812) + org.apache.thrift.protocol.TList _list826 = iprot.readListBegin(); + struct.triggers = new ArrayList(_list826.size); + WMTrigger _elem827; + for (int _i828 = 0; _i828 < _list826.size; ++_i828) { - _elem811 = new WMTrigger(); - _elem811.read(iprot); - struct.triggers.add(_elem811); + _elem827 = new WMTrigger(); + _elem827.read(iprot); + struct.triggers.add(_elem827); } 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 _iter813 : struct.triggers) + for (WMTrigger _iter829 : struct.triggers) { - _iter813.write(oprot); + _iter829.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 _iter814 : struct.triggers) + for (WMTrigger _iter830 : struct.triggers) { - _iter814.write(oprot); + _iter830.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 _list815 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.triggers = new ArrayList(_list815.size); - WMTrigger _elem816; - for (int _i817 = 0; _i817 < _list815.size; ++_i817) + org.apache.thrift.protocol.TList _list831 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.triggers = new ArrayList(_list831.size); + WMTrigger _elem832; + for (int _i833 = 0; _i833 < _list831.size; ++_i833) { - _elem816 = new WMTrigger(); - _elem816.read(iprot); - struct.triggers.add(_elem816); + _elem832 = new WMTrigger(); + _elem832.read(iprot); + struct.triggers.add(_elem832); } } 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 5caf586b38..3a7c7dd619 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java @@ -441,13 +441,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMValidateResourceP case 1: // ERRORS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list794 = iprot.readListBegin(); - struct.errors = new ArrayList(_list794.size); - String _elem795; - for (int _i796 = 0; _i796 < _list794.size; ++_i796) + org.apache.thrift.protocol.TList _list810 = iprot.readListBegin(); + struct.errors = new ArrayList(_list810.size); + String _elem811; + for (int _i812 = 0; _i812 < _list810.size; ++_i812) { - _elem795 = iprot.readString(); - struct.errors.add(_elem795); + _elem811 = iprot.readString(); + struct.errors.add(_elem811); } iprot.readListEnd(); } @@ -459,13 +459,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, WMValidateResourceP case 2: // WARNINGS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list797 = iprot.readListBegin(); - struct.warnings = new ArrayList(_list797.size); - String _elem798; - for (int _i799 = 0; _i799 < _list797.size; ++_i799) + org.apache.thrift.protocol.TList _list813 = iprot.readListBegin(); + struct.warnings = new ArrayList(_list813.size); + String _elem814; + for (int _i815 = 0; _i815 < _list813.size; ++_i815) { - _elem798 = iprot.readString(); - struct.warnings.add(_elem798); + _elem814 = iprot.readString(); + struct.warnings.add(_elem814); } iprot.readListEnd(); } @@ -492,9 +492,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMValidateResource oprot.writeFieldBegin(ERRORS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.errors.size())); - for (String _iter800 : struct.errors) + for (String _iter816 : struct.errors) { - oprot.writeString(_iter800); + oprot.writeString(_iter816); } oprot.writeListEnd(); } @@ -506,9 +506,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, WMValidateResource oprot.writeFieldBegin(WARNINGS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.warnings.size())); - for (String _iter801 : struct.warnings) + for (String _iter817 : struct.warnings) { - oprot.writeString(_iter801); + oprot.writeString(_iter817); } oprot.writeListEnd(); } @@ -543,18 +543,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, WMValidateResourceP if (struct.isSetErrors()) { { oprot.writeI32(struct.errors.size()); - for (String _iter802 : struct.errors) + for (String _iter818 : struct.errors) { - oprot.writeString(_iter802); + oprot.writeString(_iter818); } } } if (struct.isSetWarnings()) { { oprot.writeI32(struct.warnings.size()); - for (String _iter803 : struct.warnings) + for (String _iter819 : struct.warnings) { - oprot.writeString(_iter803); + oprot.writeString(_iter819); } } } @@ -566,26 +566,26 @@ public void read(org.apache.thrift.protocol.TProtocol prot, WMValidateResourcePl BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list804 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.errors = new ArrayList(_list804.size); - String _elem805; - for (int _i806 = 0; _i806 < _list804.size; ++_i806) + org.apache.thrift.protocol.TList _list820 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.errors = new ArrayList(_list820.size); + String _elem821; + for (int _i822 = 0; _i822 < _list820.size; ++_i822) { - _elem805 = iprot.readString(); - struct.errors.add(_elem805); + _elem821 = iprot.readString(); + struct.errors.add(_elem821); } } struct.setErrorsIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list807 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.warnings = new ArrayList(_list807.size); - String _elem808; - for (int _i809 = 0; _i809 < _list807.size; ++_i809) + org.apache.thrift.protocol.TList _list823 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.warnings = new ArrayList(_list823.size); + String _elem824; + for (int _i825 = 0; _i825 < _list823.size; ++_i825) { - _elem808 = iprot.readString(); - struct.warnings.add(_elem808); + _elem824 = iprot.readString(); + struct.warnings.add(_elem824); } } struct.setWarningsIsSet(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 f6fc346be7..3efc71a3d8 100644 --- a/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ b/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -162,12 +162,13 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { * @param \metastore\SQLForeignKey[] $foreignKeys * @param \metastore\SQLUniqueConstraint[] $uniqueConstraints * @param \metastore\SQLNotNullConstraint[] $notNullConstraints + * @param \metastore\SQLDefaultConstraint[] $defaultConstraints * @throws \metastore\AlreadyExistsException * @throws \metastore\InvalidObjectException * @throws \metastore\MetaException * @throws \metastore\NoSuchObjectException */ - public function create_table_with_constraints(\metastore\Table $tbl, array $primaryKeys, array $foreignKeys, array $uniqueConstraints, array $notNullConstraints); + public function create_table_with_constraints(\metastore\Table $tbl, array $primaryKeys, array $foreignKeys, array $uniqueConstraints, array $notNullConstraints, array $defaultConstraints); /** * @param \metastore\DropConstraintRequest $req * @throws \metastore\NoSuchObjectException @@ -198,6 +199,12 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { * @throws \metastore\MetaException */ public function add_not_null_constraint(\metastore\AddNotNullConstraintRequest $req); + /** + * @param \metastore\AddDefaultConstraintRequest $req + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function add_default_constraint(\metastore\AddDefaultConstraintRequest $req); /** * @param string $dbname * @param string $name @@ -827,6 +834,13 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { * @throws \metastore\NoSuchObjectException */ public function get_not_null_constraints(\metastore\NotNullConstraintsRequest $request); + /** + * @param \metastore\DefaultConstraintsRequest $request + * @return \metastore\DefaultConstraintsResponse + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ + public function get_default_constraints(\metastore\DefaultConstraintsRequest $request); /** * @param \metastore\ColumnStatistics $stats_obj * @return bool @@ -2448,13 +2462,13 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas return; } - public function create_table_with_constraints(\metastore\Table $tbl, array $primaryKeys, array $foreignKeys, array $uniqueConstraints, array $notNullConstraints) + public function create_table_with_constraints(\metastore\Table $tbl, array $primaryKeys, array $foreignKeys, array $uniqueConstraints, array $notNullConstraints, array $defaultConstraints) { - $this->send_create_table_with_constraints($tbl, $primaryKeys, $foreignKeys, $uniqueConstraints, $notNullConstraints); + $this->send_create_table_with_constraints($tbl, $primaryKeys, $foreignKeys, $uniqueConstraints, $notNullConstraints, $defaultConstraints); $this->recv_create_table_with_constraints(); } - public function send_create_table_with_constraints(\metastore\Table $tbl, array $primaryKeys, array $foreignKeys, array $uniqueConstraints, array $notNullConstraints) + public function send_create_table_with_constraints(\metastore\Table $tbl, array $primaryKeys, array $foreignKeys, array $uniqueConstraints, array $notNullConstraints, array $defaultConstraints) { $args = new \metastore\ThriftHiveMetastore_create_table_with_constraints_args(); $args->tbl = $tbl; @@ -2462,6 +2476,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->foreignKeys = $foreignKeys; $args->uniqueConstraints = $uniqueConstraints; $args->notNullConstraints = $notNullConstraints; + $args->defaultConstraints = $defaultConstraints; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { @@ -2782,6 +2797,60 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas return; } + public function add_default_constraint(\metastore\AddDefaultConstraintRequest $req) + { + $this->send_add_default_constraint($req); + $this->recv_add_default_constraint(); + } + + public function send_add_default_constraint(\metastore\AddDefaultConstraintRequest $req) + { + $args = new \metastore\ThriftHiveMetastore_add_default_constraint_args(); + $args->req = $req; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'add_default_constraint', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('add_default_constraint', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_add_default_constraint() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_default_constraint_result', $this->input_->isStrictRead()); + else + { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new \metastore\ThriftHiveMetastore_add_default_constraint_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->o1 !== null) { + throw $result->o1; + } + if ($result->o2 !== null) { + throw $result->o2; + } + return; + } + public function drop_table($dbname, $name, $deleteData) { $this->send_drop_table($dbname, $name, $deleteData); @@ -6959,6 +7028,63 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_not_null_constraints failed: unknown result"); } + public function get_default_constraints(\metastore\DefaultConstraintsRequest $request) + { + $this->send_get_default_constraints($request); + return $this->recv_get_default_constraints(); + } + + public function send_get_default_constraints(\metastore\DefaultConstraintsRequest $request) + { + $args = new \metastore\ThriftHiveMetastore_get_default_constraints_args(); + $args->request = $request; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'get_default_constraints', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_default_constraints', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_default_constraints() + { + $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_default_constraints_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_default_constraints_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; + } + throw new \Exception("get_default_constraints failed: unknown result"); + } + public function update_table_column_statistics(\metastore\ColumnStatistics $stats_obj) { $this->send_update_table_column_statistics($stats_obj); @@ -12932,14 +13058,14 @@ class ThriftHiveMetastore_get_databases_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) + $_size738 = 0; + $_etype741 = 0; + $xfer += $input->readListBegin($_etype741, $_size738); + for ($_i742 = 0; $_i742 < $_size738; ++$_i742) { - $elem729 = null; - $xfer += $input->readString($elem729); - $this->success []= $elem729; + $elem743 = null; + $xfer += $input->readString($elem743); + $this->success []= $elem743; } $xfer += $input->readListEnd(); } else { @@ -12975,9 +13101,9 @@ class ThriftHiveMetastore_get_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter730) + foreach ($this->success as $iter744) { - $xfer += $output->writeString($iter730); + $xfer += $output->writeString($iter744); } } $output->writeListEnd(); @@ -13108,14 +13234,14 @@ class ThriftHiveMetastore_get_all_databases_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) + $_size745 = 0; + $_etype748 = 0; + $xfer += $input->readListBegin($_etype748, $_size745); + for ($_i749 = 0; $_i749 < $_size745; ++$_i749) { - $elem736 = null; - $xfer += $input->readString($elem736); - $this->success []= $elem736; + $elem750 = null; + $xfer += $input->readString($elem750); + $this->success []= $elem750; } $xfer += $input->readListEnd(); } else { @@ -13151,9 +13277,9 @@ class ThriftHiveMetastore_get_all_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter737) + foreach ($this->success as $iter751) { - $xfer += $output->writeString($iter737); + $xfer += $output->writeString($iter751); } } $output->writeListEnd(); @@ -14154,18 +14280,18 @@ class ThriftHiveMetastore_get_type_all_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size738 = 0; - $_ktype739 = 0; - $_vtype740 = 0; - $xfer += $input->readMapBegin($_ktype739, $_vtype740, $_size738); - for ($_i742 = 0; $_i742 < $_size738; ++$_i742) + $_size752 = 0; + $_ktype753 = 0; + $_vtype754 = 0; + $xfer += $input->readMapBegin($_ktype753, $_vtype754, $_size752); + for ($_i756 = 0; $_i756 < $_size752; ++$_i756) { - $key743 = ''; - $val744 = new \metastore\Type(); - $xfer += $input->readString($key743); - $val744 = new \metastore\Type(); - $xfer += $val744->read($input); - $this->success[$key743] = $val744; + $key757 = ''; + $val758 = new \metastore\Type(); + $xfer += $input->readString($key757); + $val758 = new \metastore\Type(); + $xfer += $val758->read($input); + $this->success[$key757] = $val758; } $xfer += $input->readMapEnd(); } else { @@ -14201,10 +14327,10 @@ class ThriftHiveMetastore_get_type_all_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter745 => $viter746) + foreach ($this->success as $kiter759 => $viter760) { - $xfer += $output->writeString($kiter745); - $xfer += $viter746->write($output); + $xfer += $output->writeString($kiter759); + $xfer += $viter760->write($output); } } $output->writeMapEnd(); @@ -14408,15 +14534,15 @@ class ThriftHiveMetastore_get_fields_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size747 = 0; - $_etype750 = 0; - $xfer += $input->readListBegin($_etype750, $_size747); - for ($_i751 = 0; $_i751 < $_size747; ++$_i751) + $_size761 = 0; + $_etype764 = 0; + $xfer += $input->readListBegin($_etype764, $_size761); + for ($_i765 = 0; $_i765 < $_size761; ++$_i765) { - $elem752 = null; - $elem752 = new \metastore\FieldSchema(); - $xfer += $elem752->read($input); - $this->success []= $elem752; + $elem766 = null; + $elem766 = new \metastore\FieldSchema(); + $xfer += $elem766->read($input); + $this->success []= $elem766; } $xfer += $input->readListEnd(); } else { @@ -14468,9 +14594,9 @@ class ThriftHiveMetastore_get_fields_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter753) + foreach ($this->success as $iter767) { - $xfer += $iter753->write($output); + $xfer += $iter767->write($output); } } $output->writeListEnd(); @@ -14712,15 +14838,15 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size754 = 0; - $_etype757 = 0; - $xfer += $input->readListBegin($_etype757, $_size754); - for ($_i758 = 0; $_i758 < $_size754; ++$_i758) + $_size768 = 0; + $_etype771 = 0; + $xfer += $input->readListBegin($_etype771, $_size768); + for ($_i772 = 0; $_i772 < $_size768; ++$_i772) { - $elem759 = null; - $elem759 = new \metastore\FieldSchema(); - $xfer += $elem759->read($input); - $this->success []= $elem759; + $elem773 = null; + $elem773 = new \metastore\FieldSchema(); + $xfer += $elem773->read($input); + $this->success []= $elem773; } $xfer += $input->readListEnd(); } else { @@ -14772,9 +14898,9 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter760) + foreach ($this->success as $iter774) { - $xfer += $iter760->write($output); + $xfer += $iter774->write($output); } } $output->writeListEnd(); @@ -14988,15 +15114,15 @@ class ThriftHiveMetastore_get_schema_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size761 = 0; - $_etype764 = 0; - $xfer += $input->readListBegin($_etype764, $_size761); - for ($_i765 = 0; $_i765 < $_size761; ++$_i765) + $_size775 = 0; + $_etype778 = 0; + $xfer += $input->readListBegin($_etype778, $_size775); + for ($_i779 = 0; $_i779 < $_size775; ++$_i779) { - $elem766 = null; - $elem766 = new \metastore\FieldSchema(); - $xfer += $elem766->read($input); - $this->success []= $elem766; + $elem780 = null; + $elem780 = new \metastore\FieldSchema(); + $xfer += $elem780->read($input); + $this->success []= $elem780; } $xfer += $input->readListEnd(); } else { @@ -15048,9 +15174,9 @@ class ThriftHiveMetastore_get_schema_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter767) + foreach ($this->success as $iter781) { - $xfer += $iter767->write($output); + $xfer += $iter781->write($output); } } $output->writeListEnd(); @@ -15292,15 +15418,15 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size768 = 0; - $_etype771 = 0; - $xfer += $input->readListBegin($_etype771, $_size768); - for ($_i772 = 0; $_i772 < $_size768; ++$_i772) + $_size782 = 0; + $_etype785 = 0; + $xfer += $input->readListBegin($_etype785, $_size782); + for ($_i786 = 0; $_i786 < $_size782; ++$_i786) { - $elem773 = null; - $elem773 = new \metastore\FieldSchema(); - $xfer += $elem773->read($input); - $this->success []= $elem773; + $elem787 = null; + $elem787 = new \metastore\FieldSchema(); + $xfer += $elem787->read($input); + $this->success []= $elem787; } $xfer += $input->readListEnd(); } else { @@ -15352,9 +15478,9 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter774) + foreach ($this->success as $iter788) { - $xfer += $iter774->write($output); + $xfer += $iter788->write($output); } } $output->writeListEnd(); @@ -15898,6 +16024,10 @@ class ThriftHiveMetastore_create_table_with_constraints_args { * @var \metastore\SQLNotNullConstraint[] */ public $notNullConstraints = null; + /** + * @var \metastore\SQLDefaultConstraint[] + */ + public $defaultConstraints = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -15943,6 +16073,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { 'class' => '\metastore\SQLNotNullConstraint', ), ), + 6 => array( + 'var' => 'defaultConstraints', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\SQLDefaultConstraint', + ), + ), ); } if (is_array($vals)) { @@ -15961,6 +16100,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { if (isset($vals['notNullConstraints'])) { $this->notNullConstraints = $vals['notNullConstraints']; } + if (isset($vals['defaultConstraints'])) { + $this->defaultConstraints = $vals['defaultConstraints']; + } } } @@ -15994,15 +16136,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 2: if ($ftype == TType::LST) { $this->primaryKeys = array(); - $_size775 = 0; - $_etype778 = 0; - $xfer += $input->readListBegin($_etype778, $_size775); - for ($_i779 = 0; $_i779 < $_size775; ++$_i779) + $_size789 = 0; + $_etype792 = 0; + $xfer += $input->readListBegin($_etype792, $_size789); + for ($_i793 = 0; $_i793 < $_size789; ++$_i793) { - $elem780 = null; - $elem780 = new \metastore\SQLPrimaryKey(); - $xfer += $elem780->read($input); - $this->primaryKeys []= $elem780; + $elem794 = null; + $elem794 = new \metastore\SQLPrimaryKey(); + $xfer += $elem794->read($input); + $this->primaryKeys []= $elem794; } $xfer += $input->readListEnd(); } else { @@ -16012,15 +16154,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 3: if ($ftype == TType::LST) { $this->foreignKeys = array(); - $_size781 = 0; - $_etype784 = 0; - $xfer += $input->readListBegin($_etype784, $_size781); - for ($_i785 = 0; $_i785 < $_size781; ++$_i785) + $_size795 = 0; + $_etype798 = 0; + $xfer += $input->readListBegin($_etype798, $_size795); + for ($_i799 = 0; $_i799 < $_size795; ++$_i799) { - $elem786 = null; - $elem786 = new \metastore\SQLForeignKey(); - $xfer += $elem786->read($input); - $this->foreignKeys []= $elem786; + $elem800 = null; + $elem800 = new \metastore\SQLForeignKey(); + $xfer += $elem800->read($input); + $this->foreignKeys []= $elem800; } $xfer += $input->readListEnd(); } else { @@ -16030,15 +16172,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 4: if ($ftype == TType::LST) { $this->uniqueConstraints = array(); - $_size787 = 0; - $_etype790 = 0; - $xfer += $input->readListBegin($_etype790, $_size787); - for ($_i791 = 0; $_i791 < $_size787; ++$_i791) + $_size801 = 0; + $_etype804 = 0; + $xfer += $input->readListBegin($_etype804, $_size801); + for ($_i805 = 0; $_i805 < $_size801; ++$_i805) { - $elem792 = null; - $elem792 = new \metastore\SQLUniqueConstraint(); - $xfer += $elem792->read($input); - $this->uniqueConstraints []= $elem792; + $elem806 = null; + $elem806 = new \metastore\SQLUniqueConstraint(); + $xfer += $elem806->read($input); + $this->uniqueConstraints []= $elem806; } $xfer += $input->readListEnd(); } else { @@ -16048,15 +16190,33 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 5: if ($ftype == TType::LST) { $this->notNullConstraints = array(); - $_size793 = 0; - $_etype796 = 0; - $xfer += $input->readListBegin($_etype796, $_size793); - for ($_i797 = 0; $_i797 < $_size793; ++$_i797) + $_size807 = 0; + $_etype810 = 0; + $xfer += $input->readListBegin($_etype810, $_size807); + for ($_i811 = 0; $_i811 < $_size807; ++$_i811) { - $elem798 = null; - $elem798 = new \metastore\SQLNotNullConstraint(); - $xfer += $elem798->read($input); - $this->notNullConstraints []= $elem798; + $elem812 = null; + $elem812 = new \metastore\SQLNotNullConstraint(); + $xfer += $elem812->read($input); + $this->notNullConstraints []= $elem812; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::LST) { + $this->defaultConstraints = array(); + $_size813 = 0; + $_etype816 = 0; + $xfer += $input->readListBegin($_etype816, $_size813); + for ($_i817 = 0; $_i817 < $_size813; ++$_i817) + { + $elem818 = null; + $elem818 = new \metastore\SQLDefaultConstraint(); + $xfer += $elem818->read($input); + $this->defaultConstraints []= $elem818; } $xfer += $input->readListEnd(); } else { @@ -16092,9 +16252,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->primaryKeys)); { - foreach ($this->primaryKeys as $iter799) + foreach ($this->primaryKeys as $iter819) { - $xfer += $iter799->write($output); + $xfer += $iter819->write($output); } } $output->writeListEnd(); @@ -16109,9 +16269,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->foreignKeys)); { - foreach ($this->foreignKeys as $iter800) + foreach ($this->foreignKeys as $iter820) { - $xfer += $iter800->write($output); + $xfer += $iter820->write($output); } } $output->writeListEnd(); @@ -16126,9 +16286,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->uniqueConstraints)); { - foreach ($this->uniqueConstraints as $iter801) + foreach ($this->uniqueConstraints as $iter821) { - $xfer += $iter801->write($output); + $xfer += $iter821->write($output); } } $output->writeListEnd(); @@ -16143,9 +16303,26 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->notNullConstraints)); { - foreach ($this->notNullConstraints as $iter802) + foreach ($this->notNullConstraints as $iter822) { - $xfer += $iter802->write($output); + $xfer += $iter822->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->defaultConstraints !== null) { + if (!is_array($this->defaultConstraints)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('defaultConstraints', TType::LST, 6); + { + $output->writeListBegin(TType::STRUCT, count($this->defaultConstraints)); + { + foreach ($this->defaultConstraints as $iter823) + { + $xfer += $iter823->write($output); } } $output->writeListEnd(); @@ -17221,54 +17398,33 @@ class ThriftHiveMetastore_add_not_null_constraint_result { } -class ThriftHiveMetastore_drop_table_args { +class ThriftHiveMetastore_add_default_constraint_args { static $_TSPEC; /** - * @var string - */ - public $dbname = null; - /** - * @var string - */ - public $name = null; - /** - * @var bool + * @var \metastore\AddDefaultConstraintRequest */ - public $deleteData = null; + public $req = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'dbname', - 'type' => TType::STRING, - ), - 2 => array( - 'var' => 'name', - 'type' => TType::STRING, - ), - 3 => array( - 'var' => 'deleteData', - 'type' => TType::BOOL, + 'var' => 'req', + 'type' => TType::STRUCT, + 'class' => '\metastore\AddDefaultConstraintRequest', ), ); } if (is_array($vals)) { - if (isset($vals['dbname'])) { - $this->dbname = $vals['dbname']; - } - if (isset($vals['name'])) { - $this->name = $vals['name']; - } - if (isset($vals['deleteData'])) { - $this->deleteData = $vals['deleteData']; + if (isset($vals['req'])) { + $this->req = $vals['req']; } } } public function getName() { - return 'ThriftHiveMetastore_drop_table_args'; + return 'ThriftHiveMetastore_add_default_constraint_args'; } public function read($input) @@ -17287,22 +17443,9 @@ class ThriftHiveMetastore_drop_table_args { switch ($fid) { case 1: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->dbname); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->name); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->deleteData); + if ($ftype == TType::STRUCT) { + $this->req = new \metastore\AddDefaultConstraintRequest(); + $xfer += $this->req->read($input); } else { $xfer += $input->skip($ftype); } @@ -17319,20 +17462,13 @@ class ThriftHiveMetastore_drop_table_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_table_args'); - if ($this->dbname !== null) { - $xfer += $output->writeFieldBegin('dbname', TType::STRING, 1); - $xfer += $output->writeString($this->dbname); - $xfer += $output->writeFieldEnd(); - } - if ($this->name !== null) { - $xfer += $output->writeFieldBegin('name', TType::STRING, 2); - $xfer += $output->writeString($this->name); - $xfer += $output->writeFieldEnd(); - } - if ($this->deleteData !== null) { - $xfer += $output->writeFieldBegin('deleteData', TType::BOOL, 3); - $xfer += $output->writeBool($this->deleteData); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_add_default_constraint_args'); + if ($this->req !== null) { + if (!is_object($this->req)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1); + $xfer += $this->req->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -17342,7 +17478,7 @@ class ThriftHiveMetastore_drop_table_args { } -class ThriftHiveMetastore_drop_table_result { +class ThriftHiveMetastore_add_default_constraint_result { static $_TSPEC; /** @@ -17352,7 +17488,7 @@ class ThriftHiveMetastore_drop_table_result { /** * @var \metastore\MetaException */ - public $o3 = null; + public $o2 = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -17363,7 +17499,7 @@ class ThriftHiveMetastore_drop_table_result { 'class' => '\metastore\NoSuchObjectException', ), 2 => array( - 'var' => 'o3', + 'var' => 'o2', 'type' => TType::STRUCT, 'class' => '\metastore\MetaException', ), @@ -17373,14 +17509,237 @@ class ThriftHiveMetastore_drop_table_result { if (isset($vals['o1'])) { $this->o1 = $vals['o1']; } - if (isset($vals['o3'])) { - $this->o3 = $vals['o3']; + if (isset($vals['o2'])) { + $this->o2 = $vals['o2']; } } } public function getName() { - return 'ThriftHiveMetastore_drop_table_result'; + return 'ThriftHiveMetastore_add_default_constraint_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 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\NoSuchObjectException(); + $xfer += $this->o1->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->o2 = new \metastore\MetaException(); + $xfer += $this->o2->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_add_default_constraint_result'); + 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(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_drop_table_args { + static $_TSPEC; + + /** + * @var string + */ + public $dbname = null; + /** + * @var string + */ + public $name = null; + /** + * @var bool + */ + public $deleteData = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'dbname', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'name', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'deleteData', + 'type' => TType::BOOL, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['dbname'])) { + $this->dbname = $vals['dbname']; + } + if (isset($vals['name'])) { + $this->name = $vals['name']; + } + if (isset($vals['deleteData'])) { + $this->deleteData = $vals['deleteData']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_drop_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->dbname); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->deleteData); + } 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_drop_table_args'); + if ($this->dbname !== null) { + $xfer += $output->writeFieldBegin('dbname', TType::STRING, 1); + $xfer += $output->writeString($this->dbname); + $xfer += $output->writeFieldEnd(); + } + if ($this->name !== null) { + $xfer += $output->writeFieldBegin('name', TType::STRING, 2); + $xfer += $output->writeString($this->name); + $xfer += $output->writeFieldEnd(); + } + if ($this->deleteData !== null) { + $xfer += $output->writeFieldBegin('deleteData', TType::BOOL, 3); + $xfer += $output->writeBool($this->deleteData); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_drop_table_result { + static $_TSPEC; + + /** + * @var \metastore\NoSuchObjectException + */ + public $o1 = null; + /** + * @var \metastore\MetaException + */ + public $o3 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\NoSuchObjectException', + ), + 2 => array( + 'var' => 'o3', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['o1'])) { + $this->o1 = $vals['o1']; + } + if (isset($vals['o3'])) { + $this->o3 = $vals['o3']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_drop_table_result'; } public function read($input) @@ -17781,14 +18140,14 @@ class ThriftHiveMetastore_truncate_table_args { case 3: if ($ftype == TType::LST) { $this->partNames = array(); - $_size803 = 0; - $_etype806 = 0; - $xfer += $input->readListBegin($_etype806, $_size803); - for ($_i807 = 0; $_i807 < $_size803; ++$_i807) + $_size824 = 0; + $_etype827 = 0; + $xfer += $input->readListBegin($_etype827, $_size824); + for ($_i828 = 0; $_i828 < $_size824; ++$_i828) { - $elem808 = null; - $xfer += $input->readString($elem808); - $this->partNames []= $elem808; + $elem829 = null; + $xfer += $input->readString($elem829); + $this->partNames []= $elem829; } $xfer += $input->readListEnd(); } else { @@ -17826,9 +18185,9 @@ class ThriftHiveMetastore_truncate_table_args { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter809) + foreach ($this->partNames as $iter830) { - $xfer += $output->writeString($iter809); + $xfer += $output->writeString($iter830); } } $output->writeListEnd(); @@ -18079,14 +18438,14 @@ class ThriftHiveMetastore_get_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size810 = 0; - $_etype813 = 0; - $xfer += $input->readListBegin($_etype813, $_size810); - for ($_i814 = 0; $_i814 < $_size810; ++$_i814) + $_size831 = 0; + $_etype834 = 0; + $xfer += $input->readListBegin($_etype834, $_size831); + for ($_i835 = 0; $_i835 < $_size831; ++$_i835) { - $elem815 = null; - $xfer += $input->readString($elem815); - $this->success []= $elem815; + $elem836 = null; + $xfer += $input->readString($elem836); + $this->success []= $elem836; } $xfer += $input->readListEnd(); } else { @@ -18122,9 +18481,9 @@ class ThriftHiveMetastore_get_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter816) + foreach ($this->success as $iter837) { - $xfer += $output->writeString($iter816); + $xfer += $output->writeString($iter837); } } $output->writeListEnd(); @@ -18326,14 +18685,14 @@ class ThriftHiveMetastore_get_tables_by_type_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size817 = 0; - $_etype820 = 0; - $xfer += $input->readListBegin($_etype820, $_size817); - for ($_i821 = 0; $_i821 < $_size817; ++$_i821) + $_size838 = 0; + $_etype841 = 0; + $xfer += $input->readListBegin($_etype841, $_size838); + for ($_i842 = 0; $_i842 < $_size838; ++$_i842) { - $elem822 = null; - $xfer += $input->readString($elem822); - $this->success []= $elem822; + $elem843 = null; + $xfer += $input->readString($elem843); + $this->success []= $elem843; } $xfer += $input->readListEnd(); } else { @@ -18369,9 +18728,9 @@ class ThriftHiveMetastore_get_tables_by_type_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter823) + foreach ($this->success as $iter844) { - $xfer += $output->writeString($iter823); + $xfer += $output->writeString($iter844); } } $output->writeListEnd(); @@ -18527,14 +18886,14 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size824 = 0; - $_etype827 = 0; - $xfer += $input->readListBegin($_etype827, $_size824); - for ($_i828 = 0; $_i828 < $_size824; ++$_i828) + $_size845 = 0; + $_etype848 = 0; + $xfer += $input->readListBegin($_etype848, $_size845); + for ($_i849 = 0; $_i849 < $_size845; ++$_i849) { - $elem829 = null; - $xfer += $input->readString($elem829); - $this->success []= $elem829; + $elem850 = null; + $xfer += $input->readString($elem850); + $this->success []= $elem850; } $xfer += $input->readListEnd(); } else { @@ -18570,9 +18929,9 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter830) + foreach ($this->success as $iter851) { - $xfer += $output->writeString($iter830); + $xfer += $output->writeString($iter851); } } $output->writeListEnd(); @@ -18677,14 +19036,14 @@ class ThriftHiveMetastore_get_table_meta_args { case 3: if ($ftype == TType::LST) { $this->tbl_types = array(); - $_size831 = 0; - $_etype834 = 0; - $xfer += $input->readListBegin($_etype834, $_size831); - for ($_i835 = 0; $_i835 < $_size831; ++$_i835) + $_size852 = 0; + $_etype855 = 0; + $xfer += $input->readListBegin($_etype855, $_size852); + for ($_i856 = 0; $_i856 < $_size852; ++$_i856) { - $elem836 = null; - $xfer += $input->readString($elem836); - $this->tbl_types []= $elem836; + $elem857 = null; + $xfer += $input->readString($elem857); + $this->tbl_types []= $elem857; } $xfer += $input->readListEnd(); } else { @@ -18722,9 +19081,9 @@ class ThriftHiveMetastore_get_table_meta_args { { $output->writeListBegin(TType::STRING, count($this->tbl_types)); { - foreach ($this->tbl_types as $iter837) + foreach ($this->tbl_types as $iter858) { - $xfer += $output->writeString($iter837); + $xfer += $output->writeString($iter858); } } $output->writeListEnd(); @@ -18801,15 +19160,15 @@ class ThriftHiveMetastore_get_table_meta_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size838 = 0; - $_etype841 = 0; - $xfer += $input->readListBegin($_etype841, $_size838); - for ($_i842 = 0; $_i842 < $_size838; ++$_i842) + $_size859 = 0; + $_etype862 = 0; + $xfer += $input->readListBegin($_etype862, $_size859); + for ($_i863 = 0; $_i863 < $_size859; ++$_i863) { - $elem843 = null; - $elem843 = new \metastore\TableMeta(); - $xfer += $elem843->read($input); - $this->success []= $elem843; + $elem864 = null; + $elem864 = new \metastore\TableMeta(); + $xfer += $elem864->read($input); + $this->success []= $elem864; } $xfer += $input->readListEnd(); } else { @@ -18845,9 +19204,9 @@ class ThriftHiveMetastore_get_table_meta_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter844) + foreach ($this->success as $iter865) { - $xfer += $iter844->write($output); + $xfer += $iter865->write($output); } } $output->writeListEnd(); @@ -19003,14 +19362,14 @@ class ThriftHiveMetastore_get_all_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size845 = 0; - $_etype848 = 0; - $xfer += $input->readListBegin($_etype848, $_size845); - for ($_i849 = 0; $_i849 < $_size845; ++$_i849) + $_size866 = 0; + $_etype869 = 0; + $xfer += $input->readListBegin($_etype869, $_size866); + for ($_i870 = 0; $_i870 < $_size866; ++$_i870) { - $elem850 = null; - $xfer += $input->readString($elem850); - $this->success []= $elem850; + $elem871 = null; + $xfer += $input->readString($elem871); + $this->success []= $elem871; } $xfer += $input->readListEnd(); } else { @@ -19046,9 +19405,9 @@ class ThriftHiveMetastore_get_all_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter851) + foreach ($this->success as $iter872) { - $xfer += $output->writeString($iter851); + $xfer += $output->writeString($iter872); } } $output->writeListEnd(); @@ -19363,14 +19722,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = array(); - $_size852 = 0; - $_etype855 = 0; - $xfer += $input->readListBegin($_etype855, $_size852); - for ($_i856 = 0; $_i856 < $_size852; ++$_i856) + $_size873 = 0; + $_etype876 = 0; + $xfer += $input->readListBegin($_etype876, $_size873); + for ($_i877 = 0; $_i877 < $_size873; ++$_i877) { - $elem857 = null; - $xfer += $input->readString($elem857); - $this->tbl_names []= $elem857; + $elem878 = null; + $xfer += $input->readString($elem878); + $this->tbl_names []= $elem878; } $xfer += $input->readListEnd(); } else { @@ -19403,9 +19762,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter858) + foreach ($this->tbl_names as $iter879) { - $xfer += $output->writeString($iter858); + $xfer += $output->writeString($iter879); } } $output->writeListEnd(); @@ -19470,15 +19829,15 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size859 = 0; - $_etype862 = 0; - $xfer += $input->readListBegin($_etype862, $_size859); - for ($_i863 = 0; $_i863 < $_size859; ++$_i863) + $_size880 = 0; + $_etype883 = 0; + $xfer += $input->readListBegin($_etype883, $_size880); + for ($_i884 = 0; $_i884 < $_size880; ++$_i884) { - $elem864 = null; - $elem864 = new \metastore\Table(); - $xfer += $elem864->read($input); - $this->success []= $elem864; + $elem885 = null; + $elem885 = new \metastore\Table(); + $xfer += $elem885->read($input); + $this->success []= $elem885; } $xfer += $input->readListEnd(); } else { @@ -19506,9 +19865,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter865) + foreach ($this->success as $iter886) { - $xfer += $iter865->write($output); + $xfer += $iter886->write($output); } } $output->writeListEnd(); @@ -20035,14 +20394,14 @@ class ThriftHiveMetastore_get_materialization_invalidation_info_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = array(); - $_size866 = 0; - $_etype869 = 0; - $xfer += $input->readListBegin($_etype869, $_size866); - for ($_i870 = 0; $_i870 < $_size866; ++$_i870) + $_size887 = 0; + $_etype890 = 0; + $xfer += $input->readListBegin($_etype890, $_size887); + for ($_i891 = 0; $_i891 < $_size887; ++$_i891) { - $elem871 = null; - $xfer += $input->readString($elem871); - $this->tbl_names []= $elem871; + $elem892 = null; + $xfer += $input->readString($elem892); + $this->tbl_names []= $elem892; } $xfer += $input->readListEnd(); } else { @@ -20075,9 +20434,9 @@ class ThriftHiveMetastore_get_materialization_invalidation_info_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter872) + foreach ($this->tbl_names as $iter893) { - $xfer += $output->writeString($iter872); + $xfer += $output->writeString($iter893); } } $output->writeListEnd(); @@ -20182,18 +20541,18 @@ class ThriftHiveMetastore_get_materialization_invalidation_info_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size873 = 0; - $_ktype874 = 0; - $_vtype875 = 0; - $xfer += $input->readMapBegin($_ktype874, $_vtype875, $_size873); - for ($_i877 = 0; $_i877 < $_size873; ++$_i877) + $_size894 = 0; + $_ktype895 = 0; + $_vtype896 = 0; + $xfer += $input->readMapBegin($_ktype895, $_vtype896, $_size894); + for ($_i898 = 0; $_i898 < $_size894; ++$_i898) { - $key878 = ''; - $val879 = new \metastore\Materialization(); - $xfer += $input->readString($key878); - $val879 = new \metastore\Materialization(); - $xfer += $val879->read($input); - $this->success[$key878] = $val879; + $key899 = ''; + $val900 = new \metastore\Materialization(); + $xfer += $input->readString($key899); + $val900 = new \metastore\Materialization(); + $xfer += $val900->read($input); + $this->success[$key899] = $val900; } $xfer += $input->readMapEnd(); } else { @@ -20245,10 +20604,10 @@ class ThriftHiveMetastore_get_materialization_invalidation_info_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter880 => $viter881) + foreach ($this->success as $kiter901 => $viter902) { - $xfer += $output->writeString($kiter880); - $xfer += $viter881->write($output); + $xfer += $output->writeString($kiter901); + $xfer += $viter902->write($output); } } $output->writeMapEnd(); @@ -20737,14 +21096,14 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size882 = 0; - $_etype885 = 0; - $xfer += $input->readListBegin($_etype885, $_size882); - for ($_i886 = 0; $_i886 < $_size882; ++$_i886) + $_size903 = 0; + $_etype906 = 0; + $xfer += $input->readListBegin($_etype906, $_size903); + for ($_i907 = 0; $_i907 < $_size903; ++$_i907) { - $elem887 = null; - $xfer += $input->readString($elem887); - $this->success []= $elem887; + $elem908 = null; + $xfer += $input->readString($elem908); + $this->success []= $elem908; } $xfer += $input->readListEnd(); } else { @@ -20796,9 +21155,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter888) + foreach ($this->success as $iter909) { - $xfer += $output->writeString($iter888); + $xfer += $output->writeString($iter909); } } $output->writeListEnd(); @@ -22111,15 +22470,15 @@ class ThriftHiveMetastore_add_partitions_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size889 = 0; - $_etype892 = 0; - $xfer += $input->readListBegin($_etype892, $_size889); - for ($_i893 = 0; $_i893 < $_size889; ++$_i893) + $_size910 = 0; + $_etype913 = 0; + $xfer += $input->readListBegin($_etype913, $_size910); + for ($_i914 = 0; $_i914 < $_size910; ++$_i914) { - $elem894 = null; - $elem894 = new \metastore\Partition(); - $xfer += $elem894->read($input); - $this->new_parts []= $elem894; + $elem915 = null; + $elem915 = new \metastore\Partition(); + $xfer += $elem915->read($input); + $this->new_parts []= $elem915; } $xfer += $input->readListEnd(); } else { @@ -22147,9 +22506,9 @@ class ThriftHiveMetastore_add_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter895) + foreach ($this->new_parts as $iter916) { - $xfer += $iter895->write($output); + $xfer += $iter916->write($output); } } $output->writeListEnd(); @@ -22364,15 +22723,15 @@ class ThriftHiveMetastore_add_partitions_pspec_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size896 = 0; - $_etype899 = 0; - $xfer += $input->readListBegin($_etype899, $_size896); - for ($_i900 = 0; $_i900 < $_size896; ++$_i900) + $_size917 = 0; + $_etype920 = 0; + $xfer += $input->readListBegin($_etype920, $_size917); + for ($_i921 = 0; $_i921 < $_size917; ++$_i921) { - $elem901 = null; - $elem901 = new \metastore\PartitionSpec(); - $xfer += $elem901->read($input); - $this->new_parts []= $elem901; + $elem922 = null; + $elem922 = new \metastore\PartitionSpec(); + $xfer += $elem922->read($input); + $this->new_parts []= $elem922; } $xfer += $input->readListEnd(); } else { @@ -22400,9 +22759,9 @@ class ThriftHiveMetastore_add_partitions_pspec_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter902) + foreach ($this->new_parts as $iter923) { - $xfer += $iter902->write($output); + $xfer += $iter923->write($output); } } $output->writeListEnd(); @@ -22652,14 +23011,14 @@ class ThriftHiveMetastore_append_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size903 = 0; - $_etype906 = 0; - $xfer += $input->readListBegin($_etype906, $_size903); - for ($_i907 = 0; $_i907 < $_size903; ++$_i907) + $_size924 = 0; + $_etype927 = 0; + $xfer += $input->readListBegin($_etype927, $_size924); + for ($_i928 = 0; $_i928 < $_size924; ++$_i928) { - $elem908 = null; - $xfer += $input->readString($elem908); - $this->part_vals []= $elem908; + $elem929 = null; + $xfer += $input->readString($elem929); + $this->part_vals []= $elem929; } $xfer += $input->readListEnd(); } else { @@ -22697,9 +23056,9 @@ class ThriftHiveMetastore_append_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter909) + foreach ($this->part_vals as $iter930) { - $xfer += $output->writeString($iter909); + $xfer += $output->writeString($iter930); } } $output->writeListEnd(); @@ -23201,14 +23560,14 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size910 = 0; - $_etype913 = 0; - $xfer += $input->readListBegin($_etype913, $_size910); - for ($_i914 = 0; $_i914 < $_size910; ++$_i914) + $_size931 = 0; + $_etype934 = 0; + $xfer += $input->readListBegin($_etype934, $_size931); + for ($_i935 = 0; $_i935 < $_size931; ++$_i935) { - $elem915 = null; - $xfer += $input->readString($elem915); - $this->part_vals []= $elem915; + $elem936 = null; + $xfer += $input->readString($elem936); + $this->part_vals []= $elem936; } $xfer += $input->readListEnd(); } else { @@ -23254,9 +23613,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter916) + foreach ($this->part_vals as $iter937) { - $xfer += $output->writeString($iter916); + $xfer += $output->writeString($iter937); } } $output->writeListEnd(); @@ -24110,14 +24469,14 @@ class ThriftHiveMetastore_drop_partition_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) + $_size938 = 0; + $_etype941 = 0; + $xfer += $input->readListBegin($_etype941, $_size938); + for ($_i942 = 0; $_i942 < $_size938; ++$_i942) { - $elem922 = null; - $xfer += $input->readString($elem922); - $this->part_vals []= $elem922; + $elem943 = null; + $xfer += $input->readString($elem943); + $this->part_vals []= $elem943; } $xfer += $input->readListEnd(); } else { @@ -24162,9 +24521,9 @@ class ThriftHiveMetastore_drop_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter923) + foreach ($this->part_vals as $iter944) { - $xfer += $output->writeString($iter923); + $xfer += $output->writeString($iter944); } } $output->writeListEnd(); @@ -24417,14 +24776,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size924 = 0; - $_etype927 = 0; - $xfer += $input->readListBegin($_etype927, $_size924); - for ($_i928 = 0; $_i928 < $_size924; ++$_i928) + $_size945 = 0; + $_etype948 = 0; + $xfer += $input->readListBegin($_etype948, $_size945); + for ($_i949 = 0; $_i949 < $_size945; ++$_i949) { - $elem929 = null; - $xfer += $input->readString($elem929); - $this->part_vals []= $elem929; + $elem950 = null; + $xfer += $input->readString($elem950); + $this->part_vals []= $elem950; } $xfer += $input->readListEnd(); } else { @@ -24477,9 +24836,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter930) + foreach ($this->part_vals as $iter951) { - $xfer += $output->writeString($iter930); + $xfer += $output->writeString($iter951); } } $output->writeListEnd(); @@ -25493,14 +25852,14 @@ class ThriftHiveMetastore_get_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size931 = 0; - $_etype934 = 0; - $xfer += $input->readListBegin($_etype934, $_size931); - for ($_i935 = 0; $_i935 < $_size931; ++$_i935) + $_size952 = 0; + $_etype955 = 0; + $xfer += $input->readListBegin($_etype955, $_size952); + for ($_i956 = 0; $_i956 < $_size952; ++$_i956) { - $elem936 = null; - $xfer += $input->readString($elem936); - $this->part_vals []= $elem936; + $elem957 = null; + $xfer += $input->readString($elem957); + $this->part_vals []= $elem957; } $xfer += $input->readListEnd(); } else { @@ -25538,9 +25897,9 @@ class ThriftHiveMetastore_get_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter937) + foreach ($this->part_vals as $iter958) { - $xfer += $output->writeString($iter937); + $xfer += $output->writeString($iter958); } } $output->writeListEnd(); @@ -25782,17 +26141,17 @@ class ThriftHiveMetastore_exchange_partition_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size938 = 0; - $_ktype939 = 0; - $_vtype940 = 0; - $xfer += $input->readMapBegin($_ktype939, $_vtype940, $_size938); - for ($_i942 = 0; $_i942 < $_size938; ++$_i942) + $_size959 = 0; + $_ktype960 = 0; + $_vtype961 = 0; + $xfer += $input->readMapBegin($_ktype960, $_vtype961, $_size959); + for ($_i963 = 0; $_i963 < $_size959; ++$_i963) { - $key943 = ''; - $val944 = ''; - $xfer += $input->readString($key943); - $xfer += $input->readString($val944); - $this->partitionSpecs[$key943] = $val944; + $key964 = ''; + $val965 = ''; + $xfer += $input->readString($key964); + $xfer += $input->readString($val965); + $this->partitionSpecs[$key964] = $val965; } $xfer += $input->readMapEnd(); } else { @@ -25848,10 +26207,10 @@ class ThriftHiveMetastore_exchange_partition_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter945 => $viter946) + foreach ($this->partitionSpecs as $kiter966 => $viter967) { - $xfer += $output->writeString($kiter945); - $xfer += $output->writeString($viter946); + $xfer += $output->writeString($kiter966); + $xfer += $output->writeString($viter967); } } $output->writeMapEnd(); @@ -26163,17 +26522,17 @@ class ThriftHiveMetastore_exchange_partitions_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size947 = 0; - $_ktype948 = 0; - $_vtype949 = 0; - $xfer += $input->readMapBegin($_ktype948, $_vtype949, $_size947); - for ($_i951 = 0; $_i951 < $_size947; ++$_i951) + $_size968 = 0; + $_ktype969 = 0; + $_vtype970 = 0; + $xfer += $input->readMapBegin($_ktype969, $_vtype970, $_size968); + for ($_i972 = 0; $_i972 < $_size968; ++$_i972) { - $key952 = ''; - $val953 = ''; - $xfer += $input->readString($key952); - $xfer += $input->readString($val953); - $this->partitionSpecs[$key952] = $val953; + $key973 = ''; + $val974 = ''; + $xfer += $input->readString($key973); + $xfer += $input->readString($val974); + $this->partitionSpecs[$key973] = $val974; } $xfer += $input->readMapEnd(); } else { @@ -26229,10 +26588,10 @@ class ThriftHiveMetastore_exchange_partitions_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter954 => $viter955) + foreach ($this->partitionSpecs as $kiter975 => $viter976) { - $xfer += $output->writeString($kiter954); - $xfer += $output->writeString($viter955); + $xfer += $output->writeString($kiter975); + $xfer += $output->writeString($viter976); } } $output->writeMapEnd(); @@ -26365,15 +26724,15 @@ class ThriftHiveMetastore_exchange_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size956 = 0; - $_etype959 = 0; - $xfer += $input->readListBegin($_etype959, $_size956); - for ($_i960 = 0; $_i960 < $_size956; ++$_i960) + $_size977 = 0; + $_etype980 = 0; + $xfer += $input->readListBegin($_etype980, $_size977); + for ($_i981 = 0; $_i981 < $_size977; ++$_i981) { - $elem961 = null; - $elem961 = new \metastore\Partition(); - $xfer += $elem961->read($input); - $this->success []= $elem961; + $elem982 = null; + $elem982 = new \metastore\Partition(); + $xfer += $elem982->read($input); + $this->success []= $elem982; } $xfer += $input->readListEnd(); } else { @@ -26433,9 +26792,9 @@ class ThriftHiveMetastore_exchange_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter962) + foreach ($this->success as $iter983) { - $xfer += $iter962->write($output); + $xfer += $iter983->write($output); } } $output->writeListEnd(); @@ -26581,14 +26940,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size963 = 0; - $_etype966 = 0; - $xfer += $input->readListBegin($_etype966, $_size963); - for ($_i967 = 0; $_i967 < $_size963; ++$_i967) + $_size984 = 0; + $_etype987 = 0; + $xfer += $input->readListBegin($_etype987, $_size984); + for ($_i988 = 0; $_i988 < $_size984; ++$_i988) { - $elem968 = null; - $xfer += $input->readString($elem968); - $this->part_vals []= $elem968; + $elem989 = null; + $xfer += $input->readString($elem989); + $this->part_vals []= $elem989; } $xfer += $input->readListEnd(); } else { @@ -26605,14 +26964,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size969 = 0; - $_etype972 = 0; - $xfer += $input->readListBegin($_etype972, $_size969); - for ($_i973 = 0; $_i973 < $_size969; ++$_i973) + $_size990 = 0; + $_etype993 = 0; + $xfer += $input->readListBegin($_etype993, $_size990); + for ($_i994 = 0; $_i994 < $_size990; ++$_i994) { - $elem974 = null; - $xfer += $input->readString($elem974); - $this->group_names []= $elem974; + $elem995 = null; + $xfer += $input->readString($elem995); + $this->group_names []= $elem995; } $xfer += $input->readListEnd(); } else { @@ -26650,9 +27009,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter975) + foreach ($this->part_vals as $iter996) { - $xfer += $output->writeString($iter975); + $xfer += $output->writeString($iter996); } } $output->writeListEnd(); @@ -26672,9 +27031,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter976) + foreach ($this->group_names as $iter997) { - $xfer += $output->writeString($iter976); + $xfer += $output->writeString($iter997); } } $output->writeListEnd(); @@ -27265,15 +27624,15 @@ class ThriftHiveMetastore_get_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size977 = 0; - $_etype980 = 0; - $xfer += $input->readListBegin($_etype980, $_size977); - for ($_i981 = 0; $_i981 < $_size977; ++$_i981) + $_size998 = 0; + $_etype1001 = 0; + $xfer += $input->readListBegin($_etype1001, $_size998); + for ($_i1002 = 0; $_i1002 < $_size998; ++$_i1002) { - $elem982 = null; - $elem982 = new \metastore\Partition(); - $xfer += $elem982->read($input); - $this->success []= $elem982; + $elem1003 = null; + $elem1003 = new \metastore\Partition(); + $xfer += $elem1003->read($input); + $this->success []= $elem1003; } $xfer += $input->readListEnd(); } else { @@ -27317,9 +27676,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter983) + foreach ($this->success as $iter1004) { - $xfer += $iter983->write($output); + $xfer += $iter1004->write($output); } } $output->writeListEnd(); @@ -27465,14 +27824,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size984 = 0; - $_etype987 = 0; - $xfer += $input->readListBegin($_etype987, $_size984); - for ($_i988 = 0; $_i988 < $_size984; ++$_i988) + $_size1005 = 0; + $_etype1008 = 0; + $xfer += $input->readListBegin($_etype1008, $_size1005); + for ($_i1009 = 0; $_i1009 < $_size1005; ++$_i1009) { - $elem989 = null; - $xfer += $input->readString($elem989); - $this->group_names []= $elem989; + $elem1010 = null; + $xfer += $input->readString($elem1010); + $this->group_names []= $elem1010; } $xfer += $input->readListEnd(); } else { @@ -27520,9 +27879,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter990) + foreach ($this->group_names as $iter1011) { - $xfer += $output->writeString($iter990); + $xfer += $output->writeString($iter1011); } } $output->writeListEnd(); @@ -27611,15 +27970,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size991 = 0; - $_etype994 = 0; - $xfer += $input->readListBegin($_etype994, $_size991); - for ($_i995 = 0; $_i995 < $_size991; ++$_i995) + $_size1012 = 0; + $_etype1015 = 0; + $xfer += $input->readListBegin($_etype1015, $_size1012); + for ($_i1016 = 0; $_i1016 < $_size1012; ++$_i1016) { - $elem996 = null; - $elem996 = new \metastore\Partition(); - $xfer += $elem996->read($input); - $this->success []= $elem996; + $elem1017 = null; + $elem1017 = new \metastore\Partition(); + $xfer += $elem1017->read($input); + $this->success []= $elem1017; } $xfer += $input->readListEnd(); } else { @@ -27663,9 +28022,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter997) + foreach ($this->success as $iter1018) { - $xfer += $iter997->write($output); + $xfer += $iter1018->write($output); } } $output->writeListEnd(); @@ -27885,15 +28244,15 @@ class ThriftHiveMetastore_get_partitions_pspec_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size998 = 0; - $_etype1001 = 0; - $xfer += $input->readListBegin($_etype1001, $_size998); - for ($_i1002 = 0; $_i1002 < $_size998; ++$_i1002) + $_size1019 = 0; + $_etype1022 = 0; + $xfer += $input->readListBegin($_etype1022, $_size1019); + for ($_i1023 = 0; $_i1023 < $_size1019; ++$_i1023) { - $elem1003 = null; - $elem1003 = new \metastore\PartitionSpec(); - $xfer += $elem1003->read($input); - $this->success []= $elem1003; + $elem1024 = null; + $elem1024 = new \metastore\PartitionSpec(); + $xfer += $elem1024->read($input); + $this->success []= $elem1024; } $xfer += $input->readListEnd(); } else { @@ -27937,9 +28296,9 @@ class ThriftHiveMetastore_get_partitions_pspec_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1004) + foreach ($this->success as $iter1025) { - $xfer += $iter1004->write($output); + $xfer += $iter1025->write($output); } } $output->writeListEnd(); @@ -28158,14 +28517,14 @@ class ThriftHiveMetastore_get_partition_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1005 = 0; - $_etype1008 = 0; - $xfer += $input->readListBegin($_etype1008, $_size1005); - for ($_i1009 = 0; $_i1009 < $_size1005; ++$_i1009) + $_size1026 = 0; + $_etype1029 = 0; + $xfer += $input->readListBegin($_etype1029, $_size1026); + for ($_i1030 = 0; $_i1030 < $_size1026; ++$_i1030) { - $elem1010 = null; - $xfer += $input->readString($elem1010); - $this->success []= $elem1010; + $elem1031 = null; + $xfer += $input->readString($elem1031); + $this->success []= $elem1031; } $xfer += $input->readListEnd(); } else { @@ -28209,9 +28568,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1011) + foreach ($this->success as $iter1032) { - $xfer += $output->writeString($iter1011); + $xfer += $output->writeString($iter1032); } } $output->writeListEnd(); @@ -28542,14 +28901,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1012 = 0; - $_etype1015 = 0; - $xfer += $input->readListBegin($_etype1015, $_size1012); - for ($_i1016 = 0; $_i1016 < $_size1012; ++$_i1016) + $_size1033 = 0; + $_etype1036 = 0; + $xfer += $input->readListBegin($_etype1036, $_size1033); + for ($_i1037 = 0; $_i1037 < $_size1033; ++$_i1037) { - $elem1017 = null; - $xfer += $input->readString($elem1017); - $this->part_vals []= $elem1017; + $elem1038 = null; + $xfer += $input->readString($elem1038); + $this->part_vals []= $elem1038; } $xfer += $input->readListEnd(); } else { @@ -28594,9 +28953,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1018) + foreach ($this->part_vals as $iter1039) { - $xfer += $output->writeString($iter1018); + $xfer += $output->writeString($iter1039); } } $output->writeListEnd(); @@ -28690,15 +29049,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1019 = 0; - $_etype1022 = 0; - $xfer += $input->readListBegin($_etype1022, $_size1019); - for ($_i1023 = 0; $_i1023 < $_size1019; ++$_i1023) + $_size1040 = 0; + $_etype1043 = 0; + $xfer += $input->readListBegin($_etype1043, $_size1040); + for ($_i1044 = 0; $_i1044 < $_size1040; ++$_i1044) { - $elem1024 = null; - $elem1024 = new \metastore\Partition(); - $xfer += $elem1024->read($input); - $this->success []= $elem1024; + $elem1045 = null; + $elem1045 = new \metastore\Partition(); + $xfer += $elem1045->read($input); + $this->success []= $elem1045; } $xfer += $input->readListEnd(); } else { @@ -28742,9 +29101,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1025) + foreach ($this->success as $iter1046) { - $xfer += $iter1025->write($output); + $xfer += $iter1046->write($output); } } $output->writeListEnd(); @@ -28891,14 +29250,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1026 = 0; - $_etype1029 = 0; - $xfer += $input->readListBegin($_etype1029, $_size1026); - for ($_i1030 = 0; $_i1030 < $_size1026; ++$_i1030) + $_size1047 = 0; + $_etype1050 = 0; + $xfer += $input->readListBegin($_etype1050, $_size1047); + for ($_i1051 = 0; $_i1051 < $_size1047; ++$_i1051) { - $elem1031 = null; - $xfer += $input->readString($elem1031); - $this->part_vals []= $elem1031; + $elem1052 = null; + $xfer += $input->readString($elem1052); + $this->part_vals []= $elem1052; } $xfer += $input->readListEnd(); } else { @@ -28922,14 +29281,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1032 = 0; - $_etype1035 = 0; - $xfer += $input->readListBegin($_etype1035, $_size1032); - for ($_i1036 = 0; $_i1036 < $_size1032; ++$_i1036) + $_size1053 = 0; + $_etype1056 = 0; + $xfer += $input->readListBegin($_etype1056, $_size1053); + for ($_i1057 = 0; $_i1057 < $_size1053; ++$_i1057) { - $elem1037 = null; - $xfer += $input->readString($elem1037); - $this->group_names []= $elem1037; + $elem1058 = null; + $xfer += $input->readString($elem1058); + $this->group_names []= $elem1058; } $xfer += $input->readListEnd(); } else { @@ -28967,9 +29326,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1038) + foreach ($this->part_vals as $iter1059) { - $xfer += $output->writeString($iter1038); + $xfer += $output->writeString($iter1059); } } $output->writeListEnd(); @@ -28994,9 +29353,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1039) + foreach ($this->group_names as $iter1060) { - $xfer += $output->writeString($iter1039); + $xfer += $output->writeString($iter1060); } } $output->writeListEnd(); @@ -29085,15 +29444,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1040 = 0; - $_etype1043 = 0; - $xfer += $input->readListBegin($_etype1043, $_size1040); - for ($_i1044 = 0; $_i1044 < $_size1040; ++$_i1044) + $_size1061 = 0; + $_etype1064 = 0; + $xfer += $input->readListBegin($_etype1064, $_size1061); + for ($_i1065 = 0; $_i1065 < $_size1061; ++$_i1065) { - $elem1045 = null; - $elem1045 = new \metastore\Partition(); - $xfer += $elem1045->read($input); - $this->success []= $elem1045; + $elem1066 = null; + $elem1066 = new \metastore\Partition(); + $xfer += $elem1066->read($input); + $this->success []= $elem1066; } $xfer += $input->readListEnd(); } else { @@ -29137,9 +29496,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1046) + foreach ($this->success as $iter1067) { - $xfer += $iter1046->write($output); + $xfer += $iter1067->write($output); } } $output->writeListEnd(); @@ -29260,14 +29619,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1047 = 0; - $_etype1050 = 0; - $xfer += $input->readListBegin($_etype1050, $_size1047); - for ($_i1051 = 0; $_i1051 < $_size1047; ++$_i1051) + $_size1068 = 0; + $_etype1071 = 0; + $xfer += $input->readListBegin($_etype1071, $_size1068); + for ($_i1072 = 0; $_i1072 < $_size1068; ++$_i1072) { - $elem1052 = null; - $xfer += $input->readString($elem1052); - $this->part_vals []= $elem1052; + $elem1073 = null; + $xfer += $input->readString($elem1073); + $this->part_vals []= $elem1073; } $xfer += $input->readListEnd(); } else { @@ -29312,9 +29671,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1053) + foreach ($this->part_vals as $iter1074) { - $xfer += $output->writeString($iter1053); + $xfer += $output->writeString($iter1074); } } $output->writeListEnd(); @@ -29407,14 +29766,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1054 = 0; - $_etype1057 = 0; - $xfer += $input->readListBegin($_etype1057, $_size1054); - for ($_i1058 = 0; $_i1058 < $_size1054; ++$_i1058) + $_size1075 = 0; + $_etype1078 = 0; + $xfer += $input->readListBegin($_etype1078, $_size1075); + for ($_i1079 = 0; $_i1079 < $_size1075; ++$_i1079) { - $elem1059 = null; - $xfer += $input->readString($elem1059); - $this->success []= $elem1059; + $elem1080 = null; + $xfer += $input->readString($elem1080); + $this->success []= $elem1080; } $xfer += $input->readListEnd(); } else { @@ -29458,9 +29817,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1060) + foreach ($this->success as $iter1081) { - $xfer += $output->writeString($iter1060); + $xfer += $output->writeString($iter1081); } } $output->writeListEnd(); @@ -29703,15 +30062,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1061 = 0; - $_etype1064 = 0; - $xfer += $input->readListBegin($_etype1064, $_size1061); - for ($_i1065 = 0; $_i1065 < $_size1061; ++$_i1065) + $_size1082 = 0; + $_etype1085 = 0; + $xfer += $input->readListBegin($_etype1085, $_size1082); + for ($_i1086 = 0; $_i1086 < $_size1082; ++$_i1086) { - $elem1066 = null; - $elem1066 = new \metastore\Partition(); - $xfer += $elem1066->read($input); - $this->success []= $elem1066; + $elem1087 = null; + $elem1087 = new \metastore\Partition(); + $xfer += $elem1087->read($input); + $this->success []= $elem1087; } $xfer += $input->readListEnd(); } else { @@ -29755,9 +30114,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1067) + foreach ($this->success as $iter1088) { - $xfer += $iter1067->write($output); + $xfer += $iter1088->write($output); } } $output->writeListEnd(); @@ -30000,15 +30359,15 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1068 = 0; - $_etype1071 = 0; - $xfer += $input->readListBegin($_etype1071, $_size1068); - for ($_i1072 = 0; $_i1072 < $_size1068; ++$_i1072) + $_size1089 = 0; + $_etype1092 = 0; + $xfer += $input->readListBegin($_etype1092, $_size1089); + for ($_i1093 = 0; $_i1093 < $_size1089; ++$_i1093) { - $elem1073 = null; - $elem1073 = new \metastore\PartitionSpec(); - $xfer += $elem1073->read($input); - $this->success []= $elem1073; + $elem1094 = null; + $elem1094 = new \metastore\PartitionSpec(); + $xfer += $elem1094->read($input); + $this->success []= $elem1094; } $xfer += $input->readListEnd(); } else { @@ -30052,9 +30411,9 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1074) + foreach ($this->success as $iter1095) { - $xfer += $iter1074->write($output); + $xfer += $iter1095->write($output); } } $output->writeListEnd(); @@ -30620,14 +30979,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size1075 = 0; - $_etype1078 = 0; - $xfer += $input->readListBegin($_etype1078, $_size1075); - for ($_i1079 = 0; $_i1079 < $_size1075; ++$_i1079) + $_size1096 = 0; + $_etype1099 = 0; + $xfer += $input->readListBegin($_etype1099, $_size1096); + for ($_i1100 = 0; $_i1100 < $_size1096; ++$_i1100) { - $elem1080 = null; - $xfer += $input->readString($elem1080); - $this->names []= $elem1080; + $elem1101 = null; + $xfer += $input->readString($elem1101); + $this->names []= $elem1101; } $xfer += $input->readListEnd(); } else { @@ -30665,9 +31024,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter1081) + foreach ($this->names as $iter1102) { - $xfer += $output->writeString($iter1081); + $xfer += $output->writeString($iter1102); } } $output->writeListEnd(); @@ -30756,15 +31115,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1082 = 0; - $_etype1085 = 0; - $xfer += $input->readListBegin($_etype1085, $_size1082); - for ($_i1086 = 0; $_i1086 < $_size1082; ++$_i1086) + $_size1103 = 0; + $_etype1106 = 0; + $xfer += $input->readListBegin($_etype1106, $_size1103); + for ($_i1107 = 0; $_i1107 < $_size1103; ++$_i1107) { - $elem1087 = null; - $elem1087 = new \metastore\Partition(); - $xfer += $elem1087->read($input); - $this->success []= $elem1087; + $elem1108 = null; + $elem1108 = new \metastore\Partition(); + $xfer += $elem1108->read($input); + $this->success []= $elem1108; } $xfer += $input->readListEnd(); } else { @@ -30808,9 +31167,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1088) + foreach ($this->success as $iter1109) { - $xfer += $iter1088->write($output); + $xfer += $iter1109->write($output); } } $output->writeListEnd(); @@ -31149,15 +31508,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1089 = 0; - $_etype1092 = 0; - $xfer += $input->readListBegin($_etype1092, $_size1089); - for ($_i1093 = 0; $_i1093 < $_size1089; ++$_i1093) + $_size1110 = 0; + $_etype1113 = 0; + $xfer += $input->readListBegin($_etype1113, $_size1110); + for ($_i1114 = 0; $_i1114 < $_size1110; ++$_i1114) { - $elem1094 = null; - $elem1094 = new \metastore\Partition(); - $xfer += $elem1094->read($input); - $this->new_parts []= $elem1094; + $elem1115 = null; + $elem1115 = new \metastore\Partition(); + $xfer += $elem1115->read($input); + $this->new_parts []= $elem1115; } $xfer += $input->readListEnd(); } else { @@ -31195,9 +31554,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1095) + foreach ($this->new_parts as $iter1116) { - $xfer += $iter1095->write($output); + $xfer += $iter1116->write($output); } } $output->writeListEnd(); @@ -31412,15 +31771,15 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1096 = 0; - $_etype1099 = 0; - $xfer += $input->readListBegin($_etype1099, $_size1096); - for ($_i1100 = 0; $_i1100 < $_size1096; ++$_i1100) + $_size1117 = 0; + $_etype1120 = 0; + $xfer += $input->readListBegin($_etype1120, $_size1117); + for ($_i1121 = 0; $_i1121 < $_size1117; ++$_i1121) { - $elem1101 = null; - $elem1101 = new \metastore\Partition(); - $xfer += $elem1101->read($input); - $this->new_parts []= $elem1101; + $elem1122 = null; + $elem1122 = new \metastore\Partition(); + $xfer += $elem1122->read($input); + $this->new_parts []= $elem1122; } $xfer += $input->readListEnd(); } else { @@ -31466,9 +31825,9 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1102) + foreach ($this->new_parts as $iter1123) { - $xfer += $iter1102->write($output); + $xfer += $iter1123->write($output); } } $output->writeListEnd(); @@ -31946,14 +32305,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1103 = 0; - $_etype1106 = 0; - $xfer += $input->readListBegin($_etype1106, $_size1103); - for ($_i1107 = 0; $_i1107 < $_size1103; ++$_i1107) + $_size1124 = 0; + $_etype1127 = 0; + $xfer += $input->readListBegin($_etype1127, $_size1124); + for ($_i1128 = 0; $_i1128 < $_size1124; ++$_i1128) { - $elem1108 = null; - $xfer += $input->readString($elem1108); - $this->part_vals []= $elem1108; + $elem1129 = null; + $xfer += $input->readString($elem1129); + $this->part_vals []= $elem1129; } $xfer += $input->readListEnd(); } else { @@ -31999,9 +32358,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1109) + foreach ($this->part_vals as $iter1130) { - $xfer += $output->writeString($iter1109); + $xfer += $output->writeString($iter1130); } } $output->writeListEnd(); @@ -32186,14 +32545,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1110 = 0; - $_etype1113 = 0; - $xfer += $input->readListBegin($_etype1113, $_size1110); - for ($_i1114 = 0; $_i1114 < $_size1110; ++$_i1114) + $_size1131 = 0; + $_etype1134 = 0; + $xfer += $input->readListBegin($_etype1134, $_size1131); + for ($_i1135 = 0; $_i1135 < $_size1131; ++$_i1135) { - $elem1115 = null; - $xfer += $input->readString($elem1115); - $this->part_vals []= $elem1115; + $elem1136 = null; + $xfer += $input->readString($elem1136); + $this->part_vals []= $elem1136; } $xfer += $input->readListEnd(); } else { @@ -32228,9 +32587,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1116) + foreach ($this->part_vals as $iter1137) { - $xfer += $output->writeString($iter1116); + $xfer += $output->writeString($iter1137); } } $output->writeListEnd(); @@ -32684,14 +33043,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1117 = 0; - $_etype1120 = 0; - $xfer += $input->readListBegin($_etype1120, $_size1117); - for ($_i1121 = 0; $_i1121 < $_size1117; ++$_i1121) + $_size1138 = 0; + $_etype1141 = 0; + $xfer += $input->readListBegin($_etype1141, $_size1138); + for ($_i1142 = 0; $_i1142 < $_size1138; ++$_i1142) { - $elem1122 = null; - $xfer += $input->readString($elem1122); - $this->success []= $elem1122; + $elem1143 = null; + $xfer += $input->readString($elem1143); + $this->success []= $elem1143; } $xfer += $input->readListEnd(); } else { @@ -32727,9 +33086,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1123) + foreach ($this->success as $iter1144) { - $xfer += $output->writeString($iter1123); + $xfer += $output->writeString($iter1144); } } $output->writeListEnd(); @@ -32889,17 +33248,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size1124 = 0; - $_ktype1125 = 0; - $_vtype1126 = 0; - $xfer += $input->readMapBegin($_ktype1125, $_vtype1126, $_size1124); - for ($_i1128 = 0; $_i1128 < $_size1124; ++$_i1128) + $_size1145 = 0; + $_ktype1146 = 0; + $_vtype1147 = 0; + $xfer += $input->readMapBegin($_ktype1146, $_vtype1147, $_size1145); + for ($_i1149 = 0; $_i1149 < $_size1145; ++$_i1149) { - $key1129 = ''; - $val1130 = ''; - $xfer += $input->readString($key1129); - $xfer += $input->readString($val1130); - $this->success[$key1129] = $val1130; + $key1150 = ''; + $val1151 = ''; + $xfer += $input->readString($key1150); + $xfer += $input->readString($val1151); + $this->success[$key1150] = $val1151; } $xfer += $input->readMapEnd(); } else { @@ -32935,10 +33294,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter1131 => $viter1132) + foreach ($this->success as $kiter1152 => $viter1153) { - $xfer += $output->writeString($kiter1131); - $xfer += $output->writeString($viter1132); + $xfer += $output->writeString($kiter1152); + $xfer += $output->writeString($viter1153); } } $output->writeMapEnd(); @@ -33058,17 +33417,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1133 = 0; - $_ktype1134 = 0; - $_vtype1135 = 0; - $xfer += $input->readMapBegin($_ktype1134, $_vtype1135, $_size1133); - for ($_i1137 = 0; $_i1137 < $_size1133; ++$_i1137) + $_size1154 = 0; + $_ktype1155 = 0; + $_vtype1156 = 0; + $xfer += $input->readMapBegin($_ktype1155, $_vtype1156, $_size1154); + for ($_i1158 = 0; $_i1158 < $_size1154; ++$_i1158) { - $key1138 = ''; - $val1139 = ''; - $xfer += $input->readString($key1138); - $xfer += $input->readString($val1139); - $this->part_vals[$key1138] = $val1139; + $key1159 = ''; + $val1160 = ''; + $xfer += $input->readString($key1159); + $xfer += $input->readString($val1160); + $this->part_vals[$key1159] = $val1160; } $xfer += $input->readMapEnd(); } else { @@ -33113,10 +33472,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1140 => $viter1141) + foreach ($this->part_vals as $kiter1161 => $viter1162) { - $xfer += $output->writeString($kiter1140); - $xfer += $output->writeString($viter1141); + $xfer += $output->writeString($kiter1161); + $xfer += $output->writeString($viter1162); } } $output->writeMapEnd(); @@ -33438,17 +33797,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1142 = 0; - $_ktype1143 = 0; - $_vtype1144 = 0; - $xfer += $input->readMapBegin($_ktype1143, $_vtype1144, $_size1142); - for ($_i1146 = 0; $_i1146 < $_size1142; ++$_i1146) + $_size1163 = 0; + $_ktype1164 = 0; + $_vtype1165 = 0; + $xfer += $input->readMapBegin($_ktype1164, $_vtype1165, $_size1163); + for ($_i1167 = 0; $_i1167 < $_size1163; ++$_i1167) { - $key1147 = ''; - $val1148 = ''; - $xfer += $input->readString($key1147); - $xfer += $input->readString($val1148); - $this->part_vals[$key1147] = $val1148; + $key1168 = ''; + $val1169 = ''; + $xfer += $input->readString($key1168); + $xfer += $input->readString($val1169); + $this->part_vals[$key1168] = $val1169; } $xfer += $input->readMapEnd(); } else { @@ -33493,10 +33852,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1149 => $viter1150) + foreach ($this->part_vals as $kiter1170 => $viter1171) { - $xfer += $output->writeString($kiter1149); - $xfer += $output->writeString($viter1150); + $xfer += $output->writeString($kiter1170); + $xfer += $output->writeString($viter1171); } } $output->writeMapEnd(); @@ -34970,15 +35329,15 @@ class ThriftHiveMetastore_get_indexes_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1151 = 0; - $_etype1154 = 0; - $xfer += $input->readListBegin($_etype1154, $_size1151); - for ($_i1155 = 0; $_i1155 < $_size1151; ++$_i1155) + $_size1172 = 0; + $_etype1175 = 0; + $xfer += $input->readListBegin($_etype1175, $_size1172); + for ($_i1176 = 0; $_i1176 < $_size1172; ++$_i1176) { - $elem1156 = null; - $elem1156 = new \metastore\Index(); - $xfer += $elem1156->read($input); - $this->success []= $elem1156; + $elem1177 = null; + $elem1177 = new \metastore\Index(); + $xfer += $elem1177->read($input); + $this->success []= $elem1177; } $xfer += $input->readListEnd(); } else { @@ -35022,9 +35381,9 @@ class ThriftHiveMetastore_get_indexes_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1157) + foreach ($this->success as $iter1178) { - $xfer += $iter1157->write($output); + $xfer += $iter1178->write($output); } } $output->writeListEnd(); @@ -35231,14 +35590,14 @@ class ThriftHiveMetastore_get_index_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1158 = 0; - $_etype1161 = 0; - $xfer += $input->readListBegin($_etype1161, $_size1158); - for ($_i1162 = 0; $_i1162 < $_size1158; ++$_i1162) + $_size1179 = 0; + $_etype1182 = 0; + $xfer += $input->readListBegin($_etype1182, $_size1179); + for ($_i1183 = 0; $_i1183 < $_size1179; ++$_i1183) { - $elem1163 = null; - $xfer += $input->readString($elem1163); - $this->success []= $elem1163; + $elem1184 = null; + $xfer += $input->readString($elem1184); + $this->success []= $elem1184; } $xfer += $input->readListEnd(); } else { @@ -35274,9 +35633,9 @@ class ThriftHiveMetastore_get_index_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1164) + foreach ($this->success as $iter1185) { - $xfer += $output->writeString($iter1164); + $xfer += $output->writeString($iter1185); } } $output->writeListEnd(); @@ -36135,6 +36494,216 @@ class ThriftHiveMetastore_get_not_null_constraints_result { } +class ThriftHiveMetastore_get_default_constraints_args { + static $_TSPEC; + + /** + * @var \metastore\DefaultConstraintsRequest + */ + public $request = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'request', + 'type' => TType::STRUCT, + 'class' => '\metastore\DefaultConstraintsRequest', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['request'])) { + $this->request = $vals['request']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_default_constraints_args'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRUCT) { + $this->request = new \metastore\DefaultConstraintsRequest(); + $xfer += $this->request->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_default_constraints_args'); + if ($this->request !== null) { + if (!is_object($this->request)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('request', TType::STRUCT, 1); + $xfer += $this->request->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_default_constraints_result { + static $_TSPEC; + + /** + * @var \metastore\DefaultConstraintsResponse + */ + public $success = null; + /** + * @var \metastore\MetaException + */ + public $o1 = null; + /** + * @var \metastore\NoSuchObjectException + */ + public $o2 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::STRUCT, + 'class' => '\metastore\DefaultConstraintsResponse', + ), + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', + ), + 2 => array( + 'var' => 'o2', + 'type' => TType::STRUCT, + 'class' => '\metastore\NoSuchObjectException', + ), + ); + } + 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']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_default_constraints_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\DefaultConstraintsResponse(); + $xfer += $this->success->read($input); + } 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\NoSuchObjectException(); + $xfer += $this->o2->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_default_constraints_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(); + } + 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(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class ThriftHiveMetastore_update_table_column_statistics_args { static $_TSPEC; @@ -39590,14 +40159,14 @@ class ThriftHiveMetastore_get_functions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1165 = 0; - $_etype1168 = 0; - $xfer += $input->readListBegin($_etype1168, $_size1165); - for ($_i1169 = 0; $_i1169 < $_size1165; ++$_i1169) + $_size1186 = 0; + $_etype1189 = 0; + $xfer += $input->readListBegin($_etype1189, $_size1186); + for ($_i1190 = 0; $_i1190 < $_size1186; ++$_i1190) { - $elem1170 = null; - $xfer += $input->readString($elem1170); - $this->success []= $elem1170; + $elem1191 = null; + $xfer += $input->readString($elem1191); + $this->success []= $elem1191; } $xfer += $input->readListEnd(); } else { @@ -39633,9 +40202,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1171) + foreach ($this->success as $iter1192) { - $xfer += $output->writeString($iter1171); + $xfer += $output->writeString($iter1192); } } $output->writeListEnd(); @@ -40504,14 +41073,14 @@ class ThriftHiveMetastore_get_role_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1172 = 0; - $_etype1175 = 0; - $xfer += $input->readListBegin($_etype1175, $_size1172); - for ($_i1176 = 0; $_i1176 < $_size1172; ++$_i1176) + $_size1193 = 0; + $_etype1196 = 0; + $xfer += $input->readListBegin($_etype1196, $_size1193); + for ($_i1197 = 0; $_i1197 < $_size1193; ++$_i1197) { - $elem1177 = null; - $xfer += $input->readString($elem1177); - $this->success []= $elem1177; + $elem1198 = null; + $xfer += $input->readString($elem1198); + $this->success []= $elem1198; } $xfer += $input->readListEnd(); } else { @@ -40547,9 +41116,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1178) + foreach ($this->success as $iter1199) { - $xfer += $output->writeString($iter1178); + $xfer += $output->writeString($iter1199); } } $output->writeListEnd(); @@ -41240,15 +41809,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1179 = 0; - $_etype1182 = 0; - $xfer += $input->readListBegin($_etype1182, $_size1179); - for ($_i1183 = 0; $_i1183 < $_size1179; ++$_i1183) + $_size1200 = 0; + $_etype1203 = 0; + $xfer += $input->readListBegin($_etype1203, $_size1200); + for ($_i1204 = 0; $_i1204 < $_size1200; ++$_i1204) { - $elem1184 = null; - $elem1184 = new \metastore\Role(); - $xfer += $elem1184->read($input); - $this->success []= $elem1184; + $elem1205 = null; + $elem1205 = new \metastore\Role(); + $xfer += $elem1205->read($input); + $this->success []= $elem1205; } $xfer += $input->readListEnd(); } else { @@ -41284,9 +41853,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1185) + foreach ($this->success as $iter1206) { - $xfer += $iter1185->write($output); + $xfer += $iter1206->write($output); } } $output->writeListEnd(); @@ -41948,14 +42517,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1186 = 0; - $_etype1189 = 0; - $xfer += $input->readListBegin($_etype1189, $_size1186); - for ($_i1190 = 0; $_i1190 < $_size1186; ++$_i1190) + $_size1207 = 0; + $_etype1210 = 0; + $xfer += $input->readListBegin($_etype1210, $_size1207); + for ($_i1211 = 0; $_i1211 < $_size1207; ++$_i1211) { - $elem1191 = null; - $xfer += $input->readString($elem1191); - $this->group_names []= $elem1191; + $elem1212 = null; + $xfer += $input->readString($elem1212); + $this->group_names []= $elem1212; } $xfer += $input->readListEnd(); } else { @@ -41996,9 +42565,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1192) + foreach ($this->group_names as $iter1213) { - $xfer += $output->writeString($iter1192); + $xfer += $output->writeString($iter1213); } } $output->writeListEnd(); @@ -42306,15 +42875,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1193 = 0; - $_etype1196 = 0; - $xfer += $input->readListBegin($_etype1196, $_size1193); - for ($_i1197 = 0; $_i1197 < $_size1193; ++$_i1197) + $_size1214 = 0; + $_etype1217 = 0; + $xfer += $input->readListBegin($_etype1217, $_size1214); + for ($_i1218 = 0; $_i1218 < $_size1214; ++$_i1218) { - $elem1198 = null; - $elem1198 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem1198->read($input); - $this->success []= $elem1198; + $elem1219 = null; + $elem1219 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem1219->read($input); + $this->success []= $elem1219; } $xfer += $input->readListEnd(); } else { @@ -42350,9 +42919,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1199) + foreach ($this->success as $iter1220) { - $xfer += $iter1199->write($output); + $xfer += $iter1220->write($output); } } $output->writeListEnd(); @@ -42984,14 +43553,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1200 = 0; - $_etype1203 = 0; - $xfer += $input->readListBegin($_etype1203, $_size1200); - for ($_i1204 = 0; $_i1204 < $_size1200; ++$_i1204) + $_size1221 = 0; + $_etype1224 = 0; + $xfer += $input->readListBegin($_etype1224, $_size1221); + for ($_i1225 = 0; $_i1225 < $_size1221; ++$_i1225) { - $elem1205 = null; - $xfer += $input->readString($elem1205); - $this->group_names []= $elem1205; + $elem1226 = null; + $xfer += $input->readString($elem1226); + $this->group_names []= $elem1226; } $xfer += $input->readListEnd(); } else { @@ -43024,9 +43593,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1206) + foreach ($this->group_names as $iter1227) { - $xfer += $output->writeString($iter1206); + $xfer += $output->writeString($iter1227); } } $output->writeListEnd(); @@ -43102,14 +43671,14 @@ class ThriftHiveMetastore_set_ugi_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1207 = 0; - $_etype1210 = 0; - $xfer += $input->readListBegin($_etype1210, $_size1207); - for ($_i1211 = 0; $_i1211 < $_size1207; ++$_i1211) + $_size1228 = 0; + $_etype1231 = 0; + $xfer += $input->readListBegin($_etype1231, $_size1228); + for ($_i1232 = 0; $_i1232 < $_size1228; ++$_i1232) { - $elem1212 = null; - $xfer += $input->readString($elem1212); - $this->success []= $elem1212; + $elem1233 = null; + $xfer += $input->readString($elem1233); + $this->success []= $elem1233; } $xfer += $input->readListEnd(); } else { @@ -43145,9 +43714,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1213) + foreach ($this->success as $iter1234) { - $xfer += $output->writeString($iter1213); + $xfer += $output->writeString($iter1234); } } $output->writeListEnd(); @@ -44264,14 +44833,14 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1214 = 0; - $_etype1217 = 0; - $xfer += $input->readListBegin($_etype1217, $_size1214); - for ($_i1218 = 0; $_i1218 < $_size1214; ++$_i1218) + $_size1235 = 0; + $_etype1238 = 0; + $xfer += $input->readListBegin($_etype1238, $_size1235); + for ($_i1239 = 0; $_i1239 < $_size1235; ++$_i1239) { - $elem1219 = null; - $xfer += $input->readString($elem1219); - $this->success []= $elem1219; + $elem1240 = null; + $xfer += $input->readString($elem1240); + $this->success []= $elem1240; } $xfer += $input->readListEnd(); } else { @@ -44299,9 +44868,9 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1220) + foreach ($this->success as $iter1241) { - $xfer += $output->writeString($iter1220); + $xfer += $output->writeString($iter1241); } } $output->writeListEnd(); @@ -44940,14 +45509,14 @@ class ThriftHiveMetastore_get_master_keys_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1221 = 0; - $_etype1224 = 0; - $xfer += $input->readListBegin($_etype1224, $_size1221); - for ($_i1225 = 0; $_i1225 < $_size1221; ++$_i1225) + $_size1242 = 0; + $_etype1245 = 0; + $xfer += $input->readListBegin($_etype1245, $_size1242); + for ($_i1246 = 0; $_i1246 < $_size1242; ++$_i1246) { - $elem1226 = null; - $xfer += $input->readString($elem1226); - $this->success []= $elem1226; + $elem1247 = null; + $xfer += $input->readString($elem1247); + $this->success []= $elem1247; } $xfer += $input->readListEnd(); } else { @@ -44975,9 +45544,9 @@ class ThriftHiveMetastore_get_master_keys_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1227) + foreach ($this->success as $iter1248) { - $xfer += $output->writeString($iter1227); + $xfer += $output->writeString($iter1248); } } $output->writeListEnd(); diff --git a/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php b/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php index e76eb24b07..8412028512 100644 --- a/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php +++ b/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php @@ -1474,6 +1474,242 @@ class SQLNotNullConstraint { } +class SQLDefaultConstraint { + static $_TSPEC; + + /** + * @var string + */ + public $table_db = null; + /** + * @var string + */ + public $table_name = null; + /** + * @var string + */ + public $column_name = null; + /** + * @var string + */ + public $default_value = null; + /** + * @var string + */ + public $dc_name = null; + /** + * @var bool + */ + public $enable_cstr = null; + /** + * @var bool + */ + public $validate_cstr = null; + /** + * @var bool + */ + public $rely_cstr = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'table_db', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'table_name', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'column_name', + 'type' => TType::STRING, + ), + 4 => array( + 'var' => 'default_value', + 'type' => TType::STRING, + ), + 5 => array( + 'var' => 'dc_name', + 'type' => TType::STRING, + ), + 6 => array( + 'var' => 'enable_cstr', + 'type' => TType::BOOL, + ), + 7 => array( + 'var' => 'validate_cstr', + 'type' => TType::BOOL, + ), + 8 => array( + 'var' => 'rely_cstr', + 'type' => TType::BOOL, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['table_db'])) { + $this->table_db = $vals['table_db']; + } + if (isset($vals['table_name'])) { + $this->table_name = $vals['table_name']; + } + if (isset($vals['column_name'])) { + $this->column_name = $vals['column_name']; + } + if (isset($vals['default_value'])) { + $this->default_value = $vals['default_value']; + } + if (isset($vals['dc_name'])) { + $this->dc_name = $vals['dc_name']; + } + if (isset($vals['enable_cstr'])) { + $this->enable_cstr = $vals['enable_cstr']; + } + if (isset($vals['validate_cstr'])) { + $this->validate_cstr = $vals['validate_cstr']; + } + if (isset($vals['rely_cstr'])) { + $this->rely_cstr = $vals['rely_cstr']; + } + } + } + + public function getName() { + return 'SQLDefaultConstraint'; + } + + 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->table_db); + } 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::STRING) { + $xfer += $input->readString($this->column_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->default_value); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->dc_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->enable_cstr); + } else { + $xfer += $input->skip($ftype); + } + break; + case 7: + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->validate_cstr); + } else { + $xfer += $input->skip($ftype); + } + break; + case 8: + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->rely_cstr); + } 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('SQLDefaultConstraint'); + if ($this->table_db !== null) { + $xfer += $output->writeFieldBegin('table_db', TType::STRING, 1); + $xfer += $output->writeString($this->table_db); + $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->column_name !== null) { + $xfer += $output->writeFieldBegin('column_name', TType::STRING, 3); + $xfer += $output->writeString($this->column_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->default_value !== null) { + $xfer += $output->writeFieldBegin('default_value', TType::STRING, 4); + $xfer += $output->writeString($this->default_value); + $xfer += $output->writeFieldEnd(); + } + if ($this->dc_name !== null) { + $xfer += $output->writeFieldBegin('dc_name', TType::STRING, 5); + $xfer += $output->writeString($this->dc_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->enable_cstr !== null) { + $xfer += $output->writeFieldBegin('enable_cstr', TType::BOOL, 6); + $xfer += $output->writeBool($this->enable_cstr); + $xfer += $output->writeFieldEnd(); + } + if ($this->validate_cstr !== null) { + $xfer += $output->writeFieldBegin('validate_cstr', TType::BOOL, 7); + $xfer += $output->writeBool($this->validate_cstr); + $xfer += $output->writeFieldEnd(); + } + if ($this->rely_cstr !== null) { + $xfer += $output->writeFieldBegin('rely_cstr', TType::BOOL, 8); + $xfer += $output->writeBool($this->rely_cstr); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class Type { static $_TSPEC; @@ -10124,54 +10360,43 @@ class NotNullConstraintsResponse { } -class DropConstraintRequest { +class DefaultConstraintsRequest { static $_TSPEC; /** * @var string */ - public $dbname = null; - /** - * @var string - */ - public $tablename = null; + public $db_name = null; /** * @var string */ - public $constraintname = null; + public $tbl_name = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'dbname', + 'var' => 'db_name', 'type' => TType::STRING, ), 2 => array( - 'var' => 'tablename', - 'type' => TType::STRING, - ), - 3 => array( - 'var' => 'constraintname', + 'var' => 'tbl_name', 'type' => TType::STRING, ), ); } if (is_array($vals)) { - if (isset($vals['dbname'])) { - $this->dbname = $vals['dbname']; - } - if (isset($vals['tablename'])) { - $this->tablename = $vals['tablename']; + if (isset($vals['db_name'])) { + $this->db_name = $vals['db_name']; } - if (isset($vals['constraintname'])) { - $this->constraintname = $vals['constraintname']; + if (isset($vals['tbl_name'])) { + $this->tbl_name = $vals['tbl_name']; } } } public function getName() { - return 'DropConstraintRequest'; + return 'DefaultConstraintsRequest'; } public function read($input) @@ -10191,24 +10416,236 @@ class DropConstraintRequest { { case 1: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->dbname); + $xfer += $input->readString($this->db_name); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->tablename); + $xfer += $input->readString($this->tbl_name); } else { $xfer += $input->skip($ftype); } break; - case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->constraintname); - } else { - $xfer += $input->skip($ftype); - } + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('DefaultConstraintsRequest'); + if ($this->db_name !== null) { + $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); + $xfer += $output->writeString($this->db_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->tbl_name !== null) { + $xfer += $output->writeFieldBegin('tbl_name', TType::STRING, 2); + $xfer += $output->writeString($this->tbl_name); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class DefaultConstraintsResponse { + static $_TSPEC; + + /** + * @var \metastore\SQLDefaultConstraint[] + */ + public $defaultConstraints = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'defaultConstraints', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\SQLDefaultConstraint', + ), + ), + ); + } + if (is_array($vals)) { + if (isset($vals['defaultConstraints'])) { + $this->defaultConstraints = $vals['defaultConstraints']; + } + } + } + + public function getName() { + return 'DefaultConstraintsResponse'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::LST) { + $this->defaultConstraints = array(); + $_size313 = 0; + $_etype316 = 0; + $xfer += $input->readListBegin($_etype316, $_size313); + for ($_i317 = 0; $_i317 < $_size313; ++$_i317) + { + $elem318 = null; + $elem318 = new \metastore\SQLDefaultConstraint(); + $xfer += $elem318->read($input); + $this->defaultConstraints []= $elem318; + } + $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('DefaultConstraintsResponse'); + if ($this->defaultConstraints !== null) { + if (!is_array($this->defaultConstraints)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('defaultConstraints', TType::LST, 1); + { + $output->writeListBegin(TType::STRUCT, count($this->defaultConstraints)); + { + foreach ($this->defaultConstraints as $iter319) + { + $xfer += $iter319->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class DropConstraintRequest { + static $_TSPEC; + + /** + * @var string + */ + public $dbname = null; + /** + * @var string + */ + public $tablename = null; + /** + * @var string + */ + public $constraintname = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'dbname', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'tablename', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'constraintname', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['dbname'])) { + $this->dbname = $vals['dbname']; + } + if (isset($vals['tablename'])) { + $this->tablename = $vals['tablename']; + } + if (isset($vals['constraintname'])) { + $this->constraintname = $vals['constraintname']; + } + } + } + + public function getName() { + return 'DropConstraintRequest'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->dbname); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tablename); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->constraintname); + } else { + $xfer += $input->skip($ftype); + } break; default: $xfer += $input->skip($ftype); @@ -10296,15 +10733,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) + $_size320 = 0; + $_etype323 = 0; + $xfer += $input->readListBegin($_etype323, $_size320); + for ($_i324 = 0; $_i324 < $_size320; ++$_i324) { - $elem318 = null; - $elem318 = new \metastore\SQLPrimaryKey(); - $xfer += $elem318->read($input); - $this->primaryKeyCols []= $elem318; + $elem325 = null; + $elem325 = new \metastore\SQLPrimaryKey(); + $xfer += $elem325->read($input); + $this->primaryKeyCols []= $elem325; } $xfer += $input->readListEnd(); } else { @@ -10332,9 +10769,9 @@ class AddPrimaryKeyRequest { { $output->writeListBegin(TType::STRUCT, count($this->primaryKeyCols)); { - foreach ($this->primaryKeyCols as $iter319) + foreach ($this->primaryKeyCols as $iter326) { - $xfer += $iter319->write($output); + $xfer += $iter326->write($output); } } $output->writeListEnd(); @@ -10399,15 +10836,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) + $_size327 = 0; + $_etype330 = 0; + $xfer += $input->readListBegin($_etype330, $_size327); + for ($_i331 = 0; $_i331 < $_size327; ++$_i331) { - $elem325 = null; - $elem325 = new \metastore\SQLForeignKey(); - $xfer += $elem325->read($input); - $this->foreignKeyCols []= $elem325; + $elem332 = null; + $elem332 = new \metastore\SQLForeignKey(); + $xfer += $elem332->read($input); + $this->foreignKeyCols []= $elem332; } $xfer += $input->readListEnd(); } else { @@ -10435,9 +10872,9 @@ class AddForeignKeyRequest { { $output->writeListBegin(TType::STRUCT, count($this->foreignKeyCols)); { - foreach ($this->foreignKeyCols as $iter326) + foreach ($this->foreignKeyCols as $iter333) { - $xfer += $iter326->write($output); + $xfer += $iter333->write($output); } } $output->writeListEnd(); @@ -10502,15 +10939,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) + $_size334 = 0; + $_etype337 = 0; + $xfer += $input->readListBegin($_etype337, $_size334); + for ($_i338 = 0; $_i338 < $_size334; ++$_i338) { - $elem332 = null; - $elem332 = new \metastore\SQLUniqueConstraint(); - $xfer += $elem332->read($input); - $this->uniqueConstraintCols []= $elem332; + $elem339 = null; + $elem339 = new \metastore\SQLUniqueConstraint(); + $xfer += $elem339->read($input); + $this->uniqueConstraintCols []= $elem339; } $xfer += $input->readListEnd(); } else { @@ -10538,9 +10975,9 @@ class AddUniqueConstraintRequest { { $output->writeListBegin(TType::STRUCT, count($this->uniqueConstraintCols)); { - foreach ($this->uniqueConstraintCols as $iter333) + foreach ($this->uniqueConstraintCols as $iter340) { - $xfer += $iter333->write($output); + $xfer += $iter340->write($output); } } $output->writeListEnd(); @@ -10605,15 +11042,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) + $_size341 = 0; + $_etype344 = 0; + $xfer += $input->readListBegin($_etype344, $_size341); + for ($_i345 = 0; $_i345 < $_size341; ++$_i345) { - $elem339 = null; - $elem339 = new \metastore\SQLNotNullConstraint(); - $xfer += $elem339->read($input); - $this->notNullConstraintCols []= $elem339; + $elem346 = null; + $elem346 = new \metastore\SQLNotNullConstraint(); + $xfer += $elem346->read($input); + $this->notNullConstraintCols []= $elem346; } $xfer += $input->readListEnd(); } else { @@ -10641,9 +11078,112 @@ class AddNotNullConstraintRequest { { $output->writeListBegin(TType::STRUCT, count($this->notNullConstraintCols)); { - foreach ($this->notNullConstraintCols as $iter340) + foreach ($this->notNullConstraintCols as $iter347) { - $xfer += $iter340->write($output); + $xfer += $iter347->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class AddDefaultConstraintRequest { + static $_TSPEC; + + /** + * @var \metastore\SQLDefaultConstraint[] + */ + public $defaultConstraintCols = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'defaultConstraintCols', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\SQLDefaultConstraint', + ), + ), + ); + } + if (is_array($vals)) { + if (isset($vals['defaultConstraintCols'])) { + $this->defaultConstraintCols = $vals['defaultConstraintCols']; + } + } + } + + public function getName() { + return 'AddDefaultConstraintRequest'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::LST) { + $this->defaultConstraintCols = array(); + $_size348 = 0; + $_etype351 = 0; + $xfer += $input->readListBegin($_etype351, $_size348); + for ($_i352 = 0; $_i352 < $_size348; ++$_i352) + { + $elem353 = null; + $elem353 = new \metastore\SQLDefaultConstraint(); + $xfer += $elem353->read($input); + $this->defaultConstraintCols []= $elem353; + } + $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('AddDefaultConstraintRequest'); + if ($this->defaultConstraintCols !== null) { + if (!is_array($this->defaultConstraintCols)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('defaultConstraintCols', TType::LST, 1); + { + $output->writeListBegin(TType::STRUCT, count($this->defaultConstraintCols)); + { + foreach ($this->defaultConstraintCols as $iter354) + { + $xfer += $iter354->write($output); } } $output->writeListEnd(); @@ -10719,15 +11259,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) + $_size355 = 0; + $_etype358 = 0; + $xfer += $input->readListBegin($_etype358, $_size355); + for ($_i359 = 0; $_i359 < $_size355; ++$_i359) { - $elem346 = null; - $elem346 = new \metastore\Partition(); - $xfer += $elem346->read($input); - $this->partitions []= $elem346; + $elem360 = null; + $elem360 = new \metastore\Partition(); + $xfer += $elem360->read($input); + $this->partitions []= $elem360; } $xfer += $input->readListEnd(); } else { @@ -10762,9 +11302,9 @@ class PartitionsByExprResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter347) + foreach ($this->partitions as $iter361) { - $xfer += $iter347->write($output); + $xfer += $iter361->write($output); } } $output->writeListEnd(); @@ -11001,15 +11541,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) + $_size362 = 0; + $_etype365 = 0; + $xfer += $input->readListBegin($_etype365, $_size362); + for ($_i366 = 0; $_i366 < $_size362; ++$_i366) { - $elem353 = null; - $elem353 = new \metastore\ColumnStatisticsObj(); - $xfer += $elem353->read($input); - $this->tableStats []= $elem353; + $elem367 = null; + $elem367 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem367->read($input); + $this->tableStats []= $elem367; } $xfer += $input->readListEnd(); } else { @@ -11037,9 +11577,9 @@ class TableStatsResult { { $output->writeListBegin(TType::STRUCT, count($this->tableStats)); { - foreach ($this->tableStats as $iter354) + foreach ($this->tableStats as $iter368) { - $xfer += $iter354->write($output); + $xfer += $iter368->write($output); } } $output->writeListEnd(); @@ -11112,28 +11652,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) + $_size369 = 0; + $_ktype370 = 0; + $_vtype371 = 0; + $xfer += $input->readMapBegin($_ktype370, $_vtype371, $_size369); + for ($_i373 = 0; $_i373 < $_size369; ++$_i373) { - $key360 = ''; - $val361 = array(); - $xfer += $input->readString($key360); - $val361 = array(); - $_size362 = 0; - $_etype365 = 0; - $xfer += $input->readListBegin($_etype365, $_size362); - for ($_i366 = 0; $_i366 < $_size362; ++$_i366) + $key374 = ''; + $val375 = array(); + $xfer += $input->readString($key374); + $val375 = array(); + $_size376 = 0; + $_etype379 = 0; + $xfer += $input->readListBegin($_etype379, $_size376); + for ($_i380 = 0; $_i380 < $_size376; ++$_i380) { - $elem367 = null; - $elem367 = new \metastore\ColumnStatisticsObj(); - $xfer += $elem367->read($input); - $val361 []= $elem367; + $elem381 = null; + $elem381 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem381->read($input); + $val375 []= $elem381; } $xfer += $input->readListEnd(); - $this->partStats[$key360] = $val361; + $this->partStats[$key374] = $val375; } $xfer += $input->readMapEnd(); } else { @@ -11161,15 +11701,15 @@ class PartitionsStatsResult { { $output->writeMapBegin(TType::STRING, TType::LST, count($this->partStats)); { - foreach ($this->partStats as $kiter368 => $viter369) + foreach ($this->partStats as $kiter382 => $viter383) { - $xfer += $output->writeString($kiter368); + $xfer += $output->writeString($kiter382); { - $output->writeListBegin(TType::STRUCT, count($viter369)); + $output->writeListBegin(TType::STRUCT, count($viter383)); { - foreach ($viter369 as $iter370) + foreach ($viter383 as $iter384) { - $xfer += $iter370->write($output); + $xfer += $iter384->write($output); } } $output->writeListEnd(); @@ -11273,14 +11813,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) + $_size385 = 0; + $_etype388 = 0; + $xfer += $input->readListBegin($_etype388, $_size385); + for ($_i389 = 0; $_i389 < $_size385; ++$_i389) { - $elem376 = null; - $xfer += $input->readString($elem376); - $this->colNames []= $elem376; + $elem390 = null; + $xfer += $input->readString($elem390); + $this->colNames []= $elem390; } $xfer += $input->readListEnd(); } else { @@ -11318,9 +11858,9 @@ class TableStatsRequest { { $output->writeListBegin(TType::STRING, count($this->colNames)); { - foreach ($this->colNames as $iter377) + foreach ($this->colNames as $iter391) { - $xfer += $output->writeString($iter377); + $xfer += $output->writeString($iter391); } } $output->writeListEnd(); @@ -11435,14 +11975,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) + $_size392 = 0; + $_etype395 = 0; + $xfer += $input->readListBegin($_etype395, $_size392); + for ($_i396 = 0; $_i396 < $_size392; ++$_i396) { - $elem383 = null; - $xfer += $input->readString($elem383); - $this->colNames []= $elem383; + $elem397 = null; + $xfer += $input->readString($elem397); + $this->colNames []= $elem397; } $xfer += $input->readListEnd(); } else { @@ -11452,14 +11992,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) + $_size398 = 0; + $_etype401 = 0; + $xfer += $input->readListBegin($_etype401, $_size398); + for ($_i402 = 0; $_i402 < $_size398; ++$_i402) { - $elem389 = null; - $xfer += $input->readString($elem389); - $this->partNames []= $elem389; + $elem403 = null; + $xfer += $input->readString($elem403); + $this->partNames []= $elem403; } $xfer += $input->readListEnd(); } else { @@ -11497,9 +12037,9 @@ class PartitionsStatsRequest { { $output->writeListBegin(TType::STRING, count($this->colNames)); { - foreach ($this->colNames as $iter390) + foreach ($this->colNames as $iter404) { - $xfer += $output->writeString($iter390); + $xfer += $output->writeString($iter404); } } $output->writeListEnd(); @@ -11514,9 +12054,9 @@ class PartitionsStatsRequest { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter391) + foreach ($this->partNames as $iter405) { - $xfer += $output->writeString($iter391); + $xfer += $output->writeString($iter405); } } $output->writeListEnd(); @@ -11581,15 +12121,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) + $_size406 = 0; + $_etype409 = 0; + $xfer += $input->readListBegin($_etype409, $_size406); + for ($_i410 = 0; $_i410 < $_size406; ++$_i410) { - $elem397 = null; - $elem397 = new \metastore\Partition(); - $xfer += $elem397->read($input); - $this->partitions []= $elem397; + $elem411 = null; + $elem411 = new \metastore\Partition(); + $xfer += $elem411->read($input); + $this->partitions []= $elem411; } $xfer += $input->readListEnd(); } else { @@ -11617,9 +12157,9 @@ class AddPartitionsResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter398) + foreach ($this->partitions as $iter412) { - $xfer += $iter398->write($output); + $xfer += $iter412->write($output); } } $output->writeListEnd(); @@ -11742,15 +12282,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) + $_size413 = 0; + $_etype416 = 0; + $xfer += $input->readListBegin($_etype416, $_size413); + for ($_i417 = 0; $_i417 < $_size413; ++$_i417) { - $elem404 = null; - $elem404 = new \metastore\Partition(); - $xfer += $elem404->read($input); - $this->parts []= $elem404; + $elem418 = null; + $elem418 = new \metastore\Partition(); + $xfer += $elem418->read($input); + $this->parts []= $elem418; } $xfer += $input->readListEnd(); } else { @@ -11802,9 +12342,9 @@ class AddPartitionsRequest { { $output->writeListBegin(TType::STRUCT, count($this->parts)); { - foreach ($this->parts as $iter405) + foreach ($this->parts as $iter419) { - $xfer += $iter405->write($output); + $xfer += $iter419->write($output); } } $output->writeListEnd(); @@ -11879,15 +12419,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) + $_size420 = 0; + $_etype423 = 0; + $xfer += $input->readListBegin($_etype423, $_size420); + for ($_i424 = 0; $_i424 < $_size420; ++$_i424) { - $elem411 = null; - $elem411 = new \metastore\Partition(); - $xfer += $elem411->read($input); - $this->partitions []= $elem411; + $elem425 = null; + $elem425 = new \metastore\Partition(); + $xfer += $elem425->read($input); + $this->partitions []= $elem425; } $xfer += $input->readListEnd(); } else { @@ -11915,9 +12455,9 @@ class DropPartitionsResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter412) + foreach ($this->partitions as $iter426) { - $xfer += $iter412->write($output); + $xfer += $iter426->write($output); } } $output->writeListEnd(); @@ -12095,14 +12635,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) + $_size427 = 0; + $_etype430 = 0; + $xfer += $input->readListBegin($_etype430, $_size427); + for ($_i431 = 0; $_i431 < $_size427; ++$_i431) { - $elem418 = null; - $xfer += $input->readString($elem418); - $this->names []= $elem418; + $elem432 = null; + $xfer += $input->readString($elem432); + $this->names []= $elem432; } $xfer += $input->readListEnd(); } else { @@ -12112,15 +12652,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) + $_size433 = 0; + $_etype436 = 0; + $xfer += $input->readListBegin($_etype436, $_size433); + for ($_i437 = 0; $_i437 < $_size433; ++$_i437) { - $elem424 = null; - $elem424 = new \metastore\DropPartitionsExpr(); - $xfer += $elem424->read($input); - $this->exprs []= $elem424; + $elem438 = null; + $elem438 = new \metastore\DropPartitionsExpr(); + $xfer += $elem438->read($input); + $this->exprs []= $elem438; } $xfer += $input->readListEnd(); } else { @@ -12148,9 +12688,9 @@ class RequestPartsSpec { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter425) + foreach ($this->names as $iter439) { - $xfer += $output->writeString($iter425); + $xfer += $output->writeString($iter439); } } $output->writeListEnd(); @@ -12165,9 +12705,9 @@ class RequestPartsSpec { { $output->writeListBegin(TType::STRUCT, count($this->exprs)); { - foreach ($this->exprs as $iter426) + foreach ($this->exprs as $iter440) { - $xfer += $iter426->write($output); + $xfer += $iter440->write($output); } } $output->writeListEnd(); @@ -12574,15 +13114,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) + $_size441 = 0; + $_etype444 = 0; + $xfer += $input->readListBegin($_etype444, $_size441); + for ($_i445 = 0; $_i445 < $_size441; ++$_i445) { - $elem432 = null; - $elem432 = new \metastore\FieldSchema(); - $xfer += $elem432->read($input); - $this->partitionKeys []= $elem432; + $elem446 = null; + $elem446 = new \metastore\FieldSchema(); + $xfer += $elem446->read($input); + $this->partitionKeys []= $elem446; } $xfer += $input->readListEnd(); } else { @@ -12606,15 +13146,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) + $_size447 = 0; + $_etype450 = 0; + $xfer += $input->readListBegin($_etype450, $_size447); + for ($_i451 = 0; $_i451 < $_size447; ++$_i451) { - $elem438 = null; - $elem438 = new \metastore\FieldSchema(); - $xfer += $elem438->read($input); - $this->partitionOrder []= $elem438; + $elem452 = null; + $elem452 = new \metastore\FieldSchema(); + $xfer += $elem452->read($input); + $this->partitionOrder []= $elem452; } $xfer += $input->readListEnd(); } else { @@ -12666,9 +13206,9 @@ class PartitionValuesRequest { { $output->writeListBegin(TType::STRUCT, count($this->partitionKeys)); { - foreach ($this->partitionKeys as $iter439) + foreach ($this->partitionKeys as $iter453) { - $xfer += $iter439->write($output); + $xfer += $iter453->write($output); } } $output->writeListEnd(); @@ -12693,9 +13233,9 @@ class PartitionValuesRequest { { $output->writeListBegin(TType::STRUCT, count($this->partitionOrder)); { - foreach ($this->partitionOrder as $iter440) + foreach ($this->partitionOrder as $iter454) { - $xfer += $iter440->write($output); + $xfer += $iter454->write($output); } } $output->writeListEnd(); @@ -12769,14 +13309,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) + $_size455 = 0; + $_etype458 = 0; + $xfer += $input->readListBegin($_etype458, $_size455); + for ($_i459 = 0; $_i459 < $_size455; ++$_i459) { - $elem446 = null; - $xfer += $input->readString($elem446); - $this->row []= $elem446; + $elem460 = null; + $xfer += $input->readString($elem460); + $this->row []= $elem460; } $xfer += $input->readListEnd(); } else { @@ -12804,9 +13344,9 @@ class PartitionValuesRow { { $output->writeListBegin(TType::STRING, count($this->row)); { - foreach ($this->row as $iter447) + foreach ($this->row as $iter461) { - $xfer += $output->writeString($iter447); + $xfer += $output->writeString($iter461); } } $output->writeListEnd(); @@ -12871,15 +13411,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) + $_size462 = 0; + $_etype465 = 0; + $xfer += $input->readListBegin($_etype465, $_size462); + for ($_i466 = 0; $_i466 < $_size462; ++$_i466) { - $elem453 = null; - $elem453 = new \metastore\PartitionValuesRow(); - $xfer += $elem453->read($input); - $this->partitionValues []= $elem453; + $elem467 = null; + $elem467 = new \metastore\PartitionValuesRow(); + $xfer += $elem467->read($input); + $this->partitionValues []= $elem467; } $xfer += $input->readListEnd(); } else { @@ -12907,9 +13447,9 @@ class PartitionValuesResponse { { $output->writeListBegin(TType::STRUCT, count($this->partitionValues)); { - foreach ($this->partitionValues as $iter454) + foreach ($this->partitionValues as $iter468) { - $xfer += $iter454->write($output); + $xfer += $iter468->write($output); } } $output->writeListEnd(); @@ -13198,15 +13738,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) + $_size469 = 0; + $_etype472 = 0; + $xfer += $input->readListBegin($_etype472, $_size469); + for ($_i473 = 0; $_i473 < $_size469; ++$_i473) { - $elem460 = null; - $elem460 = new \metastore\ResourceUri(); - $xfer += $elem460->read($input); - $this->resourceUris []= $elem460; + $elem474 = null; + $elem474 = new \metastore\ResourceUri(); + $xfer += $elem474->read($input); + $this->resourceUris []= $elem474; } $xfer += $input->readListEnd(); } else { @@ -13269,9 +13809,9 @@ class Function { { $output->writeListBegin(TType::STRUCT, count($this->resourceUris)); { - foreach ($this->resourceUris as $iter461) + foreach ($this->resourceUris as $iter475) { - $xfer += $iter461->write($output); + $xfer += $iter475->write($output); } } $output->writeListEnd(); @@ -13613,15 +14153,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) + $_size476 = 0; + $_etype479 = 0; + $xfer += $input->readListBegin($_etype479, $_size476); + for ($_i480 = 0; $_i480 < $_size476; ++$_i480) { - $elem467 = null; - $elem467 = new \metastore\TxnInfo(); - $xfer += $elem467->read($input); - $this->open_txns []= $elem467; + $elem481 = null; + $elem481 = new \metastore\TxnInfo(); + $xfer += $elem481->read($input); + $this->open_txns []= $elem481; } $xfer += $input->readListEnd(); } else { @@ -13654,9 +14194,9 @@ class GetOpenTxnsInfoResponse { { $output->writeListBegin(TType::STRUCT, count($this->open_txns)); { - foreach ($this->open_txns as $iter468) + foreach ($this->open_txns as $iter482) { - $xfer += $iter468->write($output); + $xfer += $iter482->write($output); } } $output->writeListEnd(); @@ -13760,14 +14300,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) + $_size483 = 0; + $_etype486 = 0; + $xfer += $input->readListBegin($_etype486, $_size483); + for ($_i487 = 0; $_i487 < $_size483; ++$_i487) { - $elem474 = null; - $xfer += $input->readI64($elem474); - $this->open_txns []= $elem474; + $elem488 = null; + $xfer += $input->readI64($elem488); + $this->open_txns []= $elem488; } $xfer += $input->readListEnd(); } else { @@ -13814,9 +14354,9 @@ class GetOpenTxnsResponse { { $output->writeListBegin(TType::I64, count($this->open_txns)); { - foreach ($this->open_txns as $iter475) + foreach ($this->open_txns as $iter489) { - $xfer += $output->writeI64($iter475); + $xfer += $output->writeI64($iter489); } } $output->writeListEnd(); @@ -14034,14 +14574,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) + $_size490 = 0; + $_etype493 = 0; + $xfer += $input->readListBegin($_etype493, $_size490); + for ($_i494 = 0; $_i494 < $_size490; ++$_i494) { - $elem481 = null; - $xfer += $input->readI64($elem481); - $this->txn_ids []= $elem481; + $elem495 = null; + $xfer += $input->readI64($elem495); + $this->txn_ids []= $elem495; } $xfer += $input->readListEnd(); } else { @@ -14069,9 +14609,9 @@ class OpenTxnsResponse { { $output->writeListBegin(TType::I64, count($this->txn_ids)); { - foreach ($this->txn_ids as $iter482) + foreach ($this->txn_ids as $iter496) { - $xfer += $output->writeI64($iter482); + $xfer += $output->writeI64($iter496); } } $output->writeListEnd(); @@ -14210,14 +14750,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) + $_size497 = 0; + $_etype500 = 0; + $xfer += $input->readListBegin($_etype500, $_size497); + for ($_i501 = 0; $_i501 < $_size497; ++$_i501) { - $elem488 = null; - $xfer += $input->readI64($elem488); - $this->txn_ids []= $elem488; + $elem502 = null; + $xfer += $input->readI64($elem502); + $this->txn_ids []= $elem502; } $xfer += $input->readListEnd(); } else { @@ -14245,9 +14785,9 @@ class AbortTxnsRequest { { $output->writeListBegin(TType::I64, count($this->txn_ids)); { - foreach ($this->txn_ids as $iter489) + foreach ($this->txn_ids as $iter503) { - $xfer += $output->writeI64($iter489); + $xfer += $output->writeI64($iter503); } } $output->writeListEnd(); @@ -14667,15 +15207,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) + $_size504 = 0; + $_etype507 = 0; + $xfer += $input->readListBegin($_etype507, $_size504); + for ($_i508 = 0; $_i508 < $_size504; ++$_i508) { - $elem495 = null; - $elem495 = new \metastore\LockComponent(); - $xfer += $elem495->read($input); - $this->component []= $elem495; + $elem509 = null; + $elem509 = new \metastore\LockComponent(); + $xfer += $elem509->read($input); + $this->component []= $elem509; } $xfer += $input->readListEnd(); } else { @@ -14731,9 +15271,9 @@ class LockRequest { { $output->writeListBegin(TType::STRUCT, count($this->component)); { - foreach ($this->component as $iter496) + foreach ($this->component as $iter510) { - $xfer += $iter496->write($output); + $xfer += $iter510->write($output); } } $output->writeListEnd(); @@ -15676,15 +16216,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) + $_size511 = 0; + $_etype514 = 0; + $xfer += $input->readListBegin($_etype514, $_size511); + for ($_i515 = 0; $_i515 < $_size511; ++$_i515) { - $elem502 = null; - $elem502 = new \metastore\ShowLocksResponseElement(); - $xfer += $elem502->read($input); - $this->locks []= $elem502; + $elem516 = null; + $elem516 = new \metastore\ShowLocksResponseElement(); + $xfer += $elem516->read($input); + $this->locks []= $elem516; } $xfer += $input->readListEnd(); } else { @@ -15712,9 +16252,9 @@ class ShowLocksResponse { { $output->writeListBegin(TType::STRUCT, count($this->locks)); { - foreach ($this->locks as $iter503) + foreach ($this->locks as $iter517) { - $xfer += $iter503->write($output); + $xfer += $iter517->write($output); } } $output->writeListEnd(); @@ -15989,17 +16529,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) + $_size518 = 0; + $_etype521 = 0; + $xfer += $input->readSetBegin($_etype521, $_size518); + for ($_i522 = 0; $_i522 < $_size518; ++$_i522) { - $elem509 = null; - $xfer += $input->readI64($elem509); - if (is_scalar($elem509)) { - $this->aborted[$elem509] = true; + $elem523 = null; + $xfer += $input->readI64($elem523); + if (is_scalar($elem523)) { + $this->aborted[$elem523] = true; } else { - $this->aborted []= $elem509; + $this->aborted []= $elem523; } } $xfer += $input->readSetEnd(); @@ -16010,17 +16550,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) + $_size524 = 0; + $_etype527 = 0; + $xfer += $input->readSetBegin($_etype527, $_size524); + for ($_i528 = 0; $_i528 < $_size524; ++$_i528) { - $elem515 = null; - $xfer += $input->readI64($elem515); - if (is_scalar($elem515)) { - $this->nosuch[$elem515] = true; + $elem529 = null; + $xfer += $input->readI64($elem529); + if (is_scalar($elem529)) { + $this->nosuch[$elem529] = true; } else { - $this->nosuch []= $elem515; + $this->nosuch []= $elem529; } } $xfer += $input->readSetEnd(); @@ -16049,12 +16589,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->aborted)); { - foreach ($this->aborted as $iter516 => $iter517) + foreach ($this->aborted as $iter530 => $iter531) { - if (is_scalar($iter517)) { - $xfer += $output->writeI64($iter516); + if (is_scalar($iter531)) { + $xfer += $output->writeI64($iter530); } else { - $xfer += $output->writeI64($iter517); + $xfer += $output->writeI64($iter531); } } } @@ -16070,12 +16610,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->nosuch)); { - foreach ($this->nosuch as $iter518 => $iter519) + foreach ($this->nosuch as $iter532 => $iter533) { - if (is_scalar($iter519)) { - $xfer += $output->writeI64($iter518); + if (is_scalar($iter533)) { + $xfer += $output->writeI64($iter532); } else { - $xfer += $output->writeI64($iter519); + $xfer += $output->writeI64($iter533); } } } @@ -16234,17 +16774,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) + $_size534 = 0; + $_ktype535 = 0; + $_vtype536 = 0; + $xfer += $input->readMapBegin($_ktype535, $_vtype536, $_size534); + for ($_i538 = 0; $_i538 < $_size534; ++$_i538) { - $key525 = ''; - $val526 = ''; - $xfer += $input->readString($key525); - $xfer += $input->readString($val526); - $this->properties[$key525] = $val526; + $key539 = ''; + $val540 = ''; + $xfer += $input->readString($key539); + $xfer += $input->readString($val540); + $this->properties[$key539] = $val540; } $xfer += $input->readMapEnd(); } else { @@ -16297,10 +16837,10 @@ class CompactionRequest { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); { - foreach ($this->properties as $kiter527 => $viter528) + foreach ($this->properties as $kiter541 => $viter542) { - $xfer += $output->writeString($kiter527); - $xfer += $output->writeString($viter528); + $xfer += $output->writeString($kiter541); + $xfer += $output->writeString($viter542); } } $output->writeMapEnd(); @@ -16887,15 +17427,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) + $_size543 = 0; + $_etype546 = 0; + $xfer += $input->readListBegin($_etype546, $_size543); + for ($_i547 = 0; $_i547 < $_size543; ++$_i547) { - $elem534 = null; - $elem534 = new \metastore\ShowCompactResponseElement(); - $xfer += $elem534->read($input); - $this->compacts []= $elem534; + $elem548 = null; + $elem548 = new \metastore\ShowCompactResponseElement(); + $xfer += $elem548->read($input); + $this->compacts []= $elem548; } $xfer += $input->readListEnd(); } else { @@ -16923,9 +17463,9 @@ class ShowCompactResponse { { $output->writeListBegin(TType::STRUCT, count($this->compacts)); { - foreach ($this->compacts as $iter535) + foreach ($this->compacts as $iter549) { - $xfer += $iter535->write($output); + $xfer += $iter549->write($output); } } $output->writeListEnd(); @@ -17054,14 +17594,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) + $_size550 = 0; + $_etype553 = 0; + $xfer += $input->readListBegin($_etype553, $_size550); + for ($_i554 = 0; $_i554 < $_size550; ++$_i554) { - $elem541 = null; - $xfer += $input->readString($elem541); - $this->partitionnames []= $elem541; + $elem555 = null; + $xfer += $input->readString($elem555); + $this->partitionnames []= $elem555; } $xfer += $input->readListEnd(); } else { @@ -17111,9 +17651,9 @@ class AddDynamicPartitions { { $output->writeListBegin(TType::STRING, count($this->partitionnames)); { - foreach ($this->partitionnames as $iter542) + foreach ($this->partitionnames as $iter556) { - $xfer += $output->writeString($iter542); + $xfer += $output->writeString($iter556); } } $output->writeListEnd(); @@ -17419,17 +17959,17 @@ class CreationMetadata { case 3: if ($ftype == TType::SET) { $this->tablesUsed = array(); - $_size543 = 0; - $_etype546 = 0; - $xfer += $input->readSetBegin($_etype546, $_size543); - for ($_i547 = 0; $_i547 < $_size543; ++$_i547) + $_size557 = 0; + $_etype560 = 0; + $xfer += $input->readSetBegin($_etype560, $_size557); + for ($_i561 = 0; $_i561 < $_size557; ++$_i561) { - $elem548 = null; - $xfer += $input->readString($elem548); - if (is_scalar($elem548)) { - $this->tablesUsed[$elem548] = true; + $elem562 = null; + $xfer += $input->readString($elem562); + if (is_scalar($elem562)) { + $this->tablesUsed[$elem562] = true; } else { - $this->tablesUsed []= $elem548; + $this->tablesUsed []= $elem562; } } $xfer += $input->readSetEnd(); @@ -17475,12 +18015,12 @@ class CreationMetadata { { $output->writeSetBegin(TType::STRING, count($this->tablesUsed)); { - foreach ($this->tablesUsed as $iter549 => $iter550) + foreach ($this->tablesUsed as $iter563 => $iter564) { - if (is_scalar($iter550)) { - $xfer += $output->writeString($iter549); + if (is_scalar($iter564)) { + $xfer += $output->writeString($iter563); } else { - $xfer += $output->writeString($iter550); + $xfer += $output->writeString($iter564); } } } @@ -17862,15 +18402,15 @@ class NotificationEventResponse { case 1: if ($ftype == TType::LST) { $this->events = array(); - $_size551 = 0; - $_etype554 = 0; - $xfer += $input->readListBegin($_etype554, $_size551); - for ($_i555 = 0; $_i555 < $_size551; ++$_i555) + $_size565 = 0; + $_etype568 = 0; + $xfer += $input->readListBegin($_etype568, $_size565); + for ($_i569 = 0; $_i569 < $_size565; ++$_i569) { - $elem556 = null; - $elem556 = new \metastore\NotificationEvent(); - $xfer += $elem556->read($input); - $this->events []= $elem556; + $elem570 = null; + $elem570 = new \metastore\NotificationEvent(); + $xfer += $elem570->read($input); + $this->events []= $elem570; } $xfer += $input->readListEnd(); } else { @@ -17898,9 +18438,9 @@ class NotificationEventResponse { { $output->writeListBegin(TType::STRUCT, count($this->events)); { - foreach ($this->events as $iter557) + foreach ($this->events as $iter571) { - $xfer += $iter557->write($output); + $xfer += $iter571->write($output); } } $output->writeListEnd(); @@ -18245,14 +18785,14 @@ class InsertEventRequestData { case 2: if ($ftype == TType::LST) { $this->filesAdded = array(); - $_size558 = 0; - $_etype561 = 0; - $xfer += $input->readListBegin($_etype561, $_size558); - for ($_i562 = 0; $_i562 < $_size558; ++$_i562) + $_size572 = 0; + $_etype575 = 0; + $xfer += $input->readListBegin($_etype575, $_size572); + for ($_i576 = 0; $_i576 < $_size572; ++$_i576) { - $elem563 = null; - $xfer += $input->readString($elem563); - $this->filesAdded []= $elem563; + $elem577 = null; + $xfer += $input->readString($elem577); + $this->filesAdded []= $elem577; } $xfer += $input->readListEnd(); } else { @@ -18262,14 +18802,14 @@ class InsertEventRequestData { case 3: if ($ftype == TType::LST) { $this->filesAddedChecksum = array(); - $_size564 = 0; - $_etype567 = 0; - $xfer += $input->readListBegin($_etype567, $_size564); - for ($_i568 = 0; $_i568 < $_size564; ++$_i568) + $_size578 = 0; + $_etype581 = 0; + $xfer += $input->readListBegin($_etype581, $_size578); + for ($_i582 = 0; $_i582 < $_size578; ++$_i582) { - $elem569 = null; - $xfer += $input->readString($elem569); - $this->filesAddedChecksum []= $elem569; + $elem583 = null; + $xfer += $input->readString($elem583); + $this->filesAddedChecksum []= $elem583; } $xfer += $input->readListEnd(); } else { @@ -18302,9 +18842,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->filesAdded)); { - foreach ($this->filesAdded as $iter570) + foreach ($this->filesAdded as $iter584) { - $xfer += $output->writeString($iter570); + $xfer += $output->writeString($iter584); } } $output->writeListEnd(); @@ -18319,9 +18859,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->filesAddedChecksum)); { - foreach ($this->filesAddedChecksum as $iter571) + foreach ($this->filesAddedChecksum as $iter585) { - $xfer += $output->writeString($iter571); + $xfer += $output->writeString($iter585); } } $output->writeListEnd(); @@ -18539,14 +19079,14 @@ class FireEventRequest { case 5: if ($ftype == TType::LST) { $this->partitionVals = array(); - $_size572 = 0; - $_etype575 = 0; - $xfer += $input->readListBegin($_etype575, $_size572); - for ($_i576 = 0; $_i576 < $_size572; ++$_i576) + $_size586 = 0; + $_etype589 = 0; + $xfer += $input->readListBegin($_etype589, $_size586); + for ($_i590 = 0; $_i590 < $_size586; ++$_i590) { - $elem577 = null; - $xfer += $input->readString($elem577); - $this->partitionVals []= $elem577; + $elem591 = null; + $xfer += $input->readString($elem591); + $this->partitionVals []= $elem591; } $xfer += $input->readListEnd(); } else { @@ -18597,9 +19137,9 @@ class FireEventRequest { { $output->writeListBegin(TType::STRING, count($this->partitionVals)); { - foreach ($this->partitionVals as $iter578) + foreach ($this->partitionVals as $iter592) { - $xfer += $output->writeString($iter578); + $xfer += $output->writeString($iter592); } } $output->writeListEnd(); @@ -18827,18 +19367,18 @@ class GetFileMetadataByExprResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size579 = 0; - $_ktype580 = 0; - $_vtype581 = 0; - $xfer += $input->readMapBegin($_ktype580, $_vtype581, $_size579); - for ($_i583 = 0; $_i583 < $_size579; ++$_i583) + $_size593 = 0; + $_ktype594 = 0; + $_vtype595 = 0; + $xfer += $input->readMapBegin($_ktype594, $_vtype595, $_size593); + for ($_i597 = 0; $_i597 < $_size593; ++$_i597) { - $key584 = 0; - $val585 = new \metastore\MetadataPpdResult(); - $xfer += $input->readI64($key584); - $val585 = new \metastore\MetadataPpdResult(); - $xfer += $val585->read($input); - $this->metadata[$key584] = $val585; + $key598 = 0; + $val599 = new \metastore\MetadataPpdResult(); + $xfer += $input->readI64($key598); + $val599 = new \metastore\MetadataPpdResult(); + $xfer += $val599->read($input); + $this->metadata[$key598] = $val599; } $xfer += $input->readMapEnd(); } else { @@ -18873,10 +19413,10 @@ class GetFileMetadataByExprResult { { $output->writeMapBegin(TType::I64, TType::STRUCT, count($this->metadata)); { - foreach ($this->metadata as $kiter586 => $viter587) + foreach ($this->metadata as $kiter600 => $viter601) { - $xfer += $output->writeI64($kiter586); - $xfer += $viter587->write($output); + $xfer += $output->writeI64($kiter600); + $xfer += $viter601->write($output); } } $output->writeMapEnd(); @@ -18978,14 +19518,14 @@ class GetFileMetadataByExprRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size588 = 0; - $_etype591 = 0; - $xfer += $input->readListBegin($_etype591, $_size588); - for ($_i592 = 0; $_i592 < $_size588; ++$_i592) + $_size602 = 0; + $_etype605 = 0; + $xfer += $input->readListBegin($_etype605, $_size602); + for ($_i606 = 0; $_i606 < $_size602; ++$_i606) { - $elem593 = null; - $xfer += $input->readI64($elem593); - $this->fileIds []= $elem593; + $elem607 = null; + $xfer += $input->readI64($elem607); + $this->fileIds []= $elem607; } $xfer += $input->readListEnd(); } else { @@ -19034,9 +19574,9 @@ class GetFileMetadataByExprRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter594) + foreach ($this->fileIds as $iter608) { - $xfer += $output->writeI64($iter594); + $xfer += $output->writeI64($iter608); } } $output->writeListEnd(); @@ -19130,17 +19670,17 @@ class GetFileMetadataResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size595 = 0; - $_ktype596 = 0; - $_vtype597 = 0; - $xfer += $input->readMapBegin($_ktype596, $_vtype597, $_size595); - for ($_i599 = 0; $_i599 < $_size595; ++$_i599) + $_size609 = 0; + $_ktype610 = 0; + $_vtype611 = 0; + $xfer += $input->readMapBegin($_ktype610, $_vtype611, $_size609); + for ($_i613 = 0; $_i613 < $_size609; ++$_i613) { - $key600 = 0; - $val601 = ''; - $xfer += $input->readI64($key600); - $xfer += $input->readString($val601); - $this->metadata[$key600] = $val601; + $key614 = 0; + $val615 = ''; + $xfer += $input->readI64($key614); + $xfer += $input->readString($val615); + $this->metadata[$key614] = $val615; } $xfer += $input->readMapEnd(); } else { @@ -19175,10 +19715,10 @@ class GetFileMetadataResult { { $output->writeMapBegin(TType::I64, TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $kiter602 => $viter603) + foreach ($this->metadata as $kiter616 => $viter617) { - $xfer += $output->writeI64($kiter602); - $xfer += $output->writeString($viter603); + $xfer += $output->writeI64($kiter616); + $xfer += $output->writeString($viter617); } } $output->writeMapEnd(); @@ -19247,14 +19787,14 @@ class GetFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size604 = 0; - $_etype607 = 0; - $xfer += $input->readListBegin($_etype607, $_size604); - for ($_i608 = 0; $_i608 < $_size604; ++$_i608) + $_size618 = 0; + $_etype621 = 0; + $xfer += $input->readListBegin($_etype621, $_size618); + for ($_i622 = 0; $_i622 < $_size618; ++$_i622) { - $elem609 = null; - $xfer += $input->readI64($elem609); - $this->fileIds []= $elem609; + $elem623 = null; + $xfer += $input->readI64($elem623); + $this->fileIds []= $elem623; } $xfer += $input->readListEnd(); } else { @@ -19282,9 +19822,9 @@ class GetFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter610) + foreach ($this->fileIds as $iter624) { - $xfer += $output->writeI64($iter610); + $xfer += $output->writeI64($iter624); } } $output->writeListEnd(); @@ -19424,14 +19964,14 @@ class PutFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size611 = 0; - $_etype614 = 0; - $xfer += $input->readListBegin($_etype614, $_size611); - for ($_i615 = 0; $_i615 < $_size611; ++$_i615) + $_size625 = 0; + $_etype628 = 0; + $xfer += $input->readListBegin($_etype628, $_size625); + for ($_i629 = 0; $_i629 < $_size625; ++$_i629) { - $elem616 = null; - $xfer += $input->readI64($elem616); - $this->fileIds []= $elem616; + $elem630 = null; + $xfer += $input->readI64($elem630); + $this->fileIds []= $elem630; } $xfer += $input->readListEnd(); } else { @@ -19441,14 +19981,14 @@ class PutFileMetadataRequest { case 2: if ($ftype == TType::LST) { $this->metadata = array(); - $_size617 = 0; - $_etype620 = 0; - $xfer += $input->readListBegin($_etype620, $_size617); - for ($_i621 = 0; $_i621 < $_size617; ++$_i621) + $_size631 = 0; + $_etype634 = 0; + $xfer += $input->readListBegin($_etype634, $_size631); + for ($_i635 = 0; $_i635 < $_size631; ++$_i635) { - $elem622 = null; - $xfer += $input->readString($elem622); - $this->metadata []= $elem622; + $elem636 = null; + $xfer += $input->readString($elem636); + $this->metadata []= $elem636; } $xfer += $input->readListEnd(); } else { @@ -19483,9 +20023,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter623) + foreach ($this->fileIds as $iter637) { - $xfer += $output->writeI64($iter623); + $xfer += $output->writeI64($iter637); } } $output->writeListEnd(); @@ -19500,9 +20040,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $iter624) + foreach ($this->metadata as $iter638) { - $xfer += $output->writeString($iter624); + $xfer += $output->writeString($iter638); } } $output->writeListEnd(); @@ -19621,14 +20161,14 @@ class ClearFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size625 = 0; - $_etype628 = 0; - $xfer += $input->readListBegin($_etype628, $_size625); - for ($_i629 = 0; $_i629 < $_size625; ++$_i629) + $_size639 = 0; + $_etype642 = 0; + $xfer += $input->readListBegin($_etype642, $_size639); + for ($_i643 = 0; $_i643 < $_size639; ++$_i643) { - $elem630 = null; - $xfer += $input->readI64($elem630); - $this->fileIds []= $elem630; + $elem644 = null; + $xfer += $input->readI64($elem644); + $this->fileIds []= $elem644; } $xfer += $input->readListEnd(); } else { @@ -19656,9 +20196,9 @@ class ClearFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter631) + foreach ($this->fileIds as $iter645) { - $xfer += $output->writeI64($iter631); + $xfer += $output->writeI64($iter645); } } $output->writeListEnd(); @@ -19942,15 +20482,15 @@ class GetAllFunctionsResponse { case 1: if ($ftype == TType::LST) { $this->functions = array(); - $_size632 = 0; - $_etype635 = 0; - $xfer += $input->readListBegin($_etype635, $_size632); - for ($_i636 = 0; $_i636 < $_size632; ++$_i636) + $_size646 = 0; + $_etype649 = 0; + $xfer += $input->readListBegin($_etype649, $_size646); + for ($_i650 = 0; $_i650 < $_size646; ++$_i650) { - $elem637 = null; - $elem637 = new \metastore\Function(); - $xfer += $elem637->read($input); - $this->functions []= $elem637; + $elem651 = null; + $elem651 = new \metastore\Function(); + $xfer += $elem651->read($input); + $this->functions []= $elem651; } $xfer += $input->readListEnd(); } else { @@ -19978,9 +20518,9 @@ class GetAllFunctionsResponse { { $output->writeListBegin(TType::STRUCT, count($this->functions)); { - foreach ($this->functions as $iter638) + foreach ($this->functions as $iter652) { - $xfer += $iter638->write($output); + $xfer += $iter652->write($output); } } $output->writeListEnd(); @@ -20044,14 +20584,14 @@ class ClientCapabilities { case 1: if ($ftype == TType::LST) { $this->values = array(); - $_size639 = 0; - $_etype642 = 0; - $xfer += $input->readListBegin($_etype642, $_size639); - for ($_i643 = 0; $_i643 < $_size639; ++$_i643) + $_size653 = 0; + $_etype656 = 0; + $xfer += $input->readListBegin($_etype656, $_size653); + for ($_i657 = 0; $_i657 < $_size653; ++$_i657) { - $elem644 = null; - $xfer += $input->readI32($elem644); - $this->values []= $elem644; + $elem658 = null; + $xfer += $input->readI32($elem658); + $this->values []= $elem658; } $xfer += $input->readListEnd(); } else { @@ -20079,9 +20619,9 @@ class ClientCapabilities { { $output->writeListBegin(TType::I32, count($this->values)); { - foreach ($this->values as $iter645) + foreach ($this->values as $iter659) { - $xfer += $output->writeI32($iter645); + $xfer += $output->writeI32($iter659); } } $output->writeListEnd(); @@ -20381,14 +20921,14 @@ class GetTablesRequest { case 2: if ($ftype == TType::LST) { $this->tblNames = array(); - $_size646 = 0; - $_etype649 = 0; - $xfer += $input->readListBegin($_etype649, $_size646); - for ($_i650 = 0; $_i650 < $_size646; ++$_i650) + $_size660 = 0; + $_etype663 = 0; + $xfer += $input->readListBegin($_etype663, $_size660); + for ($_i664 = 0; $_i664 < $_size660; ++$_i664) { - $elem651 = null; - $xfer += $input->readString($elem651); - $this->tblNames []= $elem651; + $elem665 = null; + $xfer += $input->readString($elem665); + $this->tblNames []= $elem665; } $xfer += $input->readListEnd(); } else { @@ -20429,9 +20969,9 @@ class GetTablesRequest { { $output->writeListBegin(TType::STRING, count($this->tblNames)); { - foreach ($this->tblNames as $iter652) + foreach ($this->tblNames as $iter666) { - $xfer += $output->writeString($iter652); + $xfer += $output->writeString($iter666); } } $output->writeListEnd(); @@ -20504,15 +21044,15 @@ class GetTablesResult { case 1: if ($ftype == TType::LST) { $this->tables = array(); - $_size653 = 0; - $_etype656 = 0; - $xfer += $input->readListBegin($_etype656, $_size653); - for ($_i657 = 0; $_i657 < $_size653; ++$_i657) + $_size667 = 0; + $_etype670 = 0; + $xfer += $input->readListBegin($_etype670, $_size667); + for ($_i671 = 0; $_i671 < $_size667; ++$_i671) { - $elem658 = null; - $elem658 = new \metastore\Table(); - $xfer += $elem658->read($input); - $this->tables []= $elem658; + $elem672 = null; + $elem672 = new \metastore\Table(); + $xfer += $elem672->read($input); + $this->tables []= $elem672; } $xfer += $input->readListEnd(); } else { @@ -20540,9 +21080,9 @@ class GetTablesResult { { $output->writeListBegin(TType::STRUCT, count($this->tables)); { - foreach ($this->tables as $iter659) + foreach ($this->tables as $iter673) { - $xfer += $iter659->write($output); + $xfer += $iter673->write($output); } } $output->writeListEnd(); @@ -20920,17 +21460,17 @@ class Materialization { case 1: if ($ftype == TType::SET) { $this->tablesUsed = array(); - $_size660 = 0; - $_etype663 = 0; - $xfer += $input->readSetBegin($_etype663, $_size660); - for ($_i664 = 0; $_i664 < $_size660; ++$_i664) + $_size674 = 0; + $_etype677 = 0; + $xfer += $input->readSetBegin($_etype677, $_size674); + for ($_i678 = 0; $_i678 < $_size674; ++$_i678) { - $elem665 = null; - $xfer += $input->readString($elem665); - if (is_scalar($elem665)) { - $this->tablesUsed[$elem665] = true; + $elem679 = null; + $xfer += $input->readString($elem679); + if (is_scalar($elem679)) { + $this->tablesUsed[$elem679] = true; } else { - $this->tablesUsed []= $elem665; + $this->tablesUsed []= $elem679; } } $xfer += $input->readSetEnd(); @@ -20973,12 +21513,12 @@ class Materialization { { $output->writeSetBegin(TType::STRING, count($this->tablesUsed)); { - foreach ($this->tablesUsed as $iter666 => $iter667) + foreach ($this->tablesUsed as $iter680 => $iter681) { - if (is_scalar($iter667)) { - $xfer += $output->writeString($iter666); + if (is_scalar($iter681)) { + $xfer += $output->writeString($iter680); } else { - $xfer += $output->writeString($iter667); + $xfer += $output->writeString($iter681); } } } @@ -22245,15 +22785,15 @@ class WMFullResourcePlan { case 2: if ($ftype == TType::LST) { $this->pools = array(); - $_size668 = 0; - $_etype671 = 0; - $xfer += $input->readListBegin($_etype671, $_size668); - for ($_i672 = 0; $_i672 < $_size668; ++$_i672) + $_size682 = 0; + $_etype685 = 0; + $xfer += $input->readListBegin($_etype685, $_size682); + for ($_i686 = 0; $_i686 < $_size682; ++$_i686) { - $elem673 = null; - $elem673 = new \metastore\WMPool(); - $xfer += $elem673->read($input); - $this->pools []= $elem673; + $elem687 = null; + $elem687 = new \metastore\WMPool(); + $xfer += $elem687->read($input); + $this->pools []= $elem687; } $xfer += $input->readListEnd(); } else { @@ -22263,15 +22803,15 @@ class WMFullResourcePlan { case 3: if ($ftype == TType::LST) { $this->mappings = array(); - $_size674 = 0; - $_etype677 = 0; - $xfer += $input->readListBegin($_etype677, $_size674); - for ($_i678 = 0; $_i678 < $_size674; ++$_i678) + $_size688 = 0; + $_etype691 = 0; + $xfer += $input->readListBegin($_etype691, $_size688); + for ($_i692 = 0; $_i692 < $_size688; ++$_i692) { - $elem679 = null; - $elem679 = new \metastore\WMMapping(); - $xfer += $elem679->read($input); - $this->mappings []= $elem679; + $elem693 = null; + $elem693 = new \metastore\WMMapping(); + $xfer += $elem693->read($input); + $this->mappings []= $elem693; } $xfer += $input->readListEnd(); } else { @@ -22281,15 +22821,15 @@ class WMFullResourcePlan { case 4: if ($ftype == TType::LST) { $this->triggers = array(); - $_size680 = 0; - $_etype683 = 0; - $xfer += $input->readListBegin($_etype683, $_size680); - for ($_i684 = 0; $_i684 < $_size680; ++$_i684) + $_size694 = 0; + $_etype697 = 0; + $xfer += $input->readListBegin($_etype697, $_size694); + for ($_i698 = 0; $_i698 < $_size694; ++$_i698) { - $elem685 = null; - $elem685 = new \metastore\WMTrigger(); - $xfer += $elem685->read($input); - $this->triggers []= $elem685; + $elem699 = null; + $elem699 = new \metastore\WMTrigger(); + $xfer += $elem699->read($input); + $this->triggers []= $elem699; } $xfer += $input->readListEnd(); } else { @@ -22299,15 +22839,15 @@ class WMFullResourcePlan { case 5: if ($ftype == TType::LST) { $this->poolTriggers = array(); - $_size686 = 0; - $_etype689 = 0; - $xfer += $input->readListBegin($_etype689, $_size686); - for ($_i690 = 0; $_i690 < $_size686; ++$_i690) + $_size700 = 0; + $_etype703 = 0; + $xfer += $input->readListBegin($_etype703, $_size700); + for ($_i704 = 0; $_i704 < $_size700; ++$_i704) { - $elem691 = null; - $elem691 = new \metastore\WMPoolTrigger(); - $xfer += $elem691->read($input); - $this->poolTriggers []= $elem691; + $elem705 = null; + $elem705 = new \metastore\WMPoolTrigger(); + $xfer += $elem705->read($input); + $this->poolTriggers []= $elem705; } $xfer += $input->readListEnd(); } else { @@ -22343,9 +22883,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->pools)); { - foreach ($this->pools as $iter692) + foreach ($this->pools as $iter706) { - $xfer += $iter692->write($output); + $xfer += $iter706->write($output); } } $output->writeListEnd(); @@ -22360,9 +22900,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->mappings)); { - foreach ($this->mappings as $iter693) + foreach ($this->mappings as $iter707) { - $xfer += $iter693->write($output); + $xfer += $iter707->write($output); } } $output->writeListEnd(); @@ -22377,9 +22917,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->triggers)); { - foreach ($this->triggers as $iter694) + foreach ($this->triggers as $iter708) { - $xfer += $iter694->write($output); + $xfer += $iter708->write($output); } } $output->writeListEnd(); @@ -22394,9 +22934,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->poolTriggers)); { - foreach ($this->poolTriggers as $iter695) + foreach ($this->poolTriggers as $iter709) { - $xfer += $iter695->write($output); + $xfer += $iter709->write($output); } } $output->writeListEnd(); @@ -22949,15 +23489,15 @@ class WMGetAllResourcePlanResponse { case 1: if ($ftype == TType::LST) { $this->resourcePlans = array(); - $_size696 = 0; - $_etype699 = 0; - $xfer += $input->readListBegin($_etype699, $_size696); - for ($_i700 = 0; $_i700 < $_size696; ++$_i700) + $_size710 = 0; + $_etype713 = 0; + $xfer += $input->readListBegin($_etype713, $_size710); + for ($_i714 = 0; $_i714 < $_size710; ++$_i714) { - $elem701 = null; - $elem701 = new \metastore\WMResourcePlan(); - $xfer += $elem701->read($input); - $this->resourcePlans []= $elem701; + $elem715 = null; + $elem715 = new \metastore\WMResourcePlan(); + $xfer += $elem715->read($input); + $this->resourcePlans []= $elem715; } $xfer += $input->readListEnd(); } else { @@ -22985,9 +23525,9 @@ class WMGetAllResourcePlanResponse { { $output->writeListBegin(TType::STRUCT, count($this->resourcePlans)); { - foreach ($this->resourcePlans as $iter702) + foreach ($this->resourcePlans as $iter716) { - $xfer += $iter702->write($output); + $xfer += $iter716->write($output); } } $output->writeListEnd(); @@ -23393,14 +23933,14 @@ class WMValidateResourcePlanResponse { case 1: if ($ftype == TType::LST) { $this->errors = array(); - $_size703 = 0; - $_etype706 = 0; - $xfer += $input->readListBegin($_etype706, $_size703); - for ($_i707 = 0; $_i707 < $_size703; ++$_i707) + $_size717 = 0; + $_etype720 = 0; + $xfer += $input->readListBegin($_etype720, $_size717); + for ($_i721 = 0; $_i721 < $_size717; ++$_i721) { - $elem708 = null; - $xfer += $input->readString($elem708); - $this->errors []= $elem708; + $elem722 = null; + $xfer += $input->readString($elem722); + $this->errors []= $elem722; } $xfer += $input->readListEnd(); } else { @@ -23410,14 +23950,14 @@ class WMValidateResourcePlanResponse { case 2: if ($ftype == TType::LST) { $this->warnings = array(); - $_size709 = 0; - $_etype712 = 0; - $xfer += $input->readListBegin($_etype712, $_size709); - for ($_i713 = 0; $_i713 < $_size709; ++$_i713) + $_size723 = 0; + $_etype726 = 0; + $xfer += $input->readListBegin($_etype726, $_size723); + for ($_i727 = 0; $_i727 < $_size723; ++$_i727) { - $elem714 = null; - $xfer += $input->readString($elem714); - $this->warnings []= $elem714; + $elem728 = null; + $xfer += $input->readString($elem728); + $this->warnings []= $elem728; } $xfer += $input->readListEnd(); } else { @@ -23445,9 +23985,9 @@ class WMValidateResourcePlanResponse { { $output->writeListBegin(TType::STRING, count($this->errors)); { - foreach ($this->errors as $iter715) + foreach ($this->errors as $iter729) { - $xfer += $output->writeString($iter715); + $xfer += $output->writeString($iter729); } } $output->writeListEnd(); @@ -23462,9 +24002,9 @@ class WMValidateResourcePlanResponse { { $output->writeListBegin(TType::STRING, count($this->warnings)); { - foreach ($this->warnings as $iter716) + foreach ($this->warnings as $iter730) { - $xfer += $output->writeString($iter716); + $xfer += $output->writeString($iter730); } } $output->writeListEnd(); @@ -24137,15 +24677,15 @@ class WMGetTriggersForResourePlanResponse { case 1: if ($ftype == TType::LST) { $this->triggers = array(); - $_size717 = 0; - $_etype720 = 0; - $xfer += $input->readListBegin($_etype720, $_size717); - for ($_i721 = 0; $_i721 < $_size717; ++$_i721) + $_size731 = 0; + $_etype734 = 0; + $xfer += $input->readListBegin($_etype734, $_size731); + for ($_i735 = 0; $_i735 < $_size731; ++$_i735) { - $elem722 = null; - $elem722 = new \metastore\WMTrigger(); - $xfer += $elem722->read($input); - $this->triggers []= $elem722; + $elem736 = null; + $elem736 = new \metastore\WMTrigger(); + $xfer += $elem736->read($input); + $this->triggers []= $elem736; } $xfer += $input->readListEnd(); } else { @@ -24173,9 +24713,9 @@ class WMGetTriggersForResourePlanResponse { { $output->writeListBegin(TType::STRUCT, count($this->triggers)); { - foreach ($this->triggers as $iter723) + foreach ($this->triggers as $iter737) { - $xfer += $iter723->write($output); + $xfer += $iter737->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 c958e976a0..3efb7e6b47 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 @@ -42,12 +42,13 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' get_schema_with_environment_context(string db_name, string table_name, EnvironmentContext environment_context)') print(' void create_table(Table tbl)') print(' void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context)') - print(' void create_table_with_constraints(Table tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints)') + print(' void create_table_with_constraints(Table tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints)') print(' void drop_constraint(DropConstraintRequest req)') print(' void add_primary_key(AddPrimaryKeyRequest req)') print(' void add_foreign_key(AddForeignKeyRequest req)') print(' void add_unique_constraint(AddUniqueConstraintRequest req)') print(' void add_not_null_constraint(AddNotNullConstraintRequest req)') + print(' void add_default_constraint(AddDefaultConstraintRequest req)') print(' void drop_table(string dbname, string name, bool deleteData)') print(' void drop_table_with_environment_context(string dbname, string name, bool deleteData, EnvironmentContext environment_context)') print(' void truncate_table(string dbName, string tableName, partNames)') @@ -119,6 +120,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' ForeignKeysResponse get_foreign_keys(ForeignKeysRequest request)') print(' UniqueConstraintsResponse get_unique_constraints(UniqueConstraintsRequest request)') print(' NotNullConstraintsResponse get_not_null_constraints(NotNullConstraintsRequest request)') + print(' DefaultConstraintsResponse get_default_constraints(DefaultConstraintsRequest request)') print(' bool update_table_column_statistics(ColumnStatistics stats_obj)') print(' bool update_partition_column_statistics(ColumnStatistics stats_obj)') print(' ColumnStatistics get_table_column_statistics(string db_name, string tbl_name, string col_name)') @@ -384,10 +386,10 @@ elif cmd == 'create_table_with_environment_context': pp.pprint(client.create_table_with_environment_context(eval(args[0]),eval(args[1]),)) elif cmd == 'create_table_with_constraints': - if len(args) != 5: - print('create_table_with_constraints requires 5 args') + if len(args) != 6: + print('create_table_with_constraints requires 6 args') sys.exit(1) - pp.pprint(client.create_table_with_constraints(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),)) + pp.pprint(client.create_table_with_constraints(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),eval(args[5]),)) elif cmd == 'drop_constraint': if len(args) != 1: @@ -419,6 +421,12 @@ elif cmd == 'add_not_null_constraint': sys.exit(1) pp.pprint(client.add_not_null_constraint(eval(args[0]),)) +elif cmd == 'add_default_constraint': + if len(args) != 1: + print('add_default_constraint requires 1 args') + sys.exit(1) + pp.pprint(client.add_default_constraint(eval(args[0]),)) + elif cmd == 'drop_table': if len(args) != 3: print('drop_table requires 3 args') @@ -845,6 +853,12 @@ elif cmd == 'get_not_null_constraints': sys.exit(1) pp.pprint(client.get_not_null_constraints(eval(args[0]),)) +elif cmd == 'get_default_constraints': + if len(args) != 1: + print('get_default_constraints requires 1 args') + sys.exit(1) + pp.pprint(client.get_default_constraints(eval(args[0]),)) + elif cmd == 'update_table_column_statistics': if len(args) != 1: print('update_table_column_statistics 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 330e75f3a4..3f1e0df636 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 @@ -156,7 +156,7 @@ def create_table_with_environment_context(self, tbl, environment_context): """ pass - def create_table_with_constraints(self, tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints): + def create_table_with_constraints(self, tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints): """ Parameters: - tbl @@ -164,6 +164,7 @@ def create_table_with_constraints(self, tbl, primaryKeys, foreignKeys, uniqueCon - foreignKeys - uniqueConstraints - notNullConstraints + - defaultConstraints """ pass @@ -202,6 +203,13 @@ def add_not_null_constraint(self, req): """ pass + def add_default_constraint(self, req): + """ + Parameters: + - req + """ + pass + def drop_table(self, dbname, name, deleteData): """ Parameters: @@ -832,6 +840,13 @@ def get_not_null_constraints(self, request): """ pass + def get_default_constraints(self, request): + """ + Parameters: + - request + """ + pass + def update_table_column_statistics(self, stats_obj): """ Parameters: @@ -2091,7 +2106,7 @@ def recv_create_table_with_environment_context(self): raise result.o4 return - def create_table_with_constraints(self, tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints): + def create_table_with_constraints(self, tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints): """ Parameters: - tbl @@ -2099,11 +2114,12 @@ def create_table_with_constraints(self, tbl, primaryKeys, foreignKeys, uniqueCon - foreignKeys - uniqueConstraints - notNullConstraints + - defaultConstraints """ - self.send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints) + self.send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints) self.recv_create_table_with_constraints() - def send_create_table_with_constraints(self, tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints): + def send_create_table_with_constraints(self, tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints): self._oprot.writeMessageBegin('create_table_with_constraints', TMessageType.CALL, self._seqid) args = create_table_with_constraints_args() args.tbl = tbl @@ -2111,6 +2127,7 @@ def send_create_table_with_constraints(self, tbl, primaryKeys, foreignKeys, uniq args.foreignKeys = foreignKeys args.uniqueConstraints = uniqueConstraints args.notNullConstraints = notNullConstraints + args.defaultConstraints = defaultConstraints args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() @@ -2301,6 +2318,39 @@ def recv_add_not_null_constraint(self): raise result.o2 return + def add_default_constraint(self, req): + """ + Parameters: + - req + """ + self.send_add_default_constraint(req) + self.recv_add_default_constraint() + + def send_add_default_constraint(self, req): + self._oprot.writeMessageBegin('add_default_constraint', TMessageType.CALL, self._seqid) + args = add_default_constraint_args() + args.req = req + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_add_default_constraint(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = add_default_constraint_result() + result.read(iprot) + iprot.readMessageEnd() + if result.o1 is not None: + raise result.o1 + if result.o2 is not None: + raise result.o2 + return + def drop_table(self, dbname, name, deleteData): """ Parameters: @@ -5050,6 +5100,41 @@ def recv_get_not_null_constraints(self): raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_not_null_constraints failed: unknown result") + def get_default_constraints(self, request): + """ + Parameters: + - request + """ + self.send_get_default_constraints(request) + return self.recv_get_default_constraints() + + def send_get_default_constraints(self, request): + self._oprot.writeMessageBegin('get_default_constraints', TMessageType.CALL, self._seqid) + args = get_default_constraints_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_default_constraints(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = get_default_constraints_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 + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_default_constraints failed: unknown result") + def update_table_column_statistics(self, stats_obj): """ Parameters: @@ -8034,6 +8119,7 @@ def __init__(self, handler): self._processMap["add_foreign_key"] = Processor.process_add_foreign_key self._processMap["add_unique_constraint"] = Processor.process_add_unique_constraint self._processMap["add_not_null_constraint"] = Processor.process_add_not_null_constraint + self._processMap["add_default_constraint"] = Processor.process_add_default_constraint self._processMap["drop_table"] = Processor.process_drop_table self._processMap["drop_table_with_environment_context"] = Processor.process_drop_table_with_environment_context self._processMap["truncate_table"] = Processor.process_truncate_table @@ -8105,6 +8191,7 @@ def __init__(self, handler): self._processMap["get_foreign_keys"] = Processor.process_get_foreign_keys self._processMap["get_unique_constraints"] = Processor.process_get_unique_constraints self._processMap["get_not_null_constraints"] = Processor.process_get_not_null_constraints + self._processMap["get_default_constraints"] = Processor.process_get_default_constraints self._processMap["update_table_column_statistics"] = Processor.process_update_table_column_statistics self._processMap["update_partition_column_statistics"] = Processor.process_update_partition_column_statistics self._processMap["get_table_column_statistics"] = Processor.process_get_table_column_statistics @@ -8682,7 +8769,7 @@ def process_create_table_with_constraints(self, seqid, iprot, oprot): iprot.readMessageEnd() result = create_table_with_constraints_result() try: - self._handler.create_table_with_constraints(args.tbl, args.primaryKeys, args.foreignKeys, args.uniqueConstraints, args.notNullConstraints) + self._handler.create_table_with_constraints(args.tbl, args.primaryKeys, args.foreignKeys, args.uniqueConstraints, args.notNullConstraints, args.defaultConstraints) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise @@ -8832,6 +8919,31 @@ def process_add_not_null_constraint(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_add_default_constraint(self, seqid, iprot, oprot): + args = add_default_constraint_args() + args.read(iprot) + iprot.readMessageEnd() + result = add_default_constraint_result() + try: + self._handler.add_default_constraint(args.req) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except NoSuchObjectException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except MetaException as o2: + msg_type = TMessageType.REPLY + result.o2 = o2 + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("add_default_constraint", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_drop_table(self, seqid, iprot, oprot): args = drop_table_args() args.read(iprot) @@ -10646,6 +10758,31 @@ def process_get_not_null_constraints(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_get_default_constraints(self, seqid, iprot, oprot): + args = get_default_constraints_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_default_constraints_result() + try: + result.success = self._handler.get_default_constraints(args.request) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except MetaException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except NoSuchObjectException as o2: + msg_type = TMessageType.REPLY + result.o2 = o2 + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("get_default_constraints", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_update_table_column_statistics(self, seqid, iprot, oprot): args = update_table_column_statistics_args() args.read(iprot) @@ -13587,10 +13724,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype723, _size720) = iprot.readListBegin() - for _i724 in xrange(_size720): - _elem725 = iprot.readString() - self.success.append(_elem725) + (_etype737, _size734) = iprot.readListBegin() + for _i738 in xrange(_size734): + _elem739 = iprot.readString() + self.success.append(_elem739) iprot.readListEnd() else: iprot.skip(ftype) @@ -13613,8 +13750,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 iter726 in self.success: - oprot.writeString(iter726) + for iter740 in self.success: + oprot.writeString(iter740) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13719,10 +13856,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype730, _size727) = iprot.readListBegin() - for _i731 in xrange(_size727): - _elem732 = iprot.readString() - self.success.append(_elem732) + (_etype744, _size741) = iprot.readListBegin() + for _i745 in xrange(_size741): + _elem746 = iprot.readString() + self.success.append(_elem746) iprot.readListEnd() else: iprot.skip(ftype) @@ -13745,8 +13882,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 iter733 in self.success: - oprot.writeString(iter733) + for iter747 in self.success: + oprot.writeString(iter747) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14516,12 +14653,12 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype735, _vtype736, _size734 ) = iprot.readMapBegin() - for _i738 in xrange(_size734): - _key739 = iprot.readString() - _val740 = Type() - _val740.read(iprot) - self.success[_key739] = _val740 + (_ktype749, _vtype750, _size748 ) = iprot.readMapBegin() + for _i752 in xrange(_size748): + _key753 = iprot.readString() + _val754 = Type() + _val754.read(iprot) + self.success[_key753] = _val754 iprot.readMapEnd() else: iprot.skip(ftype) @@ -14544,9 +14681,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 kiter741,viter742 in self.success.items(): - oprot.writeString(kiter741) - viter742.write(oprot) + for kiter755,viter756 in self.success.items(): + oprot.writeString(kiter755) + viter756.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -14689,11 +14826,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) + (_etype760, _size757) = iprot.readListBegin() + for _i761 in xrange(_size757): + _elem762 = FieldSchema() + _elem762.read(iprot) + self.success.append(_elem762) iprot.readListEnd() else: iprot.skip(ftype) @@ -14728,8 +14865,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 iter763 in self.success: + iter763.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14896,11 +15033,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype753, _size750) = iprot.readListBegin() - for _i754 in xrange(_size750): - _elem755 = FieldSchema() - _elem755.read(iprot) - self.success.append(_elem755) + (_etype767, _size764) = iprot.readListBegin() + for _i768 in xrange(_size764): + _elem769 = FieldSchema() + _elem769.read(iprot) + self.success.append(_elem769) iprot.readListEnd() else: iprot.skip(ftype) @@ -14935,8 +15072,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 iter756 in self.success: - iter756.write(oprot) + for iter770 in self.success: + iter770.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15089,11 +15226,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype760, _size757) = iprot.readListBegin() - for _i761 in xrange(_size757): - _elem762 = FieldSchema() - _elem762.read(iprot) - self.success.append(_elem762) + (_etype774, _size771) = iprot.readListBegin() + for _i775 in xrange(_size771): + _elem776 = FieldSchema() + _elem776.read(iprot) + self.success.append(_elem776) iprot.readListEnd() else: iprot.skip(ftype) @@ -15128,8 +15265,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 iter763 in self.success: - iter763.write(oprot) + for iter777 in self.success: + iter777.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15296,11 +15433,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype767, _size764) = iprot.readListBegin() - for _i768 in xrange(_size764): - _elem769 = FieldSchema() - _elem769.read(iprot) - self.success.append(_elem769) + (_etype781, _size778) = iprot.readListBegin() + for _i782 in xrange(_size778): + _elem783 = FieldSchema() + _elem783.read(iprot) + self.success.append(_elem783) iprot.readListEnd() else: iprot.skip(ftype) @@ -15335,8 +15472,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 iter770 in self.success: - iter770.write(oprot) + for iter784 in self.success: + iter784.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15747,6 +15884,7 @@ class create_table_with_constraints_args: - foreignKeys - uniqueConstraints - notNullConstraints + - defaultConstraints """ thrift_spec = ( @@ -15756,14 +15894,16 @@ class create_table_with_constraints_args: (3, TType.LIST, 'foreignKeys', (TType.STRUCT,(SQLForeignKey, SQLForeignKey.thrift_spec)), None, ), # 3 (4, TType.LIST, 'uniqueConstraints', (TType.STRUCT,(SQLUniqueConstraint, SQLUniqueConstraint.thrift_spec)), None, ), # 4 (5, TType.LIST, 'notNullConstraints', (TType.STRUCT,(SQLNotNullConstraint, SQLNotNullConstraint.thrift_spec)), None, ), # 5 + (6, TType.LIST, 'defaultConstraints', (TType.STRUCT,(SQLDefaultConstraint, SQLDefaultConstraint.thrift_spec)), None, ), # 6 ) - def __init__(self, tbl=None, primaryKeys=None, foreignKeys=None, uniqueConstraints=None, notNullConstraints=None,): + def __init__(self, tbl=None, primaryKeys=None, foreignKeys=None, uniqueConstraints=None, notNullConstraints=None, defaultConstraints=None,): self.tbl = tbl self.primaryKeys = primaryKeys self.foreignKeys = foreignKeys self.uniqueConstraints = uniqueConstraints self.notNullConstraints = notNullConstraints + self.defaultConstraints = defaultConstraints 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: @@ -15783,44 +15923,55 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.primaryKeys = [] - (_etype774, _size771) = iprot.readListBegin() - for _i775 in xrange(_size771): - _elem776 = SQLPrimaryKey() - _elem776.read(iprot) - self.primaryKeys.append(_elem776) + (_etype788, _size785) = iprot.readListBegin() + for _i789 in xrange(_size785): + _elem790 = SQLPrimaryKey() + _elem790.read(iprot) + self.primaryKeys.append(_elem790) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.foreignKeys = [] - (_etype780, _size777) = iprot.readListBegin() - for _i781 in xrange(_size777): - _elem782 = SQLForeignKey() - _elem782.read(iprot) - self.foreignKeys.append(_elem782) + (_etype794, _size791) = iprot.readListBegin() + for _i795 in xrange(_size791): + _elem796 = SQLForeignKey() + _elem796.read(iprot) + self.foreignKeys.append(_elem796) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.uniqueConstraints = [] - (_etype786, _size783) = iprot.readListBegin() - for _i787 in xrange(_size783): - _elem788 = SQLUniqueConstraint() - _elem788.read(iprot) - self.uniqueConstraints.append(_elem788) + (_etype800, _size797) = iprot.readListBegin() + for _i801 in xrange(_size797): + _elem802 = SQLUniqueConstraint() + _elem802.read(iprot) + self.uniqueConstraints.append(_elem802) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.notNullConstraints = [] - (_etype792, _size789) = iprot.readListBegin() - for _i793 in xrange(_size789): - _elem794 = SQLNotNullConstraint() - _elem794.read(iprot) - self.notNullConstraints.append(_elem794) + (_etype806, _size803) = iprot.readListBegin() + for _i807 in xrange(_size803): + _elem808 = SQLNotNullConstraint() + _elem808.read(iprot) + self.notNullConstraints.append(_elem808) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.LIST: + self.defaultConstraints = [] + (_etype812, _size809) = iprot.readListBegin() + for _i813 in xrange(_size809): + _elem814 = SQLDefaultConstraint() + _elem814.read(iprot) + self.defaultConstraints.append(_elem814) iprot.readListEnd() else: iprot.skip(ftype) @@ -15841,29 +15992,36 @@ def write(self, oprot): if self.primaryKeys is not None: oprot.writeFieldBegin('primaryKeys', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.primaryKeys)) - for iter795 in self.primaryKeys: - iter795.write(oprot) + for iter815 in self.primaryKeys: + iter815.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 iter796 in self.foreignKeys: - iter796.write(oprot) + for iter816 in self.foreignKeys: + iter816.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 iter797 in self.uniqueConstraints: - iter797.write(oprot) + for iter817 in self.uniqueConstraints: + iter817.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 iter798 in self.notNullConstraints: - iter798.write(oprot) + for iter818 in self.notNullConstraints: + iter818.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.defaultConstraints is not None: + oprot.writeFieldBegin('defaultConstraints', TType.LIST, 6) + oprot.writeListBegin(TType.STRUCT, len(self.defaultConstraints)) + for iter819 in self.defaultConstraints: + iter819.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15880,6 +16038,7 @@ def __hash__(self): value = (value * 31) ^ hash(self.foreignKeys) value = (value * 31) ^ hash(self.uniqueConstraints) value = (value * 31) ^ hash(self.notNullConstraints) + value = (value * 31) ^ hash(self.defaultConstraints) return value def __repr__(self): @@ -16731,6 +16890,152 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class add_default_constraint_args: + """ + Attributes: + - req + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', (AddDefaultConstraintRequest, AddDefaultConstraintRequest.thrift_spec), None, ), # 1 + ) + + def __init__(self, req=None,): + self.req = req + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.req = AddDefaultConstraintRequest() + self.req.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('add_default_constraint_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.req) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class add_default_constraint_result: + """ + Attributes: + - o1 + - o2 + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + ) + + def __init__(self, o1=None, o2=None,): + self.o1 = o1 + self.o2 = o2 + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.o1 = NoSuchObjectException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = MetaException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('add_default_constraint_result') + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + if self.o2 is not None: + oprot.writeFieldBegin('o2', TType.STRUCT, 2) + self.o2.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + class drop_table_args: """ Attributes: @@ -17129,10 +17434,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.partNames = [] - (_etype802, _size799) = iprot.readListBegin() - for _i803 in xrange(_size799): - _elem804 = iprot.readString() - self.partNames.append(_elem804) + (_etype823, _size820) = iprot.readListBegin() + for _i824 in xrange(_size820): + _elem825 = iprot.readString() + self.partNames.append(_elem825) iprot.readListEnd() else: iprot.skip(ftype) @@ -17157,8 +17462,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 iter805 in self.partNames: - oprot.writeString(iter805) + for iter826 in self.partNames: + oprot.writeString(iter826) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17358,10 +17663,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype809, _size806) = iprot.readListBegin() - for _i810 in xrange(_size806): - _elem811 = iprot.readString() - self.success.append(_elem811) + (_etype830, _size827) = iprot.readListBegin() + for _i831 in xrange(_size827): + _elem832 = iprot.readString() + self.success.append(_elem832) iprot.readListEnd() else: iprot.skip(ftype) @@ -17384,8 +17689,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 iter812 in self.success: - oprot.writeString(iter812) + for iter833 in self.success: + oprot.writeString(iter833) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17535,10 +17840,10 @@ 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) + (_etype837, _size834) = iprot.readListBegin() + for _i838 in xrange(_size834): + _elem839 = iprot.readString() + self.success.append(_elem839) iprot.readListEnd() else: iprot.skip(ftype) @@ -17561,8 +17866,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 iter840 in self.success: + oprot.writeString(iter840) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17686,10 +17991,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype823, _size820) = iprot.readListBegin() - for _i824 in xrange(_size820): - _elem825 = iprot.readString() - self.success.append(_elem825) + (_etype844, _size841) = iprot.readListBegin() + for _i845 in xrange(_size841): + _elem846 = iprot.readString() + self.success.append(_elem846) iprot.readListEnd() else: iprot.skip(ftype) @@ -17712,8 +18017,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 iter826 in self.success: - oprot.writeString(iter826) + for iter847 in self.success: + oprot.writeString(iter847) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17786,10 +18091,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.tbl_types = [] - (_etype830, _size827) = iprot.readListBegin() - for _i831 in xrange(_size827): - _elem832 = iprot.readString() - self.tbl_types.append(_elem832) + (_etype851, _size848) = iprot.readListBegin() + for _i852 in xrange(_size848): + _elem853 = iprot.readString() + self.tbl_types.append(_elem853) iprot.readListEnd() else: iprot.skip(ftype) @@ -17814,8 +18119,8 @@ def write(self, oprot): if self.tbl_types is not None: oprot.writeFieldBegin('tbl_types', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.tbl_types)) - for iter833 in self.tbl_types: - oprot.writeString(iter833) + for iter854 in self.tbl_types: + oprot.writeString(iter854) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17871,11 +18176,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype837, _size834) = iprot.readListBegin() - for _i838 in xrange(_size834): - _elem839 = TableMeta() - _elem839.read(iprot) - self.success.append(_elem839) + (_etype858, _size855) = iprot.readListBegin() + for _i859 in xrange(_size855): + _elem860 = TableMeta() + _elem860.read(iprot) + self.success.append(_elem860) iprot.readListEnd() else: iprot.skip(ftype) @@ -17898,8 +18203,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 iter840 in self.success: - iter840.write(oprot) + for iter861 in self.success: + iter861.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18023,10 +18328,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype844, _size841) = iprot.readListBegin() - for _i845 in xrange(_size841): - _elem846 = iprot.readString() - self.success.append(_elem846) + (_etype865, _size862) = iprot.readListBegin() + for _i866 in xrange(_size862): + _elem867 = iprot.readString() + self.success.append(_elem867) iprot.readListEnd() else: iprot.skip(ftype) @@ -18049,8 +18354,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 iter847 in self.success: - oprot.writeString(iter847) + for iter868 in self.success: + oprot.writeString(iter868) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18286,10 +18591,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype851, _size848) = iprot.readListBegin() - for _i852 in xrange(_size848): - _elem853 = iprot.readString() - self.tbl_names.append(_elem853) + (_etype872, _size869) = iprot.readListBegin() + for _i873 in xrange(_size869): + _elem874 = iprot.readString() + self.tbl_names.append(_elem874) iprot.readListEnd() else: iprot.skip(ftype) @@ -18310,8 +18615,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 iter854 in self.tbl_names: - oprot.writeString(iter854) + for iter875 in self.tbl_names: + oprot.writeString(iter875) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18363,11 +18668,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype858, _size855) = iprot.readListBegin() - for _i859 in xrange(_size855): - _elem860 = Table() - _elem860.read(iprot) - self.success.append(_elem860) + (_etype879, _size876) = iprot.readListBegin() + for _i880 in xrange(_size876): + _elem881 = Table() + _elem881.read(iprot) + self.success.append(_elem881) iprot.readListEnd() else: iprot.skip(ftype) @@ -18384,8 +18689,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 iter861 in self.success: - iter861.write(oprot) + for iter882 in self.success: + iter882.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18777,10 +19082,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype865, _size862) = iprot.readListBegin() - for _i866 in xrange(_size862): - _elem867 = iprot.readString() - self.tbl_names.append(_elem867) + (_etype886, _size883) = iprot.readListBegin() + for _i887 in xrange(_size883): + _elem888 = iprot.readString() + self.tbl_names.append(_elem888) iprot.readListEnd() else: iprot.skip(ftype) @@ -18801,8 +19106,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 iter868 in self.tbl_names: - oprot.writeString(iter868) + for iter889 in self.tbl_names: + oprot.writeString(iter889) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18863,12 +19168,12 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype870, _vtype871, _size869 ) = iprot.readMapBegin() - for _i873 in xrange(_size869): - _key874 = iprot.readString() - _val875 = Materialization() - _val875.read(iprot) - self.success[_key874] = _val875 + (_ktype891, _vtype892, _size890 ) = iprot.readMapBegin() + for _i894 in xrange(_size890): + _key895 = iprot.readString() + _val896 = Materialization() + _val896.read(iprot) + self.success[_key895] = _val896 iprot.readMapEnd() else: iprot.skip(ftype) @@ -18903,9 +19208,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 kiter876,viter877 in self.success.items(): - oprot.writeString(kiter876) - viter877.write(oprot) + for kiter897,viter898 in self.success.items(): + oprot.writeString(kiter897) + viter898.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -19257,10 +19562,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype881, _size878) = iprot.readListBegin() - for _i882 in xrange(_size878): - _elem883 = iprot.readString() - self.success.append(_elem883) + (_etype902, _size899) = iprot.readListBegin() + for _i903 in xrange(_size899): + _elem904 = iprot.readString() + self.success.append(_elem904) iprot.readListEnd() else: iprot.skip(ftype) @@ -19295,8 +19600,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 iter884 in self.success: - oprot.writeString(iter884) + for iter905 in self.success: + oprot.writeString(iter905) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20266,11 +20571,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype888, _size885) = iprot.readListBegin() - for _i889 in xrange(_size885): - _elem890 = Partition() - _elem890.read(iprot) - self.new_parts.append(_elem890) + (_etype909, _size906) = iprot.readListBegin() + for _i910 in xrange(_size906): + _elem911 = Partition() + _elem911.read(iprot) + self.new_parts.append(_elem911) iprot.readListEnd() else: iprot.skip(ftype) @@ -20287,8 +20592,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 iter891 in self.new_parts: - iter891.write(oprot) + for iter912 in self.new_parts: + iter912.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20446,11 +20751,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype895, _size892) = iprot.readListBegin() - for _i896 in xrange(_size892): - _elem897 = PartitionSpec() - _elem897.read(iprot) - self.new_parts.append(_elem897) + (_etype916, _size913) = iprot.readListBegin() + for _i917 in xrange(_size913): + _elem918 = PartitionSpec() + _elem918.read(iprot) + self.new_parts.append(_elem918) iprot.readListEnd() else: iprot.skip(ftype) @@ -20467,8 +20772,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 iter898 in self.new_parts: - iter898.write(oprot) + for iter919 in self.new_parts: + iter919.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20642,10 +20947,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype902, _size899) = iprot.readListBegin() - for _i903 in xrange(_size899): - _elem904 = iprot.readString() - self.part_vals.append(_elem904) + (_etype923, _size920) = iprot.readListBegin() + for _i924 in xrange(_size920): + _elem925 = iprot.readString() + self.part_vals.append(_elem925) iprot.readListEnd() else: iprot.skip(ftype) @@ -20670,8 +20975,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 iter905 in self.part_vals: - oprot.writeString(iter905) + for iter926 in self.part_vals: + oprot.writeString(iter926) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21024,10 +21329,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype909, _size906) = iprot.readListBegin() - for _i910 in xrange(_size906): - _elem911 = iprot.readString() - self.part_vals.append(_elem911) + (_etype930, _size927) = iprot.readListBegin() + for _i931 in xrange(_size927): + _elem932 = iprot.readString() + self.part_vals.append(_elem932) iprot.readListEnd() else: iprot.skip(ftype) @@ -21058,8 +21363,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 iter912 in self.part_vals: - oprot.writeString(iter912) + for iter933 in self.part_vals: + oprot.writeString(iter933) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -21654,10 +21959,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype916, _size913) = iprot.readListBegin() - for _i917 in xrange(_size913): - _elem918 = iprot.readString() - self.part_vals.append(_elem918) + (_etype937, _size934) = iprot.readListBegin() + for _i938 in xrange(_size934): + _elem939 = iprot.readString() + self.part_vals.append(_elem939) iprot.readListEnd() else: iprot.skip(ftype) @@ -21687,8 +21992,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 iter919 in self.part_vals: - oprot.writeString(iter919) + for iter940 in self.part_vals: + oprot.writeString(iter940) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -21861,10 +22166,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype923, _size920) = iprot.readListBegin() - for _i924 in xrange(_size920): - _elem925 = iprot.readString() - self.part_vals.append(_elem925) + (_etype944, _size941) = iprot.readListBegin() + for _i945 in xrange(_size941): + _elem946 = iprot.readString() + self.part_vals.append(_elem946) iprot.readListEnd() else: iprot.skip(ftype) @@ -21900,8 +22205,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 iter926 in self.part_vals: - oprot.writeString(iter926) + for iter947 in self.part_vals: + oprot.writeString(iter947) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -22638,10 +22943,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype930, _size927) = iprot.readListBegin() - for _i931 in xrange(_size927): - _elem932 = iprot.readString() - self.part_vals.append(_elem932) + (_etype951, _size948) = iprot.readListBegin() + for _i952 in xrange(_size948): + _elem953 = iprot.readString() + self.part_vals.append(_elem953) iprot.readListEnd() else: iprot.skip(ftype) @@ -22666,8 +22971,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 iter933 in self.part_vals: - oprot.writeString(iter933) + for iter954 in self.part_vals: + oprot.writeString(iter954) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22826,11 +23131,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype935, _vtype936, _size934 ) = iprot.readMapBegin() - for _i938 in xrange(_size934): - _key939 = iprot.readString() - _val940 = iprot.readString() - self.partitionSpecs[_key939] = _val940 + (_ktype956, _vtype957, _size955 ) = iprot.readMapBegin() + for _i959 in xrange(_size955): + _key960 = iprot.readString() + _val961 = iprot.readString() + self.partitionSpecs[_key960] = _val961 iprot.readMapEnd() else: iprot.skip(ftype) @@ -22867,9 +23172,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 kiter941,viter942 in self.partitionSpecs.items(): - oprot.writeString(kiter941) - oprot.writeString(viter942) + for kiter962,viter963 in self.partitionSpecs.items(): + oprot.writeString(kiter962) + oprot.writeString(viter963) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -23074,11 +23379,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype944, _vtype945, _size943 ) = iprot.readMapBegin() - for _i947 in xrange(_size943): - _key948 = iprot.readString() - _val949 = iprot.readString() - self.partitionSpecs[_key948] = _val949 + (_ktype965, _vtype966, _size964 ) = iprot.readMapBegin() + for _i968 in xrange(_size964): + _key969 = iprot.readString() + _val970 = iprot.readString() + self.partitionSpecs[_key969] = _val970 iprot.readMapEnd() else: iprot.skip(ftype) @@ -23115,9 +23420,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 kiter950,viter951 in self.partitionSpecs.items(): - oprot.writeString(kiter950) - oprot.writeString(viter951) + for kiter971,viter972 in self.partitionSpecs.items(): + oprot.writeString(kiter971) + oprot.writeString(viter972) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -23200,11 +23505,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype955, _size952) = iprot.readListBegin() - for _i956 in xrange(_size952): - _elem957 = Partition() - _elem957.read(iprot) - self.success.append(_elem957) + (_etype976, _size973) = iprot.readListBegin() + for _i977 in xrange(_size973): + _elem978 = Partition() + _elem978.read(iprot) + self.success.append(_elem978) iprot.readListEnd() else: iprot.skip(ftype) @@ -23245,8 +23550,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 iter958 in self.success: - iter958.write(oprot) + for iter979 in self.success: + iter979.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -23340,10 +23645,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype962, _size959) = iprot.readListBegin() - for _i963 in xrange(_size959): - _elem964 = iprot.readString() - self.part_vals.append(_elem964) + (_etype983, _size980) = iprot.readListBegin() + for _i984 in xrange(_size980): + _elem985 = iprot.readString() + self.part_vals.append(_elem985) iprot.readListEnd() else: iprot.skip(ftype) @@ -23355,10 +23660,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype968, _size965) = iprot.readListBegin() - for _i969 in xrange(_size965): - _elem970 = iprot.readString() - self.group_names.append(_elem970) + (_etype989, _size986) = iprot.readListBegin() + for _i990 in xrange(_size986): + _elem991 = iprot.readString() + self.group_names.append(_elem991) iprot.readListEnd() else: iprot.skip(ftype) @@ -23383,8 +23688,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 iter971 in self.part_vals: - oprot.writeString(iter971) + for iter992 in self.part_vals: + oprot.writeString(iter992) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -23394,8 +23699,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 iter972 in self.group_names: - oprot.writeString(iter972) + for iter993 in self.group_names: + oprot.writeString(iter993) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23824,11 +24129,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype976, _size973) = iprot.readListBegin() - for _i977 in xrange(_size973): - _elem978 = Partition() - _elem978.read(iprot) - self.success.append(_elem978) + (_etype997, _size994) = iprot.readListBegin() + for _i998 in xrange(_size994): + _elem999 = Partition() + _elem999.read(iprot) + self.success.append(_elem999) iprot.readListEnd() else: iprot.skip(ftype) @@ -23857,8 +24162,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 iter979 in self.success: - iter979.write(oprot) + for iter1000 in self.success: + iter1000.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -23952,10 +24257,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype983, _size980) = iprot.readListBegin() - for _i984 in xrange(_size980): - _elem985 = iprot.readString() - self.group_names.append(_elem985) + (_etype1004, _size1001) = iprot.readListBegin() + for _i1005 in xrange(_size1001): + _elem1006 = iprot.readString() + self.group_names.append(_elem1006) iprot.readListEnd() else: iprot.skip(ftype) @@ -23988,8 +24293,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 iter986 in self.group_names: - oprot.writeString(iter986) + for iter1007 in self.group_names: + oprot.writeString(iter1007) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24050,11 +24355,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype990, _size987) = iprot.readListBegin() - for _i991 in xrange(_size987): - _elem992 = Partition() - _elem992.read(iprot) - self.success.append(_elem992) + (_etype1011, _size1008) = iprot.readListBegin() + for _i1012 in xrange(_size1008): + _elem1013 = Partition() + _elem1013.read(iprot) + self.success.append(_elem1013) iprot.readListEnd() else: iprot.skip(ftype) @@ -24083,8 +24388,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 iter993 in self.success: - iter993.write(oprot) + for iter1014 in self.success: + iter1014.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -24242,11 +24547,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype997, _size994) = iprot.readListBegin() - for _i998 in xrange(_size994): - _elem999 = PartitionSpec() - _elem999.read(iprot) - self.success.append(_elem999) + (_etype1018, _size1015) = iprot.readListBegin() + for _i1019 in xrange(_size1015): + _elem1020 = PartitionSpec() + _elem1020.read(iprot) + self.success.append(_elem1020) iprot.readListEnd() else: iprot.skip(ftype) @@ -24275,8 +24580,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 iter1000 in self.success: - iter1000.write(oprot) + for iter1021 in self.success: + iter1021.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -24434,10 +24739,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1004, _size1001) = iprot.readListBegin() - for _i1005 in xrange(_size1001): - _elem1006 = iprot.readString() - self.success.append(_elem1006) + (_etype1025, _size1022) = iprot.readListBegin() + for _i1026 in xrange(_size1022): + _elem1027 = iprot.readString() + self.success.append(_elem1027) iprot.readListEnd() else: iprot.skip(ftype) @@ -24466,8 +24771,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 iter1007 in self.success: - oprot.writeString(iter1007) + for iter1028 in self.success: + oprot.writeString(iter1028) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -24707,10 +25012,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1011, _size1008) = iprot.readListBegin() - for _i1012 in xrange(_size1008): - _elem1013 = iprot.readString() - self.part_vals.append(_elem1013) + (_etype1032, _size1029) = iprot.readListBegin() + for _i1033 in xrange(_size1029): + _elem1034 = iprot.readString() + self.part_vals.append(_elem1034) iprot.readListEnd() else: iprot.skip(ftype) @@ -24740,8 +25045,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 iter1014 in self.part_vals: - oprot.writeString(iter1014) + for iter1035 in self.part_vals: + oprot.writeString(iter1035) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -24805,11 +25110,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1018, _size1015) = iprot.readListBegin() - for _i1019 in xrange(_size1015): - _elem1020 = Partition() - _elem1020.read(iprot) - self.success.append(_elem1020) + (_etype1039, _size1036) = iprot.readListBegin() + for _i1040 in xrange(_size1036): + _elem1041 = Partition() + _elem1041.read(iprot) + self.success.append(_elem1041) iprot.readListEnd() else: iprot.skip(ftype) @@ -24838,8 +25143,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 iter1021 in self.success: - iter1021.write(oprot) + for iter1042 in self.success: + iter1042.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -24926,10 +25231,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1025, _size1022) = iprot.readListBegin() - for _i1026 in xrange(_size1022): - _elem1027 = iprot.readString() - self.part_vals.append(_elem1027) + (_etype1046, _size1043) = iprot.readListBegin() + for _i1047 in xrange(_size1043): + _elem1048 = iprot.readString() + self.part_vals.append(_elem1048) iprot.readListEnd() else: iprot.skip(ftype) @@ -24946,10 +25251,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype1031, _size1028) = iprot.readListBegin() - for _i1032 in xrange(_size1028): - _elem1033 = iprot.readString() - self.group_names.append(_elem1033) + (_etype1052, _size1049) = iprot.readListBegin() + for _i1053 in xrange(_size1049): + _elem1054 = iprot.readString() + self.group_names.append(_elem1054) iprot.readListEnd() else: iprot.skip(ftype) @@ -24974,8 +25279,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 iter1034 in self.part_vals: - oprot.writeString(iter1034) + for iter1055 in self.part_vals: + oprot.writeString(iter1055) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -24989,8 +25294,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 iter1035 in self.group_names: - oprot.writeString(iter1035) + for iter1056 in self.group_names: + oprot.writeString(iter1056) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -25052,11 +25357,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1039, _size1036) = iprot.readListBegin() - for _i1040 in xrange(_size1036): - _elem1041 = Partition() - _elem1041.read(iprot) - self.success.append(_elem1041) + (_etype1060, _size1057) = iprot.readListBegin() + for _i1061 in xrange(_size1057): + _elem1062 = Partition() + _elem1062.read(iprot) + self.success.append(_elem1062) iprot.readListEnd() else: iprot.skip(ftype) @@ -25085,8 +25390,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 iter1042 in self.success: - iter1042.write(oprot) + for iter1063 in self.success: + iter1063.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -25167,10 +25472,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1046, _size1043) = iprot.readListBegin() - for _i1047 in xrange(_size1043): - _elem1048 = iprot.readString() - self.part_vals.append(_elem1048) + (_etype1067, _size1064) = iprot.readListBegin() + for _i1068 in xrange(_size1064): + _elem1069 = iprot.readString() + self.part_vals.append(_elem1069) iprot.readListEnd() else: iprot.skip(ftype) @@ -25200,8 +25505,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 iter1049 in self.part_vals: - oprot.writeString(iter1049) + for iter1070 in self.part_vals: + oprot.writeString(iter1070) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -25265,10 +25570,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1053, _size1050) = iprot.readListBegin() - for _i1054 in xrange(_size1050): - _elem1055 = iprot.readString() - self.success.append(_elem1055) + (_etype1074, _size1071) = iprot.readListBegin() + for _i1075 in xrange(_size1071): + _elem1076 = iprot.readString() + self.success.append(_elem1076) iprot.readListEnd() else: iprot.skip(ftype) @@ -25297,8 +25602,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 iter1056 in self.success: - oprot.writeString(iter1056) + for iter1077 in self.success: + oprot.writeString(iter1077) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -25469,11 +25774,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1060, _size1057) = iprot.readListBegin() - for _i1061 in xrange(_size1057): - _elem1062 = Partition() - _elem1062.read(iprot) - self.success.append(_elem1062) + (_etype1081, _size1078) = iprot.readListBegin() + for _i1082 in xrange(_size1078): + _elem1083 = Partition() + _elem1083.read(iprot) + self.success.append(_elem1083) iprot.readListEnd() else: iprot.skip(ftype) @@ -25502,8 +25807,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 iter1063 in self.success: - iter1063.write(oprot) + for iter1084 in self.success: + iter1084.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -25674,11 +25979,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1067, _size1064) = iprot.readListBegin() - for _i1068 in xrange(_size1064): - _elem1069 = PartitionSpec() - _elem1069.read(iprot) - self.success.append(_elem1069) + (_etype1088, _size1085) = iprot.readListBegin() + for _i1089 in xrange(_size1085): + _elem1090 = PartitionSpec() + _elem1090.read(iprot) + self.success.append(_elem1090) iprot.readListEnd() else: iprot.skip(ftype) @@ -25707,8 +26012,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 iter1070 in self.success: - iter1070.write(oprot) + for iter1091 in self.success: + iter1091.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -26128,10 +26433,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype1074, _size1071) = iprot.readListBegin() - for _i1075 in xrange(_size1071): - _elem1076 = iprot.readString() - self.names.append(_elem1076) + (_etype1095, _size1092) = iprot.readListBegin() + for _i1096 in xrange(_size1092): + _elem1097 = iprot.readString() + self.names.append(_elem1097) iprot.readListEnd() else: iprot.skip(ftype) @@ -26156,8 +26461,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 iter1077 in self.names: - oprot.writeString(iter1077) + for iter1098 in self.names: + oprot.writeString(iter1098) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -26216,11 +26521,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1081, _size1078) = iprot.readListBegin() - for _i1082 in xrange(_size1078): - _elem1083 = Partition() - _elem1083.read(iprot) - self.success.append(_elem1083) + (_etype1102, _size1099) = iprot.readListBegin() + for _i1103 in xrange(_size1099): + _elem1104 = Partition() + _elem1104.read(iprot) + self.success.append(_elem1104) iprot.readListEnd() else: iprot.skip(ftype) @@ -26249,8 +26554,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 iter1084 in self.success: - iter1084.write(oprot) + for iter1105 in self.success: + iter1105.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -26500,11 +26805,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype1088, _size1085) = iprot.readListBegin() - for _i1089 in xrange(_size1085): - _elem1090 = Partition() - _elem1090.read(iprot) - self.new_parts.append(_elem1090) + (_etype1109, _size1106) = iprot.readListBegin() + for _i1110 in xrange(_size1106): + _elem1111 = Partition() + _elem1111.read(iprot) + self.new_parts.append(_elem1111) iprot.readListEnd() else: iprot.skip(ftype) @@ -26529,8 +26834,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 iter1091 in self.new_parts: - iter1091.write(oprot) + for iter1112 in self.new_parts: + iter1112.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -26683,11 +26988,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype1095, _size1092) = iprot.readListBegin() - for _i1096 in xrange(_size1092): - _elem1097 = Partition() - _elem1097.read(iprot) - self.new_parts.append(_elem1097) + (_etype1116, _size1113) = iprot.readListBegin() + for _i1117 in xrange(_size1113): + _elem1118 = Partition() + _elem1118.read(iprot) + self.new_parts.append(_elem1118) iprot.readListEnd() else: iprot.skip(ftype) @@ -26718,8 +27023,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 iter1098 in self.new_parts: - iter1098.write(oprot) + for iter1119 in self.new_parts: + iter1119.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -27063,10 +27368,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1102, _size1099) = iprot.readListBegin() - for _i1103 in xrange(_size1099): - _elem1104 = iprot.readString() - self.part_vals.append(_elem1104) + (_etype1123, _size1120) = iprot.readListBegin() + for _i1124 in xrange(_size1120): + _elem1125 = iprot.readString() + self.part_vals.append(_elem1125) iprot.readListEnd() else: iprot.skip(ftype) @@ -27097,8 +27402,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 iter1105 in self.part_vals: - oprot.writeString(iter1105) + for iter1126 in self.part_vals: + oprot.writeString(iter1126) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -27240,10 +27545,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_vals = [] - (_etype1109, _size1106) = iprot.readListBegin() - for _i1110 in xrange(_size1106): - _elem1111 = iprot.readString() - self.part_vals.append(_elem1111) + (_etype1130, _size1127) = iprot.readListBegin() + for _i1131 in xrange(_size1127): + _elem1132 = iprot.readString() + self.part_vals.append(_elem1132) iprot.readListEnd() else: iprot.skip(ftype) @@ -27265,8 +27570,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 iter1112 in self.part_vals: - oprot.writeString(iter1112) + for iter1133 in self.part_vals: + oprot.writeString(iter1133) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -27624,10 +27929,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1116, _size1113) = iprot.readListBegin() - for _i1117 in xrange(_size1113): - _elem1118 = iprot.readString() - self.success.append(_elem1118) + (_etype1137, _size1134) = iprot.readListBegin() + for _i1138 in xrange(_size1134): + _elem1139 = iprot.readString() + self.success.append(_elem1139) iprot.readListEnd() else: iprot.skip(ftype) @@ -27650,8 +27955,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 iter1119 in self.success: - oprot.writeString(iter1119) + for iter1140 in self.success: + oprot.writeString(iter1140) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27775,11 +28080,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype1121, _vtype1122, _size1120 ) = iprot.readMapBegin() - for _i1124 in xrange(_size1120): - _key1125 = iprot.readString() - _val1126 = iprot.readString() - self.success[_key1125] = _val1126 + (_ktype1142, _vtype1143, _size1141 ) = iprot.readMapBegin() + for _i1145 in xrange(_size1141): + _key1146 = iprot.readString() + _val1147 = iprot.readString() + self.success[_key1146] = _val1147 iprot.readMapEnd() else: iprot.skip(ftype) @@ -27802,9 +28107,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 kiter1127,viter1128 in self.success.items(): - oprot.writeString(kiter1127) - oprot.writeString(viter1128) + for kiter1148,viter1149 in self.success.items(): + oprot.writeString(kiter1148) + oprot.writeString(viter1149) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27880,11 +28185,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype1130, _vtype1131, _size1129 ) = iprot.readMapBegin() - for _i1133 in xrange(_size1129): - _key1134 = iprot.readString() - _val1135 = iprot.readString() - self.part_vals[_key1134] = _val1135 + (_ktype1151, _vtype1152, _size1150 ) = iprot.readMapBegin() + for _i1154 in xrange(_size1150): + _key1155 = iprot.readString() + _val1156 = iprot.readString() + self.part_vals[_key1155] = _val1156 iprot.readMapEnd() else: iprot.skip(ftype) @@ -27914,9 +28219,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 kiter1136,viter1137 in self.part_vals.items(): - oprot.writeString(kiter1136) - oprot.writeString(viter1137) + for kiter1157,viter1158 in self.part_vals.items(): + oprot.writeString(kiter1157) + oprot.writeString(viter1158) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -28130,11 +28435,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype1139, _vtype1140, _size1138 ) = iprot.readMapBegin() - for _i1142 in xrange(_size1138): - _key1143 = iprot.readString() - _val1144 = iprot.readString() - self.part_vals[_key1143] = _val1144 + (_ktype1160, _vtype1161, _size1159 ) = iprot.readMapBegin() + for _i1163 in xrange(_size1159): + _key1164 = iprot.readString() + _val1165 = iprot.readString() + self.part_vals[_key1164] = _val1165 iprot.readMapEnd() else: iprot.skip(ftype) @@ -28164,9 +28469,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 kiter1145,viter1146 in self.part_vals.items(): - oprot.writeString(kiter1145) - oprot.writeString(viter1146) + for kiter1166,viter1167 in self.part_vals.items(): + oprot.writeString(kiter1166) + oprot.writeString(viter1167) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -29221,11 +29526,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1150, _size1147) = iprot.readListBegin() - for _i1151 in xrange(_size1147): - _elem1152 = Index() - _elem1152.read(iprot) - self.success.append(_elem1152) + (_etype1171, _size1168) = iprot.readListBegin() + for _i1172 in xrange(_size1168): + _elem1173 = Index() + _elem1173.read(iprot) + self.success.append(_elem1173) iprot.readListEnd() else: iprot.skip(ftype) @@ -29254,8 +29559,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 iter1153 in self.success: - iter1153.write(oprot) + for iter1174 in self.success: + iter1174.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29410,10 +29715,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1157, _size1154) = iprot.readListBegin() - for _i1158 in xrange(_size1154): - _elem1159 = iprot.readString() - self.success.append(_elem1159) + (_etype1178, _size1175) = iprot.readListBegin() + for _i1179 in xrange(_size1175): + _elem1180 = iprot.readString() + self.success.append(_elem1180) iprot.readListEnd() else: iprot.skip(ftype) @@ -29436,8 +29741,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 iter1160 in self.success: - oprot.writeString(iter1160) + for iter1181 in self.success: + oprot.writeString(iter1181) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -30104,6 +30409,165 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class get_default_constraints_args: + """ + Attributes: + - request + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', (DefaultConstraintsRequest, DefaultConstraintsRequest.thrift_spec), None, ), # 1 + ) + + def __init__(self, request=None,): + self.request = request + + 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.request = DefaultConstraintsRequest() + self.request.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_default_constraints_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.request) + 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_default_constraints_result: + """ + Attributes: + - success + - o1 + - o2 + """ + + thrift_spec = ( + (0, TType.STRUCT, 'success', (DefaultConstraintsResponse, DefaultConstraintsResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 + ) + + def __init__(self, success=None, o1=None, o2=None,): + self.success = success + self.o1 = o1 + self.o2 = o2 + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = DefaultConstraintsResponse() + self.success.read(iprot) + 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 = NoSuchObjectException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('get_default_constraints_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + if self.o2 is not None: + oprot.writeFieldBegin('o2', TType.STRUCT, 2) + self.o2.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + class update_table_column_statistics_args: """ Attributes: @@ -32621,10 +33085,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1164, _size1161) = iprot.readListBegin() - for _i1165 in xrange(_size1161): - _elem1166 = iprot.readString() - self.success.append(_elem1166) + (_etype1185, _size1182) = iprot.readListBegin() + for _i1186 in xrange(_size1182): + _elem1187 = iprot.readString() + self.success.append(_elem1187) iprot.readListEnd() else: iprot.skip(ftype) @@ -32647,8 +33111,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 iter1167 in self.success: - oprot.writeString(iter1167) + for iter1188 in self.success: + oprot.writeString(iter1188) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -33336,10 +33800,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1171, _size1168) = iprot.readListBegin() - for _i1172 in xrange(_size1168): - _elem1173 = iprot.readString() - self.success.append(_elem1173) + (_etype1192, _size1189) = iprot.readListBegin() + for _i1193 in xrange(_size1189): + _elem1194 = iprot.readString() + self.success.append(_elem1194) iprot.readListEnd() else: iprot.skip(ftype) @@ -33362,8 +33826,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 iter1174 in self.success: - oprot.writeString(iter1174) + for iter1195 in self.success: + oprot.writeString(iter1195) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -33877,11 +34341,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1178, _size1175) = iprot.readListBegin() - for _i1179 in xrange(_size1175): - _elem1180 = Role() - _elem1180.read(iprot) - self.success.append(_elem1180) + (_etype1199, _size1196) = iprot.readListBegin() + for _i1200 in xrange(_size1196): + _elem1201 = Role() + _elem1201.read(iprot) + self.success.append(_elem1201) iprot.readListEnd() else: iprot.skip(ftype) @@ -33904,8 +34368,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 iter1181 in self.success: - iter1181.write(oprot) + for iter1202 in self.success: + iter1202.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -34414,10 +34878,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype1185, _size1182) = iprot.readListBegin() - for _i1186 in xrange(_size1182): - _elem1187 = iprot.readString() - self.group_names.append(_elem1187) + (_etype1206, _size1203) = iprot.readListBegin() + for _i1207 in xrange(_size1203): + _elem1208 = iprot.readString() + self.group_names.append(_elem1208) iprot.readListEnd() else: iprot.skip(ftype) @@ -34442,8 +34906,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 iter1188 in self.group_names: - oprot.writeString(iter1188) + for iter1209 in self.group_names: + oprot.writeString(iter1209) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -34670,11 +35134,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1192, _size1189) = iprot.readListBegin() - for _i1193 in xrange(_size1189): - _elem1194 = HiveObjectPrivilege() - _elem1194.read(iprot) - self.success.append(_elem1194) + (_etype1213, _size1210) = iprot.readListBegin() + for _i1214 in xrange(_size1210): + _elem1215 = HiveObjectPrivilege() + _elem1215.read(iprot) + self.success.append(_elem1215) iprot.readListEnd() else: iprot.skip(ftype) @@ -34697,8 +35161,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 iter1195 in self.success: - iter1195.write(oprot) + for iter1216 in self.success: + iter1216.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -35196,10 +35660,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype1199, _size1196) = iprot.readListBegin() - for _i1200 in xrange(_size1196): - _elem1201 = iprot.readString() - self.group_names.append(_elem1201) + (_etype1220, _size1217) = iprot.readListBegin() + for _i1221 in xrange(_size1217): + _elem1222 = iprot.readString() + self.group_names.append(_elem1222) iprot.readListEnd() else: iprot.skip(ftype) @@ -35220,8 +35684,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 iter1202 in self.group_names: - oprot.writeString(iter1202) + for iter1223 in self.group_names: + oprot.writeString(iter1223) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -35276,10 +35740,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1206, _size1203) = iprot.readListBegin() - for _i1207 in xrange(_size1203): - _elem1208 = iprot.readString() - self.success.append(_elem1208) + (_etype1227, _size1224) = iprot.readListBegin() + for _i1228 in xrange(_size1224): + _elem1229 = iprot.readString() + self.success.append(_elem1229) iprot.readListEnd() else: iprot.skip(ftype) @@ -35302,8 +35766,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 iter1209 in self.success: - oprot.writeString(iter1209) + for iter1230 in self.success: + oprot.writeString(iter1230) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -36235,10 +36699,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1213, _size1210) = iprot.readListBegin() - for _i1214 in xrange(_size1210): - _elem1215 = iprot.readString() - self.success.append(_elem1215) + (_etype1234, _size1231) = iprot.readListBegin() + for _i1235 in xrange(_size1231): + _elem1236 = iprot.readString() + self.success.append(_elem1236) iprot.readListEnd() else: iprot.skip(ftype) @@ -36255,8 +36719,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 iter1216 in self.success: - oprot.writeString(iter1216) + for iter1237 in self.success: + oprot.writeString(iter1237) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -36783,10 +37247,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1220, _size1217) = iprot.readListBegin() - for _i1221 in xrange(_size1217): - _elem1222 = iprot.readString() - self.success.append(_elem1222) + (_etype1241, _size1238) = iprot.readListBegin() + for _i1242 in xrange(_size1238): + _elem1243 = iprot.readString() + self.success.append(_elem1243) iprot.readListEnd() else: iprot.skip(ftype) @@ -36803,8 +37267,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 iter1223 in self.success: - oprot.writeString(iter1223) + for iter1244 in self.success: + oprot.writeString(iter1244) oprot.writeListEnd() 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 9a504e1fd1..f31f871ac5 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 @@ -1154,6 +1154,162 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class SQLDefaultConstraint: + """ + Attributes: + - table_db + - table_name + - column_name + - default_value + - dc_name + - enable_cstr + - validate_cstr + - rely_cstr + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'table_db', None, None, ), # 1 + (2, TType.STRING, 'table_name', None, None, ), # 2 + (3, TType.STRING, 'column_name', None, None, ), # 3 + (4, TType.STRING, 'default_value', None, None, ), # 4 + (5, TType.STRING, 'dc_name', None, None, ), # 5 + (6, TType.BOOL, 'enable_cstr', None, None, ), # 6 + (7, TType.BOOL, 'validate_cstr', None, None, ), # 7 + (8, TType.BOOL, 'rely_cstr', None, None, ), # 8 + ) + + def __init__(self, table_db=None, table_name=None, column_name=None, default_value=None, dc_name=None, enable_cstr=None, validate_cstr=None, rely_cstr=None,): + self.table_db = table_db + self.table_name = table_name + self.column_name = column_name + self.default_value = default_value + self.dc_name = dc_name + self.enable_cstr = enable_cstr + self.validate_cstr = validate_cstr + self.rely_cstr = rely_cstr + + 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.table_db = 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.STRING: + self.column_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.default_value = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.dc_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.BOOL: + self.enable_cstr = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.BOOL: + self.validate_cstr = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.BOOL: + self.rely_cstr = iprot.readBool() + 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('SQLDefaultConstraint') + if self.table_db is not None: + oprot.writeFieldBegin('table_db', TType.STRING, 1) + oprot.writeString(self.table_db) + 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.column_name is not None: + oprot.writeFieldBegin('column_name', TType.STRING, 3) + oprot.writeString(self.column_name) + oprot.writeFieldEnd() + if self.default_value is not None: + oprot.writeFieldBegin('default_value', TType.STRING, 4) + oprot.writeString(self.default_value) + oprot.writeFieldEnd() + if self.dc_name is not None: + oprot.writeFieldBegin('dc_name', TType.STRING, 5) + oprot.writeString(self.dc_name) + oprot.writeFieldEnd() + if self.enable_cstr is not None: + oprot.writeFieldBegin('enable_cstr', TType.BOOL, 6) + oprot.writeBool(self.enable_cstr) + oprot.writeFieldEnd() + if self.validate_cstr is not None: + oprot.writeFieldBegin('validate_cstr', TType.BOOL, 7) + oprot.writeBool(self.validate_cstr) + oprot.writeFieldEnd() + if self.rely_cstr is not None: + oprot.writeFieldBegin('rely_cstr', TType.BOOL, 8) + oprot.writeBool(self.rely_cstr) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.table_db) + value = (value * 31) ^ hash(self.table_name) + value = (value * 31) ^ hash(self.column_name) + value = (value * 31) ^ hash(self.default_value) + value = (value * 31) ^ hash(self.dc_name) + value = (value * 31) ^ hash(self.enable_cstr) + value = (value * 31) ^ hash(self.validate_cstr) + value = (value * 31) ^ hash(self.rely_cstr) + 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 Type: """ Attributes: @@ -6949,26 +7105,184 @@ 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('NotNullConstraintsResponse') - 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) + oprot.writeStructBegin('NotNullConstraintsResponse') + 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) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.notNullConstraints is None: + raise TProtocol.TProtocolException(message='Required field notNullConstraints is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.notNullConstraints) + 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 DefaultConstraintsRequest: + """ + Attributes: + - db_name + - tbl_name + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', None, None, ), # 1 + (2, TType.STRING, 'tbl_name', None, None, ), # 2 + ) + + def __init__(self, db_name=None, tbl_name=None,): + self.db_name = db_name + self.tbl_name = tbl_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) + elif fid == 2: + if ftype == TType.STRING: + self.tbl_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('DefaultConstraintsRequest') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name) + oprot.writeFieldEnd() + if self.tbl_name is not None: + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.db_name is None: + raise TProtocol.TProtocolException(message='Required field db_name is unset!') + if self.tbl_name is None: + raise TProtocol.TProtocolException(message='Required field tbl_name is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.db_name) + value = (value * 31) ^ hash(self.tbl_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 DefaultConstraintsResponse: + """ + Attributes: + - defaultConstraints + """ + + thrift_spec = ( + None, # 0 + (1, TType.LIST, 'defaultConstraints', (TType.STRUCT,(SQLDefaultConstraint, SQLDefaultConstraint.thrift_spec)), None, ), # 1 + ) + + def __init__(self, defaultConstraints=None,): + self.defaultConstraints = defaultConstraints + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.LIST: + self.defaultConstraints = [] + (_etype316, _size313) = iprot.readListBegin() + for _i317 in xrange(_size313): + _elem318 = SQLDefaultConstraint() + _elem318.read(iprot) + self.defaultConstraints.append(_elem318) + 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('DefaultConstraintsResponse') + if self.defaultConstraints is not None: + oprot.writeFieldBegin('defaultConstraints', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.defaultConstraints)) + for iter319 in self.defaultConstraints: + iter319.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.notNullConstraints is None: - raise TProtocol.TProtocolException(message='Required field notNullConstraints is unset!') + if self.defaultConstraints is None: + raise TProtocol.TProtocolException(message='Required field defaultConstraints is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.notNullConstraints) + value = (value * 31) ^ hash(self.defaultConstraints) return value def __repr__(self): @@ -7105,11 +7419,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) + (_etype323, _size320) = iprot.readListBegin() + for _i324 in xrange(_size320): + _elem325 = SQLPrimaryKey() + _elem325.read(iprot) + self.primaryKeyCols.append(_elem325) iprot.readListEnd() else: iprot.skip(ftype) @@ -7126,8 +7440,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 iter326 in self.primaryKeyCols: + iter326.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7181,11 +7495,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) + (_etype330, _size327) = iprot.readListBegin() + for _i331 in xrange(_size327): + _elem332 = SQLForeignKey() + _elem332.read(iprot) + self.foreignKeyCols.append(_elem332) iprot.readListEnd() else: iprot.skip(ftype) @@ -7202,8 +7516,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 iter333 in self.foreignKeyCols: + iter333.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7257,11 +7571,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) + (_etype337, _size334) = iprot.readListBegin() + for _i338 in xrange(_size334): + _elem339 = SQLUniqueConstraint() + _elem339.read(iprot) + self.uniqueConstraintCols.append(_elem339) iprot.readListEnd() else: iprot.skip(ftype) @@ -7278,8 +7592,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 iter340 in self.uniqueConstraintCols: + iter340.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7333,11 +7647,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) + (_etype344, _size341) = iprot.readListBegin() + for _i345 in xrange(_size341): + _elem346 = SQLNotNullConstraint() + _elem346.read(iprot) + self.notNullConstraintCols.append(_elem346) iprot.readListEnd() else: iprot.skip(ftype) @@ -7354,8 +7668,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 iter347 in self.notNullConstraintCols: + iter347.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7383,6 +7697,82 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class AddDefaultConstraintRequest: + """ + Attributes: + - defaultConstraintCols + """ + + thrift_spec = ( + None, # 0 + (1, TType.LIST, 'defaultConstraintCols', (TType.STRUCT,(SQLDefaultConstraint, SQLDefaultConstraint.thrift_spec)), None, ), # 1 + ) + + def __init__(self, defaultConstraintCols=None,): + self.defaultConstraintCols = defaultConstraintCols + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.LIST: + self.defaultConstraintCols = [] + (_etype351, _size348) = iprot.readListBegin() + for _i352 in xrange(_size348): + _elem353 = SQLDefaultConstraint() + _elem353.read(iprot) + self.defaultConstraintCols.append(_elem353) + 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('AddDefaultConstraintRequest') + if self.defaultConstraintCols is not None: + oprot.writeFieldBegin('defaultConstraintCols', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.defaultConstraintCols)) + for iter354 in self.defaultConstraintCols: + iter354.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.defaultConstraintCols is None: + raise TProtocol.TProtocolException(message='Required field defaultConstraintCols is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.defaultConstraintCols) + 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 PartitionsByExprResult: """ Attributes: @@ -7412,11 +7802,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) + (_etype358, _size355) = iprot.readListBegin() + for _i359 in xrange(_size355): + _elem360 = Partition() + _elem360.read(iprot) + self.partitions.append(_elem360) iprot.readListEnd() else: iprot.skip(ftype) @@ -7438,8 +7828,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 iter361 in self.partitions: + iter361.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.hasUnknownPartitions is not None: @@ -7623,11 +8013,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) + (_etype365, _size362) = iprot.readListBegin() + for _i366 in xrange(_size362): + _elem367 = ColumnStatisticsObj() + _elem367.read(iprot) + self.tableStats.append(_elem367) iprot.readListEnd() else: iprot.skip(ftype) @@ -7644,8 +8034,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 iter368 in self.tableStats: + iter368.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7699,17 +8089,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) + (_ktype370, _vtype371, _size369 ) = iprot.readMapBegin() + for _i373 in xrange(_size369): + _key374 = iprot.readString() + _val375 = [] + (_etype379, _size376) = iprot.readListBegin() + for _i380 in xrange(_size376): + _elem381 = ColumnStatisticsObj() + _elem381.read(iprot) + _val375.append(_elem381) iprot.readListEnd() - self.partStats[_key360] = _val361 + self.partStats[_key374] = _val375 iprot.readMapEnd() else: iprot.skip(ftype) @@ -7726,11 +8116,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 kiter382,viter383 in self.partStats.items(): + oprot.writeString(kiter382) + oprot.writeListBegin(TType.STRUCT, len(viter383)) + for iter384 in viter383: + iter384.write(oprot) oprot.writeListEnd() oprot.writeMapEnd() oprot.writeFieldEnd() @@ -7801,10 +8191,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) + (_etype388, _size385) = iprot.readListBegin() + for _i389 in xrange(_size385): + _elem390 = iprot.readString() + self.colNames.append(_elem390) iprot.readListEnd() else: iprot.skip(ftype) @@ -7829,8 +8219,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 iter391 in self.colNames: + oprot.writeString(iter391) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7909,20 +8299,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) + (_etype395, _size392) = iprot.readListBegin() + for _i396 in xrange(_size392): + _elem397 = iprot.readString() + self.colNames.append(_elem397) 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) + (_etype401, _size398) = iprot.readListBegin() + for _i402 in xrange(_size398): + _elem403 = iprot.readString() + self.partNames.append(_elem403) iprot.readListEnd() else: iprot.skip(ftype) @@ -7947,15 +8337,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 iter404 in self.colNames: + oprot.writeString(iter404) 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 iter405 in self.partNames: + oprot.writeString(iter405) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8018,11 +8408,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) + (_etype409, _size406) = iprot.readListBegin() + for _i410 in xrange(_size406): + _elem411 = Partition() + _elem411.read(iprot) + self.partitions.append(_elem411) iprot.readListEnd() else: iprot.skip(ftype) @@ -8039,8 +8429,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 iter412 in self.partitions: + iter412.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8114,11 +8504,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) + (_etype416, _size413) = iprot.readListBegin() + for _i417 in xrange(_size413): + _elem418 = Partition() + _elem418.read(iprot) + self.parts.append(_elem418) iprot.readListEnd() else: iprot.skip(ftype) @@ -8153,8 +8543,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 iter419 in self.parts: + iter419.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ifNotExists is not None: @@ -8226,11 +8616,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) + (_etype423, _size420) = iprot.readListBegin() + for _i424 in xrange(_size420): + _elem425 = Partition() + _elem425.read(iprot) + self.partitions.append(_elem425) iprot.readListEnd() else: iprot.skip(ftype) @@ -8247,8 +8637,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 iter426 in self.partitions: + iter426.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8383,21 +8773,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) + (_etype430, _size427) = iprot.readListBegin() + for _i431 in xrange(_size427): + _elem432 = iprot.readString() + self.names.append(_elem432) 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) + (_etype436, _size433) = iprot.readListBegin() + for _i437 in xrange(_size433): + _elem438 = DropPartitionsExpr() + _elem438.read(iprot) + self.exprs.append(_elem438) iprot.readListEnd() else: iprot.skip(ftype) @@ -8414,15 +8804,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 iter439 in self.names: + oprot.writeString(iter439) 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 iter440 in self.exprs: + iter440.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8670,11 +9060,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) + (_etype444, _size441) = iprot.readListBegin() + for _i445 in xrange(_size441): + _elem446 = FieldSchema() + _elem446.read(iprot) + self.partitionKeys.append(_elem446) iprot.readListEnd() else: iprot.skip(ftype) @@ -8691,11 +9081,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) + (_etype450, _size447) = iprot.readListBegin() + for _i451 in xrange(_size447): + _elem452 = FieldSchema() + _elem452.read(iprot) + self.partitionOrder.append(_elem452) iprot.readListEnd() else: iprot.skip(ftype) @@ -8730,8 +9120,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 iter453 in self.partitionKeys: + iter453.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.applyDistinct is not None: @@ -8745,8 +9135,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 iter454 in self.partitionOrder: + iter454.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ascending is not None: @@ -8819,10 +9209,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) + (_etype458, _size455) = iprot.readListBegin() + for _i459 in xrange(_size455): + _elem460 = iprot.readString() + self.row.append(_elem460) iprot.readListEnd() else: iprot.skip(ftype) @@ -8839,8 +9229,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 iter461 in self.row: + oprot.writeString(iter461) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8894,11 +9284,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) + (_etype465, _size462) = iprot.readListBegin() + for _i466 in xrange(_size462): + _elem467 = PartitionValuesRow() + _elem467.read(iprot) + self.partitionValues.append(_elem467) iprot.readListEnd() else: iprot.skip(ftype) @@ -8915,8 +9305,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 iter468 in self.partitionValues: + iter468.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9104,11 +9494,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) + (_etype472, _size469) = iprot.readListBegin() + for _i473 in xrange(_size469): + _elem474 = ResourceUri() + _elem474.read(iprot) + self.resourceUris.append(_elem474) iprot.readListEnd() else: iprot.skip(ftype) @@ -9153,8 +9543,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 iter475 in self.resourceUris: + iter475.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9398,11 +9788,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) + (_etype479, _size476) = iprot.readListBegin() + for _i480 in xrange(_size476): + _elem481 = TxnInfo() + _elem481.read(iprot) + self.open_txns.append(_elem481) iprot.readListEnd() else: iprot.skip(ftype) @@ -9423,8 +9813,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 iter482 in self.open_txns: + iter482.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9495,10 +9885,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) + (_etype486, _size483) = iprot.readListBegin() + for _i487 in xrange(_size483): + _elem488 = iprot.readI64() + self.open_txns.append(_elem488) iprot.readListEnd() else: iprot.skip(ftype) @@ -9529,8 +9919,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 iter489 in self.open_txns: + oprot.writeI64(iter489) oprot.writeListEnd() oprot.writeFieldEnd() if self.min_open_txn is not None: @@ -9709,10 +10099,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) + (_etype493, _size490) = iprot.readListBegin() + for _i494 in xrange(_size490): + _elem495 = iprot.readI64() + self.txn_ids.append(_elem495) iprot.readListEnd() else: iprot.skip(ftype) @@ -9729,8 +10119,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 iter496 in self.txn_ids: + oprot.writeI64(iter496) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9851,10 +10241,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) + (_etype500, _size497) = iprot.readListBegin() + for _i501 in xrange(_size497): + _elem502 = iprot.readI64() + self.txn_ids.append(_elem502) iprot.readListEnd() else: iprot.skip(ftype) @@ -9871,8 +10261,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 iter503 in self.txn_ids: + oprot.writeI64(iter503) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10167,11 +10557,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) + (_etype507, _size504) = iprot.readListBegin() + for _i508 in xrange(_size504): + _elem509 = LockComponent() + _elem509.read(iprot) + self.component.append(_elem509) iprot.readListEnd() else: iprot.skip(ftype) @@ -10208,8 +10598,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 iter510 in self.component: + iter510.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.txnid is not None: @@ -10907,11 +11297,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) + (_etype514, _size511) = iprot.readListBegin() + for _i515 in xrange(_size511): + _elem516 = ShowLocksResponseElement() + _elem516.read(iprot) + self.locks.append(_elem516) iprot.readListEnd() else: iprot.skip(ftype) @@ -10928,8 +11318,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 iter517 in self.locks: + iter517.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11144,20 +11534,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) + (_etype521, _size518) = iprot.readSetBegin() + for _i522 in xrange(_size518): + _elem523 = iprot.readI64() + self.aborted.add(_elem523) 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) + (_etype527, _size524) = iprot.readSetBegin() + for _i528 in xrange(_size524): + _elem529 = iprot.readI64() + self.nosuch.add(_elem529) iprot.readSetEnd() else: iprot.skip(ftype) @@ -11174,15 +11564,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 iter530 in self.aborted: + oprot.writeI64(iter530) 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 iter531 in self.nosuch: + oprot.writeI64(iter531) oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11279,11 +11669,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 + (_ktype533, _vtype534, _size532 ) = iprot.readMapBegin() + for _i536 in xrange(_size532): + _key537 = iprot.readString() + _val538 = iprot.readString() + self.properties[_key537] = _val538 iprot.readMapEnd() else: iprot.skip(ftype) @@ -11320,9 +11710,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 kiter539,viter540 in self.properties.items(): + oprot.writeString(kiter539) + oprot.writeString(viter540) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11757,11 +12147,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) + (_etype544, _size541) = iprot.readListBegin() + for _i545 in xrange(_size541): + _elem546 = ShowCompactResponseElement() + _elem546.read(iprot) + self.compacts.append(_elem546) iprot.readListEnd() else: iprot.skip(ftype) @@ -11778,8 +12168,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 iter547 in self.compacts: + iter547.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11860,10 +12250,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) + (_etype551, _size548) = iprot.readListBegin() + for _i552 in xrange(_size548): + _elem553 = iprot.readString() + self.partitionnames.append(_elem553) iprot.readListEnd() else: iprot.skip(ftype) @@ -11897,8 +12287,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 iter554 in self.partitionnames: + oprot.writeString(iter554) oprot.writeListEnd() oprot.writeFieldEnd() if self.operationType is not None: @@ -12117,10 +12507,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.SET: self.tablesUsed = set() - (_etype544, _size541) = iprot.readSetBegin() - for _i545 in xrange(_size541): - _elem546 = iprot.readString() - self.tablesUsed.add(_elem546) + (_etype558, _size555) = iprot.readSetBegin() + for _i559 in xrange(_size555): + _elem560 = iprot.readString() + self.tablesUsed.add(_elem560) iprot.readSetEnd() else: iprot.skip(ftype) @@ -12150,8 +12540,8 @@ def write(self, oprot): if self.tablesUsed is not None: oprot.writeFieldBegin('tablesUsed', TType.SET, 3) oprot.writeSetBegin(TType.STRING, len(self.tablesUsed)) - for iter547 in self.tablesUsed: - oprot.writeString(iter547) + for iter561 in self.tablesUsed: + oprot.writeString(iter561) oprot.writeSetEnd() oprot.writeFieldEnd() if self.validTxnList is not None: @@ -12447,11 +12837,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.events = [] - (_etype551, _size548) = iprot.readListBegin() - for _i552 in xrange(_size548): - _elem553 = NotificationEvent() - _elem553.read(iprot) - self.events.append(_elem553) + (_etype565, _size562) = iprot.readListBegin() + for _i566 in xrange(_size562): + _elem567 = NotificationEvent() + _elem567.read(iprot) + self.events.append(_elem567) iprot.readListEnd() else: iprot.skip(ftype) @@ -12468,8 +12858,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 iter554 in self.events: - iter554.write(oprot) + for iter568 in self.events: + iter568.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12750,20 +13140,20 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.filesAdded = [] - (_etype558, _size555) = iprot.readListBegin() - for _i559 in xrange(_size555): - _elem560 = iprot.readString() - self.filesAdded.append(_elem560) + (_etype572, _size569) = iprot.readListBegin() + for _i573 in xrange(_size569): + _elem574 = iprot.readString() + self.filesAdded.append(_elem574) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.filesAddedChecksum = [] - (_etype564, _size561) = iprot.readListBegin() - for _i565 in xrange(_size561): - _elem566 = iprot.readString() - self.filesAddedChecksum.append(_elem566) + (_etype578, _size575) = iprot.readListBegin() + for _i579 in xrange(_size575): + _elem580 = iprot.readString() + self.filesAddedChecksum.append(_elem580) iprot.readListEnd() else: iprot.skip(ftype) @@ -12784,15 +13174,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 iter567 in self.filesAdded: - oprot.writeString(iter567) + for iter581 in self.filesAdded: + oprot.writeString(iter581) oprot.writeListEnd() oprot.writeFieldEnd() if self.filesAddedChecksum is not None: oprot.writeFieldBegin('filesAddedChecksum', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.filesAddedChecksum)) - for iter568 in self.filesAddedChecksum: - oprot.writeString(iter568) + for iter582 in self.filesAddedChecksum: + oprot.writeString(iter582) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12947,10 +13337,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.partitionVals = [] - (_etype572, _size569) = iprot.readListBegin() - for _i573 in xrange(_size569): - _elem574 = iprot.readString() - self.partitionVals.append(_elem574) + (_etype586, _size583) = iprot.readListBegin() + for _i587 in xrange(_size583): + _elem588 = iprot.readString() + self.partitionVals.append(_elem588) iprot.readListEnd() else: iprot.skip(ftype) @@ -12983,8 +13373,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 iter575 in self.partitionVals: - oprot.writeString(iter575) + for iter589 in self.partitionVals: + oprot.writeString(iter589) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13171,12 +13561,12 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype577, _vtype578, _size576 ) = iprot.readMapBegin() - for _i580 in xrange(_size576): - _key581 = iprot.readI64() - _val582 = MetadataPpdResult() - _val582.read(iprot) - self.metadata[_key581] = _val582 + (_ktype591, _vtype592, _size590 ) = iprot.readMapBegin() + for _i594 in xrange(_size590): + _key595 = iprot.readI64() + _val596 = MetadataPpdResult() + _val596.read(iprot) + self.metadata[_key595] = _val596 iprot.readMapEnd() else: iprot.skip(ftype) @@ -13198,9 +13588,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 kiter583,viter584 in self.metadata.items(): - oprot.writeI64(kiter583) - viter584.write(oprot) + for kiter597,viter598 in self.metadata.items(): + oprot.writeI64(kiter597) + viter598.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -13270,10 +13660,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype588, _size585) = iprot.readListBegin() - for _i589 in xrange(_size585): - _elem590 = iprot.readI64() - self.fileIds.append(_elem590) + (_etype602, _size599) = iprot.readListBegin() + for _i603 in xrange(_size599): + _elem604 = iprot.readI64() + self.fileIds.append(_elem604) iprot.readListEnd() else: iprot.skip(ftype) @@ -13305,8 +13695,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 iter591 in self.fileIds: - oprot.writeI64(iter591) + for iter605 in self.fileIds: + oprot.writeI64(iter605) oprot.writeListEnd() oprot.writeFieldEnd() if self.expr is not None: @@ -13380,11 +13770,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype593, _vtype594, _size592 ) = iprot.readMapBegin() - for _i596 in xrange(_size592): - _key597 = iprot.readI64() - _val598 = iprot.readString() - self.metadata[_key597] = _val598 + (_ktype607, _vtype608, _size606 ) = iprot.readMapBegin() + for _i610 in xrange(_size606): + _key611 = iprot.readI64() + _val612 = iprot.readString() + self.metadata[_key611] = _val612 iprot.readMapEnd() else: iprot.skip(ftype) @@ -13406,9 +13796,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 kiter599,viter600 in self.metadata.items(): - oprot.writeI64(kiter599) - oprot.writeString(viter600) + for kiter613,viter614 in self.metadata.items(): + oprot.writeI64(kiter613) + oprot.writeString(viter614) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -13469,10 +13859,10 @@ 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) + (_etype618, _size615) = iprot.readListBegin() + for _i619 in xrange(_size615): + _elem620 = iprot.readI64() + self.fileIds.append(_elem620) iprot.readListEnd() else: iprot.skip(ftype) @@ -13489,8 +13879,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 iter607 in self.fileIds: - oprot.writeI64(iter607) + for iter621 in self.fileIds: + oprot.writeI64(iter621) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13596,20 +13986,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype611, _size608) = iprot.readListBegin() - for _i612 in xrange(_size608): - _elem613 = iprot.readI64() - self.fileIds.append(_elem613) + (_etype625, _size622) = iprot.readListBegin() + for _i626 in xrange(_size622): + _elem627 = iprot.readI64() + self.fileIds.append(_elem627) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.metadata = [] - (_etype617, _size614) = iprot.readListBegin() - for _i618 in xrange(_size614): - _elem619 = iprot.readString() - self.metadata.append(_elem619) + (_etype631, _size628) = iprot.readListBegin() + for _i632 in xrange(_size628): + _elem633 = iprot.readString() + self.metadata.append(_elem633) iprot.readListEnd() else: iprot.skip(ftype) @@ -13631,15 +14021,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 iter620 in self.fileIds: - oprot.writeI64(iter620) + for iter634 in self.fileIds: + oprot.writeI64(iter634) oprot.writeListEnd() oprot.writeFieldEnd() if self.metadata is not None: oprot.writeFieldBegin('metadata', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.metadata)) - for iter621 in self.metadata: - oprot.writeString(iter621) + for iter635 in self.metadata: + oprot.writeString(iter635) oprot.writeListEnd() oprot.writeFieldEnd() if self.type is not None: @@ -13747,10 +14137,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype625, _size622) = iprot.readListBegin() - for _i626 in xrange(_size622): - _elem627 = iprot.readI64() - self.fileIds.append(_elem627) + (_etype639, _size636) = iprot.readListBegin() + for _i640 in xrange(_size636): + _elem641 = iprot.readI64() + self.fileIds.append(_elem641) iprot.readListEnd() else: iprot.skip(ftype) @@ -13767,8 +14157,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 iter628 in self.fileIds: - oprot.writeI64(iter628) + for iter642 in self.fileIds: + oprot.writeI64(iter642) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13997,11 +14387,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.functions = [] - (_etype632, _size629) = iprot.readListBegin() - for _i633 in xrange(_size629): - _elem634 = Function() - _elem634.read(iprot) - self.functions.append(_elem634) + (_etype646, _size643) = iprot.readListBegin() + for _i647 in xrange(_size643): + _elem648 = Function() + _elem648.read(iprot) + self.functions.append(_elem648) iprot.readListEnd() else: iprot.skip(ftype) @@ -14018,8 +14408,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 iter635 in self.functions: - iter635.write(oprot) + for iter649 in self.functions: + iter649.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14071,10 +14461,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.values = [] - (_etype639, _size636) = iprot.readListBegin() - for _i640 in xrange(_size636): - _elem641 = iprot.readI32() - self.values.append(_elem641) + (_etype653, _size650) = iprot.readListBegin() + for _i654 in xrange(_size650): + _elem655 = iprot.readI32() + self.values.append(_elem655) iprot.readListEnd() else: iprot.skip(ftype) @@ -14091,8 +14481,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 iter642 in self.values: - oprot.writeI32(iter642) + for iter656 in self.values: + oprot.writeI32(iter656) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14321,10 +14711,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tblNames = [] - (_etype646, _size643) = iprot.readListBegin() - for _i647 in xrange(_size643): - _elem648 = iprot.readString() - self.tblNames.append(_elem648) + (_etype660, _size657) = iprot.readListBegin() + for _i661 in xrange(_size657): + _elem662 = iprot.readString() + self.tblNames.append(_elem662) iprot.readListEnd() else: iprot.skip(ftype) @@ -14351,8 +14741,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 iter649 in self.tblNames: - oprot.writeString(iter649) + for iter663 in self.tblNames: + oprot.writeString(iter663) oprot.writeListEnd() oprot.writeFieldEnd() if self.capabilities is not None: @@ -14412,11 +14802,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tables = [] - (_etype653, _size650) = iprot.readListBegin() - for _i654 in xrange(_size650): - _elem655 = Table() - _elem655.read(iprot) - self.tables.append(_elem655) + (_etype667, _size664) = iprot.readListBegin() + for _i668 in xrange(_size664): + _elem669 = Table() + _elem669.read(iprot) + self.tables.append(_elem669) iprot.readListEnd() else: iprot.skip(ftype) @@ -14433,8 +14823,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 iter656 in self.tables: - iter656.write(oprot) + for iter670 in self.tables: + iter670.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14732,10 +15122,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.SET: self.tablesUsed = set() - (_etype660, _size657) = iprot.readSetBegin() - for _i661 in xrange(_size657): - _elem662 = iprot.readString() - self.tablesUsed.add(_elem662) + (_etype674, _size671) = iprot.readSetBegin() + for _i675 in xrange(_size671): + _elem676 = iprot.readString() + self.tablesUsed.add(_elem676) iprot.readSetEnd() else: iprot.skip(ftype) @@ -14762,8 +15152,8 @@ def write(self, oprot): if self.tablesUsed is not None: oprot.writeFieldBegin('tablesUsed', TType.SET, 1) oprot.writeSetBegin(TType.STRING, len(self.tablesUsed)) - for iter663 in self.tablesUsed: - oprot.writeString(iter663) + for iter677 in self.tablesUsed: + oprot.writeString(iter677) oprot.writeSetEnd() oprot.writeFieldEnd() if self.validTxnList is not None: @@ -15667,44 +16057,44 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.pools = [] - (_etype667, _size664) = iprot.readListBegin() - for _i668 in xrange(_size664): - _elem669 = WMPool() - _elem669.read(iprot) - self.pools.append(_elem669) + (_etype681, _size678) = iprot.readListBegin() + for _i682 in xrange(_size678): + _elem683 = WMPool() + _elem683.read(iprot) + self.pools.append(_elem683) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.mappings = [] - (_etype673, _size670) = iprot.readListBegin() - for _i674 in xrange(_size670): - _elem675 = WMMapping() - _elem675.read(iprot) - self.mappings.append(_elem675) + (_etype687, _size684) = iprot.readListBegin() + for _i688 in xrange(_size684): + _elem689 = WMMapping() + _elem689.read(iprot) + self.mappings.append(_elem689) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.triggers = [] - (_etype679, _size676) = iprot.readListBegin() - for _i680 in xrange(_size676): - _elem681 = WMTrigger() - _elem681.read(iprot) - self.triggers.append(_elem681) + (_etype693, _size690) = iprot.readListBegin() + for _i694 in xrange(_size690): + _elem695 = WMTrigger() + _elem695.read(iprot) + self.triggers.append(_elem695) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.poolTriggers = [] - (_etype685, _size682) = iprot.readListBegin() - for _i686 in xrange(_size682): - _elem687 = WMPoolTrigger() - _elem687.read(iprot) - self.poolTriggers.append(_elem687) + (_etype699, _size696) = iprot.readListBegin() + for _i700 in xrange(_size696): + _elem701 = WMPoolTrigger() + _elem701.read(iprot) + self.poolTriggers.append(_elem701) iprot.readListEnd() else: iprot.skip(ftype) @@ -15725,29 +16115,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 iter688 in self.pools: - iter688.write(oprot) + for iter702 in self.pools: + iter702.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 iter689 in self.mappings: - iter689.write(oprot) + for iter703 in self.mappings: + iter703.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 iter690 in self.triggers: - iter690.write(oprot) + for iter704 in self.triggers: + iter704.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 iter691 in self.poolTriggers: - iter691.write(oprot) + for iter705 in self.poolTriggers: + iter705.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16221,11 +16611,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.resourcePlans = [] - (_etype695, _size692) = iprot.readListBegin() - for _i696 in xrange(_size692): - _elem697 = WMResourcePlan() - _elem697.read(iprot) - self.resourcePlans.append(_elem697) + (_etype709, _size706) = iprot.readListBegin() + for _i710 in xrange(_size706): + _elem711 = WMResourcePlan() + _elem711.read(iprot) + self.resourcePlans.append(_elem711) iprot.readListEnd() else: iprot.skip(ftype) @@ -16242,8 +16632,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 iter698 in self.resourcePlans: - iter698.write(oprot) + for iter712 in self.resourcePlans: + iter712.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16547,20 +16937,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.errors = [] - (_etype702, _size699) = iprot.readListBegin() - for _i703 in xrange(_size699): - _elem704 = iprot.readString() - self.errors.append(_elem704) + (_etype716, _size713) = iprot.readListBegin() + for _i717 in xrange(_size713): + _elem718 = iprot.readString() + self.errors.append(_elem718) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.warnings = [] - (_etype708, _size705) = iprot.readListBegin() - for _i709 in xrange(_size705): - _elem710 = iprot.readString() - self.warnings.append(_elem710) + (_etype722, _size719) = iprot.readListBegin() + for _i723 in xrange(_size719): + _elem724 = iprot.readString() + self.warnings.append(_elem724) iprot.readListEnd() else: iprot.skip(ftype) @@ -16577,15 +16967,15 @@ def write(self, oprot): if self.errors is not None: oprot.writeFieldBegin('errors', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.errors)) - for iter711 in self.errors: - oprot.writeString(iter711) + for iter725 in self.errors: + oprot.writeString(iter725) oprot.writeListEnd() oprot.writeFieldEnd() if self.warnings is not None: oprot.writeFieldBegin('warnings', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.warnings)) - for iter712 in self.warnings: - oprot.writeString(iter712) + for iter726 in self.warnings: + oprot.writeString(iter726) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17162,11 +17552,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.triggers = [] - (_etype716, _size713) = iprot.readListBegin() - for _i717 in xrange(_size713): - _elem718 = WMTrigger() - _elem718.read(iprot) - self.triggers.append(_elem718) + (_etype730, _size727) = iprot.readListBegin() + for _i731 in xrange(_size727): + _elem732 = WMTrigger() + _elem732.read(iprot) + self.triggers.append(_elem732) iprot.readListEnd() else: iprot.skip(ftype) @@ -17183,8 +17573,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 iter719 in self.triggers: - iter719.write(oprot) + for iter733 in self.triggers: + iter733.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 5faf5ea831..6a433382d6 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 @@ -308,6 +308,36 @@ class SQLNotNullConstraint ::Thrift::Struct.generate_accessors self end +class SQLDefaultConstraint + include ::Thrift::Struct, ::Thrift::Struct_Union + TABLE_DB = 1 + TABLE_NAME = 2 + COLUMN_NAME = 3 + DEFAULT_VALUE = 4 + DC_NAME = 5 + ENABLE_CSTR = 6 + VALIDATE_CSTR = 7 + RELY_CSTR = 8 + + FIELDS = { + TABLE_DB => {:type => ::Thrift::Types::STRING, :name => 'table_db'}, + TABLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'table_name'}, + COLUMN_NAME => {:type => ::Thrift::Types::STRING, :name => 'column_name'}, + DEFAULT_VALUE => {:type => ::Thrift::Types::STRING, :name => 'default_value'}, + DC_NAME => {:type => ::Thrift::Types::STRING, :name => 'dc_name'}, + ENABLE_CSTR => {:type => ::Thrift::Types::BOOL, :name => 'enable_cstr'}, + VALIDATE_CSTR => {:type => ::Thrift::Types::BOOL, :name => 'validate_cstr'}, + RELY_CSTR => {:type => ::Thrift::Types::BOOL, :name => 'rely_cstr'} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self +end + class Type include ::Thrift::Struct, ::Thrift::Struct_Union NAME = 1 @@ -1557,6 +1587,43 @@ class NotNullConstraintsResponse ::Thrift::Struct.generate_accessors self end +class DefaultConstraintsRequest + include ::Thrift::Struct, ::Thrift::Struct_Union + DB_NAME = 1 + TBL_NAME = 2 + + FIELDS = { + DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'}, + TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field db_name is unset!') unless @db_name + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tbl_name is unset!') unless @tbl_name + end + + ::Thrift::Struct.generate_accessors self +end + +class DefaultConstraintsResponse + include ::Thrift::Struct, ::Thrift::Struct_Union + DEFAULTCONSTRAINTS = 1 + + FIELDS = { + DEFAULTCONSTRAINTS => {:type => ::Thrift::Types::LIST, :name => 'defaultConstraints', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLDefaultConstraint}} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field defaultConstraints is unset!') unless @defaultConstraints + end + + ::Thrift::Struct.generate_accessors self +end + class DropConstraintRequest include ::Thrift::Struct, ::Thrift::Struct_Union DBNAME = 1 @@ -1648,6 +1715,23 @@ class AddNotNullConstraintRequest ::Thrift::Struct.generate_accessors self end +class AddDefaultConstraintRequest + include ::Thrift::Struct, ::Thrift::Struct_Union + DEFAULTCONSTRAINTCOLS = 1 + + FIELDS = { + DEFAULTCONSTRAINTCOLS => {:type => ::Thrift::Types::LIST, :name => 'defaultConstraintCols', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLDefaultConstraint}} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field defaultConstraintCols is unset!') unless @defaultConstraintCols + end + + ::Thrift::Struct.generate_accessors self +end + class PartitionsByExprResult include ::Thrift::Struct, ::Thrift::Struct_Union PARTITIONS = 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 640499e897..2d74c9488d 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 @@ -318,13 +318,13 @@ module ThriftHiveMetastore return end - def create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints) - send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints) + def create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints) + send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints) recv_create_table_with_constraints() end - def send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints) - send_message('create_table_with_constraints', Create_table_with_constraints_args, :tbl => tbl, :primaryKeys => primaryKeys, :foreignKeys => foreignKeys, :uniqueConstraints => uniqueConstraints, :notNullConstraints => notNullConstraints) + def send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints) + send_message('create_table_with_constraints', Create_table_with_constraints_args, :tbl => tbl, :primaryKeys => primaryKeys, :foreignKeys => foreignKeys, :uniqueConstraints => uniqueConstraints, :notNullConstraints => notNullConstraints, :defaultConstraints => defaultConstraints) end def recv_create_table_with_constraints() @@ -416,6 +416,22 @@ module ThriftHiveMetastore return end + def add_default_constraint(req) + send_add_default_constraint(req) + recv_add_default_constraint() + end + + def send_add_default_constraint(req) + send_message('add_default_constraint', Add_default_constraint_args, :req => req) + end + + def recv_add_default_constraint() + result = receive_message(Add_default_constraint_result) + raise result.o1 unless result.o1.nil? + raise result.o2 unless result.o2.nil? + return + end + def drop_table(dbname, name, deleteData) send_drop_table(dbname, name, deleteData) recv_drop_table() @@ -1622,6 +1638,23 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_not_null_constraints failed: unknown result') end + def get_default_constraints(request) + send_get_default_constraints(request) + return recv_get_default_constraints() + end + + def send_get_default_constraints(request) + send_message('get_default_constraints', Get_default_constraints_args, :request => request) + end + + def recv_get_default_constraints() + result = receive_message(Get_default_constraints_result) + return result.success unless result.success.nil? + raise result.o1 unless result.o1.nil? + raise result.o2 unless result.o2.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_default_constraints failed: unknown result') + end + def update_table_column_statistics(stats_obj) send_update_table_column_statistics(stats_obj) return recv_update_table_column_statistics() @@ -3303,7 +3336,7 @@ module ThriftHiveMetastore args = read_args(iprot, Create_table_with_constraints_args) result = Create_table_with_constraints_result.new() begin - @handler.create_table_with_constraints(args.tbl, args.primaryKeys, args.foreignKeys, args.uniqueConstraints, args.notNullConstraints) + @handler.create_table_with_constraints(args.tbl, args.primaryKeys, args.foreignKeys, args.uniqueConstraints, args.notNullConstraints, args.defaultConstraints) rescue ::AlreadyExistsException => o1 result.o1 = o1 rescue ::InvalidObjectException => o2 @@ -3381,6 +3414,19 @@ module ThriftHiveMetastore write_result(result, oprot, 'add_not_null_constraint', seqid) end + def process_add_default_constraint(seqid, iprot, oprot) + args = read_args(iprot, Add_default_constraint_args) + result = Add_default_constraint_result.new() + begin + @handler.add_default_constraint(args.req) + rescue ::NoSuchObjectException => o1 + result.o1 = o1 + rescue ::MetaException => o2 + result.o2 = o2 + end + write_result(result, oprot, 'add_default_constraint', seqid) + end + def process_drop_table(seqid, iprot, oprot) args = read_args(iprot, Drop_table_args) result = Drop_table_result.new() @@ -4328,6 +4374,19 @@ module ThriftHiveMetastore write_result(result, oprot, 'get_not_null_constraints', seqid) end + def process_get_default_constraints(seqid, iprot, oprot) + args = read_args(iprot, Get_default_constraints_args) + result = Get_default_constraints_result.new() + begin + result.success = @handler.get_default_constraints(args.request) + rescue ::MetaException => o1 + result.o1 = o1 + rescue ::NoSuchObjectException => o2 + result.o2 = o2 + end + write_result(result, oprot, 'get_default_constraints', seqid) + end + def process_update_table_column_statistics(seqid, iprot, oprot) args = read_args(iprot, Update_table_column_statistics_args) result = Update_table_column_statistics_result.new() @@ -6011,13 +6070,15 @@ module ThriftHiveMetastore FOREIGNKEYS = 3 UNIQUECONSTRAINTS = 4 NOTNULLCONSTRAINTS = 5 + DEFAULTCONSTRAINTS = 6 FIELDS = { TBL => {:type => ::Thrift::Types::STRUCT, :name => 'tbl', :class => ::Table}, PRIMARYKEYS => {:type => ::Thrift::Types::LIST, :name => 'primaryKeys', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLPrimaryKey}}, FOREIGNKEYS => {:type => ::Thrift::Types::LIST, :name => 'foreignKeys', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLForeignKey}}, UNIQUECONSTRAINTS => {:type => ::Thrift::Types::LIST, :name => 'uniqueConstraints', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLUniqueConstraint}}, - NOTNULLCONSTRAINTS => {:type => ::Thrift::Types::LIST, :name => 'notNullConstraints', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLNotNullConstraint}} + NOTNULLCONSTRAINTS => {:type => ::Thrift::Types::LIST, :name => 'notNullConstraints', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLNotNullConstraint}}, + DEFAULTCONSTRAINTS => {:type => ::Thrift::Types::LIST, :name => 'defaultConstraints', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLDefaultConstraint}} } def struct_fields; FIELDS; end @@ -6220,6 +6281,40 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Add_default_constraint_args + include ::Thrift::Struct, ::Thrift::Struct_Union + REQ = 1 + + FIELDS = { + REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::AddDefaultConstraintRequest} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Add_default_constraint_result + include ::Thrift::Struct, ::Thrift::Struct_Union + O1 = 1 + O2 = 2 + + FIELDS = { + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException}, + O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class Drop_table_args include ::Thrift::Struct, ::Thrift::Struct_Union DBNAME = 1 @@ -9046,6 +9141,42 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Get_default_constraints_args + include ::Thrift::Struct, ::Thrift::Struct_Union + REQUEST = 1 + + FIELDS = { + REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::DefaultConstraintsRequest} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_default_constraints_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O1 = 1 + O2 = 2 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::DefaultConstraintsResponse}, + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}, + O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class Update_table_column_statistics_args include ::Thrift::Struct, ::Thrift::Struct_Union STATS_OBJ = 1 diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java index 47de215a23..c458c6b913 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 @@ -1409,13 +1409,13 @@ private void create_table_core(final RawStore ms, final Table tbl, final EnvironmentContext envContext) throws AlreadyExistsException, MetaException, InvalidObjectException, NoSuchObjectException { - create_table_core(ms, tbl, envContext, null, null, null, null); + create_table_core(ms, tbl, envContext, null, null, null, null, null); } private void create_table_core(final RawStore ms, final Table tbl, final EnvironmentContext envContext, List primaryKeys, List foreignKeys, List uniqueConstraints, - List notNullConstraints) + List notNullConstraints, List defaultConstraints) throws AlreadyExistsException, MetaException, InvalidObjectException, NoSuchObjectException { if (!MetaStoreUtils.validateName(tbl.getTableName(), conf)) { @@ -1502,12 +1502,12 @@ private void create_table_core(final RawStore ms, final Table tbl, } if (primaryKeys == null && foreignKeys == null - && uniqueConstraints == null && notNullConstraints == null) { + && uniqueConstraints == null && notNullConstraints == null && defaultConstraints == null) { ms.createTable(tbl); } else { // Set constraint name if null before sending to listener List constraintNames = ms.createTableWithConstraints(tbl, primaryKeys, foreignKeys, - uniqueConstraints, notNullConstraints); + uniqueConstraints, notNullConstraints, defaultConstraints); int primaryKeySize = 0; if (primaryKeys != null) { primaryKeySize = primaryKeys.size(); @@ -1535,6 +1535,8 @@ private void create_table_core(final RawStore ms, final Table tbl, } } } + int notNullConstraintSize = 0; + notNullConstraintSize = notNullConstraints.size(); if (notNullConstraints != null) { for (int i = 0; i < notNullConstraints.size(); i++) { if (notNullConstraints.get(i).getNn_name() == null) { @@ -1542,6 +1544,14 @@ private void create_table_core(final RawStore ms, final Table tbl, } } } + if (defaultConstraints!= null) { + for (int i = 0; i < defaultConstraints.size(); i++) { + if (defaultConstraints.get(i).getDc_name() == null) { + defaultConstraints.get(i).setDc_name(constraintNames.get(primaryKeySize + foreignKeySize + + uniqueConstraintSize + notNullConstraintSize + i)); + } + } + } } if (!transactionalListeners.isEmpty()) { @@ -1636,14 +1646,15 @@ public void create_table_with_environment_context(final Table tbl, public void create_table_with_constraints(final Table tbl, final List primaryKeys, final List foreignKeys, List uniqueConstraints, - List notNullConstraints) + List notNullConstraints, + List defaultConstraints) throws AlreadyExistsException, MetaException, InvalidObjectException { startFunction("create_table", ": " + tbl.toString()); boolean success = false; Exception ex = null; try { create_table_core(getMS(), tbl, null, primaryKeys, foreignKeys, - uniqueConstraints, notNullConstraints); + uniqueConstraints, notNullConstraints, defaultConstraints); success = true; } catch (NoSuchObjectException e) { ex = e; @@ -1917,6 +1928,59 @@ public void add_not_null_constraint(AddNotNullConstraintRequest req) } } + @Override + public void add_default_constraint(AddDefaultConstraintRequest req) + throws MetaException, InvalidObjectException { + List defaultConstraintCols= req.getDefaultConstraintCols(); + String constraintName = (defaultConstraintCols != null && defaultConstraintCols.size() > 0) ? + defaultConstraintCols.get(0).getDc_name() : "null"; + startFunction("add_default_constraint", ": " + constraintName); + boolean success = false; + Exception ex = null; + RawStore ms = getMS(); + try { + ms.openTransaction(); + List constraintNames = ms.addDefaultConstraints(defaultConstraintCols); + // Set not null constraint name if null before sending to listener + if (defaultConstraintCols != null) { + for (int i = 0; i < defaultConstraintCols.size(); i++) { + if (defaultConstraintCols.get(i).getDc_name() == null) { + defaultConstraintCols.get(i).setDc_name(constraintNames.get(i)); + } + } + } + if (transactionalListeners.size() > 0) { + if (defaultConstraintCols != null && defaultConstraintCols.size() > 0) { + //TODO: Even listener for default + //AddDefaultConstraintEvent addDefaultConstraintEvent = new AddDefaultConstraintEvent(defaultConstraintCols, true, this); + //for (MetaStoreEventListener transactionalListener : transactionalListeners) { + // transactionalListener.onAddNotNullConstraint(addDefaultConstraintEvent); + //} + } + } + success = ms.commitTransaction(); + } catch (Exception e) { + ex = e; + if (e instanceof MetaException) { + throw (MetaException) e; + } else if (e instanceof InvalidObjectException) { + throw (InvalidObjectException) e; + } else { + throw newMetaException(e); + } + } finally { + if (!success) { + ms.rollbackTransaction(); + } else if (defaultConstraintCols != null && defaultConstraintCols.size() > 0) { + for (MetaStoreEventListener listener : listeners) { + //AddNotNullConstraintEvent addDefaultConstraintEvent = new AddNotNullConstraintEvent(defaultConstraintCols, true, this); + //listener.onAddDefaultConstraint(addDefaultConstraintEvent); + } + } + endFunction("add_default_constraint", success, ex, constraintName); + } + } + private boolean is_table_exists(RawStore ms, String dbname, String name) throws MetaException { return (ms.getTable(dbname, name) != null); @@ -7316,6 +7380,28 @@ public NotNullConstraintsResponse get_not_null_constraints(NotNullConstraintsReq return new NotNullConstraintsResponse(ret); } + @Override + public DefaultConstraintsResponse get_default_constraints(DefaultConstraintsRequest request) + throws TException { + String db_name = request.getDb_name(); + String tbl_name = request.getTbl_name(); + startTableFunction("get_default_constraints", db_name, tbl_name); + List ret = null; + Exception ex = null; + try { + ret = getMS().getDefaultConstraints(db_name, tbl_name); + } catch (Exception e) { + ex = e; + if (e instanceof MetaException) { + throw (MetaException) e; + } else { + throw newMetaException(e); + } + } finally { + endFunction("get_default_constraints", ret != null, ex, tbl_name); + } + return new DefaultConstraintsResponse(ret); + } @Override public String get_metastore_db_uuid() throws TException { try { 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 5b62114bda..04d760526f 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 @@ -800,7 +800,8 @@ public void createTable(Table tbl, EnvironmentContext envContext) throws Already public void createTableWithConstraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, - List notNullConstraints) + List notNullConstraints, + List defaultConstraints) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, TException { HiveMetaHook hook = getHook(tbl); @@ -811,7 +812,7 @@ public void createTableWithConstraints(Table tbl, try { // Subclasses can override this step (for example, for temporary tables) client.create_table_with_constraints(tbl, primaryKeys, foreignKeys, - uniqueConstraints, notNullConstraints); + uniqueConstraints, notNullConstraints, defaultConstraints); if (hook != null) { hook.commitCreateTable(tbl); } @@ -853,6 +854,12 @@ public void addNotNullConstraint(List notNullConstraintCol client.add_not_null_constraint(new AddNotNullConstraintRequest(notNullConstraintCols)); } + @Override + public void addDefaultConstraint(List defaultConstraints) throws + NoSuchObjectException, MetaException, TException { + client.add_default_constraint(new AddDefaultConstraintRequest(defaultConstraints)); + } + /** * @param type * @return true or false @@ -1762,6 +1769,11 @@ public Index getIndex(String dbName, String tblName, String indexName) return client.get_not_null_constraints(req).getNotNullConstraints(); } + @Override + public List getDefaultConstraints(DefaultConstraintsRequest req) + throws MetaException, NoSuchObjectException, TException { + return client.get_default_constraints(req).getDefaultConstraints(); + } /** {@inheritDoc} */ @Override 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 143b04ff49..558df58e52 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 @@ -44,6 +44,7 @@ import org.apache.hadoop.hive.metastore.api.CreationMetadata; import org.apache.hadoop.hive.metastore.api.CurrentNotificationEventId; import org.apache.hadoop.hive.metastore.api.DataOperationType; +import org.apache.hadoop.hive.metastore.api.DefaultConstraintsRequest; import org.apache.hadoop.hive.metastore.api.Database; import org.apache.hadoop.hive.metastore.api.EnvironmentContext; import org.apache.hadoop.hive.metastore.api.FieldSchema; @@ -88,6 +89,7 @@ import org.apache.hadoop.hive.metastore.api.PrincipalType; import org.apache.hadoop.hive.metastore.api.PrivilegeBag; import org.apache.hadoop.hive.metastore.api.Role; +import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; @@ -1769,11 +1771,15 @@ boolean cacheFileMetadata(String dbName, String tableName, String partName, List getNotNullConstraints(NotNullConstraintsRequest request) throws MetaException, NoSuchObjectException, TException; + List getDefaultConstraints(DefaultConstraintsRequest request) throws MetaException, + NoSuchObjectException, TException; + void createTableWithConstraints( org.apache.hadoop.hive.metastore.api.Table tTbl, List primaryKeys, List foreignKeys, List uniqueConstraints, - List notNullConstraints) + List notNullConstraints, + List defaultConstraints) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, TException; void dropConstraint(String dbName, String tableName, String constraintName) throws @@ -1791,6 +1797,9 @@ void addUniqueConstraint(List uniqueConstraintCols) throws void addNotNullConstraint(List notNullConstraintCols) throws MetaException, NoSuchObjectException, TException; + void addDefaultConstraint(List defaultConstraints) throws + MetaException, NoSuchObjectException, TException; + /** * Gets the unique id of the backing database instance used for storing metadata * @return unique id of the backing database instance 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 dad2d356cb..fc8516e2c5 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 @@ -57,6 +57,7 @@ import org.apache.hadoop.hive.metastore.api.Order; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.PrincipalType; +import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; @@ -2280,4 +2281,61 @@ public void closeAllQueries() { return ret; } + public List getDefaultConstraints(String db_name, String tbl_name) + throws MetaException { + List ret = new ArrayList(); + String queryText = + "SELECT " + DBS + ".\"NAME\", " + TBLS + ".\"TBL_NAME\"," + + "CASE WHEN " + COLUMNS_V2 + ".\"COLUMN_NAME\" IS NOT NULL THEN " + COLUMNS_V2 + ".\"COLUMN_NAME\" " + + "ELSE " + PARTITION_KEYS + ".\"PKEY_NAME\" END, " + + "" + KEY_CONSTRAINTS + ".\"CONSTRAINT_NAME\", " + KEY_CONSTRAINTS + ".\"ENABLE_VALIDATE_RELY\", " + + "" + KEY_CONSTRAINTS + ".\"DEFAULT_VALUE\" " + + " from " + TBLS + " " + + " INNER JOIN " + KEY_CONSTRAINTS + " ON " + TBLS + ".\"TBL_ID\" = " + KEY_CONSTRAINTS + ".\"PARENT_TBL_ID\" " + + " INNER JOIN " + DBS + " ON " + TBLS + ".\"DB_ID\" = " + DBS + ".\"DB_ID\" " + + " LEFT OUTER JOIN " + COLUMNS_V2 + " ON " + COLUMNS_V2 + ".\"CD_ID\" = " + KEY_CONSTRAINTS + ".\"PARENT_CD_ID\" AND " + + " " + COLUMNS_V2 + ".\"INTEGER_IDX\" = " + KEY_CONSTRAINTS + ".\"PARENT_INTEGER_IDX\" " + + " LEFT OUTER JOIN " + PARTITION_KEYS + " ON " + TBLS + ".\"TBL_ID\" = " + PARTITION_KEYS + ".\"TBL_ID\" AND " + + " " + PARTITION_KEYS + ".\"INTEGER_IDX\" = " + KEY_CONSTRAINTS + ".\"PARENT_INTEGER_IDX\" " + + " WHERE " + KEY_CONSTRAINTS + ".\"CONSTRAINT_TYPE\" = "+ MConstraint.DEFAULT_CONSTRAINT+ " AND" + + (db_name == null ? "" : " " + DBS + ".\"NAME\" = ? AND") + + (tbl_name == null ? "" : " " + TBLS + ".\"TBL_NAME\" = ? ") ; + + queryText = queryText.trim(); + if (queryText.endsWith("AND")) { + queryText = queryText.substring(0, queryText.length()-3); + } + List pms = new ArrayList(); + if (db_name != null) { + pms.add(db_name); + } + if (tbl_name != null) { + pms.add(tbl_name); + } + + Query queryParams = pm.newQuery("javax.jdo.query.SQL", queryText); + List sqlResult = ensureList(executeWithArray( + queryParams, pms.toArray(), queryText)); + + if (!sqlResult.isEmpty()) { + for (Object[] line : sqlResult) { + int enableValidateRely = extractSqlInt(line[4]); + boolean enable = (enableValidateRely & 4) != 0; + boolean validate = (enableValidateRely & 2) != 0; + boolean rely = (enableValidateRely & 1) != 0; + SQLDefaultConstraint currConstraint = new SQLDefaultConstraint( + extractSqlString(line[0]), + extractSqlString(line[1]), + extractSqlString(line[2]), + extractSqlString(line[5]), + extractSqlString(line[3]), + enable, + validate, + rely); + ret.add(currConstraint); + } + } + return ret; + } + } 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 7b44df4128..ec8ace4139 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 @@ -117,6 +117,7 @@ import org.apache.hadoop.hive.metastore.api.ResourceUri; import org.apache.hadoop.hive.metastore.api.Role; import org.apache.hadoop.hive.metastore.api.RolePrincipalGrant; +import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; @@ -1092,8 +1093,8 @@ public boolean dropType(String typeName) { @Override public List createTableWithConstraints(Table tbl, List primaryKeys, List foreignKeys, - List uniqueConstraints, - List notNullConstraints) + List uniqueConstraints, List notNullConstraints, + List defaultConstraints) throws InvalidObjectException, MetaException { boolean success = false; try { @@ -1106,6 +1107,7 @@ public boolean dropType(String typeName) { constraintNames.addAll(addPrimaryKeys(primaryKeys, false)); constraintNames.addAll(addUniqueConstraints(uniqueConstraints, false)); constraintNames.addAll(addNotNullConstraints(notNullConstraints, false)); + constraintNames.addAll(addDefaultConstraints(defaultConstraints, false)); success = commitTransaction(); return constraintNames; } finally { @@ -4491,6 +4493,72 @@ private static String generateColNameTypeSignature(String colName, String colTyp return addNotNullConstraints(nns, true); } + @Override + public List addDefaultConstraints(List nns) + throws InvalidObjectException, MetaException { + return addDefaultConstraints(nns, true); + } + + private List addDefaultConstraints(List nns, boolean retrieveCD) + throws InvalidObjectException, MetaException { + List nnNames = new ArrayList<>(); + List cstrs = new ArrayList<>(); + String constraintName = null; + + for (int i = 0; i < nns.size(); i++) { + final String tableDB = normalizeIdentifier(nns.get(i).getTable_db()); + final String tableName = normalizeIdentifier(nns.get(i).getTable_name()); + final String columnName = normalizeIdentifier(nns.get(i).getColumn_name()); + + // If retrieveCD is false, we do not need to do a deep retrieval of the Table Column Descriptor. + // For instance, this is the case when we are creating the table. + AttachedMTableInfo nParentTable = getMTable(tableDB, tableName, retrieveCD); + MTable parentTable = nParentTable.mtbl; + if (parentTable == null) { + throw new InvalidObjectException("Parent table not found: " + tableName); + } + + MColumnDescriptor parentCD = retrieveCD ? nParentTable.mcd : parentTable.getSd().getCD(); + int parentIntegerIndex = getColumnIndexFromTableColumns(parentCD == null ? null : parentCD.getCols(), columnName); + if (parentIntegerIndex == -1) { + if (parentTable.getPartitionKeys() != null) { + parentCD = null; + parentIntegerIndex = getColumnIndexFromTableColumns(parentTable.getPartitionKeys(), columnName); + } + if (parentIntegerIndex == -1) { + throw new InvalidObjectException("Parent column not found: " + columnName); + } + } + if (nns.get(i).getDc_name() == null) { + constraintName = generateConstraintName(tableDB, tableName, columnName, "dc"); + } else { + constraintName = normalizeIdentifier(nns.get(i).getDc_name()); + } + nnNames.add(constraintName); + + int enableValidateRely = (nns.get(i).isEnable_cstr() ? 4 : 0) + + (nns.get(i).isValidate_cstr() ? 2 : 0) + (nns.get(i).isRely_cstr() ? 1 : 0); + String defaultValue = nns.get(i).getDefault_value(); + MConstraint muk = new MConstraint( + constraintName, + MConstraint.DEFAULT_CONSTRAINT, + 1, // Not null constraint should reference a single column + null, + null, + enableValidateRely, + parentTable, + null, + parentCD, + null, + null, + parentIntegerIndex, + defaultValue); + cstrs.add(muk); + } + pm.makePersistentAll(cstrs); + return nnNames; + } + private List addNotNullConstraints(List nns, boolean retrieveCD) throws InvalidObjectException, MetaException { List nnNames = new ArrayList<>(); @@ -9555,37 +9623,107 @@ private String getPrimaryKeyConstraintName(String db_name, String tbl_name) thro } } - protected List getNotNullConstraintsInternal(final String db_name_input, + @Override + public List getDefaultConstraints(String db_name, String tbl_name) + throws MetaException { + try { + return getDefaultConstraintsInternal(db_name, tbl_name, true, true); + } catch (NoSuchObjectException e) { + throw new MetaException(ExceptionUtils.getStackTrace(e)); + } + } + + protected List getDefaultConstraintsInternal(final String db_name_input, final String tbl_name_input, boolean allowSql, boolean allowJdo) throws MetaException, NoSuchObjectException { final String db_name = normalizeIdentifier(db_name_input); final String tbl_name = normalizeIdentifier(tbl_name_input); + return new GetListHelper(db_name, tbl_name, allowSql, allowJdo) { + + @Override + protected List getSqlResult(GetHelper> ctx) + throws MetaException { + return directSql.getDefaultConstraints(db_name, tbl_name); + } + + @Override + protected List getJdoResult(GetHelper> ctx) + throws MetaException, NoSuchObjectException { + return getDefaultConstraintsViaJdo(db_name, tbl_name); + } + }.run(false); + } + + private List getDefaultConstraintsViaJdo(String db_name, String tbl_name) + throws MetaException { + boolean commited = false; + List defaultConstraints= null; + Query query = null; + try { + openTransaction(); + query = pm.newQuery(MConstraint.class, + "parentTable.tableName == tbl_name && parentTable.database.name == db_name &&" + + " constraintType == MConstraint.DEFAULT_CONSTRAINT"); + query.declareParameters("java.lang.String tbl_name, java.lang.String db_name"); + Collection constraints = (Collection) query.execute(tbl_name, db_name); + pm.retrieveAll(constraints); + defaultConstraints = new ArrayList<>(); + for (Iterator i = constraints.iterator(); i.hasNext();) { + MConstraint currConstraint = (MConstraint) i.next(); + List cols = currConstraint.getParentColumn() != null ? + currConstraint.getParentColumn().getCols() : currConstraint.getParentTable().getPartitionKeys(); + int enableValidateRely = currConstraint.getEnableValidateRely(); + boolean enable = (enableValidateRely & 4) != 0; + boolean validate = (enableValidateRely & 2) != 0; + boolean rely = (enableValidateRely & 1) != 0; + defaultConstraints.add(new SQLDefaultConstraint(db_name, + tbl_name, + cols.get(currConstraint.getParentIntegerIndex()).getName(), + currConstraint.getDefaultValue(), currConstraint.getConstraintName(), enable, validate, rely)); + } + commited = commitTransaction(); + } finally { + if (!commited) { + rollbackTransaction(); + } + if (query != null) { + query.closeAll(); + } + } + return defaultConstraints; + } + + protected List getNotNullConstraintsInternal(final String db_name_input, + final String tbl_name_input, boolean allowSql, boolean allowJdo) + throws MetaException, NoSuchObjectException { + final String db_name = normalizeIdentifier(db_name_input); + final String tbl_name = normalizeIdentifier(tbl_name_input); return new GetListHelper(db_name, tbl_name, allowSql, allowJdo) { @Override protected List getSqlResult(GetHelper> ctx) - throws MetaException { + throws MetaException { return directSql.getNotNullConstraints(db_name, tbl_name); } @Override protected List getJdoResult(GetHelper> ctx) - throws MetaException, NoSuchObjectException { + throws MetaException, NoSuchObjectException { return getNotNullConstraintsViaJdo(db_name, tbl_name); } }.run(false); } private List getNotNullConstraintsViaJdo(String db_name, String tbl_name) - throws MetaException { + throws MetaException { boolean commited = false; List notNullConstraints = null; Query query = null; try { openTransaction(); query = pm.newQuery(MConstraint.class, - "parentTable.tableName == tbl_name && parentTable.database.name == db_name &&" - + " constraintType == MConstraint.NOT_NULL_CONSTRAINT"); + "parentTable.tableName == tbl_name && parentTable.database.name == db_name &&" + + " constraintType == MConstraint.NOT_NULL_CONSTRAINT"); query.declareParameters("java.lang.String tbl_name, java.lang.String db_name"); Collection constraints = (Collection) query.execute(tbl_name, db_name); pm.retrieveAll(constraints); @@ -9599,9 +9737,9 @@ private String getPrimaryKeyConstraintName(String db_name, String tbl_name) thro boolean validate = (enableValidateRely & 2) != 0; boolean rely = (enableValidateRely & 1) != 0; notNullConstraints.add(new SQLNotNullConstraint(db_name, - tbl_name, - cols.get(currConstraint.getParentIntegerIndex()).getName(), - currConstraint.getConstraintName(), enable, validate, rely)); + tbl_name, + cols.get(currConstraint.getParentIntegerIndex()).getName(), + currConstraint.getConstraintName(), enable, validate, rely)); } commited = commitTransaction(); } finally { 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 f500d63725..6a8036f71b 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 @@ -65,6 +65,7 @@ import org.apache.hadoop.hive.metastore.api.WMValidateResourcePlanResponse; import org.apache.hadoop.hive.metastore.api.Role; import org.apache.hadoop.hive.metastore.api.RolePrincipalGrant; +import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; @@ -740,9 +741,13 @@ void getFileMetadataByExpr(List fileIds, FileMetadataExprType type, byte[] List getNotNullConstraints(String db_name, String tbl_name) throws MetaException; + List getDefaultConstraints(String db_name, + String tbl_name) throws MetaException; + List createTableWithConstraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, - List notNullConstraints) throws InvalidObjectException, MetaException; + List notNullConstraints, + List defaultConstraints) throws InvalidObjectException, MetaException; void dropConstraint(String dbName, String tableName, String constraintName) throws NoSuchObjectException; @@ -754,6 +759,8 @@ void getFileMetadataByExpr(List fileIds, FileMetadataExprType type, byte[] List addNotNullConstraints(List nns) throws InvalidObjectException, MetaException; + List addDefaultConstraints(List nns) throws InvalidObjectException, MetaException; + /** * Gets the unique id of the backing datastore for the metadata * @return 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 0d132f2074..2ee5433703 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 @@ -87,6 +87,7 @@ import org.apache.hadoop.hive.metastore.columnstats.aggr.ColumnStatsAggregatorFactory; import org.apache.hadoop.hive.metastore.api.Role; import org.apache.hadoop.hive.metastore.api.RolePrincipalGrant; +import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; @@ -2423,13 +2424,21 @@ public int getDatabaseCount() throws MetaException { return rawStore.getNotNullConstraints(db_name, tbl_name); } + @Override + public List getDefaultConstraints(String db_name, String tbl_name) + throws MetaException { + // TODO constraintCache + return rawStore.getDefaultConstraints(db_name, tbl_name); + } + @Override public List createTableWithConstraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, - List notNullConstraints) throws InvalidObjectException, MetaException { + List notNullConstraints, + List defaultConstraints) throws InvalidObjectException, MetaException { // TODO constraintCache List constraintNames = rawStore.createTableWithConstraints(tbl, primaryKeys, - foreignKeys, uniqueConstraints, notNullConstraints); + foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints); String dbName = StringUtils.normalizeIdentifier(tbl.getDbName()); String tblName = StringUtils.normalizeIdentifier(tbl.getTableName()); if (!shouldCacheTable(dbName, tblName)) { @@ -2477,6 +2486,13 @@ public void dropConstraint(String dbName, String tableName, return rawStore.addNotNullConstraints(nns); } + @Override + public List addDefaultConstraints(List nns) + throws InvalidObjectException, MetaException { + // TODO constraintCache + return rawStore.addDefaultConstraints(nns); + } + @Override public List getPartitionColStatsForDatabase(String dbName) throws MetaException, NoSuchObjectException { diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MConstraint.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MConstraint.java index 865a9eed87..3aa42865e8 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MConstraint.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MConstraint.java @@ -33,6 +33,7 @@ Integer childIntegerIndex; Integer parentIntegerIndex; int enableValidateRely; + String defaultValue; // 0 - Primary Key // 1 - PK-FK relationship @@ -42,6 +43,7 @@ public final static int FOREIGN_KEY_CONSTRAINT = 1; public final static int UNIQUE_CONSTRAINT = 2; public final static int NOT_NULL_CONSTRAINT = 3; + public final static int DEFAULT_CONSTRAINT = 4; @SuppressWarnings("serial") public static class PK implements Serializable { @@ -90,6 +92,29 @@ public MConstraint(String constraintName, int constraintType, int position, Inte this.parentIntegerIndex = parentIntegerIndex; } + public MConstraint(String constraintName, int constraintType, int position, Integer deleteRule, Integer updateRule, + int enableRelyValidate, MTable parentTable, MTable childTable, MColumnDescriptor parentColumn, + MColumnDescriptor childColumn, Integer childIntegerIndex, Integer parentIntegerIndex, String defaultValue) { + this.constraintName = constraintName; + this.constraintType = constraintType; + this.parentTable = parentTable; + this.childTable = childTable; + this.parentColumn = parentColumn; + this.childColumn = childColumn; + this.position = position; + this.deleteRule = deleteRule; + this.updateRule = updateRule; + this.enableValidateRely = enableRelyValidate; + this.childIntegerIndex = childIntegerIndex; + this.parentIntegerIndex = parentIntegerIndex; + this.defaultValue = defaultValue; + } + + public String getDefaultValue() { return defaultValue; } + + public void setDefaultValue(String defaultValue) { + this.defaultValue = defaultValue; + } public String getConstraintName() { return constraintName; } diff --git a/standalone-metastore/src/main/thrift/hive_metastore.thrift b/standalone-metastore/src/main/thrift/hive_metastore.thrift index 35fc8b3c93..d802150e47 100644 --- a/standalone-metastore/src/main/thrift/hive_metastore.thrift +++ b/standalone-metastore/src/main/thrift/hive_metastore.thrift @@ -90,6 +90,17 @@ struct SQLNotNullConstraint { 7: bool rely_cstr // Rely/No Rely } +struct SQLDefaultConstraint { + 1: string table_db, // table schema + 2: string table_name, // table name + 3: string column_name, // column name + 4: string default_value,// default value + 5: string dc_name, // default name + 6: bool enable_cstr, // Enable/Disable + 7: bool validate_cstr, // Validate/No validate + 8: bool rely_cstr // Rely/No Rely +} + struct Type { 1: string name, // one of the types in PrimitiveTypes or CollectionTypes or User defined types 2: optional string type1, // object type if the name is 'list' (LIST_TYPE), key type if the name is 'map' (MAP_TYPE) @@ -537,6 +548,16 @@ struct NotNullConstraintsResponse { 1: required list notNullConstraints } +struct DefaultConstraintsRequest { + 1: required string db_name, + 2: required string tbl_name +} + +struct DefaultConstraintsResponse { + 1: required list defaultConstraints +} + + struct DropConstraintRequest { 1: required string dbname, 2: required string tablename, @@ -559,6 +580,10 @@ struct AddNotNullConstraintRequest { 1: required list notNullConstraintCols } +struct AddDefaultConstraintRequest { + 1: required list defaultConstraintCols +} + // Return type for get_partitions_by_expr struct PartitionsByExprResult { 1: required list partitions, @@ -1381,7 +1406,8 @@ service ThriftHiveMetastore extends fb303.FacebookService 2:InvalidObjectException o2, 3:MetaException o3, 4:NoSuchObjectException o4) void create_table_with_constraints(1:Table tbl, 2: list primaryKeys, 3: list foreignKeys, - 4: list uniqueConstraints, 5: list notNullConstraints) + 4: list uniqueConstraints, 5: list notNullConstraints, + 6: list defaultConstraints) throws (1:AlreadyExistsException o1, 2:InvalidObjectException o2, 3:MetaException o3, 4:NoSuchObjectException o4) @@ -1395,6 +1421,8 @@ service ThriftHiveMetastore extends fb303.FacebookService throws(1:NoSuchObjectException o1, 2:MetaException o2) void add_not_null_constraint(1:AddNotNullConstraintRequest req) throws(1:NoSuchObjectException o1, 2:MetaException o2) + void add_default_constraint(1:AddDefaultConstraintRequest req) + throws(1:NoSuchObjectException o1, 2:MetaException o2) // drops the table and all the partitions associated with it if the table has partitions // delete data (including partitions) if deleteData is set to true @@ -1658,6 +1686,8 @@ service ThriftHiveMetastore extends fb303.FacebookService throws(1:MetaException o1, 2:NoSuchObjectException o2) NotNullConstraintsResponse get_not_null_constraints(1:NotNullConstraintsRequest request) throws(1:MetaException o1, 2:NoSuchObjectException o2) + DefaultConstraintsResponse get_default_constraints(1:DefaultConstraintsRequest request) + throws(1:MetaException o1, 2:NoSuchObjectException o2) // column statistics interfaces 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 75ea8c4a77..8c0cc266a3 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 @@ -63,6 +63,7 @@ import org.apache.hadoop.hive.metastore.api.WMValidateResourcePlanResponse; import org.apache.hadoop.hive.metastore.api.Role; import org.apache.hadoop.hive.metastore.api.RolePrincipalGrant; +import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; @@ -904,11 +905,19 @@ public FileMetadataHandler getFileMetadataHandler(FileMetadataExprType type) { return null; } + @Override + public List getDefaultConstraints(String db_name, String tbl_name) + throws MetaException { + // TODO Auto-generated method stub + return null; + } + @Override public List createTableWithConstraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, - List notNullConstraints) + List notNullConstraints, + List defaultConstraints) throws InvalidObjectException, MetaException { // TODO Auto-generated method stub return null; @@ -946,6 +955,13 @@ public void dropConstraint(String dbName, String tableName, return null; } + @Override + public List addDefaultConstraints(List nns) + throws InvalidObjectException, MetaException { + // TODO Auto-generated method stub + return null; + } + @Override public String getMetastoreDbUuid() throws MetaException { throw new MetaException("Get metastore uuid is not implemented"); 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 207d842f94..a0b2f986e3 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 @@ -61,6 +61,7 @@ import org.apache.hadoop.hive.metastore.api.WMValidateResourcePlanResponse; import org.apache.hadoop.hive.metastore.api.Role; import org.apache.hadoop.hive.metastore.api.RolePrincipalGrant; +import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; @@ -914,11 +915,19 @@ public FileMetadataHandler getFileMetadataHandler(FileMetadataExprType type) { return null; } + @Override + public List getDefaultConstraints(String db_name, String tbl_name) + throws MetaException { + // TODO Auto-generated method stub + return null; + } + @Override public List createTableWithConstraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, - List notNullConstraints) + List notNullConstraints, + List defaultConstraints) throws InvalidObjectException, MetaException { // TODO Auto-generated method stub return null; @@ -957,6 +966,13 @@ public void dropConstraint(String dbName, String tableName, return null; } + @Override + public List addDefaultConstraints(List nns) + throws InvalidObjectException, MetaException { + // TODO Auto-generated method stub + return null; + } + @Override public String getMetastoreDbUuid() throws MetaException { throw new MetaException("Get metastore uuid is not implemented");