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 6144b61113..a7b48b93eb 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 @@ -68,6 +68,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.SQLCheckConstraint; import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; @@ -905,6 +906,12 @@ public FileMetadataHandler getFileMetadataHandler(FileMetadataExprType type) { return null; } + @Override + public List getCheckConstraints(String db_name, String tbl_name) + throws MetaException { + return null; + } + @Override public List getDefaultConstraints(String db_name, String tbl_name) throws MetaException { @@ -916,7 +923,8 @@ public FileMetadataHandler getFileMetadataHandler(FileMetadataExprType type) { List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, - List defaultConstraints) + List defaultConstraints, + List checkConstraints) throws InvalidObjectException, MetaException { return null; } @@ -956,6 +964,12 @@ public void dropConstraint(String dbName, String tableName, return null; } + @Override + public List addCheckConstraints(List nns) + throws InvalidObjectException, MetaException { + return null; + } + @Override public String getMetastoreDbUuid() throws MetaException { throw new MetaException("getMetastoreDbUuid is not implemented"); 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 4fc0a93b61..289d122d85 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 @@ -92,6 +92,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.SQLCheckConstraint; import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; @@ -143,6 +144,7 @@ import org.apache.hadoop.hive.ql.lockmgr.HiveLockObject; import org.apache.hadoop.hive.ql.lockmgr.HiveLockObject.HiveLockObjectData; import org.apache.hadoop.hive.ql.lockmgr.HiveTxnManager; +import org.apache.hadoop.hive.ql.metadata.CheckConstraint; import org.apache.hadoop.hive.ql.metadata.CheckResult; import org.apache.hadoop.hive.ql.metadata.DefaultConstraint; import org.apache.hadoop.hive.ql.metadata.ForeignKeyInfo; @@ -3620,12 +3622,14 @@ private int describeTable(Hive db, DescTableDesc descTbl) throws HiveException, UniqueConstraint ukInfo = null; NotNullConstraint nnInfo = null; DefaultConstraint dInfo = null; + CheckConstraint cInfo = 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()); + cInfo = db.getCheckConstraints(tbl.getDbName(), tbl.getTableName()); } fixDecimalColumnTypeName(cols); // In case the query is served by HiveServer2, don't pad it with spaces, @@ -3634,7 +3638,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, dInfo); + pkInfo, fkInfo, ukInfo, nnInfo, dInfo, cInfo); LOG.debug("DDLTask: written data for {}", tableName); @@ -4755,6 +4759,7 @@ private int createTable(Hive db, CreateTableDesc crtTbl) throws HiveException { List uniqueConstraints = crtTbl.getUniqueConstraints(); List notNullConstraints = crtTbl.getNotNullConstraints(); List defaultConstraints = crtTbl.getDefaultConstraints(); + List checkConstraints = crtTbl.getCheckConstraints(); LOG.debug("creating table {} on {}",tbl.getFullyQualifiedName(),tbl.getDataLocation()); if (crtTbl.getReplicationSpec().isInReplicationScope() && (!crtTbl.getReplaceMode())){ @@ -4784,9 +4789,10 @@ private int createTable(Hive db, CreateTableDesc crtTbl) throws HiveException { (primaryKeys != null && primaryKeys.size() > 0) || (uniqueConstraints != null && uniqueConstraints.size() > 0) || (notNullConstraints != null && notNullConstraints.size() > 0) || + (checkConstraints!= null && checkConstraints.size() > 0) || defaultConstraints != null && defaultConstraints.size() > 0) { db.createTable(tbl, crtTbl.getIfNotExists(), primaryKeys, foreignKeys, - uniqueConstraints, notNullConstraints, defaultConstraints); + uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints); } else { db.createTable(tbl, crtTbl.getIfNotExists()); } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/CheckConstraint.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/CheckConstraint.java new file mode 100644 index 0000000000..3b171bffeb --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/CheckConstraint.java @@ -0,0 +1,128 @@ +/* + * 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.avro.generic.GenericData; +import org.apache.hadoop.hive.metastore.api.SQLCheckConstraint; + +/** + * CheckConstraintInfo is a metadata structure containing the Check constraints + * associated with a table. + */ +@SuppressWarnings("serial") +public class CheckConstraint implements Serializable { + + public class CheckConstraintCol { + public String colName; + public String checkExpression; + + public CheckConstraintCol(String colName, String checkExpression) { + this.colName = colName; + this.checkExpression= checkExpression; + } + } + + // Mapping from constraint name to list of Check constraints + Map> checkConstraints; + + List checkExpressionList; + + // Mapping from column name to Check value + Map colNameToCheckExprMap; + String tableName; + String databaseName; + + public CheckConstraint() {} + + public CheckConstraint(List checkConstraintsList, String tableName, String databaseName) { + this.tableName = tableName; + this.databaseName = databaseName; + checkConstraints = new TreeMap>(); + colNameToCheckExprMap = new TreeMap(); + checkExpressionList = new ArrayList<>(); + if (checkConstraintsList == null) { + return; + } + for (SQLCheckConstraint uk : checkConstraintsList) { + if (uk.getTable_db().equalsIgnoreCase(databaseName) && + uk.getTable_name().equalsIgnoreCase(tableName)) { + String colName = uk.getColumn_name(); + String check_expression = uk.getCheck_expression(); + colNameToCheckExprMap.put(colName, check_expression); + checkExpressionList.add(check_expression); + CheckConstraintCol currCol = new CheckConstraintCol( + colName, check_expression); + String constraintName = uk.getDc_name(); + if (checkConstraints.containsKey(constraintName)) { + checkConstraints.get(constraintName).add(currCol); + } else { + List currList = new ArrayList(); + currList.add(currCol); + checkConstraints.put(constraintName, currList); + } + } + } + } + + public String getTableName() { + return tableName; + } + + public String getDatabaseName() { + return databaseName; + } + + public List getCheckExpressionList() { return checkExpressionList; } + + public Map> getCheckConstraints() { + return checkConstraints; + } + public Map getColNameToCheckExprMap() { + return colNameToCheckExprMap; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("Check Constraints for " + databaseName + "." + tableName + ":"); + sb.append("["); + if (checkConstraints != null && checkConstraints.size() > 0) { + for (Map.Entry> me : checkConstraints.entrySet()) { + sb.append(" {Constraint Name: " + me.getKey() + ","); + List currCol = me.getValue(); + if (currCol != null && currCol.size() > 0) { + for (CheckConstraintCol ukc : currCol) { + sb.append (" (Column Name: " + ukc.colName + ", Check Expression : " + ukc.checkExpression+ "),"); + } + 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 5a7e297d1a..5d07a3a8dc 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.Warehouse; import org.apache.hadoop.hive.metastore.api.AggrStats; import org.apache.hadoop.hive.metastore.api.AlreadyExistsException; +import org.apache.hadoop.hive.metastore.api.CheckConstraintsRequest; import org.apache.hadoop.hive.metastore.api.CmRecycleRequest; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; import org.apache.hadoop.hive.metastore.api.CompactionResponse; @@ -124,6 +125,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.SQLCheckConstraint; import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; @@ -849,6 +851,8 @@ public void createTable(Table tbl) throws HiveException { * NOT NULL constraints associated with the table * @param defaultConstraints * DEFAULT constraints associated with the table + * @param checkConstraints + * CHECK constraints associated with the table * @throws HiveException */ public void createTable(Table tbl, boolean ifNotExists, @@ -856,7 +860,8 @@ public void createTable(Table tbl, boolean ifNotExists, List foreignKeys, List uniqueConstraints, List notNullConstraints, - List defaultConstraints) + List defaultConstraints, + List checkConstraints) throws HiveException { try { if (tbl.getDbName() == null || "".equals(tbl.getDbName().trim())) { @@ -883,11 +888,12 @@ public void createTable(Table tbl, boolean ifNotExists, } } if (primaryKeys == null && foreignKeys == null - && uniqueConstraints == null && notNullConstraints == null && defaultConstraints == null) { + && uniqueConstraints == null && notNullConstraints == null && defaultConstraints == null + && checkConstraints == null) { getMSC().createTable(tTbl); } else { getMSC().createTableWithConstraints(tTbl, primaryKeys, foreignKeys, - uniqueConstraints, notNullConstraints, defaultConstraints); + uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints); } } catch (AlreadyExistsException e) { @@ -900,7 +906,8 @@ public void createTable(Table tbl, boolean ifNotExists, } public void createTable(Table tbl, boolean ifNotExists) throws HiveException { - createTable(tbl, ifNotExists, null, null, null, null, null); + createTable(tbl, ifNotExists, null, null, null, null, + null, null); } public static List getFieldsFromDeserializerForMsStorage( @@ -4494,7 +4501,15 @@ public void dropConstraint(String dbName, String tableName, String constraintNam } } - /** + public List getCheckConstraintList(String dbName, String tblName) throws HiveException, NoSuchObjectException { + try { + return getMSC().getCheckConstraints(new CheckConstraintsRequest(dbName, tblName)); + } catch (NoSuchObjectException e) { + throw e; + } catch (Exception e) { + throw new HiveException(e); + } + } /** * Get all primary key columns associated with the table. @@ -4662,6 +4677,29 @@ public NotNullConstraint getEnabledNotNullConstraints(String dbName, String tblN } } + /** + * Get CHECK constraints associated with the table that are enabled + * + * @param dbName Database Name + * @param tblName Table Name + * @return CHECK constraints associated with the table. + * @throws HiveException + */ + public CheckConstraint getEnabledCheckConstraints(String dbName, String tblName) + throws HiveException { + try { + List checkConstraints = getMSC().getCheckConstraints( + new CheckConstraintsRequest(dbName, tblName)); + if (checkConstraints != null && !checkConstraints.isEmpty()) { + checkConstraints = checkConstraints.stream() + .filter(nnc -> nnc.isEnable_cstr()) + .collect(Collectors.toList()); + } + return new CheckConstraint(checkConstraints, tblName, dbName); + } catch (Exception e) { + throw new HiveException(e); + } + } /** * Get Default constraints associated with the table that are enabled * @@ -4717,6 +4755,21 @@ public DefaultConstraint getDefaultConstraints(String dbName, String tblName) } } + public CheckConstraint getCheckConstraints(String dbName, String tblName) + throws HiveException { + try { + List checkConstraints = getMSC().getCheckConstraints( + new CheckConstraintsRequest(dbName, tblName)); + if (checkConstraints != null && !checkConstraints.isEmpty()) { + checkConstraints = checkConstraints.stream() + .collect(Collectors.toList()); + } + return new CheckConstraint(checkConstraints, tblName, dbName); + } catch (Exception e) { + throw new HiveException(e); + } + } + public void addPrimaryKey(List primaryKeyCols) throws HiveException, NoSuchObjectException { try { @@ -4762,6 +4815,15 @@ public void addDefaultConstraint(List defaultConstraints) } } + public void addCheckConstraint(List checkConstraints) + throws HiveException, NoSuchObjectException { + try { + getMSC().addCheckConstraint(checkConstraints); + } catch (Exception e) { + throw new HiveException(e); + } + } + public void createResourcePlan(WMResourcePlan resourcePlan, String copyFromName) throws HiveException { 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 da82f68f73..cd70eee26c 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 @@ -43,6 +43,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.CheckConstraint; import org.apache.hadoop.hive.ql.metadata.DefaultConstraint; import org.apache.hadoop.hive.ql.metadata.ForeignKeyInfo; import org.apache.hadoop.hive.ql.metadata.Hive; @@ -115,7 +116,8 @@ public void describeTable(DataOutputStream out, String colPath, boolean isFormatted, boolean isExt, boolean isOutputPadded, List colStats, PrimaryKeyInfo pkInfo, ForeignKeyInfo fkInfo, - UniqueConstraint ukInfo, NotNullConstraint nnInfo, DefaultConstraint dInfo) throws HiveException { + UniqueConstraint ukInfo, NotNullConstraint nnInfo, DefaultConstraint dInfo, + CheckConstraint cInfo) throws HiveException { MapBuilder builder = MapBuilder.create(); builder.put("columns", makeColsUnformatted(cols)); @@ -141,6 +143,9 @@ public void describeTable(DataOutputStream out, String colPath, if (dInfo != null && !dInfo.getDefaultConstraints().isEmpty()) { builder.put("defaultConstraintInfo", dInfo); } + if (cInfo != null && !cInfo.getCheckConstraints().isEmpty()) { + builder.put("checkConstraintInfo", cInfo); + } } 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 bfc7b38ceb..af283e693b 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,6 +41,7 @@ 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.CheckConstraint; import org.apache.hadoop.hive.ql.metadata.DefaultConstraint; import org.apache.hadoop.hive.ql.metadata.ForeignKeyInfo; import org.apache.hadoop.hive.ql.metadata.HiveException; @@ -134,7 +135,7 @@ static ColumnStatisticsObj getColumnStatisticsObject(String colName, } public static String getConstraintsInformation(PrimaryKeyInfo pkInfo, ForeignKeyInfo fkInfo, - UniqueConstraint ukInfo, NotNullConstraint nnInfo, DefaultConstraint dInfo) { + UniqueConstraint ukInfo, NotNullConstraint nnInfo, DefaultConstraint dInfo, CheckConstraint cInfo) { StringBuilder constraintsInfo = new StringBuilder(DEFAULT_STRINGBUILDER_SIZE); constraintsInfo.append(LINE_DELIM).append("# Constraints").append(LINE_DELIM); @@ -158,6 +159,10 @@ public static String getConstraintsInformation(PrimaryKeyInfo pkInfo, ForeignKey constraintsInfo.append(LINE_DELIM).append("# Default Constraints").append(LINE_DELIM); getDefaultConstraintsInformation(constraintsInfo, dInfo); } + if (cInfo != null && !cInfo.getCheckConstraints().isEmpty()) { + constraintsInfo.append(LINE_DELIM).append("# Check Constraints").append(LINE_DELIM); + getCheckConstraintsInformation(constraintsInfo, cInfo); + } return constraintsInfo.toString(); } @@ -265,6 +270,15 @@ private static void getDefaultConstraintColInformation(StringBuilder constraints fkcFields[1] = "Default Value:" + ukCol.defaultVal; formatOutput(fkcFields, constraintsInfo); } + + private static void getCheckConstraintColInformation(StringBuilder constraintsInfo, + CheckConstraint.CheckConstraintCol ukCol) { + String[] fkcFields = new String[2]; + fkcFields[0] = "Column Name:" + ukCol.colName; + fkcFields[1] = "Check Value:" + ukCol.checkExpression; + formatOutput(fkcFields, constraintsInfo); + } + private static void getDefaultConstraintRelInformation( StringBuilder constraintsInfo, String constraintName, @@ -278,6 +292,19 @@ private static void getDefaultConstraintRelInformation( constraintsInfo.append(LINE_DELIM); } + private static void getCheckConstraintRelInformation( + StringBuilder constraintsInfo, + String constraintName, + List ukRel) { + formatOutput("Constraint Name:", constraintName, constraintsInfo); + if (ukRel != null && ukRel.size() > 0) { + for (CheckConstraint.CheckConstraintCol ukc : ukRel) { + getCheckConstraintColInformation(constraintsInfo, ukc); + } + } + constraintsInfo.append(LINE_DELIM); + } + private static void getDefaultConstraintsInformation(StringBuilder constraintsInfo, DefaultConstraint dInfo) { formatOutput("Table:", @@ -291,6 +318,18 @@ private static void getDefaultConstraintsInformation(StringBuilder constraintsIn } } + private static void getCheckConstraintsInformation(StringBuilder constraintsInfo, + CheckConstraint dInfo) { + formatOutput("Table:", + dInfo.getDatabaseName() + "." + dInfo.getTableName(), + constraintsInfo); + Map> checkConstraints = dInfo.getCheckConstraints(); + if (checkConstraints != null && checkConstraints.size() > 0) { + for (Map.Entry> me : checkConstraints.entrySet()) { + getCheckConstraintRelInformation(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 6309bfdc2b..ed2cdd11b3 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,6 +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.CheckConstraint; import org.apache.hadoop.hive.ql.metadata.DefaultConstraint; import org.apache.hadoop.hive.ql.metadata.ForeignKeyInfo; import org.apache.hadoop.hive.ql.metadata.Hive; @@ -90,7 +91,7 @@ public void describeTable(DataOutputStream out, String colPath, boolean isFormatted, boolean isExt, boolean isOutputPadded, List colStats, PrimaryKeyInfo pkInfo, ForeignKeyInfo fkInfo, - UniqueConstraint ukInfo, NotNullConstraint nnInfo, DefaultConstraint dInfo) + UniqueConstraint ukInfo, NotNullConstraint nnInfo, DefaultConstraint dInfo, CheckConstraint cInfo) 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 006584839a..7bbd9a0113 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 @@ -45,6 +45,7 @@ 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.CheckConstraint; import org.apache.hadoop.hive.ql.metadata.DefaultConstraint; import org.apache.hadoop.hive.ql.metadata.ForeignKeyInfo; import org.apache.hadoop.hive.ql.metadata.Hive; @@ -131,7 +132,8 @@ public void describeTable(DataOutputStream outStream, String colPath, boolean isFormatted, boolean isExt, boolean isOutputPadded, List colStats, PrimaryKeyInfo pkInfo, ForeignKeyInfo fkInfo, - UniqueConstraint ukInfo, NotNullConstraint nnInfo, DefaultConstraint dInfo) throws HiveException { + UniqueConstraint ukInfo, NotNullConstraint nnInfo, DefaultConstraint dInfo, CheckConstraint cInfo) + throws HiveException { try { List partCols = tbl.isPartitioned() ? tbl.getPartCols() : null; String output = ""; @@ -189,8 +191,9 @@ public void describeTable(DataOutputStream outStream, String colPath, (fkInfo != null && !fkInfo.getForeignKeys().isEmpty()) || (ukInfo != null && !ukInfo.getUniqueConstraints().isEmpty()) || (nnInfo != null && !nnInfo.getNotNullConstraints().isEmpty()) || + cInfo != null && !cInfo.getCheckConstraints().isEmpty() || dInfo != null && !dInfo.getDefaultConstraints().isEmpty()) { - output = MetaDataFormatUtils.getConstraintsInformation(pkInfo, fkInfo, ukInfo, nnInfo, dInfo); + output = MetaDataFormatUtils.getConstraintsInformation(pkInfo, fkInfo, ukInfo, nnInfo, dInfo, cInfo); 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 7a74a606ad..048803cc36 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 @@ -36,20 +36,15 @@ import java.util.Properties; import java.util.Set; +import javolution.io.Struct; +import org.antlr.runtime.TokenRewriteStream; 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.SQLDefaultConstraint; -import org.apache.hadoop.hive.metastore.api.SQLForeignKey; -import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; -import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; -import org.apache.hadoop.hive.metastore.api.SQLUniqueConstraint; +import org.apache.hadoop.hive.metastore.api.*; import org.apache.hadoop.hive.metastore.utils.MetaStoreUtils; import org.apache.hadoop.hive.ql.CompilationOpContext; import org.apache.hadoop.hive.ql.Context; @@ -58,11 +53,7 @@ import org.apache.hadoop.hive.ql.QueryState; 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; +import org.apache.hadoop.hive.ql.exec.*; import org.apache.hadoop.hive.ql.hooks.LineageInfo; import org.apache.hadoop.hive.ql.hooks.ReadEntity; import org.apache.hadoop.hive.ql.hooks.WriteEntity; @@ -91,6 +82,7 @@ import org.apache.hadoop.hive.ql.udf.generic.GenericUDFCurrentUser; import org.apache.hadoop.hive.ql.udf.generic.GenericUDFOPNull; import org.apache.hadoop.hive.serde.serdeConstants; +import org.apache.hadoop.hive.serde2.dynamic_type.Token; import org.apache.hadoop.hive.serde2.io.DateWritable; import org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe; import org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector; @@ -649,9 +641,9 @@ private static String spliceString(String str, int i, int length, String replace * Get the list of FieldSchema out of the ASTNode. */ public static List getColumns(ASTNode ast, boolean lowerCase) throws SemanticException { - return getColumns(ast, lowerCase, new ArrayList(), new ArrayList(), + return getColumns(ast, lowerCase, null,new ArrayList(), new ArrayList(), new ArrayList(), new ArrayList(), - new ArrayList()); + new ArrayList(), new ArrayList()); } private static class ConstraintInfo { @@ -696,7 +688,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, null); + generateConstraintInfos(child, columnNames, primaryKeyInfos, null, null); constraintInfosToPrimaryKeys(databaseName, tableName, primaryKeyInfos, primaryKeys); } @@ -724,7 +716,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, null); + generateConstraintInfos(child, columnNames, uniqueInfos, null, null); constraintInfosToUniqueConstraints(databaseName, tableName, uniqueInfos, uniqueConstraints); } @@ -737,11 +729,30 @@ private static void constraintInfosToUniqueConstraints(String databaseName, Stri } } + protected static void processCheckConstraints(String databaseName, String tableName, + ASTNode child, List columnNames, + List checkConstraints, final ASTNode typeChild, + final TokenRewriteStream tokenRewriteStream) + throws SemanticException { + List checkInfos = new ArrayList(); + generateConstraintInfos(child, columnNames, checkInfos, typeChild, tokenRewriteStream); + constraintInfosToCheckConstraints(databaseName, tableName, checkInfos, checkConstraints); + } + + private static void constraintInfosToCheckConstraints(String databaseName, String tableName, + List checkInfos, + List checkConstraints) { + for (ConstraintInfo checkInfo : checkInfos) { + checkConstraints.add(new SQLCheckConstraint(databaseName, tableName, checkInfo.colName, + checkInfo.defaultValue, checkInfo.constraintName, checkInfo.enable, + checkInfo.validate, checkInfo.rely)); + } + } 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); + generateConstraintInfos(child, columnNames, defaultInfos, typeChild, null); constraintInfosToDefaultConstraints(databaseName, tableName, defaultInfos, defaultConstraints); } @@ -758,7 +769,7 @@ protected static void processNotNullConstraints(String databaseName, String tabl ASTNode child, List columnNames, List notNullConstraints) throws SemanticException { List notNullInfos = new ArrayList(); - generateConstraintInfos(child, columnNames, notNullInfos, null); + generateConstraintInfos(child, columnNames, notNullInfos, null, null); constraintInfosToNotNullConstraints(databaseName, tableName, notNullInfos, notNullConstraints); } @@ -785,7 +796,7 @@ private static void generateConstraintInfos(ASTNode child, checkColumnName(columnName.getText()); columnNames.add(unescapeIdentifier(columnName.getText().toLowerCase())); } - generateConstraintInfos(child, columnNames.build(), cstrInfos, null); + generateConstraintInfos(child, columnNames.build(), cstrInfos, null, null); } private static boolean isDefaultValueAllowed(final ExprNodeDesc defaultValExpr) { @@ -807,6 +818,43 @@ else if(defaultValExpr instanceof ExprNodeGenericFuncDesc){ return false; } + public static void validateCheckConstraint(List cols, List checkConstraints) + throws SemanticException{ + + // create colinfo and then row resolver + RowResolver rr = new RowResolver(); + for(FieldSchema col: cols) { + ColumnInfo ci = new ColumnInfo(col.getName(),TypeInfoUtils.getTypeInfoFromTypeString(col.getType()), + null, false); + rr.put(null, col.getName(), ci); + } + + TypeCheckCtx typeCheckCtx = new TypeCheckCtx(rr); + for(SQLCheckConstraint cc:checkConstraints) { + try { + ParseDriver parseDriver = new ParseDriver(); + ASTNode checkExprAST = parseDriver.parseExpression(cc.getCheck_expression()); + Map genExprs = TypeCheckProcFactory + .genExprNode(checkExprAST, typeCheckCtx); + ExprNodeDesc checkExpr = genExprs.get(checkExprAST); + if(checkExpr == null || checkExpr.getTypeInfo().getTypeName() != serdeConstants.BOOLEAN_TYPE_NAME) { + throw new SemanticException( + ErrorMsg.INVALID_CSTR_SYNTAX.getMsg("Invalid type for CHECK constraint: ") + + cc.getCheck_expression()); + } + } catch(Exception e) { + throw new SemanticException( + ErrorMsg.INVALID_CSTR_SYNTAX.getMsg("Invalid CHECK constraint expression: ") + + cc.getCheck_expression() + ". " + e.getMessage()); + } + } + } + + private static String getCheckExpression(ASTNode checkExprAST, final TokenRewriteStream tokenRewriteStream) + throws SemanticException{ + return tokenRewriteStream.toOriginalString(checkExprAST.getTokenStartIndex(), checkExprAST.getTokenStopIndex()); + } + /** * Validate and get the default value from the AST * @param defaultValueAST AST node corresponding to default value @@ -865,7 +913,8 @@ private static String getDefaultValue(ASTNode defaultValueAST, ASTNode typeChild * @throws SemanticException */ private static void generateConstraintInfos(ASTNode child, List columnNames, - List cstrInfos, ASTNode typeChildForDefault) throws SemanticException { + List cstrInfos, ASTNode typeChildForDefault, + final TokenRewriteStream tokenRewriteStream) throws SemanticException { // The ANTLR grammar looks like : // 1. KW_CONSTRAINT idfr=identifier KW_PRIMARY KW_KEY pkCols=columnParenthesesList // constraintOptsCreate? @@ -882,7 +931,7 @@ private static void generateConstraintInfos(ASTNode child, List columnNa boolean enable = true; boolean validate = false; boolean rely = false; - String defaultValue = null; + String checkOrDefaultValue = null; for (int i = 0; i < child.getChildCount(); i++) { ASTNode grandChild = (ASTNode) child.getChild(i); int type = grandChild.getToken().getType(); @@ -908,7 +957,10 @@ private static void generateConstraintInfos(ASTNode child, List columnNa 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); + checkOrDefaultValue = getDefaultValue(grandChild, typeChildForDefault); + } + else if(child.getToken().getType() == HiveParser.TOK_CHECK_CONSTRAINT) { + checkOrDefaultValue = getCheckExpression(grandChild, tokenRewriteStream); } } @@ -922,7 +974,8 @@ private static void generateConstraintInfos(ASTNode child, List columnNa // NOT NULL constraint could be enforced/enabled if (enable && child.getToken().getType() != HiveParser.TOK_NOT_NULL - && child.getToken().getType() != HiveParser.TOK_DEFAULT_VALUE) { + && child.getToken().getType() != HiveParser.TOK_DEFAULT_VALUE + && child.getToken().getType() != HiveParser.TOK_CHECK_CONSTRAINT) { throw new SemanticException( ErrorMsg.INVALID_CSTR_SYNTAX.getMsg("ENABLE/ENFORCED feature not supported yet. " + "Please use DISABLE/NOT ENFORCED instead.")); @@ -935,7 +988,7 @@ private static void generateConstraintInfos(ASTNode child, List columnNa for (String columnName : columnNames) { cstrInfos.add(new ConstraintInfo(columnName, constraintName, - enable, validate, rely, defaultValue)); + enable, validate, rely, checkOrDefaultValue)); } } @@ -1026,7 +1079,8 @@ protected static void processForeignKeys(String databaseName, String tableName, } protected boolean hasEnabledOrValidatedConstraints(List notNullConstraints, - List defaultConstraints){ + List defaultConstraints, + List checkConstraints){ if(notNullConstraints != null) { for (SQLNotNullConstraint nnC : notNullConstraints) { if (nnC.isEnable_cstr() || nnC.isValidate_cstr()) { @@ -1034,12 +1088,11 @@ protected boolean hasEnabledOrValidatedConstraints(List no } } } - if(defaultConstraints!= null) { - for (SQLDefaultConstraint nnC : defaultConstraints) { - if (nnC.isEnable_cstr() || nnC.isValidate_cstr()) { + if(defaultConstraints!= null && !defaultConstraints.isEmpty()) { + return true; + } + if(checkConstraints!= null && !checkConstraints.isEmpty()) { return true; - } - } } return false; } @@ -1055,9 +1108,11 @@ private static void checkColumnName(String columnName) throws SemanticException * Additionally, populate the primaryKeys and foreignKeys if any. */ public static List getColumns(ASTNode ast, boolean lowerCase, + TokenRewriteStream tokenRewriteStream, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, - List defaultConstraints) + List defaultConstraints, + List checkConstraints) throws SemanticException { List colList = new ArrayList(); Tree parent = ast.getParent(); @@ -1115,6 +1170,11 @@ 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_CHECK_CONSTRAINT: + processCheckConstraints(qualifiedTabName[0], qualifiedTabName[1], constraintChild, + ImmutableList.of(col.getName()), checkConstraints, typeChild, + tokenRewriteStream); + break; case HiveParser.TOK_DEFAULT_VALUE: processDefaultConstraints(qualifiedTabName[0], qualifiedTabName[1], constraintChild, ImmutableList.of(col.getName()), defaultConstraints, typeChild); 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 5761795b1c..55eaf600da 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.SQLCheckConstraint; import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; @@ -3112,9 +3113,16 @@ private void analyzeAlterTableRenameCol(String[] qualified, ASTNode ast, List uniqueConstraints = null; List notNullConstraints = null; List defaultConstraints= null; + List checkConstraints= null; if (constraintChild != null) { // Process column constraint switch (constraintChild.getToken().getType()) { + case HiveParser.TOK_CHECK_CONSTRAINT: + checkConstraints = new ArrayList<>(); + processCheckConstraints(qualified[0], qualified[1], constraintChild, + ImmutableList.of(newColName), checkConstraints, (ASTNode)ast.getChild(2), + this.ctx.getTokenRewriteStream()); + break; case HiveParser.TOK_DEFAULT_VALUE: defaultConstraints = new ArrayList<>(); processDefaultConstraints(qualified[0], qualified[1], constraintChild, @@ -3150,7 +3158,7 @@ private void analyzeAlterTableRenameCol(String[] qualified, ASTNode ast, Table tab = getTable(qualified); if(tab.getTableType() == TableType.EXTERNAL_TABLE - && hasEnabledOrValidatedConstraints(notNullConstraints, defaultConstraints)){ + && hasEnabledOrValidatedConstraints(notNullConstraints, defaultConstraints, checkConstraints)){ throw new SemanticException( ErrorMsg.INVALID_CSTR_SYNTAX.getMsg("Constraints are disallowed with External tables. " + "Only RELY is allowed.")); diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g b/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g index a1ec96cff9..3ff6a5e4e3 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g @@ -360,6 +360,7 @@ KW_QUERY_PARALLELISM: 'QUERY_PARALLELISM'; KW_PLANS: 'PLANS'; KW_ACTIVATE: 'ACTIVATE'; KW_DEFAULT: 'DEFAULT'; +KW_CHECK: 'CHECK'; KW_POOL: 'POOL'; KW_MOVE: 'MOVE'; KW_DO: 'DO'; 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 3abc75248b..8254da7636 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 @@ -110,6 +110,7 @@ TOK_UNIQUE; TOK_PRIMARY_KEY; TOK_FOREIGN_KEY; TOK_DEFAULT_VALUE; +TOK_CHECK_CONSTRAINT; TOK_VALIDATE; TOK_NOVALIDATE; TOK_RELY; @@ -598,6 +599,7 @@ import org.apache.hadoop.hive.conf.HiveConf; xlateMap.put("KW_PLANS", "PLANS"); xlateMap.put("KW_ACTIVATE", "ACTIVATE"); xlateMap.put("KW_DEFAULT", "DEFAULT"); + xlateMap.put("KW_CHECK", "CHECK"); xlateMap.put("KW_POOL", "POOL"); xlateMap.put("KW_MOVE", "MOVE"); xlateMap.put("KW_DO", "DO"); @@ -2411,6 +2413,7 @@ alterColConstraint columnConstraintType : KW_NOT KW_NULL -> TOK_NOT_NULL | KW_DEFAULT defaultVal-> ^(TOK_DEFAULT_VALUE defaultVal) + | KW_CHECK expression -> ^(TOK_CHECK_CONSTRAINT expression) | tableConstraintType ; 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 d1609e1186..15a45cbd14 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 @@ -73,6 +73,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.SQLCheckConstraint; import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; @@ -129,24 +130,15 @@ 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.*; import org.apache.hadoop.hive.ql.lockmgr.HiveTxnManager; import org.apache.hadoop.hive.ql.lockmgr.LockException; -import org.apache.hadoop.hive.ql.metadata.DummyPartition; -import org.apache.hadoop.hive.ql.metadata.Hive; -import org.apache.hadoop.hive.ql.metadata.HiveException; -import org.apache.hadoop.hive.ql.metadata.HiveUtils; -import org.apache.hadoop.hive.ql.metadata.InvalidTableException; -import org.apache.hadoop.hive.ql.metadata.NotNullConstraint; -import org.apache.hadoop.hive.ql.metadata.Partition; -import org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient; -import org.apache.hadoop.hive.ql.metadata.Table; -import org.apache.hadoop.hive.ql.metadata.VirtualColumn; import org.apache.hadoop.hive.ql.optimizer.Optimizer; import org.apache.hadoop.hive.ql.optimizer.QueryPlanPostProcessor; import org.apache.hadoop.hive.ql.optimizer.Transform; import org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSemanticException; import org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSemanticException.UnsupportedFeature; +import org.apache.hadoop.hive.ql.optimizer.calcite.translator.ASTBuilder; import org.apache.hadoop.hive.ql.optimizer.calcite.translator.HiveOpConverterPostProc; import org.apache.hadoop.hive.ql.optimizer.lineage.Generator; import org.apache.hadoop.hive.ql.optimizer.unionproc.UnionProcContext; @@ -6703,6 +6695,78 @@ private void setStatsForNonNativeTable(Table tab) throws SemanticException { this.rootTasks.add(TaskFactory.get(new DDLWork(getInputs(), getOutputs(), alterTblDesc), conf)); } + + private void replaceColumnReference(ASTNode checkExpr, Map col2Col){ + if(checkExpr.getType() == HiveParser.TOK_TABLE_OR_COL) { + ASTNode oldColChild = (ASTNode)(checkExpr.getChild(0)); + String oldColRef = oldColChild.getText(); + assert(col2Col.containsKey(oldColRef)); + String newColRef = col2Col.get(oldColRef); + checkExpr.deleteChild(0); + checkExpr.addChild(ASTBuilder.createAST(oldColChild.getType(), newColRef)); + } + else { + for(int i=0; i< ((ASTNode)checkExpr).getChildCount(); i++) { + replaceColumnReference((ASTNode)(checkExpr.getChild(i)), col2Col); + } + } + } + + private ExprNodeDesc getCheckConstraintExpr(Table tbl, Operator input, RowResolver inputRR) + throws SemanticException{ + + CheckConstraint cc = null; + try { + cc = Hive.get().getEnabledCheckConstraints(tbl.getDbName(), tbl.getTableName()); + } + catch(HiveException e) { + throw new SemanticException(e); + } + if(cc == null || cc.getCheckConstraints().isEmpty()) { + return null; + } + + // build a map which tracks the name of column in input's signature to corresponding table column name + // this will be used to replace column references in CHECK expression AST with corresponding column name + // in input + Map col2Cols = new HashMap<>(); + Operator parentOp = (Operator)input.getParentOperators().get(0); + List colInfos = parentOp.getSchema().getSignature(); + int colIdx = 0; + for(FieldSchema fs: tbl.getCols()) { + col2Cols.put(fs.getName(), colInfos.get(colIdx).getInternalName()); + colIdx++; + } + + List checkExprStrs = cc.getCheckExpressionList(); + TypeCheckCtx typeCheckCtx = new TypeCheckCtx(inputRR); + ExprNodeDesc checkAndExprs = null; + for(String checkExprStr:checkExprStrs) { + try { + ParseDriver parseDriver = new ParseDriver(); + ASTNode checkExprAST = parseDriver.parseExpression(checkExprStr); + //replace column references in checkExprAST with corresponding columns in input + replaceColumnReference(checkExprAST, col2Cols); + Map genExprs = TypeCheckProcFactory + .genExprNode(checkExprAST, typeCheckCtx); + ExprNodeDesc checkExpr = genExprs.get(checkExprAST); + // Check constraint fails only if it evaluates to false, NULL/UNKNOWN should evaluate to TRUE + ExprNodeDesc notFalseCheckExpr = TypeCheckProcFactory.DefaultExprProcessor. + getFuncExprNodeDesc("isnotfalse", checkExpr); + if(checkAndExprs == null) { + checkAndExprs = notFalseCheckExpr; + } + else { + checkAndExprs = TypeCheckProcFactory.DefaultExprProcessor. + getFuncExprNodeDesc("and", checkAndExprs, notFalseCheckExpr); + } + } catch(Exception e) { + throw new SemanticException(e); + } + } + return checkAndExprs; + } + private ImmutableBitSet getEnabledNotNullConstraints(Table tbl) throws HiveException{ List nullConstraints = new ArrayList<>(); final NotNullConstraint nnc = Hive.get().getEnabledNotNullConstraints( @@ -6743,15 +6807,7 @@ private boolean mergeCardinalityViolationBranch(final Operator input) { return false; } - private Operator - genIsNotNullConstraint(String dest, QB qb, Operator input) - throws SemanticException { - - boolean forceNotNullConstraint = conf.getBoolVar(ConfVars.HIVE_ENFORCE_NOT_NULL_CONSTRAINT); - if(!forceNotNullConstraint) { - return input; - } - + private Operator genConstraintsPlan(String dest, QB qb, Operator input) throws SemanticException { if(deleting(dest)) { // for DELETE statements NOT NULL constraint need not be checked return input; @@ -6775,8 +6831,45 @@ else if(dest_type == QBMetaData.DEST_PARTITION){ } else { - throw new SemanticException("Generating NOT NULL constraint check: Invalid target type: " + dest); + throw new SemanticException("Generating constraint check plan: Invalid target type: " + dest); } + + RowResolver inputRR = opParseCtx.get(input).getRowResolver(); + ExprNodeDesc nullConstraintExpr = getNotNullConstraintExpr(targetTable, input, dest); + ExprNodeDesc checkConstraintExpr = getCheckConstraintExpr(targetTable, input, inputRR); + + ExprNodeDesc combinedConstraintExpr = null; + if(nullConstraintExpr != null && checkConstraintExpr != null) { + assert (input.getParentOperators().size() == 1); + combinedConstraintExpr = TypeCheckProcFactory.DefaultExprProcessor. + getFuncExprNodeDesc("and", nullConstraintExpr, checkConstraintExpr); + + } + else if(nullConstraintExpr != null) { + combinedConstraintExpr = nullConstraintExpr; + } + else if(checkConstraintExpr != null) { + combinedConstraintExpr = checkConstraintExpr; + } + + if (combinedConstraintExpr != null) { + ExprNodeDesc constraintUDF = TypeCheckProcFactory.DefaultExprProcessor. + getFuncExprNodeDesc("enforce_constraint", combinedConstraintExpr); + Operator newConstraintFilter = putOpInsertMap(OperatorFactory.getAndMakeChild( + new FilterDesc(constraintUDF, false), new RowSchema( + inputRR.getColumnInfos()), input), inputRR); + + return newConstraintFilter; + } + return input; + } + + private ExprNodeDesc getNotNullConstraintExpr(Table targetTable, Operator input, String dest) throws SemanticException { + boolean forceNotNullConstraint = conf.getBoolVar(ConfVars.HIVE_ENFORCE_NOT_NULL_CONSTRAINT); + if(!forceNotNullConstraint) { + return null; + } + ImmutableBitSet nullConstraintBitSet = null; try { nullConstraintBitSet = getEnabledNotNullConstraints(targetTable); @@ -6787,12 +6880,14 @@ else if(dest_type == QBMetaData.DEST_PARTITION){ throw (new RuntimeException(e)); } } - if(nullConstraintBitSet == null) { - return input; + + if(nullConstraintBitSet == null) { + return null; } List colInfos = input.getSchema().getSignature(); ExprNodeDesc currUDF = null; + // Add NOT NULL constraints int constraintIdx = 0; for(int colExprIdx=0; colExprIdx < colInfos.size(); colExprIdx++) { if(updating(dest) && colExprIdx == 0) { @@ -6803,28 +6898,18 @@ else if(dest_type == QBMetaData.DEST_PARTITION){ ExprNodeDesc currExpr = TypeCheckProcFactory.toExprNodeDesc(colInfos.get(colExprIdx)); ExprNodeDesc isNotNullUDF = TypeCheckProcFactory.DefaultExprProcessor. getFuncExprNodeDesc("isnotnull", currExpr); - ExprNodeDesc constraintUDF = TypeCheckProcFactory.DefaultExprProcessor. - getFuncExprNodeDesc("enforce_constraint", isNotNullUDF); if (currUDF != null) { currUDF = TypeCheckProcFactory.DefaultExprProcessor. - getFuncExprNodeDesc("and", currUDF, constraintUDF); + getFuncExprNodeDesc("and", currUDF, isNotNullUDF); } else { - currUDF = constraintUDF; + currUDF = isNotNullUDF; } } constraintIdx++; } - if (currUDF != null) { - assert (input.getParentOperators().size() == 1); - RowResolver inputRR = opParseCtx.get(input).getRowResolver(); - Operator newConstraintFilter = putOpInsertMap(OperatorFactory.getAndMakeChild( - new FilterDesc(currUDF, false), new RowSchema( - inputRR.getColumnInfos()), input), inputRR); - - return newConstraintFilter; - } - return input; + return currUDF; } + @SuppressWarnings("nls") protected Operator genFileSinkPlan(String dest, QB qb, Operator input) throws SemanticException { @@ -6912,7 +6997,7 @@ protected Operator genFileSinkPlan(String dest, QB qb, Operator input) table_desc = Utilities.getTableDesc(dest_tab); // Add NOT NULL constraint check - input = genIsNotNullConstraint(dest, qb, input); + input = genConstraintsPlan(dest, qb, input); // Add sorting/bucketing if needed input = genBucketingSortingDest(dest, input, qb, table_desc, dest_tab, rsCtx); @@ -7009,7 +7094,7 @@ protected Operator genFileSinkPlan(String dest, QB qb, Operator input) table_desc = Utilities.getTableDesc(dest_tab); // Add NOT NULL constraint check - input = genIsNotNullConstraint(dest, qb, input); + input = genConstraintsPlan(dest, qb, input); // Add sorting/bucketing if needed input = genBucketingSortingDest(dest, input, qb, table_desc, dest_tab, rsCtx); @@ -12469,21 +12554,28 @@ private void validate(Task task, boolean reworkMapredWor } /** - * Checks to see if given partition columns has DEFAULT constraints (whether ENABLED or DISABLED) + * Checks to see if given partition columns has DEFAULT or CHECK constraints (whether ENABLED or DISABLED) * Or has NOT NULL constraints (only ENABLED) * @param partCols partition columns * @param defConstraints default constraints * @param notNullConstraints not null constraints - * @return + * @param checkConstraints CHECK constraints + * @return true or false */ boolean hasConstraints(final List partCols, final List defConstraints, - final List notNullConstraints) { + final List notNullConstraints, + final List checkConstraints) { for(FieldSchema partFS: partCols) { for(SQLDefaultConstraint dc:defConstraints) { if(dc.getColumn_name().equals(partFS.getName())) { return true; } } + for(SQLCheckConstraint cc:checkConstraints) { + if(cc.getColumn_name().equals(partFS.getName())) { + return true; + } + } for(SQLNotNullConstraint nc:notNullConstraints) { if(nc.getColumn_name().equals(partFS.getName()) && nc.isEnable_cstr()) { return true; @@ -12514,6 +12606,7 @@ ASTNode analyzeCreateTable( List uniqueConstraints = new ArrayList<>(); List notNullConstraints = new ArrayList<>(); List defaultConstraints= new ArrayList<>(); + List checkConstraints= new ArrayList<>(); List sortCols = new ArrayList(); int numBuckets = -1; String comment = null; @@ -12606,19 +12699,19 @@ ASTNode analyzeCreateTable( selectStmt = child; break; case HiveParser.TOK_TABCOLLIST: - cols = getColumns(child, true, primaryKeys, foreignKeys, - uniqueConstraints, notNullConstraints, defaultConstraints); + cols = getColumns(child, true, ctx.getTokenRewriteStream(), primaryKeys, foreignKeys, + uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints); break; case HiveParser.TOK_TABLECOMMENT: comment = unescapeSQLString(child.getChild(0).getText()); break; case HiveParser.TOK_TABLEPARTCOLS: - partCols = getColumns(child, false, primaryKeys, foreignKeys, - uniqueConstraints, notNullConstraints, defaultConstraints); - if(hasConstraints(partCols, defaultConstraints, notNullConstraints)) { + partCols = getColumns(child, false, ctx.getTokenRewriteStream(),primaryKeys, foreignKeys, + uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints); + if(hasConstraints(partCols, defaultConstraints, notNullConstraints, checkConstraints)) { //TODO: these constraints should be supported for partition columns throw new SemanticException( - ErrorMsg.INVALID_CSTR_SYNTAX.getMsg("NOT NULL and Default Constraints are not allowed with " + + ErrorMsg.INVALID_CSTR_SYNTAX.getMsg("NOT NULL,DEFAULT and CHECK Constraints are not allowed with " + "partition columns. ")); } break; @@ -12678,11 +12771,14 @@ ASTNode analyzeCreateTable( throw new SemanticException("Unrecognized command."); } - if(isExt && hasEnabledOrValidatedConstraints(notNullConstraints, defaultConstraints)){ + if(isExt && hasEnabledOrValidatedConstraints(notNullConstraints, defaultConstraints, checkConstraints)){ throw new SemanticException( ErrorMsg.INVALID_CSTR_SYNTAX.getMsg("Constraints are disallowed with External tables. " + "Only RELY is allowed.")); } + if(checkConstraints != null && !checkConstraints.isEmpty()) { + validateCheckConstraint(cols, checkConstraints); + } storageFormat.fillDefaultStorageFormat(isExt, false); @@ -12737,7 +12833,8 @@ ASTNode analyzeCreateTable( comment, storageFormat.getInputFormat(), storageFormat.getOutputFormat(), location, storageFormat.getSerde(), storageFormat.getStorageHandler(), storageFormat.getSerdeProps(), tblProps, ifNotExists, skewedColNames, - skewedValues, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints); + skewedValues, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, + checkConstraints); crtTblDesc.setStoredAsSubDirectories(storedAsDirs); crtTblDesc.setNullFormat(rowFormatParams.nullFormat); @@ -12838,7 +12935,7 @@ ASTNode analyzeCreateTable( storageFormat.getOutputFormat(), location, storageFormat.getSerde(), storageFormat.getStorageHandler(), storageFormat.getSerdeProps(), tblProps, ifNotExists, skewedColNames, skewedValues, true, primaryKeys, foreignKeys, - uniqueConstraints, notNullConstraints, defaultConstraints); + uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints); tableDesc.setMaterialization(isMaterialization); tableDesc.setStoredAsSubDirectories(storedAsDirs); tableDesc.setNullFormat(rowFormatParams.nullFormat); 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 ff9df3d87a..04292787a8 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.SQLCheckConstraint; import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; @@ -102,6 +103,7 @@ List uniqueConstraints; List notNullConstraints; List defaultConstraints; + List checkConstraints; 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. @@ -122,14 +124,14 @@ public CreateTableDesc(String databaseName, String tableName, boolean isExternal boolean ifNotExists, List skewedColNames, List> skewedColValues, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, - List defaultConstraints) { + List defaultConstraints, List checkConstraints) { 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, defaultConstraints); + primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints); this.databaseName = databaseName; } @@ -146,13 +148,13 @@ public CreateTableDesc(String databaseName, String tableName, boolean isExternal boolean ifNotExists, List skewedColNames, List> skewedColValues, boolean isCTAS, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, - List defaultConstraints) { + List defaultConstraints, List checkConstraints) { 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, defaultConstraints); + primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints); this.isCTAS = isCTAS; } @@ -170,7 +172,7 @@ public CreateTableDesc(String tableName, boolean isExternal, boolean isTemporary boolean ifNotExists, List skewedColNames, List> skewedColValues, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, - List defaultConstraints) { + List defaultConstraints, List checkConstraints) { this.tableName = tableName; this.isExternal = isExternal; this.isTemporary = isTemporary; @@ -200,6 +202,7 @@ public CreateTableDesc(String tableName, boolean isExternal, boolean isTemporary this.uniqueConstraints = copyList(uniqueConstraints); this.notNullConstraints = copyList(notNullConstraints); this.defaultConstraints = copyList(defaultConstraints); + this.checkConstraints= copyList(checkConstraints); } private static List copyList(List copy) { @@ -282,6 +285,8 @@ public void setForeignKeys(ArrayList foreignKeys) { return defaultConstraints; } + public List getCheckConstraints() { return checkConstraints; } + @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 a4e21c17a0..5c5a16735e 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 @@ -83,6 +83,7 @@ public ImportTableDesc(String dbName, Table table) throws Exception { null, null, null, + null, null); this.createTblDesc.setStoredAsSubDirectories(table.getSd().isStoredAsSubDirectories()); break; diff --git a/ql/src/test/queries/clientnegative/check_constraint_aggregate.q b/ql/src/test/queries/clientnegative/check_constraint_aggregate.q new file mode 100644 index 0000000000..937c692279 --- /dev/null +++ b/ql/src/test/queries/clientnegative/check_constraint_aggregate.q @@ -0,0 +1,2 @@ +-- aggregates are not allowed +create table tti(i int check sum(i) > 5); diff --git a/ql/src/test/queries/clientnegative/check_constraint_nonboolean_expr.q b/ql/src/test/queries/clientnegative/check_constraint_nonboolean_expr.q new file mode 100644 index 0000000000..290f97d0b3 --- /dev/null +++ b/ql/src/test/queries/clientnegative/check_constraint_nonboolean_expr.q @@ -0,0 +1,2 @@ +-- invalid expression +create table tti(i int , j int CHECK i+j); diff --git a/ql/src/test/queries/clientnegative/create_external_with_check_constraint.q b/ql/src/test/queries/clientnegative/create_external_with_check_constraint.q new file mode 100644 index 0000000000..f52f02bc0c --- /dev/null +++ b/ql/src/test/queries/clientnegative/create_external_with_check_constraint.q @@ -0,0 +1 @@ +CREATE external TABLE table1 (a INT CHECK a > b DISABLE, b STRING); diff --git a/ql/src/test/queries/clientnegative/create_external_with_default_constraint.q b/ql/src/test/queries/clientnegative/create_external_with_default_constraint.q index 4690c2cb0b..c043ed8da6 100644 --- a/ql/src/test/queries/clientnegative/create_external_with_default_constraint.q +++ b/ql/src/test/queries/clientnegative/create_external_with_default_constraint.q @@ -1 +1 @@ -CREATE external TABLE table1 (a INT DEFAULT 56, b STRING); +CREATE external TABLE table1 (a INT CHECK a>56, b STRING); diff --git a/ql/src/test/queries/clientpositive/check_constraint.q b/ql/src/test/queries/clientpositive/check_constraint.q new file mode 100644 index 0000000000..be0bf430a8 --- /dev/null +++ b/ql/src/test/queries/clientpositive/check_constraint.q @@ -0,0 +1,30 @@ +-- create table + -- numeric type + set hive.stats.autogather=false; + set hive.support.concurrency=true; + set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager; + +CREATE TABLE table1(i int CHECK -i > -10, + j int CHECK +j > 10, + ij boolean CHECK ij IS NOT NULL, + a int CHECK a BETWEEN i AND j, + bb float CHECK bb IN (23.4,56,4), + d bigint CHECK d > round(567.6) AND d < round(1000.4)) + clustered by (i) into 2 buckets stored as orc TBLPROPERTIES('transactional'='true'); +DESC FORMATTED table1; + +EXPLAIN INSERT INTO table1 values(1,100,true, 5, 23.4, 700.5); +INSERT INTO table1 values(1,100,true, 5, 23.4, 700.5); +SELECT * from table1; +DROP TABLE table1; + + +-- null check constraint +CREATE TABLE table2(i int CHECK i + NULL > 0); +DESC FORMATTED table2; +EXPLAIN INSERT INTO table2 values(8); +INSERT INTO table2 values(8); +select * from table2; +Drop table table2; + +-- multiple constraints diff --git a/ql/src/test/results/clientnegative/check_constraint_aggregate.q.out b/ql/src/test/results/clientnegative/check_constraint_aggregate.q.out new file mode 100644 index 0000000000..e641c81326 --- /dev/null +++ b/ql/src/test/results/clientnegative/check_constraint_aggregate.q.out @@ -0,0 +1 @@ +FAILED: SemanticException [Error 10128]: Invalid Constraint syntax Invalid CHECK constraint expression: sum(i) > 5. Line 1:0 Not yet supported place for UDAF 'sum' diff --git a/ql/src/test/results/clientnegative/check_constraint_nonboolean_expr.q.out b/ql/src/test/results/clientnegative/check_constraint_nonboolean_expr.q.out new file mode 100644 index 0000000000..3fb6b3cd3e --- /dev/null +++ b/ql/src/test/results/clientnegative/check_constraint_nonboolean_expr.q.out @@ -0,0 +1 @@ +FAILED: SemanticException [Error 10326]: Invalid Constraint syntax Invalid CHECK constraint expression: i+j. Invalid Constraint syntax Invalid type for CHECK constraint: i+j diff --git a/ql/src/test/results/clientnegative/create_external_with_check_constraint.q.out b/ql/src/test/results/clientnegative/create_external_with_check_constraint.q.out new file mode 100644 index 0000000000..e69566d503 --- /dev/null +++ b/ql/src/test/results/clientnegative/create_external_with_check_constraint.q.out @@ -0,0 +1 @@ +FAILED: SemanticException [Error 10326]: Invalid Constraint syntax Constraints are disallowed with External tables. Only RELY is allowed. diff --git a/ql/src/test/results/clientpositive/llap/check_constraint.q.out b/ql/src/test/results/clientpositive/llap/check_constraint.q.out new file mode 100644 index 0000000000..bb86240d48 --- /dev/null +++ b/ql/src/test/results/clientpositive/llap/check_constraint.q.out @@ -0,0 +1,312 @@ +PREHOOK: query: CREATE TABLE table1(i int CHECK -i > -10, + j int CHECK +j > 10, + ij boolean CHECK ij IS NOT NULL, + a int CHECK a BETWEEN i AND j, + bb float CHECK bb IN (23.4,56,4), + d bigint CHECK d > round(567.6) AND d < round(1000.4)) + clustered by (i) into 2 buckets stored as orc TBLPROPERTIES('transactional'='true') +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@table1 +POSTHOOK: query: CREATE TABLE table1(i int CHECK -i > -10, + j int CHECK +j > 10, + ij boolean CHECK ij IS NOT NULL, + a int CHECK a BETWEEN i AND j, + bb float CHECK bb IN (23.4,56,4), + d bigint CHECK d > round(567.6) AND d < round(1000.4)) + clustered by (i) into 2 buckets stored as orc TBLPROPERTIES('transactional'='true') +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 +i int +j int +ij boolean +a int +bb float +d bigint + +# Detailed Table Information +Database: default +#### A masked pattern was here #### +Retention: 0 +#### A masked pattern was here #### +Table Type: MANAGED_TABLE +Table Parameters: + transactional true + transactional_properties default +#### A masked pattern was here #### + +# Storage Information +SerDe Library: org.apache.hadoop.hive.ql.io.orc.OrcSerde +InputFormat: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat +OutputFormat: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat +Compressed: No +Num Buckets: 2 +Bucket Columns: [i] +Sort Columns: [] +Storage Desc Params: + serialization.format 1 + +# Constraints + +# Check Constraints +Table: default.table1 +Constraint Name: #### A masked pattern was here #### +Column Name:a Check Value:a BETWEEN i AND j + +Constraint Name: #### A masked pattern was here #### +Column Name:d Check Value:d > round(567.6) AND d < round(1000.4) + +Constraint Name: #### A masked pattern was here #### +Column Name:i Check Value:-i > -10 + +Constraint Name: #### A masked pattern was here #### +Column Name:j Check Value:+j > 10 + +Constraint Name: #### A masked pattern was here #### +Column Name:ij Check Value:ij IS NOT NULL + +Constraint Name: #### A masked pattern was here #### +Column Name:bb Check Value:bb IN (23.4,56,4) + +PREHOOK: query: EXPLAIN INSERT INTO table1 values(1,100,true, 5, 23.4, 700.5) +PREHOOK: type: QUERY +POSTHOOK: query: EXPLAIN INSERT INTO table1 values(1,100,true, 5, 23.4, 700.5) +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 #### + Edges: + Reducer 2 <- Map 1 (CUSTOM_SIMPLE_EDGE) +#### 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(1,100,true,5,23.4,700.5)) (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: col1 (type: int), col2 (type: int), col3 (type: boolean), col4 (type: int), col5 (type: decimal(3,1)), col6 (type: decimal(4,1)) + outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5 + Statistics: Num rows: 1 Data size: 8 Basic stats: COMPLETE Column stats: COMPLETE + Filter Operator + predicate: enforce_constraint((((((((- _col0) > (- 10)) is not false and (_col1 > 10) is not false) and _col2 is not null is not false) and _col3 BETWEEN _col0 AND _col1 is not false) and (_col4) IN (23.4, 56, 4) is not false) and ((_col5 > round(567.6)) and (_col5 < round(1000.4))) is not false)) (type: boolean) + Statistics: Num rows: 1 Data size: 8 Basic stats: COMPLETE Column stats: COMPLETE + Reduce Output Operator + sort order: + Map-reduce partition columns: _col0 (type: int) + Statistics: Num rows: 1 Data size: 8 Basic stats: COMPLETE Column stats: COMPLETE + value expressions: _col0 (type: int), _col1 (type: int), _col2 (type: boolean), _col3 (type: int), _col4 (type: decimal(3,1)), _col5 (type: decimal(4,1)) + Execution mode: llap + LLAP IO: no inputs + Reducer 2 + Execution mode: llap + Reduce Operator Tree: + Select Operator + expressions: VALUE._col0 (type: int), VALUE._col1 (type: int), VALUE._col2 (type: boolean), VALUE._col3 (type: int), UDFToFloat(VALUE._col4) (type: float), UDFToLong(VALUE._col5) (type: bigint) + outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5 + Statistics: Num rows: 1 Data size: 12 Basic stats: COMPLETE Column stats: COMPLETE + File Output Operator + compressed: false + Statistics: Num rows: 1 Data size: 12 Basic stats: COMPLETE Column stats: COMPLETE + table: + input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat + output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat + serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde + name: default.table1 + Write Type: INSERT + + Stage: Stage-2 + Dependency Collection + + Stage: Stage-0 + Move Operator + tables: + replace: false + table: + input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat + output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat + serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde + name: default.table1 + Write Type: INSERT + +PREHOOK: query: INSERT INTO table1 values(1,100,true, 5, 23.4, 700.5) +PREHOOK: type: QUERY +PREHOOK: Input: _dummy_database@_dummy_table +PREHOOK: Output: default@table1 +POSTHOOK: query: INSERT INTO table1 values(1,100,true, 5, 23.4, 700.5) +POSTHOOK: type: QUERY +POSTHOOK: Input: _dummy_database@_dummy_table +POSTHOOK: Output: default@table1 +POSTHOOK: Lineage: table1.a SCRIPT [] +POSTHOOK: Lineage: table1.bb SCRIPT [] +POSTHOOK: Lineage: table1.d SCRIPT [] +POSTHOOK: Lineage: table1.i SCRIPT [] +POSTHOOK: Lineage: table1.ij SCRIPT [] +POSTHOOK: Lineage: table1.j SCRIPT [] +PREHOOK: query: SELECT * from table1 +PREHOOK: type: QUERY +PREHOOK: Input: default@table1 +#### A masked pattern was here #### +POSTHOOK: query: SELECT * from table1 +POSTHOOK: type: QUERY +POSTHOOK: Input: default@table1 +#### A masked pattern was here #### +1 100 true 5 23.4 700 +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: CREATE TABLE table2(i int CHECK i + NULL > 0) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@table2 +POSTHOOK: query: CREATE TABLE table2(i int CHECK i + NULL > 0) +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 int + +# 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 + +# Check Constraints +Table: default.table2 +Constraint Name: #### A masked pattern was here #### +Column Name:i Check Value:i + NULL > 0 + +PREHOOK: query: EXPLAIN INSERT INTO table2 values(8) +PREHOOK: type: QUERY +POSTHOOK: query: EXPLAIN INSERT INTO table2 values(8) +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(8)) (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: col1 (type: int) + outputColumnNames: _col0 + Statistics: Num rows: 1 Data size: 8 Basic stats: COMPLETE Column stats: COMPLETE + Filter Operator + predicate: enforce_constraint(((_col0 + null) > 0) is not false) (type: boolean) + Statistics: Num rows: 1 Data size: 8 Basic stats: COMPLETE Column stats: COMPLETE + File Output Operator + compressed: false + Statistics: Num rows: 1 Data size: 8 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.table2 + 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.table2 + +PREHOOK: query: INSERT INTO table2 values(8) +PREHOOK: type: QUERY +PREHOOK: Input: _dummy_database@_dummy_table +PREHOOK: Output: default@table2 +POSTHOOK: query: INSERT INTO table2 values(8) +POSTHOOK: type: QUERY +POSTHOOK: Input: _dummy_database@_dummy_table +POSTHOOK: Output: default@table2 +POSTHOOK: Lineage: table2.i SCRIPT [] +PREHOOK: query: select * from table2 +PREHOOK: type: QUERY +PREHOOK: Input: default@table2 +#### A masked pattern was here #### +POSTHOOK: query: select * from table2 +POSTHOOK: type: QUERY +POSTHOOK: Input: default@table2 +#### A masked pattern was here #### +8 +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 diff --git a/ql/src/test/results/clientpositive/llap/enforce_constraint_notnull.q.out b/ql/src/test/results/clientpositive/llap/enforce_constraint_notnull.q.out index eeb6a7a0b5..c125882441 100644 --- a/ql/src/test/results/clientpositive/llap/enforce_constraint_notnull.q.out +++ b/ql/src/test/results/clientpositive/llap/enforce_constraint_notnull.q.out @@ -42,7 +42,7 @@ STAGE PLANS: outputColumnNames: _col0, _col1, _col2 Statistics: Num rows: 1 Data size: 8 Basic stats: COMPLETE Column stats: COMPLETE Filter Operator - predicate: (enforce_constraint(_col0 is not null) and enforce_constraint(_col2 is not null)) (type: boolean) + predicate: enforce_constraint((_col0 is not null and _col2 is not null)) (type: boolean) Statistics: Num rows: 1 Data size: 8 Basic stats: COMPLETE Column stats: COMPLETE File Output Operator compressed: false @@ -160,7 +160,7 @@ STAGE PLANS: outputColumnNames: _col0, _col1, _col2 Statistics: Num rows: 1 Data size: 84 Basic stats: COMPLETE Column stats: COMPLETE Filter Operator - predicate: (enforce_constraint(_col0 is not null) and enforce_constraint(_col2 is not null)) (type: boolean) + predicate: enforce_constraint((_col0 is not null and _col2 is not null)) (type: boolean) Statistics: Num rows: 1 Data size: 84 Basic stats: COMPLETE Column stats: COMPLETE File Output Operator compressed: false @@ -257,15 +257,15 @@ STAGE PLANS: alias: src Statistics: Num rows: 500 Data size: 89000 Basic stats: COMPLETE Column stats: COMPLETE Filter Operator - predicate: (enforce_constraint(key is not null) and enforce_constraint(value is not null)) (type: boolean) - Statistics: Num rows: 125 Data size: 22250 Basic stats: COMPLETE Column stats: COMPLETE + predicate: enforce_constraint((key is not null and value is not null)) (type: boolean) + Statistics: Num rows: 250 Data size: 44500 Basic stats: COMPLETE Column stats: COMPLETE Select Operator expressions: key (type: string), value (type: string), value (type: string) outputColumnNames: _col0, _col1, _col2 - Statistics: Num rows: 125 Data size: 33625 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 250 Data size: 67250 Basic stats: COMPLETE Column stats: COMPLETE File Output Operator compressed: false - Statistics: Num rows: 125 Data size: 33625 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 250 Data size: 67250 Basic stats: COMPLETE Column stats: COMPLETE table: input format: org.apache.hadoop.mapred.TextInputFormat output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat @@ -274,7 +274,7 @@ STAGE PLANS: Select Operator expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string) outputColumnNames: a, b, c - Statistics: Num rows: 125 Data size: 33625 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 250 Data size: 67250 Basic stats: COMPLETE Column stats: COMPLETE Group By Operator aggregations: compute_stats(a, 'hll'), compute_stats(b, 'hll'), compute_stats(c, 'hll') mode: hash @@ -868,15 +868,15 @@ STAGE PLANS: alias: src Statistics: Num rows: 500 Data size: 89000 Basic stats: COMPLETE Column stats: COMPLETE Filter Operator - predicate: (enforce_constraint(key is not null) and enforce_constraint(value is not null)) (type: boolean) - Statistics: Num rows: 125 Data size: 22250 Basic stats: COMPLETE Column stats: COMPLETE + predicate: enforce_constraint((key is not null and value is not null)) (type: boolean) + Statistics: Num rows: 250 Data size: 44500 Basic stats: COMPLETE Column stats: COMPLETE Select Operator expressions: key (type: string), value (type: string), value (type: string) outputColumnNames: _col0, _col1, _col2 - Statistics: Num rows: 125 Data size: 33625 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 250 Data size: 67250 Basic stats: COMPLETE Column stats: COMPLETE File Output Operator compressed: false - Statistics: Num rows: 125 Data size: 33625 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 250 Data size: 67250 Basic stats: COMPLETE Column stats: COMPLETE table: input format: org.apache.hadoop.mapred.TextInputFormat output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat @@ -885,7 +885,7 @@ STAGE PLANS: Select Operator expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string) outputColumnNames: a, b, c - Statistics: Num rows: 125 Data size: 33625 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 250 Data size: 67250 Basic stats: COMPLETE Column stats: COMPLETE Group By Operator aggregations: compute_stats(a, 'hll'), compute_stats(b, 'hll'), compute_stats(c, 'hll') mode: hash @@ -1477,15 +1477,15 @@ STAGE PLANS: alias: src Statistics: Num rows: 500 Data size: 89000 Basic stats: COMPLETE Column stats: COMPLETE Filter Operator - predicate: (enforce_constraint(key is not null) and enforce_constraint(value is not null)) (type: boolean) - Statistics: Num rows: 125 Data size: 22250 Basic stats: COMPLETE Column stats: COMPLETE + predicate: enforce_constraint((key is not null and value is not null)) (type: boolean) + Statistics: Num rows: 250 Data size: 44500 Basic stats: COMPLETE Column stats: COMPLETE Select Operator expressions: key (type: string), key (type: string), value (type: string) outputColumnNames: _col0, _col1, _col2 - Statistics: Num rows: 125 Data size: 33125 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 250 Data size: 66250 Basic stats: COMPLETE Column stats: COMPLETE File Output Operator compressed: false - Statistics: Num rows: 125 Data size: 33125 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 250 Data size: 66250 Basic stats: COMPLETE Column stats: COMPLETE table: input format: org.apache.hadoop.mapred.TextInputFormat output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat @@ -1494,7 +1494,7 @@ STAGE PLANS: Select Operator expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string) outputColumnNames: a, b, c - Statistics: Num rows: 125 Data size: 33125 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 250 Data size: 66250 Basic stats: COMPLETE Column stats: COMPLETE Group By Operator aggregations: compute_stats(a, 'hll'), compute_stats(b, 'hll'), compute_stats(c, 'hll') mode: hash @@ -2495,7 +2495,7 @@ STAGE PLANS: outputColumnNames: _col0, _col1, _col2 Statistics: Num rows: 1 Data size: 8 Basic stats: COMPLETE Column stats: COMPLETE Filter Operator - predicate: (enforce_constraint(_col1 is not null) and enforce_constraint(_col2 is not null)) (type: boolean) + predicate: enforce_constraint((_col1 is not null and _col2 is not null)) (type: boolean) Statistics: Num rows: 1 Data size: 8 Basic stats: COMPLETE Column stats: COMPLETE Reduce Output Operator sort order: @@ -2627,12 +2627,12 @@ STAGE PLANS: outputColumnNames: _col0, _col1, _col2 Statistics: Num rows: 500 Data size: 103500 Basic stats: COMPLETE Column stats: COMPLETE Filter Operator - predicate: (enforce_constraint(_col1 is not null) and enforce_constraint(_col2 is not null)) (type: boolean) - Statistics: Num rows: 125 Data size: 25875 Basic stats: COMPLETE Column stats: COMPLETE + predicate: enforce_constraint((_col1 is not null and _col2 is not null)) (type: boolean) + Statistics: Num rows: 250 Data size: 51750 Basic stats: COMPLETE Column stats: COMPLETE Reduce Output Operator sort order: Map-reduce partition columns: _col0 (type: int) - Statistics: Num rows: 125 Data size: 25875 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 250 Data size: 51750 Basic stats: COMPLETE Column stats: COMPLETE value expressions: _col0 (type: int), _col1 (type: decimal(5,2)), _col2 (type: string) Execution mode: llap LLAP IO: no inputs @@ -2642,10 +2642,10 @@ STAGE PLANS: Select Operator expressions: VALUE._col0 (type: int), VALUE._col1 (type: decimal(5,2)), CAST( VALUE._col2 AS varchar(128)) (type: varchar(128)) outputColumnNames: _col0, _col1, _col2 - Statistics: Num rows: 125 Data size: 41000 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 250 Data size: 82000 Basic stats: COMPLETE Column stats: COMPLETE File Output Operator compressed: false - Statistics: Num rows: 125 Data size: 41000 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 250 Data size: 82000 Basic stats: COMPLETE Column stats: COMPLETE table: input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat @@ -2655,7 +2655,7 @@ STAGE PLANS: Select Operator expressions: _col0 (type: int), _col1 (type: decimal(5,2)), _col2 (type: varchar(128)) outputColumnNames: i, de, vc - Statistics: Num rows: 125 Data size: 41000 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 250 Data size: 82000 Basic stats: COMPLETE Column stats: COMPLETE Group By Operator aggregations: compute_stats(i, 'hll'), compute_stats(de, 'hll'), compute_stats(vc, 'hll') mode: hash @@ -2763,7 +2763,7 @@ STAGE PLANS: Number of rows: 2 Statistics: Num rows: 2 Data size: 414 Basic stats: COMPLETE Column stats: COMPLETE Filter Operator - predicate: (enforce_constraint(_col1 is not null) and enforce_constraint(_col2 is not null)) (type: boolean) + predicate: enforce_constraint((_col1 is not null and _col2 is not null)) (type: boolean) Statistics: Num rows: 1 Data size: 207 Basic stats: COMPLETE Column stats: COMPLETE Reduce Output Operator sort order: @@ -2886,7 +2886,7 @@ STAGE PLANS: Number of rows: 2 Statistics: Num rows: 2 Data size: 414 Basic stats: COMPLETE Column stats: COMPLETE Filter Operator - predicate: (enforce_constraint(_col1 is not null) and enforce_constraint(_col2 is not null)) (type: boolean) + predicate: enforce_constraint((_col1 is not null and _col2 is not null)) (type: boolean) Statistics: Num rows: 1 Data size: 207 Basic stats: COMPLETE Column stats: COMPLETE Reduce Output Operator sort order: @@ -3019,7 +3019,7 @@ STAGE PLANS: Number of rows: 2 Statistics: Num rows: 2 Data size: 414 Basic stats: COMPLETE Column stats: COMPLETE Filter Operator - predicate: (enforce_constraint(_col1 is not null) and enforce_constraint(_col2 is not null)) (type: boolean) + predicate: enforce_constraint((_col1 is not null and _col2 is not null)) (type: boolean) Statistics: Num rows: 1 Data size: 207 Basic stats: COMPLETE Column stats: COMPLETE Reduce Output Operator sort order: @@ -3124,12 +3124,12 @@ STAGE PLANS: outputColumnNames: _col0, _col1, _col2 Statistics: Num rows: 500 Data size: 103500 Basic stats: COMPLETE Column stats: COMPLETE Filter Operator - predicate: (enforce_constraint(_col1 is not null) and enforce_constraint(_col2 is not null)) (type: boolean) - Statistics: Num rows: 125 Data size: 25875 Basic stats: COMPLETE Column stats: COMPLETE + predicate: enforce_constraint((_col1 is not null and _col2 is not null)) (type: boolean) + Statistics: Num rows: 250 Data size: 51750 Basic stats: COMPLETE Column stats: COMPLETE Reduce Output Operator sort order: Map-reduce partition columns: _col0 (type: int) - Statistics: Num rows: 125 Data size: 25875 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 250 Data size: 51750 Basic stats: COMPLETE Column stats: COMPLETE value expressions: _col0 (type: int), _col1 (type: decimal(5,2)), _col2 (type: string) Execution mode: llap LLAP IO: no inputs @@ -3139,10 +3139,10 @@ STAGE PLANS: Select Operator expressions: VALUE._col0 (type: int), VALUE._col1 (type: decimal(5,2)), CAST( VALUE._col2 AS varchar(128)) (type: varchar(128)) outputColumnNames: _col0, _col1, _col2 - Statistics: Num rows: 125 Data size: 41000 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 250 Data size: 82000 Basic stats: COMPLETE Column stats: COMPLETE File Output Operator compressed: false - Statistics: Num rows: 125 Data size: 41000 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 250 Data size: 82000 Basic stats: COMPLETE Column stats: COMPLETE table: input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat @@ -3152,7 +3152,7 @@ STAGE PLANS: Select Operator expressions: _col0 (type: int), _col1 (type: decimal(5,2)), _col2 (type: varchar(128)) outputColumnNames: i, de, vc - Statistics: Num rows: 125 Data size: 41000 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 250 Data size: 82000 Basic stats: COMPLETE Column stats: COMPLETE Group By Operator aggregations: compute_stats(i, 'hll'), compute_stats(de, 'hll'), compute_stats(vc, 'hll') mode: hash @@ -3328,17 +3328,17 @@ STAGE PLANS: alias: acid_uami Statistics: Num rows: 277 Data size: 86920 Basic stats: COMPLETE Column stats: NONE Filter Operator - predicate: ((de = 3.14) and enforce_constraint(i is not null) and enforce_constraint(vc is not null)) (type: boolean) - Statistics: Num rows: 1 Data size: 313 Basic stats: COMPLETE Column stats: NONE + predicate: ((de = 3.14) and enforce_constraint((i is not null and vc is not null))) (type: boolean) + Statistics: Num rows: 2 Data size: 627 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: ROW__ID (type: struct), i (type: int), vc (type: varchar(128)) outputColumnNames: _col0, _col1, _col3 - Statistics: Num rows: 1 Data size: 313 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 2 Data size: 627 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: struct) sort order: + Map-reduce partition columns: UDFToInteger(_col0) (type: int) - Statistics: Num rows: 1 Data size: 313 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 2 Data size: 627 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col3 (type: varchar(128)) Execution mode: llap LLAP IO: may be used (ACID table) @@ -3348,10 +3348,10 @@ STAGE PLANS: Select Operator expressions: KEY.reducesinkkey0 (type: struct), VALUE._col0 (type: int), 3.14 (type: decimal(5,2)), VALUE._col1 (type: varchar(128)) outputColumnNames: _col0, _col1, _col2, _col3 - Statistics: Num rows: 1 Data size: 313 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 2 Data size: 627 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 1 Data size: 313 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 2 Data size: 627 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat @@ -3419,19 +3419,19 @@ STAGE PLANS: alias: src Statistics: Num rows: 500 Data size: 89000 Basic stats: COMPLETE Column stats: COMPLETE Filter Operator - predicate: ((key < 10) and enforce_constraint(value is not null)) (type: boolean) - Statistics: Num rows: 83 Data size: 14774 Basic stats: COMPLETE Column stats: COMPLETE + predicate: (key < 10) (type: boolean) + Statistics: Num rows: 166 Data size: 29548 Basic stats: COMPLETE Column stats: COMPLETE Select Operator expressions: UDFToInteger(key) (type: int), CAST( key AS decimal(5,2)) (type: decimal(5,2)), value (type: string) outputColumnNames: _col0, _col1, _col2 - Statistics: Num rows: 83 Data size: 17181 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 166 Data size: 34362 Basic stats: COMPLETE Column stats: COMPLETE Filter Operator - predicate: enforce_constraint(_col0 is not null) (type: boolean) - Statistics: Num rows: 41 Data size: 8487 Basic stats: COMPLETE Column stats: COMPLETE + predicate: enforce_constraint((_col0 is not null and _col2 is not null)) (type: boolean) + Statistics: Num rows: 83 Data size: 17181 Basic stats: COMPLETE Column stats: COMPLETE Reduce Output Operator sort order: Map-reduce partition columns: _col0 (type: int) - Statistics: Num rows: 41 Data size: 8487 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 83 Data size: 17181 Basic stats: COMPLETE Column stats: COMPLETE value expressions: _col0 (type: int), _col1 (type: decimal(5,2)), _col2 (type: string) Filter Operator predicate: ((key < 20) and (key > 10) and enforce_constraint(value is not null)) (type: boolean) @@ -3469,10 +3469,10 @@ STAGE PLANS: Select Operator expressions: VALUE._col0 (type: int), VALUE._col1 (type: decimal(5,2)), CAST( VALUE._col2 AS varchar(128)) (type: varchar(128)) outputColumnNames: _col0, _col1, _col2 - Statistics: Num rows: 41 Data size: 13448 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 83 Data size: 27224 Basic stats: COMPLETE Column stats: COMPLETE File Output Operator compressed: false - Statistics: Num rows: 41 Data size: 13448 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 83 Data size: 27224 Basic stats: COMPLETE Column stats: COMPLETE table: input format: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat output format: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat @@ -3482,7 +3482,7 @@ STAGE PLANS: Select Operator expressions: _col0 (type: int), _col1 (type: decimal(5,2)), _col2 (type: varchar(128)) outputColumnNames: i, de, vc - Statistics: Num rows: 41 Data size: 13448 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 83 Data size: 27224 Basic stats: COMPLETE Column stats: COMPLETE Group By Operator aggregations: compute_stats(i, 'hll'), compute_stats(de, 'hll'), compute_stats(vc, 'hll') mode: hash @@ -3609,7 +3609,7 @@ STAGE PLANS: outputColumnNames: _col0, _col1, _col2 Statistics: Num rows: 1 Data size: 8 Basic stats: COMPLETE Column stats: COMPLETE Filter Operator - predicate: (enforce_constraint(_col0 is not null) and enforce_constraint(_col2 is not null)) (type: boolean) + predicate: enforce_constraint((_col0 is not null and _col2 is not null)) (type: boolean) Statistics: Num rows: 1 Data size: 8 Basic stats: COMPLETE Column stats: COMPLETE File Output Operator compressed: false @@ -3741,11 +3741,11 @@ STAGE PLANS: Number of rows: 10 Statistics: Num rows: 10 Data size: 3600 Basic stats: COMPLETE Column stats: COMPLETE Filter Operator - predicate: (enforce_constraint(_col0 is not null) and enforce_constraint(_col2 is not null)) (type: boolean) - Statistics: Num rows: 2 Data size: 720 Basic stats: COMPLETE Column stats: COMPLETE + predicate: enforce_constraint((_col0 is not null and _col2 is not null)) (type: boolean) + Statistics: Num rows: 5 Data size: 1800 Basic stats: COMPLETE Column stats: COMPLETE File Output Operator compressed: false - Statistics: Num rows: 2 Data size: 720 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 5 Data size: 1800 Basic stats: COMPLETE Column stats: COMPLETE table: input format: org.apache.hadoop.mapred.TextInputFormat output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat @@ -3754,18 +3754,18 @@ STAGE PLANS: Select Operator expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string) outputColumnNames: a, b, c, p1 - Statistics: Num rows: 2 Data size: 720 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 5 Data size: 1800 Basic stats: COMPLETE Column stats: COMPLETE Group By Operator aggregations: compute_stats(a, 'hll'), compute_stats(b, 'hll'), compute_stats(c, 'hll') keys: p1 (type: string), 3 (type: int) mode: hash outputColumnNames: _col0, _col1, _col2, _col3, _col4 - Statistics: Num rows: 1 Data size: 1411 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 2 Data size: 2822 Basic stats: COMPLETE Column stats: COMPLETE Reduce Output Operator key expressions: _col0 (type: string), 3 (type: int) sort order: ++ Map-reduce partition columns: _col0 (type: string), 3 (type: int) - Statistics: Num rows: 1 Data size: 1411 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 2 Data size: 2822 Basic stats: COMPLETE Column stats: COMPLETE value expressions: _col2 (type: struct), _col3 (type: struct), _col4 (type: struct) Reducer 3 Execution mode: llap @@ -3775,14 +3775,14 @@ STAGE PLANS: keys: KEY._col0 (type: string), 3 (type: int) mode: mergepartial outputColumnNames: _col0, _col1, _col2, _col3, _col4 - Statistics: Num rows: 1 Data size: 1411 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 2 Data size: 2822 Basic stats: COMPLETE Column stats: COMPLETE Select Operator expressions: _col2 (type: struct), _col3 (type: struct), _col4 (type: struct), _col0 (type: string), 3 (type: int) outputColumnNames: _col0, _col1, _col2, _col3, _col4 - Statistics: Num rows: 1 Data size: 1411 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 2 Data size: 2822 Basic stats: COMPLETE Column stats: COMPLETE File Output Operator compressed: false - Statistics: Num rows: 1 Data size: 1411 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 2 Data size: 2822 Basic stats: COMPLETE Column stats: COMPLETE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -3937,11 +3937,11 @@ STAGE PLANS: outputColumnNames: _col0, _col1, _col2, _col3, _col4 Statistics: Num rows: 500 Data size: 183000 Basic stats: COMPLETE Column stats: COMPLETE Filter Operator - predicate: (enforce_constraint(key is not null) and enforce_constraint(value is not null)) (type: boolean) - Statistics: Num rows: 125 Data size: 45750 Basic stats: COMPLETE Column stats: COMPLETE + predicate: enforce_constraint((key is not null and value is not null)) (type: boolean) + Statistics: Num rows: 250 Data size: 91500 Basic stats: COMPLETE Column stats: COMPLETE File Output Operator compressed: false - Statistics: Num rows: 125 Data size: 45750 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 250 Data size: 91500 Basic stats: COMPLETE Column stats: COMPLETE table: input format: org.apache.hadoop.mapred.TextInputFormat output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat @@ -3950,7 +3950,7 @@ STAGE PLANS: Select Operator expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string) outputColumnNames: a, b, c - Statistics: Num rows: 125 Data size: 45750 Basic stats: COMPLETE Column stats: COMPLETE + Statistics: Num rows: 250 Data size: 91500 Basic stats: COMPLETE Column stats: COMPLETE Group By Operator aggregations: compute_stats(a, 'hll'), compute_stats(b, 'hll'), compute_stats(c, 'hll') keys: 'yesterday' (type: string), 3 (type: int) diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp index b7a3b929be..0f49d93277 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 _size1137; - ::apache::thrift::protocol::TType _etype1140; - xfer += iprot->readListBegin(_etype1140, _size1137); - this->success.resize(_size1137); - uint32_t _i1141; - for (_i1141 = 0; _i1141 < _size1137; ++_i1141) + uint32_t _size1157; + ::apache::thrift::protocol::TType _etype1160; + xfer += iprot->readListBegin(_etype1160, _size1157); + this->success.resize(_size1157); + uint32_t _i1161; + for (_i1161 = 0; _i1161 < _size1157; ++_i1161) { - xfer += iprot->readString(this->success[_i1141]); + xfer += iprot->readString(this->success[_i1161]); } 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 _iter1142; - for (_iter1142 = this->success.begin(); _iter1142 != this->success.end(); ++_iter1142) + std::vector ::const_iterator _iter1162; + for (_iter1162 = this->success.begin(); _iter1162 != this->success.end(); ++_iter1162) { - xfer += oprot->writeString((*_iter1142)); + xfer += oprot->writeString((*_iter1162)); } 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 _size1143; - ::apache::thrift::protocol::TType _etype1146; - xfer += iprot->readListBegin(_etype1146, _size1143); - (*(this->success)).resize(_size1143); - uint32_t _i1147; - for (_i1147 = 0; _i1147 < _size1143; ++_i1147) + uint32_t _size1163; + ::apache::thrift::protocol::TType _etype1166; + xfer += iprot->readListBegin(_etype1166, _size1163); + (*(this->success)).resize(_size1163); + uint32_t _i1167; + for (_i1167 = 0; _i1167 < _size1163; ++_i1167) { - xfer += iprot->readString((*(this->success))[_i1147]); + xfer += iprot->readString((*(this->success))[_i1167]); } 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 _size1148; - ::apache::thrift::protocol::TType _etype1151; - xfer += iprot->readListBegin(_etype1151, _size1148); - this->success.resize(_size1148); - uint32_t _i1152; - for (_i1152 = 0; _i1152 < _size1148; ++_i1152) + uint32_t _size1168; + ::apache::thrift::protocol::TType _etype1171; + xfer += iprot->readListBegin(_etype1171, _size1168); + this->success.resize(_size1168); + uint32_t _i1172; + for (_i1172 = 0; _i1172 < _size1168; ++_i1172) { - xfer += iprot->readString(this->success[_i1152]); + xfer += iprot->readString(this->success[_i1172]); } 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 _iter1153; - for (_iter1153 = this->success.begin(); _iter1153 != this->success.end(); ++_iter1153) + std::vector ::const_iterator _iter1173; + for (_iter1173 = this->success.begin(); _iter1173 != this->success.end(); ++_iter1173) { - xfer += oprot->writeString((*_iter1153)); + xfer += oprot->writeString((*_iter1173)); } 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 _size1154; - ::apache::thrift::protocol::TType _etype1157; - xfer += iprot->readListBegin(_etype1157, _size1154); - (*(this->success)).resize(_size1154); - uint32_t _i1158; - for (_i1158 = 0; _i1158 < _size1154; ++_i1158) + uint32_t _size1174; + ::apache::thrift::protocol::TType _etype1177; + xfer += iprot->readListBegin(_etype1177, _size1174); + (*(this->success)).resize(_size1174); + uint32_t _i1178; + for (_i1178 = 0; _i1178 < _size1174; ++_i1178) { - xfer += iprot->readString((*(this->success))[_i1158]); + xfer += iprot->readString((*(this->success))[_i1178]); } 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 _size1159; - ::apache::thrift::protocol::TType _ktype1160; - ::apache::thrift::protocol::TType _vtype1161; - xfer += iprot->readMapBegin(_ktype1160, _vtype1161, _size1159); - uint32_t _i1163; - for (_i1163 = 0; _i1163 < _size1159; ++_i1163) + uint32_t _size1179; + ::apache::thrift::protocol::TType _ktype1180; + ::apache::thrift::protocol::TType _vtype1181; + xfer += iprot->readMapBegin(_ktype1180, _vtype1181, _size1179); + uint32_t _i1183; + for (_i1183 = 0; _i1183 < _size1179; ++_i1183) { - std::string _key1164; - xfer += iprot->readString(_key1164); - Type& _val1165 = this->success[_key1164]; - xfer += _val1165.read(iprot); + std::string _key1184; + xfer += iprot->readString(_key1184); + Type& _val1185 = this->success[_key1184]; + xfer += _val1185.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 _iter1166; - for (_iter1166 = this->success.begin(); _iter1166 != this->success.end(); ++_iter1166) + std::map ::const_iterator _iter1186; + for (_iter1186 = this->success.begin(); _iter1186 != this->success.end(); ++_iter1186) { - xfer += oprot->writeString(_iter1166->first); - xfer += _iter1166->second.write(oprot); + xfer += oprot->writeString(_iter1186->first); + xfer += _iter1186->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 _size1167; - ::apache::thrift::protocol::TType _ktype1168; - ::apache::thrift::protocol::TType _vtype1169; - xfer += iprot->readMapBegin(_ktype1168, _vtype1169, _size1167); - uint32_t _i1171; - for (_i1171 = 0; _i1171 < _size1167; ++_i1171) + uint32_t _size1187; + ::apache::thrift::protocol::TType _ktype1188; + ::apache::thrift::protocol::TType _vtype1189; + xfer += iprot->readMapBegin(_ktype1188, _vtype1189, _size1187); + uint32_t _i1191; + for (_i1191 = 0; _i1191 < _size1187; ++_i1191) { - std::string _key1172; - xfer += iprot->readString(_key1172); - Type& _val1173 = (*(this->success))[_key1172]; - xfer += _val1173.read(iprot); + std::string _key1192; + xfer += iprot->readString(_key1192); + Type& _val1193 = (*(this->success))[_key1192]; + xfer += _val1193.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 _size1174; - ::apache::thrift::protocol::TType _etype1177; - xfer += iprot->readListBegin(_etype1177, _size1174); - this->success.resize(_size1174); - uint32_t _i1178; - for (_i1178 = 0; _i1178 < _size1174; ++_i1178) + uint32_t _size1194; + ::apache::thrift::protocol::TType _etype1197; + xfer += iprot->readListBegin(_etype1197, _size1194); + this->success.resize(_size1194); + uint32_t _i1198; + for (_i1198 = 0; _i1198 < _size1194; ++_i1198) { - xfer += this->success[_i1178].read(iprot); + xfer += this->success[_i1198].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 _iter1179; - for (_iter1179 = this->success.begin(); _iter1179 != this->success.end(); ++_iter1179) + std::vector ::const_iterator _iter1199; + for (_iter1199 = this->success.begin(); _iter1199 != this->success.end(); ++_iter1199) { - xfer += (*_iter1179).write(oprot); + xfer += (*_iter1199).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 _size1180; - ::apache::thrift::protocol::TType _etype1183; - xfer += iprot->readListBegin(_etype1183, _size1180); - (*(this->success)).resize(_size1180); - uint32_t _i1184; - for (_i1184 = 0; _i1184 < _size1180; ++_i1184) + uint32_t _size1200; + ::apache::thrift::protocol::TType _etype1203; + xfer += iprot->readListBegin(_etype1203, _size1200); + (*(this->success)).resize(_size1200); + uint32_t _i1204; + for (_i1204 = 0; _i1204 < _size1200; ++_i1204) { - xfer += (*(this->success))[_i1184].read(iprot); + xfer += (*(this->success))[_i1204].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 _size1185; - ::apache::thrift::protocol::TType _etype1188; - xfer += iprot->readListBegin(_etype1188, _size1185); - this->success.resize(_size1185); - uint32_t _i1189; - for (_i1189 = 0; _i1189 < _size1185; ++_i1189) + 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) { - xfer += this->success[_i1189].read(iprot); + xfer += this->success[_i1209].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 _iter1190; - for (_iter1190 = this->success.begin(); _iter1190 != this->success.end(); ++_iter1190) + std::vector ::const_iterator _iter1210; + for (_iter1210 = this->success.begin(); _iter1210 != this->success.end(); ++_iter1210) { - xfer += (*_iter1190).write(oprot); + xfer += (*_iter1210).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 _size1191; - ::apache::thrift::protocol::TType _etype1194; - xfer += iprot->readListBegin(_etype1194, _size1191); - (*(this->success)).resize(_size1191); - uint32_t _i1195; - for (_i1195 = 0; _i1195 < _size1191; ++_i1195) + uint32_t _size1211; + ::apache::thrift::protocol::TType _etype1214; + xfer += iprot->readListBegin(_etype1214, _size1211); + (*(this->success)).resize(_size1211); + uint32_t _i1215; + for (_i1215 = 0; _i1215 < _size1211; ++_i1215) { - xfer += (*(this->success))[_i1195].read(iprot); + xfer += (*(this->success))[_i1215].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 _size1196; - ::apache::thrift::protocol::TType _etype1199; - xfer += iprot->readListBegin(_etype1199, _size1196); - this->success.resize(_size1196); - uint32_t _i1200; - for (_i1200 = 0; _i1200 < _size1196; ++_i1200) + uint32_t _size1216; + ::apache::thrift::protocol::TType _etype1219; + xfer += iprot->readListBegin(_etype1219, _size1216); + this->success.resize(_size1216); + uint32_t _i1220; + for (_i1220 = 0; _i1220 < _size1216; ++_i1220) { - xfer += this->success[_i1200].read(iprot); + xfer += this->success[_i1220].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 _iter1201; - for (_iter1201 = this->success.begin(); _iter1201 != this->success.end(); ++_iter1201) + std::vector ::const_iterator _iter1221; + for (_iter1221 = this->success.begin(); _iter1221 != this->success.end(); ++_iter1221) { - xfer += (*_iter1201).write(oprot); + xfer += (*_iter1221).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 _size1202; - ::apache::thrift::protocol::TType _etype1205; - xfer += iprot->readListBegin(_etype1205, _size1202); - (*(this->success)).resize(_size1202); - uint32_t _i1206; - for (_i1206 = 0; _i1206 < _size1202; ++_i1206) + uint32_t _size1222; + ::apache::thrift::protocol::TType _etype1225; + xfer += iprot->readListBegin(_etype1225, _size1222); + (*(this->success)).resize(_size1222); + uint32_t _i1226; + for (_i1226 = 0; _i1226 < _size1222; ++_i1226) { - xfer += (*(this->success))[_i1206].read(iprot); + xfer += (*(this->success))[_i1226].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 _size1207; - ::apache::thrift::protocol::TType _etype1210; - xfer += iprot->readListBegin(_etype1210, _size1207); - this->success.resize(_size1207); - uint32_t _i1211; - for (_i1211 = 0; _i1211 < _size1207; ++_i1211) + uint32_t _size1227; + ::apache::thrift::protocol::TType _etype1230; + xfer += iprot->readListBegin(_etype1230, _size1227); + this->success.resize(_size1227); + uint32_t _i1231; + for (_i1231 = 0; _i1231 < _size1227; ++_i1231) { - xfer += this->success[_i1211].read(iprot); + xfer += this->success[_i1231].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 _iter1212; - for (_iter1212 = this->success.begin(); _iter1212 != this->success.end(); ++_iter1212) + std::vector ::const_iterator _iter1232; + for (_iter1232 = this->success.begin(); _iter1232 != this->success.end(); ++_iter1232) { - xfer += (*_iter1212).write(oprot); + xfer += (*_iter1232).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 _size1213; - ::apache::thrift::protocol::TType _etype1216; - xfer += iprot->readListBegin(_etype1216, _size1213); - (*(this->success)).resize(_size1213); - uint32_t _i1217; - for (_i1217 = 0; _i1217 < _size1213; ++_i1217) + uint32_t _size1233; + ::apache::thrift::protocol::TType _etype1236; + xfer += iprot->readListBegin(_etype1236, _size1233); + (*(this->success)).resize(_size1233); + uint32_t _i1237; + for (_i1237 = 0; _i1237 < _size1233; ++_i1237) { - xfer += (*(this->success))[_i1217].read(iprot); + xfer += (*(this->success))[_i1237].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 _size1218; - ::apache::thrift::protocol::TType _etype1221; - xfer += iprot->readListBegin(_etype1221, _size1218); - this->primaryKeys.resize(_size1218); - uint32_t _i1222; - for (_i1222 = 0; _i1222 < _size1218; ++_i1222) + uint32_t _size1238; + ::apache::thrift::protocol::TType _etype1241; + xfer += iprot->readListBegin(_etype1241, _size1238); + this->primaryKeys.resize(_size1238); + uint32_t _i1242; + for (_i1242 = 0; _i1242 < _size1238; ++_i1242) { - xfer += this->primaryKeys[_i1222].read(iprot); + xfer += this->primaryKeys[_i1242].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 _size1223; - ::apache::thrift::protocol::TType _etype1226; - xfer += iprot->readListBegin(_etype1226, _size1223); - this->foreignKeys.resize(_size1223); - uint32_t _i1227; - for (_i1227 = 0; _i1227 < _size1223; ++_i1227) + uint32_t _size1243; + ::apache::thrift::protocol::TType _etype1246; + xfer += iprot->readListBegin(_etype1246, _size1243); + this->foreignKeys.resize(_size1243); + uint32_t _i1247; + for (_i1247 = 0; _i1247 < _size1243; ++_i1247) { - xfer += this->foreignKeys[_i1227].read(iprot); + xfer += this->foreignKeys[_i1247].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 _size1228; - ::apache::thrift::protocol::TType _etype1231; - xfer += iprot->readListBegin(_etype1231, _size1228); - this->uniqueConstraints.resize(_size1228); - uint32_t _i1232; - for (_i1232 = 0; _i1232 < _size1228; ++_i1232) + uint32_t _size1248; + ::apache::thrift::protocol::TType _etype1251; + xfer += iprot->readListBegin(_etype1251, _size1248); + this->uniqueConstraints.resize(_size1248); + uint32_t _i1252; + for (_i1252 = 0; _i1252 < _size1248; ++_i1252) { - xfer += this->uniqueConstraints[_i1232].read(iprot); + xfer += this->uniqueConstraints[_i1252].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 _size1233; - ::apache::thrift::protocol::TType _etype1236; - xfer += iprot->readListBegin(_etype1236, _size1233); - this->notNullConstraints.resize(_size1233); - uint32_t _i1237; - for (_i1237 = 0; _i1237 < _size1233; ++_i1237) + uint32_t _size1253; + ::apache::thrift::protocol::TType _etype1256; + xfer += iprot->readListBegin(_etype1256, _size1253); + this->notNullConstraints.resize(_size1253); + uint32_t _i1257; + for (_i1257 = 0; _i1257 < _size1253; ++_i1257) { - xfer += this->notNullConstraints[_i1237].read(iprot); + xfer += this->notNullConstraints[_i1257].read(iprot); } xfer += iprot->readListEnd(); } @@ -4598,14 +4598,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->defaultConstraints.clear(); - uint32_t _size1238; - ::apache::thrift::protocol::TType _etype1241; - xfer += iprot->readListBegin(_etype1241, _size1238); - this->defaultConstraints.resize(_size1238); - uint32_t _i1242; - for (_i1242 = 0; _i1242 < _size1238; ++_i1242) + uint32_t _size1258; + ::apache::thrift::protocol::TType _etype1261; + xfer += iprot->readListBegin(_etype1261, _size1258); + this->defaultConstraints.resize(_size1258); + uint32_t _i1262; + for (_i1262 = 0; _i1262 < _size1258; ++_i1262) { - xfer += this->defaultConstraints[_i1242].read(iprot); + xfer += this->defaultConstraints[_i1262].read(iprot); } xfer += iprot->readListEnd(); } @@ -4614,6 +4614,26 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache:: xfer += iprot->skip(ftype); } break; + case 7: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->checkConstraints.clear(); + uint32_t _size1263; + ::apache::thrift::protocol::TType _etype1266; + xfer += iprot->readListBegin(_etype1266, _size1263); + this->checkConstraints.resize(_size1263); + uint32_t _i1267; + for (_i1267 = 0; _i1267 < _size1263; ++_i1267) + { + xfer += this->checkConstraints[_i1267].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.checkConstraints = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -4638,10 +4658,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 _iter1243; - for (_iter1243 = this->primaryKeys.begin(); _iter1243 != this->primaryKeys.end(); ++_iter1243) + std::vector ::const_iterator _iter1268; + for (_iter1268 = this->primaryKeys.begin(); _iter1268 != this->primaryKeys.end(); ++_iter1268) { - xfer += (*_iter1243).write(oprot); + xfer += (*_iter1268).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4650,10 +4670,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 _iter1244; - for (_iter1244 = this->foreignKeys.begin(); _iter1244 != this->foreignKeys.end(); ++_iter1244) + std::vector ::const_iterator _iter1269; + for (_iter1269 = this->foreignKeys.begin(); _iter1269 != this->foreignKeys.end(); ++_iter1269) { - xfer += (*_iter1244).write(oprot); + xfer += (*_iter1269).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4662,10 +4682,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 _iter1245; - for (_iter1245 = this->uniqueConstraints.begin(); _iter1245 != this->uniqueConstraints.end(); ++_iter1245) + std::vector ::const_iterator _iter1270; + for (_iter1270 = this->uniqueConstraints.begin(); _iter1270 != this->uniqueConstraints.end(); ++_iter1270) { - xfer += (*_iter1245).write(oprot); + xfer += (*_iter1270).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4674,10 +4694,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache: xfer += oprot->writeFieldBegin("notNullConstraints", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->notNullConstraints.size())); - std::vector ::const_iterator _iter1246; - for (_iter1246 = this->notNullConstraints.begin(); _iter1246 != this->notNullConstraints.end(); ++_iter1246) + std::vector ::const_iterator _iter1271; + for (_iter1271 = this->notNullConstraints.begin(); _iter1271 != this->notNullConstraints.end(); ++_iter1271) { - xfer += (*_iter1246).write(oprot); + xfer += (*_iter1271).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4686,10 +4706,22 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache: xfer += oprot->writeFieldBegin("defaultConstraints", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->defaultConstraints.size())); - std::vector ::const_iterator _iter1247; - for (_iter1247 = this->defaultConstraints.begin(); _iter1247 != this->defaultConstraints.end(); ++_iter1247) + std::vector ::const_iterator _iter1272; + for (_iter1272 = this->defaultConstraints.begin(); _iter1272 != this->defaultConstraints.end(); ++_iter1272) + { + xfer += (*_iter1272).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("checkConstraints", ::apache::thrift::protocol::T_LIST, 7); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->checkConstraints.size())); + std::vector ::const_iterator _iter1273; + for (_iter1273 = this->checkConstraints.begin(); _iter1273 != this->checkConstraints.end(); ++_iter1273) { - xfer += (*_iter1247).write(oprot); + xfer += (*_iter1273).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4717,10 +4749,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 _iter1248; - for (_iter1248 = (*(this->primaryKeys)).begin(); _iter1248 != (*(this->primaryKeys)).end(); ++_iter1248) + std::vector ::const_iterator _iter1274; + for (_iter1274 = (*(this->primaryKeys)).begin(); _iter1274 != (*(this->primaryKeys)).end(); ++_iter1274) { - xfer += (*_iter1248).write(oprot); + xfer += (*_iter1274).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4729,10 +4761,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 _iter1249; - for (_iter1249 = (*(this->foreignKeys)).begin(); _iter1249 != (*(this->foreignKeys)).end(); ++_iter1249) + std::vector ::const_iterator _iter1275; + for (_iter1275 = (*(this->foreignKeys)).begin(); _iter1275 != (*(this->foreignKeys)).end(); ++_iter1275) { - xfer += (*_iter1249).write(oprot); + xfer += (*_iter1275).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4741,10 +4773,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 _iter1250; - for (_iter1250 = (*(this->uniqueConstraints)).begin(); _iter1250 != (*(this->uniqueConstraints)).end(); ++_iter1250) + std::vector ::const_iterator _iter1276; + for (_iter1276 = (*(this->uniqueConstraints)).begin(); _iter1276 != (*(this->uniqueConstraints)).end(); ++_iter1276) { - xfer += (*_iter1250).write(oprot); + xfer += (*_iter1276).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4753,10 +4785,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache xfer += oprot->writeFieldBegin("notNullConstraints", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->notNullConstraints)).size())); - std::vector ::const_iterator _iter1251; - for (_iter1251 = (*(this->notNullConstraints)).begin(); _iter1251 != (*(this->notNullConstraints)).end(); ++_iter1251) + std::vector ::const_iterator _iter1277; + for (_iter1277 = (*(this->notNullConstraints)).begin(); _iter1277 != (*(this->notNullConstraints)).end(); ++_iter1277) { - xfer += (*_iter1251).write(oprot); + xfer += (*_iter1277).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4765,10 +4797,22 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache xfer += oprot->writeFieldBegin("defaultConstraints", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->defaultConstraints)).size())); - std::vector ::const_iterator _iter1252; - for (_iter1252 = (*(this->defaultConstraints)).begin(); _iter1252 != (*(this->defaultConstraints)).end(); ++_iter1252) + std::vector ::const_iterator _iter1278; + for (_iter1278 = (*(this->defaultConstraints)).begin(); _iter1278 != (*(this->defaultConstraints)).end(); ++_iter1278) + { + xfer += (*_iter1278).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("checkConstraints", ::apache::thrift::protocol::T_LIST, 7); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->checkConstraints)).size())); + std::vector ::const_iterator _iter1279; + for (_iter1279 = (*(this->checkConstraints)).begin(); _iter1279 != (*(this->checkConstraints)).end(); ++_iter1279) { - xfer += (*_iter1252).write(oprot); + xfer += (*_iter1279).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6190,6 +6234,213 @@ uint32_t ThriftHiveMetastore_add_default_constraint_presult::read(::apache::thri } +ThriftHiveMetastore_add_check_constraint_args::~ThriftHiveMetastore_add_check_constraint_args() throw() { +} + + +uint32_t ThriftHiveMetastore_add_check_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_check_constraint_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_check_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_check_constraint_pargs::~ThriftHiveMetastore_add_check_constraint_pargs() throw() { +} + + +uint32_t ThriftHiveMetastore_add_check_constraint_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_check_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_check_constraint_result::~ThriftHiveMetastore_add_check_constraint_result() throw() { +} + + +uint32_t ThriftHiveMetastore_add_check_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_check_constraint_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_check_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_check_constraint_presult::~ThriftHiveMetastore_add_check_constraint_presult() throw() { +} + + +uint32_t ThriftHiveMetastore_add_check_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() { } @@ -6729,14 +6980,14 @@ uint32_t ThriftHiveMetastore_truncate_table_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partNames.clear(); - uint32_t _size1253; - ::apache::thrift::protocol::TType _etype1256; - xfer += iprot->readListBegin(_etype1256, _size1253); - this->partNames.resize(_size1253); - uint32_t _i1257; - for (_i1257 = 0; _i1257 < _size1253; ++_i1257) + uint32_t _size1280; + ::apache::thrift::protocol::TType _etype1283; + xfer += iprot->readListBegin(_etype1283, _size1280); + this->partNames.resize(_size1280); + uint32_t _i1284; + for (_i1284 = 0; _i1284 < _size1280; ++_i1284) { - xfer += iprot->readString(this->partNames[_i1257]); + xfer += iprot->readString(this->partNames[_i1284]); } xfer += iprot->readListEnd(); } @@ -6773,10 +7024,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 _iter1258; - for (_iter1258 = this->partNames.begin(); _iter1258 != this->partNames.end(); ++_iter1258) + std::vector ::const_iterator _iter1285; + for (_iter1285 = this->partNames.begin(); _iter1285 != this->partNames.end(); ++_iter1285) { - xfer += oprot->writeString((*_iter1258)); + xfer += oprot->writeString((*_iter1285)); } xfer += oprot->writeListEnd(); } @@ -6808,10 +7059,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 _iter1259; - for (_iter1259 = (*(this->partNames)).begin(); _iter1259 != (*(this->partNames)).end(); ++_iter1259) + std::vector ::const_iterator _iter1286; + for (_iter1286 = (*(this->partNames)).begin(); _iter1286 != (*(this->partNames)).end(); ++_iter1286) { - xfer += oprot->writeString((*_iter1259)); + xfer += oprot->writeString((*_iter1286)); } xfer += oprot->writeListEnd(); } @@ -7055,14 +7306,14 @@ uint32_t ThriftHiveMetastore_get_tables_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1260; - ::apache::thrift::protocol::TType _etype1263; - xfer += iprot->readListBegin(_etype1263, _size1260); - this->success.resize(_size1260); - uint32_t _i1264; - for (_i1264 = 0; _i1264 < _size1260; ++_i1264) + uint32_t _size1287; + ::apache::thrift::protocol::TType _etype1290; + xfer += iprot->readListBegin(_etype1290, _size1287); + this->success.resize(_size1287); + uint32_t _i1291; + for (_i1291 = 0; _i1291 < _size1287; ++_i1291) { - xfer += iprot->readString(this->success[_i1264]); + xfer += iprot->readString(this->success[_i1291]); } xfer += iprot->readListEnd(); } @@ -7101,10 +7352,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 _iter1265; - for (_iter1265 = this->success.begin(); _iter1265 != this->success.end(); ++_iter1265) + std::vector ::const_iterator _iter1292; + for (_iter1292 = this->success.begin(); _iter1292 != this->success.end(); ++_iter1292) { - xfer += oprot->writeString((*_iter1265)); + xfer += oprot->writeString((*_iter1292)); } xfer += oprot->writeListEnd(); } @@ -7149,14 +7400,14 @@ uint32_t ThriftHiveMetastore_get_tables_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1266; - ::apache::thrift::protocol::TType _etype1269; - xfer += iprot->readListBegin(_etype1269, _size1266); - (*(this->success)).resize(_size1266); - uint32_t _i1270; - for (_i1270 = 0; _i1270 < _size1266; ++_i1270) + uint32_t _size1293; + ::apache::thrift::protocol::TType _etype1296; + xfer += iprot->readListBegin(_etype1296, _size1293); + (*(this->success)).resize(_size1293); + uint32_t _i1297; + for (_i1297 = 0; _i1297 < _size1293; ++_i1297) { - xfer += iprot->readString((*(this->success))[_i1270]); + xfer += iprot->readString((*(this->success))[_i1297]); } xfer += iprot->readListEnd(); } @@ -7326,14 +7577,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 _size1271; - ::apache::thrift::protocol::TType _etype1274; - xfer += iprot->readListBegin(_etype1274, _size1271); - this->success.resize(_size1271); - uint32_t _i1275; - for (_i1275 = 0; _i1275 < _size1271; ++_i1275) + uint32_t _size1298; + ::apache::thrift::protocol::TType _etype1301; + xfer += iprot->readListBegin(_etype1301, _size1298); + this->success.resize(_size1298); + uint32_t _i1302; + for (_i1302 = 0; _i1302 < _size1298; ++_i1302) { - xfer += iprot->readString(this->success[_i1275]); + xfer += iprot->readString(this->success[_i1302]); } xfer += iprot->readListEnd(); } @@ -7372,10 +7623,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 _iter1276; - for (_iter1276 = this->success.begin(); _iter1276 != this->success.end(); ++_iter1276) + std::vector ::const_iterator _iter1303; + for (_iter1303 = this->success.begin(); _iter1303 != this->success.end(); ++_iter1303) { - xfer += oprot->writeString((*_iter1276)); + xfer += oprot->writeString((*_iter1303)); } xfer += oprot->writeListEnd(); } @@ -7420,14 +7671,14 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_presult::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1277; - ::apache::thrift::protocol::TType _etype1280; - xfer += iprot->readListBegin(_etype1280, _size1277); - (*(this->success)).resize(_size1277); - uint32_t _i1281; - for (_i1281 = 0; _i1281 < _size1277; ++_i1281) + uint32_t _size1304; + ::apache::thrift::protocol::TType _etype1307; + xfer += iprot->readListBegin(_etype1307, _size1304); + (*(this->success)).resize(_size1304); + uint32_t _i1308; + for (_i1308 = 0; _i1308 < _size1304; ++_i1308) { - xfer += iprot->readString((*(this->success))[_i1281]); + xfer += iprot->readString((*(this->success))[_i1308]); } xfer += iprot->readListEnd(); } @@ -7565,14 +7816,14 @@ uint32_t ThriftHiveMetastore_get_materialized_views_for_rewriting_result::read(: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1282; - ::apache::thrift::protocol::TType _etype1285; - xfer += iprot->readListBegin(_etype1285, _size1282); - this->success.resize(_size1282); - uint32_t _i1286; - for (_i1286 = 0; _i1286 < _size1282; ++_i1286) + uint32_t _size1309; + ::apache::thrift::protocol::TType _etype1312; + xfer += iprot->readListBegin(_etype1312, _size1309); + this->success.resize(_size1309); + uint32_t _i1313; + for (_i1313 = 0; _i1313 < _size1309; ++_i1313) { - xfer += iprot->readString(this->success[_i1286]); + xfer += iprot->readString(this->success[_i1313]); } xfer += iprot->readListEnd(); } @@ -7611,10 +7862,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 _iter1287; - for (_iter1287 = this->success.begin(); _iter1287 != this->success.end(); ++_iter1287) + std::vector ::const_iterator _iter1314; + for (_iter1314 = this->success.begin(); _iter1314 != this->success.end(); ++_iter1314) { - xfer += oprot->writeString((*_iter1287)); + xfer += oprot->writeString((*_iter1314)); } xfer += oprot->writeListEnd(); } @@ -7659,14 +7910,14 @@ uint32_t ThriftHiveMetastore_get_materialized_views_for_rewriting_presult::read( if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1288; - ::apache::thrift::protocol::TType _etype1291; - xfer += iprot->readListBegin(_etype1291, _size1288); - (*(this->success)).resize(_size1288); - uint32_t _i1292; - for (_i1292 = 0; _i1292 < _size1288; ++_i1292) + uint32_t _size1315; + ::apache::thrift::protocol::TType _etype1318; + xfer += iprot->readListBegin(_etype1318, _size1315); + (*(this->success)).resize(_size1315); + uint32_t _i1319; + for (_i1319 = 0; _i1319 < _size1315; ++_i1319) { - xfer += iprot->readString((*(this->success))[_i1292]); + xfer += iprot->readString((*(this->success))[_i1319]); } xfer += iprot->readListEnd(); } @@ -7741,14 +7992,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 _size1293; - ::apache::thrift::protocol::TType _etype1296; - xfer += iprot->readListBegin(_etype1296, _size1293); - this->tbl_types.resize(_size1293); - uint32_t _i1297; - for (_i1297 = 0; _i1297 < _size1293; ++_i1297) + uint32_t _size1320; + ::apache::thrift::protocol::TType _etype1323; + xfer += iprot->readListBegin(_etype1323, _size1320); + this->tbl_types.resize(_size1320); + uint32_t _i1324; + for (_i1324 = 0; _i1324 < _size1320; ++_i1324) { - xfer += iprot->readString(this->tbl_types[_i1297]); + xfer += iprot->readString(this->tbl_types[_i1324]); } xfer += iprot->readListEnd(); } @@ -7785,10 +8036,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 _iter1298; - for (_iter1298 = this->tbl_types.begin(); _iter1298 != this->tbl_types.end(); ++_iter1298) + std::vector ::const_iterator _iter1325; + for (_iter1325 = this->tbl_types.begin(); _iter1325 != this->tbl_types.end(); ++_iter1325) { - xfer += oprot->writeString((*_iter1298)); + xfer += oprot->writeString((*_iter1325)); } xfer += oprot->writeListEnd(); } @@ -7820,10 +8071,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 _iter1299; - for (_iter1299 = (*(this->tbl_types)).begin(); _iter1299 != (*(this->tbl_types)).end(); ++_iter1299) + std::vector ::const_iterator _iter1326; + for (_iter1326 = (*(this->tbl_types)).begin(); _iter1326 != (*(this->tbl_types)).end(); ++_iter1326) { - xfer += oprot->writeString((*_iter1299)); + xfer += oprot->writeString((*_iter1326)); } xfer += oprot->writeListEnd(); } @@ -7864,14 +8115,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - 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) + uint32_t _size1327; + ::apache::thrift::protocol::TType _etype1330; + xfer += iprot->readListBegin(_etype1330, _size1327); + this->success.resize(_size1327); + uint32_t _i1331; + for (_i1331 = 0; _i1331 < _size1327; ++_i1331) { - xfer += this->success[_i1304].read(iprot); + xfer += this->success[_i1331].read(iprot); } xfer += iprot->readListEnd(); } @@ -7910,10 +8161,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 _iter1305; - for (_iter1305 = this->success.begin(); _iter1305 != this->success.end(); ++_iter1305) + std::vector ::const_iterator _iter1332; + for (_iter1332 = this->success.begin(); _iter1332 != this->success.end(); ++_iter1332) { - xfer += (*_iter1305).write(oprot); + xfer += (*_iter1332).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7958,14 +8209,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1306; - ::apache::thrift::protocol::TType _etype1309; - xfer += iprot->readListBegin(_etype1309, _size1306); - (*(this->success)).resize(_size1306); - uint32_t _i1310; - for (_i1310 = 0; _i1310 < _size1306; ++_i1310) + uint32_t _size1333; + ::apache::thrift::protocol::TType _etype1336; + xfer += iprot->readListBegin(_etype1336, _size1333); + (*(this->success)).resize(_size1333); + uint32_t _i1337; + for (_i1337 = 0; _i1337 < _size1333; ++_i1337) { - xfer += (*(this->success))[_i1310].read(iprot); + xfer += (*(this->success))[_i1337].read(iprot); } xfer += iprot->readListEnd(); } @@ -8103,14 +8354,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1311; - ::apache::thrift::protocol::TType _etype1314; - xfer += iprot->readListBegin(_etype1314, _size1311); - this->success.resize(_size1311); - uint32_t _i1315; - for (_i1315 = 0; _i1315 < _size1311; ++_i1315) + uint32_t _size1338; + ::apache::thrift::protocol::TType _etype1341; + xfer += iprot->readListBegin(_etype1341, _size1338); + this->success.resize(_size1338); + uint32_t _i1342; + for (_i1342 = 0; _i1342 < _size1338; ++_i1342) { - xfer += iprot->readString(this->success[_i1315]); + xfer += iprot->readString(this->success[_i1342]); } xfer += iprot->readListEnd(); } @@ -8149,10 +8400,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 _iter1316; - for (_iter1316 = this->success.begin(); _iter1316 != this->success.end(); ++_iter1316) + std::vector ::const_iterator _iter1343; + for (_iter1343 = this->success.begin(); _iter1343 != this->success.end(); ++_iter1343) { - xfer += oprot->writeString((*_iter1316)); + xfer += oprot->writeString((*_iter1343)); } xfer += oprot->writeListEnd(); } @@ -8197,14 +8448,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1317; - ::apache::thrift::protocol::TType _etype1320; - xfer += iprot->readListBegin(_etype1320, _size1317); - (*(this->success)).resize(_size1317); - uint32_t _i1321; - for (_i1321 = 0; _i1321 < _size1317; ++_i1321) + uint32_t _size1344; + ::apache::thrift::protocol::TType _etype1347; + xfer += iprot->readListBegin(_etype1347, _size1344); + (*(this->success)).resize(_size1344); + uint32_t _i1348; + for (_i1348 = 0; _i1348 < _size1344; ++_i1348) { - xfer += iprot->readString((*(this->success))[_i1321]); + xfer += iprot->readString((*(this->success))[_i1348]); } xfer += iprot->readListEnd(); } @@ -8514,14 +8765,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 _size1322; - ::apache::thrift::protocol::TType _etype1325; - xfer += iprot->readListBegin(_etype1325, _size1322); - this->tbl_names.resize(_size1322); - uint32_t _i1326; - for (_i1326 = 0; _i1326 < _size1322; ++_i1326) + uint32_t _size1349; + ::apache::thrift::protocol::TType _etype1352; + xfer += iprot->readListBegin(_etype1352, _size1349); + this->tbl_names.resize(_size1349); + uint32_t _i1353; + for (_i1353 = 0; _i1353 < _size1349; ++_i1353) { - xfer += iprot->readString(this->tbl_names[_i1326]); + xfer += iprot->readString(this->tbl_names[_i1353]); } xfer += iprot->readListEnd(); } @@ -8554,10 +8805,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 _iter1327; - for (_iter1327 = this->tbl_names.begin(); _iter1327 != this->tbl_names.end(); ++_iter1327) + std::vector ::const_iterator _iter1354; + for (_iter1354 = this->tbl_names.begin(); _iter1354 != this->tbl_names.end(); ++_iter1354) { - xfer += oprot->writeString((*_iter1327)); + xfer += oprot->writeString((*_iter1354)); } xfer += oprot->writeListEnd(); } @@ -8585,10 +8836,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 _iter1328; - for (_iter1328 = (*(this->tbl_names)).begin(); _iter1328 != (*(this->tbl_names)).end(); ++_iter1328) + std::vector ::const_iterator _iter1355; + for (_iter1355 = (*(this->tbl_names)).begin(); _iter1355 != (*(this->tbl_names)).end(); ++_iter1355) { - xfer += oprot->writeString((*_iter1328)); + xfer += oprot->writeString((*_iter1355)); } xfer += oprot->writeListEnd(); } @@ -8629,14 +8880,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 _size1329; - ::apache::thrift::protocol::TType _etype1332; - xfer += iprot->readListBegin(_etype1332, _size1329); - this->success.resize(_size1329); - uint32_t _i1333; - for (_i1333 = 0; _i1333 < _size1329; ++_i1333) + uint32_t _size1356; + ::apache::thrift::protocol::TType _etype1359; + xfer += iprot->readListBegin(_etype1359, _size1356); + this->success.resize(_size1356); + uint32_t _i1360; + for (_i1360 = 0; _i1360 < _size1356; ++_i1360) { - xfer += this->success[_i1333].read(iprot); + xfer += this->success[_i1360].read(iprot); } xfer += iprot->readListEnd(); } @@ -8667,10 +8918,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 _iter1334; - for (_iter1334 = this->success.begin(); _iter1334 != this->success.end(); ++_iter1334) + std::vector
::const_iterator _iter1361; + for (_iter1361 = this->success.begin(); _iter1361 != this->success.end(); ++_iter1361) { - xfer += (*_iter1334).write(oprot); + xfer += (*_iter1361).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8711,14 +8962,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 _size1335; - ::apache::thrift::protocol::TType _etype1338; - xfer += iprot->readListBegin(_etype1338, _size1335); - (*(this->success)).resize(_size1335); - uint32_t _i1339; - for (_i1339 = 0; _i1339 < _size1335; ++_i1339) + uint32_t _size1362; + ::apache::thrift::protocol::TType _etype1365; + xfer += iprot->readListBegin(_etype1365, _size1362); + (*(this->success)).resize(_size1362); + uint32_t _i1366; + for (_i1366 = 0; _i1366 < _size1362; ++_i1366) { - xfer += (*(this->success))[_i1339].read(iprot); + xfer += (*(this->success))[_i1366].read(iprot); } xfer += iprot->readListEnd(); } @@ -9251,14 +9502,14 @@ uint32_t ThriftHiveMetastore_get_materialization_invalidation_info_args::read(:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tbl_names.clear(); - uint32_t _size1340; - ::apache::thrift::protocol::TType _etype1343; - xfer += iprot->readListBegin(_etype1343, _size1340); - this->tbl_names.resize(_size1340); - uint32_t _i1344; - for (_i1344 = 0; _i1344 < _size1340; ++_i1344) + uint32_t _size1367; + ::apache::thrift::protocol::TType _etype1370; + xfer += iprot->readListBegin(_etype1370, _size1367); + this->tbl_names.resize(_size1367); + uint32_t _i1371; + for (_i1371 = 0; _i1371 < _size1367; ++_i1371) { - xfer += iprot->readString(this->tbl_names[_i1344]); + xfer += iprot->readString(this->tbl_names[_i1371]); } xfer += iprot->readListEnd(); } @@ -9291,10 +9542,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 _iter1345; - for (_iter1345 = this->tbl_names.begin(); _iter1345 != this->tbl_names.end(); ++_iter1345) + std::vector ::const_iterator _iter1372; + for (_iter1372 = this->tbl_names.begin(); _iter1372 != this->tbl_names.end(); ++_iter1372) { - xfer += oprot->writeString((*_iter1345)); + xfer += oprot->writeString((*_iter1372)); } xfer += oprot->writeListEnd(); } @@ -9322,10 +9573,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 _iter1346; - for (_iter1346 = (*(this->tbl_names)).begin(); _iter1346 != (*(this->tbl_names)).end(); ++_iter1346) + std::vector ::const_iterator _iter1373; + for (_iter1373 = (*(this->tbl_names)).begin(); _iter1373 != (*(this->tbl_names)).end(); ++_iter1373) { - xfer += oprot->writeString((*_iter1346)); + xfer += oprot->writeString((*_iter1373)); } xfer += oprot->writeListEnd(); } @@ -9366,17 +9617,17 @@ uint32_t ThriftHiveMetastore_get_materialization_invalidation_info_result::read( if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size1347; - ::apache::thrift::protocol::TType _ktype1348; - ::apache::thrift::protocol::TType _vtype1349; - xfer += iprot->readMapBegin(_ktype1348, _vtype1349, _size1347); - uint32_t _i1351; - for (_i1351 = 0; _i1351 < _size1347; ++_i1351) + uint32_t _size1374; + ::apache::thrift::protocol::TType _ktype1375; + ::apache::thrift::protocol::TType _vtype1376; + xfer += iprot->readMapBegin(_ktype1375, _vtype1376, _size1374); + uint32_t _i1378; + for (_i1378 = 0; _i1378 < _size1374; ++_i1378) { - std::string _key1352; - xfer += iprot->readString(_key1352); - Materialization& _val1353 = this->success[_key1352]; - xfer += _val1353.read(iprot); + std::string _key1379; + xfer += iprot->readString(_key1379); + Materialization& _val1380 = this->success[_key1379]; + xfer += _val1380.read(iprot); } xfer += iprot->readMapEnd(); } @@ -9431,11 +9682,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 _iter1354; - for (_iter1354 = this->success.begin(); _iter1354 != this->success.end(); ++_iter1354) + std::map ::const_iterator _iter1381; + for (_iter1381 = this->success.begin(); _iter1381 != this->success.end(); ++_iter1381) { - xfer += oprot->writeString(_iter1354->first); - xfer += _iter1354->second.write(oprot); + xfer += oprot->writeString(_iter1381->first); + xfer += _iter1381->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -9488,17 +9739,17 @@ uint32_t ThriftHiveMetastore_get_materialization_invalidation_info_presult::read if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size1355; - ::apache::thrift::protocol::TType _ktype1356; - ::apache::thrift::protocol::TType _vtype1357; - xfer += iprot->readMapBegin(_ktype1356, _vtype1357, _size1355); - uint32_t _i1359; - for (_i1359 = 0; _i1359 < _size1355; ++_i1359) + uint32_t _size1382; + ::apache::thrift::protocol::TType _ktype1383; + ::apache::thrift::protocol::TType _vtype1384; + xfer += iprot->readMapBegin(_ktype1383, _vtype1384, _size1382); + uint32_t _i1386; + for (_i1386 = 0; _i1386 < _size1382; ++_i1386) { - std::string _key1360; - xfer += iprot->readString(_key1360); - Materialization& _val1361 = (*(this->success))[_key1360]; - xfer += _val1361.read(iprot); + std::string _key1387; + xfer += iprot->readString(_key1387); + Materialization& _val1388 = (*(this->success))[_key1387]; + xfer += _val1388.read(iprot); } xfer += iprot->readMapEnd(); } @@ -9943,14 +10194,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 _size1362; - ::apache::thrift::protocol::TType _etype1365; - xfer += iprot->readListBegin(_etype1365, _size1362); - this->success.resize(_size1362); - uint32_t _i1366; - for (_i1366 = 0; _i1366 < _size1362; ++_i1366) + uint32_t _size1389; + ::apache::thrift::protocol::TType _etype1392; + xfer += iprot->readListBegin(_etype1392, _size1389); + this->success.resize(_size1389); + uint32_t _i1393; + for (_i1393 = 0; _i1393 < _size1389; ++_i1393) { - xfer += iprot->readString(this->success[_i1366]); + xfer += iprot->readString(this->success[_i1393]); } xfer += iprot->readListEnd(); } @@ -10005,10 +10256,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 _iter1367; - for (_iter1367 = this->success.begin(); _iter1367 != this->success.end(); ++_iter1367) + std::vector ::const_iterator _iter1394; + for (_iter1394 = this->success.begin(); _iter1394 != this->success.end(); ++_iter1394) { - xfer += oprot->writeString((*_iter1367)); + xfer += oprot->writeString((*_iter1394)); } xfer += oprot->writeListEnd(); } @@ -10061,14 +10312,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 _size1368; - ::apache::thrift::protocol::TType _etype1371; - xfer += iprot->readListBegin(_etype1371, _size1368); - (*(this->success)).resize(_size1368); - uint32_t _i1372; - for (_i1372 = 0; _i1372 < _size1368; ++_i1372) + uint32_t _size1395; + ::apache::thrift::protocol::TType _etype1398; + xfer += iprot->readListBegin(_etype1398, _size1395); + (*(this->success)).resize(_size1395); + uint32_t _i1399; + for (_i1399 = 0; _i1399 < _size1395; ++_i1399) { - xfer += iprot->readString((*(this->success))[_i1372]); + xfer += iprot->readString((*(this->success))[_i1399]); } xfer += iprot->readListEnd(); } @@ -11402,14 +11653,14 @@ uint32_t ThriftHiveMetastore_add_partitions_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1373; - ::apache::thrift::protocol::TType _etype1376; - xfer += iprot->readListBegin(_etype1376, _size1373); - this->new_parts.resize(_size1373); - uint32_t _i1377; - for (_i1377 = 0; _i1377 < _size1373; ++_i1377) + uint32_t _size1400; + ::apache::thrift::protocol::TType _etype1403; + xfer += iprot->readListBegin(_etype1403, _size1400); + this->new_parts.resize(_size1400); + uint32_t _i1404; + for (_i1404 = 0; _i1404 < _size1400; ++_i1404) { - xfer += this->new_parts[_i1377].read(iprot); + xfer += this->new_parts[_i1404].read(iprot); } xfer += iprot->readListEnd(); } @@ -11438,10 +11689,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 _iter1378; - for (_iter1378 = this->new_parts.begin(); _iter1378 != this->new_parts.end(); ++_iter1378) + std::vector ::const_iterator _iter1405; + for (_iter1405 = this->new_parts.begin(); _iter1405 != this->new_parts.end(); ++_iter1405) { - xfer += (*_iter1378).write(oprot); + xfer += (*_iter1405).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11465,10 +11716,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 _iter1379; - for (_iter1379 = (*(this->new_parts)).begin(); _iter1379 != (*(this->new_parts)).end(); ++_iter1379) + std::vector ::const_iterator _iter1406; + for (_iter1406 = (*(this->new_parts)).begin(); _iter1406 != (*(this->new_parts)).end(); ++_iter1406) { - xfer += (*_iter1379).write(oprot); + xfer += (*_iter1406).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11677,14 +11928,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 _size1380; - ::apache::thrift::protocol::TType _etype1383; - xfer += iprot->readListBegin(_etype1383, _size1380); - this->new_parts.resize(_size1380); - uint32_t _i1384; - for (_i1384 = 0; _i1384 < _size1380; ++_i1384) + uint32_t _size1407; + ::apache::thrift::protocol::TType _etype1410; + xfer += iprot->readListBegin(_etype1410, _size1407); + this->new_parts.resize(_size1407); + uint32_t _i1411; + for (_i1411 = 0; _i1411 < _size1407; ++_i1411) { - xfer += this->new_parts[_i1384].read(iprot); + xfer += this->new_parts[_i1411].read(iprot); } xfer += iprot->readListEnd(); } @@ -11713,10 +11964,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 _iter1385; - for (_iter1385 = this->new_parts.begin(); _iter1385 != this->new_parts.end(); ++_iter1385) + std::vector ::const_iterator _iter1412; + for (_iter1412 = this->new_parts.begin(); _iter1412 != this->new_parts.end(); ++_iter1412) { - xfer += (*_iter1385).write(oprot); + xfer += (*_iter1412).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11740,10 +11991,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 _iter1386; - for (_iter1386 = (*(this->new_parts)).begin(); _iter1386 != (*(this->new_parts)).end(); ++_iter1386) + std::vector ::const_iterator _iter1413; + for (_iter1413 = (*(this->new_parts)).begin(); _iter1413 != (*(this->new_parts)).end(); ++_iter1413) { - xfer += (*_iter1386).write(oprot); + xfer += (*_iter1413).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11968,14 +12219,14 @@ uint32_t ThriftHiveMetastore_append_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1387; - ::apache::thrift::protocol::TType _etype1390; - xfer += iprot->readListBegin(_etype1390, _size1387); - this->part_vals.resize(_size1387); - uint32_t _i1391; - for (_i1391 = 0; _i1391 < _size1387; ++_i1391) + uint32_t _size1414; + ::apache::thrift::protocol::TType _etype1417; + xfer += iprot->readListBegin(_etype1417, _size1414); + this->part_vals.resize(_size1414); + uint32_t _i1418; + for (_i1418 = 0; _i1418 < _size1414; ++_i1418) { - xfer += iprot->readString(this->part_vals[_i1391]); + xfer += iprot->readString(this->part_vals[_i1418]); } xfer += iprot->readListEnd(); } @@ -12012,10 +12263,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 _iter1392; - for (_iter1392 = this->part_vals.begin(); _iter1392 != this->part_vals.end(); ++_iter1392) + std::vector ::const_iterator _iter1419; + for (_iter1419 = this->part_vals.begin(); _iter1419 != this->part_vals.end(); ++_iter1419) { - xfer += oprot->writeString((*_iter1392)); + xfer += oprot->writeString((*_iter1419)); } xfer += oprot->writeListEnd(); } @@ -12047,10 +12298,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 _iter1393; - for (_iter1393 = (*(this->part_vals)).begin(); _iter1393 != (*(this->part_vals)).end(); ++_iter1393) + std::vector ::const_iterator _iter1420; + for (_iter1420 = (*(this->part_vals)).begin(); _iter1420 != (*(this->part_vals)).end(); ++_iter1420) { - xfer += oprot->writeString((*_iter1393)); + xfer += oprot->writeString((*_iter1420)); } xfer += oprot->writeListEnd(); } @@ -12522,14 +12773,14 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::rea if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1394; - ::apache::thrift::protocol::TType _etype1397; - xfer += iprot->readListBegin(_etype1397, _size1394); - this->part_vals.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->part_vals.resize(_size1421); + uint32_t _i1425; + for (_i1425 = 0; _i1425 < _size1421; ++_i1425) { - xfer += iprot->readString(this->part_vals[_i1398]); + xfer += iprot->readString(this->part_vals[_i1425]); } xfer += iprot->readListEnd(); } @@ -12574,10 +12825,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 _iter1399; - for (_iter1399 = this->part_vals.begin(); _iter1399 != this->part_vals.end(); ++_iter1399) + std::vector ::const_iterator _iter1426; + for (_iter1426 = this->part_vals.begin(); _iter1426 != this->part_vals.end(); ++_iter1426) { - xfer += oprot->writeString((*_iter1399)); + xfer += oprot->writeString((*_iter1426)); } xfer += oprot->writeListEnd(); } @@ -12613,10 +12864,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 _iter1400; - for (_iter1400 = (*(this->part_vals)).begin(); _iter1400 != (*(this->part_vals)).end(); ++_iter1400) + std::vector ::const_iterator _iter1427; + for (_iter1427 = (*(this->part_vals)).begin(); _iter1427 != (*(this->part_vals)).end(); ++_iter1427) { - xfer += oprot->writeString((*_iter1400)); + xfer += oprot->writeString((*_iter1427)); } xfer += oprot->writeListEnd(); } @@ -13419,14 +13670,14 @@ uint32_t ThriftHiveMetastore_drop_partition_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1401; - ::apache::thrift::protocol::TType _etype1404; - xfer += iprot->readListBegin(_etype1404, _size1401); - this->part_vals.resize(_size1401); - uint32_t _i1405; - for (_i1405 = 0; _i1405 < _size1401; ++_i1405) + uint32_t _size1428; + ::apache::thrift::protocol::TType _etype1431; + xfer += iprot->readListBegin(_etype1431, _size1428); + this->part_vals.resize(_size1428); + uint32_t _i1432; + for (_i1432 = 0; _i1432 < _size1428; ++_i1432) { - xfer += iprot->readString(this->part_vals[_i1405]); + xfer += iprot->readString(this->part_vals[_i1432]); } xfer += iprot->readListEnd(); } @@ -13471,10 +13722,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 _iter1406; - for (_iter1406 = this->part_vals.begin(); _iter1406 != this->part_vals.end(); ++_iter1406) + std::vector ::const_iterator _iter1433; + for (_iter1433 = this->part_vals.begin(); _iter1433 != this->part_vals.end(); ++_iter1433) { - xfer += oprot->writeString((*_iter1406)); + xfer += oprot->writeString((*_iter1433)); } xfer += oprot->writeListEnd(); } @@ -13510,10 +13761,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 _iter1407; - for (_iter1407 = (*(this->part_vals)).begin(); _iter1407 != (*(this->part_vals)).end(); ++_iter1407) + std::vector ::const_iterator _iter1434; + for (_iter1434 = (*(this->part_vals)).begin(); _iter1434 != (*(this->part_vals)).end(); ++_iter1434) { - xfer += oprot->writeString((*_iter1407)); + xfer += oprot->writeString((*_iter1434)); } xfer += oprot->writeListEnd(); } @@ -13722,14 +13973,14 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::read( if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1408; - ::apache::thrift::protocol::TType _etype1411; - xfer += iprot->readListBegin(_etype1411, _size1408); - this->part_vals.resize(_size1408); - uint32_t _i1412; - for (_i1412 = 0; _i1412 < _size1408; ++_i1412) + uint32_t _size1435; + ::apache::thrift::protocol::TType _etype1438; + xfer += iprot->readListBegin(_etype1438, _size1435); + this->part_vals.resize(_size1435); + uint32_t _i1439; + for (_i1439 = 0; _i1439 < _size1435; ++_i1439) { - xfer += iprot->readString(this->part_vals[_i1412]); + xfer += iprot->readString(this->part_vals[_i1439]); } xfer += iprot->readListEnd(); } @@ -13782,10 +14033,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 _iter1413; - for (_iter1413 = this->part_vals.begin(); _iter1413 != this->part_vals.end(); ++_iter1413) + std::vector ::const_iterator _iter1440; + for (_iter1440 = this->part_vals.begin(); _iter1440 != this->part_vals.end(); ++_iter1440) { - xfer += oprot->writeString((*_iter1413)); + xfer += oprot->writeString((*_iter1440)); } xfer += oprot->writeListEnd(); } @@ -13825,10 +14076,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 _iter1414; - for (_iter1414 = (*(this->part_vals)).begin(); _iter1414 != (*(this->part_vals)).end(); ++_iter1414) + std::vector ::const_iterator _iter1441; + for (_iter1441 = (*(this->part_vals)).begin(); _iter1441 != (*(this->part_vals)).end(); ++_iter1441) { - xfer += oprot->writeString((*_iter1414)); + xfer += oprot->writeString((*_iter1441)); } xfer += oprot->writeListEnd(); } @@ -14834,14 +15085,14 @@ uint32_t ThriftHiveMetastore_get_partition_args::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1415; - ::apache::thrift::protocol::TType _etype1418; - xfer += iprot->readListBegin(_etype1418, _size1415); - this->part_vals.resize(_size1415); - uint32_t _i1419; - for (_i1419 = 0; _i1419 < _size1415; ++_i1419) + uint32_t _size1442; + ::apache::thrift::protocol::TType _etype1445; + xfer += iprot->readListBegin(_etype1445, _size1442); + this->part_vals.resize(_size1442); + uint32_t _i1446; + for (_i1446 = 0; _i1446 < _size1442; ++_i1446) { - xfer += iprot->readString(this->part_vals[_i1419]); + xfer += iprot->readString(this->part_vals[_i1446]); } xfer += iprot->readListEnd(); } @@ -14878,10 +15129,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 _iter1420; - for (_iter1420 = this->part_vals.begin(); _iter1420 != this->part_vals.end(); ++_iter1420) + std::vector ::const_iterator _iter1447; + for (_iter1447 = this->part_vals.begin(); _iter1447 != this->part_vals.end(); ++_iter1447) { - xfer += oprot->writeString((*_iter1420)); + xfer += oprot->writeString((*_iter1447)); } xfer += oprot->writeListEnd(); } @@ -14913,10 +15164,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 _iter1421; - for (_iter1421 = (*(this->part_vals)).begin(); _iter1421 != (*(this->part_vals)).end(); ++_iter1421) + std::vector ::const_iterator _iter1448; + for (_iter1448 = (*(this->part_vals)).begin(); _iter1448 != (*(this->part_vals)).end(); ++_iter1448) { - xfer += oprot->writeString((*_iter1421)); + xfer += oprot->writeString((*_iter1448)); } xfer += oprot->writeListEnd(); } @@ -15105,17 +15356,17 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size1422; - ::apache::thrift::protocol::TType _ktype1423; - ::apache::thrift::protocol::TType _vtype1424; - xfer += iprot->readMapBegin(_ktype1423, _vtype1424, _size1422); - uint32_t _i1426; - for (_i1426 = 0; _i1426 < _size1422; ++_i1426) + uint32_t _size1449; + ::apache::thrift::protocol::TType _ktype1450; + ::apache::thrift::protocol::TType _vtype1451; + xfer += iprot->readMapBegin(_ktype1450, _vtype1451, _size1449); + uint32_t _i1453; + for (_i1453 = 0; _i1453 < _size1449; ++_i1453) { - std::string _key1427; - xfer += iprot->readString(_key1427); - std::string& _val1428 = this->partitionSpecs[_key1427]; - xfer += iprot->readString(_val1428); + std::string _key1454; + xfer += iprot->readString(_key1454); + std::string& _val1455 = this->partitionSpecs[_key1454]; + xfer += iprot->readString(_val1455); } xfer += iprot->readMapEnd(); } @@ -15176,11 +15427,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 _iter1429; - for (_iter1429 = this->partitionSpecs.begin(); _iter1429 != this->partitionSpecs.end(); ++_iter1429) + std::map ::const_iterator _iter1456; + for (_iter1456 = this->partitionSpecs.begin(); _iter1456 != this->partitionSpecs.end(); ++_iter1456) { - xfer += oprot->writeString(_iter1429->first); - xfer += oprot->writeString(_iter1429->second); + xfer += oprot->writeString(_iter1456->first); + xfer += oprot->writeString(_iter1456->second); } xfer += oprot->writeMapEnd(); } @@ -15220,11 +15471,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 _iter1430; - for (_iter1430 = (*(this->partitionSpecs)).begin(); _iter1430 != (*(this->partitionSpecs)).end(); ++_iter1430) + std::map ::const_iterator _iter1457; + for (_iter1457 = (*(this->partitionSpecs)).begin(); _iter1457 != (*(this->partitionSpecs)).end(); ++_iter1457) { - xfer += oprot->writeString(_iter1430->first); - xfer += oprot->writeString(_iter1430->second); + xfer += oprot->writeString(_iter1457->first); + xfer += oprot->writeString(_iter1457->second); } xfer += oprot->writeMapEnd(); } @@ -15469,17 +15720,17 @@ uint32_t ThriftHiveMetastore_exchange_partitions_args::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size1431; - ::apache::thrift::protocol::TType _ktype1432; - ::apache::thrift::protocol::TType _vtype1433; - xfer += iprot->readMapBegin(_ktype1432, _vtype1433, _size1431); - uint32_t _i1435; - for (_i1435 = 0; _i1435 < _size1431; ++_i1435) + uint32_t _size1458; + ::apache::thrift::protocol::TType _ktype1459; + ::apache::thrift::protocol::TType _vtype1460; + xfer += iprot->readMapBegin(_ktype1459, _vtype1460, _size1458); + uint32_t _i1462; + for (_i1462 = 0; _i1462 < _size1458; ++_i1462) { - std::string _key1436; - xfer += iprot->readString(_key1436); - std::string& _val1437 = this->partitionSpecs[_key1436]; - xfer += iprot->readString(_val1437); + std::string _key1463; + xfer += iprot->readString(_key1463); + std::string& _val1464 = this->partitionSpecs[_key1463]; + xfer += iprot->readString(_val1464); } xfer += iprot->readMapEnd(); } @@ -15540,11 +15791,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 _iter1438; - for (_iter1438 = this->partitionSpecs.begin(); _iter1438 != this->partitionSpecs.end(); ++_iter1438) + std::map ::const_iterator _iter1465; + for (_iter1465 = this->partitionSpecs.begin(); _iter1465 != this->partitionSpecs.end(); ++_iter1465) { - xfer += oprot->writeString(_iter1438->first); - xfer += oprot->writeString(_iter1438->second); + xfer += oprot->writeString(_iter1465->first); + xfer += oprot->writeString(_iter1465->second); } xfer += oprot->writeMapEnd(); } @@ -15584,11 +15835,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 _iter1439; - for (_iter1439 = (*(this->partitionSpecs)).begin(); _iter1439 != (*(this->partitionSpecs)).end(); ++_iter1439) + std::map ::const_iterator _iter1466; + for (_iter1466 = (*(this->partitionSpecs)).begin(); _iter1466 != (*(this->partitionSpecs)).end(); ++_iter1466) { - xfer += oprot->writeString(_iter1439->first); - xfer += oprot->writeString(_iter1439->second); + xfer += oprot->writeString(_iter1466->first); + xfer += oprot->writeString(_iter1466->second); } xfer += oprot->writeMapEnd(); } @@ -15645,14 +15896,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1440; - ::apache::thrift::protocol::TType _etype1443; - xfer += iprot->readListBegin(_etype1443, _size1440); - this->success.resize(_size1440); - uint32_t _i1444; - for (_i1444 = 0; _i1444 < _size1440; ++_i1444) + uint32_t _size1467; + ::apache::thrift::protocol::TType _etype1470; + xfer += iprot->readListBegin(_etype1470, _size1467); + this->success.resize(_size1467); + uint32_t _i1471; + for (_i1471 = 0; _i1471 < _size1467; ++_i1471) { - xfer += this->success[_i1444].read(iprot); + xfer += this->success[_i1471].read(iprot); } xfer += iprot->readListEnd(); } @@ -15715,10 +15966,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 _iter1445; - for (_iter1445 = this->success.begin(); _iter1445 != this->success.end(); ++_iter1445) + std::vector ::const_iterator _iter1472; + for (_iter1472 = this->success.begin(); _iter1472 != this->success.end(); ++_iter1472) { - xfer += (*_iter1445).write(oprot); + xfer += (*_iter1472).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15775,14 +16026,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1446; - ::apache::thrift::protocol::TType _etype1449; - xfer += iprot->readListBegin(_etype1449, _size1446); - (*(this->success)).resize(_size1446); - uint32_t _i1450; - for (_i1450 = 0; _i1450 < _size1446; ++_i1450) + uint32_t _size1473; + ::apache::thrift::protocol::TType _etype1476; + xfer += iprot->readListBegin(_etype1476, _size1473); + (*(this->success)).resize(_size1473); + uint32_t _i1477; + for (_i1477 = 0; _i1477 < _size1473; ++_i1477) { - xfer += (*(this->success))[_i1450].read(iprot); + xfer += (*(this->success))[_i1477].read(iprot); } xfer += iprot->readListEnd(); } @@ -15881,14 +16132,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 _size1451; - ::apache::thrift::protocol::TType _etype1454; - xfer += iprot->readListBegin(_etype1454, _size1451); - this->part_vals.resize(_size1451); - uint32_t _i1455; - for (_i1455 = 0; _i1455 < _size1451; ++_i1455) + uint32_t _size1478; + ::apache::thrift::protocol::TType _etype1481; + xfer += iprot->readListBegin(_etype1481, _size1478); + this->part_vals.resize(_size1478); + uint32_t _i1482; + for (_i1482 = 0; _i1482 < _size1478; ++_i1482) { - xfer += iprot->readString(this->part_vals[_i1455]); + xfer += iprot->readString(this->part_vals[_i1482]); } xfer += iprot->readListEnd(); } @@ -15909,14 +16160,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 _size1456; - ::apache::thrift::protocol::TType _etype1459; - xfer += iprot->readListBegin(_etype1459, _size1456); - this->group_names.resize(_size1456); - uint32_t _i1460; - for (_i1460 = 0; _i1460 < _size1456; ++_i1460) + uint32_t _size1483; + ::apache::thrift::protocol::TType _etype1486; + xfer += iprot->readListBegin(_etype1486, _size1483); + this->group_names.resize(_size1483); + uint32_t _i1487; + for (_i1487 = 0; _i1487 < _size1483; ++_i1487) { - xfer += iprot->readString(this->group_names[_i1460]); + xfer += iprot->readString(this->group_names[_i1487]); } xfer += iprot->readListEnd(); } @@ -15953,10 +16204,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 _iter1461; - for (_iter1461 = this->part_vals.begin(); _iter1461 != this->part_vals.end(); ++_iter1461) + std::vector ::const_iterator _iter1488; + for (_iter1488 = this->part_vals.begin(); _iter1488 != this->part_vals.end(); ++_iter1488) { - xfer += oprot->writeString((*_iter1461)); + xfer += oprot->writeString((*_iter1488)); } xfer += oprot->writeListEnd(); } @@ -15969,10 +16220,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 _iter1462; - for (_iter1462 = this->group_names.begin(); _iter1462 != this->group_names.end(); ++_iter1462) + std::vector ::const_iterator _iter1489; + for (_iter1489 = this->group_names.begin(); _iter1489 != this->group_names.end(); ++_iter1489) { - xfer += oprot->writeString((*_iter1462)); + xfer += oprot->writeString((*_iter1489)); } xfer += oprot->writeListEnd(); } @@ -16004,10 +16255,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 _iter1463; - for (_iter1463 = (*(this->part_vals)).begin(); _iter1463 != (*(this->part_vals)).end(); ++_iter1463) + std::vector ::const_iterator _iter1490; + for (_iter1490 = (*(this->part_vals)).begin(); _iter1490 != (*(this->part_vals)).end(); ++_iter1490) { - xfer += oprot->writeString((*_iter1463)); + xfer += oprot->writeString((*_iter1490)); } xfer += oprot->writeListEnd(); } @@ -16020,10 +16271,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 _iter1464; - for (_iter1464 = (*(this->group_names)).begin(); _iter1464 != (*(this->group_names)).end(); ++_iter1464) + std::vector ::const_iterator _iter1491; + for (_iter1491 = (*(this->group_names)).begin(); _iter1491 != (*(this->group_names)).end(); ++_iter1491) { - xfer += oprot->writeString((*_iter1464)); + xfer += oprot->writeString((*_iter1491)); } xfer += oprot->writeListEnd(); } @@ -16582,14 +16833,14 @@ uint32_t ThriftHiveMetastore_get_partitions_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1465; - ::apache::thrift::protocol::TType _etype1468; - xfer += iprot->readListBegin(_etype1468, _size1465); - this->success.resize(_size1465); - uint32_t _i1469; - for (_i1469 = 0; _i1469 < _size1465; ++_i1469) + uint32_t _size1492; + ::apache::thrift::protocol::TType _etype1495; + xfer += iprot->readListBegin(_etype1495, _size1492); + this->success.resize(_size1492); + uint32_t _i1496; + for (_i1496 = 0; _i1496 < _size1492; ++_i1496) { - xfer += this->success[_i1469].read(iprot); + xfer += this->success[_i1496].read(iprot); } xfer += iprot->readListEnd(); } @@ -16636,10 +16887,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 _iter1470; - for (_iter1470 = this->success.begin(); _iter1470 != this->success.end(); ++_iter1470) + std::vector ::const_iterator _iter1497; + for (_iter1497 = this->success.begin(); _iter1497 != this->success.end(); ++_iter1497) { - xfer += (*_iter1470).write(oprot); + xfer += (*_iter1497).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16688,14 +16939,14 @@ uint32_t ThriftHiveMetastore_get_partitions_presult::read(::apache::thrift::prot 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 += (*(this->success))[_i1475].read(iprot); + xfer += (*(this->success))[_i1502].read(iprot); } xfer += iprot->readListEnd(); } @@ -16794,14 +17045,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 _size1476; - ::apache::thrift::protocol::TType _etype1479; - xfer += iprot->readListBegin(_etype1479, _size1476); - this->group_names.resize(_size1476); - uint32_t _i1480; - for (_i1480 = 0; _i1480 < _size1476; ++_i1480) + uint32_t _size1503; + ::apache::thrift::protocol::TType _etype1506; + xfer += iprot->readListBegin(_etype1506, _size1503); + this->group_names.resize(_size1503); + uint32_t _i1507; + for (_i1507 = 0; _i1507 < _size1503; ++_i1507) { - xfer += iprot->readString(this->group_names[_i1480]); + xfer += iprot->readString(this->group_names[_i1507]); } xfer += iprot->readListEnd(); } @@ -16846,10 +17097,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 _iter1481; - for (_iter1481 = this->group_names.begin(); _iter1481 != this->group_names.end(); ++_iter1481) + std::vector ::const_iterator _iter1508; + for (_iter1508 = this->group_names.begin(); _iter1508 != this->group_names.end(); ++_iter1508) { - xfer += oprot->writeString((*_iter1481)); + xfer += oprot->writeString((*_iter1508)); } xfer += oprot->writeListEnd(); } @@ -16889,10 +17140,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 _iter1482; - for (_iter1482 = (*(this->group_names)).begin(); _iter1482 != (*(this->group_names)).end(); ++_iter1482) + std::vector ::const_iterator _iter1509; + for (_iter1509 = (*(this->group_names)).begin(); _iter1509 != (*(this->group_names)).end(); ++_iter1509) { - xfer += oprot->writeString((*_iter1482)); + xfer += oprot->writeString((*_iter1509)); } xfer += oprot->writeListEnd(); } @@ -16933,14 +17184,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1483; - ::apache::thrift::protocol::TType _etype1486; - xfer += iprot->readListBegin(_etype1486, _size1483); - this->success.resize(_size1483); - uint32_t _i1487; - for (_i1487 = 0; _i1487 < _size1483; ++_i1487) + uint32_t _size1510; + ::apache::thrift::protocol::TType _etype1513; + xfer += iprot->readListBegin(_etype1513, _size1510); + this->success.resize(_size1510); + uint32_t _i1514; + for (_i1514 = 0; _i1514 < _size1510; ++_i1514) { - xfer += this->success[_i1487].read(iprot); + xfer += this->success[_i1514].read(iprot); } xfer += iprot->readListEnd(); } @@ -16987,10 +17238,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 _iter1488; - for (_iter1488 = this->success.begin(); _iter1488 != this->success.end(); ++_iter1488) + std::vector ::const_iterator _iter1515; + for (_iter1515 = this->success.begin(); _iter1515 != this->success.end(); ++_iter1515) { - xfer += (*_iter1488).write(oprot); + xfer += (*_iter1515).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17039,14 +17290,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1489; - ::apache::thrift::protocol::TType _etype1492; - xfer += iprot->readListBegin(_etype1492, _size1489); - (*(this->success)).resize(_size1489); - uint32_t _i1493; - for (_i1493 = 0; _i1493 < _size1489; ++_i1493) + uint32_t _size1516; + ::apache::thrift::protocol::TType _etype1519; + xfer += iprot->readListBegin(_etype1519, _size1516); + (*(this->success)).resize(_size1516); + uint32_t _i1520; + for (_i1520 = 0; _i1520 < _size1516; ++_i1520) { - xfer += (*(this->success))[_i1493].read(iprot); + xfer += (*(this->success))[_i1520].read(iprot); } xfer += iprot->readListEnd(); } @@ -17224,14 +17475,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_result::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1494; - ::apache::thrift::protocol::TType _etype1497; - xfer += iprot->readListBegin(_etype1497, _size1494); - this->success.resize(_size1494); - uint32_t _i1498; - for (_i1498 = 0; _i1498 < _size1494; ++_i1498) + uint32_t _size1521; + ::apache::thrift::protocol::TType _etype1524; + xfer += iprot->readListBegin(_etype1524, _size1521); + this->success.resize(_size1521); + uint32_t _i1525; + for (_i1525 = 0; _i1525 < _size1521; ++_i1525) { - xfer += this->success[_i1498].read(iprot); + xfer += this->success[_i1525].read(iprot); } xfer += iprot->readListEnd(); } @@ -17278,10 +17529,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 _iter1499; - for (_iter1499 = this->success.begin(); _iter1499 != this->success.end(); ++_iter1499) + std::vector ::const_iterator _iter1526; + for (_iter1526 = this->success.begin(); _iter1526 != this->success.end(); ++_iter1526) { - xfer += (*_iter1499).write(oprot); + xfer += (*_iter1526).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17330,14 +17581,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_presult::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1500; - ::apache::thrift::protocol::TType _etype1503; - xfer += iprot->readListBegin(_etype1503, _size1500); - (*(this->success)).resize(_size1500); - uint32_t _i1504; - for (_i1504 = 0; _i1504 < _size1500; ++_i1504) + uint32_t _size1527; + ::apache::thrift::protocol::TType _etype1530; + xfer += iprot->readListBegin(_etype1530, _size1527); + (*(this->success)).resize(_size1527); + uint32_t _i1531; + for (_i1531 = 0; _i1531 < _size1527; ++_i1531) { - xfer += (*(this->success))[_i1504].read(iprot); + xfer += (*(this->success))[_i1531].read(iprot); } xfer += iprot->readListEnd(); } @@ -17515,14 +17766,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1505; - ::apache::thrift::protocol::TType _etype1508; - xfer += iprot->readListBegin(_etype1508, _size1505); - this->success.resize(_size1505); - uint32_t _i1509; - for (_i1509 = 0; _i1509 < _size1505; ++_i1509) + uint32_t _size1532; + ::apache::thrift::protocol::TType _etype1535; + xfer += iprot->readListBegin(_etype1535, _size1532); + this->success.resize(_size1532); + uint32_t _i1536; + for (_i1536 = 0; _i1536 < _size1532; ++_i1536) { - xfer += iprot->readString(this->success[_i1509]); + xfer += iprot->readString(this->success[_i1536]); } xfer += iprot->readListEnd(); } @@ -17569,10 +17820,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 _iter1510; - for (_iter1510 = this->success.begin(); _iter1510 != this->success.end(); ++_iter1510) + std::vector ::const_iterator _iter1537; + for (_iter1537 = this->success.begin(); _iter1537 != this->success.end(); ++_iter1537) { - xfer += oprot->writeString((*_iter1510)); + xfer += oprot->writeString((*_iter1537)); } xfer += oprot->writeListEnd(); } @@ -17621,14 +17872,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift: 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 += iprot->readString((*(this->success))[_i1515]); + xfer += iprot->readString((*(this->success))[_i1542]); } xfer += iprot->readListEnd(); } @@ -17938,14 +18189,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 _size1516; - ::apache::thrift::protocol::TType _etype1519; - xfer += iprot->readListBegin(_etype1519, _size1516); - this->part_vals.resize(_size1516); - uint32_t _i1520; - for (_i1520 = 0; _i1520 < _size1516; ++_i1520) + 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) { - xfer += iprot->readString(this->part_vals[_i1520]); + xfer += iprot->readString(this->part_vals[_i1547]); } xfer += iprot->readListEnd(); } @@ -17990,10 +18241,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 _iter1521; - for (_iter1521 = this->part_vals.begin(); _iter1521 != this->part_vals.end(); ++_iter1521) + std::vector ::const_iterator _iter1548; + for (_iter1548 = this->part_vals.begin(); _iter1548 != this->part_vals.end(); ++_iter1548) { - xfer += oprot->writeString((*_iter1521)); + xfer += oprot->writeString((*_iter1548)); } xfer += oprot->writeListEnd(); } @@ -18029,10 +18280,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 _iter1522; - for (_iter1522 = (*(this->part_vals)).begin(); _iter1522 != (*(this->part_vals)).end(); ++_iter1522) + std::vector ::const_iterator _iter1549; + for (_iter1549 = (*(this->part_vals)).begin(); _iter1549 != (*(this->part_vals)).end(); ++_iter1549) { - xfer += oprot->writeString((*_iter1522)); + xfer += oprot->writeString((*_iter1549)); } xfer += oprot->writeListEnd(); } @@ -18077,14 +18328,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1523; - ::apache::thrift::protocol::TType _etype1526; - xfer += iprot->readListBegin(_etype1526, _size1523); - this->success.resize(_size1523); - uint32_t _i1527; - for (_i1527 = 0; _i1527 < _size1523; ++_i1527) + 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) { - xfer += this->success[_i1527].read(iprot); + xfer += this->success[_i1554].read(iprot); } xfer += iprot->readListEnd(); } @@ -18131,10 +18382,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 _iter1528; - for (_iter1528 = this->success.begin(); _iter1528 != this->success.end(); ++_iter1528) + std::vector ::const_iterator _iter1555; + for (_iter1555 = this->success.begin(); _iter1555 != this->success.end(); ++_iter1555) { - xfer += (*_iter1528).write(oprot); + xfer += (*_iter1555).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18183,14 +18434,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1529; - ::apache::thrift::protocol::TType _etype1532; - xfer += iprot->readListBegin(_etype1532, _size1529); - (*(this->success)).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->success)).resize(_size1556); + uint32_t _i1560; + for (_i1560 = 0; _i1560 < _size1556; ++_i1560) { - xfer += (*(this->success))[_i1533].read(iprot); + xfer += (*(this->success))[_i1560].read(iprot); } xfer += iprot->readListEnd(); } @@ -18273,14 +18524,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 _size1534; - ::apache::thrift::protocol::TType _etype1537; - xfer += iprot->readListBegin(_etype1537, _size1534); - this->part_vals.resize(_size1534); - uint32_t _i1538; - for (_i1538 = 0; _i1538 < _size1534; ++_i1538) + uint32_t _size1561; + ::apache::thrift::protocol::TType _etype1564; + xfer += iprot->readListBegin(_etype1564, _size1561); + this->part_vals.resize(_size1561); + uint32_t _i1565; + for (_i1565 = 0; _i1565 < _size1561; ++_i1565) { - xfer += iprot->readString(this->part_vals[_i1538]); + xfer += iprot->readString(this->part_vals[_i1565]); } xfer += iprot->readListEnd(); } @@ -18309,14 +18560,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 _size1539; - ::apache::thrift::protocol::TType _etype1542; - xfer += iprot->readListBegin(_etype1542, _size1539); - this->group_names.resize(_size1539); - uint32_t _i1543; - for (_i1543 = 0; _i1543 < _size1539; ++_i1543) + uint32_t _size1566; + ::apache::thrift::protocol::TType _etype1569; + xfer += iprot->readListBegin(_etype1569, _size1566); + this->group_names.resize(_size1566); + uint32_t _i1570; + for (_i1570 = 0; _i1570 < _size1566; ++_i1570) { - xfer += iprot->readString(this->group_names[_i1543]); + xfer += iprot->readString(this->group_names[_i1570]); } xfer += iprot->readListEnd(); } @@ -18353,10 +18604,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 _iter1544; - for (_iter1544 = this->part_vals.begin(); _iter1544 != this->part_vals.end(); ++_iter1544) + std::vector ::const_iterator _iter1571; + for (_iter1571 = this->part_vals.begin(); _iter1571 != this->part_vals.end(); ++_iter1571) { - xfer += oprot->writeString((*_iter1544)); + xfer += oprot->writeString((*_iter1571)); } xfer += oprot->writeListEnd(); } @@ -18373,10 +18624,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 _iter1545; - for (_iter1545 = this->group_names.begin(); _iter1545 != this->group_names.end(); ++_iter1545) + std::vector ::const_iterator _iter1572; + for (_iter1572 = this->group_names.begin(); _iter1572 != this->group_names.end(); ++_iter1572) { - xfer += oprot->writeString((*_iter1545)); + xfer += oprot->writeString((*_iter1572)); } xfer += oprot->writeListEnd(); } @@ -18408,10 +18659,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 _iter1546; - for (_iter1546 = (*(this->part_vals)).begin(); _iter1546 != (*(this->part_vals)).end(); ++_iter1546) + std::vector ::const_iterator _iter1573; + for (_iter1573 = (*(this->part_vals)).begin(); _iter1573 != (*(this->part_vals)).end(); ++_iter1573) { - xfer += oprot->writeString((*_iter1546)); + xfer += oprot->writeString((*_iter1573)); } xfer += oprot->writeListEnd(); } @@ -18428,10 +18679,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 _iter1547; - for (_iter1547 = (*(this->group_names)).begin(); _iter1547 != (*(this->group_names)).end(); ++_iter1547) + std::vector ::const_iterator _iter1574; + for (_iter1574 = (*(this->group_names)).begin(); _iter1574 != (*(this->group_names)).end(); ++_iter1574) { - xfer += oprot->writeString((*_iter1547)); + xfer += oprot->writeString((*_iter1574)); } xfer += oprot->writeListEnd(); } @@ -18472,14 +18723,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1548; - ::apache::thrift::protocol::TType _etype1551; - xfer += iprot->readListBegin(_etype1551, _size1548); - this->success.resize(_size1548); - uint32_t _i1552; - for (_i1552 = 0; _i1552 < _size1548; ++_i1552) + uint32_t _size1575; + ::apache::thrift::protocol::TType _etype1578; + xfer += iprot->readListBegin(_etype1578, _size1575); + this->success.resize(_size1575); + uint32_t _i1579; + for (_i1579 = 0; _i1579 < _size1575; ++_i1579) { - xfer += this->success[_i1552].read(iprot); + xfer += this->success[_i1579].read(iprot); } xfer += iprot->readListEnd(); } @@ -18526,10 +18777,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 _iter1553; - for (_iter1553 = this->success.begin(); _iter1553 != this->success.end(); ++_iter1553) + std::vector ::const_iterator _iter1580; + for (_iter1580 = this->success.begin(); _iter1580 != this->success.end(); ++_iter1580) { - xfer += (*_iter1553).write(oprot); + xfer += (*_iter1580).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18578,14 +18829,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_presult::read(::apache: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1554; - ::apache::thrift::protocol::TType _etype1557; - xfer += iprot->readListBegin(_etype1557, _size1554); - (*(this->success)).resize(_size1554); - uint32_t _i1558; - for (_i1558 = 0; _i1558 < _size1554; ++_i1558) + uint32_t _size1581; + ::apache::thrift::protocol::TType _etype1584; + xfer += iprot->readListBegin(_etype1584, _size1581); + (*(this->success)).resize(_size1581); + uint32_t _i1585; + for (_i1585 = 0; _i1585 < _size1581; ++_i1585) { - xfer += (*(this->success))[_i1558].read(iprot); + xfer += (*(this->success))[_i1585].read(iprot); } xfer += iprot->readListEnd(); } @@ -18668,14 +18919,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 _size1559; - ::apache::thrift::protocol::TType _etype1562; - xfer += iprot->readListBegin(_etype1562, _size1559); - this->part_vals.resize(_size1559); - uint32_t _i1563; - for (_i1563 = 0; _i1563 < _size1559; ++_i1563) + uint32_t _size1586; + ::apache::thrift::protocol::TType _etype1589; + xfer += iprot->readListBegin(_etype1589, _size1586); + this->part_vals.resize(_size1586); + uint32_t _i1590; + for (_i1590 = 0; _i1590 < _size1586; ++_i1590) { - xfer += iprot->readString(this->part_vals[_i1563]); + xfer += iprot->readString(this->part_vals[_i1590]); } xfer += iprot->readListEnd(); } @@ -18720,10 +18971,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 _iter1564; - for (_iter1564 = this->part_vals.begin(); _iter1564 != this->part_vals.end(); ++_iter1564) + std::vector ::const_iterator _iter1591; + for (_iter1591 = this->part_vals.begin(); _iter1591 != this->part_vals.end(); ++_iter1591) { - xfer += oprot->writeString((*_iter1564)); + xfer += oprot->writeString((*_iter1591)); } xfer += oprot->writeListEnd(); } @@ -18759,10 +19010,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 _iter1565; - for (_iter1565 = (*(this->part_vals)).begin(); _iter1565 != (*(this->part_vals)).end(); ++_iter1565) + std::vector ::const_iterator _iter1592; + for (_iter1592 = (*(this->part_vals)).begin(); _iter1592 != (*(this->part_vals)).end(); ++_iter1592) { - xfer += oprot->writeString((*_iter1565)); + xfer += oprot->writeString((*_iter1592)); } xfer += oprot->writeListEnd(); } @@ -18807,14 +19058,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1566; - ::apache::thrift::protocol::TType _etype1569; - xfer += iprot->readListBegin(_etype1569, _size1566); - this->success.resize(_size1566); - uint32_t _i1570; - for (_i1570 = 0; _i1570 < _size1566; ++_i1570) + uint32_t _size1593; + ::apache::thrift::protocol::TType _etype1596; + xfer += iprot->readListBegin(_etype1596, _size1593); + this->success.resize(_size1593); + uint32_t _i1597; + for (_i1597 = 0; _i1597 < _size1593; ++_i1597) { - xfer += iprot->readString(this->success[_i1570]); + xfer += iprot->readString(this->success[_i1597]); } xfer += iprot->readListEnd(); } @@ -18861,10 +19112,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 _iter1571; - for (_iter1571 = this->success.begin(); _iter1571 != this->success.end(); ++_iter1571) + std::vector ::const_iterator _iter1598; + for (_iter1598 = this->success.begin(); _iter1598 != this->success.end(); ++_iter1598) { - xfer += oprot->writeString((*_iter1571)); + xfer += oprot->writeString((*_iter1598)); } xfer += oprot->writeListEnd(); } @@ -18913,14 +19164,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1572; - ::apache::thrift::protocol::TType _etype1575; - xfer += iprot->readListBegin(_etype1575, _size1572); - (*(this->success)).resize(_size1572); - uint32_t _i1576; - for (_i1576 = 0; _i1576 < _size1572; ++_i1576) + uint32_t _size1599; + ::apache::thrift::protocol::TType _etype1602; + xfer += iprot->readListBegin(_etype1602, _size1599); + (*(this->success)).resize(_size1599); + uint32_t _i1603; + for (_i1603 = 0; _i1603 < _size1599; ++_i1603) { - xfer += iprot->readString((*(this->success))[_i1576]); + xfer += iprot->readString((*(this->success))[_i1603]); } xfer += iprot->readListEnd(); } @@ -19114,14 +19365,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - 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) + uint32_t _size1604; + ::apache::thrift::protocol::TType _etype1607; + xfer += iprot->readListBegin(_etype1607, _size1604); + this->success.resize(_size1604); + uint32_t _i1608; + for (_i1608 = 0; _i1608 < _size1604; ++_i1608) { - xfer += this->success[_i1581].read(iprot); + xfer += this->success[_i1608].read(iprot); } xfer += iprot->readListEnd(); } @@ -19168,10 +19419,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 _iter1582; - for (_iter1582 = this->success.begin(); _iter1582 != this->success.end(); ++_iter1582) + std::vector ::const_iterator _iter1609; + for (_iter1609 = this->success.begin(); _iter1609 != this->success.end(); ++_iter1609) { - xfer += (*_iter1582).write(oprot); + xfer += (*_iter1609).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19220,14 +19471,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - 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) + uint32_t _size1610; + ::apache::thrift::protocol::TType _etype1613; + xfer += iprot->readListBegin(_etype1613, _size1610); + (*(this->success)).resize(_size1610); + uint32_t _i1614; + for (_i1614 = 0; _i1614 < _size1610; ++_i1614) { - xfer += (*(this->success))[_i1587].read(iprot); + xfer += (*(this->success))[_i1614].read(iprot); } xfer += iprot->readListEnd(); } @@ -19421,14 +19672,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 _size1588; - ::apache::thrift::protocol::TType _etype1591; - xfer += iprot->readListBegin(_etype1591, _size1588); - this->success.resize(_size1588); - uint32_t _i1592; - for (_i1592 = 0; _i1592 < _size1588; ++_i1592) + uint32_t _size1615; + ::apache::thrift::protocol::TType _etype1618; + xfer += iprot->readListBegin(_etype1618, _size1615); + this->success.resize(_size1615); + uint32_t _i1619; + for (_i1619 = 0; _i1619 < _size1615; ++_i1619) { - xfer += this->success[_i1592].read(iprot); + xfer += this->success[_i1619].read(iprot); } xfer += iprot->readListEnd(); } @@ -19475,10 +19726,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 _iter1593; - for (_iter1593 = this->success.begin(); _iter1593 != this->success.end(); ++_iter1593) + std::vector ::const_iterator _iter1620; + for (_iter1620 = this->success.begin(); _iter1620 != this->success.end(); ++_iter1620) { - xfer += (*_iter1593).write(oprot); + xfer += (*_iter1620).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19527,14 +19778,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 _size1594; - ::apache::thrift::protocol::TType _etype1597; - xfer += iprot->readListBegin(_etype1597, _size1594); - (*(this->success)).resize(_size1594); - uint32_t _i1598; - for (_i1598 = 0; _i1598 < _size1594; ++_i1598) + uint32_t _size1621; + ::apache::thrift::protocol::TType _etype1624; + xfer += iprot->readListBegin(_etype1624, _size1621); + (*(this->success)).resize(_size1621); + uint32_t _i1625; + for (_i1625 = 0; _i1625 < _size1621; ++_i1625) { - xfer += (*(this->success))[_i1598].read(iprot); + xfer += (*(this->success))[_i1625].read(iprot); } xfer += iprot->readListEnd(); } @@ -20103,14 +20354,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size1599; - ::apache::thrift::protocol::TType _etype1602; - xfer += iprot->readListBegin(_etype1602, _size1599); - this->names.resize(_size1599); - uint32_t _i1603; - for (_i1603 = 0; _i1603 < _size1599; ++_i1603) + uint32_t _size1626; + ::apache::thrift::protocol::TType _etype1629; + xfer += iprot->readListBegin(_etype1629, _size1626); + this->names.resize(_size1626); + uint32_t _i1630; + for (_i1630 = 0; _i1630 < _size1626; ++_i1630) { - xfer += iprot->readString(this->names[_i1603]); + xfer += iprot->readString(this->names[_i1630]); } xfer += iprot->readListEnd(); } @@ -20147,10 +20398,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 _iter1604; - for (_iter1604 = this->names.begin(); _iter1604 != this->names.end(); ++_iter1604) + std::vector ::const_iterator _iter1631; + for (_iter1631 = this->names.begin(); _iter1631 != this->names.end(); ++_iter1631) { - xfer += oprot->writeString((*_iter1604)); + xfer += oprot->writeString((*_iter1631)); } xfer += oprot->writeListEnd(); } @@ -20182,10 +20433,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 _iter1605; - for (_iter1605 = (*(this->names)).begin(); _iter1605 != (*(this->names)).end(); ++_iter1605) + std::vector ::const_iterator _iter1632; + for (_iter1632 = (*(this->names)).begin(); _iter1632 != (*(this->names)).end(); ++_iter1632) { - xfer += oprot->writeString((*_iter1605)); + xfer += oprot->writeString((*_iter1632)); } xfer += oprot->writeListEnd(); } @@ -20226,14 +20477,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1606; - ::apache::thrift::protocol::TType _etype1609; - xfer += iprot->readListBegin(_etype1609, _size1606); - this->success.resize(_size1606); - uint32_t _i1610; - for (_i1610 = 0; _i1610 < _size1606; ++_i1610) + uint32_t _size1633; + ::apache::thrift::protocol::TType _etype1636; + xfer += iprot->readListBegin(_etype1636, _size1633); + this->success.resize(_size1633); + uint32_t _i1637; + for (_i1637 = 0; _i1637 < _size1633; ++_i1637) { - xfer += this->success[_i1610].read(iprot); + xfer += this->success[_i1637].read(iprot); } xfer += iprot->readListEnd(); } @@ -20280,10 +20531,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 _iter1611; - for (_iter1611 = this->success.begin(); _iter1611 != this->success.end(); ++_iter1611) + std::vector ::const_iterator _iter1638; + for (_iter1638 = this->success.begin(); _iter1638 != this->success.end(); ++_iter1638) { - xfer += (*_iter1611).write(oprot); + xfer += (*_iter1638).write(oprot); } xfer += oprot->writeListEnd(); } @@ -20332,14 +20583,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_presult::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1612; - ::apache::thrift::protocol::TType _etype1615; - xfer += iprot->readListBegin(_etype1615, _size1612); - (*(this->success)).resize(_size1612); - uint32_t _i1616; - for (_i1616 = 0; _i1616 < _size1612; ++_i1616) + uint32_t _size1639; + ::apache::thrift::protocol::TType _etype1642; + xfer += iprot->readListBegin(_etype1642, _size1639); + (*(this->success)).resize(_size1639); + uint32_t _i1643; + for (_i1643 = 0; _i1643 < _size1639; ++_i1643) { - xfer += (*(this->success))[_i1616].read(iprot); + xfer += (*(this->success))[_i1643].read(iprot); } xfer += iprot->readListEnd(); } @@ -20661,14 +20912,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1617; - ::apache::thrift::protocol::TType _etype1620; - xfer += iprot->readListBegin(_etype1620, _size1617); - this->new_parts.resize(_size1617); - uint32_t _i1621; - for (_i1621 = 0; _i1621 < _size1617; ++_i1621) + uint32_t _size1644; + ::apache::thrift::protocol::TType _etype1647; + xfer += iprot->readListBegin(_etype1647, _size1644); + this->new_parts.resize(_size1644); + uint32_t _i1648; + for (_i1648 = 0; _i1648 < _size1644; ++_i1648) { - xfer += this->new_parts[_i1621].read(iprot); + xfer += this->new_parts[_i1648].read(iprot); } xfer += iprot->readListEnd(); } @@ -20705,10 +20956,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 _iter1622; - for (_iter1622 = this->new_parts.begin(); _iter1622 != this->new_parts.end(); ++_iter1622) + std::vector ::const_iterator _iter1649; + for (_iter1649 = this->new_parts.begin(); _iter1649 != this->new_parts.end(); ++_iter1649) { - xfer += (*_iter1622).write(oprot); + xfer += (*_iter1649).write(oprot); } xfer += oprot->writeListEnd(); } @@ -20740,10 +20991,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 _iter1623; - for (_iter1623 = (*(this->new_parts)).begin(); _iter1623 != (*(this->new_parts)).end(); ++_iter1623) + std::vector ::const_iterator _iter1650; + for (_iter1650 = (*(this->new_parts)).begin(); _iter1650 != (*(this->new_parts)).end(); ++_iter1650) { - xfer += (*_iter1623).write(oprot); + xfer += (*_iter1650).write(oprot); } xfer += oprot->writeListEnd(); } @@ -20928,14 +21179,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_with_environment_context_args::rea if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1624; - ::apache::thrift::protocol::TType _etype1627; - xfer += iprot->readListBegin(_etype1627, _size1624); - this->new_parts.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->new_parts.resize(_size1651); + uint32_t _i1655; + for (_i1655 = 0; _i1655 < _size1651; ++_i1655) { - xfer += this->new_parts[_i1628].read(iprot); + xfer += this->new_parts[_i1655].read(iprot); } xfer += iprot->readListEnd(); } @@ -20980,10 +21231,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 _iter1629; - for (_iter1629 = this->new_parts.begin(); _iter1629 != this->new_parts.end(); ++_iter1629) + std::vector ::const_iterator _iter1656; + for (_iter1656 = this->new_parts.begin(); _iter1656 != this->new_parts.end(); ++_iter1656) { - xfer += (*_iter1629).write(oprot); + xfer += (*_iter1656).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21019,10 +21270,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 _iter1630; - for (_iter1630 = (*(this->new_parts)).begin(); _iter1630 != (*(this->new_parts)).end(); ++_iter1630) + std::vector ::const_iterator _iter1657; + for (_iter1657 = (*(this->new_parts)).begin(); _iter1657 != (*(this->new_parts)).end(); ++_iter1657) { - xfer += (*_iter1630).write(oprot); + xfer += (*_iter1657).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21466,14 +21717,14 @@ uint32_t ThriftHiveMetastore_rename_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1631; - ::apache::thrift::protocol::TType _etype1634; - xfer += iprot->readListBegin(_etype1634, _size1631); - this->part_vals.resize(_size1631); - uint32_t _i1635; - for (_i1635 = 0; _i1635 < _size1631; ++_i1635) + uint32_t _size1658; + ::apache::thrift::protocol::TType _etype1661; + xfer += iprot->readListBegin(_etype1661, _size1658); + this->part_vals.resize(_size1658); + uint32_t _i1662; + for (_i1662 = 0; _i1662 < _size1658; ++_i1662) { - xfer += iprot->readString(this->part_vals[_i1635]); + xfer += iprot->readString(this->part_vals[_i1662]); } xfer += iprot->readListEnd(); } @@ -21518,10 +21769,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 _iter1636; - for (_iter1636 = this->part_vals.begin(); _iter1636 != this->part_vals.end(); ++_iter1636) + std::vector ::const_iterator _iter1663; + for (_iter1663 = this->part_vals.begin(); _iter1663 != this->part_vals.end(); ++_iter1663) { - xfer += oprot->writeString((*_iter1636)); + xfer += oprot->writeString((*_iter1663)); } xfer += oprot->writeListEnd(); } @@ -21557,10 +21808,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 _iter1637; - for (_iter1637 = (*(this->part_vals)).begin(); _iter1637 != (*(this->part_vals)).end(); ++_iter1637) + std::vector ::const_iterator _iter1664; + for (_iter1664 = (*(this->part_vals)).begin(); _iter1664 != (*(this->part_vals)).end(); ++_iter1664) { - xfer += oprot->writeString((*_iter1637)); + xfer += oprot->writeString((*_iter1664)); } xfer += oprot->writeListEnd(); } @@ -21733,14 +21984,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 _size1638; - ::apache::thrift::protocol::TType _etype1641; - xfer += iprot->readListBegin(_etype1641, _size1638); - this->part_vals.resize(_size1638); - uint32_t _i1642; - for (_i1642 = 0; _i1642 < _size1638; ++_i1642) + uint32_t _size1665; + ::apache::thrift::protocol::TType _etype1668; + xfer += iprot->readListBegin(_etype1668, _size1665); + this->part_vals.resize(_size1665); + uint32_t _i1669; + for (_i1669 = 0; _i1669 < _size1665; ++_i1669) { - xfer += iprot->readString(this->part_vals[_i1642]); + xfer += iprot->readString(this->part_vals[_i1669]); } xfer += iprot->readListEnd(); } @@ -21777,10 +22028,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 _iter1643; - for (_iter1643 = this->part_vals.begin(); _iter1643 != this->part_vals.end(); ++_iter1643) + std::vector ::const_iterator _iter1670; + for (_iter1670 = this->part_vals.begin(); _iter1670 != this->part_vals.end(); ++_iter1670) { - xfer += oprot->writeString((*_iter1643)); + xfer += oprot->writeString((*_iter1670)); } xfer += oprot->writeListEnd(); } @@ -21808,10 +22059,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 _iter1644; - for (_iter1644 = (*(this->part_vals)).begin(); _iter1644 != (*(this->part_vals)).end(); ++_iter1644) + std::vector ::const_iterator _iter1671; + for (_iter1671 = (*(this->part_vals)).begin(); _iter1671 != (*(this->part_vals)).end(); ++_iter1671) { - xfer += oprot->writeString((*_iter1644)); + xfer += oprot->writeString((*_iter1671)); } xfer += oprot->writeListEnd(); } @@ -22286,14 +22537,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1645; - ::apache::thrift::protocol::TType _etype1648; - xfer += iprot->readListBegin(_etype1648, _size1645); - this->success.resize(_size1645); - uint32_t _i1649; - for (_i1649 = 0; _i1649 < _size1645; ++_i1649) + uint32_t _size1672; + ::apache::thrift::protocol::TType _etype1675; + xfer += iprot->readListBegin(_etype1675, _size1672); + this->success.resize(_size1672); + uint32_t _i1676; + for (_i1676 = 0; _i1676 < _size1672; ++_i1676) { - xfer += iprot->readString(this->success[_i1649]); + xfer += iprot->readString(this->success[_i1676]); } xfer += iprot->readListEnd(); } @@ -22332,10 +22583,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 _iter1650; - for (_iter1650 = this->success.begin(); _iter1650 != this->success.end(); ++_iter1650) + std::vector ::const_iterator _iter1677; + for (_iter1677 = this->success.begin(); _iter1677 != this->success.end(); ++_iter1677) { - xfer += oprot->writeString((*_iter1650)); + xfer += oprot->writeString((*_iter1677)); } xfer += oprot->writeListEnd(); } @@ -22380,14 +22631,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1651; - ::apache::thrift::protocol::TType _etype1654; - xfer += iprot->readListBegin(_etype1654, _size1651); - (*(this->success)).resize(_size1651); - uint32_t _i1655; - for (_i1655 = 0; _i1655 < _size1651; ++_i1655) + uint32_t _size1678; + ::apache::thrift::protocol::TType _etype1681; + xfer += iprot->readListBegin(_etype1681, _size1678); + (*(this->success)).resize(_size1678); + uint32_t _i1682; + for (_i1682 = 0; _i1682 < _size1678; ++_i1682) { - xfer += iprot->readString((*(this->success))[_i1655]); + xfer += iprot->readString((*(this->success))[_i1682]); } xfer += iprot->readListEnd(); } @@ -22525,17 +22776,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size1656; - ::apache::thrift::protocol::TType _ktype1657; - ::apache::thrift::protocol::TType _vtype1658; - xfer += iprot->readMapBegin(_ktype1657, _vtype1658, _size1656); - uint32_t _i1660; - for (_i1660 = 0; _i1660 < _size1656; ++_i1660) + uint32_t _size1683; + ::apache::thrift::protocol::TType _ktype1684; + ::apache::thrift::protocol::TType _vtype1685; + xfer += iprot->readMapBegin(_ktype1684, _vtype1685, _size1683); + uint32_t _i1687; + for (_i1687 = 0; _i1687 < _size1683; ++_i1687) { - std::string _key1661; - xfer += iprot->readString(_key1661); - std::string& _val1662 = this->success[_key1661]; - xfer += iprot->readString(_val1662); + std::string _key1688; + xfer += iprot->readString(_key1688); + std::string& _val1689 = this->success[_key1688]; + xfer += iprot->readString(_val1689); } xfer += iprot->readMapEnd(); } @@ -22574,11 +22825,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 _iter1663; - for (_iter1663 = this->success.begin(); _iter1663 != this->success.end(); ++_iter1663) + std::map ::const_iterator _iter1690; + for (_iter1690 = this->success.begin(); _iter1690 != this->success.end(); ++_iter1690) { - xfer += oprot->writeString(_iter1663->first); - xfer += oprot->writeString(_iter1663->second); + xfer += oprot->writeString(_iter1690->first); + xfer += oprot->writeString(_iter1690->second); } xfer += oprot->writeMapEnd(); } @@ -22623,17 +22874,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size1664; - ::apache::thrift::protocol::TType _ktype1665; - ::apache::thrift::protocol::TType _vtype1666; - xfer += iprot->readMapBegin(_ktype1665, _vtype1666, _size1664); - uint32_t _i1668; - for (_i1668 = 0; _i1668 < _size1664; ++_i1668) + uint32_t _size1691; + ::apache::thrift::protocol::TType _ktype1692; + ::apache::thrift::protocol::TType _vtype1693; + xfer += iprot->readMapBegin(_ktype1692, _vtype1693, _size1691); + uint32_t _i1695; + for (_i1695 = 0; _i1695 < _size1691; ++_i1695) { - std::string _key1669; - xfer += iprot->readString(_key1669); - std::string& _val1670 = (*(this->success))[_key1669]; - xfer += iprot->readString(_val1670); + std::string _key1696; + xfer += iprot->readString(_key1696); + std::string& _val1697 = (*(this->success))[_key1696]; + xfer += iprot->readString(_val1697); } xfer += iprot->readMapEnd(); } @@ -22708,17 +22959,17 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1671; - ::apache::thrift::protocol::TType _ktype1672; - ::apache::thrift::protocol::TType _vtype1673; - xfer += iprot->readMapBegin(_ktype1672, _vtype1673, _size1671); - uint32_t _i1675; - for (_i1675 = 0; _i1675 < _size1671; ++_i1675) + uint32_t _size1698; + ::apache::thrift::protocol::TType _ktype1699; + ::apache::thrift::protocol::TType _vtype1700; + xfer += iprot->readMapBegin(_ktype1699, _vtype1700, _size1698); + uint32_t _i1702; + for (_i1702 = 0; _i1702 < _size1698; ++_i1702) { - std::string _key1676; - xfer += iprot->readString(_key1676); - std::string& _val1677 = this->part_vals[_key1676]; - xfer += iprot->readString(_val1677); + std::string _key1703; + xfer += iprot->readString(_key1703); + std::string& _val1704 = this->part_vals[_key1703]; + xfer += iprot->readString(_val1704); } xfer += iprot->readMapEnd(); } @@ -22729,9 +22980,9 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1678; - xfer += iprot->readI32(ecast1678); - this->eventType = (PartitionEventType::type)ecast1678; + int32_t ecast1705; + xfer += iprot->readI32(ecast1705); + this->eventType = (PartitionEventType::type)ecast1705; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -22765,11 +23016,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 _iter1679; - for (_iter1679 = this->part_vals.begin(); _iter1679 != this->part_vals.end(); ++_iter1679) + std::map ::const_iterator _iter1706; + for (_iter1706 = this->part_vals.begin(); _iter1706 != this->part_vals.end(); ++_iter1706) { - xfer += oprot->writeString(_iter1679->first); - xfer += oprot->writeString(_iter1679->second); + xfer += oprot->writeString(_iter1706->first); + xfer += oprot->writeString(_iter1706->second); } xfer += oprot->writeMapEnd(); } @@ -22805,11 +23056,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 _iter1680; - for (_iter1680 = (*(this->part_vals)).begin(); _iter1680 != (*(this->part_vals)).end(); ++_iter1680) + std::map ::const_iterator _iter1707; + for (_iter1707 = (*(this->part_vals)).begin(); _iter1707 != (*(this->part_vals)).end(); ++_iter1707) { - xfer += oprot->writeString(_iter1680->first); - xfer += oprot->writeString(_iter1680->second); + xfer += oprot->writeString(_iter1707->first); + xfer += oprot->writeString(_iter1707->second); } xfer += oprot->writeMapEnd(); } @@ -23078,17 +23329,17 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1681; - ::apache::thrift::protocol::TType _ktype1682; - ::apache::thrift::protocol::TType _vtype1683; - xfer += iprot->readMapBegin(_ktype1682, _vtype1683, _size1681); - uint32_t _i1685; - for (_i1685 = 0; _i1685 < _size1681; ++_i1685) + uint32_t _size1708; + ::apache::thrift::protocol::TType _ktype1709; + ::apache::thrift::protocol::TType _vtype1710; + xfer += iprot->readMapBegin(_ktype1709, _vtype1710, _size1708); + uint32_t _i1712; + for (_i1712 = 0; _i1712 < _size1708; ++_i1712) { - std::string _key1686; - xfer += iprot->readString(_key1686); - std::string& _val1687 = this->part_vals[_key1686]; - xfer += iprot->readString(_val1687); + std::string _key1713; + xfer += iprot->readString(_key1713); + std::string& _val1714 = this->part_vals[_key1713]; + xfer += iprot->readString(_val1714); } xfer += iprot->readMapEnd(); } @@ -23099,9 +23350,9 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1688; - xfer += iprot->readI32(ecast1688); - this->eventType = (PartitionEventType::type)ecast1688; + int32_t ecast1715; + xfer += iprot->readI32(ecast1715); + this->eventType = (PartitionEventType::type)ecast1715; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -23135,11 +23386,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 _iter1689; - for (_iter1689 = this->part_vals.begin(); _iter1689 != this->part_vals.end(); ++_iter1689) + std::map ::const_iterator _iter1716; + for (_iter1716 = this->part_vals.begin(); _iter1716 != this->part_vals.end(); ++_iter1716) { - xfer += oprot->writeString(_iter1689->first); - xfer += oprot->writeString(_iter1689->second); + xfer += oprot->writeString(_iter1716->first); + xfer += oprot->writeString(_iter1716->second); } xfer += oprot->writeMapEnd(); } @@ -23175,11 +23426,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 _iter1690; - for (_iter1690 = (*(this->part_vals)).begin(); _iter1690 != (*(this->part_vals)).end(); ++_iter1690) + std::map ::const_iterator _iter1717; + for (_iter1717 = (*(this->part_vals)).begin(); _iter1717 != (*(this->part_vals)).end(); ++_iter1717) { - xfer += oprot->writeString(_iter1690->first); - xfer += oprot->writeString(_iter1690->second); + xfer += oprot->writeString(_iter1717->first); + xfer += oprot->writeString(_iter1717->second); } xfer += oprot->writeMapEnd(); } @@ -24558,11 +24809,11 @@ uint32_t ThriftHiveMetastore_get_default_constraints_presult::read(::apache::thr } -ThriftHiveMetastore_update_table_column_statistics_args::~ThriftHiveMetastore_update_table_column_statistics_args() throw() { +ThriftHiveMetastore_get_check_constraints_args::~ThriftHiveMetastore_get_check_constraints_args() throw() { } -uint32_t ThriftHiveMetastore_update_table_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_check_constraints_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -24585,8 +24836,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); } @@ -24603,13 +24854,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_check_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_check_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(); @@ -24618,17 +24869,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_check_constraints_pargs::~ThriftHiveMetastore_get_check_constraints_pargs() throw() { } -uint32_t ThriftHiveMetastore_update_table_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_check_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_check_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(); @@ -24637,11 +24888,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_check_constraints_result::~ThriftHiveMetastore_get_check_constraints_result() throw() { } -uint32_t ThriftHiveMetastore_update_table_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_check_constraints_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -24663,8 +24914,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); @@ -24686,22 +24937,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; @@ -24714,15 +24949,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_check_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_check_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); @@ -24732,14 +24967,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(); @@ -24747,11 +24974,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_check_constraints_presult::~ThriftHiveMetastore_get_check_constraints_presult() throw() { } -uint32_t ThriftHiveMetastore_update_table_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_check_constraints_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -24773,8 +25000,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); @@ -24796,22 +25023,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; @@ -24825,11 +25036,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; @@ -24870,10 +25081,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); @@ -24885,14 +25096,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); @@ -24904,11 +25115,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; @@ -24981,11 +25192,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); @@ -25014,11 +25225,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; @@ -25092,11 +25303,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; @@ -25118,25 +25329,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); } @@ -25153,21 +25348,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(); @@ -25176,25 +25363,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(); @@ -25203,11 +25382,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; @@ -25229,8 +25408,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); @@ -25280,15 +25459,15 @@ 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); @@ -25313,11 +25492,11 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_result::write(::apache: } -ThriftHiveMetastore_get_table_column_statistics_presult::~ThriftHiveMetastore_get_table_column_statistics_presult() throw() { +ThriftHiveMetastore_update_partition_column_statistics_presult::~ThriftHiveMetastore_update_partition_column_statistics_presult() throw() { } -uint32_t ThriftHiveMetastore_get_table_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_update_partition_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -25339,8 +25518,8 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_presult::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); @@ -25391,11 +25570,11 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_presult::read(::apache: } -ThriftHiveMetastore_get_partition_column_statistics_args::~ThriftHiveMetastore_get_partition_column_statistics_args() throw() { +ThriftHiveMetastore_get_table_column_statistics_args::~ThriftHiveMetastore_get_table_column_statistics_args() throw() { } -uint32_t ThriftHiveMetastore_get_partition_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_table_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -25433,14 +25612,6 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_args::read(::apache } break; case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->part_name); - this->__isset.part_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: if (ftype == ::apache::thrift::protocol::T_STRING) { xfer += iprot->readString(this->col_name); this->__isset.col_name = true; @@ -25460,10 +25631,10 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_args::read(::apache return xfer; } -uint32_t ThriftHiveMetastore_get_partition_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +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_partition_column_statistics_args"); + 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); @@ -25473,11 +25644,7 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_args::write(::apach xfer += oprot->writeString(this->tbl_name); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->part_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 3); xfer += oprot->writeString(this->col_name); xfer += oprot->writeFieldEnd(); @@ -25487,14 +25654,14 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_args::write(::apach } -ThriftHiveMetastore_get_partition_column_statistics_pargs::~ThriftHiveMetastore_get_partition_column_statistics_pargs() throw() { +ThriftHiveMetastore_get_table_column_statistics_pargs::~ThriftHiveMetastore_get_table_column_statistics_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_partition_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +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_partition_column_statistics_pargs"); + 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))); @@ -25504,11 +25671,7 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_pargs::write(::apac xfer += oprot->writeString((*(this->tbl_name))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString((*(this->part_name))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 3); xfer += oprot->writeString((*(this->col_name))); xfer += oprot->writeFieldEnd(); @@ -25518,11 +25681,11 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_pargs::write(::apac } -ThriftHiveMetastore_get_partition_column_statistics_result::~ThriftHiveMetastore_get_partition_column_statistics_result() throw() { +ThriftHiveMetastore_get_table_column_statistics_result::~ThriftHiveMetastore_get_table_column_statistics_result() throw() { } -uint32_t ThriftHiveMetastore_get_partition_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_table_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -25595,11 +25758,11 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_result::read(::apac return xfer; } -uint32_t ThriftHiveMetastore_get_partition_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_table_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_column_statistics_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_column_statistics_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); @@ -25628,11 +25791,11 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_result::write(::apa } -ThriftHiveMetastore_get_partition_column_statistics_presult::~ThriftHiveMetastore_get_partition_column_statistics_presult() throw() { +ThriftHiveMetastore_get_table_column_statistics_presult::~ThriftHiveMetastore_get_table_column_statistics_presult() throw() { } -uint32_t ThriftHiveMetastore_get_partition_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_table_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -25706,11 +25869,11 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_presult::read(::apa } -ThriftHiveMetastore_get_table_statistics_req_args::~ThriftHiveMetastore_get_table_statistics_req_args() throw() { +ThriftHiveMetastore_get_partition_column_statistics_args::~ThriftHiveMetastore_get_partition_column_statistics_args() throw() { } -uint32_t ThriftHiveMetastore_get_table_statistics_req_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_partition_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -25732,9 +25895,33 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_args::read(::apache::thrif switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->request.read(iprot); - this->__isset.request = true; + 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->part_name); + this->__isset.part_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->col_name); + this->__isset.col_name = true; } else { xfer += iprot->skip(ftype); } @@ -25751,13 +25938,25 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_args::read(::apache::thrif return xfer; } -uint32_t ThriftHiveMetastore_get_table_statistics_req_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_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_statistics_req_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_column_statistics_args"); - xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->request.write(oprot); + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->db_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->tbl_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->part_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->col_name); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -25766,17 +25965,29 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_args::write(::apache::thri } -ThriftHiveMetastore_get_table_statistics_req_pargs::~ThriftHiveMetastore_get_table_statistics_req_pargs() throw() { +ThriftHiveMetastore_get_partition_column_statistics_pargs::~ThriftHiveMetastore_get_partition_column_statistics_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_table_statistics_req_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_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_statistics_req_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_column_statistics_pargs"); - xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->request)).write(oprot); + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->db_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->tbl_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString((*(this->part_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString((*(this->col_name))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -25785,11 +25996,11 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_pargs::write(::apache::thr } -ThriftHiveMetastore_get_table_statistics_req_result::~ThriftHiveMetastore_get_table_statistics_req_result() throw() { +ThriftHiveMetastore_get_partition_column_statistics_result::~ThriftHiveMetastore_get_partition_column_statistics_result() throw() { } -uint32_t ThriftHiveMetastore_get_table_statistics_req_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_partition_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -25834,6 +26045,22 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_result::read(::apache::thr 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; @@ -25846,11 +26073,11 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_result::read(::apache::thr return xfer; } -uint32_t ThriftHiveMetastore_get_table_statistics_req_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_partition_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_statistics_req_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_column_statistics_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); @@ -25864,6 +26091,14 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_result::write(::apache::th 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(); @@ -25871,11 +26106,11 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_result::write(::apache::th } -ThriftHiveMetastore_get_table_statistics_req_presult::~ThriftHiveMetastore_get_table_statistics_req_presult() throw() { +ThriftHiveMetastore_get_partition_column_statistics_presult::~ThriftHiveMetastore_get_partition_column_statistics_presult() throw() { } -uint32_t ThriftHiveMetastore_get_table_statistics_req_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_partition_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -25920,6 +26155,22 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_presult::read(::apache::th 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; @@ -25933,11 +26184,11 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_presult::read(::apache::th } -ThriftHiveMetastore_get_partitions_statistics_req_args::~ThriftHiveMetastore_get_partitions_statistics_req_args() throw() { +ThriftHiveMetastore_get_table_statistics_req_args::~ThriftHiveMetastore_get_table_statistics_req_args() throw() { } -uint32_t ThriftHiveMetastore_get_partitions_statistics_req_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_table_statistics_req_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -25978,10 +26229,10 @@ uint32_t ThriftHiveMetastore_get_partitions_statistics_req_args::read(::apache:: return xfer; } -uint32_t ThriftHiveMetastore_get_partitions_statistics_req_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_table_statistics_req_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_statistics_req_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_statistics_req_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->request.write(oprot); @@ -25993,14 +26244,14 @@ uint32_t ThriftHiveMetastore_get_partitions_statistics_req_args::write(::apache: } -ThriftHiveMetastore_get_partitions_statistics_req_pargs::~ThriftHiveMetastore_get_partitions_statistics_req_pargs() throw() { +ThriftHiveMetastore_get_table_statistics_req_pargs::~ThriftHiveMetastore_get_table_statistics_req_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_partitions_statistics_req_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_table_statistics_req_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_statistics_req_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_statistics_req_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->request)).write(oprot); @@ -26012,11 +26263,11 @@ uint32_t ThriftHiveMetastore_get_partitions_statistics_req_pargs::write(::apache } -ThriftHiveMetastore_get_partitions_statistics_req_result::~ThriftHiveMetastore_get_partitions_statistics_req_result() throw() { +ThriftHiveMetastore_get_table_statistics_req_result::~ThriftHiveMetastore_get_table_statistics_req_result() throw() { } -uint32_t ThriftHiveMetastore_get_partitions_statistics_req_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_table_statistics_req_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -26073,98 +26324,98 @@ uint32_t ThriftHiveMetastore_get_partitions_statistics_req_result::read(::apache return xfer; } -uint32_t ThriftHiveMetastore_get_partitions_statistics_req_result::write(::apache::thrift::protocol::TProtocol* oprot) const { - - uint32_t xfer = 0; - - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_statistics_req_result"); - - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o1) { - xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->o1.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o2) { - xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->o2.write(oprot); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -ThriftHiveMetastore_get_partitions_statistics_req_presult::~ThriftHiveMetastore_get_partitions_statistics_req_presult() throw() { -} - - -uint32_t ThriftHiveMetastore_get_partitions_statistics_req_presult::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - 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_get_table_statistics_req_result::write(::apache::thrift::protocol::TProtocol* oprot) const { -ThriftHiveMetastore_get_aggr_stats_for_args::~ThriftHiveMetastore_get_aggr_stats_for_args() throw() { + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_statistics_req_result"); + + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o1) { + xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->o1.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o2) { + xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->o2.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -uint32_t ThriftHiveMetastore_get_aggr_stats_for_args::read(::apache::thrift::protocol::TProtocol* iprot) { +ThriftHiveMetastore_get_table_statistics_req_presult::~ThriftHiveMetastore_get_table_statistics_req_presult() throw() { +} + + +uint32_t ThriftHiveMetastore_get_table_statistics_req_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + 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_get_partitions_statistics_req_args::~ThriftHiveMetastore_get_partitions_statistics_req_args() throw() { +} + + +uint32_t ThriftHiveMetastore_get_partitions_statistics_req_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -26205,10 +26456,10 @@ uint32_t ThriftHiveMetastore_get_aggr_stats_for_args::read(::apache::thrift::pro return xfer; } -uint32_t ThriftHiveMetastore_get_aggr_stats_for_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_partitions_statistics_req_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_aggr_stats_for_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_statistics_req_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->request.write(oprot); @@ -26220,14 +26471,14 @@ uint32_t ThriftHiveMetastore_get_aggr_stats_for_args::write(::apache::thrift::pr } -ThriftHiveMetastore_get_aggr_stats_for_pargs::~ThriftHiveMetastore_get_aggr_stats_for_pargs() throw() { +ThriftHiveMetastore_get_partitions_statistics_req_pargs::~ThriftHiveMetastore_get_partitions_statistics_req_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_aggr_stats_for_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_partitions_statistics_req_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_aggr_stats_for_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_statistics_req_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->request)).write(oprot); @@ -26239,11 +26490,11 @@ uint32_t ThriftHiveMetastore_get_aggr_stats_for_pargs::write(::apache::thrift::p } -ThriftHiveMetastore_get_aggr_stats_for_result::~ThriftHiveMetastore_get_aggr_stats_for_result() throw() { +ThriftHiveMetastore_get_partitions_statistics_req_result::~ThriftHiveMetastore_get_partitions_statistics_req_result() throw() { } -uint32_t ThriftHiveMetastore_get_aggr_stats_for_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_partitions_statistics_req_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -26300,11 +26551,11 @@ uint32_t ThriftHiveMetastore_get_aggr_stats_for_result::read(::apache::thrift::p return xfer; } -uint32_t ThriftHiveMetastore_get_aggr_stats_for_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_partitions_statistics_req_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_aggr_stats_for_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_statistics_req_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); @@ -26325,11 +26576,11 @@ uint32_t ThriftHiveMetastore_get_aggr_stats_for_result::write(::apache::thrift:: } -ThriftHiveMetastore_get_aggr_stats_for_presult::~ThriftHiveMetastore_get_aggr_stats_for_presult() throw() { +ThriftHiveMetastore_get_partitions_statistics_req_presult::~ThriftHiveMetastore_get_partitions_statistics_req_presult() throw() { } -uint32_t ThriftHiveMetastore_get_aggr_stats_for_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_partitions_statistics_req_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -26387,11 +26638,11 @@ uint32_t ThriftHiveMetastore_get_aggr_stats_for_presult::read(::apache::thrift:: } -ThriftHiveMetastore_set_aggr_stats_for_args::~ThriftHiveMetastore_set_aggr_stats_for_args() throw() { +ThriftHiveMetastore_get_aggr_stats_for_args::~ThriftHiveMetastore_get_aggr_stats_for_args() throw() { } -uint32_t ThriftHiveMetastore_set_aggr_stats_for_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_aggr_stats_for_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -26432,10 +26683,10 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_args::read(::apache::thrift::pro return xfer; } -uint32_t ThriftHiveMetastore_set_aggr_stats_for_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_aggr_stats_for_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_aggr_stats_for_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_aggr_stats_for_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->request.write(oprot); @@ -26447,14 +26698,14 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_args::write(::apache::thrift::pr } -ThriftHiveMetastore_set_aggr_stats_for_pargs::~ThriftHiveMetastore_set_aggr_stats_for_pargs() throw() { +ThriftHiveMetastore_get_aggr_stats_for_pargs::~ThriftHiveMetastore_get_aggr_stats_for_pargs() throw() { } -uint32_t ThriftHiveMetastore_set_aggr_stats_for_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_aggr_stats_for_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_aggr_stats_for_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_aggr_stats_for_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->request)).write(oprot); @@ -26466,11 +26717,11 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_pargs::write(::apache::thrift::p } -ThriftHiveMetastore_set_aggr_stats_for_result::~ThriftHiveMetastore_set_aggr_stats_for_result() throw() { +ThriftHiveMetastore_get_aggr_stats_for_result::~ThriftHiveMetastore_get_aggr_stats_for_result() throw() { } -uint32_t ThriftHiveMetastore_set_aggr_stats_for_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_aggr_stats_for_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -26492,8 +26743,8 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_result::read(::apache::thrift::p 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); @@ -26515,22 +26766,6 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_result::read(::apache::thrift::p 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; @@ -26543,15 +26778,15 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_result::read(::apache::thrift::p return xfer; } -uint32_t ThriftHiveMetastore_set_aggr_stats_for_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_aggr_stats_for_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_aggr_stats_for_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_aggr_stats_for_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); @@ -26561,14 +26796,6 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_result::write(::apache::thrift:: 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(); @@ -26576,11 +26803,11 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_result::write(::apache::thrift:: } -ThriftHiveMetastore_set_aggr_stats_for_presult::~ThriftHiveMetastore_set_aggr_stats_for_presult() throw() { +ThriftHiveMetastore_get_aggr_stats_for_presult::~ThriftHiveMetastore_get_aggr_stats_for_presult() throw() { } -uint32_t ThriftHiveMetastore_set_aggr_stats_for_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_aggr_stats_for_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -26602,8 +26829,8 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_presult::read(::apache::thrift:: 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); @@ -26625,22 +26852,6 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_presult::read(::apache::thrift:: 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; @@ -26654,11 +26865,11 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_presult::read(::apache::thrift:: } -ThriftHiveMetastore_delete_partition_column_statistics_args::~ThriftHiveMetastore_delete_partition_column_statistics_args() throw() { +ThriftHiveMetastore_set_aggr_stats_for_args::~ThriftHiveMetastore_set_aggr_stats_for_args() throw() { } -uint32_t ThriftHiveMetastore_delete_partition_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_set_aggr_stats_for_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -26680,33 +26891,9 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_args::read(::apa 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->part_name); - this->__isset.part_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - 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->request.read(iprot); + this->__isset.request = true; } else { xfer += iprot->skip(ftype); } @@ -26723,25 +26910,13 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_args::read(::apa return xfer; } -uint32_t ThriftHiveMetastore_delete_partition_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_set_aggr_stats_for_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_partition_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("part_name", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->part_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_aggr_stats_for_args"); - xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->col_name); + xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->request.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -26750,29 +26925,17 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_args::write(::ap } -ThriftHiveMetastore_delete_partition_column_statistics_pargs::~ThriftHiveMetastore_delete_partition_column_statistics_pargs() throw() { +ThriftHiveMetastore_set_aggr_stats_for_pargs::~ThriftHiveMetastore_set_aggr_stats_for_pargs() throw() { } -uint32_t ThriftHiveMetastore_delete_partition_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_set_aggr_stats_for_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_partition_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("part_name", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString((*(this->part_name))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_aggr_stats_for_pargs"); - xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString((*(this->col_name))); + xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->request)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -26781,11 +26944,11 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_pargs::write(::a } -ThriftHiveMetastore_delete_partition_column_statistics_result::~ThriftHiveMetastore_delete_partition_column_statistics_result() throw() { +ThriftHiveMetastore_set_aggr_stats_for_result::~ThriftHiveMetastore_set_aggr_stats_for_result() throw() { } -uint32_t ThriftHiveMetastore_delete_partition_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_set_aggr_stats_for_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -26858,11 +27021,11 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_result::read(::a return xfer; } -uint32_t ThriftHiveMetastore_delete_partition_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_set_aggr_stats_for_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_partition_column_statistics_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_aggr_stats_for_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); @@ -26891,11 +27054,11 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_result::write(:: } -ThriftHiveMetastore_delete_partition_column_statistics_presult::~ThriftHiveMetastore_delete_partition_column_statistics_presult() throw() { +ThriftHiveMetastore_set_aggr_stats_for_presult::~ThriftHiveMetastore_set_aggr_stats_for_presult() throw() { } -uint32_t ThriftHiveMetastore_delete_partition_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_set_aggr_stats_for_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -26969,11 +27132,11 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_presult::read(:: } -ThriftHiveMetastore_delete_table_column_statistics_args::~ThriftHiveMetastore_delete_table_column_statistics_args() throw() { +ThriftHiveMetastore_delete_partition_column_statistics_args::~ThriftHiveMetastore_delete_partition_column_statistics_args() throw() { } -uint32_t ThriftHiveMetastore_delete_table_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_delete_partition_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -27011,6 +27174,14 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_args::read(::apache: } break; case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->part_name); + this->__isset.part_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: if (ftype == ::apache::thrift::protocol::T_STRING) { xfer += iprot->readString(this->col_name); this->__isset.col_name = true; @@ -27030,10 +27201,10 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_args::read(::apache: return xfer; } -uint32_t ThriftHiveMetastore_delete_table_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_delete_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_delete_table_column_statistics_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_partition_column_statistics_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->db_name); @@ -27043,7 +27214,11 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_args::write(::apache xfer += oprot->writeString(this->tbl_name); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->part_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 4); xfer += oprot->writeString(this->col_name); xfer += oprot->writeFieldEnd(); @@ -27053,14 +27228,14 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_args::write(::apache } -ThriftHiveMetastore_delete_table_column_statistics_pargs::~ThriftHiveMetastore_delete_table_column_statistics_pargs() throw() { +ThriftHiveMetastore_delete_partition_column_statistics_pargs::~ThriftHiveMetastore_delete_partition_column_statistics_pargs() throw() { } -uint32_t ThriftHiveMetastore_delete_table_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_delete_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_delete_table_column_statistics_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_partition_column_statistics_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->db_name))); @@ -27070,7 +27245,11 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_pargs::write(::apach xfer += oprot->writeString((*(this->tbl_name))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString((*(this->part_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 4); xfer += oprot->writeString((*(this->col_name))); xfer += oprot->writeFieldEnd(); @@ -27080,11 +27259,11 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_pargs::write(::apach } -ThriftHiveMetastore_delete_table_column_statistics_result::~ThriftHiveMetastore_delete_table_column_statistics_result() throw() { +ThriftHiveMetastore_delete_partition_column_statistics_result::~ThriftHiveMetastore_delete_partition_column_statistics_result() throw() { } -uint32_t ThriftHiveMetastore_delete_table_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_delete_partition_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -27157,11 +27336,11 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_result::read(::apach return xfer; } -uint32_t ThriftHiveMetastore_delete_table_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_delete_partition_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_table_column_statistics_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_partition_column_statistics_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); @@ -27190,11 +27369,11 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_result::write(::apac } -ThriftHiveMetastore_delete_table_column_statistics_presult::~ThriftHiveMetastore_delete_table_column_statistics_presult() throw() { +ThriftHiveMetastore_delete_partition_column_statistics_presult::~ThriftHiveMetastore_delete_partition_column_statistics_presult() throw() { } -uint32_t ThriftHiveMetastore_delete_table_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_delete_partition_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -27268,11 +27447,11 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_presult::read(::apac } -ThriftHiveMetastore_create_function_args::~ThriftHiveMetastore_create_function_args() throw() { +ThriftHiveMetastore_delete_table_column_statistics_args::~ThriftHiveMetastore_delete_table_column_statistics_args() throw() { } -uint32_t ThriftHiveMetastore_create_function_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_delete_table_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -27294,9 +27473,25 @@ uint32_t ThriftHiveMetastore_create_function_args::read(::apache::thrift::protoc switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->func.read(iprot); - this->__isset.func = true; + 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); } @@ -27313,13 +27508,21 @@ uint32_t ThriftHiveMetastore_create_function_args::read(::apache::thrift::protoc return xfer; } -uint32_t ThriftHiveMetastore_create_function_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_delete_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_create_function_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_table_column_statistics_args"); - xfer += oprot->writeFieldBegin("func", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->func.write(oprot); + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->db_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("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(); @@ -27328,17 +27531,25 @@ uint32_t ThriftHiveMetastore_create_function_args::write(::apache::thrift::proto } -ThriftHiveMetastore_create_function_pargs::~ThriftHiveMetastore_create_function_pargs() throw() { +ThriftHiveMetastore_delete_table_column_statistics_pargs::~ThriftHiveMetastore_delete_table_column_statistics_pargs() throw() { } -uint32_t ThriftHiveMetastore_create_function_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_delete_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_create_function_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_table_column_statistics_pargs"); - xfer += oprot->writeFieldBegin("func", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->func)).write(oprot); + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->db_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("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(); @@ -27347,11 +27558,11 @@ uint32_t ThriftHiveMetastore_create_function_pargs::write(::apache::thrift::prot } -ThriftHiveMetastore_create_function_result::~ThriftHiveMetastore_create_function_result() throw() { +ThriftHiveMetastore_delete_table_column_statistics_result::~ThriftHiveMetastore_delete_table_column_statistics_result() throw() { } -uint32_t ThriftHiveMetastore_create_function_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_delete_table_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -27372,6 +27583,14 @@ uint32_t ThriftHiveMetastore_create_function_result::read(::apache::thrift::prot } 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); @@ -27416,13 +27635,17 @@ uint32_t ThriftHiveMetastore_create_function_result::read(::apache::thrift::prot return xfer; } -uint32_t ThriftHiveMetastore_create_function_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_delete_table_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_function_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_table_column_statistics_result"); - if (this->__isset.o1) { + if (this->__isset.success) { + 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(); @@ -27445,11 +27668,11 @@ uint32_t ThriftHiveMetastore_create_function_result::write(::apache::thrift::pro } -ThriftHiveMetastore_create_function_presult::~ThriftHiveMetastore_create_function_presult() throw() { +ThriftHiveMetastore_delete_table_column_statistics_presult::~ThriftHiveMetastore_delete_table_column_statistics_presult() throw() { } -uint32_t ThriftHiveMetastore_create_function_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_delete_table_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -27470,6 +27693,14 @@ uint32_t ThriftHiveMetastore_create_function_presult::read(::apache::thrift::pro } 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); @@ -27515,11 +27746,11 @@ uint32_t ThriftHiveMetastore_create_function_presult::read(::apache::thrift::pro } -ThriftHiveMetastore_drop_function_args::~ThriftHiveMetastore_drop_function_args() throw() { +ThriftHiveMetastore_create_function_args::~ThriftHiveMetastore_create_function_args() throw() { } -uint32_t ThriftHiveMetastore_drop_function_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_create_function_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -27541,17 +27772,9 @@ uint32_t ThriftHiveMetastore_drop_function_args::read(::apache::thrift::protocol switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->dbName); - this->__isset.dbName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->funcName); - this->__isset.funcName = true; + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->func.read(iprot); + this->__isset.func = true; } else { xfer += iprot->skip(ftype); } @@ -27568,17 +27791,13 @@ uint32_t ThriftHiveMetastore_drop_function_args::read(::apache::thrift::protocol return xfer; } -uint32_t ThriftHiveMetastore_drop_function_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_create_function_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_function_args"); - - xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->dbName); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_function_args"); - xfer += oprot->writeFieldBegin("funcName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->funcName); + xfer += oprot->writeFieldBegin("func", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->func.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -27587,21 +27806,17 @@ uint32_t ThriftHiveMetastore_drop_function_args::write(::apache::thrift::protoco } -ThriftHiveMetastore_drop_function_pargs::~ThriftHiveMetastore_drop_function_pargs() throw() { +ThriftHiveMetastore_create_function_pargs::~ThriftHiveMetastore_create_function_pargs() throw() { } -uint32_t ThriftHiveMetastore_drop_function_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_create_function_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_function_pargs"); - - xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->dbName))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_function_pargs"); - xfer += oprot->writeFieldBegin("funcName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->funcName))); + xfer += oprot->writeFieldBegin("func", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->func)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -27610,11 +27825,11 @@ uint32_t ThriftHiveMetastore_drop_function_pargs::write(::apache::thrift::protoc } -ThriftHiveMetastore_drop_function_result::~ThriftHiveMetastore_drop_function_result() throw() { +ThriftHiveMetastore_create_function_result::~ThriftHiveMetastore_create_function_result() throw() { } -uint32_t ThriftHiveMetastore_drop_function_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_create_function_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -27644,6 +27859,14 @@ uint32_t ThriftHiveMetastore_drop_function_result::read(::apache::thrift::protoc } 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; @@ -27651,6 +27874,14 @@ uint32_t ThriftHiveMetastore_drop_function_result::read(::apache::thrift::protoc 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; @@ -27663,20 +27894,28 @@ uint32_t ThriftHiveMetastore_drop_function_result::read(::apache::thrift::protoc return xfer; } -uint32_t ThriftHiveMetastore_drop_function_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_create_function_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_function_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_function_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(); } else if (this->__isset.o3) { - xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 2); + 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(); @@ -27684,11 +27923,11 @@ uint32_t ThriftHiveMetastore_drop_function_result::write(::apache::thrift::proto } -ThriftHiveMetastore_drop_function_presult::~ThriftHiveMetastore_drop_function_presult() throw() { +ThriftHiveMetastore_create_function_presult::~ThriftHiveMetastore_create_function_presult() throw() { } -uint32_t ThriftHiveMetastore_drop_function_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_create_function_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -27718,6 +27957,14 @@ uint32_t ThriftHiveMetastore_drop_function_presult::read(::apache::thrift::proto } 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; @@ -27725,6 +27972,14 @@ uint32_t ThriftHiveMetastore_drop_function_presult::read(::apache::thrift::proto 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; @@ -27738,11 +27993,11 @@ uint32_t ThriftHiveMetastore_drop_function_presult::read(::apache::thrift::proto } -ThriftHiveMetastore_alter_function_args::~ThriftHiveMetastore_alter_function_args() throw() { +ThriftHiveMetastore_drop_function_args::~ThriftHiveMetastore_drop_function_args() throw() { } -uint32_t ThriftHiveMetastore_alter_function_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_drop_function_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -27779,14 +28034,6 @@ uint32_t ThriftHiveMetastore_alter_function_args::read(::apache::thrift::protoco xfer += iprot->skip(ftype); } break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->newFunc.read(iprot); - this->__isset.newFunc = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -27799,10 +28046,10 @@ uint32_t ThriftHiveMetastore_alter_function_args::read(::apache::thrift::protoco return xfer; } -uint32_t ThriftHiveMetastore_alter_function_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_drop_function_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_function_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_function_args"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->dbName); @@ -27812,24 +28059,20 @@ uint32_t ThriftHiveMetastore_alter_function_args::write(::apache::thrift::protoc xfer += oprot->writeString(this->funcName); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("newFunc", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->newFunc.write(oprot); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -ThriftHiveMetastore_alter_function_pargs::~ThriftHiveMetastore_alter_function_pargs() throw() { +ThriftHiveMetastore_drop_function_pargs::~ThriftHiveMetastore_drop_function_pargs() throw() { } -uint32_t ThriftHiveMetastore_alter_function_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_drop_function_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_function_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_function_pargs"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->dbName))); @@ -27839,21 +28082,256 @@ uint32_t ThriftHiveMetastore_alter_function_pargs::write(::apache::thrift::proto xfer += oprot->writeString((*(this->funcName))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("newFunc", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += (*(this->newFunc)).write(oprot); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -ThriftHiveMetastore_alter_function_result::~ThriftHiveMetastore_alter_function_result() throw() { +ThriftHiveMetastore_drop_function_result::~ThriftHiveMetastore_drop_function_result() throw() { } -uint32_t ThriftHiveMetastore_alter_function_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_drop_function_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->o3.read(iprot); + this->__isset.o3 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_drop_function_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_function_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.o3) { + xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->o3.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_drop_function_presult::~ThriftHiveMetastore_drop_function_presult() throw() { +} + + +uint32_t ThriftHiveMetastore_drop_function_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->o3.read(iprot); + this->__isset.o3 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + + +ThriftHiveMetastore_alter_function_args::~ThriftHiveMetastore_alter_function_args() throw() { +} + + +uint32_t ThriftHiveMetastore_alter_function_args::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->dbName); + this->__isset.dbName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->funcName); + this->__isset.funcName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->newFunc.read(iprot); + this->__isset.newFunc = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_alter_function_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_function_args"); + + xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->dbName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("funcName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->funcName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("newFunc", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->newFunc.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_alter_function_pargs::~ThriftHiveMetastore_alter_function_pargs() throw() { +} + + +uint32_t ThriftHiveMetastore_alter_function_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_function_pargs"); + + xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->dbName))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("funcName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->funcName))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("newFunc", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += (*(this->newFunc)).write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_alter_function_result::~ThriftHiveMetastore_alter_function_result() throw() { +} + + +uint32_t ThriftHiveMetastore_alter_function_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -28101,14 +28579,14 @@ uint32_t ThriftHiveMetastore_get_functions_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1691; - ::apache::thrift::protocol::TType _etype1694; - xfer += iprot->readListBegin(_etype1694, _size1691); - this->success.resize(_size1691); - uint32_t _i1695; - for (_i1695 = 0; _i1695 < _size1691; ++_i1695) + uint32_t _size1718; + ::apache::thrift::protocol::TType _etype1721; + xfer += iprot->readListBegin(_etype1721, _size1718); + this->success.resize(_size1718); + uint32_t _i1722; + for (_i1722 = 0; _i1722 < _size1718; ++_i1722) { - xfer += iprot->readString(this->success[_i1695]); + xfer += iprot->readString(this->success[_i1722]); } xfer += iprot->readListEnd(); } @@ -28147,10 +28625,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 _iter1696; - for (_iter1696 = this->success.begin(); _iter1696 != this->success.end(); ++_iter1696) + std::vector ::const_iterator _iter1723; + for (_iter1723 = this->success.begin(); _iter1723 != this->success.end(); ++_iter1723) { - xfer += oprot->writeString((*_iter1696)); + xfer += oprot->writeString((*_iter1723)); } xfer += oprot->writeListEnd(); } @@ -28195,14 +28673,14 @@ uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1697; - ::apache::thrift::protocol::TType _etype1700; - xfer += iprot->readListBegin(_etype1700, _size1697); - (*(this->success)).resize(_size1697); - uint32_t _i1701; - for (_i1701 = 0; _i1701 < _size1697; ++_i1701) + uint32_t _size1724; + ::apache::thrift::protocol::TType _etype1727; + xfer += iprot->readListBegin(_etype1727, _size1724); + (*(this->success)).resize(_size1724); + uint32_t _i1728; + for (_i1728 = 0; _i1728 < _size1724; ++_i1728) { - xfer += iprot->readString((*(this->success))[_i1701]); + xfer += iprot->readString((*(this->success))[_i1728]); } xfer += iprot->readListEnd(); } @@ -29162,14 +29640,14 @@ uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1702; - ::apache::thrift::protocol::TType _etype1705; - xfer += iprot->readListBegin(_etype1705, _size1702); - this->success.resize(_size1702); - uint32_t _i1706; - for (_i1706 = 0; _i1706 < _size1702; ++_i1706) + uint32_t _size1729; + ::apache::thrift::protocol::TType _etype1732; + xfer += iprot->readListBegin(_etype1732, _size1729); + this->success.resize(_size1729); + uint32_t _i1733; + for (_i1733 = 0; _i1733 < _size1729; ++_i1733) { - xfer += iprot->readString(this->success[_i1706]); + xfer += iprot->readString(this->success[_i1733]); } xfer += iprot->readListEnd(); } @@ -29208,10 +29686,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 _iter1707; - for (_iter1707 = this->success.begin(); _iter1707 != this->success.end(); ++_iter1707) + std::vector ::const_iterator _iter1734; + for (_iter1734 = this->success.begin(); _iter1734 != this->success.end(); ++_iter1734) { - xfer += oprot->writeString((*_iter1707)); + xfer += oprot->writeString((*_iter1734)); } xfer += oprot->writeListEnd(); } @@ -29256,14 +29734,14 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1708; - ::apache::thrift::protocol::TType _etype1711; - xfer += iprot->readListBegin(_etype1711, _size1708); - (*(this->success)).resize(_size1708); - uint32_t _i1712; - for (_i1712 = 0; _i1712 < _size1708; ++_i1712) + uint32_t _size1735; + ::apache::thrift::protocol::TType _etype1738; + xfer += iprot->readListBegin(_etype1738, _size1735); + (*(this->success)).resize(_size1735); + uint32_t _i1739; + for (_i1739 = 0; _i1739 < _size1735; ++_i1739) { - xfer += iprot->readString((*(this->success))[_i1712]); + xfer += iprot->readString((*(this->success))[_i1739]); } xfer += iprot->readListEnd(); } @@ -29336,9 +29814,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1713; - xfer += iprot->readI32(ecast1713); - this->principal_type = (PrincipalType::type)ecast1713; + int32_t ecast1740; + xfer += iprot->readI32(ecast1740); + this->principal_type = (PrincipalType::type)ecast1740; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -29354,9 +29832,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1714; - xfer += iprot->readI32(ecast1714); - this->grantorType = (PrincipalType::type)ecast1714; + int32_t ecast1741; + xfer += iprot->readI32(ecast1741); + this->grantorType = (PrincipalType::type)ecast1741; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -29627,9 +30105,9 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol:: break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1715; - xfer += iprot->readI32(ecast1715); - this->principal_type = (PrincipalType::type)ecast1715; + int32_t ecast1742; + xfer += iprot->readI32(ecast1742); + this->principal_type = (PrincipalType::type)ecast1742; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -29860,9 +30338,9 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1716; - xfer += iprot->readI32(ecast1716); - this->principal_type = (PrincipalType::type)ecast1716; + int32_t ecast1743; + xfer += iprot->readI32(ecast1743); + this->principal_type = (PrincipalType::type)ecast1743; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -29951,14 +30429,14 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1717; - ::apache::thrift::protocol::TType _etype1720; - xfer += iprot->readListBegin(_etype1720, _size1717); - this->success.resize(_size1717); - uint32_t _i1721; - for (_i1721 = 0; _i1721 < _size1717; ++_i1721) + uint32_t _size1744; + ::apache::thrift::protocol::TType _etype1747; + xfer += iprot->readListBegin(_etype1747, _size1744); + this->success.resize(_size1744); + uint32_t _i1748; + for (_i1748 = 0; _i1748 < _size1744; ++_i1748) { - xfer += this->success[_i1721].read(iprot); + xfer += this->success[_i1748].read(iprot); } xfer += iprot->readListEnd(); } @@ -29997,10 +30475,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 _iter1722; - for (_iter1722 = this->success.begin(); _iter1722 != this->success.end(); ++_iter1722) + std::vector ::const_iterator _iter1749; + for (_iter1749 = this->success.begin(); _iter1749 != this->success.end(); ++_iter1749) { - xfer += (*_iter1722).write(oprot); + xfer += (*_iter1749).write(oprot); } xfer += oprot->writeListEnd(); } @@ -30045,14 +30523,14 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1723; - ::apache::thrift::protocol::TType _etype1726; - xfer += iprot->readListBegin(_etype1726, _size1723); - (*(this->success)).resize(_size1723); - uint32_t _i1727; - for (_i1727 = 0; _i1727 < _size1723; ++_i1727) + uint32_t _size1750; + ::apache::thrift::protocol::TType _etype1753; + xfer += iprot->readListBegin(_etype1753, _size1750); + (*(this->success)).resize(_size1750); + uint32_t _i1754; + for (_i1754 = 0; _i1754 < _size1750; ++_i1754) { - xfer += (*(this->success))[_i1727].read(iprot); + xfer += (*(this->success))[_i1754].read(iprot); } xfer += iprot->readListEnd(); } @@ -30748,14 +31226,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 _size1728; - ::apache::thrift::protocol::TType _etype1731; - xfer += iprot->readListBegin(_etype1731, _size1728); - this->group_names.resize(_size1728); - uint32_t _i1732; - for (_i1732 = 0; _i1732 < _size1728; ++_i1732) + uint32_t _size1755; + ::apache::thrift::protocol::TType _etype1758; + xfer += iprot->readListBegin(_etype1758, _size1755); + this->group_names.resize(_size1755); + uint32_t _i1759; + for (_i1759 = 0; _i1759 < _size1755; ++_i1759) { - xfer += iprot->readString(this->group_names[_i1732]); + xfer += iprot->readString(this->group_names[_i1759]); } xfer += iprot->readListEnd(); } @@ -30792,10 +31270,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 _iter1733; - for (_iter1733 = this->group_names.begin(); _iter1733 != this->group_names.end(); ++_iter1733) + std::vector ::const_iterator _iter1760; + for (_iter1760 = this->group_names.begin(); _iter1760 != this->group_names.end(); ++_iter1760) { - xfer += oprot->writeString((*_iter1733)); + xfer += oprot->writeString((*_iter1760)); } xfer += oprot->writeListEnd(); } @@ -30827,10 +31305,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 _iter1734; - for (_iter1734 = (*(this->group_names)).begin(); _iter1734 != (*(this->group_names)).end(); ++_iter1734) + std::vector ::const_iterator _iter1761; + for (_iter1761 = (*(this->group_names)).begin(); _iter1761 != (*(this->group_names)).end(); ++_iter1761) { - xfer += oprot->writeString((*_iter1734)); + xfer += oprot->writeString((*_iter1761)); } xfer += oprot->writeListEnd(); } @@ -31005,9 +31483,9 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1735; - xfer += iprot->readI32(ecast1735); - this->principal_type = (PrincipalType::type)ecast1735; + int32_t ecast1762; + xfer += iprot->readI32(ecast1762); + this->principal_type = (PrincipalType::type)ecast1762; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -31112,14 +31590,14 @@ uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - 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) + uint32_t _size1763; + ::apache::thrift::protocol::TType _etype1766; + xfer += iprot->readListBegin(_etype1766, _size1763); + this->success.resize(_size1763); + uint32_t _i1767; + for (_i1767 = 0; _i1767 < _size1763; ++_i1767) { - xfer += this->success[_i1740].read(iprot); + xfer += this->success[_i1767].read(iprot); } xfer += iprot->readListEnd(); } @@ -31158,10 +31636,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 _iter1741; - for (_iter1741 = this->success.begin(); _iter1741 != this->success.end(); ++_iter1741) + std::vector ::const_iterator _iter1768; + for (_iter1768 = this->success.begin(); _iter1768 != this->success.end(); ++_iter1768) { - xfer += (*_iter1741).write(oprot); + xfer += (*_iter1768).write(oprot); } xfer += oprot->writeListEnd(); } @@ -31206,14 +31684,14 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1742; - ::apache::thrift::protocol::TType _etype1745; - xfer += iprot->readListBegin(_etype1745, _size1742); - (*(this->success)).resize(_size1742); - uint32_t _i1746; - for (_i1746 = 0; _i1746 < _size1742; ++_i1746) + uint32_t _size1769; + ::apache::thrift::protocol::TType _etype1772; + xfer += iprot->readListBegin(_etype1772, _size1769); + (*(this->success)).resize(_size1769); + uint32_t _i1773; + for (_i1773 = 0; _i1773 < _size1769; ++_i1773) { - xfer += (*(this->success))[_i1746].read(iprot); + xfer += (*(this->success))[_i1773].read(iprot); } xfer += iprot->readListEnd(); } @@ -31901,14 +32379,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 _size1747; - ::apache::thrift::protocol::TType _etype1750; - xfer += iprot->readListBegin(_etype1750, _size1747); - this->group_names.resize(_size1747); - uint32_t _i1751; - for (_i1751 = 0; _i1751 < _size1747; ++_i1751) + uint32_t _size1774; + ::apache::thrift::protocol::TType _etype1777; + xfer += iprot->readListBegin(_etype1777, _size1774); + this->group_names.resize(_size1774); + uint32_t _i1778; + for (_i1778 = 0; _i1778 < _size1774; ++_i1778) { - xfer += iprot->readString(this->group_names[_i1751]); + xfer += iprot->readString(this->group_names[_i1778]); } xfer += iprot->readListEnd(); } @@ -31941,10 +32419,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 _iter1752; - for (_iter1752 = this->group_names.begin(); _iter1752 != this->group_names.end(); ++_iter1752) + std::vector ::const_iterator _iter1779; + for (_iter1779 = this->group_names.begin(); _iter1779 != this->group_names.end(); ++_iter1779) { - xfer += oprot->writeString((*_iter1752)); + xfer += oprot->writeString((*_iter1779)); } xfer += oprot->writeListEnd(); } @@ -31972,10 +32450,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 _iter1753; - for (_iter1753 = (*(this->group_names)).begin(); _iter1753 != (*(this->group_names)).end(); ++_iter1753) + std::vector ::const_iterator _iter1780; + for (_iter1780 = (*(this->group_names)).begin(); _iter1780 != (*(this->group_names)).end(); ++_iter1780) { - xfer += oprot->writeString((*_iter1753)); + xfer += oprot->writeString((*_iter1780)); } xfer += oprot->writeListEnd(); } @@ -32016,14 +32494,14 @@ uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TP if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1754; - ::apache::thrift::protocol::TType _etype1757; - xfer += iprot->readListBegin(_etype1757, _size1754); - this->success.resize(_size1754); - uint32_t _i1758; - for (_i1758 = 0; _i1758 < _size1754; ++_i1758) + uint32_t _size1781; + ::apache::thrift::protocol::TType _etype1784; + xfer += iprot->readListBegin(_etype1784, _size1781); + this->success.resize(_size1781); + uint32_t _i1785; + for (_i1785 = 0; _i1785 < _size1781; ++_i1785) { - xfer += iprot->readString(this->success[_i1758]); + xfer += iprot->readString(this->success[_i1785]); } xfer += iprot->readListEnd(); } @@ -32062,10 +32540,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 _iter1759; - for (_iter1759 = this->success.begin(); _iter1759 != this->success.end(); ++_iter1759) + std::vector ::const_iterator _iter1786; + for (_iter1786 = this->success.begin(); _iter1786 != this->success.end(); ++_iter1786) { - xfer += oprot->writeString((*_iter1759)); + xfer += oprot->writeString((*_iter1786)); } xfer += oprot->writeListEnd(); } @@ -32110,14 +32588,14 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1760; - ::apache::thrift::protocol::TType _etype1763; - xfer += iprot->readListBegin(_etype1763, _size1760); - (*(this->success)).resize(_size1760); - uint32_t _i1764; - for (_i1764 = 0; _i1764 < _size1760; ++_i1764) + uint32_t _size1787; + ::apache::thrift::protocol::TType _etype1790; + xfer += iprot->readListBegin(_etype1790, _size1787); + (*(this->success)).resize(_size1787); + uint32_t _i1791; + for (_i1791 = 0; _i1791 < _size1787; ++_i1791) { - xfer += iprot->readString((*(this->success))[_i1764]); + xfer += iprot->readString((*(this->success))[_i1791]); } xfer += iprot->readListEnd(); } @@ -33428,14 +33906,14 @@ uint32_t ThriftHiveMetastore_get_all_token_identifiers_result::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1765; - ::apache::thrift::protocol::TType _etype1768; - xfer += iprot->readListBegin(_etype1768, _size1765); - this->success.resize(_size1765); - uint32_t _i1769; - for (_i1769 = 0; _i1769 < _size1765; ++_i1769) + uint32_t _size1792; + ::apache::thrift::protocol::TType _etype1795; + xfer += iprot->readListBegin(_etype1795, _size1792); + this->success.resize(_size1792); + uint32_t _i1796; + for (_i1796 = 0; _i1796 < _size1792; ++_i1796) { - xfer += iprot->readString(this->success[_i1769]); + xfer += iprot->readString(this->success[_i1796]); } xfer += iprot->readListEnd(); } @@ -33466,10 +33944,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 _iter1770; - for (_iter1770 = this->success.begin(); _iter1770 != this->success.end(); ++_iter1770) + std::vector ::const_iterator _iter1797; + for (_iter1797 = this->success.begin(); _iter1797 != this->success.end(); ++_iter1797) { - xfer += oprot->writeString((*_iter1770)); + xfer += oprot->writeString((*_iter1797)); } xfer += oprot->writeListEnd(); } @@ -33510,14 +33988,14 @@ uint32_t ThriftHiveMetastore_get_all_token_identifiers_presult::read(::apache::t if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1771; - ::apache::thrift::protocol::TType _etype1774; - xfer += iprot->readListBegin(_etype1774, _size1771); - (*(this->success)).resize(_size1771); - uint32_t _i1775; - for (_i1775 = 0; _i1775 < _size1771; ++_i1775) + uint32_t _size1798; + ::apache::thrift::protocol::TType _etype1801; + xfer += iprot->readListBegin(_etype1801, _size1798); + (*(this->success)).resize(_size1798); + uint32_t _i1802; + for (_i1802 = 0; _i1802 < _size1798; ++_i1802) { - xfer += iprot->readString((*(this->success))[_i1775]); + xfer += iprot->readString((*(this->success))[_i1802]); } xfer += iprot->readListEnd(); } @@ -34243,14 +34721,14 @@ uint32_t ThriftHiveMetastore_get_master_keys_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1776; - ::apache::thrift::protocol::TType _etype1779; - xfer += iprot->readListBegin(_etype1779, _size1776); - this->success.resize(_size1776); - uint32_t _i1780; - for (_i1780 = 0; _i1780 < _size1776; ++_i1780) + uint32_t _size1803; + ::apache::thrift::protocol::TType _etype1806; + xfer += iprot->readListBegin(_etype1806, _size1803); + this->success.resize(_size1803); + uint32_t _i1807; + for (_i1807 = 0; _i1807 < _size1803; ++_i1807) { - xfer += iprot->readString(this->success[_i1780]); + xfer += iprot->readString(this->success[_i1807]); } xfer += iprot->readListEnd(); } @@ -34281,10 +34759,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 _iter1781; - for (_iter1781 = this->success.begin(); _iter1781 != this->success.end(); ++_iter1781) + std::vector ::const_iterator _iter1808; + for (_iter1808 = this->success.begin(); _iter1808 != this->success.end(); ++_iter1808) { - xfer += oprot->writeString((*_iter1781)); + xfer += oprot->writeString((*_iter1808)); } xfer += oprot->writeListEnd(); } @@ -34325,14 +34803,14 @@ uint32_t ThriftHiveMetastore_get_master_keys_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1782; - ::apache::thrift::protocol::TType _etype1785; - xfer += iprot->readListBegin(_etype1785, _size1782); - (*(this->success)).resize(_size1782); - uint32_t _i1786; - for (_i1786 = 0; _i1786 < _size1782; ++_i1786) + uint32_t _size1809; + ::apache::thrift::protocol::TType _etype1812; + xfer += iprot->readListBegin(_etype1812, _size1809); + (*(this->success)).resize(_size1809); + uint32_t _i1813; + for (_i1813 = 0; _i1813 < _size1809; ++_i1813) { - xfer += iprot->readString((*(this->success))[_i1786]); + xfer += iprot->readString((*(this->success))[_i1813]); } xfer += iprot->readListEnd(); } @@ -45973,14 +46451,14 @@ uint32_t ThriftHiveMetastore_get_schema_all_versions_result::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1787; - ::apache::thrift::protocol::TType _etype1790; - xfer += iprot->readListBegin(_etype1790, _size1787); - this->success.resize(_size1787); - uint32_t _i1791; - for (_i1791 = 0; _i1791 < _size1787; ++_i1791) + uint32_t _size1814; + ::apache::thrift::protocol::TType _etype1817; + xfer += iprot->readListBegin(_etype1817, _size1814); + this->success.resize(_size1814); + uint32_t _i1818; + for (_i1818 = 0; _i1818 < _size1814; ++_i1818) { - xfer += this->success[_i1791].read(iprot); + xfer += this->success[_i1818].read(iprot); } xfer += iprot->readListEnd(); } @@ -46027,10 +46505,10 @@ uint32_t ThriftHiveMetastore_get_schema_all_versions_result::write(::apache::thr xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1792; - for (_iter1792 = this->success.begin(); _iter1792 != this->success.end(); ++_iter1792) + std::vector ::const_iterator _iter1819; + for (_iter1819 = this->success.begin(); _iter1819 != this->success.end(); ++_iter1819) { - xfer += (*_iter1792).write(oprot); + xfer += (*_iter1819).write(oprot); } xfer += oprot->writeListEnd(); } @@ -46079,14 +46557,14 @@ uint32_t ThriftHiveMetastore_get_schema_all_versions_presult::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1793; - ::apache::thrift::protocol::TType _etype1796; - xfer += iprot->readListBegin(_etype1796, _size1793); - (*(this->success)).resize(_size1793); - uint32_t _i1797; - for (_i1797 = 0; _i1797 < _size1793; ++_i1797) + uint32_t _size1820; + ::apache::thrift::protocol::TType _etype1823; + xfer += iprot->readListBegin(_etype1823, _size1820); + (*(this->success)).resize(_size1820); + uint32_t _i1824; + for (_i1824 = 0; _i1824 < _size1820; ++_i1824) { - xfer += (*(this->success))[_i1797].read(iprot); + xfer += (*(this->success))[_i1824].read(iprot); } xfer += iprot->readListEnd(); } @@ -48555,13 +49033,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, const std::vector & defaultConstraints) +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, const std::vector & checkConstraints) { - send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints); + send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints); 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, const std::vector & defaultConstraints) +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, const std::vector & checkConstraints) { int32_t cseqid = 0; oprot_->writeMessageBegin("create_table_with_constraints", ::apache::thrift::protocol::T_CALL, cseqid); @@ -48573,6 +49051,7 @@ void ThriftHiveMetastoreClient::send_create_table_with_constraints(const Table& args.uniqueConstraints = &uniqueConstraints; args.notNullConstraints = ¬NullConstraints; args.defaultConstraints = &defaultConstraints; + args.checkConstraints = &checkConstraints; args.write(oprot_); oprot_->writeMessageEnd(); @@ -48979,6 +49458,65 @@ void ThriftHiveMetastoreClient::recv_add_default_constraint() return; } +void ThriftHiveMetastoreClient::add_check_constraint(const AddCheckConstraintRequest& req) +{ + send_add_check_constraint(req); + recv_add_check_constraint(); +} + +void ThriftHiveMetastoreClient::send_add_check_constraint(const AddCheckConstraintRequest& req) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("add_check_constraint", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_add_check_constraint_pargs args; + args.req = &req; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void ThriftHiveMetastoreClient::recv_add_check_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_check_constraint") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_add_check_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); @@ -53297,6 +53835,70 @@ void ThriftHiveMetastoreClient::recv_get_default_constraints(DefaultConstraintsR throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_default_constraints failed: unknown result"); } +void ThriftHiveMetastoreClient::get_check_constraints(CheckConstraintsResponse& _return, const CheckConstraintsRequest& request) +{ + send_get_check_constraints(request); + recv_get_check_constraints(_return); +} + +void ThriftHiveMetastoreClient::send_get_check_constraints(const CheckConstraintsRequest& request) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("get_check_constraints", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_check_constraints_pargs args; + args.request = &request; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void ThriftHiveMetastoreClient::recv_get_check_constraints(CheckConstraintsResponse& _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_check_constraints") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_get_check_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_check_constraints failed: unknown result"); +} + bool ThriftHiveMetastoreClient::update_table_column_statistics(const ColumnStatistics& stats_obj) { send_update_table_column_statistics(stats_obj); @@ -60823,7 +61425,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, args.defaultConstraints); + iface_->create_table_with_constraints(args.tbl, args.primaryKeys, args.foreignKeys, args.uniqueConstraints, args.notNullConstraints, args.defaultConstraints, args.checkConstraints); } catch (AlreadyExistsException &o1) { result.o1 = o1; result.__isset.o1 = true; @@ -61219,6 +61821,65 @@ void ThriftHiveMetastoreProcessor::process_add_default_constraint(int32_t seqid, } } +void ThriftHiveMetastoreProcessor::process_add_check_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_check_constraint", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.add_check_constraint"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.add_check_constraint"); + } + + ThriftHiveMetastore_add_check_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_check_constraint", bytes); + } + + ThriftHiveMetastore_add_check_constraint_result result; + try { + iface_->add_check_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_check_constraint"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("add_check_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_check_constraint"); + } + + oprot->writeMessageBegin("add_check_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_check_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; @@ -65205,6 +65866,66 @@ void ThriftHiveMetastoreProcessor::process_get_default_constraints(int32_t seqid } } +void ThriftHiveMetastoreProcessor::process_get_check_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_check_constraints", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.get_check_constraints"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_check_constraints"); + } + + ThriftHiveMetastore_get_check_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_check_constraints", bytes); + } + + ThriftHiveMetastore_get_check_constraints_result result; + try { + iface_->get_check_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_check_constraints"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("get_check_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_check_constraints"); + } + + oprot->writeMessageBegin("get_check_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_check_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; @@ -72303,7 +73024,96 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type_all(std::mapreadMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_type_all") != 0) { + if (fname.compare("get_type_all") != 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_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; + } + 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_type_all failed: unknown result"); + } + // seqid != rseqid + this->sync_.updatePending(fname, mtype, rseqid); + + // this will temporarily unlock the readMutex, and let other clients get work done + this->sync_.waitForWork(seqid); + } // end while(true) +} + +void ThriftHiveMetastoreConcurrentClient::get_fields(std::vector & _return, const std::string& db_name, const std::string& table_name) +{ + int32_t seqid = send_get_fields(db_name, table_name); + recv_get_fields(_return, seqid); +} + +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_fields", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_fields_pargs args; + args.db_name = &db_name; + args.table_name = &table_name; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); + + sentry.commit(); + return cseqid; +} + +void ThriftHiveMetastoreConcurrentClient::recv_get_fields(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_fields") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -72312,7 +73122,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type_all(std::mapreadMessageEnd(); @@ -72323,12 +73133,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type_all(std::mapsync_.updatePending(fname, mtype, rseqid); @@ -72338,21 +73156,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(); @@ -72363,7 +73182,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; @@ -72392,7 +73211,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(); @@ -72401,7 +73220,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_fields(std::vectorreadMessageEnd(); @@ -72425,7 +73244,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_fields(std::vectorsync_.updatePending(fname, mtype, rseqid); @@ -72435,22 +73254,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(); @@ -72461,7 +73279,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; @@ -72490,7 +73308,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(); @@ -72499,7 +73317,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(); @@ -72523,7 +73341,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); @@ -72533,21 +73351,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(); @@ -72558,7 +73377,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; @@ -72587,7 +73406,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(); @@ -72596,7 +73415,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_schema(std::vectorreadMessageEnd(); @@ -72620,7 +73439,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_schema(std::vectorsync_.updatePending(fname, mtype, rseqid); @@ -72630,22 +73449,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(); @@ -72656,7 +73473,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; @@ -72685,7 +73502,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(); @@ -72694,17 +73511,11 @@ 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 - sentry.commit(); - return; - } if (result.__isset.o1) { sentry.commit(); throw result.o1; @@ -72717,8 +73528,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); @@ -72728,20 +73543,21 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_schema_with_environment_conte } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::create_table(const Table& tbl) +void ThriftHiveMetastoreConcurrentClient::create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context) { - int32_t seqid = send_create_table(tbl); - recv_create_table(seqid); + 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(const Table& tbl) +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", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("create_table_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_create_table_pargs args; + ThriftHiveMetastore_create_table_with_environment_context_pargs args; args.tbl = &tbl; + args.environment_context = &environment_context; args.write(oprot_); oprot_->writeMessageEnd(); @@ -72752,7 +73568,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_environment_context(const int32_t seqid) { int32_t rseqid = 0; @@ -72781,7 +73597,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_environment_context") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -72790,7 +73606,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_environment_context_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -72822,21 +73638,26 @@ 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::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, const std::vector & checkConstraints) { - int32_t seqid = send_create_table_with_environment_context(tbl, environment_context); - recv_create_table_with_environment_context(seqid); + int32_t seqid = send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints); + recv_create_table_with_constraints(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context) +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, const std::vector & checkConstraints) { 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("create_table_with_constraints", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_create_table_with_environment_context_pargs args; + ThriftHiveMetastore_create_table_with_constraints_pargs args; args.tbl = &tbl; - args.environment_context = &environment_context; + args.primaryKeys = &primaryKeys; + args.foreignKeys = &foreignKeys; + args.uniqueConstraints = &uniqueConstraints; + args.notNullConstraints = ¬NullConstraints; + args.defaultConstraints = &defaultConstraints; + args.checkConstraints = &checkConstraints; args.write(oprot_); oprot_->writeMessageEnd(); @@ -72847,7 +73668,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_create_table_with_constraints(const int32_t seqid) { int32_t rseqid = 0; @@ -72876,7 +73697,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("create_table_with_constraints") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -72885,7 +73706,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_create_table_with_constraints_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -72917,25 +73738,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, const std::vector & defaultConstraints) +void ThriftHiveMetastoreConcurrentClient::drop_constraint(const DropConstraintRequest& req) { - int32_t seqid = send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints); - recv_create_table_with_constraints(seqid); + int32_t seqid = send_drop_constraint(req); + recv_drop_constraint(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, const std::vector & defaultConstraints) +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_constraints", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("drop_constraint", ::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; - args.defaultConstraints = &defaultConstraints; + ThriftHiveMetastore_drop_constraint_pargs args; + args.req = &req; args.write(oprot_); oprot_->writeMessageEnd(); @@ -72946,7 +73762,93 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_create_table_with_constraints( return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_constraints(const int32_t seqid) +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; + } + // 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::add_primary_key(const AddPrimaryKeyRequest& req) +{ + int32_t seqid = send_add_primary_key(req); + recv_add_primary_key(seqid); +} + +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("add_primary_key", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_add_primary_key_pargs args; + args.req = &req; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); + + sentry.commit(); + return cseqid; +} + +void ThriftHiveMetastoreConcurrentClient::recv_add_primary_key(const int32_t seqid) { int32_t rseqid = 0; @@ -72975,7 +73877,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(); @@ -72984,7 +73886,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(); @@ -72997,14 +73899,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; } @@ -73016,105 +73910,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_constraints(con } // 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; - } - // 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::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_); @@ -73126,7 +73934,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; @@ -73155,7 +73963,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(); @@ -73164,7 +73972,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(); @@ -73188,19 +73996,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_); @@ -73212,7 +74020,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; @@ -73241,7 +74049,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(); @@ -73250,7 +74058,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(); @@ -73274,19 +74082,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_); @@ -73298,7 +74106,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; @@ -73327,7 +74135,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(); @@ -73336,7 +74144,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(); @@ -73360,19 +74168,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_); @@ -73384,7 +74192,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; @@ -73413,7 +74221,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(); @@ -73422,7 +74230,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(); @@ -73446,19 +74254,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_add_not_null_constraint(const int } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::add_default_constraint(const AddDefaultConstraintRequest& req) +void ThriftHiveMetastoreConcurrentClient::add_check_constraint(const AddCheckConstraintRequest& req) { - int32_t seqid = send_add_default_constraint(req); - recv_add_default_constraint(seqid); + int32_t seqid = send_add_check_constraint(req); + recv_add_check_constraint(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_add_default_constraint(const AddDefaultConstraintRequest& req) +int32_t ThriftHiveMetastoreConcurrentClient::send_add_check_constraint(const AddCheckConstraintRequest& req) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("add_default_constraint", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("add_check_constraint", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_add_default_constraint_pargs args; + ThriftHiveMetastore_add_check_constraint_pargs args; args.req = &req; args.write(oprot_); @@ -73470,7 +74278,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_add_default_constraint(const A return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_add_default_constraint(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_add_check_constraint(const int32_t seqid) { int32_t rseqid = 0; @@ -73499,7 +74307,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_add_default_constraint(const int3 iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("add_default_constraint") != 0) { + if (fname.compare("add_check_constraint") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -73508,7 +74316,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_add_default_constraint(const int3 using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_add_default_constraint_presult result; + ThriftHiveMetastore_add_check_constraint_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -79698,6 +80506,98 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_default_constraints(DefaultCo } // end while(true) } +void ThriftHiveMetastoreConcurrentClient::get_check_constraints(CheckConstraintsResponse& _return, const CheckConstraintsRequest& request) +{ + int32_t seqid = send_get_check_constraints(request); + recv_get_check_constraints(_return, seqid); +} + +int32_t ThriftHiveMetastoreConcurrentClient::send_get_check_constraints(const CheckConstraintsRequest& request) +{ + int32_t cseqid = this->sync_.generateSeqId(); + ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); + oprot_->writeMessageBegin("get_check_constraints", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_check_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_check_constraints(CheckConstraintsResponse& _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_check_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_check_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_check_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 7206e296fd..e10a655e76 100644 --- a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h +++ b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h @@ -40,13 +40,14 @@ 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, const std::vector & defaultConstraints) = 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, const std::vector & checkConstraints) = 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 add_check_constraint(const AddCheckConstraintRequest& 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; @@ -113,6 +114,7 @@ class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookService 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 void get_check_constraints(CheckConstraintsResponse& _return, const CheckConstraintsRequest& 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; @@ -301,7 +303,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 */, const std::vector & /* defaultConstraints */) { + 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 */, const std::vector & /* checkConstraints */) { return; } void drop_constraint(const DropConstraintRequest& /* req */) { @@ -322,6 +324,9 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p void add_default_constraint(const AddDefaultConstraintRequest& /* req */) { return; } + void add_check_constraint(const AddCheckConstraintRequest& /* req */) { + return; + } void drop_table(const std::string& /* dbname */, const std::string& /* name */, const bool /* deleteData */) { return; } @@ -529,6 +534,9 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p void get_default_constraints(DefaultConstraintsResponse& /* _return */, const DefaultConstraintsRequest& /* request */) { return; } + void get_check_constraints(CheckConstraintsResponse& /* _return */, const CheckConstraintsRequest& /* request */) { + return; + } bool update_table_column_statistics(const ColumnStatistics& /* stats_obj */) { bool _return = false; return _return; @@ -3082,13 +3090,14 @@ 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), defaultConstraints(false) {} + _ThriftHiveMetastore_create_table_with_constraints_args__isset() : tbl(false), primaryKeys(false), foreignKeys(false), uniqueConstraints(false), notNullConstraints(false), defaultConstraints(false), checkConstraints(false) {} bool tbl :1; bool primaryKeys :1; bool foreignKeys :1; bool uniqueConstraints :1; bool notNullConstraints :1; bool defaultConstraints :1; + bool checkConstraints :1; } _ThriftHiveMetastore_create_table_with_constraints_args__isset; class ThriftHiveMetastore_create_table_with_constraints_args { @@ -3106,6 +3115,7 @@ class ThriftHiveMetastore_create_table_with_constraints_args { std::vector uniqueConstraints; std::vector notNullConstraints; std::vector defaultConstraints; + std::vector checkConstraints; _ThriftHiveMetastore_create_table_with_constraints_args__isset __isset; @@ -3121,6 +3131,8 @@ class ThriftHiveMetastore_create_table_with_constraints_args { void __set_defaultConstraints(const std::vector & val); + void __set_checkConstraints(const std::vector & val); + bool operator == (const ThriftHiveMetastore_create_table_with_constraints_args & rhs) const { if (!(tbl == rhs.tbl)) @@ -3135,6 +3147,8 @@ class ThriftHiveMetastore_create_table_with_constraints_args { return false; if (!(defaultConstraints == rhs.defaultConstraints)) return false; + if (!(checkConstraints == rhs.checkConstraints)) + return false; return true; } bool operator != (const ThriftHiveMetastore_create_table_with_constraints_args &rhs) const { @@ -3160,6 +3174,7 @@ class ThriftHiveMetastore_create_table_with_constraints_pargs { const std::vector * uniqueConstraints; const std::vector * notNullConstraints; const std::vector * defaultConstraints; + const std::vector * checkConstraints; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -3916,6 +3931,118 @@ class ThriftHiveMetastore_add_default_constraint_presult { }; +typedef struct _ThriftHiveMetastore_add_check_constraint_args__isset { + _ThriftHiveMetastore_add_check_constraint_args__isset() : req(false) {} + bool req :1; +} _ThriftHiveMetastore_add_check_constraint_args__isset; + +class ThriftHiveMetastore_add_check_constraint_args { + public: + + ThriftHiveMetastore_add_check_constraint_args(const ThriftHiveMetastore_add_check_constraint_args&); + ThriftHiveMetastore_add_check_constraint_args& operator=(const ThriftHiveMetastore_add_check_constraint_args&); + ThriftHiveMetastore_add_check_constraint_args() { + } + + virtual ~ThriftHiveMetastore_add_check_constraint_args() throw(); + AddCheckConstraintRequest req; + + _ThriftHiveMetastore_add_check_constraint_args__isset __isset; + + void __set_req(const AddCheckConstraintRequest& val); + + bool operator == (const ThriftHiveMetastore_add_check_constraint_args & rhs) const + { + if (!(req == rhs.req)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_add_check_constraint_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_add_check_constraint_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_add_check_constraint_pargs { + public: + + + virtual ~ThriftHiveMetastore_add_check_constraint_pargs() throw(); + const AddCheckConstraintRequest* req; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_add_check_constraint_result__isset { + _ThriftHiveMetastore_add_check_constraint_result__isset() : o1(false), o2(false) {} + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_add_check_constraint_result__isset; + +class ThriftHiveMetastore_add_check_constraint_result { + public: + + ThriftHiveMetastore_add_check_constraint_result(const ThriftHiveMetastore_add_check_constraint_result&); + ThriftHiveMetastore_add_check_constraint_result& operator=(const ThriftHiveMetastore_add_check_constraint_result&); + ThriftHiveMetastore_add_check_constraint_result() { + } + + virtual ~ThriftHiveMetastore_add_check_constraint_result() throw(); + NoSuchObjectException o1; + MetaException o2; + + _ThriftHiveMetastore_add_check_constraint_result__isset __isset; + + void __set_o1(const NoSuchObjectException& val); + + void __set_o2(const MetaException& val); + + bool operator == (const ThriftHiveMetastore_add_check_constraint_result & rhs) const + { + if (!(o1 == rhs.o1)) + return false; + if (!(o2 == rhs.o2)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_add_check_constraint_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_add_check_constraint_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_add_check_constraint_presult__isset { + _ThriftHiveMetastore_add_check_constraint_presult__isset() : o1(false), o2(false) {} + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_add_check_constraint_presult__isset; + +class ThriftHiveMetastore_add_check_constraint_presult { + public: + + + virtual ~ThriftHiveMetastore_add_check_constraint_presult() throw(); + NoSuchObjectException o1; + MetaException o2; + + _ThriftHiveMetastore_add_check_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; @@ -12676,6 +12803,126 @@ class ThriftHiveMetastore_get_default_constraints_presult { }; +typedef struct _ThriftHiveMetastore_get_check_constraints_args__isset { + _ThriftHiveMetastore_get_check_constraints_args__isset() : request(false) {} + bool request :1; +} _ThriftHiveMetastore_get_check_constraints_args__isset; + +class ThriftHiveMetastore_get_check_constraints_args { + public: + + ThriftHiveMetastore_get_check_constraints_args(const ThriftHiveMetastore_get_check_constraints_args&); + ThriftHiveMetastore_get_check_constraints_args& operator=(const ThriftHiveMetastore_get_check_constraints_args&); + ThriftHiveMetastore_get_check_constraints_args() { + } + + virtual ~ThriftHiveMetastore_get_check_constraints_args() throw(); + CheckConstraintsRequest request; + + _ThriftHiveMetastore_get_check_constraints_args__isset __isset; + + void __set_request(const CheckConstraintsRequest& val); + + bool operator == (const ThriftHiveMetastore_get_check_constraints_args & rhs) const + { + if (!(request == rhs.request)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_check_constraints_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_check_constraints_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_get_check_constraints_pargs { + public: + + + virtual ~ThriftHiveMetastore_get_check_constraints_pargs() throw(); + const CheckConstraintsRequest* request; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_check_constraints_result__isset { + _ThriftHiveMetastore_get_check_constraints_result__isset() : success(false), o1(false), o2(false) {} + bool success :1; + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_get_check_constraints_result__isset; + +class ThriftHiveMetastore_get_check_constraints_result { + public: + + ThriftHiveMetastore_get_check_constraints_result(const ThriftHiveMetastore_get_check_constraints_result&); + ThriftHiveMetastore_get_check_constraints_result& operator=(const ThriftHiveMetastore_get_check_constraints_result&); + ThriftHiveMetastore_get_check_constraints_result() { + } + + virtual ~ThriftHiveMetastore_get_check_constraints_result() throw(); + CheckConstraintsResponse success; + MetaException o1; + NoSuchObjectException o2; + + _ThriftHiveMetastore_get_check_constraints_result__isset __isset; + + void __set_success(const CheckConstraintsResponse& val); + + void __set_o1(const MetaException& val); + + void __set_o2(const NoSuchObjectException& val); + + bool operator == (const ThriftHiveMetastore_get_check_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_check_constraints_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_check_constraints_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_check_constraints_presult__isset { + _ThriftHiveMetastore_get_check_constraints_presult__isset() : success(false), o1(false), o2(false) {} + bool success :1; + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_get_check_constraints_presult__isset; + +class ThriftHiveMetastore_get_check_constraints_presult { + public: + + + virtual ~ThriftHiveMetastore_get_check_constraints_presult() throw(); + CheckConstraintsResponse* success; + MetaException o1; + NoSuchObjectException o2; + + _ThriftHiveMetastore_get_check_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; @@ -24734,8 +24981,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, 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 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, const std::vector & checkConstraints); + 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, const std::vector & checkConstraints); void recv_create_table_with_constraints(); void drop_constraint(const DropConstraintRequest& req); void send_drop_constraint(const DropConstraintRequest& req); @@ -24755,6 +25002,9 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public void add_default_constraint(const AddDefaultConstraintRequest& req); void send_add_default_constraint(const AddDefaultConstraintRequest& req); void recv_add_default_constraint(); + void add_check_constraint(const AddCheckConstraintRequest& req); + void send_add_check_constraint(const AddCheckConstraintRequest& req); + void recv_add_check_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(); @@ -24953,6 +25203,9 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public void get_default_constraints(DefaultConstraintsResponse& _return, const DefaultConstraintsRequest& request); void send_get_default_constraints(const DefaultConstraintsRequest& request); void recv_get_default_constraints(DefaultConstraintsResponse& _return); + void get_check_constraints(CheckConstraintsResponse& _return, const CheckConstraintsRequest& request); + void send_get_check_constraints(const CheckConstraintsRequest& request); + void recv_get_check_constraints(CheckConstraintsResponse& _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(); @@ -25297,6 +25550,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP 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_add_check_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); @@ -25363,6 +25617,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP 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_get_check_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); @@ -25495,6 +25750,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP 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_["add_check_constraint"] = &ThriftHiveMetastoreProcessor::process_add_check_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; @@ -25561,6 +25817,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP 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_["get_check_constraints"] = &ThriftHiveMetastoreProcessor::process_get_check_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; @@ -25869,13 +26126,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, const std::vector & defaultConstraints) { + 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, const std::vector & checkConstraints) { 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, defaultConstraints); + ifaces_[i]->create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints); } - ifaces_[i]->create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints); + ifaces_[i]->create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints); } void drop_constraint(const DropConstraintRequest& req) { @@ -25932,6 +26189,15 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi ifaces_[i]->add_default_constraint(req); } + void add_check_constraint(const AddCheckConstraintRequest& req) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->add_check_constraint(req); + } + ifaces_[i]->add_check_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; @@ -26570,6 +26836,16 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi return; } + void get_check_constraints(CheckConstraintsResponse& _return, const CheckConstraintsRequest& request) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->get_check_constraints(_return, request); + } + ifaces_[i]->get_check_constraints(_return, request); + return; + } + bool update_table_column_statistics(const ColumnStatistics& stats_obj) { size_t sz = ifaces_.size(); size_t i = 0; @@ -27633,8 +27909,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, 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 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, const std::vector & checkConstraints); + 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, const std::vector & checkConstraints); void recv_create_table_with_constraints(const int32_t seqid); void drop_constraint(const DropConstraintRequest& req); int32_t send_drop_constraint(const DropConstraintRequest& req); @@ -27654,6 +27930,9 @@ class ThriftHiveMetastoreConcurrentClient : virtual public ThriftHiveMetastoreIf 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 add_check_constraint(const AddCheckConstraintRequest& req); + int32_t send_add_check_constraint(const AddCheckConstraintRequest& req); + void recv_add_check_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); @@ -27852,6 +28131,9 @@ class ThriftHiveMetastoreConcurrentClient : virtual public ThriftHiveMetastoreIf 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); + void get_check_constraints(CheckConstraintsResponse& _return, const CheckConstraintsRequest& request); + int32_t send_get_check_constraints(const CheckConstraintsRequest& request); + void recv_get_check_constraints(CheckConstraintsResponse& _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 8d9ad254a3..d7319e2475 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, const std::vector & defaultConstraints) { + 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, const std::vector & checkConstraints) { // Your implementation goes here printf("create_table_with_constraints\n"); } @@ -147,6 +147,11 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("add_default_constraint\n"); } + void add_check_constraint(const AddCheckConstraintRequest& req) { + // Your implementation goes here + printf("add_check_constraint\n"); + } + void drop_table(const std::string& dbname, const std::string& name, const bool deleteData) { // Your implementation goes here printf("drop_table\n"); @@ -477,6 +482,11 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("get_default_constraints\n"); } + void get_check_constraints(CheckConstraintsResponse& _return, const CheckConstraintsRequest& request) { + // Your implementation goes here + printf("get_check_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 4a7c6bf72e..9b03dd7a51 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 @@ -1738,6 +1738,232 @@ void SQLDefaultConstraint::printTo(std::ostream& out) const { } +SQLCheckConstraint::~SQLCheckConstraint() throw() { +} + + +void SQLCheckConstraint::__set_table_db(const std::string& val) { + this->table_db = val; +} + +void SQLCheckConstraint::__set_table_name(const std::string& val) { + this->table_name = val; +} + +void SQLCheckConstraint::__set_column_name(const std::string& val) { + this->column_name = val; +} + +void SQLCheckConstraint::__set_check_expression(const std::string& val) { + this->check_expression = val; +} + +void SQLCheckConstraint::__set_dc_name(const std::string& val) { + this->dc_name = val; +} + +void SQLCheckConstraint::__set_enable_cstr(const bool val) { + this->enable_cstr = val; +} + +void SQLCheckConstraint::__set_validate_cstr(const bool val) { + this->validate_cstr = val; +} + +void SQLCheckConstraint::__set_rely_cstr(const bool val) { + this->rely_cstr = val; +} + +uint32_t SQLCheckConstraint::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->check_expression); + this->__isset.check_expression = 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 SQLCheckConstraint::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("SQLCheckConstraint"); + + 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("check_expression", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->check_expression); + 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(SQLCheckConstraint &a, SQLCheckConstraint &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.check_expression, b.check_expression); + 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); +} + +SQLCheckConstraint::SQLCheckConstraint(const SQLCheckConstraint& other14) { + table_db = other14.table_db; + table_name = other14.table_name; + column_name = other14.column_name; + check_expression = other14.check_expression; + dc_name = other14.dc_name; + enable_cstr = other14.enable_cstr; + validate_cstr = other14.validate_cstr; + rely_cstr = other14.rely_cstr; + __isset = other14.__isset; +} +SQLCheckConstraint& SQLCheckConstraint::operator=(const SQLCheckConstraint& other15) { + table_db = other15.table_db; + table_name = other15.table_name; + column_name = other15.column_name; + check_expression = other15.check_expression; + dc_name = other15.dc_name; + enable_cstr = other15.enable_cstr; + validate_cstr = other15.validate_cstr; + rely_cstr = other15.rely_cstr; + __isset = other15.__isset; + return *this; +} +void SQLCheckConstraint::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "SQLCheckConstraint("; + out << "table_db=" << to_string(table_db); + out << ", " << "table_name=" << to_string(table_name); + out << ", " << "column_name=" << to_string(column_name); + out << ", " << "check_expression=" << to_string(check_expression); + 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() { } @@ -1810,14 +2036,14 @@ uint32_t Type::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fields.clear(); - 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) + uint32_t _size16; + ::apache::thrift::protocol::TType _etype19; + xfer += iprot->readListBegin(_etype19, _size16); + this->fields.resize(_size16); + uint32_t _i20; + for (_i20 = 0; _i20 < _size16; ++_i20) { - xfer += this->fields[_i18].read(iprot); + xfer += this->fields[_i20].read(iprot); } xfer += iprot->readListEnd(); } @@ -1861,10 +2087,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 _iter19; - for (_iter19 = this->fields.begin(); _iter19 != this->fields.end(); ++_iter19) + std::vector ::const_iterator _iter21; + for (_iter21 = this->fields.begin(); _iter21 != this->fields.end(); ++_iter21) { - xfer += (*_iter19).write(oprot); + xfer += (*_iter21).write(oprot); } xfer += oprot->writeListEnd(); } @@ -1884,19 +2110,19 @@ void swap(Type &a, Type &b) { swap(a.__isset, b.__isset); } -Type::Type(const Type& other20) { - name = other20.name; - type1 = other20.type1; - type2 = other20.type2; - fields = other20.fields; - __isset = other20.__isset; +Type::Type(const Type& other22) { + name = other22.name; + type1 = other22.type1; + type2 = other22.type2; + fields = other22.fields; + __isset = other22.__isset; } -Type& Type::operator=(const Type& other21) { - name = other21.name; - type1 = other21.type1; - type2 = other21.type2; - fields = other21.fields; - __isset = other21.__isset; +Type& Type::operator=(const Type& other23) { + name = other23.name; + type1 = other23.type1; + type2 = other23.type2; + fields = other23.fields; + __isset = other23.__isset; return *this; } void Type::printTo(std::ostream& out) const { @@ -1957,9 +2183,9 @@ uint32_t HiveObjectRef::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast22; - xfer += iprot->readI32(ecast22); - this->objectType = (HiveObjectType::type)ecast22; + int32_t ecast24; + xfer += iprot->readI32(ecast24); + this->objectType = (HiveObjectType::type)ecast24; this->__isset.objectType = true; } else { xfer += iprot->skip(ftype); @@ -1985,14 +2211,14 @@ uint32_t HiveObjectRef::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partValues.clear(); - 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) + uint32_t _size25; + ::apache::thrift::protocol::TType _etype28; + xfer += iprot->readListBegin(_etype28, _size25); + this->partValues.resize(_size25); + uint32_t _i29; + for (_i29 = 0; _i29 < _size25; ++_i29) { - xfer += iprot->readString(this->partValues[_i27]); + xfer += iprot->readString(this->partValues[_i29]); } xfer += iprot->readListEnd(); } @@ -2041,10 +2267,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 _iter28; - for (_iter28 = this->partValues.begin(); _iter28 != this->partValues.end(); ++_iter28) + std::vector ::const_iterator _iter30; + for (_iter30 = this->partValues.begin(); _iter30 != this->partValues.end(); ++_iter30) { - xfer += oprot->writeString((*_iter28)); + xfer += oprot->writeString((*_iter30)); } xfer += oprot->writeListEnd(); } @@ -2069,21 +2295,21 @@ void swap(HiveObjectRef &a, HiveObjectRef &b) { swap(a.__isset, b.__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; +HiveObjectRef::HiveObjectRef(const HiveObjectRef& other31) { + objectType = other31.objectType; + dbName = other31.dbName; + objectName = other31.objectName; + partValues = other31.partValues; + columnName = other31.columnName; + __isset = other31.__isset; +} +HiveObjectRef& HiveObjectRef::operator=(const HiveObjectRef& other32) { + objectType = other32.objectType; + dbName = other32.dbName; + objectName = other32.objectName; + partValues = other32.partValues; + columnName = other32.columnName; + __isset = other32.__isset; return *this; } void HiveObjectRef::printTo(std::ostream& out) const { @@ -2169,9 +2395,9 @@ uint32_t PrivilegeGrantInfo::read(::apache::thrift::protocol::TProtocol* iprot) break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast31; - xfer += iprot->readI32(ecast31); - this->grantorType = (PrincipalType::type)ecast31; + int32_t ecast33; + xfer += iprot->readI32(ecast33); + this->grantorType = (PrincipalType::type)ecast33; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -2237,21 +2463,21 @@ void swap(PrivilegeGrantInfo &a, PrivilegeGrantInfo &b) { swap(a.__isset, b.__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; +PrivilegeGrantInfo::PrivilegeGrantInfo(const PrivilegeGrantInfo& other34) { + privilege = other34.privilege; + createTime = other34.createTime; + grantor = other34.grantor; + grantorType = other34.grantorType; + grantOption = other34.grantOption; + __isset = other34.__isset; +} +PrivilegeGrantInfo& PrivilegeGrantInfo::operator=(const PrivilegeGrantInfo& other35) { + privilege = other35.privilege; + createTime = other35.createTime; + grantor = other35.grantor; + grantorType = other35.grantorType; + grantOption = other35.grantOption; + __isset = other35.__isset; return *this; } void PrivilegeGrantInfo::printTo(std::ostream& out) const { @@ -2325,9 +2551,9 @@ uint32_t HiveObjectPrivilege::read(::apache::thrift::protocol::TProtocol* iprot) break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast34; - xfer += iprot->readI32(ecast34); - this->principalType = (PrincipalType::type)ecast34; + int32_t ecast36; + xfer += iprot->readI32(ecast36); + this->principalType = (PrincipalType::type)ecast36; this->__isset.principalType = true; } else { xfer += iprot->skip(ftype); @@ -2388,19 +2614,19 @@ void swap(HiveObjectPrivilege &a, HiveObjectPrivilege &b) { swap(a.__isset, b.__isset); } -HiveObjectPrivilege::HiveObjectPrivilege(const HiveObjectPrivilege& other35) { - hiveObject = other35.hiveObject; - principalName = other35.principalName; - principalType = other35.principalType; - grantInfo = other35.grantInfo; - __isset = other35.__isset; +HiveObjectPrivilege::HiveObjectPrivilege(const HiveObjectPrivilege& other37) { + hiveObject = other37.hiveObject; + principalName = other37.principalName; + principalType = other37.principalType; + grantInfo = other37.grantInfo; + __isset = other37.__isset; } -HiveObjectPrivilege& HiveObjectPrivilege::operator=(const HiveObjectPrivilege& other36) { - hiveObject = other36.hiveObject; - principalName = other36.principalName; - principalType = other36.principalType; - grantInfo = other36.grantInfo; - __isset = other36.__isset; +HiveObjectPrivilege& HiveObjectPrivilege::operator=(const HiveObjectPrivilege& other38) { + hiveObject = other38.hiveObject; + principalName = other38.principalName; + principalType = other38.principalType; + grantInfo = other38.grantInfo; + __isset = other38.__isset; return *this; } void HiveObjectPrivilege::printTo(std::ostream& out) const { @@ -2447,14 +2673,14 @@ uint32_t PrivilegeBag::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->privileges.clear(); - 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) + uint32_t _size39; + ::apache::thrift::protocol::TType _etype42; + xfer += iprot->readListBegin(_etype42, _size39); + this->privileges.resize(_size39); + uint32_t _i43; + for (_i43 = 0; _i43 < _size39; ++_i43) { - xfer += this->privileges[_i41].read(iprot); + xfer += this->privileges[_i43].read(iprot); } xfer += iprot->readListEnd(); } @@ -2483,10 +2709,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 _iter42; - for (_iter42 = this->privileges.begin(); _iter42 != this->privileges.end(); ++_iter42) + std::vector ::const_iterator _iter44; + for (_iter44 = this->privileges.begin(); _iter44 != this->privileges.end(); ++_iter44) { - xfer += (*_iter42).write(oprot); + xfer += (*_iter44).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2503,13 +2729,13 @@ void swap(PrivilegeBag &a, PrivilegeBag &b) { swap(a.__isset, b.__isset); } -PrivilegeBag::PrivilegeBag(const PrivilegeBag& other43) { - privileges = other43.privileges; - __isset = other43.__isset; +PrivilegeBag::PrivilegeBag(const PrivilegeBag& other45) { + privileges = other45.privileges; + __isset = other45.__isset; } -PrivilegeBag& PrivilegeBag::operator=(const PrivilegeBag& other44) { - privileges = other44.privileges; - __isset = other44.__isset; +PrivilegeBag& PrivilegeBag::operator=(const PrivilegeBag& other46) { + privileges = other46.privileges; + __isset = other46.__isset; return *this; } void PrivilegeBag::printTo(std::ostream& out) const { @@ -2561,26 +2787,26 @@ uint32_t PrincipalPrivilegeSet::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->userPrivileges.clear(); - 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) + uint32_t _size47; + ::apache::thrift::protocol::TType _ktype48; + ::apache::thrift::protocol::TType _vtype49; + xfer += iprot->readMapBegin(_ktype48, _vtype49, _size47); + uint32_t _i51; + for (_i51 = 0; _i51 < _size47; ++_i51) { - std::string _key50; - xfer += iprot->readString(_key50); - std::vector & _val51 = this->userPrivileges[_key50]; + std::string _key52; + xfer += iprot->readString(_key52); + std::vector & _val53 = this->userPrivileges[_key52]; { - _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) + _val53.clear(); + uint32_t _size54; + ::apache::thrift::protocol::TType _etype57; + xfer += iprot->readListBegin(_etype57, _size54); + _val53.resize(_size54); + uint32_t _i58; + for (_i58 = 0; _i58 < _size54; ++_i58) { - xfer += _val51[_i56].read(iprot); + xfer += _val53[_i58].read(iprot); } xfer += iprot->readListEnd(); } @@ -2596,26 +2822,26 @@ uint32_t PrincipalPrivilegeSet::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->groupPrivileges.clear(); - 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) + uint32_t _size59; + ::apache::thrift::protocol::TType _ktype60; + ::apache::thrift::protocol::TType _vtype61; + xfer += iprot->readMapBegin(_ktype60, _vtype61, _size59); + uint32_t _i63; + for (_i63 = 0; _i63 < _size59; ++_i63) { - std::string _key62; - xfer += iprot->readString(_key62); - std::vector & _val63 = this->groupPrivileges[_key62]; + std::string _key64; + xfer += iprot->readString(_key64); + std::vector & _val65 = this->groupPrivileges[_key64]; { - _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) + _val65.clear(); + uint32_t _size66; + ::apache::thrift::protocol::TType _etype69; + xfer += iprot->readListBegin(_etype69, _size66); + _val65.resize(_size66); + uint32_t _i70; + for (_i70 = 0; _i70 < _size66; ++_i70) { - xfer += _val63[_i68].read(iprot); + xfer += _val65[_i70].read(iprot); } xfer += iprot->readListEnd(); } @@ -2631,26 +2857,26 @@ uint32_t PrincipalPrivilegeSet::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->rolePrivileges.clear(); - 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) + uint32_t _size71; + ::apache::thrift::protocol::TType _ktype72; + ::apache::thrift::protocol::TType _vtype73; + xfer += iprot->readMapBegin(_ktype72, _vtype73, _size71); + uint32_t _i75; + for (_i75 = 0; _i75 < _size71; ++_i75) { - std::string _key74; - xfer += iprot->readString(_key74); - std::vector & _val75 = this->rolePrivileges[_key74]; + std::string _key76; + xfer += iprot->readString(_key76); + std::vector & _val77 = this->rolePrivileges[_key76]; { - _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) + _val77.clear(); + uint32_t _size78; + ::apache::thrift::protocol::TType _etype81; + xfer += iprot->readListBegin(_etype81, _size78); + _val77.resize(_size78); + uint32_t _i82; + for (_i82 = 0; _i82 < _size78; ++_i82) { - xfer += _val75[_i80].read(iprot); + xfer += _val77[_i82].read(iprot); } xfer += iprot->readListEnd(); } @@ -2682,16 +2908,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 _iter81; - for (_iter81 = this->userPrivileges.begin(); _iter81 != this->userPrivileges.end(); ++_iter81) + std::map > ::const_iterator _iter83; + for (_iter83 = this->userPrivileges.begin(); _iter83 != this->userPrivileges.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(); } @@ -2703,16 +2929,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 _iter83; - for (_iter83 = this->groupPrivileges.begin(); _iter83 != this->groupPrivileges.end(); ++_iter83) + std::map > ::const_iterator _iter85; + for (_iter85 = this->groupPrivileges.begin(); _iter85 != this->groupPrivileges.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(); } @@ -2724,16 +2950,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 _iter85; - for (_iter85 = this->rolePrivileges.begin(); _iter85 != this->rolePrivileges.end(); ++_iter85) + std::map > ::const_iterator _iter87; + for (_iter87 = this->rolePrivileges.begin(); _iter87 != this->rolePrivileges.end(); ++_iter87) { - xfer += oprot->writeString(_iter85->first); + xfer += oprot->writeString(_iter87->first); { - 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 += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter87->second.size())); + std::vector ::const_iterator _iter88; + for (_iter88 = _iter87->second.begin(); _iter88 != _iter87->second.end(); ++_iter88) { - xfer += (*_iter86).write(oprot); + xfer += (*_iter88).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2755,17 +2981,17 @@ void swap(PrincipalPrivilegeSet &a, PrincipalPrivilegeSet &b) { swap(a.__isset, b.__isset); } -PrincipalPrivilegeSet::PrincipalPrivilegeSet(const PrincipalPrivilegeSet& other87) { - userPrivileges = other87.userPrivileges; - groupPrivileges = other87.groupPrivileges; - rolePrivileges = other87.rolePrivileges; - __isset = other87.__isset; +PrincipalPrivilegeSet::PrincipalPrivilegeSet(const PrincipalPrivilegeSet& other89) { + userPrivileges = other89.userPrivileges; + groupPrivileges = other89.groupPrivileges; + rolePrivileges = other89.rolePrivileges; + __isset = other89.__isset; } -PrincipalPrivilegeSet& PrincipalPrivilegeSet::operator=(const PrincipalPrivilegeSet& other88) { - userPrivileges = other88.userPrivileges; - groupPrivileges = other88.groupPrivileges; - rolePrivileges = other88.rolePrivileges; - __isset = other88.__isset; +PrincipalPrivilegeSet& PrincipalPrivilegeSet::operator=(const PrincipalPrivilegeSet& other90) { + userPrivileges = other90.userPrivileges; + groupPrivileges = other90.groupPrivileges; + rolePrivileges = other90.rolePrivileges; + __isset = other90.__isset; return *this; } void PrincipalPrivilegeSet::printTo(std::ostream& out) const { @@ -2818,9 +3044,9 @@ uint32_t GrantRevokePrivilegeRequest::read(::apache::thrift::protocol::TProtocol { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast89; - xfer += iprot->readI32(ecast89); - this->requestType = (GrantRevokeType::type)ecast89; + int32_t ecast91; + xfer += iprot->readI32(ecast91); + this->requestType = (GrantRevokeType::type)ecast91; this->__isset.requestType = true; } else { xfer += iprot->skip(ftype); @@ -2885,17 +3111,17 @@ void swap(GrantRevokePrivilegeRequest &a, GrantRevokePrivilegeRequest &b) { swap(a.__isset, b.__isset); } -GrantRevokePrivilegeRequest::GrantRevokePrivilegeRequest(const GrantRevokePrivilegeRequest& other90) { - requestType = other90.requestType; - privileges = other90.privileges; - revokeGrantOption = other90.revokeGrantOption; - __isset = other90.__isset; +GrantRevokePrivilegeRequest::GrantRevokePrivilegeRequest(const GrantRevokePrivilegeRequest& other92) { + requestType = other92.requestType; + privileges = other92.privileges; + revokeGrantOption = other92.revokeGrantOption; + __isset = other92.__isset; } -GrantRevokePrivilegeRequest& GrantRevokePrivilegeRequest::operator=(const GrantRevokePrivilegeRequest& other91) { - requestType = other91.requestType; - privileges = other91.privileges; - revokeGrantOption = other91.revokeGrantOption; - __isset = other91.__isset; +GrantRevokePrivilegeRequest& GrantRevokePrivilegeRequest::operator=(const GrantRevokePrivilegeRequest& other93) { + requestType = other93.requestType; + privileges = other93.privileges; + revokeGrantOption = other93.revokeGrantOption; + __isset = other93.__isset; return *this; } void GrantRevokePrivilegeRequest::printTo(std::ostream& out) const { @@ -2979,13 +3205,13 @@ void swap(GrantRevokePrivilegeResponse &a, GrantRevokePrivilegeResponse &b) { swap(a.__isset, b.__isset); } -GrantRevokePrivilegeResponse::GrantRevokePrivilegeResponse(const GrantRevokePrivilegeResponse& other92) { - success = other92.success; - __isset = other92.__isset; +GrantRevokePrivilegeResponse::GrantRevokePrivilegeResponse(const GrantRevokePrivilegeResponse& other94) { + success = other94.success; + __isset = other94.__isset; } -GrantRevokePrivilegeResponse& GrantRevokePrivilegeResponse::operator=(const GrantRevokePrivilegeResponse& other93) { - success = other93.success; - __isset = other93.__isset; +GrantRevokePrivilegeResponse& GrantRevokePrivilegeResponse::operator=(const GrantRevokePrivilegeResponse& other95) { + success = other95.success; + __isset = other95.__isset; return *this; } void GrantRevokePrivilegeResponse::printTo(std::ostream& out) const { @@ -3099,17 +3325,17 @@ void swap(Role &a, Role &b) { swap(a.__isset, b.__isset); } -Role::Role(const Role& other94) { - roleName = other94.roleName; - createTime = other94.createTime; - ownerName = other94.ownerName; - __isset = other94.__isset; +Role::Role(const Role& other96) { + roleName = other96.roleName; + createTime = other96.createTime; + ownerName = other96.ownerName; + __isset = other96.__isset; } -Role& Role::operator=(const Role& other95) { - roleName = other95.roleName; - createTime = other95.createTime; - ownerName = other95.ownerName; - __isset = other95.__isset; +Role& Role::operator=(const Role& other97) { + roleName = other97.roleName; + createTime = other97.createTime; + ownerName = other97.ownerName; + __isset = other97.__isset; return *this; } void Role::printTo(std::ostream& out) const { @@ -3193,9 +3419,9 @@ uint32_t RolePrincipalGrant::read(::apache::thrift::protocol::TProtocol* iprot) break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast96; - xfer += iprot->readI32(ecast96); - this->principalType = (PrincipalType::type)ecast96; + int32_t ecast98; + xfer += iprot->readI32(ecast98); + this->principalType = (PrincipalType::type)ecast98; this->__isset.principalType = true; } else { xfer += iprot->skip(ftype); @@ -3227,9 +3453,9 @@ uint32_t RolePrincipalGrant::read(::apache::thrift::protocol::TProtocol* iprot) break; case 7: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast97; - xfer += iprot->readI32(ecast97); - this->grantorPrincipalType = (PrincipalType::type)ecast97; + int32_t ecast99; + xfer += iprot->readI32(ecast99); + this->grantorPrincipalType = (PrincipalType::type)ecast99; this->__isset.grantorPrincipalType = true; } else { xfer += iprot->skip(ftype); @@ -3297,25 +3523,25 @@ void swap(RolePrincipalGrant &a, RolePrincipalGrant &b) { swap(a.__isset, b.__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; +RolePrincipalGrant::RolePrincipalGrant(const RolePrincipalGrant& other100) { + roleName = other100.roleName; + principalName = other100.principalName; + principalType = other100.principalType; + grantOption = other100.grantOption; + grantTime = other100.grantTime; + grantorName = other100.grantorName; + grantorPrincipalType = other100.grantorPrincipalType; + __isset = other100.__isset; +} +RolePrincipalGrant& RolePrincipalGrant::operator=(const RolePrincipalGrant& other101) { + roleName = other101.roleName; + principalName = other101.principalName; + principalType = other101.principalType; + grantOption = other101.grantOption; + grantTime = other101.grantTime; + grantorName = other101.grantorName; + grantorPrincipalType = other101.grantorPrincipalType; + __isset = other101.__isset; return *this; } void RolePrincipalGrant::printTo(std::ostream& out) const { @@ -3377,9 +3603,9 @@ uint32_t GetRoleGrantsForPrincipalRequest::read(::apache::thrift::protocol::TPro break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast100; - xfer += iprot->readI32(ecast100); - this->principal_type = (PrincipalType::type)ecast100; + int32_t ecast102; + xfer += iprot->readI32(ecast102); + this->principal_type = (PrincipalType::type)ecast102; isset_principal_type = true; } else { xfer += iprot->skip(ftype); @@ -3425,13 +3651,13 @@ void swap(GetRoleGrantsForPrincipalRequest &a, GetRoleGrantsForPrincipalRequest swap(a.principal_type, b.principal_type); } -GetRoleGrantsForPrincipalRequest::GetRoleGrantsForPrincipalRequest(const GetRoleGrantsForPrincipalRequest& other101) { - principal_name = other101.principal_name; - principal_type = other101.principal_type; +GetRoleGrantsForPrincipalRequest::GetRoleGrantsForPrincipalRequest(const GetRoleGrantsForPrincipalRequest& other103) { + principal_name = other103.principal_name; + principal_type = other103.principal_type; } -GetRoleGrantsForPrincipalRequest& GetRoleGrantsForPrincipalRequest::operator=(const GetRoleGrantsForPrincipalRequest& other102) { - principal_name = other102.principal_name; - principal_type = other102.principal_type; +GetRoleGrantsForPrincipalRequest& GetRoleGrantsForPrincipalRequest::operator=(const GetRoleGrantsForPrincipalRequest& other104) { + principal_name = other104.principal_name; + principal_type = other104.principal_type; return *this; } void GetRoleGrantsForPrincipalRequest::printTo(std::ostream& out) const { @@ -3477,14 +3703,14 @@ uint32_t GetRoleGrantsForPrincipalResponse::read(::apache::thrift::protocol::TPr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->principalGrants.clear(); - 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) + uint32_t _size105; + ::apache::thrift::protocol::TType _etype108; + xfer += iprot->readListBegin(_etype108, _size105); + this->principalGrants.resize(_size105); + uint32_t _i109; + for (_i109 = 0; _i109 < _size105; ++_i109) { - xfer += this->principalGrants[_i107].read(iprot); + xfer += this->principalGrants[_i109].read(iprot); } xfer += iprot->readListEnd(); } @@ -3515,10 +3741,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 _iter108; - for (_iter108 = this->principalGrants.begin(); _iter108 != this->principalGrants.end(); ++_iter108) + std::vector ::const_iterator _iter110; + for (_iter110 = this->principalGrants.begin(); _iter110 != this->principalGrants.end(); ++_iter110) { - xfer += (*_iter108).write(oprot); + xfer += (*_iter110).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3534,11 +3760,11 @@ void swap(GetRoleGrantsForPrincipalResponse &a, GetRoleGrantsForPrincipalRespons swap(a.principalGrants, b.principalGrants); } -GetRoleGrantsForPrincipalResponse::GetRoleGrantsForPrincipalResponse(const GetRoleGrantsForPrincipalResponse& other109) { - principalGrants = other109.principalGrants; +GetRoleGrantsForPrincipalResponse::GetRoleGrantsForPrincipalResponse(const GetRoleGrantsForPrincipalResponse& other111) { + principalGrants = other111.principalGrants; } -GetRoleGrantsForPrincipalResponse& GetRoleGrantsForPrincipalResponse::operator=(const GetRoleGrantsForPrincipalResponse& other110) { - principalGrants = other110.principalGrants; +GetRoleGrantsForPrincipalResponse& GetRoleGrantsForPrincipalResponse::operator=(const GetRoleGrantsForPrincipalResponse& other112) { + principalGrants = other112.principalGrants; return *this; } void GetRoleGrantsForPrincipalResponse::printTo(std::ostream& out) const { @@ -3620,11 +3846,11 @@ void swap(GetPrincipalsInRoleRequest &a, GetPrincipalsInRoleRequest &b) { swap(a.roleName, b.roleName); } -GetPrincipalsInRoleRequest::GetPrincipalsInRoleRequest(const GetPrincipalsInRoleRequest& other111) { - roleName = other111.roleName; +GetPrincipalsInRoleRequest::GetPrincipalsInRoleRequest(const GetPrincipalsInRoleRequest& other113) { + roleName = other113.roleName; } -GetPrincipalsInRoleRequest& GetPrincipalsInRoleRequest::operator=(const GetPrincipalsInRoleRequest& other112) { - roleName = other112.roleName; +GetPrincipalsInRoleRequest& GetPrincipalsInRoleRequest::operator=(const GetPrincipalsInRoleRequest& other114) { + roleName = other114.roleName; return *this; } void GetPrincipalsInRoleRequest::printTo(std::ostream& out) const { @@ -3669,14 +3895,14 @@ uint32_t GetPrincipalsInRoleResponse::read(::apache::thrift::protocol::TProtocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->principalGrants.clear(); - 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) + uint32_t _size115; + ::apache::thrift::protocol::TType _etype118; + xfer += iprot->readListBegin(_etype118, _size115); + this->principalGrants.resize(_size115); + uint32_t _i119; + for (_i119 = 0; _i119 < _size115; ++_i119) { - xfer += this->principalGrants[_i117].read(iprot); + xfer += this->principalGrants[_i119].read(iprot); } xfer += iprot->readListEnd(); } @@ -3707,10 +3933,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 _iter118; - for (_iter118 = this->principalGrants.begin(); _iter118 != this->principalGrants.end(); ++_iter118) + std::vector ::const_iterator _iter120; + for (_iter120 = this->principalGrants.begin(); _iter120 != this->principalGrants.end(); ++_iter120) { - xfer += (*_iter118).write(oprot); + xfer += (*_iter120).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3726,11 +3952,11 @@ void swap(GetPrincipalsInRoleResponse &a, GetPrincipalsInRoleResponse &b) { swap(a.principalGrants, b.principalGrants); } -GetPrincipalsInRoleResponse::GetPrincipalsInRoleResponse(const GetPrincipalsInRoleResponse& other119) { - principalGrants = other119.principalGrants; +GetPrincipalsInRoleResponse::GetPrincipalsInRoleResponse(const GetPrincipalsInRoleResponse& other121) { + principalGrants = other121.principalGrants; } -GetPrincipalsInRoleResponse& GetPrincipalsInRoleResponse::operator=(const GetPrincipalsInRoleResponse& other120) { - principalGrants = other120.principalGrants; +GetPrincipalsInRoleResponse& GetPrincipalsInRoleResponse::operator=(const GetPrincipalsInRoleResponse& other122) { + principalGrants = other122.principalGrants; return *this; } void GetPrincipalsInRoleResponse::printTo(std::ostream& out) const { @@ -3799,9 +4025,9 @@ uint32_t GrantRevokeRoleRequest::read(::apache::thrift::protocol::TProtocol* ipr { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast121; - xfer += iprot->readI32(ecast121); - this->requestType = (GrantRevokeType::type)ecast121; + int32_t ecast123; + xfer += iprot->readI32(ecast123); + this->requestType = (GrantRevokeType::type)ecast123; this->__isset.requestType = true; } else { xfer += iprot->skip(ftype); @@ -3825,9 +4051,9 @@ uint32_t GrantRevokeRoleRequest::read(::apache::thrift::protocol::TProtocol* ipr break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast122; - xfer += iprot->readI32(ecast122); - this->principalType = (PrincipalType::type)ecast122; + int32_t ecast124; + xfer += iprot->readI32(ecast124); + this->principalType = (PrincipalType::type)ecast124; this->__isset.principalType = true; } else { xfer += iprot->skip(ftype); @@ -3843,9 +4069,9 @@ uint32_t GrantRevokeRoleRequest::read(::apache::thrift::protocol::TProtocol* ipr break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast123; - xfer += iprot->readI32(ecast123); - this->grantorType = (PrincipalType::type)ecast123; + int32_t ecast125; + xfer += iprot->readI32(ecast125); + this->grantorType = (PrincipalType::type)ecast125; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -3924,25 +4150,25 @@ void swap(GrantRevokeRoleRequest &a, GrantRevokeRoleRequest &b) { swap(a.__isset, b.__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; +GrantRevokeRoleRequest::GrantRevokeRoleRequest(const GrantRevokeRoleRequest& other126) { + requestType = other126.requestType; + roleName = other126.roleName; + principalName = other126.principalName; + principalType = other126.principalType; + grantor = other126.grantor; + grantorType = other126.grantorType; + grantOption = other126.grantOption; + __isset = other126.__isset; +} +GrantRevokeRoleRequest& GrantRevokeRoleRequest::operator=(const GrantRevokeRoleRequest& other127) { + requestType = other127.requestType; + roleName = other127.roleName; + principalName = other127.principalName; + principalType = other127.principalType; + grantor = other127.grantor; + grantorType = other127.grantorType; + grantOption = other127.grantOption; + __isset = other127.__isset; return *this; } void GrantRevokeRoleRequest::printTo(std::ostream& out) const { @@ -4030,13 +4256,13 @@ void swap(GrantRevokeRoleResponse &a, GrantRevokeRoleResponse &b) { swap(a.__isset, b.__isset); } -GrantRevokeRoleResponse::GrantRevokeRoleResponse(const GrantRevokeRoleResponse& other126) { - success = other126.success; - __isset = other126.__isset; +GrantRevokeRoleResponse::GrantRevokeRoleResponse(const GrantRevokeRoleResponse& other128) { + success = other128.success; + __isset = other128.__isset; } -GrantRevokeRoleResponse& GrantRevokeRoleResponse::operator=(const GrantRevokeRoleResponse& other127) { - success = other127.success; - __isset = other127.__isset; +GrantRevokeRoleResponse& GrantRevokeRoleResponse::operator=(const GrantRevokeRoleResponse& other129) { + success = other129.success; + __isset = other129.__isset; return *this; } void GrantRevokeRoleResponse::printTo(std::ostream& out) const { @@ -4131,17 +4357,17 @@ uint32_t Database::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - 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) + uint32_t _size130; + ::apache::thrift::protocol::TType _ktype131; + ::apache::thrift::protocol::TType _vtype132; + xfer += iprot->readMapBegin(_ktype131, _vtype132, _size130); + uint32_t _i134; + for (_i134 = 0; _i134 < _size130; ++_i134) { - std::string _key133; - xfer += iprot->readString(_key133); - std::string& _val134 = this->parameters[_key133]; - xfer += iprot->readString(_val134); + std::string _key135; + xfer += iprot->readString(_key135); + std::string& _val136 = this->parameters[_key135]; + xfer += iprot->readString(_val136); } xfer += iprot->readMapEnd(); } @@ -4168,9 +4394,9 @@ uint32_t Database::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 7: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast135; - xfer += iprot->readI32(ecast135); - this->ownerType = (PrincipalType::type)ecast135; + int32_t ecast137; + xfer += iprot->readI32(ecast137); + this->ownerType = (PrincipalType::type)ecast137; this->__isset.ownerType = true; } else { xfer += iprot->skip(ftype); @@ -4208,11 +4434,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 _iter136; - for (_iter136 = this->parameters.begin(); _iter136 != this->parameters.end(); ++_iter136) + std::map ::const_iterator _iter138; + for (_iter138 = this->parameters.begin(); _iter138 != this->parameters.end(); ++_iter138) { - xfer += oprot->writeString(_iter136->first); - xfer += oprot->writeString(_iter136->second); + xfer += oprot->writeString(_iter138->first); + xfer += oprot->writeString(_iter138->second); } xfer += oprot->writeMapEnd(); } @@ -4250,25 +4476,25 @@ void swap(Database &a, Database &b) { swap(a.__isset, b.__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; +Database::Database(const Database& other139) { + name = other139.name; + description = other139.description; + locationUri = other139.locationUri; + parameters = other139.parameters; + privileges = other139.privileges; + ownerName = other139.ownerName; + ownerType = other139.ownerType; + __isset = other139.__isset; +} +Database& Database::operator=(const Database& other140) { + name = other140.name; + description = other140.description; + locationUri = other140.locationUri; + parameters = other140.parameters; + privileges = other140.privileges; + ownerName = other140.ownerName; + ownerType = other140.ownerType; + __isset = other140.__isset; return *this; } void Database::printTo(std::ostream& out) const { @@ -4362,17 +4588,17 @@ uint32_t SerDeInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - 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) + uint32_t _size141; + ::apache::thrift::protocol::TType _ktype142; + ::apache::thrift::protocol::TType _vtype143; + xfer += iprot->readMapBegin(_ktype142, _vtype143, _size141); + uint32_t _i145; + for (_i145 = 0; _i145 < _size141; ++_i145) { - std::string _key144; - xfer += iprot->readString(_key144); - std::string& _val145 = this->parameters[_key144]; - xfer += iprot->readString(_val145); + std::string _key146; + xfer += iprot->readString(_key146); + std::string& _val147 = this->parameters[_key146]; + xfer += iprot->readString(_val147); } xfer += iprot->readMapEnd(); } @@ -4407,9 +4633,9 @@ uint32_t SerDeInfo::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 7: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast146; - xfer += iprot->readI32(ecast146); - this->serdeType = (SerdeType::type)ecast146; + int32_t ecast148; + xfer += iprot->readI32(ecast148); + this->serdeType = (SerdeType::type)ecast148; this->__isset.serdeType = true; } else { xfer += iprot->skip(ftype); @@ -4443,11 +4669,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 _iter147; - for (_iter147 = this->parameters.begin(); _iter147 != this->parameters.end(); ++_iter147) + std::map ::const_iterator _iter149; + for (_iter149 = this->parameters.begin(); _iter149 != this->parameters.end(); ++_iter149) { - xfer += oprot->writeString(_iter147->first); - xfer += oprot->writeString(_iter147->second); + xfer += oprot->writeString(_iter149->first); + xfer += oprot->writeString(_iter149->second); } xfer += oprot->writeMapEnd(); } @@ -4490,25 +4716,25 @@ void swap(SerDeInfo &a, SerDeInfo &b) { swap(a.__isset, b.__isset); } -SerDeInfo::SerDeInfo(const SerDeInfo& other148) { - name = other148.name; - serializationLib = other148.serializationLib; - parameters = other148.parameters; - description = other148.description; - serializerClass = other148.serializerClass; - deserializerClass = other148.deserializerClass; - serdeType = other148.serdeType; - __isset = other148.__isset; -} -SerDeInfo& SerDeInfo::operator=(const SerDeInfo& other149) { - name = other149.name; - serializationLib = other149.serializationLib; - parameters = other149.parameters; - description = other149.description; - serializerClass = other149.serializerClass; - deserializerClass = other149.deserializerClass; - serdeType = other149.serdeType; - __isset = other149.__isset; +SerDeInfo::SerDeInfo(const SerDeInfo& other150) { + name = other150.name; + serializationLib = other150.serializationLib; + parameters = other150.parameters; + description = other150.description; + serializerClass = other150.serializerClass; + deserializerClass = other150.deserializerClass; + serdeType = other150.serdeType; + __isset = other150.__isset; +} +SerDeInfo& SerDeInfo::operator=(const SerDeInfo& other151) { + name = other151.name; + serializationLib = other151.serializationLib; + parameters = other151.parameters; + description = other151.description; + serializerClass = other151.serializerClass; + deserializerClass = other151.deserializerClass; + serdeType = other151.serdeType; + __isset = other151.__isset; return *this; } void SerDeInfo::printTo(std::ostream& out) const { @@ -4611,15 +4837,15 @@ void swap(Order &a, Order &b) { swap(a.__isset, b.__isset); } -Order::Order(const Order& other150) { - col = other150.col; - order = other150.order; - __isset = other150.__isset; +Order::Order(const Order& other152) { + col = other152.col; + order = other152.order; + __isset = other152.__isset; } -Order& Order::operator=(const Order& other151) { - col = other151.col; - order = other151.order; - __isset = other151.__isset; +Order& Order::operator=(const Order& other153) { + col = other153.col; + order = other153.order; + __isset = other153.__isset; return *this; } void Order::printTo(std::ostream& out) const { @@ -4672,14 +4898,14 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->skewedColNames.clear(); - uint32_t _size152; - ::apache::thrift::protocol::TType _etype155; - xfer += iprot->readListBegin(_etype155, _size152); - this->skewedColNames.resize(_size152); - uint32_t _i156; - for (_i156 = 0; _i156 < _size152; ++_i156) + uint32_t _size154; + ::apache::thrift::protocol::TType _etype157; + xfer += iprot->readListBegin(_etype157, _size154); + this->skewedColNames.resize(_size154); + uint32_t _i158; + for (_i158 = 0; _i158 < _size154; ++_i158) { - xfer += iprot->readString(this->skewedColNames[_i156]); + xfer += iprot->readString(this->skewedColNames[_i158]); } xfer += iprot->readListEnd(); } @@ -4692,23 +4918,23 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->skewedColValues.clear(); - uint32_t _size157; - ::apache::thrift::protocol::TType _etype160; - xfer += iprot->readListBegin(_etype160, _size157); - this->skewedColValues.resize(_size157); - uint32_t _i161; - for (_i161 = 0; _i161 < _size157; ++_i161) + uint32_t _size159; + ::apache::thrift::protocol::TType _etype162; + xfer += iprot->readListBegin(_etype162, _size159); + this->skewedColValues.resize(_size159); + uint32_t _i163; + for (_i163 = 0; _i163 < _size159; ++_i163) { { - this->skewedColValues[_i161].clear(); - uint32_t _size162; - ::apache::thrift::protocol::TType _etype165; - xfer += iprot->readListBegin(_etype165, _size162); - this->skewedColValues[_i161].resize(_size162); - uint32_t _i166; - for (_i166 = 0; _i166 < _size162; ++_i166) + this->skewedColValues[_i163].clear(); + uint32_t _size164; + ::apache::thrift::protocol::TType _etype167; + xfer += iprot->readListBegin(_etype167, _size164); + this->skewedColValues[_i163].resize(_size164); + uint32_t _i168; + for (_i168 = 0; _i168 < _size164; ++_i168) { - xfer += iprot->readString(this->skewedColValues[_i161][_i166]); + xfer += iprot->readString(this->skewedColValues[_i163][_i168]); } xfer += iprot->readListEnd(); } @@ -4724,29 +4950,29 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->skewedColValueLocationMaps.clear(); - uint32_t _size167; - ::apache::thrift::protocol::TType _ktype168; - ::apache::thrift::protocol::TType _vtype169; - xfer += iprot->readMapBegin(_ktype168, _vtype169, _size167); - uint32_t _i171; - for (_i171 = 0; _i171 < _size167; ++_i171) + uint32_t _size169; + ::apache::thrift::protocol::TType _ktype170; + ::apache::thrift::protocol::TType _vtype171; + xfer += iprot->readMapBegin(_ktype170, _vtype171, _size169); + uint32_t _i173; + for (_i173 = 0; _i173 < _size169; ++_i173) { - std::vector _key172; + std::vector _key174; { - _key172.clear(); - uint32_t _size174; - ::apache::thrift::protocol::TType _etype177; - xfer += iprot->readListBegin(_etype177, _size174); - _key172.resize(_size174); - uint32_t _i178; - for (_i178 = 0; _i178 < _size174; ++_i178) + _key174.clear(); + uint32_t _size176; + ::apache::thrift::protocol::TType _etype179; + xfer += iprot->readListBegin(_etype179, _size176); + _key174.resize(_size176); + uint32_t _i180; + for (_i180 = 0; _i180 < _size176; ++_i180) { - xfer += iprot->readString(_key172[_i178]); + xfer += iprot->readString(_key174[_i180]); } xfer += iprot->readListEnd(); } - std::string& _val173 = this->skewedColValueLocationMaps[_key172]; - xfer += iprot->readString(_val173); + std::string& _val175 = this->skewedColValueLocationMaps[_key174]; + xfer += iprot->readString(_val175); } xfer += iprot->readMapEnd(); } @@ -4775,10 +5001,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 _iter179; - for (_iter179 = this->skewedColNames.begin(); _iter179 != this->skewedColNames.end(); ++_iter179) + std::vector ::const_iterator _iter181; + for (_iter181 = this->skewedColNames.begin(); _iter181 != this->skewedColNames.end(); ++_iter181) { - xfer += oprot->writeString((*_iter179)); + xfer += oprot->writeString((*_iter181)); } xfer += oprot->writeListEnd(); } @@ -4787,15 +5013,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 _iter180; - for (_iter180 = this->skewedColValues.begin(); _iter180 != this->skewedColValues.end(); ++_iter180) + std::vector > ::const_iterator _iter182; + for (_iter182 = this->skewedColValues.begin(); _iter182 != this->skewedColValues.end(); ++_iter182) { { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*_iter180).size())); - std::vector ::const_iterator _iter181; - for (_iter181 = (*_iter180).begin(); _iter181 != (*_iter180).end(); ++_iter181) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*_iter182).size())); + std::vector ::const_iterator _iter183; + for (_iter183 = (*_iter182).begin(); _iter183 != (*_iter182).end(); ++_iter183) { - xfer += oprot->writeString((*_iter181)); + xfer += oprot->writeString((*_iter183)); } xfer += oprot->writeListEnd(); } @@ -4807,19 +5033,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 _iter182; - for (_iter182 = this->skewedColValueLocationMaps.begin(); _iter182 != this->skewedColValueLocationMaps.end(); ++_iter182) + std::map , std::string> ::const_iterator _iter184; + for (_iter184 = this->skewedColValueLocationMaps.begin(); _iter184 != this->skewedColValueLocationMaps.end(); ++_iter184) { { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(_iter182->first.size())); - std::vector ::const_iterator _iter183; - for (_iter183 = _iter182->first.begin(); _iter183 != _iter182->first.end(); ++_iter183) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(_iter184->first.size())); + std::vector ::const_iterator _iter185; + for (_iter185 = _iter184->first.begin(); _iter185 != _iter184->first.end(); ++_iter185) { - xfer += oprot->writeString((*_iter183)); + xfer += oprot->writeString((*_iter185)); } xfer += oprot->writeListEnd(); } - xfer += oprot->writeString(_iter182->second); + xfer += oprot->writeString(_iter184->second); } xfer += oprot->writeMapEnd(); } @@ -4838,17 +5064,17 @@ void swap(SkewedInfo &a, SkewedInfo &b) { swap(a.__isset, b.__isset); } -SkewedInfo::SkewedInfo(const SkewedInfo& other184) { - skewedColNames = other184.skewedColNames; - skewedColValues = other184.skewedColValues; - skewedColValueLocationMaps = other184.skewedColValueLocationMaps; - __isset = other184.__isset; +SkewedInfo::SkewedInfo(const SkewedInfo& other186) { + skewedColNames = other186.skewedColNames; + skewedColValues = other186.skewedColValues; + skewedColValueLocationMaps = other186.skewedColValueLocationMaps; + __isset = other186.__isset; } -SkewedInfo& SkewedInfo::operator=(const SkewedInfo& other185) { - skewedColNames = other185.skewedColNames; - skewedColValues = other185.skewedColValues; - skewedColValueLocationMaps = other185.skewedColValueLocationMaps; - __isset = other185.__isset; +SkewedInfo& SkewedInfo::operator=(const SkewedInfo& other187) { + skewedColNames = other187.skewedColNames; + skewedColValues = other187.skewedColValues; + skewedColValueLocationMaps = other187.skewedColValueLocationMaps; + __isset = other187.__isset; return *this; } void SkewedInfo::printTo(std::ostream& out) const { @@ -4940,14 +5166,14 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->cols.clear(); - uint32_t _size186; - ::apache::thrift::protocol::TType _etype189; - xfer += iprot->readListBegin(_etype189, _size186); - this->cols.resize(_size186); - uint32_t _i190; - for (_i190 = 0; _i190 < _size186; ++_i190) + uint32_t _size188; + ::apache::thrift::protocol::TType _etype191; + xfer += iprot->readListBegin(_etype191, _size188); + this->cols.resize(_size188); + uint32_t _i192; + for (_i192 = 0; _i192 < _size188; ++_i192) { - xfer += this->cols[_i190].read(iprot); + xfer += this->cols[_i192].read(iprot); } xfer += iprot->readListEnd(); } @@ -5008,14 +5234,14 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->bucketCols.clear(); - uint32_t _size191; - ::apache::thrift::protocol::TType _etype194; - xfer += iprot->readListBegin(_etype194, _size191); - this->bucketCols.resize(_size191); - uint32_t _i195; - for (_i195 = 0; _i195 < _size191; ++_i195) + uint32_t _size193; + ::apache::thrift::protocol::TType _etype196; + xfer += iprot->readListBegin(_etype196, _size193); + this->bucketCols.resize(_size193); + uint32_t _i197; + for (_i197 = 0; _i197 < _size193; ++_i197) { - xfer += iprot->readString(this->bucketCols[_i195]); + xfer += iprot->readString(this->bucketCols[_i197]); } xfer += iprot->readListEnd(); } @@ -5028,14 +5254,14 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->sortCols.clear(); - uint32_t _size196; - ::apache::thrift::protocol::TType _etype199; - xfer += iprot->readListBegin(_etype199, _size196); - this->sortCols.resize(_size196); - uint32_t _i200; - for (_i200 = 0; _i200 < _size196; ++_i200) + uint32_t _size198; + ::apache::thrift::protocol::TType _etype201; + xfer += iprot->readListBegin(_etype201, _size198); + this->sortCols.resize(_size198); + uint32_t _i202; + for (_i202 = 0; _i202 < _size198; ++_i202) { - xfer += this->sortCols[_i200].read(iprot); + xfer += this->sortCols[_i202].read(iprot); } xfer += iprot->readListEnd(); } @@ -5048,17 +5274,17 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size201; - ::apache::thrift::protocol::TType _ktype202; - ::apache::thrift::protocol::TType _vtype203; - xfer += iprot->readMapBegin(_ktype202, _vtype203, _size201); - uint32_t _i205; - for (_i205 = 0; _i205 < _size201; ++_i205) + uint32_t _size203; + ::apache::thrift::protocol::TType _ktype204; + ::apache::thrift::protocol::TType _vtype205; + xfer += iprot->readMapBegin(_ktype204, _vtype205, _size203); + uint32_t _i207; + for (_i207 = 0; _i207 < _size203; ++_i207) { - std::string _key206; - xfer += iprot->readString(_key206); - std::string& _val207 = this->parameters[_key206]; - xfer += iprot->readString(_val207); + std::string _key208; + xfer += iprot->readString(_key208); + std::string& _val209 = this->parameters[_key208]; + xfer += iprot->readString(_val209); } xfer += iprot->readMapEnd(); } @@ -5103,10 +5329,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 _iter208; - for (_iter208 = this->cols.begin(); _iter208 != this->cols.end(); ++_iter208) + std::vector ::const_iterator _iter210; + for (_iter210 = this->cols.begin(); _iter210 != this->cols.end(); ++_iter210) { - xfer += (*_iter208).write(oprot); + xfer += (*_iter210).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5139,10 +5365,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 _iter209; - for (_iter209 = this->bucketCols.begin(); _iter209 != this->bucketCols.end(); ++_iter209) + std::vector ::const_iterator _iter211; + for (_iter211 = this->bucketCols.begin(); _iter211 != this->bucketCols.end(); ++_iter211) { - xfer += oprot->writeString((*_iter209)); + xfer += oprot->writeString((*_iter211)); } xfer += oprot->writeListEnd(); } @@ -5151,10 +5377,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 _iter210; - for (_iter210 = this->sortCols.begin(); _iter210 != this->sortCols.end(); ++_iter210) + std::vector ::const_iterator _iter212; + for (_iter212 = this->sortCols.begin(); _iter212 != this->sortCols.end(); ++_iter212) { - xfer += (*_iter210).write(oprot); + xfer += (*_iter212).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5163,11 +5389,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 _iter211; - for (_iter211 = this->parameters.begin(); _iter211 != this->parameters.end(); ++_iter211) + std::map ::const_iterator _iter213; + for (_iter213 = this->parameters.begin(); _iter213 != this->parameters.end(); ++_iter213) { - xfer += oprot->writeString(_iter211->first); - xfer += oprot->writeString(_iter211->second); + xfer += oprot->writeString(_iter213->first); + xfer += oprot->writeString(_iter213->second); } xfer += oprot->writeMapEnd(); } @@ -5205,35 +5431,35 @@ void swap(StorageDescriptor &a, StorageDescriptor &b) { swap(a.__isset, b.__isset); } -StorageDescriptor::StorageDescriptor(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; -} -StorageDescriptor& StorageDescriptor::operator=(const StorageDescriptor& other213) { - cols = other213.cols; - location = other213.location; - inputFormat = other213.inputFormat; - outputFormat = other213.outputFormat; - compressed = other213.compressed; - numBuckets = other213.numBuckets; - serdeInfo = other213.serdeInfo; - bucketCols = other213.bucketCols; - sortCols = other213.sortCols; - parameters = other213.parameters; - skewedInfo = other213.skewedInfo; - storedAsSubDirectories = other213.storedAsSubDirectories; - __isset = other213.__isset; +StorageDescriptor::StorageDescriptor(const StorageDescriptor& other214) { + cols = other214.cols; + location = other214.location; + inputFormat = other214.inputFormat; + outputFormat = other214.outputFormat; + compressed = other214.compressed; + numBuckets = other214.numBuckets; + serdeInfo = other214.serdeInfo; + bucketCols = other214.bucketCols; + sortCols = other214.sortCols; + parameters = other214.parameters; + skewedInfo = other214.skewedInfo; + storedAsSubDirectories = other214.storedAsSubDirectories; + __isset = other214.__isset; +} +StorageDescriptor& StorageDescriptor::operator=(const StorageDescriptor& other215) { + cols = other215.cols; + location = other215.location; + inputFormat = other215.inputFormat; + outputFormat = other215.outputFormat; + compressed = other215.compressed; + numBuckets = other215.numBuckets; + serdeInfo = other215.serdeInfo; + bucketCols = other215.bucketCols; + sortCols = other215.sortCols; + parameters = other215.parameters; + skewedInfo = other215.skewedInfo; + storedAsSubDirectories = other215.storedAsSubDirectories; + __isset = other215.__isset; return *this; } void StorageDescriptor::printTo(std::ostream& out) const { @@ -5408,14 +5634,14 @@ uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionKeys.clear(); - uint32_t _size214; - ::apache::thrift::protocol::TType _etype217; - xfer += iprot->readListBegin(_etype217, _size214); - this->partitionKeys.resize(_size214); - uint32_t _i218; - for (_i218 = 0; _i218 < _size214; ++_i218) + uint32_t _size216; + ::apache::thrift::protocol::TType _etype219; + xfer += iprot->readListBegin(_etype219, _size216); + this->partitionKeys.resize(_size216); + uint32_t _i220; + for (_i220 = 0; _i220 < _size216; ++_i220) { - xfer += this->partitionKeys[_i218].read(iprot); + xfer += this->partitionKeys[_i220].read(iprot); } xfer += iprot->readListEnd(); } @@ -5428,17 +5654,17 @@ uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size219; - ::apache::thrift::protocol::TType _ktype220; - ::apache::thrift::protocol::TType _vtype221; - xfer += iprot->readMapBegin(_ktype220, _vtype221, _size219); - uint32_t _i223; - for (_i223 = 0; _i223 < _size219; ++_i223) + uint32_t _size221; + ::apache::thrift::protocol::TType _ktype222; + ::apache::thrift::protocol::TType _vtype223; + xfer += iprot->readMapBegin(_ktype222, _vtype223, _size221); + uint32_t _i225; + for (_i225 = 0; _i225 < _size221; ++_i225) { - std::string _key224; - xfer += iprot->readString(_key224); - std::string& _val225 = this->parameters[_key224]; - xfer += iprot->readString(_val225); + std::string _key226; + xfer += iprot->readString(_key226); + std::string& _val227 = this->parameters[_key226]; + xfer += iprot->readString(_val227); } xfer += iprot->readMapEnd(); } @@ -5551,10 +5777,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 _iter226; - for (_iter226 = this->partitionKeys.begin(); _iter226 != this->partitionKeys.end(); ++_iter226) + std::vector ::const_iterator _iter228; + for (_iter228 = this->partitionKeys.begin(); _iter228 != this->partitionKeys.end(); ++_iter228) { - xfer += (*_iter226).write(oprot); + xfer += (*_iter228).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5563,11 +5789,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 _iter227; - for (_iter227 = this->parameters.begin(); _iter227 != this->parameters.end(); ++_iter227) + std::map ::const_iterator _iter229; + for (_iter229 = this->parameters.begin(); _iter229 != this->parameters.end(); ++_iter229) { - xfer += oprot->writeString(_iter227->first); - xfer += oprot->writeString(_iter227->second); + xfer += oprot->writeString(_iter229->first); + xfer += oprot->writeString(_iter229->second); } xfer += oprot->writeMapEnd(); } @@ -5631,43 +5857,43 @@ void swap(Table &a, Table &b) { swap(a.__isset, b.__isset); } -Table::Table(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; -} -Table& Table::operator=(const Table& other229) { - tableName = other229.tableName; - dbName = other229.dbName; - owner = other229.owner; - createTime = other229.createTime; - lastAccessTime = other229.lastAccessTime; - retention = other229.retention; - sd = other229.sd; - partitionKeys = other229.partitionKeys; - parameters = other229.parameters; - viewOriginalText = other229.viewOriginalText; - viewExpandedText = other229.viewExpandedText; - tableType = other229.tableType; - privileges = other229.privileges; - temporary = other229.temporary; - rewriteEnabled = other229.rewriteEnabled; - creationMetadata = other229.creationMetadata; - __isset = other229.__isset; +Table::Table(const Table& other230) { + tableName = other230.tableName; + dbName = other230.dbName; + owner = other230.owner; + createTime = other230.createTime; + lastAccessTime = other230.lastAccessTime; + retention = other230.retention; + sd = other230.sd; + partitionKeys = other230.partitionKeys; + parameters = other230.parameters; + viewOriginalText = other230.viewOriginalText; + viewExpandedText = other230.viewExpandedText; + tableType = other230.tableType; + privileges = other230.privileges; + temporary = other230.temporary; + rewriteEnabled = other230.rewriteEnabled; + creationMetadata = other230.creationMetadata; + __isset = other230.__isset; +} +Table& Table::operator=(const Table& other231) { + tableName = other231.tableName; + dbName = other231.dbName; + owner = other231.owner; + createTime = other231.createTime; + lastAccessTime = other231.lastAccessTime; + retention = other231.retention; + sd = other231.sd; + partitionKeys = other231.partitionKeys; + parameters = other231.parameters; + viewOriginalText = other231.viewOriginalText; + viewExpandedText = other231.viewExpandedText; + tableType = other231.tableType; + privileges = other231.privileges; + temporary = other231.temporary; + rewriteEnabled = other231.rewriteEnabled; + creationMetadata = other231.creationMetadata; + __isset = other231.__isset; return *this; } void Table::printTo(std::ostream& out) const { @@ -5755,14 +5981,14 @@ uint32_t Partition::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size230; - ::apache::thrift::protocol::TType _etype233; - xfer += iprot->readListBegin(_etype233, _size230); - this->values.resize(_size230); - uint32_t _i234; - for (_i234 = 0; _i234 < _size230; ++_i234) + uint32_t _size232; + ::apache::thrift::protocol::TType _etype235; + xfer += iprot->readListBegin(_etype235, _size232); + this->values.resize(_size232); + uint32_t _i236; + for (_i236 = 0; _i236 < _size232; ++_i236) { - xfer += iprot->readString(this->values[_i234]); + xfer += iprot->readString(this->values[_i236]); } xfer += iprot->readListEnd(); } @@ -5815,17 +6041,17 @@ uint32_t Partition::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size235; - ::apache::thrift::protocol::TType _ktype236; - ::apache::thrift::protocol::TType _vtype237; - xfer += iprot->readMapBegin(_ktype236, _vtype237, _size235); - uint32_t _i239; - for (_i239 = 0; _i239 < _size235; ++_i239) + uint32_t _size237; + ::apache::thrift::protocol::TType _ktype238; + ::apache::thrift::protocol::TType _vtype239; + xfer += iprot->readMapBegin(_ktype238, _vtype239, _size237); + uint32_t _i241; + for (_i241 = 0; _i241 < _size237; ++_i241) { - std::string _key240; - xfer += iprot->readString(_key240); - std::string& _val241 = this->parameters[_key240]; - xfer += iprot->readString(_val241); + std::string _key242; + xfer += iprot->readString(_key242); + std::string& _val243 = this->parameters[_key242]; + xfer += iprot->readString(_val243); } xfer += iprot->readMapEnd(); } @@ -5862,10 +6088,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 _iter242; - for (_iter242 = this->values.begin(); _iter242 != this->values.end(); ++_iter242) + std::vector ::const_iterator _iter244; + for (_iter244 = this->values.begin(); _iter244 != this->values.end(); ++_iter244) { - xfer += oprot->writeString((*_iter242)); + xfer += oprot->writeString((*_iter244)); } xfer += oprot->writeListEnd(); } @@ -5894,11 +6120,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 _iter243; - for (_iter243 = this->parameters.begin(); _iter243 != this->parameters.end(); ++_iter243) + std::map ::const_iterator _iter245; + for (_iter245 = this->parameters.begin(); _iter245 != this->parameters.end(); ++_iter245) { - xfer += oprot->writeString(_iter243->first); - xfer += oprot->writeString(_iter243->second); + xfer += oprot->writeString(_iter245->first); + xfer += oprot->writeString(_iter245->second); } xfer += oprot->writeMapEnd(); } @@ -5927,27 +6153,27 @@ void swap(Partition &a, Partition &b) { swap(a.__isset, b.__isset); } -Partition::Partition(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; -} -Partition& Partition::operator=(const Partition& other245) { - values = other245.values; - dbName = other245.dbName; - tableName = other245.tableName; - createTime = other245.createTime; - lastAccessTime = other245.lastAccessTime; - sd = other245.sd; - parameters = other245.parameters; - privileges = other245.privileges; - __isset = other245.__isset; +Partition::Partition(const Partition& other246) { + values = other246.values; + dbName = other246.dbName; + tableName = other246.tableName; + createTime = other246.createTime; + lastAccessTime = other246.lastAccessTime; + sd = other246.sd; + parameters = other246.parameters; + privileges = other246.privileges; + __isset = other246.__isset; +} +Partition& Partition::operator=(const Partition& other247) { + values = other247.values; + dbName = other247.dbName; + tableName = other247.tableName; + createTime = other247.createTime; + lastAccessTime = other247.lastAccessTime; + sd = other247.sd; + parameters = other247.parameters; + privileges = other247.privileges; + __isset = other247.__isset; return *this; } void Partition::printTo(std::ostream& out) const { @@ -6019,14 +6245,14 @@ uint32_t PartitionWithoutSD::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size246; - ::apache::thrift::protocol::TType _etype249; - xfer += iprot->readListBegin(_etype249, _size246); - this->values.resize(_size246); - uint32_t _i250; - for (_i250 = 0; _i250 < _size246; ++_i250) + uint32_t _size248; + ::apache::thrift::protocol::TType _etype251; + xfer += iprot->readListBegin(_etype251, _size248); + this->values.resize(_size248); + uint32_t _i252; + for (_i252 = 0; _i252 < _size248; ++_i252) { - xfer += iprot->readString(this->values[_i250]); + xfer += iprot->readString(this->values[_i252]); } xfer += iprot->readListEnd(); } @@ -6063,17 +6289,17 @@ uint32_t PartitionWithoutSD::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size251; - ::apache::thrift::protocol::TType _ktype252; - ::apache::thrift::protocol::TType _vtype253; - xfer += iprot->readMapBegin(_ktype252, _vtype253, _size251); - uint32_t _i255; - for (_i255 = 0; _i255 < _size251; ++_i255) + uint32_t _size253; + ::apache::thrift::protocol::TType _ktype254; + ::apache::thrift::protocol::TType _vtype255; + xfer += iprot->readMapBegin(_ktype254, _vtype255, _size253); + uint32_t _i257; + for (_i257 = 0; _i257 < _size253; ++_i257) { - std::string _key256; - xfer += iprot->readString(_key256); - std::string& _val257 = this->parameters[_key256]; - xfer += iprot->readString(_val257); + std::string _key258; + xfer += iprot->readString(_key258); + std::string& _val259 = this->parameters[_key258]; + xfer += iprot->readString(_val259); } xfer += iprot->readMapEnd(); } @@ -6110,10 +6336,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 _iter258; - for (_iter258 = this->values.begin(); _iter258 != this->values.end(); ++_iter258) + std::vector ::const_iterator _iter260; + for (_iter260 = this->values.begin(); _iter260 != this->values.end(); ++_iter260) { - xfer += oprot->writeString((*_iter258)); + xfer += oprot->writeString((*_iter260)); } xfer += oprot->writeListEnd(); } @@ -6134,11 +6360,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 _iter259; - for (_iter259 = this->parameters.begin(); _iter259 != this->parameters.end(); ++_iter259) + std::map ::const_iterator _iter261; + for (_iter261 = this->parameters.begin(); _iter261 != this->parameters.end(); ++_iter261) { - xfer += oprot->writeString(_iter259->first); - xfer += oprot->writeString(_iter259->second); + xfer += oprot->writeString(_iter261->first); + xfer += oprot->writeString(_iter261->second); } xfer += oprot->writeMapEnd(); } @@ -6165,23 +6391,23 @@ void swap(PartitionWithoutSD &a, PartitionWithoutSD &b) { swap(a.__isset, b.__isset); } -PartitionWithoutSD::PartitionWithoutSD(const PartitionWithoutSD& other260) { - values = other260.values; - createTime = other260.createTime; - lastAccessTime = other260.lastAccessTime; - relativePath = other260.relativePath; - parameters = other260.parameters; - privileges = other260.privileges; - __isset = other260.__isset; -} -PartitionWithoutSD& PartitionWithoutSD::operator=(const PartitionWithoutSD& other261) { - values = other261.values; - createTime = other261.createTime; - lastAccessTime = other261.lastAccessTime; - relativePath = other261.relativePath; - parameters = other261.parameters; - privileges = other261.privileges; - __isset = other261.__isset; +PartitionWithoutSD::PartitionWithoutSD(const PartitionWithoutSD& other262) { + values = other262.values; + createTime = other262.createTime; + lastAccessTime = other262.lastAccessTime; + relativePath = other262.relativePath; + parameters = other262.parameters; + privileges = other262.privileges; + __isset = other262.__isset; +} +PartitionWithoutSD& PartitionWithoutSD::operator=(const PartitionWithoutSD& other263) { + values = other263.values; + createTime = other263.createTime; + lastAccessTime = other263.lastAccessTime; + relativePath = other263.relativePath; + parameters = other263.parameters; + privileges = other263.privileges; + __isset = other263.__isset; return *this; } void PartitionWithoutSD::printTo(std::ostream& out) const { @@ -6234,14 +6460,14 @@ uint32_t PartitionSpecWithSharedSD::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size262; - ::apache::thrift::protocol::TType _etype265; - xfer += iprot->readListBegin(_etype265, _size262); - this->partitions.resize(_size262); - uint32_t _i266; - for (_i266 = 0; _i266 < _size262; ++_i266) + uint32_t _size264; + ::apache::thrift::protocol::TType _etype267; + xfer += iprot->readListBegin(_etype267, _size264); + this->partitions.resize(_size264); + uint32_t _i268; + for (_i268 = 0; _i268 < _size264; ++_i268) { - xfer += this->partitions[_i266].read(iprot); + xfer += this->partitions[_i268].read(iprot); } xfer += iprot->readListEnd(); } @@ -6278,10 +6504,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 _iter267; - for (_iter267 = this->partitions.begin(); _iter267 != this->partitions.end(); ++_iter267) + std::vector ::const_iterator _iter269; + for (_iter269 = this->partitions.begin(); _iter269 != this->partitions.end(); ++_iter269) { - xfer += (*_iter267).write(oprot); + xfer += (*_iter269).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6303,15 +6529,15 @@ void swap(PartitionSpecWithSharedSD &a, PartitionSpecWithSharedSD &b) { swap(a.__isset, b.__isset); } -PartitionSpecWithSharedSD::PartitionSpecWithSharedSD(const PartitionSpecWithSharedSD& other268) { - partitions = other268.partitions; - sd = other268.sd; - __isset = other268.__isset; +PartitionSpecWithSharedSD::PartitionSpecWithSharedSD(const PartitionSpecWithSharedSD& other270) { + partitions = other270.partitions; + sd = other270.sd; + __isset = other270.__isset; } -PartitionSpecWithSharedSD& PartitionSpecWithSharedSD::operator=(const PartitionSpecWithSharedSD& other269) { - partitions = other269.partitions; - sd = other269.sd; - __isset = other269.__isset; +PartitionSpecWithSharedSD& PartitionSpecWithSharedSD::operator=(const PartitionSpecWithSharedSD& other271) { + partitions = other271.partitions; + sd = other271.sd; + __isset = other271.__isset; return *this; } void PartitionSpecWithSharedSD::printTo(std::ostream& out) const { @@ -6356,14 +6582,14 @@ uint32_t PartitionListComposingSpec::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size270; - ::apache::thrift::protocol::TType _etype273; - xfer += iprot->readListBegin(_etype273, _size270); - this->partitions.resize(_size270); - uint32_t _i274; - for (_i274 = 0; _i274 < _size270; ++_i274) + uint32_t _size272; + ::apache::thrift::protocol::TType _etype275; + xfer += iprot->readListBegin(_etype275, _size272); + this->partitions.resize(_size272); + uint32_t _i276; + for (_i276 = 0; _i276 < _size272; ++_i276) { - xfer += this->partitions[_i274].read(iprot); + xfer += this->partitions[_i276].read(iprot); } xfer += iprot->readListEnd(); } @@ -6392,10 +6618,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 _iter275; - for (_iter275 = this->partitions.begin(); _iter275 != this->partitions.end(); ++_iter275) + std::vector ::const_iterator _iter277; + for (_iter277 = this->partitions.begin(); _iter277 != this->partitions.end(); ++_iter277) { - xfer += (*_iter275).write(oprot); + xfer += (*_iter277).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6412,13 +6638,13 @@ void swap(PartitionListComposingSpec &a, PartitionListComposingSpec &b) { swap(a.__isset, b.__isset); } -PartitionListComposingSpec::PartitionListComposingSpec(const PartitionListComposingSpec& other276) { - partitions = other276.partitions; - __isset = other276.__isset; +PartitionListComposingSpec::PartitionListComposingSpec(const PartitionListComposingSpec& other278) { + partitions = other278.partitions; + __isset = other278.__isset; } -PartitionListComposingSpec& PartitionListComposingSpec::operator=(const PartitionListComposingSpec& other277) { - partitions = other277.partitions; - __isset = other277.__isset; +PartitionListComposingSpec& PartitionListComposingSpec::operator=(const PartitionListComposingSpec& other279) { + partitions = other279.partitions; + __isset = other279.__isset; return *this; } void PartitionListComposingSpec::printTo(std::ostream& out) const { @@ -6570,21 +6796,21 @@ void swap(PartitionSpec &a, PartitionSpec &b) { swap(a.__isset, b.__isset); } -PartitionSpec::PartitionSpec(const PartitionSpec& other278) { - dbName = other278.dbName; - tableName = other278.tableName; - rootPath = other278.rootPath; - sharedSDPartitionSpec = other278.sharedSDPartitionSpec; - partitionList = other278.partitionList; - __isset = other278.__isset; +PartitionSpec::PartitionSpec(const PartitionSpec& other280) { + dbName = other280.dbName; + tableName = other280.tableName; + rootPath = other280.rootPath; + sharedSDPartitionSpec = other280.sharedSDPartitionSpec; + partitionList = other280.partitionList; + __isset = other280.__isset; } -PartitionSpec& PartitionSpec::operator=(const PartitionSpec& other279) { - dbName = other279.dbName; - tableName = other279.tableName; - rootPath = other279.rootPath; - sharedSDPartitionSpec = other279.sharedSDPartitionSpec; - partitionList = other279.partitionList; - __isset = other279.__isset; +PartitionSpec& PartitionSpec::operator=(const PartitionSpec& other281) { + dbName = other281.dbName; + tableName = other281.tableName; + rootPath = other281.rootPath; + sharedSDPartitionSpec = other281.sharedSDPartitionSpec; + partitionList = other281.partitionList; + __isset = other281.__isset; return *this; } void PartitionSpec::printTo(std::ostream& out) const { @@ -6730,19 +6956,19 @@ void swap(BooleanColumnStatsData &a, BooleanColumnStatsData &b) { swap(a.__isset, b.__isset); } -BooleanColumnStatsData::BooleanColumnStatsData(const BooleanColumnStatsData& other280) { - numTrues = other280.numTrues; - numFalses = other280.numFalses; - numNulls = other280.numNulls; - bitVectors = other280.bitVectors; - __isset = other280.__isset; +BooleanColumnStatsData::BooleanColumnStatsData(const BooleanColumnStatsData& other282) { + numTrues = other282.numTrues; + numFalses = other282.numFalses; + numNulls = other282.numNulls; + bitVectors = other282.bitVectors; + __isset = other282.__isset; } -BooleanColumnStatsData& BooleanColumnStatsData::operator=(const BooleanColumnStatsData& other281) { - numTrues = other281.numTrues; - numFalses = other281.numFalses; - numNulls = other281.numNulls; - bitVectors = other281.bitVectors; - __isset = other281.__isset; +BooleanColumnStatsData& BooleanColumnStatsData::operator=(const BooleanColumnStatsData& other283) { + numTrues = other283.numTrues; + numFalses = other283.numFalses; + numNulls = other283.numNulls; + bitVectors = other283.bitVectors; + __isset = other283.__isset; return *this; } void BooleanColumnStatsData::printTo(std::ostream& out) const { @@ -6905,21 +7131,21 @@ void swap(DoubleColumnStatsData &a, DoubleColumnStatsData &b) { swap(a.__isset, b.__isset); } -DoubleColumnStatsData::DoubleColumnStatsData(const DoubleColumnStatsData& other282) { - lowValue = other282.lowValue; - highValue = other282.highValue; - numNulls = other282.numNulls; - numDVs = other282.numDVs; - bitVectors = other282.bitVectors; - __isset = other282.__isset; +DoubleColumnStatsData::DoubleColumnStatsData(const DoubleColumnStatsData& other284) { + lowValue = other284.lowValue; + highValue = other284.highValue; + numNulls = other284.numNulls; + numDVs = other284.numDVs; + bitVectors = other284.bitVectors; + __isset = other284.__isset; } -DoubleColumnStatsData& DoubleColumnStatsData::operator=(const DoubleColumnStatsData& other283) { - lowValue = other283.lowValue; - highValue = other283.highValue; - numNulls = other283.numNulls; - numDVs = other283.numDVs; - bitVectors = other283.bitVectors; - __isset = other283.__isset; +DoubleColumnStatsData& DoubleColumnStatsData::operator=(const DoubleColumnStatsData& other285) { + lowValue = other285.lowValue; + highValue = other285.highValue; + numNulls = other285.numNulls; + numDVs = other285.numDVs; + bitVectors = other285.bitVectors; + __isset = other285.__isset; return *this; } void DoubleColumnStatsData::printTo(std::ostream& out) const { @@ -7083,21 +7309,21 @@ void swap(LongColumnStatsData &a, LongColumnStatsData &b) { swap(a.__isset, b.__isset); } -LongColumnStatsData::LongColumnStatsData(const LongColumnStatsData& other284) { - lowValue = other284.lowValue; - highValue = other284.highValue; - numNulls = other284.numNulls; - numDVs = other284.numDVs; - bitVectors = other284.bitVectors; - __isset = other284.__isset; +LongColumnStatsData::LongColumnStatsData(const LongColumnStatsData& other286) { + lowValue = other286.lowValue; + highValue = other286.highValue; + numNulls = other286.numNulls; + numDVs = other286.numDVs; + bitVectors = other286.bitVectors; + __isset = other286.__isset; } -LongColumnStatsData& LongColumnStatsData::operator=(const LongColumnStatsData& other285) { - lowValue = other285.lowValue; - highValue = other285.highValue; - numNulls = other285.numNulls; - numDVs = other285.numDVs; - bitVectors = other285.bitVectors; - __isset = other285.__isset; +LongColumnStatsData& LongColumnStatsData::operator=(const LongColumnStatsData& other287) { + lowValue = other287.lowValue; + highValue = other287.highValue; + numNulls = other287.numNulls; + numDVs = other287.numDVs; + bitVectors = other287.bitVectors; + __isset = other287.__isset; return *this; } void LongColumnStatsData::printTo(std::ostream& out) const { @@ -7263,21 +7489,21 @@ void swap(StringColumnStatsData &a, StringColumnStatsData &b) { swap(a.__isset, b.__isset); } -StringColumnStatsData::StringColumnStatsData(const StringColumnStatsData& other286) { - maxColLen = other286.maxColLen; - avgColLen = other286.avgColLen; - numNulls = other286.numNulls; - numDVs = other286.numDVs; - bitVectors = other286.bitVectors; - __isset = other286.__isset; +StringColumnStatsData::StringColumnStatsData(const StringColumnStatsData& other288) { + maxColLen = other288.maxColLen; + avgColLen = other288.avgColLen; + numNulls = other288.numNulls; + numDVs = other288.numDVs; + bitVectors = other288.bitVectors; + __isset = other288.__isset; } -StringColumnStatsData& StringColumnStatsData::operator=(const StringColumnStatsData& other287) { - maxColLen = other287.maxColLen; - avgColLen = other287.avgColLen; - numNulls = other287.numNulls; - numDVs = other287.numDVs; - bitVectors = other287.bitVectors; - __isset = other287.__isset; +StringColumnStatsData& StringColumnStatsData::operator=(const StringColumnStatsData& other289) { + maxColLen = other289.maxColLen; + avgColLen = other289.avgColLen; + numNulls = other289.numNulls; + numDVs = other289.numDVs; + bitVectors = other289.bitVectors; + __isset = other289.__isset; return *this; } void StringColumnStatsData::printTo(std::ostream& out) const { @@ -7423,19 +7649,19 @@ void swap(BinaryColumnStatsData &a, BinaryColumnStatsData &b) { swap(a.__isset, b.__isset); } -BinaryColumnStatsData::BinaryColumnStatsData(const BinaryColumnStatsData& other288) { - maxColLen = other288.maxColLen; - avgColLen = other288.avgColLen; - numNulls = other288.numNulls; - bitVectors = other288.bitVectors; - __isset = other288.__isset; +BinaryColumnStatsData::BinaryColumnStatsData(const BinaryColumnStatsData& other290) { + maxColLen = other290.maxColLen; + avgColLen = other290.avgColLen; + numNulls = other290.numNulls; + bitVectors = other290.bitVectors; + __isset = other290.__isset; } -BinaryColumnStatsData& BinaryColumnStatsData::operator=(const BinaryColumnStatsData& other289) { - maxColLen = other289.maxColLen; - avgColLen = other289.avgColLen; - numNulls = other289.numNulls; - bitVectors = other289.bitVectors; - __isset = other289.__isset; +BinaryColumnStatsData& BinaryColumnStatsData::operator=(const BinaryColumnStatsData& other291) { + maxColLen = other291.maxColLen; + avgColLen = other291.avgColLen; + numNulls = other291.numNulls; + bitVectors = other291.bitVectors; + __isset = other291.__isset; return *this; } void BinaryColumnStatsData::printTo(std::ostream& out) const { @@ -7540,13 +7766,13 @@ void swap(Decimal &a, Decimal &b) { swap(a.scale, b.scale); } -Decimal::Decimal(const Decimal& other290) { - unscaled = other290.unscaled; - scale = other290.scale; +Decimal::Decimal(const Decimal& other292) { + unscaled = other292.unscaled; + scale = other292.scale; } -Decimal& Decimal::operator=(const Decimal& other291) { - unscaled = other291.unscaled; - scale = other291.scale; +Decimal& Decimal::operator=(const Decimal& other293) { + unscaled = other293.unscaled; + scale = other293.scale; return *this; } void Decimal::printTo(std::ostream& out) const { @@ -7707,21 +7933,21 @@ void swap(DecimalColumnStatsData &a, DecimalColumnStatsData &b) { swap(a.__isset, b.__isset); } -DecimalColumnStatsData::DecimalColumnStatsData(const DecimalColumnStatsData& other292) { - lowValue = other292.lowValue; - highValue = other292.highValue; - numNulls = other292.numNulls; - numDVs = other292.numDVs; - bitVectors = other292.bitVectors; - __isset = other292.__isset; -} -DecimalColumnStatsData& DecimalColumnStatsData::operator=(const DecimalColumnStatsData& other293) { - lowValue = other293.lowValue; - highValue = other293.highValue; - numNulls = other293.numNulls; - numDVs = other293.numDVs; - bitVectors = other293.bitVectors; - __isset = other293.__isset; +DecimalColumnStatsData::DecimalColumnStatsData(const DecimalColumnStatsData& other294) { + lowValue = other294.lowValue; + highValue = other294.highValue; + numNulls = other294.numNulls; + numDVs = other294.numDVs; + bitVectors = other294.bitVectors; + __isset = other294.__isset; +} +DecimalColumnStatsData& DecimalColumnStatsData::operator=(const DecimalColumnStatsData& other295) { + lowValue = other295.lowValue; + highValue = other295.highValue; + numNulls = other295.numNulls; + numDVs = other295.numDVs; + bitVectors = other295.bitVectors; + __isset = other295.__isset; return *this; } void DecimalColumnStatsData::printTo(std::ostream& out) const { @@ -7807,11 +8033,11 @@ void swap(Date &a, Date &b) { swap(a.daysSinceEpoch, b.daysSinceEpoch); } -Date::Date(const Date& other294) { - daysSinceEpoch = other294.daysSinceEpoch; +Date::Date(const Date& other296) { + daysSinceEpoch = other296.daysSinceEpoch; } -Date& Date::operator=(const Date& other295) { - daysSinceEpoch = other295.daysSinceEpoch; +Date& Date::operator=(const Date& other297) { + daysSinceEpoch = other297.daysSinceEpoch; return *this; } void Date::printTo(std::ostream& out) const { @@ -7971,21 +8197,21 @@ void swap(DateColumnStatsData &a, DateColumnStatsData &b) { swap(a.__isset, b.__isset); } -DateColumnStatsData::DateColumnStatsData(const DateColumnStatsData& other296) { - lowValue = other296.lowValue; - highValue = other296.highValue; - numNulls = other296.numNulls; - numDVs = other296.numDVs; - bitVectors = other296.bitVectors; - __isset = other296.__isset; -} -DateColumnStatsData& DateColumnStatsData::operator=(const DateColumnStatsData& other297) { - lowValue = other297.lowValue; - highValue = other297.highValue; - numNulls = other297.numNulls; - numDVs = other297.numDVs; - bitVectors = other297.bitVectors; - __isset = other297.__isset; +DateColumnStatsData::DateColumnStatsData(const DateColumnStatsData& other298) { + lowValue = other298.lowValue; + highValue = other298.highValue; + numNulls = other298.numNulls; + numDVs = other298.numDVs; + bitVectors = other298.bitVectors; + __isset = other298.__isset; +} +DateColumnStatsData& DateColumnStatsData::operator=(const DateColumnStatsData& other299) { + lowValue = other299.lowValue; + highValue = other299.highValue; + numNulls = other299.numNulls; + numDVs = other299.numDVs; + bitVectors = other299.bitVectors; + __isset = other299.__isset; return *this; } void DateColumnStatsData::printTo(std::ostream& out) const { @@ -8171,25 +8397,25 @@ void swap(ColumnStatisticsData &a, ColumnStatisticsData &b) { swap(a.__isset, b.__isset); } -ColumnStatisticsData::ColumnStatisticsData(const ColumnStatisticsData& other298) { - booleanStats = other298.booleanStats; - longStats = other298.longStats; - doubleStats = other298.doubleStats; - stringStats = other298.stringStats; - binaryStats = other298.binaryStats; - decimalStats = other298.decimalStats; - dateStats = other298.dateStats; - __isset = other298.__isset; -} -ColumnStatisticsData& ColumnStatisticsData::operator=(const ColumnStatisticsData& other299) { - booleanStats = other299.booleanStats; - longStats = other299.longStats; - doubleStats = other299.doubleStats; - stringStats = other299.stringStats; - binaryStats = other299.binaryStats; - decimalStats = other299.decimalStats; - dateStats = other299.dateStats; - __isset = other299.__isset; +ColumnStatisticsData::ColumnStatisticsData(const ColumnStatisticsData& other300) { + booleanStats = other300.booleanStats; + longStats = other300.longStats; + doubleStats = other300.doubleStats; + stringStats = other300.stringStats; + binaryStats = other300.binaryStats; + decimalStats = other300.decimalStats; + dateStats = other300.dateStats; + __isset = other300.__isset; +} +ColumnStatisticsData& ColumnStatisticsData::operator=(const ColumnStatisticsData& other301) { + booleanStats = other301.booleanStats; + longStats = other301.longStats; + doubleStats = other301.doubleStats; + stringStats = other301.stringStats; + binaryStats = other301.binaryStats; + decimalStats = other301.decimalStats; + dateStats = other301.dateStats; + __isset = other301.__isset; return *this; } void ColumnStatisticsData::printTo(std::ostream& out) const { @@ -8317,15 +8543,15 @@ void swap(ColumnStatisticsObj &a, ColumnStatisticsObj &b) { swap(a.statsData, b.statsData); } -ColumnStatisticsObj::ColumnStatisticsObj(const ColumnStatisticsObj& other300) { - colName = other300.colName; - colType = other300.colType; - statsData = other300.statsData; +ColumnStatisticsObj::ColumnStatisticsObj(const ColumnStatisticsObj& other302) { + colName = other302.colName; + colType = other302.colType; + statsData = other302.statsData; } -ColumnStatisticsObj& ColumnStatisticsObj::operator=(const ColumnStatisticsObj& other301) { - colName = other301.colName; - colType = other301.colType; - statsData = other301.statsData; +ColumnStatisticsObj& ColumnStatisticsObj::operator=(const ColumnStatisticsObj& other303) { + colName = other303.colName; + colType = other303.colType; + statsData = other303.statsData; return *this; } void ColumnStatisticsObj::printTo(std::ostream& out) const { @@ -8488,21 +8714,21 @@ void swap(ColumnStatisticsDesc &a, ColumnStatisticsDesc &b) { swap(a.__isset, b.__isset); } -ColumnStatisticsDesc::ColumnStatisticsDesc(const ColumnStatisticsDesc& other302) { - isTblLevel = other302.isTblLevel; - dbName = other302.dbName; - tableName = other302.tableName; - partName = other302.partName; - lastAnalyzed = other302.lastAnalyzed; - __isset = other302.__isset; -} -ColumnStatisticsDesc& ColumnStatisticsDesc::operator=(const ColumnStatisticsDesc& other303) { - isTblLevel = other303.isTblLevel; - dbName = other303.dbName; - tableName = other303.tableName; - partName = other303.partName; - lastAnalyzed = other303.lastAnalyzed; - __isset = other303.__isset; +ColumnStatisticsDesc::ColumnStatisticsDesc(const ColumnStatisticsDesc& other304) { + isTblLevel = other304.isTblLevel; + dbName = other304.dbName; + tableName = other304.tableName; + partName = other304.partName; + lastAnalyzed = other304.lastAnalyzed; + __isset = other304.__isset; +} +ColumnStatisticsDesc& ColumnStatisticsDesc::operator=(const ColumnStatisticsDesc& other305) { + isTblLevel = other305.isTblLevel; + dbName = other305.dbName; + tableName = other305.tableName; + partName = other305.partName; + lastAnalyzed = other305.lastAnalyzed; + __isset = other305.__isset; return *this; } void ColumnStatisticsDesc::printTo(std::ostream& out) const { @@ -8564,14 +8790,14 @@ uint32_t ColumnStatistics::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->statsObj.clear(); - uint32_t _size304; - ::apache::thrift::protocol::TType _etype307; - xfer += iprot->readListBegin(_etype307, _size304); - this->statsObj.resize(_size304); - uint32_t _i308; - for (_i308 = 0; _i308 < _size304; ++_i308) + uint32_t _size306; + ::apache::thrift::protocol::TType _etype309; + xfer += iprot->readListBegin(_etype309, _size306); + this->statsObj.resize(_size306); + uint32_t _i310; + for (_i310 = 0; _i310 < _size306; ++_i310) { - xfer += this->statsObj[_i308].read(iprot); + xfer += this->statsObj[_i310].read(iprot); } xfer += iprot->readListEnd(); } @@ -8608,10 +8834,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 _iter309; - for (_iter309 = this->statsObj.begin(); _iter309 != this->statsObj.end(); ++_iter309) + std::vector ::const_iterator _iter311; + for (_iter311 = this->statsObj.begin(); _iter311 != this->statsObj.end(); ++_iter311) { - xfer += (*_iter309).write(oprot); + xfer += (*_iter311).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8628,13 +8854,13 @@ void swap(ColumnStatistics &a, ColumnStatistics &b) { swap(a.statsObj, b.statsObj); } -ColumnStatistics::ColumnStatistics(const ColumnStatistics& other310) { - statsDesc = other310.statsDesc; - statsObj = other310.statsObj; +ColumnStatistics::ColumnStatistics(const ColumnStatistics& other312) { + statsDesc = other312.statsDesc; + statsObj = other312.statsObj; } -ColumnStatistics& ColumnStatistics::operator=(const ColumnStatistics& other311) { - statsDesc = other311.statsDesc; - statsObj = other311.statsObj; +ColumnStatistics& ColumnStatistics::operator=(const ColumnStatistics& other313) { + statsDesc = other313.statsDesc; + statsObj = other313.statsObj; return *this; } void ColumnStatistics::printTo(std::ostream& out) const { @@ -8685,14 +8911,14 @@ uint32_t AggrStats::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colStats.clear(); - uint32_t _size312; - ::apache::thrift::protocol::TType _etype315; - xfer += iprot->readListBegin(_etype315, _size312); - this->colStats.resize(_size312); - uint32_t _i316; - for (_i316 = 0; _i316 < _size312; ++_i316) + uint32_t _size314; + ::apache::thrift::protocol::TType _etype317; + xfer += iprot->readListBegin(_etype317, _size314); + this->colStats.resize(_size314); + uint32_t _i318; + for (_i318 = 0; _i318 < _size314; ++_i318) { - xfer += this->colStats[_i316].read(iprot); + xfer += this->colStats[_i318].read(iprot); } xfer += iprot->readListEnd(); } @@ -8733,10 +8959,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 _iter317; - for (_iter317 = this->colStats.begin(); _iter317 != this->colStats.end(); ++_iter317) + std::vector ::const_iterator _iter319; + for (_iter319 = this->colStats.begin(); _iter319 != this->colStats.end(); ++_iter319) { - xfer += (*_iter317).write(oprot); + xfer += (*_iter319).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8757,13 +8983,13 @@ void swap(AggrStats &a, AggrStats &b) { swap(a.partsFound, b.partsFound); } -AggrStats::AggrStats(const AggrStats& other318) { - colStats = other318.colStats; - partsFound = other318.partsFound; +AggrStats::AggrStats(const AggrStats& other320) { + colStats = other320.colStats; + partsFound = other320.partsFound; } -AggrStats& AggrStats::operator=(const AggrStats& other319) { - colStats = other319.colStats; - partsFound = other319.partsFound; +AggrStats& AggrStats::operator=(const AggrStats& other321) { + colStats = other321.colStats; + partsFound = other321.partsFound; return *this; } void AggrStats::printTo(std::ostream& out) const { @@ -8814,14 +9040,14 @@ uint32_t SetPartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colStats.clear(); - uint32_t _size320; - ::apache::thrift::protocol::TType _etype323; - xfer += iprot->readListBegin(_etype323, _size320); - this->colStats.resize(_size320); - uint32_t _i324; - for (_i324 = 0; _i324 < _size320; ++_i324) + uint32_t _size322; + ::apache::thrift::protocol::TType _etype325; + xfer += iprot->readListBegin(_etype325, _size322); + this->colStats.resize(_size322); + uint32_t _i326; + for (_i326 = 0; _i326 < _size322; ++_i326) { - xfer += this->colStats[_i324].read(iprot); + xfer += this->colStats[_i326].read(iprot); } xfer += iprot->readListEnd(); } @@ -8860,10 +9086,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 _iter325; - for (_iter325 = this->colStats.begin(); _iter325 != this->colStats.end(); ++_iter325) + std::vector ::const_iterator _iter327; + for (_iter327 = this->colStats.begin(); _iter327 != this->colStats.end(); ++_iter327) { - xfer += (*_iter325).write(oprot); + xfer += (*_iter327).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8886,15 +9112,15 @@ void swap(SetPartitionsStatsRequest &a, SetPartitionsStatsRequest &b) { swap(a.__isset, b.__isset); } -SetPartitionsStatsRequest::SetPartitionsStatsRequest(const SetPartitionsStatsRequest& other326) { - colStats = other326.colStats; - needMerge = other326.needMerge; - __isset = other326.__isset; +SetPartitionsStatsRequest::SetPartitionsStatsRequest(const SetPartitionsStatsRequest& other328) { + colStats = other328.colStats; + needMerge = other328.needMerge; + __isset = other328.__isset; } -SetPartitionsStatsRequest& SetPartitionsStatsRequest::operator=(const SetPartitionsStatsRequest& other327) { - colStats = other327.colStats; - needMerge = other327.needMerge; - __isset = other327.__isset; +SetPartitionsStatsRequest& SetPartitionsStatsRequest::operator=(const SetPartitionsStatsRequest& other329) { + colStats = other329.colStats; + needMerge = other329.needMerge; + __isset = other329.__isset; return *this; } void SetPartitionsStatsRequest::printTo(std::ostream& out) const { @@ -8943,14 +9169,14 @@ uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fieldSchemas.clear(); - uint32_t _size328; - ::apache::thrift::protocol::TType _etype331; - xfer += iprot->readListBegin(_etype331, _size328); - this->fieldSchemas.resize(_size328); - uint32_t _i332; - for (_i332 = 0; _i332 < _size328; ++_i332) + uint32_t _size330; + ::apache::thrift::protocol::TType _etype333; + xfer += iprot->readListBegin(_etype333, _size330); + this->fieldSchemas.resize(_size330); + uint32_t _i334; + for (_i334 = 0; _i334 < _size330; ++_i334) { - xfer += this->fieldSchemas[_i332].read(iprot); + xfer += this->fieldSchemas[_i334].read(iprot); } xfer += iprot->readListEnd(); } @@ -8963,17 +9189,17 @@ uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->properties.clear(); - uint32_t _size333; - ::apache::thrift::protocol::TType _ktype334; - ::apache::thrift::protocol::TType _vtype335; - xfer += iprot->readMapBegin(_ktype334, _vtype335, _size333); - uint32_t _i337; - for (_i337 = 0; _i337 < _size333; ++_i337) + uint32_t _size335; + ::apache::thrift::protocol::TType _ktype336; + ::apache::thrift::protocol::TType _vtype337; + xfer += iprot->readMapBegin(_ktype336, _vtype337, _size335); + uint32_t _i339; + for (_i339 = 0; _i339 < _size335; ++_i339) { - std::string _key338; - xfer += iprot->readString(_key338); - std::string& _val339 = this->properties[_key338]; - xfer += iprot->readString(_val339); + std::string _key340; + xfer += iprot->readString(_key340); + std::string& _val341 = this->properties[_key340]; + xfer += iprot->readString(_val341); } xfer += iprot->readMapEnd(); } @@ -9002,10 +9228,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 _iter340; - for (_iter340 = this->fieldSchemas.begin(); _iter340 != this->fieldSchemas.end(); ++_iter340) + std::vector ::const_iterator _iter342; + for (_iter342 = this->fieldSchemas.begin(); _iter342 != this->fieldSchemas.end(); ++_iter342) { - xfer += (*_iter340).write(oprot); + xfer += (*_iter342).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9014,11 +9240,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 _iter341; - for (_iter341 = this->properties.begin(); _iter341 != this->properties.end(); ++_iter341) + std::map ::const_iterator _iter343; + for (_iter343 = this->properties.begin(); _iter343 != this->properties.end(); ++_iter343) { - xfer += oprot->writeString(_iter341->first); - xfer += oprot->writeString(_iter341->second); + xfer += oprot->writeString(_iter343->first); + xfer += oprot->writeString(_iter343->second); } xfer += oprot->writeMapEnd(); } @@ -9036,15 +9262,15 @@ void swap(Schema &a, Schema &b) { swap(a.__isset, b.__isset); } -Schema::Schema(const Schema& other342) { - fieldSchemas = other342.fieldSchemas; - properties = other342.properties; - __isset = other342.__isset; +Schema::Schema(const Schema& other344) { + fieldSchemas = other344.fieldSchemas; + properties = other344.properties; + __isset = other344.__isset; } -Schema& Schema::operator=(const Schema& other343) { - fieldSchemas = other343.fieldSchemas; - properties = other343.properties; - __isset = other343.__isset; +Schema& Schema::operator=(const Schema& other345) { + fieldSchemas = other345.fieldSchemas; + properties = other345.properties; + __isset = other345.__isset; return *this; } void Schema::printTo(std::ostream& out) const { @@ -9089,17 +9315,17 @@ uint32_t EnvironmentContext::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_MAP) { { this->properties.clear(); - uint32_t _size344; - ::apache::thrift::protocol::TType _ktype345; - ::apache::thrift::protocol::TType _vtype346; - xfer += iprot->readMapBegin(_ktype345, _vtype346, _size344); - uint32_t _i348; - for (_i348 = 0; _i348 < _size344; ++_i348) + uint32_t _size346; + ::apache::thrift::protocol::TType _ktype347; + ::apache::thrift::protocol::TType _vtype348; + xfer += iprot->readMapBegin(_ktype347, _vtype348, _size346); + uint32_t _i350; + for (_i350 = 0; _i350 < _size346; ++_i350) { - std::string _key349; - xfer += iprot->readString(_key349); - std::string& _val350 = this->properties[_key349]; - xfer += iprot->readString(_val350); + std::string _key351; + xfer += iprot->readString(_key351); + std::string& _val352 = this->properties[_key351]; + xfer += iprot->readString(_val352); } xfer += iprot->readMapEnd(); } @@ -9128,11 +9354,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 _iter351; - for (_iter351 = this->properties.begin(); _iter351 != this->properties.end(); ++_iter351) + std::map ::const_iterator _iter353; + for (_iter353 = this->properties.begin(); _iter353 != this->properties.end(); ++_iter353) { - xfer += oprot->writeString(_iter351->first); - xfer += oprot->writeString(_iter351->second); + xfer += oprot->writeString(_iter353->first); + xfer += oprot->writeString(_iter353->second); } xfer += oprot->writeMapEnd(); } @@ -9149,13 +9375,13 @@ void swap(EnvironmentContext &a, EnvironmentContext &b) { swap(a.__isset, b.__isset); } -EnvironmentContext::EnvironmentContext(const EnvironmentContext& other352) { - properties = other352.properties; - __isset = other352.__isset; +EnvironmentContext::EnvironmentContext(const EnvironmentContext& other354) { + properties = other354.properties; + __isset = other354.__isset; } -EnvironmentContext& EnvironmentContext::operator=(const EnvironmentContext& other353) { - properties = other353.properties; - __isset = other353.__isset; +EnvironmentContext& EnvironmentContext::operator=(const EnvironmentContext& other355) { + properties = other355.properties; + __isset = other355.__isset; return *this; } void EnvironmentContext::printTo(std::ostream& out) const { @@ -9257,13 +9483,13 @@ void swap(PrimaryKeysRequest &a, PrimaryKeysRequest &b) { swap(a.tbl_name, b.tbl_name); } -PrimaryKeysRequest::PrimaryKeysRequest(const PrimaryKeysRequest& other354) { - db_name = other354.db_name; - tbl_name = other354.tbl_name; +PrimaryKeysRequest::PrimaryKeysRequest(const PrimaryKeysRequest& other356) { + db_name = other356.db_name; + tbl_name = other356.tbl_name; } -PrimaryKeysRequest& PrimaryKeysRequest::operator=(const PrimaryKeysRequest& other355) { - db_name = other355.db_name; - tbl_name = other355.tbl_name; +PrimaryKeysRequest& PrimaryKeysRequest::operator=(const PrimaryKeysRequest& other357) { + db_name = other357.db_name; + tbl_name = other357.tbl_name; return *this; } void PrimaryKeysRequest::printTo(std::ostream& out) const { @@ -9309,14 +9535,14 @@ uint32_t PrimaryKeysResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->primaryKeys.clear(); - uint32_t _size356; - ::apache::thrift::protocol::TType _etype359; - xfer += iprot->readListBegin(_etype359, _size356); - this->primaryKeys.resize(_size356); - uint32_t _i360; - for (_i360 = 0; _i360 < _size356; ++_i360) + uint32_t _size358; + ::apache::thrift::protocol::TType _etype361; + xfer += iprot->readListBegin(_etype361, _size358); + this->primaryKeys.resize(_size358); + uint32_t _i362; + for (_i362 = 0; _i362 < _size358; ++_i362) { - xfer += this->primaryKeys[_i360].read(iprot); + xfer += this->primaryKeys[_i362].read(iprot); } xfer += iprot->readListEnd(); } @@ -9347,10 +9573,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 _iter361; - for (_iter361 = this->primaryKeys.begin(); _iter361 != this->primaryKeys.end(); ++_iter361) + std::vector ::const_iterator _iter363; + for (_iter363 = this->primaryKeys.begin(); _iter363 != this->primaryKeys.end(); ++_iter363) { - xfer += (*_iter361).write(oprot); + xfer += (*_iter363).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9366,11 +9592,11 @@ void swap(PrimaryKeysResponse &a, PrimaryKeysResponse &b) { swap(a.primaryKeys, b.primaryKeys); } -PrimaryKeysResponse::PrimaryKeysResponse(const PrimaryKeysResponse& other362) { - primaryKeys = other362.primaryKeys; +PrimaryKeysResponse::PrimaryKeysResponse(const PrimaryKeysResponse& other364) { + primaryKeys = other364.primaryKeys; } -PrimaryKeysResponse& PrimaryKeysResponse::operator=(const PrimaryKeysResponse& other363) { - primaryKeys = other363.primaryKeys; +PrimaryKeysResponse& PrimaryKeysResponse::operator=(const PrimaryKeysResponse& other365) { + primaryKeys = other365.primaryKeys; return *this; } void PrimaryKeysResponse::printTo(std::ostream& out) const { @@ -9501,19 +9727,19 @@ void swap(ForeignKeysRequest &a, ForeignKeysRequest &b) { swap(a.__isset, b.__isset); } -ForeignKeysRequest::ForeignKeysRequest(const ForeignKeysRequest& other364) { - parent_db_name = other364.parent_db_name; - parent_tbl_name = other364.parent_tbl_name; - foreign_db_name = other364.foreign_db_name; - foreign_tbl_name = other364.foreign_tbl_name; - __isset = other364.__isset; +ForeignKeysRequest::ForeignKeysRequest(const ForeignKeysRequest& other366) { + parent_db_name = other366.parent_db_name; + parent_tbl_name = other366.parent_tbl_name; + foreign_db_name = other366.foreign_db_name; + foreign_tbl_name = other366.foreign_tbl_name; + __isset = other366.__isset; } -ForeignKeysRequest& ForeignKeysRequest::operator=(const ForeignKeysRequest& other365) { - parent_db_name = other365.parent_db_name; - parent_tbl_name = other365.parent_tbl_name; - foreign_db_name = other365.foreign_db_name; - foreign_tbl_name = other365.foreign_tbl_name; - __isset = other365.__isset; +ForeignKeysRequest& ForeignKeysRequest::operator=(const ForeignKeysRequest& other367) { + parent_db_name = other367.parent_db_name; + parent_tbl_name = other367.parent_tbl_name; + foreign_db_name = other367.foreign_db_name; + foreign_tbl_name = other367.foreign_tbl_name; + __isset = other367.__isset; return *this; } void ForeignKeysRequest::printTo(std::ostream& out) const { @@ -9561,14 +9787,14 @@ uint32_t ForeignKeysResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->foreignKeys.clear(); - uint32_t _size366; - ::apache::thrift::protocol::TType _etype369; - xfer += iprot->readListBegin(_etype369, _size366); - this->foreignKeys.resize(_size366); - uint32_t _i370; - for (_i370 = 0; _i370 < _size366; ++_i370) + uint32_t _size368; + ::apache::thrift::protocol::TType _etype371; + xfer += iprot->readListBegin(_etype371, _size368); + this->foreignKeys.resize(_size368); + uint32_t _i372; + for (_i372 = 0; _i372 < _size368; ++_i372) { - xfer += this->foreignKeys[_i370].read(iprot); + xfer += this->foreignKeys[_i372].read(iprot); } xfer += iprot->readListEnd(); } @@ -9599,10 +9825,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 _iter371; - for (_iter371 = this->foreignKeys.begin(); _iter371 != this->foreignKeys.end(); ++_iter371) + std::vector ::const_iterator _iter373; + for (_iter373 = this->foreignKeys.begin(); _iter373 != this->foreignKeys.end(); ++_iter373) { - xfer += (*_iter371).write(oprot); + xfer += (*_iter373).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9618,11 +9844,11 @@ void swap(ForeignKeysResponse &a, ForeignKeysResponse &b) { swap(a.foreignKeys, b.foreignKeys); } -ForeignKeysResponse::ForeignKeysResponse(const ForeignKeysResponse& other372) { - foreignKeys = other372.foreignKeys; +ForeignKeysResponse::ForeignKeysResponse(const ForeignKeysResponse& other374) { + foreignKeys = other374.foreignKeys; } -ForeignKeysResponse& ForeignKeysResponse::operator=(const ForeignKeysResponse& other373) { - foreignKeys = other373.foreignKeys; +ForeignKeysResponse& ForeignKeysResponse::operator=(const ForeignKeysResponse& other375) { + foreignKeys = other375.foreignKeys; return *this; } void ForeignKeysResponse::printTo(std::ostream& out) const { @@ -9724,13 +9950,13 @@ void swap(UniqueConstraintsRequest &a, UniqueConstraintsRequest &b) { swap(a.tbl_name, b.tbl_name); } -UniqueConstraintsRequest::UniqueConstraintsRequest(const UniqueConstraintsRequest& other374) { - db_name = other374.db_name; - tbl_name = other374.tbl_name; +UniqueConstraintsRequest::UniqueConstraintsRequest(const UniqueConstraintsRequest& other376) { + db_name = other376.db_name; + tbl_name = other376.tbl_name; } -UniqueConstraintsRequest& UniqueConstraintsRequest::operator=(const UniqueConstraintsRequest& other375) { - db_name = other375.db_name; - tbl_name = other375.tbl_name; +UniqueConstraintsRequest& UniqueConstraintsRequest::operator=(const UniqueConstraintsRequest& other377) { + db_name = other377.db_name; + tbl_name = other377.tbl_name; return *this; } void UniqueConstraintsRequest::printTo(std::ostream& out) const { @@ -9776,14 +10002,14 @@ uint32_t UniqueConstraintsResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->uniqueConstraints.clear(); - uint32_t _size376; - ::apache::thrift::protocol::TType _etype379; - xfer += iprot->readListBegin(_etype379, _size376); - this->uniqueConstraints.resize(_size376); - uint32_t _i380; - for (_i380 = 0; _i380 < _size376; ++_i380) + uint32_t _size378; + ::apache::thrift::protocol::TType _etype381; + xfer += iprot->readListBegin(_etype381, _size378); + this->uniqueConstraints.resize(_size378); + uint32_t _i382; + for (_i382 = 0; _i382 < _size378; ++_i382) { - xfer += this->uniqueConstraints[_i380].read(iprot); + xfer += this->uniqueConstraints[_i382].read(iprot); } xfer += iprot->readListEnd(); } @@ -9814,10 +10040,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 _iter381; - for (_iter381 = this->uniqueConstraints.begin(); _iter381 != this->uniqueConstraints.end(); ++_iter381) + std::vector ::const_iterator _iter383; + for (_iter383 = this->uniqueConstraints.begin(); _iter383 != this->uniqueConstraints.end(); ++_iter383) { - xfer += (*_iter381).write(oprot); + xfer += (*_iter383).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9833,11 +10059,11 @@ void swap(UniqueConstraintsResponse &a, UniqueConstraintsResponse &b) { swap(a.uniqueConstraints, b.uniqueConstraints); } -UniqueConstraintsResponse::UniqueConstraintsResponse(const UniqueConstraintsResponse& other382) { - uniqueConstraints = other382.uniqueConstraints; +UniqueConstraintsResponse::UniqueConstraintsResponse(const UniqueConstraintsResponse& other384) { + uniqueConstraints = other384.uniqueConstraints; } -UniqueConstraintsResponse& UniqueConstraintsResponse::operator=(const UniqueConstraintsResponse& other383) { - uniqueConstraints = other383.uniqueConstraints; +UniqueConstraintsResponse& UniqueConstraintsResponse::operator=(const UniqueConstraintsResponse& other385) { + uniqueConstraints = other385.uniqueConstraints; return *this; } void UniqueConstraintsResponse::printTo(std::ostream& out) const { @@ -9939,13 +10165,13 @@ void swap(NotNullConstraintsRequest &a, NotNullConstraintsRequest &b) { swap(a.tbl_name, b.tbl_name); } -NotNullConstraintsRequest::NotNullConstraintsRequest(const NotNullConstraintsRequest& other384) { - db_name = other384.db_name; - tbl_name = other384.tbl_name; +NotNullConstraintsRequest::NotNullConstraintsRequest(const NotNullConstraintsRequest& other386) { + db_name = other386.db_name; + tbl_name = other386.tbl_name; } -NotNullConstraintsRequest& NotNullConstraintsRequest::operator=(const NotNullConstraintsRequest& other385) { - db_name = other385.db_name; - tbl_name = other385.tbl_name; +NotNullConstraintsRequest& NotNullConstraintsRequest::operator=(const NotNullConstraintsRequest& other387) { + db_name = other387.db_name; + tbl_name = other387.tbl_name; return *this; } void NotNullConstraintsRequest::printTo(std::ostream& out) const { @@ -9991,14 +10217,14 @@ uint32_t NotNullConstraintsResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->notNullConstraints.clear(); - uint32_t _size386; - ::apache::thrift::protocol::TType _etype389; - xfer += iprot->readListBegin(_etype389, _size386); - this->notNullConstraints.resize(_size386); - uint32_t _i390; - for (_i390 = 0; _i390 < _size386; ++_i390) + uint32_t _size388; + ::apache::thrift::protocol::TType _etype391; + xfer += iprot->readListBegin(_etype391, _size388); + this->notNullConstraints.resize(_size388); + uint32_t _i392; + for (_i392 = 0; _i392 < _size388; ++_i392) { - xfer += this->notNullConstraints[_i390].read(iprot); + xfer += this->notNullConstraints[_i392].read(iprot); } xfer += iprot->readListEnd(); } @@ -10029,10 +10255,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 _iter391; - for (_iter391 = this->notNullConstraints.begin(); _iter391 != this->notNullConstraints.end(); ++_iter391) + std::vector ::const_iterator _iter393; + for (_iter393 = this->notNullConstraints.begin(); _iter393 != this->notNullConstraints.end(); ++_iter393) { - xfer += (*_iter391).write(oprot); + xfer += (*_iter393).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10048,11 +10274,11 @@ void swap(NotNullConstraintsResponse &a, NotNullConstraintsResponse &b) { swap(a.notNullConstraints, b.notNullConstraints); } -NotNullConstraintsResponse::NotNullConstraintsResponse(const NotNullConstraintsResponse& other392) { - notNullConstraints = other392.notNullConstraints; +NotNullConstraintsResponse::NotNullConstraintsResponse(const NotNullConstraintsResponse& other394) { + notNullConstraints = other394.notNullConstraints; } -NotNullConstraintsResponse& NotNullConstraintsResponse::operator=(const NotNullConstraintsResponse& other393) { - notNullConstraints = other393.notNullConstraints; +NotNullConstraintsResponse& NotNullConstraintsResponse::operator=(const NotNullConstraintsResponse& other395) { + notNullConstraints = other395.notNullConstraints; return *this; } void NotNullConstraintsResponse::printTo(std::ostream& out) const { @@ -10154,13 +10380,13 @@ void swap(DefaultConstraintsRequest &a, DefaultConstraintsRequest &b) { swap(a.tbl_name, b.tbl_name); } -DefaultConstraintsRequest::DefaultConstraintsRequest(const DefaultConstraintsRequest& other394) { - db_name = other394.db_name; - tbl_name = other394.tbl_name; +DefaultConstraintsRequest::DefaultConstraintsRequest(const DefaultConstraintsRequest& other396) { + db_name = other396.db_name; + tbl_name = other396.tbl_name; } -DefaultConstraintsRequest& DefaultConstraintsRequest::operator=(const DefaultConstraintsRequest& other395) { - db_name = other395.db_name; - tbl_name = other395.tbl_name; +DefaultConstraintsRequest& DefaultConstraintsRequest::operator=(const DefaultConstraintsRequest& other397) { + db_name = other397.db_name; + tbl_name = other397.tbl_name; return *this; } void DefaultConstraintsRequest::printTo(std::ostream& out) const { @@ -10206,14 +10432,14 @@ uint32_t DefaultConstraintsResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->defaultConstraints.clear(); - uint32_t _size396; - ::apache::thrift::protocol::TType _etype399; - xfer += iprot->readListBegin(_etype399, _size396); - this->defaultConstraints.resize(_size396); - uint32_t _i400; - for (_i400 = 0; _i400 < _size396; ++_i400) + uint32_t _size398; + ::apache::thrift::protocol::TType _etype401; + xfer += iprot->readListBegin(_etype401, _size398); + this->defaultConstraints.resize(_size398); + uint32_t _i402; + for (_i402 = 0; _i402 < _size398; ++_i402) { - xfer += this->defaultConstraints[_i400].read(iprot); + xfer += this->defaultConstraints[_i402].read(iprot); } xfer += iprot->readListEnd(); } @@ -10244,10 +10470,10 @@ uint32_t DefaultConstraintsResponse::write(::apache::thrift::protocol::TProtocol 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 _iter401; - for (_iter401 = this->defaultConstraints.begin(); _iter401 != this->defaultConstraints.end(); ++_iter401) + std::vector ::const_iterator _iter403; + for (_iter403 = this->defaultConstraints.begin(); _iter403 != this->defaultConstraints.end(); ++_iter403) { - xfer += (*_iter401).write(oprot); + xfer += (*_iter403).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10263,11 +10489,11 @@ void swap(DefaultConstraintsResponse &a, DefaultConstraintsResponse &b) { swap(a.defaultConstraints, b.defaultConstraints); } -DefaultConstraintsResponse::DefaultConstraintsResponse(const DefaultConstraintsResponse& other402) { - defaultConstraints = other402.defaultConstraints; +DefaultConstraintsResponse::DefaultConstraintsResponse(const DefaultConstraintsResponse& other404) { + defaultConstraints = other404.defaultConstraints; } -DefaultConstraintsResponse& DefaultConstraintsResponse::operator=(const DefaultConstraintsResponse& other403) { - defaultConstraints = other403.defaultConstraints; +DefaultConstraintsResponse& DefaultConstraintsResponse::operator=(const DefaultConstraintsResponse& other405) { + defaultConstraints = other405.defaultConstraints; return *this; } void DefaultConstraintsResponse::printTo(std::ostream& out) const { @@ -10278,6 +10504,221 @@ void DefaultConstraintsResponse::printTo(std::ostream& out) const { } +CheckConstraintsRequest::~CheckConstraintsRequest() throw() { +} + + +void CheckConstraintsRequest::__set_db_name(const std::string& val) { + this->db_name = val; +} + +void CheckConstraintsRequest::__set_tbl_name(const std::string& val) { + this->tbl_name = val; +} + +uint32_t CheckConstraintsRequest::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 CheckConstraintsRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("CheckConstraintsRequest"); + + 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(CheckConstraintsRequest &a, CheckConstraintsRequest &b) { + using ::std::swap; + swap(a.db_name, b.db_name); + swap(a.tbl_name, b.tbl_name); +} + +CheckConstraintsRequest::CheckConstraintsRequest(const CheckConstraintsRequest& other406) { + db_name = other406.db_name; + tbl_name = other406.tbl_name; +} +CheckConstraintsRequest& CheckConstraintsRequest::operator=(const CheckConstraintsRequest& other407) { + db_name = other407.db_name; + tbl_name = other407.tbl_name; + return *this; +} +void CheckConstraintsRequest::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "CheckConstraintsRequest("; + out << "db_name=" << to_string(db_name); + out << ", " << "tbl_name=" << to_string(tbl_name); + out << ")"; +} + + +CheckConstraintsResponse::~CheckConstraintsResponse() throw() { +} + + +void CheckConstraintsResponse::__set_checkConstraints(const std::vector & val) { + this->checkConstraints = val; +} + +uint32_t CheckConstraintsResponse::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_checkConstraints = 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->checkConstraints.clear(); + uint32_t _size408; + ::apache::thrift::protocol::TType _etype411; + xfer += iprot->readListBegin(_etype411, _size408); + this->checkConstraints.resize(_size408); + uint32_t _i412; + for (_i412 = 0; _i412 < _size408; ++_i412) + { + xfer += this->checkConstraints[_i412].read(iprot); + } + xfer += iprot->readListEnd(); + } + isset_checkConstraints = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_checkConstraints) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t CheckConstraintsResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("CheckConstraintsResponse"); + + xfer += oprot->writeFieldBegin("checkConstraints", ::apache::thrift::protocol::T_LIST, 1); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->checkConstraints.size())); + std::vector ::const_iterator _iter413; + for (_iter413 = this->checkConstraints.begin(); _iter413 != this->checkConstraints.end(); ++_iter413) + { + xfer += (*_iter413).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(CheckConstraintsResponse &a, CheckConstraintsResponse &b) { + using ::std::swap; + swap(a.checkConstraints, b.checkConstraints); +} + +CheckConstraintsResponse::CheckConstraintsResponse(const CheckConstraintsResponse& other414) { + checkConstraints = other414.checkConstraints; +} +CheckConstraintsResponse& CheckConstraintsResponse::operator=(const CheckConstraintsResponse& other415) { + checkConstraints = other415.checkConstraints; + return *this; +} +void CheckConstraintsResponse::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "CheckConstraintsResponse("; + out << "checkConstraints=" << to_string(checkConstraints); + out << ")"; +} + + DropConstraintRequest::~DropConstraintRequest() throw() { } @@ -10389,15 +10830,15 @@ void swap(DropConstraintRequest &a, DropConstraintRequest &b) { swap(a.constraintname, b.constraintname); } -DropConstraintRequest::DropConstraintRequest(const DropConstraintRequest& other404) { - dbname = other404.dbname; - tablename = other404.tablename; - constraintname = other404.constraintname; +DropConstraintRequest::DropConstraintRequest(const DropConstraintRequest& other416) { + dbname = other416.dbname; + tablename = other416.tablename; + constraintname = other416.constraintname; } -DropConstraintRequest& DropConstraintRequest::operator=(const DropConstraintRequest& other405) { - dbname = other405.dbname; - tablename = other405.tablename; - constraintname = other405.constraintname; +DropConstraintRequest& DropConstraintRequest::operator=(const DropConstraintRequest& other417) { + dbname = other417.dbname; + tablename = other417.tablename; + constraintname = other417.constraintname; return *this; } void DropConstraintRequest::printTo(std::ostream& out) const { @@ -10444,14 +10885,14 @@ uint32_t AddPrimaryKeyRequest::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->primaryKeyCols.clear(); - uint32_t _size406; - ::apache::thrift::protocol::TType _etype409; - xfer += iprot->readListBegin(_etype409, _size406); - this->primaryKeyCols.resize(_size406); - uint32_t _i410; - for (_i410 = 0; _i410 < _size406; ++_i410) + uint32_t _size418; + ::apache::thrift::protocol::TType _etype421; + xfer += iprot->readListBegin(_etype421, _size418); + this->primaryKeyCols.resize(_size418); + uint32_t _i422; + for (_i422 = 0; _i422 < _size418; ++_i422) { - xfer += this->primaryKeyCols[_i410].read(iprot); + xfer += this->primaryKeyCols[_i422].read(iprot); } xfer += iprot->readListEnd(); } @@ -10482,10 +10923,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 _iter411; - for (_iter411 = this->primaryKeyCols.begin(); _iter411 != this->primaryKeyCols.end(); ++_iter411) + std::vector ::const_iterator _iter423; + for (_iter423 = this->primaryKeyCols.begin(); _iter423 != this->primaryKeyCols.end(); ++_iter423) { - xfer += (*_iter411).write(oprot); + xfer += (*_iter423).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10501,11 +10942,11 @@ void swap(AddPrimaryKeyRequest &a, AddPrimaryKeyRequest &b) { swap(a.primaryKeyCols, b.primaryKeyCols); } -AddPrimaryKeyRequest::AddPrimaryKeyRequest(const AddPrimaryKeyRequest& other412) { - primaryKeyCols = other412.primaryKeyCols; +AddPrimaryKeyRequest::AddPrimaryKeyRequest(const AddPrimaryKeyRequest& other424) { + primaryKeyCols = other424.primaryKeyCols; } -AddPrimaryKeyRequest& AddPrimaryKeyRequest::operator=(const AddPrimaryKeyRequest& other413) { - primaryKeyCols = other413.primaryKeyCols; +AddPrimaryKeyRequest& AddPrimaryKeyRequest::operator=(const AddPrimaryKeyRequest& other425) { + primaryKeyCols = other425.primaryKeyCols; return *this; } void AddPrimaryKeyRequest::printTo(std::ostream& out) const { @@ -10550,14 +10991,14 @@ uint32_t AddForeignKeyRequest::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->foreignKeyCols.clear(); - uint32_t _size414; - ::apache::thrift::protocol::TType _etype417; - xfer += iprot->readListBegin(_etype417, _size414); - this->foreignKeyCols.resize(_size414); - uint32_t _i418; - for (_i418 = 0; _i418 < _size414; ++_i418) + uint32_t _size426; + ::apache::thrift::protocol::TType _etype429; + xfer += iprot->readListBegin(_etype429, _size426); + this->foreignKeyCols.resize(_size426); + uint32_t _i430; + for (_i430 = 0; _i430 < _size426; ++_i430) { - xfer += this->foreignKeyCols[_i418].read(iprot); + xfer += this->foreignKeyCols[_i430].read(iprot); } xfer += iprot->readListEnd(); } @@ -10588,10 +11029,10 @@ uint32_t AddForeignKeyRequest::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldBegin("foreignKeyCols", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->foreignKeyCols.size())); - std::vector ::const_iterator _iter419; - for (_iter419 = this->foreignKeyCols.begin(); _iter419 != this->foreignKeyCols.end(); ++_iter419) + std::vector ::const_iterator _iter431; + for (_iter431 = this->foreignKeyCols.begin(); _iter431 != this->foreignKeyCols.end(); ++_iter431) { - xfer += (*_iter419).write(oprot); + xfer += (*_iter431).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10607,11 +11048,11 @@ void swap(AddForeignKeyRequest &a, AddForeignKeyRequest &b) { swap(a.foreignKeyCols, b.foreignKeyCols); } -AddForeignKeyRequest::AddForeignKeyRequest(const AddForeignKeyRequest& other420) { - foreignKeyCols = other420.foreignKeyCols; +AddForeignKeyRequest::AddForeignKeyRequest(const AddForeignKeyRequest& other432) { + foreignKeyCols = other432.foreignKeyCols; } -AddForeignKeyRequest& AddForeignKeyRequest::operator=(const AddForeignKeyRequest& other421) { - foreignKeyCols = other421.foreignKeyCols; +AddForeignKeyRequest& AddForeignKeyRequest::operator=(const AddForeignKeyRequest& other433) { + foreignKeyCols = other433.foreignKeyCols; return *this; } void AddForeignKeyRequest::printTo(std::ostream& out) const { @@ -10656,14 +11097,14 @@ uint32_t AddUniqueConstraintRequest::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->uniqueConstraintCols.clear(); - uint32_t _size422; - ::apache::thrift::protocol::TType _etype425; - xfer += iprot->readListBegin(_etype425, _size422); - this->uniqueConstraintCols.resize(_size422); - uint32_t _i426; - for (_i426 = 0; _i426 < _size422; ++_i426) + uint32_t _size434; + ::apache::thrift::protocol::TType _etype437; + xfer += iprot->readListBegin(_etype437, _size434); + this->uniqueConstraintCols.resize(_size434); + uint32_t _i438; + for (_i438 = 0; _i438 < _size434; ++_i438) { - xfer += this->uniqueConstraintCols[_i426].read(iprot); + xfer += this->uniqueConstraintCols[_i438].read(iprot); } xfer += iprot->readListEnd(); } @@ -10694,10 +11135,10 @@ uint32_t AddUniqueConstraintRequest::write(::apache::thrift::protocol::TProtocol xfer += oprot->writeFieldBegin("uniqueConstraintCols", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->uniqueConstraintCols.size())); - std::vector ::const_iterator _iter427; - for (_iter427 = this->uniqueConstraintCols.begin(); _iter427 != this->uniqueConstraintCols.end(); ++_iter427) + std::vector ::const_iterator _iter439; + for (_iter439 = this->uniqueConstraintCols.begin(); _iter439 != this->uniqueConstraintCols.end(); ++_iter439) { - xfer += (*_iter427).write(oprot); + xfer += (*_iter439).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10713,11 +11154,11 @@ void swap(AddUniqueConstraintRequest &a, AddUniqueConstraintRequest &b) { swap(a.uniqueConstraintCols, b.uniqueConstraintCols); } -AddUniqueConstraintRequest::AddUniqueConstraintRequest(const AddUniqueConstraintRequest& other428) { - uniqueConstraintCols = other428.uniqueConstraintCols; +AddUniqueConstraintRequest::AddUniqueConstraintRequest(const AddUniqueConstraintRequest& other440) { + uniqueConstraintCols = other440.uniqueConstraintCols; } -AddUniqueConstraintRequest& AddUniqueConstraintRequest::operator=(const AddUniqueConstraintRequest& other429) { - uniqueConstraintCols = other429.uniqueConstraintCols; +AddUniqueConstraintRequest& AddUniqueConstraintRequest::operator=(const AddUniqueConstraintRequest& other441) { + uniqueConstraintCols = other441.uniqueConstraintCols; return *this; } void AddUniqueConstraintRequest::printTo(std::ostream& out) const { @@ -10761,19 +11202,125 @@ uint32_t AddNotNullConstraintRequest::read(::apache::thrift::protocol::TProtocol case 1: if (ftype == ::apache::thrift::protocol::T_LIST) { { - this->notNullConstraintCols.clear(); - uint32_t _size430; - ::apache::thrift::protocol::TType _etype433; - xfer += iprot->readListBegin(_etype433, _size430); - this->notNullConstraintCols.resize(_size430); - uint32_t _i434; - for (_i434 = 0; _i434 < _size430; ++_i434) + this->notNullConstraintCols.clear(); + uint32_t _size442; + ::apache::thrift::protocol::TType _etype445; + xfer += iprot->readListBegin(_etype445, _size442); + this->notNullConstraintCols.resize(_size442); + uint32_t _i446; + for (_i446 = 0; _i446 < _size442; ++_i446) + { + xfer += this->notNullConstraintCols[_i446].read(iprot); + } + xfer += iprot->readListEnd(); + } + isset_notNullConstraintCols = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_notNullConstraintCols) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t AddNotNullConstraintRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("AddNotNullConstraintRequest"); + + xfer += oprot->writeFieldBegin("notNullConstraintCols", ::apache::thrift::protocol::T_LIST, 1); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->notNullConstraintCols.size())); + std::vector ::const_iterator _iter447; + for (_iter447 = this->notNullConstraintCols.begin(); _iter447 != this->notNullConstraintCols.end(); ++_iter447) + { + xfer += (*_iter447).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(AddNotNullConstraintRequest &a, AddNotNullConstraintRequest &b) { + using ::std::swap; + swap(a.notNullConstraintCols, b.notNullConstraintCols); +} + +AddNotNullConstraintRequest::AddNotNullConstraintRequest(const AddNotNullConstraintRequest& other448) { + notNullConstraintCols = other448.notNullConstraintCols; +} +AddNotNullConstraintRequest& AddNotNullConstraintRequest::operator=(const AddNotNullConstraintRequest& other449) { + notNullConstraintCols = other449.notNullConstraintCols; + return *this; +} +void AddNotNullConstraintRequest::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "AddNotNullConstraintRequest("; + out << "notNullConstraintCols=" << to_string(notNullConstraintCols); + out << ")"; +} + + +AddDefaultConstraintRequest::~AddDefaultConstraintRequest() throw() { +} + + +void AddDefaultConstraintRequest::__set_defaultConstraintCols(const std::vector & val) { + this->defaultConstraintCols = val; +} + +uint32_t AddDefaultConstraintRequest::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_defaultConstraintCols = 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->defaultConstraintCols.clear(); + uint32_t _size450; + ::apache::thrift::protocol::TType _etype453; + xfer += iprot->readListBegin(_etype453, _size450); + this->defaultConstraintCols.resize(_size450); + uint32_t _i454; + for (_i454 = 0; _i454 < _size450; ++_i454) { - xfer += this->notNullConstraintCols[_i434].read(iprot); + xfer += this->defaultConstraintCols[_i454].read(iprot); } xfer += iprot->readListEnd(); } - isset_notNullConstraintCols = true; + isset_defaultConstraintCols = true; } else { xfer += iprot->skip(ftype); } @@ -10787,23 +11334,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 _iter435; - for (_iter435 = this->notNullConstraintCols.begin(); _iter435 != this->notNullConstraintCols.end(); ++_iter435) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->defaultConstraintCols.size())); + std::vector ::const_iterator _iter455; + for (_iter455 = this->defaultConstraintCols.begin(); _iter455 != this->defaultConstraintCols.end(); ++_iter455) { - xfer += (*_iter435).write(oprot); + xfer += (*_iter455).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10814,35 +11361,35 @@ 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& other436) { - notNullConstraintCols = other436.notNullConstraintCols; +AddDefaultConstraintRequest::AddDefaultConstraintRequest(const AddDefaultConstraintRequest& other456) { + defaultConstraintCols = other456.defaultConstraintCols; } -AddNotNullConstraintRequest& AddNotNullConstraintRequest::operator=(const AddNotNullConstraintRequest& other437) { - notNullConstraintCols = other437.notNullConstraintCols; +AddDefaultConstraintRequest& AddDefaultConstraintRequest::operator=(const AddDefaultConstraintRequest& other457) { + defaultConstraintCols = other457.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 << ")"; } -AddDefaultConstraintRequest::~AddDefaultConstraintRequest() throw() { +AddCheckConstraintRequest::~AddCheckConstraintRequest() throw() { } -void AddDefaultConstraintRequest::__set_defaultConstraintCols(const std::vector & val) { - this->defaultConstraintCols = val; +void AddCheckConstraintRequest::__set_checkConstraintCols(const std::vector & val) { + this->checkConstraintCols = val; } -uint32_t AddDefaultConstraintRequest::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t AddCheckConstraintRequest::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -10854,7 +11401,7 @@ uint32_t AddDefaultConstraintRequest::read(::apache::thrift::protocol::TProtocol using ::apache::thrift::protocol::TProtocolException; - bool isset_defaultConstraintCols = false; + bool isset_checkConstraintCols = false; while (true) { @@ -10867,19 +11414,19 @@ uint32_t AddDefaultConstraintRequest::read(::apache::thrift::protocol::TProtocol case 1: if (ftype == ::apache::thrift::protocol::T_LIST) { { - this->defaultConstraintCols.clear(); - uint32_t _size438; - ::apache::thrift::protocol::TType _etype441; - xfer += iprot->readListBegin(_etype441, _size438); - this->defaultConstraintCols.resize(_size438); - uint32_t _i442; - for (_i442 = 0; _i442 < _size438; ++_i442) + this->checkConstraintCols.clear(); + uint32_t _size458; + ::apache::thrift::protocol::TType _etype461; + xfer += iprot->readListBegin(_etype461, _size458); + this->checkConstraintCols.resize(_size458); + uint32_t _i462; + for (_i462 = 0; _i462 < _size458; ++_i462) { - xfer += this->defaultConstraintCols[_i442].read(iprot); + xfer += this->checkConstraintCols[_i462].read(iprot); } xfer += iprot->readListEnd(); } - isset_defaultConstraintCols = true; + isset_checkConstraintCols = true; } else { xfer += iprot->skip(ftype); } @@ -10893,23 +11440,23 @@ uint32_t AddDefaultConstraintRequest::read(::apache::thrift::protocol::TProtocol xfer += iprot->readStructEnd(); - if (!isset_defaultConstraintCols) + if (!isset_checkConstraintCols) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t AddDefaultConstraintRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t AddCheckConstraintRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("AddDefaultConstraintRequest"); + xfer += oprot->writeStructBegin("AddCheckConstraintRequest"); - xfer += oprot->writeFieldBegin("defaultConstraintCols", ::apache::thrift::protocol::T_LIST, 1); + xfer += oprot->writeFieldBegin("checkConstraintCols", ::apache::thrift::protocol::T_LIST, 1); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->defaultConstraintCols.size())); - std::vector ::const_iterator _iter443; - for (_iter443 = this->defaultConstraintCols.begin(); _iter443 != this->defaultConstraintCols.end(); ++_iter443) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->checkConstraintCols.size())); + std::vector ::const_iterator _iter463; + for (_iter463 = this->checkConstraintCols.begin(); _iter463 != this->checkConstraintCols.end(); ++_iter463) { - xfer += (*_iter443).write(oprot); + xfer += (*_iter463).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10920,22 +11467,22 @@ uint32_t AddDefaultConstraintRequest::write(::apache::thrift::protocol::TProtoco return xfer; } -void swap(AddDefaultConstraintRequest &a, AddDefaultConstraintRequest &b) { +void swap(AddCheckConstraintRequest &a, AddCheckConstraintRequest &b) { using ::std::swap; - swap(a.defaultConstraintCols, b.defaultConstraintCols); + swap(a.checkConstraintCols, b.checkConstraintCols); } -AddDefaultConstraintRequest::AddDefaultConstraintRequest(const AddDefaultConstraintRequest& other444) { - defaultConstraintCols = other444.defaultConstraintCols; +AddCheckConstraintRequest::AddCheckConstraintRequest(const AddCheckConstraintRequest& other464) { + checkConstraintCols = other464.checkConstraintCols; } -AddDefaultConstraintRequest& AddDefaultConstraintRequest::operator=(const AddDefaultConstraintRequest& other445) { - defaultConstraintCols = other445.defaultConstraintCols; +AddCheckConstraintRequest& AddCheckConstraintRequest::operator=(const AddCheckConstraintRequest& other465) { + checkConstraintCols = other465.checkConstraintCols; return *this; } -void AddDefaultConstraintRequest::printTo(std::ostream& out) const { +void AddCheckConstraintRequest::printTo(std::ostream& out) const { using ::apache::thrift::to_string; - out << "AddDefaultConstraintRequest("; - out << "defaultConstraintCols=" << to_string(defaultConstraintCols); + out << "AddCheckConstraintRequest("; + out << "checkConstraintCols=" << to_string(checkConstraintCols); out << ")"; } @@ -10979,14 +11526,14 @@ uint32_t PartitionsByExprResult::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size446; - ::apache::thrift::protocol::TType _etype449; - xfer += iprot->readListBegin(_etype449, _size446); - this->partitions.resize(_size446); - uint32_t _i450; - for (_i450 = 0; _i450 < _size446; ++_i450) + uint32_t _size466; + ::apache::thrift::protocol::TType _etype469; + xfer += iprot->readListBegin(_etype469, _size466); + this->partitions.resize(_size466); + uint32_t _i470; + for (_i470 = 0; _i470 < _size466; ++_i470) { - xfer += this->partitions[_i450].read(iprot); + xfer += this->partitions[_i470].read(iprot); } xfer += iprot->readListEnd(); } @@ -11027,10 +11574,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 _iter451; - for (_iter451 = this->partitions.begin(); _iter451 != this->partitions.end(); ++_iter451) + std::vector ::const_iterator _iter471; + for (_iter471 = this->partitions.begin(); _iter471 != this->partitions.end(); ++_iter471) { - xfer += (*_iter451).write(oprot); + xfer += (*_iter471).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11051,13 +11598,13 @@ void swap(PartitionsByExprResult &a, PartitionsByExprResult &b) { swap(a.hasUnknownPartitions, b.hasUnknownPartitions); } -PartitionsByExprResult::PartitionsByExprResult(const PartitionsByExprResult& other452) { - partitions = other452.partitions; - hasUnknownPartitions = other452.hasUnknownPartitions; +PartitionsByExprResult::PartitionsByExprResult(const PartitionsByExprResult& other472) { + partitions = other472.partitions; + hasUnknownPartitions = other472.hasUnknownPartitions; } -PartitionsByExprResult& PartitionsByExprResult::operator=(const PartitionsByExprResult& other453) { - partitions = other453.partitions; - hasUnknownPartitions = other453.hasUnknownPartitions; +PartitionsByExprResult& PartitionsByExprResult::operator=(const PartitionsByExprResult& other473) { + partitions = other473.partitions; + hasUnknownPartitions = other473.hasUnknownPartitions; return *this; } void PartitionsByExprResult::printTo(std::ostream& out) const { @@ -11219,21 +11766,21 @@ void swap(PartitionsByExprRequest &a, PartitionsByExprRequest &b) { swap(a.__isset, b.__isset); } -PartitionsByExprRequest::PartitionsByExprRequest(const PartitionsByExprRequest& other454) { - dbName = other454.dbName; - tblName = other454.tblName; - expr = other454.expr; - defaultPartitionName = other454.defaultPartitionName; - maxParts = other454.maxParts; - __isset = other454.__isset; -} -PartitionsByExprRequest& PartitionsByExprRequest::operator=(const PartitionsByExprRequest& other455) { - dbName = other455.dbName; - tblName = other455.tblName; - expr = other455.expr; - defaultPartitionName = other455.defaultPartitionName; - maxParts = other455.maxParts; - __isset = other455.__isset; +PartitionsByExprRequest::PartitionsByExprRequest(const PartitionsByExprRequest& other474) { + dbName = other474.dbName; + tblName = other474.tblName; + expr = other474.expr; + defaultPartitionName = other474.defaultPartitionName; + maxParts = other474.maxParts; + __isset = other474.__isset; +} +PartitionsByExprRequest& PartitionsByExprRequest::operator=(const PartitionsByExprRequest& other475) { + dbName = other475.dbName; + tblName = other475.tblName; + expr = other475.expr; + defaultPartitionName = other475.defaultPartitionName; + maxParts = other475.maxParts; + __isset = other475.__isset; return *this; } void PartitionsByExprRequest::printTo(std::ostream& out) const { @@ -11282,14 +11829,14 @@ uint32_t TableStatsResult::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tableStats.clear(); - uint32_t _size456; - ::apache::thrift::protocol::TType _etype459; - xfer += iprot->readListBegin(_etype459, _size456); - this->tableStats.resize(_size456); - uint32_t _i460; - for (_i460 = 0; _i460 < _size456; ++_i460) + uint32_t _size476; + ::apache::thrift::protocol::TType _etype479; + xfer += iprot->readListBegin(_etype479, _size476); + this->tableStats.resize(_size476); + uint32_t _i480; + for (_i480 = 0; _i480 < _size476; ++_i480) { - xfer += this->tableStats[_i460].read(iprot); + xfer += this->tableStats[_i480].read(iprot); } xfer += iprot->readListEnd(); } @@ -11320,10 +11867,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 _iter461; - for (_iter461 = this->tableStats.begin(); _iter461 != this->tableStats.end(); ++_iter461) + std::vector ::const_iterator _iter481; + for (_iter481 = this->tableStats.begin(); _iter481 != this->tableStats.end(); ++_iter481) { - xfer += (*_iter461).write(oprot); + xfer += (*_iter481).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11339,11 +11886,11 @@ void swap(TableStatsResult &a, TableStatsResult &b) { swap(a.tableStats, b.tableStats); } -TableStatsResult::TableStatsResult(const TableStatsResult& other462) { - tableStats = other462.tableStats; +TableStatsResult::TableStatsResult(const TableStatsResult& other482) { + tableStats = other482.tableStats; } -TableStatsResult& TableStatsResult::operator=(const TableStatsResult& other463) { - tableStats = other463.tableStats; +TableStatsResult& TableStatsResult::operator=(const TableStatsResult& other483) { + tableStats = other483.tableStats; return *this; } void TableStatsResult::printTo(std::ostream& out) const { @@ -11388,26 +11935,26 @@ uint32_t PartitionsStatsResult::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partStats.clear(); - uint32_t _size464; - ::apache::thrift::protocol::TType _ktype465; - ::apache::thrift::protocol::TType _vtype466; - xfer += iprot->readMapBegin(_ktype465, _vtype466, _size464); - uint32_t _i468; - for (_i468 = 0; _i468 < _size464; ++_i468) + uint32_t _size484; + ::apache::thrift::protocol::TType _ktype485; + ::apache::thrift::protocol::TType _vtype486; + xfer += iprot->readMapBegin(_ktype485, _vtype486, _size484); + uint32_t _i488; + for (_i488 = 0; _i488 < _size484; ++_i488) { - std::string _key469; - xfer += iprot->readString(_key469); - std::vector & _val470 = this->partStats[_key469]; + std::string _key489; + xfer += iprot->readString(_key489); + std::vector & _val490 = this->partStats[_key489]; { - _val470.clear(); - uint32_t _size471; - ::apache::thrift::protocol::TType _etype474; - xfer += iprot->readListBegin(_etype474, _size471); - _val470.resize(_size471); - uint32_t _i475; - for (_i475 = 0; _i475 < _size471; ++_i475) + _val490.clear(); + uint32_t _size491; + ::apache::thrift::protocol::TType _etype494; + xfer += iprot->readListBegin(_etype494, _size491); + _val490.resize(_size491); + uint32_t _i495; + for (_i495 = 0; _i495 < _size491; ++_i495) { - xfer += _val470[_i475].read(iprot); + xfer += _val490[_i495].read(iprot); } xfer += iprot->readListEnd(); } @@ -11441,16 +11988,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 _iter476; - for (_iter476 = this->partStats.begin(); _iter476 != this->partStats.end(); ++_iter476) + std::map > ::const_iterator _iter496; + for (_iter496 = this->partStats.begin(); _iter496 != this->partStats.end(); ++_iter496) { - xfer += oprot->writeString(_iter476->first); + xfer += oprot->writeString(_iter496->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter476->second.size())); - std::vector ::const_iterator _iter477; - for (_iter477 = _iter476->second.begin(); _iter477 != _iter476->second.end(); ++_iter477) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter496->second.size())); + std::vector ::const_iterator _iter497; + for (_iter497 = _iter496->second.begin(); _iter497 != _iter496->second.end(); ++_iter497) { - xfer += (*_iter477).write(oprot); + xfer += (*_iter497).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11469,11 +12016,11 @@ void swap(PartitionsStatsResult &a, PartitionsStatsResult &b) { swap(a.partStats, b.partStats); } -PartitionsStatsResult::PartitionsStatsResult(const PartitionsStatsResult& other478) { - partStats = other478.partStats; +PartitionsStatsResult::PartitionsStatsResult(const PartitionsStatsResult& other498) { + partStats = other498.partStats; } -PartitionsStatsResult& PartitionsStatsResult::operator=(const PartitionsStatsResult& other479) { - partStats = other479.partStats; +PartitionsStatsResult& PartitionsStatsResult::operator=(const PartitionsStatsResult& other499) { + partStats = other499.partStats; return *this; } void PartitionsStatsResult::printTo(std::ostream& out) const { @@ -11544,14 +12091,14 @@ uint32_t TableStatsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colNames.clear(); - uint32_t _size480; - ::apache::thrift::protocol::TType _etype483; - xfer += iprot->readListBegin(_etype483, _size480); - this->colNames.resize(_size480); - uint32_t _i484; - for (_i484 = 0; _i484 < _size480; ++_i484) + uint32_t _size500; + ::apache::thrift::protocol::TType _etype503; + xfer += iprot->readListBegin(_etype503, _size500); + this->colNames.resize(_size500); + uint32_t _i504; + for (_i504 = 0; _i504 < _size500; ++_i504) { - xfer += iprot->readString(this->colNames[_i484]); + xfer += iprot->readString(this->colNames[_i504]); } xfer += iprot->readListEnd(); } @@ -11594,10 +12141,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 _iter485; - for (_iter485 = this->colNames.begin(); _iter485 != this->colNames.end(); ++_iter485) + std::vector ::const_iterator _iter505; + for (_iter505 = this->colNames.begin(); _iter505 != this->colNames.end(); ++_iter505) { - xfer += oprot->writeString((*_iter485)); + xfer += oprot->writeString((*_iter505)); } xfer += oprot->writeListEnd(); } @@ -11615,15 +12162,15 @@ void swap(TableStatsRequest &a, TableStatsRequest &b) { swap(a.colNames, b.colNames); } -TableStatsRequest::TableStatsRequest(const TableStatsRequest& other486) { - dbName = other486.dbName; - tblName = other486.tblName; - colNames = other486.colNames; +TableStatsRequest::TableStatsRequest(const TableStatsRequest& other506) { + dbName = other506.dbName; + tblName = other506.tblName; + colNames = other506.colNames; } -TableStatsRequest& TableStatsRequest::operator=(const TableStatsRequest& other487) { - dbName = other487.dbName; - tblName = other487.tblName; - colNames = other487.colNames; +TableStatsRequest& TableStatsRequest::operator=(const TableStatsRequest& other507) { + dbName = other507.dbName; + tblName = other507.tblName; + colNames = other507.colNames; return *this; } void TableStatsRequest::printTo(std::ostream& out) const { @@ -11701,14 +12248,14 @@ uint32_t PartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colNames.clear(); - uint32_t _size488; - ::apache::thrift::protocol::TType _etype491; - xfer += iprot->readListBegin(_etype491, _size488); - this->colNames.resize(_size488); - uint32_t _i492; - for (_i492 = 0; _i492 < _size488; ++_i492) + uint32_t _size508; + ::apache::thrift::protocol::TType _etype511; + xfer += iprot->readListBegin(_etype511, _size508); + this->colNames.resize(_size508); + uint32_t _i512; + for (_i512 = 0; _i512 < _size508; ++_i512) { - xfer += iprot->readString(this->colNames[_i492]); + xfer += iprot->readString(this->colNames[_i512]); } xfer += iprot->readListEnd(); } @@ -11721,14 +12268,14 @@ uint32_t PartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partNames.clear(); - uint32_t _size493; - ::apache::thrift::protocol::TType _etype496; - xfer += iprot->readListBegin(_etype496, _size493); - this->partNames.resize(_size493); - uint32_t _i497; - for (_i497 = 0; _i497 < _size493; ++_i497) + uint32_t _size513; + ::apache::thrift::protocol::TType _etype516; + xfer += iprot->readListBegin(_etype516, _size513); + this->partNames.resize(_size513); + uint32_t _i517; + for (_i517 = 0; _i517 < _size513; ++_i517) { - xfer += iprot->readString(this->partNames[_i497]); + xfer += iprot->readString(this->partNames[_i517]); } xfer += iprot->readListEnd(); } @@ -11773,10 +12320,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 _iter498; - for (_iter498 = this->colNames.begin(); _iter498 != this->colNames.end(); ++_iter498) + std::vector ::const_iterator _iter518; + for (_iter518 = this->colNames.begin(); _iter518 != this->colNames.end(); ++_iter518) { - xfer += oprot->writeString((*_iter498)); + xfer += oprot->writeString((*_iter518)); } xfer += oprot->writeListEnd(); } @@ -11785,10 +12332,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 _iter499; - for (_iter499 = this->partNames.begin(); _iter499 != this->partNames.end(); ++_iter499) + std::vector ::const_iterator _iter519; + for (_iter519 = this->partNames.begin(); _iter519 != this->partNames.end(); ++_iter519) { - xfer += oprot->writeString((*_iter499)); + xfer += oprot->writeString((*_iter519)); } xfer += oprot->writeListEnd(); } @@ -11807,17 +12354,17 @@ void swap(PartitionsStatsRequest &a, PartitionsStatsRequest &b) { swap(a.partNames, b.partNames); } -PartitionsStatsRequest::PartitionsStatsRequest(const PartitionsStatsRequest& other500) { - dbName = other500.dbName; - tblName = other500.tblName; - colNames = other500.colNames; - partNames = other500.partNames; +PartitionsStatsRequest::PartitionsStatsRequest(const PartitionsStatsRequest& other520) { + dbName = other520.dbName; + tblName = other520.tblName; + colNames = other520.colNames; + partNames = other520.partNames; } -PartitionsStatsRequest& PartitionsStatsRequest::operator=(const PartitionsStatsRequest& other501) { - dbName = other501.dbName; - tblName = other501.tblName; - colNames = other501.colNames; - partNames = other501.partNames; +PartitionsStatsRequest& PartitionsStatsRequest::operator=(const PartitionsStatsRequest& other521) { + dbName = other521.dbName; + tblName = other521.tblName; + colNames = other521.colNames; + partNames = other521.partNames; return *this; } void PartitionsStatsRequest::printTo(std::ostream& out) const { @@ -11865,14 +12412,14 @@ uint32_t AddPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size502; - ::apache::thrift::protocol::TType _etype505; - xfer += iprot->readListBegin(_etype505, _size502); - this->partitions.resize(_size502); - uint32_t _i506; - for (_i506 = 0; _i506 < _size502; ++_i506) + uint32_t _size522; + ::apache::thrift::protocol::TType _etype525; + xfer += iprot->readListBegin(_etype525, _size522); + this->partitions.resize(_size522); + uint32_t _i526; + for (_i526 = 0; _i526 < _size522; ++_i526) { - xfer += this->partitions[_i506].read(iprot); + xfer += this->partitions[_i526].read(iprot); } xfer += iprot->readListEnd(); } @@ -11902,10 +12449,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 _iter507; - for (_iter507 = this->partitions.begin(); _iter507 != this->partitions.end(); ++_iter507) + std::vector ::const_iterator _iter527; + for (_iter527 = this->partitions.begin(); _iter527 != this->partitions.end(); ++_iter527) { - xfer += (*_iter507).write(oprot); + xfer += (*_iter527).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11922,13 +12469,13 @@ void swap(AddPartitionsResult &a, AddPartitionsResult &b) { swap(a.__isset, b.__isset); } -AddPartitionsResult::AddPartitionsResult(const AddPartitionsResult& other508) { - partitions = other508.partitions; - __isset = other508.__isset; +AddPartitionsResult::AddPartitionsResult(const AddPartitionsResult& other528) { + partitions = other528.partitions; + __isset = other528.__isset; } -AddPartitionsResult& AddPartitionsResult::operator=(const AddPartitionsResult& other509) { - partitions = other509.partitions; - __isset = other509.__isset; +AddPartitionsResult& AddPartitionsResult::operator=(const AddPartitionsResult& other529) { + partitions = other529.partitions; + __isset = other529.__isset; return *this; } void AddPartitionsResult::printTo(std::ostream& out) const { @@ -12009,14 +12556,14 @@ uint32_t AddPartitionsRequest::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->parts.clear(); - uint32_t _size510; - ::apache::thrift::protocol::TType _etype513; - xfer += iprot->readListBegin(_etype513, _size510); - this->parts.resize(_size510); - uint32_t _i514; - for (_i514 = 0; _i514 < _size510; ++_i514) + uint32_t _size530; + ::apache::thrift::protocol::TType _etype533; + xfer += iprot->readListBegin(_etype533, _size530); + this->parts.resize(_size530); + uint32_t _i534; + for (_i534 = 0; _i534 < _size530; ++_i534) { - xfer += this->parts[_i514].read(iprot); + xfer += this->parts[_i534].read(iprot); } xfer += iprot->readListEnd(); } @@ -12077,10 +12624,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 _iter515; - for (_iter515 = this->parts.begin(); _iter515 != this->parts.end(); ++_iter515) + std::vector ::const_iterator _iter535; + for (_iter535 = this->parts.begin(); _iter535 != this->parts.end(); ++_iter535) { - xfer += (*_iter515).write(oprot); + xfer += (*_iter535).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12110,21 +12657,21 @@ void swap(AddPartitionsRequest &a, AddPartitionsRequest &b) { swap(a.__isset, b.__isset); } -AddPartitionsRequest::AddPartitionsRequest(const AddPartitionsRequest& other516) { - dbName = other516.dbName; - tblName = other516.tblName; - parts = other516.parts; - ifNotExists = other516.ifNotExists; - needResult = other516.needResult; - __isset = other516.__isset; -} -AddPartitionsRequest& AddPartitionsRequest::operator=(const AddPartitionsRequest& other517) { - dbName = other517.dbName; - tblName = other517.tblName; - parts = other517.parts; - ifNotExists = other517.ifNotExists; - needResult = other517.needResult; - __isset = other517.__isset; +AddPartitionsRequest::AddPartitionsRequest(const AddPartitionsRequest& other536) { + dbName = other536.dbName; + tblName = other536.tblName; + parts = other536.parts; + ifNotExists = other536.ifNotExists; + needResult = other536.needResult; + __isset = other536.__isset; +} +AddPartitionsRequest& AddPartitionsRequest::operator=(const AddPartitionsRequest& other537) { + dbName = other537.dbName; + tblName = other537.tblName; + parts = other537.parts; + ifNotExists = other537.ifNotExists; + needResult = other537.needResult; + __isset = other537.__isset; return *this; } void AddPartitionsRequest::printTo(std::ostream& out) const { @@ -12173,14 +12720,14 @@ uint32_t DropPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size518; - ::apache::thrift::protocol::TType _etype521; - xfer += iprot->readListBegin(_etype521, _size518); - this->partitions.resize(_size518); - uint32_t _i522; - for (_i522 = 0; _i522 < _size518; ++_i522) + uint32_t _size538; + ::apache::thrift::protocol::TType _etype541; + xfer += iprot->readListBegin(_etype541, _size538); + this->partitions.resize(_size538); + uint32_t _i542; + for (_i542 = 0; _i542 < _size538; ++_i542) { - xfer += this->partitions[_i522].read(iprot); + xfer += this->partitions[_i542].read(iprot); } xfer += iprot->readListEnd(); } @@ -12210,10 +12757,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 _iter523; - for (_iter523 = this->partitions.begin(); _iter523 != this->partitions.end(); ++_iter523) + std::vector ::const_iterator _iter543; + for (_iter543 = this->partitions.begin(); _iter543 != this->partitions.end(); ++_iter543) { - xfer += (*_iter523).write(oprot); + xfer += (*_iter543).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12230,13 +12777,13 @@ void swap(DropPartitionsResult &a, DropPartitionsResult &b) { swap(a.__isset, b.__isset); } -DropPartitionsResult::DropPartitionsResult(const DropPartitionsResult& other524) { - partitions = other524.partitions; - __isset = other524.__isset; +DropPartitionsResult::DropPartitionsResult(const DropPartitionsResult& other544) { + partitions = other544.partitions; + __isset = other544.__isset; } -DropPartitionsResult& DropPartitionsResult::operator=(const DropPartitionsResult& other525) { - partitions = other525.partitions; - __isset = other525.__isset; +DropPartitionsResult& DropPartitionsResult::operator=(const DropPartitionsResult& other545) { + partitions = other545.partitions; + __isset = other545.__isset; return *this; } void DropPartitionsResult::printTo(std::ostream& out) const { @@ -12338,15 +12885,15 @@ void swap(DropPartitionsExpr &a, DropPartitionsExpr &b) { swap(a.__isset, b.__isset); } -DropPartitionsExpr::DropPartitionsExpr(const DropPartitionsExpr& other526) { - expr = other526.expr; - partArchiveLevel = other526.partArchiveLevel; - __isset = other526.__isset; +DropPartitionsExpr::DropPartitionsExpr(const DropPartitionsExpr& other546) { + expr = other546.expr; + partArchiveLevel = other546.partArchiveLevel; + __isset = other546.__isset; } -DropPartitionsExpr& DropPartitionsExpr::operator=(const DropPartitionsExpr& other527) { - expr = other527.expr; - partArchiveLevel = other527.partArchiveLevel; - __isset = other527.__isset; +DropPartitionsExpr& DropPartitionsExpr::operator=(const DropPartitionsExpr& other547) { + expr = other547.expr; + partArchiveLevel = other547.partArchiveLevel; + __isset = other547.__isset; return *this; } void DropPartitionsExpr::printTo(std::ostream& out) const { @@ -12395,14 +12942,14 @@ uint32_t RequestPartsSpec::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size528; - ::apache::thrift::protocol::TType _etype531; - xfer += iprot->readListBegin(_etype531, _size528); - this->names.resize(_size528); - uint32_t _i532; - for (_i532 = 0; _i532 < _size528; ++_i532) + uint32_t _size548; + ::apache::thrift::protocol::TType _etype551; + xfer += iprot->readListBegin(_etype551, _size548); + this->names.resize(_size548); + uint32_t _i552; + for (_i552 = 0; _i552 < _size548; ++_i552) { - xfer += iprot->readString(this->names[_i532]); + xfer += iprot->readString(this->names[_i552]); } xfer += iprot->readListEnd(); } @@ -12415,14 +12962,14 @@ uint32_t RequestPartsSpec::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->exprs.clear(); - uint32_t _size533; - ::apache::thrift::protocol::TType _etype536; - xfer += iprot->readListBegin(_etype536, _size533); - this->exprs.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->exprs.resize(_size553); + uint32_t _i557; + for (_i557 = 0; _i557 < _size553; ++_i557) { - xfer += this->exprs[_i537].read(iprot); + xfer += this->exprs[_i557].read(iprot); } xfer += iprot->readListEnd(); } @@ -12451,10 +12998,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 _iter538; - for (_iter538 = this->names.begin(); _iter538 != this->names.end(); ++_iter538) + std::vector ::const_iterator _iter558; + for (_iter558 = this->names.begin(); _iter558 != this->names.end(); ++_iter558) { - xfer += oprot->writeString((*_iter538)); + xfer += oprot->writeString((*_iter558)); } xfer += oprot->writeListEnd(); } @@ -12463,10 +13010,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 _iter539; - for (_iter539 = this->exprs.begin(); _iter539 != this->exprs.end(); ++_iter539) + std::vector ::const_iterator _iter559; + for (_iter559 = this->exprs.begin(); _iter559 != this->exprs.end(); ++_iter559) { - xfer += (*_iter539).write(oprot); + xfer += (*_iter559).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12484,15 +13031,15 @@ void swap(RequestPartsSpec &a, RequestPartsSpec &b) { swap(a.__isset, b.__isset); } -RequestPartsSpec::RequestPartsSpec(const RequestPartsSpec& other540) { - names = other540.names; - exprs = other540.exprs; - __isset = other540.__isset; +RequestPartsSpec::RequestPartsSpec(const RequestPartsSpec& other560) { + names = other560.names; + exprs = other560.exprs; + __isset = other560.__isset; } -RequestPartsSpec& RequestPartsSpec::operator=(const RequestPartsSpec& other541) { - names = other541.names; - exprs = other541.exprs; - __isset = other541.__isset; +RequestPartsSpec& RequestPartsSpec::operator=(const RequestPartsSpec& other561) { + names = other561.names; + exprs = other561.exprs; + __isset = other561.__isset; return *this; } void RequestPartsSpec::printTo(std::ostream& out) const { @@ -12711,27 +13258,27 @@ void swap(DropPartitionsRequest &a, DropPartitionsRequest &b) { swap(a.__isset, b.__isset); } -DropPartitionsRequest::DropPartitionsRequest(const DropPartitionsRequest& other542) { - dbName = other542.dbName; - tblName = other542.tblName; - parts = other542.parts; - deleteData = other542.deleteData; - ifExists = other542.ifExists; - ignoreProtection = other542.ignoreProtection; - environmentContext = other542.environmentContext; - needResult = other542.needResult; - __isset = other542.__isset; -} -DropPartitionsRequest& DropPartitionsRequest::operator=(const DropPartitionsRequest& other543) { - dbName = other543.dbName; - tblName = other543.tblName; - parts = other543.parts; - deleteData = other543.deleteData; - ifExists = other543.ifExists; - ignoreProtection = other543.ignoreProtection; - environmentContext = other543.environmentContext; - needResult = other543.needResult; - __isset = other543.__isset; +DropPartitionsRequest::DropPartitionsRequest(const DropPartitionsRequest& other562) { + dbName = other562.dbName; + tblName = other562.tblName; + parts = other562.parts; + deleteData = other562.deleteData; + ifExists = other562.ifExists; + ignoreProtection = other562.ignoreProtection; + environmentContext = other562.environmentContext; + needResult = other562.needResult; + __isset = other562.__isset; +} +DropPartitionsRequest& DropPartitionsRequest::operator=(const DropPartitionsRequest& other563) { + dbName = other563.dbName; + tblName = other563.tblName; + parts = other563.parts; + deleteData = other563.deleteData; + ifExists = other563.ifExists; + ignoreProtection = other563.ignoreProtection; + environmentContext = other563.environmentContext; + needResult = other563.needResult; + __isset = other563.__isset; return *this; } void DropPartitionsRequest::printTo(std::ostream& out) const { @@ -12834,14 +13381,14 @@ uint32_t PartitionValuesRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionKeys.clear(); - uint32_t _size544; - ::apache::thrift::protocol::TType _etype547; - xfer += iprot->readListBegin(_etype547, _size544); - this->partitionKeys.resize(_size544); - uint32_t _i548; - for (_i548 = 0; _i548 < _size544; ++_i548) + uint32_t _size564; + ::apache::thrift::protocol::TType _etype567; + xfer += iprot->readListBegin(_etype567, _size564); + this->partitionKeys.resize(_size564); + uint32_t _i568; + for (_i568 = 0; _i568 < _size564; ++_i568) { - xfer += this->partitionKeys[_i548].read(iprot); + xfer += this->partitionKeys[_i568].read(iprot); } xfer += iprot->readListEnd(); } @@ -12870,14 +13417,14 @@ uint32_t PartitionValuesRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionOrder.clear(); - uint32_t _size549; - ::apache::thrift::protocol::TType _etype552; - xfer += iprot->readListBegin(_etype552, _size549); - this->partitionOrder.resize(_size549); - uint32_t _i553; - for (_i553 = 0; _i553 < _size549; ++_i553) + uint32_t _size569; + ::apache::thrift::protocol::TType _etype572; + xfer += iprot->readListBegin(_etype572, _size569); + this->partitionOrder.resize(_size569); + uint32_t _i573; + for (_i573 = 0; _i573 < _size569; ++_i573) { - xfer += this->partitionOrder[_i553].read(iprot); + xfer += this->partitionOrder[_i573].read(iprot); } xfer += iprot->readListEnd(); } @@ -12936,10 +13483,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 _iter554; - for (_iter554 = this->partitionKeys.begin(); _iter554 != this->partitionKeys.end(); ++_iter554) + std::vector ::const_iterator _iter574; + for (_iter574 = this->partitionKeys.begin(); _iter574 != this->partitionKeys.end(); ++_iter574) { - xfer += (*_iter554).write(oprot); + xfer += (*_iter574).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12959,10 +13506,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 _iter555; - for (_iter555 = this->partitionOrder.begin(); _iter555 != this->partitionOrder.end(); ++_iter555) + std::vector ::const_iterator _iter575; + for (_iter575 = this->partitionOrder.begin(); _iter575 != this->partitionOrder.end(); ++_iter575) { - xfer += (*_iter555).write(oprot); + xfer += (*_iter575).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12996,27 +13543,27 @@ void swap(PartitionValuesRequest &a, PartitionValuesRequest &b) { swap(a.__isset, b.__isset); } -PartitionValuesRequest::PartitionValuesRequest(const PartitionValuesRequest& other556) { - dbName = other556.dbName; - tblName = other556.tblName; - partitionKeys = other556.partitionKeys; - applyDistinct = other556.applyDistinct; - filter = other556.filter; - partitionOrder = other556.partitionOrder; - ascending = other556.ascending; - maxParts = other556.maxParts; - __isset = other556.__isset; -} -PartitionValuesRequest& PartitionValuesRequest::operator=(const PartitionValuesRequest& other557) { - dbName = other557.dbName; - tblName = other557.tblName; - partitionKeys = other557.partitionKeys; - applyDistinct = other557.applyDistinct; - filter = other557.filter; - partitionOrder = other557.partitionOrder; - ascending = other557.ascending; - maxParts = other557.maxParts; - __isset = other557.__isset; +PartitionValuesRequest::PartitionValuesRequest(const PartitionValuesRequest& other576) { + dbName = other576.dbName; + tblName = other576.tblName; + partitionKeys = other576.partitionKeys; + applyDistinct = other576.applyDistinct; + filter = other576.filter; + partitionOrder = other576.partitionOrder; + ascending = other576.ascending; + maxParts = other576.maxParts; + __isset = other576.__isset; +} +PartitionValuesRequest& PartitionValuesRequest::operator=(const PartitionValuesRequest& other577) { + dbName = other577.dbName; + tblName = other577.tblName; + partitionKeys = other577.partitionKeys; + applyDistinct = other577.applyDistinct; + filter = other577.filter; + partitionOrder = other577.partitionOrder; + ascending = other577.ascending; + maxParts = other577.maxParts; + __isset = other577.__isset; return *this; } void PartitionValuesRequest::printTo(std::ostream& out) const { @@ -13068,14 +13615,14 @@ uint32_t PartitionValuesRow::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->row.clear(); - uint32_t _size558; - ::apache::thrift::protocol::TType _etype561; - xfer += iprot->readListBegin(_etype561, _size558); - this->row.resize(_size558); - uint32_t _i562; - for (_i562 = 0; _i562 < _size558; ++_i562) + uint32_t _size578; + ::apache::thrift::protocol::TType _etype581; + xfer += iprot->readListBegin(_etype581, _size578); + this->row.resize(_size578); + uint32_t _i582; + for (_i582 = 0; _i582 < _size578; ++_i582) { - xfer += iprot->readString(this->row[_i562]); + xfer += iprot->readString(this->row[_i582]); } xfer += iprot->readListEnd(); } @@ -13106,10 +13653,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 _iter563; - for (_iter563 = this->row.begin(); _iter563 != this->row.end(); ++_iter563) + std::vector ::const_iterator _iter583; + for (_iter583 = this->row.begin(); _iter583 != this->row.end(); ++_iter583) { - xfer += oprot->writeString((*_iter563)); + xfer += oprot->writeString((*_iter583)); } xfer += oprot->writeListEnd(); } @@ -13125,11 +13672,11 @@ void swap(PartitionValuesRow &a, PartitionValuesRow &b) { swap(a.row, b.row); } -PartitionValuesRow::PartitionValuesRow(const PartitionValuesRow& other564) { - row = other564.row; +PartitionValuesRow::PartitionValuesRow(const PartitionValuesRow& other584) { + row = other584.row; } -PartitionValuesRow& PartitionValuesRow::operator=(const PartitionValuesRow& other565) { - row = other565.row; +PartitionValuesRow& PartitionValuesRow::operator=(const PartitionValuesRow& other585) { + row = other585.row; return *this; } void PartitionValuesRow::printTo(std::ostream& out) const { @@ -13174,14 +13721,14 @@ uint32_t PartitionValuesResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionValues.clear(); - uint32_t _size566; - ::apache::thrift::protocol::TType _etype569; - xfer += iprot->readListBegin(_etype569, _size566); - this->partitionValues.resize(_size566); - uint32_t _i570; - for (_i570 = 0; _i570 < _size566; ++_i570) + uint32_t _size586; + ::apache::thrift::protocol::TType _etype589; + xfer += iprot->readListBegin(_etype589, _size586); + this->partitionValues.resize(_size586); + uint32_t _i590; + for (_i590 = 0; _i590 < _size586; ++_i590) { - xfer += this->partitionValues[_i570].read(iprot); + xfer += this->partitionValues[_i590].read(iprot); } xfer += iprot->readListEnd(); } @@ -13212,10 +13759,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 _iter571; - for (_iter571 = this->partitionValues.begin(); _iter571 != this->partitionValues.end(); ++_iter571) + std::vector ::const_iterator _iter591; + for (_iter591 = this->partitionValues.begin(); _iter591 != this->partitionValues.end(); ++_iter591) { - xfer += (*_iter571).write(oprot); + xfer += (*_iter591).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13231,11 +13778,11 @@ void swap(PartitionValuesResponse &a, PartitionValuesResponse &b) { swap(a.partitionValues, b.partitionValues); } -PartitionValuesResponse::PartitionValuesResponse(const PartitionValuesResponse& other572) { - partitionValues = other572.partitionValues; +PartitionValuesResponse::PartitionValuesResponse(const PartitionValuesResponse& other592) { + partitionValues = other592.partitionValues; } -PartitionValuesResponse& PartitionValuesResponse::operator=(const PartitionValuesResponse& other573) { - partitionValues = other573.partitionValues; +PartitionValuesResponse& PartitionValuesResponse::operator=(const PartitionValuesResponse& other593) { + partitionValues = other593.partitionValues; return *this; } void PartitionValuesResponse::printTo(std::ostream& out) const { @@ -13281,9 +13828,9 @@ uint32_t ResourceUri::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast574; - xfer += iprot->readI32(ecast574); - this->resourceType = (ResourceType::type)ecast574; + int32_t ecast594; + xfer += iprot->readI32(ecast594); + this->resourceType = (ResourceType::type)ecast594; this->__isset.resourceType = true; } else { xfer += iprot->skip(ftype); @@ -13334,15 +13881,15 @@ void swap(ResourceUri &a, ResourceUri &b) { swap(a.__isset, b.__isset); } -ResourceUri::ResourceUri(const ResourceUri& other575) { - resourceType = other575.resourceType; - uri = other575.uri; - __isset = other575.__isset; +ResourceUri::ResourceUri(const ResourceUri& other595) { + resourceType = other595.resourceType; + uri = other595.uri; + __isset = other595.__isset; } -ResourceUri& ResourceUri::operator=(const ResourceUri& other576) { - resourceType = other576.resourceType; - uri = other576.uri; - __isset = other576.__isset; +ResourceUri& ResourceUri::operator=(const ResourceUri& other596) { + resourceType = other596.resourceType; + uri = other596.uri; + __isset = other596.__isset; return *this; } void ResourceUri::printTo(std::ostream& out) const { @@ -13445,9 +13992,9 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast577; - xfer += iprot->readI32(ecast577); - this->ownerType = (PrincipalType::type)ecast577; + int32_t ecast597; + xfer += iprot->readI32(ecast597); + this->ownerType = (PrincipalType::type)ecast597; this->__isset.ownerType = true; } else { xfer += iprot->skip(ftype); @@ -13463,9 +14010,9 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 7: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast578; - xfer += iprot->readI32(ecast578); - this->functionType = (FunctionType::type)ecast578; + int32_t ecast598; + xfer += iprot->readI32(ecast598); + this->functionType = (FunctionType::type)ecast598; this->__isset.functionType = true; } else { xfer += iprot->skip(ftype); @@ -13475,14 +14022,14 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->resourceUris.clear(); - uint32_t _size579; - ::apache::thrift::protocol::TType _etype582; - xfer += iprot->readListBegin(_etype582, _size579); - this->resourceUris.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->resourceUris.resize(_size599); + uint32_t _i603; + for (_i603 = 0; _i603 < _size599; ++_i603) { - xfer += this->resourceUris[_i583].read(iprot); + xfer += this->resourceUris[_i603].read(iprot); } xfer += iprot->readListEnd(); } @@ -13539,10 +14086,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 _iter584; - for (_iter584 = this->resourceUris.begin(); _iter584 != this->resourceUris.end(); ++_iter584) + std::vector ::const_iterator _iter604; + for (_iter604 = this->resourceUris.begin(); _iter604 != this->resourceUris.end(); ++_iter604) { - xfer += (*_iter584).write(oprot); + xfer += (*_iter604).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13566,27 +14113,27 @@ void swap(Function &a, Function &b) { swap(a.__isset, b.__isset); } -Function::Function(const Function& other585) { - functionName = other585.functionName; - dbName = other585.dbName; - className = other585.className; - ownerName = other585.ownerName; - ownerType = other585.ownerType; - createTime = other585.createTime; - functionType = other585.functionType; - resourceUris = other585.resourceUris; - __isset = other585.__isset; -} -Function& Function::operator=(const Function& other586) { - functionName = other586.functionName; - dbName = other586.dbName; - className = other586.className; - ownerName = other586.ownerName; - ownerType = other586.ownerType; - createTime = other586.createTime; - functionType = other586.functionType; - resourceUris = other586.resourceUris; - __isset = other586.__isset; +Function::Function(const Function& other605) { + functionName = other605.functionName; + dbName = other605.dbName; + className = other605.className; + ownerName = other605.ownerName; + ownerType = other605.ownerType; + createTime = other605.createTime; + functionType = other605.functionType; + resourceUris = other605.resourceUris; + __isset = other605.__isset; +} +Function& Function::operator=(const Function& other606) { + functionName = other606.functionName; + dbName = other606.dbName; + className = other606.className; + ownerName = other606.ownerName; + ownerType = other606.ownerType; + createTime = other606.createTime; + functionType = other606.functionType; + resourceUris = other606.resourceUris; + __isset = other606.__isset; return *this; } void Function::printTo(std::ostream& out) const { @@ -13684,9 +14231,9 @@ uint32_t TxnInfo::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast587; - xfer += iprot->readI32(ecast587); - this->state = (TxnState::type)ecast587; + int32_t ecast607; + xfer += iprot->readI32(ecast607); + this->state = (TxnState::type)ecast607; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -13833,29 +14380,29 @@ void swap(TxnInfo &a, TxnInfo &b) { swap(a.__isset, b.__isset); } -TxnInfo::TxnInfo(const TxnInfo& other588) { - id = other588.id; - state = other588.state; - user = other588.user; - hostname = other588.hostname; - agentInfo = other588.agentInfo; - heartbeatCount = other588.heartbeatCount; - metaInfo = other588.metaInfo; - startedTime = other588.startedTime; - lastHeartbeatTime = other588.lastHeartbeatTime; - __isset = other588.__isset; -} -TxnInfo& TxnInfo::operator=(const TxnInfo& other589) { - id = other589.id; - state = other589.state; - user = other589.user; - hostname = other589.hostname; - agentInfo = other589.agentInfo; - heartbeatCount = other589.heartbeatCount; - metaInfo = other589.metaInfo; - startedTime = other589.startedTime; - lastHeartbeatTime = other589.lastHeartbeatTime; - __isset = other589.__isset; +TxnInfo::TxnInfo(const TxnInfo& other608) { + id = other608.id; + state = other608.state; + user = other608.user; + hostname = other608.hostname; + agentInfo = other608.agentInfo; + heartbeatCount = other608.heartbeatCount; + metaInfo = other608.metaInfo; + startedTime = other608.startedTime; + lastHeartbeatTime = other608.lastHeartbeatTime; + __isset = other608.__isset; +} +TxnInfo& TxnInfo::operator=(const TxnInfo& other609) { + id = other609.id; + state = other609.state; + user = other609.user; + hostname = other609.hostname; + agentInfo = other609.agentInfo; + heartbeatCount = other609.heartbeatCount; + metaInfo = other609.metaInfo; + startedTime = other609.startedTime; + lastHeartbeatTime = other609.lastHeartbeatTime; + __isset = other609.__isset; return *this; } void TxnInfo::printTo(std::ostream& out) const { @@ -13921,14 +14468,14 @@ uint32_t GetOpenTxnsInfoResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->open_txns.clear(); - uint32_t _size590; - ::apache::thrift::protocol::TType _etype593; - xfer += iprot->readListBegin(_etype593, _size590); - this->open_txns.resize(_size590); - uint32_t _i594; - for (_i594 = 0; _i594 < _size590; ++_i594) + uint32_t _size610; + ::apache::thrift::protocol::TType _etype613; + xfer += iprot->readListBegin(_etype613, _size610); + this->open_txns.resize(_size610); + uint32_t _i614; + for (_i614 = 0; _i614 < _size610; ++_i614) { - xfer += this->open_txns[_i594].read(iprot); + xfer += this->open_txns[_i614].read(iprot); } xfer += iprot->readListEnd(); } @@ -13965,10 +14512,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 _iter595; - for (_iter595 = this->open_txns.begin(); _iter595 != this->open_txns.end(); ++_iter595) + std::vector ::const_iterator _iter615; + for (_iter615 = this->open_txns.begin(); _iter615 != this->open_txns.end(); ++_iter615) { - xfer += (*_iter595).write(oprot); + xfer += (*_iter615).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13985,13 +14532,13 @@ void swap(GetOpenTxnsInfoResponse &a, GetOpenTxnsInfoResponse &b) { swap(a.open_txns, b.open_txns); } -GetOpenTxnsInfoResponse::GetOpenTxnsInfoResponse(const GetOpenTxnsInfoResponse& other596) { - txn_high_water_mark = other596.txn_high_water_mark; - open_txns = other596.open_txns; +GetOpenTxnsInfoResponse::GetOpenTxnsInfoResponse(const GetOpenTxnsInfoResponse& other616) { + txn_high_water_mark = other616.txn_high_water_mark; + open_txns = other616.open_txns; } -GetOpenTxnsInfoResponse& GetOpenTxnsInfoResponse::operator=(const GetOpenTxnsInfoResponse& other597) { - txn_high_water_mark = other597.txn_high_water_mark; - open_txns = other597.open_txns; +GetOpenTxnsInfoResponse& GetOpenTxnsInfoResponse::operator=(const GetOpenTxnsInfoResponse& other617) { + txn_high_water_mark = other617.txn_high_water_mark; + open_txns = other617.open_txns; return *this; } void GetOpenTxnsInfoResponse::printTo(std::ostream& out) const { @@ -14060,14 +14607,14 @@ uint32_t GetOpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->open_txns.clear(); - uint32_t _size598; - ::apache::thrift::protocol::TType _etype601; - xfer += iprot->readListBegin(_etype601, _size598); - this->open_txns.resize(_size598); - uint32_t _i602; - for (_i602 = 0; _i602 < _size598; ++_i602) + uint32_t _size618; + ::apache::thrift::protocol::TType _etype621; + xfer += iprot->readListBegin(_etype621, _size618); + this->open_txns.resize(_size618); + uint32_t _i622; + for (_i622 = 0; _i622 < _size618; ++_i622) { - xfer += iprot->readI64(this->open_txns[_i602]); + xfer += iprot->readI64(this->open_txns[_i622]); } xfer += iprot->readListEnd(); } @@ -14122,10 +14669,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 _iter603; - for (_iter603 = this->open_txns.begin(); _iter603 != this->open_txns.end(); ++_iter603) + std::vector ::const_iterator _iter623; + for (_iter623 = this->open_txns.begin(); _iter623 != this->open_txns.end(); ++_iter623) { - xfer += oprot->writeI64((*_iter603)); + xfer += oprot->writeI64((*_iter623)); } xfer += oprot->writeListEnd(); } @@ -14154,19 +14701,19 @@ void swap(GetOpenTxnsResponse &a, GetOpenTxnsResponse &b) { swap(a.__isset, b.__isset); } -GetOpenTxnsResponse::GetOpenTxnsResponse(const GetOpenTxnsResponse& other604) { - txn_high_water_mark = other604.txn_high_water_mark; - open_txns = other604.open_txns; - min_open_txn = other604.min_open_txn; - abortedBits = other604.abortedBits; - __isset = other604.__isset; +GetOpenTxnsResponse::GetOpenTxnsResponse(const GetOpenTxnsResponse& other624) { + txn_high_water_mark = other624.txn_high_water_mark; + open_txns = other624.open_txns; + min_open_txn = other624.min_open_txn; + abortedBits = other624.abortedBits; + __isset = other624.__isset; } -GetOpenTxnsResponse& GetOpenTxnsResponse::operator=(const GetOpenTxnsResponse& other605) { - txn_high_water_mark = other605.txn_high_water_mark; - open_txns = other605.open_txns; - min_open_txn = other605.min_open_txn; - abortedBits = other605.abortedBits; - __isset = other605.__isset; +GetOpenTxnsResponse& GetOpenTxnsResponse::operator=(const GetOpenTxnsResponse& other625) { + txn_high_water_mark = other625.txn_high_water_mark; + open_txns = other625.open_txns; + min_open_txn = other625.min_open_txn; + abortedBits = other625.abortedBits; + __isset = other625.__isset; return *this; } void GetOpenTxnsResponse::printTo(std::ostream& out) const { @@ -14311,19 +14858,19 @@ void swap(OpenTxnRequest &a, OpenTxnRequest &b) { swap(a.__isset, b.__isset); } -OpenTxnRequest::OpenTxnRequest(const OpenTxnRequest& other606) { - num_txns = other606.num_txns; - user = other606.user; - hostname = other606.hostname; - agentInfo = other606.agentInfo; - __isset = other606.__isset; +OpenTxnRequest::OpenTxnRequest(const OpenTxnRequest& other626) { + num_txns = other626.num_txns; + user = other626.user; + hostname = other626.hostname; + agentInfo = other626.agentInfo; + __isset = other626.__isset; } -OpenTxnRequest& OpenTxnRequest::operator=(const OpenTxnRequest& other607) { - num_txns = other607.num_txns; - user = other607.user; - hostname = other607.hostname; - agentInfo = other607.agentInfo; - __isset = other607.__isset; +OpenTxnRequest& OpenTxnRequest::operator=(const OpenTxnRequest& other627) { + num_txns = other627.num_txns; + user = other627.user; + hostname = other627.hostname; + agentInfo = other627.agentInfo; + __isset = other627.__isset; return *this; } void OpenTxnRequest::printTo(std::ostream& out) const { @@ -14371,14 +14918,14 @@ uint32_t OpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->txn_ids.clear(); - uint32_t _size608; - ::apache::thrift::protocol::TType _etype611; - xfer += iprot->readListBegin(_etype611, _size608); - this->txn_ids.resize(_size608); - uint32_t _i612; - for (_i612 = 0; _i612 < _size608; ++_i612) + uint32_t _size628; + ::apache::thrift::protocol::TType _etype631; + xfer += iprot->readListBegin(_etype631, _size628); + this->txn_ids.resize(_size628); + uint32_t _i632; + for (_i632 = 0; _i632 < _size628; ++_i632) { - xfer += iprot->readI64(this->txn_ids[_i612]); + xfer += iprot->readI64(this->txn_ids[_i632]); } xfer += iprot->readListEnd(); } @@ -14409,10 +14956,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 _iter613; - for (_iter613 = this->txn_ids.begin(); _iter613 != this->txn_ids.end(); ++_iter613) + std::vector ::const_iterator _iter633; + for (_iter633 = this->txn_ids.begin(); _iter633 != this->txn_ids.end(); ++_iter633) { - xfer += oprot->writeI64((*_iter613)); + xfer += oprot->writeI64((*_iter633)); } xfer += oprot->writeListEnd(); } @@ -14428,11 +14975,11 @@ void swap(OpenTxnsResponse &a, OpenTxnsResponse &b) { swap(a.txn_ids, b.txn_ids); } -OpenTxnsResponse::OpenTxnsResponse(const OpenTxnsResponse& other614) { - txn_ids = other614.txn_ids; +OpenTxnsResponse::OpenTxnsResponse(const OpenTxnsResponse& other634) { + txn_ids = other634.txn_ids; } -OpenTxnsResponse& OpenTxnsResponse::operator=(const OpenTxnsResponse& other615) { - txn_ids = other615.txn_ids; +OpenTxnsResponse& OpenTxnsResponse::operator=(const OpenTxnsResponse& other635) { + txn_ids = other635.txn_ids; return *this; } void OpenTxnsResponse::printTo(std::ostream& out) const { @@ -14514,11 +15061,11 @@ void swap(AbortTxnRequest &a, AbortTxnRequest &b) { swap(a.txnid, b.txnid); } -AbortTxnRequest::AbortTxnRequest(const AbortTxnRequest& other616) { - txnid = other616.txnid; +AbortTxnRequest::AbortTxnRequest(const AbortTxnRequest& other636) { + txnid = other636.txnid; } -AbortTxnRequest& AbortTxnRequest::operator=(const AbortTxnRequest& other617) { - txnid = other617.txnid; +AbortTxnRequest& AbortTxnRequest::operator=(const AbortTxnRequest& other637) { + txnid = other637.txnid; return *this; } void AbortTxnRequest::printTo(std::ostream& out) const { @@ -14563,14 +15110,14 @@ uint32_t AbortTxnsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->txn_ids.clear(); - uint32_t _size618; - ::apache::thrift::protocol::TType _etype621; - xfer += iprot->readListBegin(_etype621, _size618); - this->txn_ids.resize(_size618); - uint32_t _i622; - for (_i622 = 0; _i622 < _size618; ++_i622) + uint32_t _size638; + ::apache::thrift::protocol::TType _etype641; + xfer += iprot->readListBegin(_etype641, _size638); + this->txn_ids.resize(_size638); + uint32_t _i642; + for (_i642 = 0; _i642 < _size638; ++_i642) { - xfer += iprot->readI64(this->txn_ids[_i622]); + xfer += iprot->readI64(this->txn_ids[_i642]); } xfer += iprot->readListEnd(); } @@ -14601,10 +15148,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 _iter623; - for (_iter623 = this->txn_ids.begin(); _iter623 != this->txn_ids.end(); ++_iter623) + std::vector ::const_iterator _iter643; + for (_iter643 = this->txn_ids.begin(); _iter643 != this->txn_ids.end(); ++_iter643) { - xfer += oprot->writeI64((*_iter623)); + xfer += oprot->writeI64((*_iter643)); } xfer += oprot->writeListEnd(); } @@ -14620,11 +15167,11 @@ void swap(AbortTxnsRequest &a, AbortTxnsRequest &b) { swap(a.txn_ids, b.txn_ids); } -AbortTxnsRequest::AbortTxnsRequest(const AbortTxnsRequest& other624) { - txn_ids = other624.txn_ids; +AbortTxnsRequest::AbortTxnsRequest(const AbortTxnsRequest& other644) { + txn_ids = other644.txn_ids; } -AbortTxnsRequest& AbortTxnsRequest::operator=(const AbortTxnsRequest& other625) { - txn_ids = other625.txn_ids; +AbortTxnsRequest& AbortTxnsRequest::operator=(const AbortTxnsRequest& other645) { + txn_ids = other645.txn_ids; return *this; } void AbortTxnsRequest::printTo(std::ostream& out) const { @@ -14706,11 +15253,11 @@ void swap(CommitTxnRequest &a, CommitTxnRequest &b) { swap(a.txnid, b.txnid); } -CommitTxnRequest::CommitTxnRequest(const CommitTxnRequest& other626) { - txnid = other626.txnid; +CommitTxnRequest::CommitTxnRequest(const CommitTxnRequest& other646) { + txnid = other646.txnid; } -CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other627) { - txnid = other627.txnid; +CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other647) { + txnid = other647.txnid; return *this; } void CommitTxnRequest::printTo(std::ostream& out) const { @@ -14760,14 +15307,14 @@ uint32_t GetValidWriteIdsRequest::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fullTableNames.clear(); - uint32_t _size628; - ::apache::thrift::protocol::TType _etype631; - xfer += iprot->readListBegin(_etype631, _size628); - this->fullTableNames.resize(_size628); - uint32_t _i632; - for (_i632 = 0; _i632 < _size628; ++_i632) + uint32_t _size648; + ::apache::thrift::protocol::TType _etype651; + xfer += iprot->readListBegin(_etype651, _size648); + this->fullTableNames.resize(_size648); + uint32_t _i652; + for (_i652 = 0; _i652 < _size648; ++_i652) { - xfer += iprot->readString(this->fullTableNames[_i632]); + xfer += iprot->readString(this->fullTableNames[_i652]); } xfer += iprot->readListEnd(); } @@ -14808,10 +15355,10 @@ uint32_t GetValidWriteIdsRequest::write(::apache::thrift::protocol::TProtocol* o xfer += oprot->writeFieldBegin("fullTableNames", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->fullTableNames.size())); - std::vector ::const_iterator _iter633; - for (_iter633 = this->fullTableNames.begin(); _iter633 != this->fullTableNames.end(); ++_iter633) + std::vector ::const_iterator _iter653; + for (_iter653 = this->fullTableNames.begin(); _iter653 != this->fullTableNames.end(); ++_iter653) { - xfer += oprot->writeString((*_iter633)); + xfer += oprot->writeString((*_iter653)); } xfer += oprot->writeListEnd(); } @@ -14832,13 +15379,13 @@ void swap(GetValidWriteIdsRequest &a, GetValidWriteIdsRequest &b) { swap(a.validTxnList, b.validTxnList); } -GetValidWriteIdsRequest::GetValidWriteIdsRequest(const GetValidWriteIdsRequest& other634) { - fullTableNames = other634.fullTableNames; - validTxnList = other634.validTxnList; +GetValidWriteIdsRequest::GetValidWriteIdsRequest(const GetValidWriteIdsRequest& other654) { + fullTableNames = other654.fullTableNames; + validTxnList = other654.validTxnList; } -GetValidWriteIdsRequest& GetValidWriteIdsRequest::operator=(const GetValidWriteIdsRequest& other635) { - fullTableNames = other635.fullTableNames; - validTxnList = other635.validTxnList; +GetValidWriteIdsRequest& GetValidWriteIdsRequest::operator=(const GetValidWriteIdsRequest& other655) { + fullTableNames = other655.fullTableNames; + validTxnList = other655.validTxnList; return *this; } void GetValidWriteIdsRequest::printTo(std::ostream& out) const { @@ -14920,14 +15467,14 @@ uint32_t TableValidWriteIds::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->invalidWriteIds.clear(); - uint32_t _size636; - ::apache::thrift::protocol::TType _etype639; - xfer += iprot->readListBegin(_etype639, _size636); - this->invalidWriteIds.resize(_size636); - uint32_t _i640; - for (_i640 = 0; _i640 < _size636; ++_i640) + uint32_t _size656; + ::apache::thrift::protocol::TType _etype659; + xfer += iprot->readListBegin(_etype659, _size656); + this->invalidWriteIds.resize(_size656); + uint32_t _i660; + for (_i660 = 0; _i660 < _size656; ++_i660) { - xfer += iprot->readI64(this->invalidWriteIds[_i640]); + xfer += iprot->readI64(this->invalidWriteIds[_i660]); } xfer += iprot->readListEnd(); } @@ -14988,10 +15535,10 @@ uint32_t TableValidWriteIds::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("invalidWriteIds", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->invalidWriteIds.size())); - std::vector ::const_iterator _iter641; - for (_iter641 = this->invalidWriteIds.begin(); _iter641 != this->invalidWriteIds.end(); ++_iter641) + std::vector ::const_iterator _iter661; + for (_iter661 = this->invalidWriteIds.begin(); _iter661 != this->invalidWriteIds.end(); ++_iter661) { - xfer += oprot->writeI64((*_iter641)); + xfer += oprot->writeI64((*_iter661)); } xfer += oprot->writeListEnd(); } @@ -15021,21 +15568,21 @@ void swap(TableValidWriteIds &a, TableValidWriteIds &b) { swap(a.__isset, b.__isset); } -TableValidWriteIds::TableValidWriteIds(const TableValidWriteIds& other642) { - fullTableName = other642.fullTableName; - writeIdHighWaterMark = other642.writeIdHighWaterMark; - invalidWriteIds = other642.invalidWriteIds; - minOpenWriteId = other642.minOpenWriteId; - abortedBits = other642.abortedBits; - __isset = other642.__isset; -} -TableValidWriteIds& TableValidWriteIds::operator=(const TableValidWriteIds& other643) { - fullTableName = other643.fullTableName; - writeIdHighWaterMark = other643.writeIdHighWaterMark; - invalidWriteIds = other643.invalidWriteIds; - minOpenWriteId = other643.minOpenWriteId; - abortedBits = other643.abortedBits; - __isset = other643.__isset; +TableValidWriteIds::TableValidWriteIds(const TableValidWriteIds& other662) { + fullTableName = other662.fullTableName; + writeIdHighWaterMark = other662.writeIdHighWaterMark; + invalidWriteIds = other662.invalidWriteIds; + minOpenWriteId = other662.minOpenWriteId; + abortedBits = other662.abortedBits; + __isset = other662.__isset; +} +TableValidWriteIds& TableValidWriteIds::operator=(const TableValidWriteIds& other663) { + fullTableName = other663.fullTableName; + writeIdHighWaterMark = other663.writeIdHighWaterMark; + invalidWriteIds = other663.invalidWriteIds; + minOpenWriteId = other663.minOpenWriteId; + abortedBits = other663.abortedBits; + __isset = other663.__isset; return *this; } void TableValidWriteIds::printTo(std::ostream& out) const { @@ -15084,14 +15631,14 @@ uint32_t GetValidWriteIdsResponse::read(::apache::thrift::protocol::TProtocol* i if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tblValidWriteIds.clear(); - uint32_t _size644; - ::apache::thrift::protocol::TType _etype647; - xfer += iprot->readListBegin(_etype647, _size644); - this->tblValidWriteIds.resize(_size644); - uint32_t _i648; - for (_i648 = 0; _i648 < _size644; ++_i648) + uint32_t _size664; + ::apache::thrift::protocol::TType _etype667; + xfer += iprot->readListBegin(_etype667, _size664); + this->tblValidWriteIds.resize(_size664); + uint32_t _i668; + for (_i668 = 0; _i668 < _size664; ++_i668) { - xfer += this->tblValidWriteIds[_i648].read(iprot); + xfer += this->tblValidWriteIds[_i668].read(iprot); } xfer += iprot->readListEnd(); } @@ -15122,10 +15669,10 @@ uint32_t GetValidWriteIdsResponse::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("tblValidWriteIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->tblValidWriteIds.size())); - std::vector ::const_iterator _iter649; - for (_iter649 = this->tblValidWriteIds.begin(); _iter649 != this->tblValidWriteIds.end(); ++_iter649) + std::vector ::const_iterator _iter669; + for (_iter669 = this->tblValidWriteIds.begin(); _iter669 != this->tblValidWriteIds.end(); ++_iter669) { - xfer += (*_iter649).write(oprot); + xfer += (*_iter669).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15141,11 +15688,11 @@ void swap(GetValidWriteIdsResponse &a, GetValidWriteIdsResponse &b) { swap(a.tblValidWriteIds, b.tblValidWriteIds); } -GetValidWriteIdsResponse::GetValidWriteIdsResponse(const GetValidWriteIdsResponse& other650) { - tblValidWriteIds = other650.tblValidWriteIds; +GetValidWriteIdsResponse::GetValidWriteIdsResponse(const GetValidWriteIdsResponse& other670) { + tblValidWriteIds = other670.tblValidWriteIds; } -GetValidWriteIdsResponse& GetValidWriteIdsResponse::operator=(const GetValidWriteIdsResponse& other651) { - tblValidWriteIds = other651.tblValidWriteIds; +GetValidWriteIdsResponse& GetValidWriteIdsResponse::operator=(const GetValidWriteIdsResponse& other671) { + tblValidWriteIds = other671.tblValidWriteIds; return *this; } void GetValidWriteIdsResponse::printTo(std::ostream& out) const { @@ -15200,14 +15747,14 @@ uint32_t AllocateTableWriteIdsRequest::read(::apache::thrift::protocol::TProtoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->txnIds.clear(); - uint32_t _size652; - ::apache::thrift::protocol::TType _etype655; - xfer += iprot->readListBegin(_etype655, _size652); - this->txnIds.resize(_size652); - uint32_t _i656; - for (_i656 = 0; _i656 < _size652; ++_i656) + uint32_t _size672; + ::apache::thrift::protocol::TType _etype675; + xfer += iprot->readListBegin(_etype675, _size672); + this->txnIds.resize(_size672); + uint32_t _i676; + for (_i676 = 0; _i676 < _size672; ++_i676) { - xfer += iprot->readI64(this->txnIds[_i656]); + xfer += iprot->readI64(this->txnIds[_i676]); } xfer += iprot->readListEnd(); } @@ -15258,10 +15805,10 @@ uint32_t AllocateTableWriteIdsRequest::write(::apache::thrift::protocol::TProtoc xfer += oprot->writeFieldBegin("txnIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->txnIds.size())); - std::vector ::const_iterator _iter657; - for (_iter657 = this->txnIds.begin(); _iter657 != this->txnIds.end(); ++_iter657) + std::vector ::const_iterator _iter677; + for (_iter677 = this->txnIds.begin(); _iter677 != this->txnIds.end(); ++_iter677) { - xfer += oprot->writeI64((*_iter657)); + xfer += oprot->writeI64((*_iter677)); } xfer += oprot->writeListEnd(); } @@ -15287,15 +15834,15 @@ void swap(AllocateTableWriteIdsRequest &a, AllocateTableWriteIdsRequest &b) { swap(a.tableName, b.tableName); } -AllocateTableWriteIdsRequest::AllocateTableWriteIdsRequest(const AllocateTableWriteIdsRequest& other658) { - txnIds = other658.txnIds; - dbName = other658.dbName; - tableName = other658.tableName; +AllocateTableWriteIdsRequest::AllocateTableWriteIdsRequest(const AllocateTableWriteIdsRequest& other678) { + txnIds = other678.txnIds; + dbName = other678.dbName; + tableName = other678.tableName; } -AllocateTableWriteIdsRequest& AllocateTableWriteIdsRequest::operator=(const AllocateTableWriteIdsRequest& other659) { - txnIds = other659.txnIds; - dbName = other659.dbName; - tableName = other659.tableName; +AllocateTableWriteIdsRequest& AllocateTableWriteIdsRequest::operator=(const AllocateTableWriteIdsRequest& other679) { + txnIds = other679.txnIds; + dbName = other679.dbName; + tableName = other679.tableName; return *this; } void AllocateTableWriteIdsRequest::printTo(std::ostream& out) const { @@ -15399,13 +15946,13 @@ void swap(TxnToWriteId &a, TxnToWriteId &b) { swap(a.writeId, b.writeId); } -TxnToWriteId::TxnToWriteId(const TxnToWriteId& other660) { - txnId = other660.txnId; - writeId = other660.writeId; +TxnToWriteId::TxnToWriteId(const TxnToWriteId& other680) { + txnId = other680.txnId; + writeId = other680.writeId; } -TxnToWriteId& TxnToWriteId::operator=(const TxnToWriteId& other661) { - txnId = other661.txnId; - writeId = other661.writeId; +TxnToWriteId& TxnToWriteId::operator=(const TxnToWriteId& other681) { + txnId = other681.txnId; + writeId = other681.writeId; return *this; } void TxnToWriteId::printTo(std::ostream& out) const { @@ -15451,14 +15998,14 @@ uint32_t AllocateTableWriteIdsResponse::read(::apache::thrift::protocol::TProtoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->txnToWriteIds.clear(); - uint32_t _size662; - ::apache::thrift::protocol::TType _etype665; - xfer += iprot->readListBegin(_etype665, _size662); - this->txnToWriteIds.resize(_size662); - uint32_t _i666; - for (_i666 = 0; _i666 < _size662; ++_i666) + uint32_t _size682; + ::apache::thrift::protocol::TType _etype685; + xfer += iprot->readListBegin(_etype685, _size682); + this->txnToWriteIds.resize(_size682); + uint32_t _i686; + for (_i686 = 0; _i686 < _size682; ++_i686) { - xfer += this->txnToWriteIds[_i666].read(iprot); + xfer += this->txnToWriteIds[_i686].read(iprot); } xfer += iprot->readListEnd(); } @@ -15489,10 +16036,10 @@ uint32_t AllocateTableWriteIdsResponse::write(::apache::thrift::protocol::TProto xfer += oprot->writeFieldBegin("txnToWriteIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->txnToWriteIds.size())); - std::vector ::const_iterator _iter667; - for (_iter667 = this->txnToWriteIds.begin(); _iter667 != this->txnToWriteIds.end(); ++_iter667) + std::vector ::const_iterator _iter687; + for (_iter687 = this->txnToWriteIds.begin(); _iter687 != this->txnToWriteIds.end(); ++_iter687) { - xfer += (*_iter667).write(oprot); + xfer += (*_iter687).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15508,11 +16055,11 @@ void swap(AllocateTableWriteIdsResponse &a, AllocateTableWriteIdsResponse &b) { swap(a.txnToWriteIds, b.txnToWriteIds); } -AllocateTableWriteIdsResponse::AllocateTableWriteIdsResponse(const AllocateTableWriteIdsResponse& other668) { - txnToWriteIds = other668.txnToWriteIds; +AllocateTableWriteIdsResponse::AllocateTableWriteIdsResponse(const AllocateTableWriteIdsResponse& other688) { + txnToWriteIds = other688.txnToWriteIds; } -AllocateTableWriteIdsResponse& AllocateTableWriteIdsResponse::operator=(const AllocateTableWriteIdsResponse& other669) { - txnToWriteIds = other669.txnToWriteIds; +AllocateTableWriteIdsResponse& AllocateTableWriteIdsResponse::operator=(const AllocateTableWriteIdsResponse& other689) { + txnToWriteIds = other689.txnToWriteIds; return *this; } void AllocateTableWriteIdsResponse::printTo(std::ostream& out) const { @@ -15590,9 +16137,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast670; - xfer += iprot->readI32(ecast670); - this->type = (LockType::type)ecast670; + int32_t ecast690; + xfer += iprot->readI32(ecast690); + this->type = (LockType::type)ecast690; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -15600,9 +16147,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast671; - xfer += iprot->readI32(ecast671); - this->level = (LockLevel::type)ecast671; + int32_t ecast691; + xfer += iprot->readI32(ecast691); + this->level = (LockLevel::type)ecast691; isset_level = true; } else { xfer += iprot->skip(ftype); @@ -15634,9 +16181,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast672; - xfer += iprot->readI32(ecast672); - this->operationType = (DataOperationType::type)ecast672; + int32_t ecast692; + xfer += iprot->readI32(ecast692); + this->operationType = (DataOperationType::type)ecast692; this->__isset.operationType = true; } else { xfer += iprot->skip(ftype); @@ -15736,27 +16283,27 @@ void swap(LockComponent &a, LockComponent &b) { swap(a.__isset, b.__isset); } -LockComponent::LockComponent(const LockComponent& other673) { - type = other673.type; - level = other673.level; - dbname = other673.dbname; - tablename = other673.tablename; - partitionname = other673.partitionname; - operationType = other673.operationType; - isAcid = other673.isAcid; - isDynamicPartitionWrite = other673.isDynamicPartitionWrite; - __isset = other673.__isset; -} -LockComponent& LockComponent::operator=(const LockComponent& other674) { - type = other674.type; - level = other674.level; - dbname = other674.dbname; - tablename = other674.tablename; - partitionname = other674.partitionname; - operationType = other674.operationType; - isAcid = other674.isAcid; - isDynamicPartitionWrite = other674.isDynamicPartitionWrite; - __isset = other674.__isset; +LockComponent::LockComponent(const LockComponent& other693) { + type = other693.type; + level = other693.level; + dbname = other693.dbname; + tablename = other693.tablename; + partitionname = other693.partitionname; + operationType = other693.operationType; + isAcid = other693.isAcid; + isDynamicPartitionWrite = other693.isDynamicPartitionWrite; + __isset = other693.__isset; +} +LockComponent& LockComponent::operator=(const LockComponent& other694) { + type = other694.type; + level = other694.level; + dbname = other694.dbname; + tablename = other694.tablename; + partitionname = other694.partitionname; + operationType = other694.operationType; + isAcid = other694.isAcid; + isDynamicPartitionWrite = other694.isDynamicPartitionWrite; + __isset = other694.__isset; return *this; } void LockComponent::printTo(std::ostream& out) const { @@ -15828,14 +16375,14 @@ uint32_t LockRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->component.clear(); - uint32_t _size675; - ::apache::thrift::protocol::TType _etype678; - xfer += iprot->readListBegin(_etype678, _size675); - this->component.resize(_size675); - uint32_t _i679; - for (_i679 = 0; _i679 < _size675; ++_i679) + uint32_t _size695; + ::apache::thrift::protocol::TType _etype698; + xfer += iprot->readListBegin(_etype698, _size695); + this->component.resize(_size695); + uint32_t _i699; + for (_i699 = 0; _i699 < _size695; ++_i699) { - xfer += this->component[_i679].read(iprot); + xfer += this->component[_i699].read(iprot); } xfer += iprot->readListEnd(); } @@ -15902,10 +16449,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 _iter680; - for (_iter680 = this->component.begin(); _iter680 != this->component.end(); ++_iter680) + std::vector ::const_iterator _iter700; + for (_iter700 = this->component.begin(); _iter700 != this->component.end(); ++_iter700) { - xfer += (*_iter680).write(oprot); + xfer += (*_iter700).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15944,21 +16491,21 @@ void swap(LockRequest &a, LockRequest &b) { swap(a.__isset, b.__isset); } -LockRequest::LockRequest(const LockRequest& other681) { - component = other681.component; - txnid = other681.txnid; - user = other681.user; - hostname = other681.hostname; - agentInfo = other681.agentInfo; - __isset = other681.__isset; -} -LockRequest& LockRequest::operator=(const LockRequest& other682) { - component = other682.component; - txnid = other682.txnid; - user = other682.user; - hostname = other682.hostname; - agentInfo = other682.agentInfo; - __isset = other682.__isset; +LockRequest::LockRequest(const LockRequest& other701) { + component = other701.component; + txnid = other701.txnid; + user = other701.user; + hostname = other701.hostname; + agentInfo = other701.agentInfo; + __isset = other701.__isset; +} +LockRequest& LockRequest::operator=(const LockRequest& other702) { + component = other702.component; + txnid = other702.txnid; + user = other702.user; + hostname = other702.hostname; + agentInfo = other702.agentInfo; + __isset = other702.__isset; return *this; } void LockRequest::printTo(std::ostream& out) const { @@ -16018,9 +16565,9 @@ uint32_t LockResponse::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast683; - xfer += iprot->readI32(ecast683); - this->state = (LockState::type)ecast683; + int32_t ecast703; + xfer += iprot->readI32(ecast703); + this->state = (LockState::type)ecast703; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -16066,13 +16613,13 @@ void swap(LockResponse &a, LockResponse &b) { swap(a.state, b.state); } -LockResponse::LockResponse(const LockResponse& other684) { - lockid = other684.lockid; - state = other684.state; +LockResponse::LockResponse(const LockResponse& other704) { + lockid = other704.lockid; + state = other704.state; } -LockResponse& LockResponse::operator=(const LockResponse& other685) { - lockid = other685.lockid; - state = other685.state; +LockResponse& LockResponse::operator=(const LockResponse& other705) { + lockid = other705.lockid; + state = other705.state; return *this; } void LockResponse::printTo(std::ostream& out) const { @@ -16194,17 +16741,17 @@ void swap(CheckLockRequest &a, CheckLockRequest &b) { swap(a.__isset, b.__isset); } -CheckLockRequest::CheckLockRequest(const CheckLockRequest& other686) { - lockid = other686.lockid; - txnid = other686.txnid; - elapsed_ms = other686.elapsed_ms; - __isset = other686.__isset; +CheckLockRequest::CheckLockRequest(const CheckLockRequest& other706) { + lockid = other706.lockid; + txnid = other706.txnid; + elapsed_ms = other706.elapsed_ms; + __isset = other706.__isset; } -CheckLockRequest& CheckLockRequest::operator=(const CheckLockRequest& other687) { - lockid = other687.lockid; - txnid = other687.txnid; - elapsed_ms = other687.elapsed_ms; - __isset = other687.__isset; +CheckLockRequest& CheckLockRequest::operator=(const CheckLockRequest& other707) { + lockid = other707.lockid; + txnid = other707.txnid; + elapsed_ms = other707.elapsed_ms; + __isset = other707.__isset; return *this; } void CheckLockRequest::printTo(std::ostream& out) const { @@ -16288,11 +16835,11 @@ void swap(UnlockRequest &a, UnlockRequest &b) { swap(a.lockid, b.lockid); } -UnlockRequest::UnlockRequest(const UnlockRequest& other688) { - lockid = other688.lockid; +UnlockRequest::UnlockRequest(const UnlockRequest& other708) { + lockid = other708.lockid; } -UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other689) { - lockid = other689.lockid; +UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other709) { + lockid = other709.lockid; return *this; } void UnlockRequest::printTo(std::ostream& out) const { @@ -16431,19 +16978,19 @@ void swap(ShowLocksRequest &a, ShowLocksRequest &b) { swap(a.__isset, b.__isset); } -ShowLocksRequest::ShowLocksRequest(const ShowLocksRequest& other690) { - dbname = other690.dbname; - tablename = other690.tablename; - partname = other690.partname; - isExtended = other690.isExtended; - __isset = other690.__isset; +ShowLocksRequest::ShowLocksRequest(const ShowLocksRequest& other710) { + dbname = other710.dbname; + tablename = other710.tablename; + partname = other710.partname; + isExtended = other710.isExtended; + __isset = other710.__isset; } -ShowLocksRequest& ShowLocksRequest::operator=(const ShowLocksRequest& other691) { - dbname = other691.dbname; - tablename = other691.tablename; - partname = other691.partname; - isExtended = other691.isExtended; - __isset = other691.__isset; +ShowLocksRequest& ShowLocksRequest::operator=(const ShowLocksRequest& other711) { + dbname = other711.dbname; + tablename = other711.tablename; + partname = other711.partname; + isExtended = other711.isExtended; + __isset = other711.__isset; return *this; } void ShowLocksRequest::printTo(std::ostream& out) const { @@ -16596,9 +17143,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast692; - xfer += iprot->readI32(ecast692); - this->state = (LockState::type)ecast692; + int32_t ecast712; + xfer += iprot->readI32(ecast712); + this->state = (LockState::type)ecast712; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -16606,9 +17153,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast693; - xfer += iprot->readI32(ecast693); - this->type = (LockType::type)ecast693; + int32_t ecast713; + xfer += iprot->readI32(ecast713); + this->type = (LockType::type)ecast713; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -16824,43 +17371,43 @@ void swap(ShowLocksResponseElement &a, ShowLocksResponseElement &b) { swap(a.__isset, b.__isset); } -ShowLocksResponseElement::ShowLocksResponseElement(const ShowLocksResponseElement& other694) { - lockid = other694.lockid; - dbname = other694.dbname; - tablename = other694.tablename; - partname = other694.partname; - state = other694.state; - type = other694.type; - txnid = other694.txnid; - lastheartbeat = other694.lastheartbeat; - acquiredat = other694.acquiredat; - user = other694.user; - hostname = other694.hostname; - heartbeatCount = other694.heartbeatCount; - agentInfo = other694.agentInfo; - blockedByExtId = other694.blockedByExtId; - blockedByIntId = other694.blockedByIntId; - lockIdInternal = other694.lockIdInternal; - __isset = other694.__isset; -} -ShowLocksResponseElement& ShowLocksResponseElement::operator=(const ShowLocksResponseElement& other695) { - lockid = other695.lockid; - dbname = other695.dbname; - tablename = other695.tablename; - partname = other695.partname; - state = other695.state; - type = other695.type; - txnid = other695.txnid; - lastheartbeat = other695.lastheartbeat; - acquiredat = other695.acquiredat; - user = other695.user; - hostname = other695.hostname; - heartbeatCount = other695.heartbeatCount; - agentInfo = other695.agentInfo; - blockedByExtId = other695.blockedByExtId; - blockedByIntId = other695.blockedByIntId; - lockIdInternal = other695.lockIdInternal; - __isset = other695.__isset; +ShowLocksResponseElement::ShowLocksResponseElement(const ShowLocksResponseElement& other714) { + lockid = other714.lockid; + dbname = other714.dbname; + tablename = other714.tablename; + partname = other714.partname; + state = other714.state; + type = other714.type; + txnid = other714.txnid; + lastheartbeat = other714.lastheartbeat; + acquiredat = other714.acquiredat; + user = other714.user; + hostname = other714.hostname; + heartbeatCount = other714.heartbeatCount; + agentInfo = other714.agentInfo; + blockedByExtId = other714.blockedByExtId; + blockedByIntId = other714.blockedByIntId; + lockIdInternal = other714.lockIdInternal; + __isset = other714.__isset; +} +ShowLocksResponseElement& ShowLocksResponseElement::operator=(const ShowLocksResponseElement& other715) { + lockid = other715.lockid; + dbname = other715.dbname; + tablename = other715.tablename; + partname = other715.partname; + state = other715.state; + type = other715.type; + txnid = other715.txnid; + lastheartbeat = other715.lastheartbeat; + acquiredat = other715.acquiredat; + user = other715.user; + hostname = other715.hostname; + heartbeatCount = other715.heartbeatCount; + agentInfo = other715.agentInfo; + blockedByExtId = other715.blockedByExtId; + blockedByIntId = other715.blockedByIntId; + lockIdInternal = other715.lockIdInternal; + __isset = other715.__isset; return *this; } void ShowLocksResponseElement::printTo(std::ostream& out) const { @@ -16919,14 +17466,14 @@ uint32_t ShowLocksResponse::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->locks.clear(); - uint32_t _size696; - ::apache::thrift::protocol::TType _etype699; - xfer += iprot->readListBegin(_etype699, _size696); - this->locks.resize(_size696); - uint32_t _i700; - for (_i700 = 0; _i700 < _size696; ++_i700) + uint32_t _size716; + ::apache::thrift::protocol::TType _etype719; + xfer += iprot->readListBegin(_etype719, _size716); + this->locks.resize(_size716); + uint32_t _i720; + for (_i720 = 0; _i720 < _size716; ++_i720) { - xfer += this->locks[_i700].read(iprot); + xfer += this->locks[_i720].read(iprot); } xfer += iprot->readListEnd(); } @@ -16955,10 +17502,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 _iter701; - for (_iter701 = this->locks.begin(); _iter701 != this->locks.end(); ++_iter701) + std::vector ::const_iterator _iter721; + for (_iter721 = this->locks.begin(); _iter721 != this->locks.end(); ++_iter721) { - xfer += (*_iter701).write(oprot); + xfer += (*_iter721).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16975,13 +17522,13 @@ void swap(ShowLocksResponse &a, ShowLocksResponse &b) { swap(a.__isset, b.__isset); } -ShowLocksResponse::ShowLocksResponse(const ShowLocksResponse& other702) { - locks = other702.locks; - __isset = other702.__isset; +ShowLocksResponse::ShowLocksResponse(const ShowLocksResponse& other722) { + locks = other722.locks; + __isset = other722.__isset; } -ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other703) { - locks = other703.locks; - __isset = other703.__isset; +ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other723) { + locks = other723.locks; + __isset = other723.__isset; return *this; } void ShowLocksResponse::printTo(std::ostream& out) const { @@ -17082,15 +17629,15 @@ void swap(HeartbeatRequest &a, HeartbeatRequest &b) { swap(a.__isset, b.__isset); } -HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& other704) { - lockid = other704.lockid; - txnid = other704.txnid; - __isset = other704.__isset; +HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& other724) { + lockid = other724.lockid; + txnid = other724.txnid; + __isset = other724.__isset; } -HeartbeatRequest& HeartbeatRequest::operator=(const HeartbeatRequest& other705) { - lockid = other705.lockid; - txnid = other705.txnid; - __isset = other705.__isset; +HeartbeatRequest& HeartbeatRequest::operator=(const HeartbeatRequest& other725) { + lockid = other725.lockid; + txnid = other725.txnid; + __isset = other725.__isset; return *this; } void HeartbeatRequest::printTo(std::ostream& out) const { @@ -17193,13 +17740,13 @@ void swap(HeartbeatTxnRangeRequest &a, HeartbeatTxnRangeRequest &b) { swap(a.max, b.max); } -HeartbeatTxnRangeRequest::HeartbeatTxnRangeRequest(const HeartbeatTxnRangeRequest& other706) { - min = other706.min; - max = other706.max; +HeartbeatTxnRangeRequest::HeartbeatTxnRangeRequest(const HeartbeatTxnRangeRequest& other726) { + min = other726.min; + max = other726.max; } -HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other707) { - min = other707.min; - max = other707.max; +HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other727) { + min = other727.min; + max = other727.max; return *this; } void HeartbeatTxnRangeRequest::printTo(std::ostream& out) const { @@ -17250,15 +17797,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_SET) { { this->aborted.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) { - int64_t _elem713; - xfer += iprot->readI64(_elem713); - this->aborted.insert(_elem713); + int64_t _elem733; + xfer += iprot->readI64(_elem733); + this->aborted.insert(_elem733); } xfer += iprot->readSetEnd(); } @@ -17271,15 +17818,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_SET) { { this->nosuch.clear(); - uint32_t _size714; - ::apache::thrift::protocol::TType _etype717; - xfer += iprot->readSetBegin(_etype717, _size714); - uint32_t _i718; - for (_i718 = 0; _i718 < _size714; ++_i718) + uint32_t _size734; + ::apache::thrift::protocol::TType _etype737; + xfer += iprot->readSetBegin(_etype737, _size734); + uint32_t _i738; + for (_i738 = 0; _i738 < _size734; ++_i738) { - int64_t _elem719; - xfer += iprot->readI64(_elem719); - this->nosuch.insert(_elem719); + int64_t _elem739; + xfer += iprot->readI64(_elem739); + this->nosuch.insert(_elem739); } xfer += iprot->readSetEnd(); } @@ -17312,10 +17859,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 _iter720; - for (_iter720 = this->aborted.begin(); _iter720 != this->aborted.end(); ++_iter720) + std::set ::const_iterator _iter740; + for (_iter740 = this->aborted.begin(); _iter740 != this->aborted.end(); ++_iter740) { - xfer += oprot->writeI64((*_iter720)); + xfer += oprot->writeI64((*_iter740)); } xfer += oprot->writeSetEnd(); } @@ -17324,10 +17871,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 _iter721; - for (_iter721 = this->nosuch.begin(); _iter721 != this->nosuch.end(); ++_iter721) + std::set ::const_iterator _iter741; + for (_iter741 = this->nosuch.begin(); _iter741 != this->nosuch.end(); ++_iter741) { - xfer += oprot->writeI64((*_iter721)); + xfer += oprot->writeI64((*_iter741)); } xfer += oprot->writeSetEnd(); } @@ -17344,13 +17891,13 @@ void swap(HeartbeatTxnRangeResponse &a, HeartbeatTxnRangeResponse &b) { swap(a.nosuch, b.nosuch); } -HeartbeatTxnRangeResponse::HeartbeatTxnRangeResponse(const HeartbeatTxnRangeResponse& other722) { - aborted = other722.aborted; - nosuch = other722.nosuch; +HeartbeatTxnRangeResponse::HeartbeatTxnRangeResponse(const HeartbeatTxnRangeResponse& other742) { + aborted = other742.aborted; + nosuch = other742.nosuch; } -HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other723) { - aborted = other723.aborted; - nosuch = other723.nosuch; +HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other743) { + aborted = other743.aborted; + nosuch = other743.nosuch; return *this; } void HeartbeatTxnRangeResponse::printTo(std::ostream& out) const { @@ -17443,9 +17990,9 @@ uint32_t CompactionRequest::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast724; - xfer += iprot->readI32(ecast724); - this->type = (CompactionType::type)ecast724; + int32_t ecast744; + xfer += iprot->readI32(ecast744); + this->type = (CompactionType::type)ecast744; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -17463,17 +18010,17 @@ uint32_t CompactionRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->properties.clear(); - uint32_t _size725; - ::apache::thrift::protocol::TType _ktype726; - ::apache::thrift::protocol::TType _vtype727; - xfer += iprot->readMapBegin(_ktype726, _vtype727, _size725); - uint32_t _i729; - for (_i729 = 0; _i729 < _size725; ++_i729) + uint32_t _size745; + ::apache::thrift::protocol::TType _ktype746; + ::apache::thrift::protocol::TType _vtype747; + xfer += iprot->readMapBegin(_ktype746, _vtype747, _size745); + uint32_t _i749; + for (_i749 = 0; _i749 < _size745; ++_i749) { - std::string _key730; - xfer += iprot->readString(_key730); - std::string& _val731 = this->properties[_key730]; - xfer += iprot->readString(_val731); + std::string _key750; + xfer += iprot->readString(_key750); + std::string& _val751 = this->properties[_key750]; + xfer += iprot->readString(_val751); } xfer += iprot->readMapEnd(); } @@ -17531,11 +18078,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 _iter732; - for (_iter732 = this->properties.begin(); _iter732 != this->properties.end(); ++_iter732) + std::map ::const_iterator _iter752; + for (_iter752 = this->properties.begin(); _iter752 != this->properties.end(); ++_iter752) { - xfer += oprot->writeString(_iter732->first); - xfer += oprot->writeString(_iter732->second); + xfer += oprot->writeString(_iter752->first); + xfer += oprot->writeString(_iter752->second); } xfer += oprot->writeMapEnd(); } @@ -17557,23 +18104,23 @@ void swap(CompactionRequest &a, CompactionRequest &b) { swap(a.__isset, b.__isset); } -CompactionRequest::CompactionRequest(const CompactionRequest& other733) { - dbname = other733.dbname; - tablename = other733.tablename; - partitionname = other733.partitionname; - type = other733.type; - runas = other733.runas; - properties = other733.properties; - __isset = other733.__isset; -} -CompactionRequest& CompactionRequest::operator=(const CompactionRequest& other734) { - dbname = other734.dbname; - tablename = other734.tablename; - partitionname = other734.partitionname; - type = other734.type; - runas = other734.runas; - properties = other734.properties; - __isset = other734.__isset; +CompactionRequest::CompactionRequest(const CompactionRequest& other753) { + dbname = other753.dbname; + tablename = other753.tablename; + partitionname = other753.partitionname; + type = other753.type; + runas = other753.runas; + properties = other753.properties; + __isset = other753.__isset; +} +CompactionRequest& CompactionRequest::operator=(const CompactionRequest& other754) { + dbname = other754.dbname; + tablename = other754.tablename; + partitionname = other754.partitionname; + type = other754.type; + runas = other754.runas; + properties = other754.properties; + __isset = other754.__isset; return *this; } void CompactionRequest::printTo(std::ostream& out) const { @@ -17700,15 +18247,15 @@ void swap(CompactionResponse &a, CompactionResponse &b) { swap(a.accepted, b.accepted); } -CompactionResponse::CompactionResponse(const CompactionResponse& other735) { - id = other735.id; - state = other735.state; - accepted = other735.accepted; +CompactionResponse::CompactionResponse(const CompactionResponse& other755) { + id = other755.id; + state = other755.state; + accepted = other755.accepted; } -CompactionResponse& CompactionResponse::operator=(const CompactionResponse& other736) { - id = other736.id; - state = other736.state; - accepted = other736.accepted; +CompactionResponse& CompactionResponse::operator=(const CompactionResponse& other756) { + id = other756.id; + state = other756.state; + accepted = other756.accepted; return *this; } void CompactionResponse::printTo(std::ostream& out) const { @@ -17769,11 +18316,11 @@ void swap(ShowCompactRequest &a, ShowCompactRequest &b) { (void) b; } -ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other737) { - (void) other737; +ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other757) { + (void) other757; } -ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other738) { - (void) other738; +ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other758) { + (void) other758; return *this; } void ShowCompactRequest::printTo(std::ostream& out) const { @@ -17899,9 +18446,9 @@ uint32_t ShowCompactResponseElement::read(::apache::thrift::protocol::TProtocol* break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast739; - xfer += iprot->readI32(ecast739); - this->type = (CompactionType::type)ecast739; + int32_t ecast759; + xfer += iprot->readI32(ecast759); + this->type = (CompactionType::type)ecast759; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -18088,37 +18635,37 @@ void swap(ShowCompactResponseElement &a, ShowCompactResponseElement &b) { swap(a.__isset, b.__isset); } -ShowCompactResponseElement::ShowCompactResponseElement(const ShowCompactResponseElement& other740) { - dbname = other740.dbname; - tablename = other740.tablename; - partitionname = other740.partitionname; - type = other740.type; - state = other740.state; - workerid = other740.workerid; - start = other740.start; - runAs = other740.runAs; - hightestTxnId = other740.hightestTxnId; - metaInfo = other740.metaInfo; - endTime = other740.endTime; - hadoopJobId = other740.hadoopJobId; - id = other740.id; - __isset = other740.__isset; -} -ShowCompactResponseElement& ShowCompactResponseElement::operator=(const ShowCompactResponseElement& other741) { - dbname = other741.dbname; - tablename = other741.tablename; - partitionname = other741.partitionname; - type = other741.type; - state = other741.state; - workerid = other741.workerid; - start = other741.start; - runAs = other741.runAs; - hightestTxnId = other741.hightestTxnId; - metaInfo = other741.metaInfo; - endTime = other741.endTime; - hadoopJobId = other741.hadoopJobId; - id = other741.id; - __isset = other741.__isset; +ShowCompactResponseElement::ShowCompactResponseElement(const ShowCompactResponseElement& other760) { + dbname = other760.dbname; + tablename = other760.tablename; + partitionname = other760.partitionname; + type = other760.type; + state = other760.state; + workerid = other760.workerid; + start = other760.start; + runAs = other760.runAs; + hightestTxnId = other760.hightestTxnId; + metaInfo = other760.metaInfo; + endTime = other760.endTime; + hadoopJobId = other760.hadoopJobId; + id = other760.id; + __isset = other760.__isset; +} +ShowCompactResponseElement& ShowCompactResponseElement::operator=(const ShowCompactResponseElement& other761) { + dbname = other761.dbname; + tablename = other761.tablename; + partitionname = other761.partitionname; + type = other761.type; + state = other761.state; + workerid = other761.workerid; + start = other761.start; + runAs = other761.runAs; + hightestTxnId = other761.hightestTxnId; + metaInfo = other761.metaInfo; + endTime = other761.endTime; + hadoopJobId = other761.hadoopJobId; + id = other761.id; + __isset = other761.__isset; return *this; } void ShowCompactResponseElement::printTo(std::ostream& out) const { @@ -18175,14 +18722,14 @@ uint32_t ShowCompactResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->compacts.clear(); - uint32_t _size742; - ::apache::thrift::protocol::TType _etype745; - xfer += iprot->readListBegin(_etype745, _size742); - this->compacts.resize(_size742); - uint32_t _i746; - for (_i746 = 0; _i746 < _size742; ++_i746) + uint32_t _size762; + ::apache::thrift::protocol::TType _etype765; + xfer += iprot->readListBegin(_etype765, _size762); + this->compacts.resize(_size762); + uint32_t _i766; + for (_i766 = 0; _i766 < _size762; ++_i766) { - xfer += this->compacts[_i746].read(iprot); + xfer += this->compacts[_i766].read(iprot); } xfer += iprot->readListEnd(); } @@ -18213,10 +18760,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 _iter747; - for (_iter747 = this->compacts.begin(); _iter747 != this->compacts.end(); ++_iter747) + std::vector ::const_iterator _iter767; + for (_iter767 = this->compacts.begin(); _iter767 != this->compacts.end(); ++_iter767) { - xfer += (*_iter747).write(oprot); + xfer += (*_iter767).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18232,11 +18779,11 @@ void swap(ShowCompactResponse &a, ShowCompactResponse &b) { swap(a.compacts, b.compacts); } -ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other748) { - compacts = other748.compacts; +ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other768) { + compacts = other768.compacts; } -ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other749) { - compacts = other749.compacts; +ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other769) { + compacts = other769.compacts; return *this; } void ShowCompactResponse::printTo(std::ostream& out) const { @@ -18338,14 +18885,14 @@ uint32_t AddDynamicPartitions::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionnames.clear(); - uint32_t _size750; - ::apache::thrift::protocol::TType _etype753; - xfer += iprot->readListBegin(_etype753, _size750); - this->partitionnames.resize(_size750); - uint32_t _i754; - for (_i754 = 0; _i754 < _size750; ++_i754) + uint32_t _size770; + ::apache::thrift::protocol::TType _etype773; + xfer += iprot->readListBegin(_etype773, _size770); + this->partitionnames.resize(_size770); + uint32_t _i774; + for (_i774 = 0; _i774 < _size770; ++_i774) { - xfer += iprot->readString(this->partitionnames[_i754]); + xfer += iprot->readString(this->partitionnames[_i774]); } xfer += iprot->readListEnd(); } @@ -18356,9 +18903,9 @@ uint32_t AddDynamicPartitions::read(::apache::thrift::protocol::TProtocol* iprot break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast755; - xfer += iprot->readI32(ecast755); - this->operationType = (DataOperationType::type)ecast755; + int32_t ecast775; + xfer += iprot->readI32(ecast775); + this->operationType = (DataOperationType::type)ecast775; this->__isset.operationType = true; } else { xfer += iprot->skip(ftype); @@ -18410,10 +18957,10 @@ uint32_t AddDynamicPartitions::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldBegin("partitionnames", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partitionnames.size())); - std::vector ::const_iterator _iter756; - for (_iter756 = this->partitionnames.begin(); _iter756 != this->partitionnames.end(); ++_iter756) + std::vector ::const_iterator _iter776; + for (_iter776 = this->partitionnames.begin(); _iter776 != this->partitionnames.end(); ++_iter776) { - xfer += oprot->writeString((*_iter756)); + xfer += oprot->writeString((*_iter776)); } xfer += oprot->writeListEnd(); } @@ -18440,23 +18987,23 @@ void swap(AddDynamicPartitions &a, AddDynamicPartitions &b) { swap(a.__isset, b.__isset); } -AddDynamicPartitions::AddDynamicPartitions(const AddDynamicPartitions& other757) { - txnid = other757.txnid; - writeid = other757.writeid; - dbname = other757.dbname; - tablename = other757.tablename; - partitionnames = other757.partitionnames; - operationType = other757.operationType; - __isset = other757.__isset; -} -AddDynamicPartitions& AddDynamicPartitions::operator=(const AddDynamicPartitions& other758) { - txnid = other758.txnid; - writeid = other758.writeid; - dbname = other758.dbname; - tablename = other758.tablename; - partitionnames = other758.partitionnames; - operationType = other758.operationType; - __isset = other758.__isset; +AddDynamicPartitions::AddDynamicPartitions(const AddDynamicPartitions& other777) { + txnid = other777.txnid; + writeid = other777.writeid; + dbname = other777.dbname; + tablename = other777.tablename; + partitionnames = other777.partitionnames; + operationType = other777.operationType; + __isset = other777.__isset; +} +AddDynamicPartitions& AddDynamicPartitions::operator=(const AddDynamicPartitions& other778) { + txnid = other778.txnid; + writeid = other778.writeid; + dbname = other778.dbname; + tablename = other778.tablename; + partitionnames = other778.partitionnames; + operationType = other778.operationType; + __isset = other778.__isset; return *this; } void AddDynamicPartitions::printTo(std::ostream& out) const { @@ -18639,23 +19186,23 @@ void swap(BasicTxnInfo &a, BasicTxnInfo &b) { swap(a.__isset, b.__isset); } -BasicTxnInfo::BasicTxnInfo(const BasicTxnInfo& other759) { - isnull = other759.isnull; - time = other759.time; - txnid = other759.txnid; - dbname = other759.dbname; - tablename = other759.tablename; - partitionname = other759.partitionname; - __isset = other759.__isset; -} -BasicTxnInfo& BasicTxnInfo::operator=(const BasicTxnInfo& other760) { - isnull = other760.isnull; - time = other760.time; - txnid = other760.txnid; - dbname = other760.dbname; - tablename = other760.tablename; - partitionname = other760.partitionname; - __isset = other760.__isset; +BasicTxnInfo::BasicTxnInfo(const BasicTxnInfo& other779) { + isnull = other779.isnull; + time = other779.time; + txnid = other779.txnid; + dbname = other779.dbname; + tablename = other779.tablename; + partitionname = other779.partitionname; + __isset = other779.__isset; +} +BasicTxnInfo& BasicTxnInfo::operator=(const BasicTxnInfo& other780) { + isnull = other780.isnull; + time = other780.time; + txnid = other780.txnid; + dbname = other780.dbname; + tablename = other780.tablename; + partitionname = other780.partitionname; + __isset = other780.__isset; return *this; } void BasicTxnInfo::printTo(std::ostream& out) const { @@ -18736,15 +19283,15 @@ uint32_t CreationMetadata::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_SET) { { this->tablesUsed.clear(); - uint32_t _size761; - ::apache::thrift::protocol::TType _etype764; - xfer += iprot->readSetBegin(_etype764, _size761); - uint32_t _i765; - for (_i765 = 0; _i765 < _size761; ++_i765) + uint32_t _size781; + ::apache::thrift::protocol::TType _etype784; + xfer += iprot->readSetBegin(_etype784, _size781); + uint32_t _i785; + for (_i785 = 0; _i785 < _size781; ++_i785) { - std::string _elem766; - xfer += iprot->readString(_elem766); - this->tablesUsed.insert(_elem766); + std::string _elem786; + xfer += iprot->readString(_elem786); + this->tablesUsed.insert(_elem786); } xfer += iprot->readSetEnd(); } @@ -18795,10 +19342,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 _iter767; - for (_iter767 = this->tablesUsed.begin(); _iter767 != this->tablesUsed.end(); ++_iter767) + std::set ::const_iterator _iter787; + for (_iter787 = this->tablesUsed.begin(); _iter787 != this->tablesUsed.end(); ++_iter787) { - xfer += oprot->writeString((*_iter767)); + xfer += oprot->writeString((*_iter787)); } xfer += oprot->writeSetEnd(); } @@ -18823,19 +19370,19 @@ void swap(CreationMetadata &a, CreationMetadata &b) { swap(a.__isset, b.__isset); } -CreationMetadata::CreationMetadata(const CreationMetadata& other768) { - dbName = other768.dbName; - tblName = other768.tblName; - tablesUsed = other768.tablesUsed; - validTxnList = other768.validTxnList; - __isset = other768.__isset; +CreationMetadata::CreationMetadata(const CreationMetadata& other788) { + dbName = other788.dbName; + tblName = other788.tblName; + tablesUsed = other788.tablesUsed; + validTxnList = other788.validTxnList; + __isset = other788.__isset; } -CreationMetadata& CreationMetadata::operator=(const CreationMetadata& other769) { - dbName = other769.dbName; - tblName = other769.tblName; - tablesUsed = other769.tablesUsed; - validTxnList = other769.validTxnList; - __isset = other769.__isset; +CreationMetadata& CreationMetadata::operator=(const CreationMetadata& other789) { + dbName = other789.dbName; + tblName = other789.tblName; + tablesUsed = other789.tablesUsed; + validTxnList = other789.validTxnList; + __isset = other789.__isset; return *this; } void CreationMetadata::printTo(std::ostream& out) const { @@ -18940,15 +19487,15 @@ void swap(NotificationEventRequest &a, NotificationEventRequest &b) { swap(a.__isset, b.__isset); } -NotificationEventRequest::NotificationEventRequest(const NotificationEventRequest& other770) { - lastEvent = other770.lastEvent; - maxEvents = other770.maxEvents; - __isset = other770.__isset; +NotificationEventRequest::NotificationEventRequest(const NotificationEventRequest& other790) { + lastEvent = other790.lastEvent; + maxEvents = other790.maxEvents; + __isset = other790.__isset; } -NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other771) { - lastEvent = other771.lastEvent; - maxEvents = other771.maxEvents; - __isset = other771.__isset; +NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other791) { + lastEvent = other791.lastEvent; + maxEvents = other791.maxEvents; + __isset = other791.__isset; return *this; } void NotificationEventRequest::printTo(std::ostream& out) const { @@ -19149,25 +19696,25 @@ void swap(NotificationEvent &a, NotificationEvent &b) { swap(a.__isset, b.__isset); } -NotificationEvent::NotificationEvent(const NotificationEvent& other772) { - eventId = other772.eventId; - eventTime = other772.eventTime; - eventType = other772.eventType; - dbName = other772.dbName; - tableName = other772.tableName; - message = other772.message; - messageFormat = other772.messageFormat; - __isset = other772.__isset; -} -NotificationEvent& NotificationEvent::operator=(const NotificationEvent& other773) { - eventId = other773.eventId; - eventTime = other773.eventTime; - eventType = other773.eventType; - dbName = other773.dbName; - tableName = other773.tableName; - message = other773.message; - messageFormat = other773.messageFormat; - __isset = other773.__isset; +NotificationEvent::NotificationEvent(const NotificationEvent& other792) { + eventId = other792.eventId; + eventTime = other792.eventTime; + eventType = other792.eventType; + dbName = other792.dbName; + tableName = other792.tableName; + message = other792.message; + messageFormat = other792.messageFormat; + __isset = other792.__isset; +} +NotificationEvent& NotificationEvent::operator=(const NotificationEvent& other793) { + eventId = other793.eventId; + eventTime = other793.eventTime; + eventType = other793.eventType; + dbName = other793.dbName; + tableName = other793.tableName; + message = other793.message; + messageFormat = other793.messageFormat; + __isset = other793.__isset; return *this; } void NotificationEvent::printTo(std::ostream& out) const { @@ -19218,14 +19765,14 @@ uint32_t NotificationEventResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->events.clear(); - uint32_t _size774; - ::apache::thrift::protocol::TType _etype777; - xfer += iprot->readListBegin(_etype777, _size774); - this->events.resize(_size774); - uint32_t _i778; - for (_i778 = 0; _i778 < _size774; ++_i778) + uint32_t _size794; + ::apache::thrift::protocol::TType _etype797; + xfer += iprot->readListBegin(_etype797, _size794); + this->events.resize(_size794); + uint32_t _i798; + for (_i798 = 0; _i798 < _size794; ++_i798) { - xfer += this->events[_i778].read(iprot); + xfer += this->events[_i798].read(iprot); } xfer += iprot->readListEnd(); } @@ -19256,10 +19803,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 _iter779; - for (_iter779 = this->events.begin(); _iter779 != this->events.end(); ++_iter779) + std::vector ::const_iterator _iter799; + for (_iter799 = this->events.begin(); _iter799 != this->events.end(); ++_iter799) { - xfer += (*_iter779).write(oprot); + xfer += (*_iter799).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19275,11 +19822,11 @@ void swap(NotificationEventResponse &a, NotificationEventResponse &b) { swap(a.events, b.events); } -NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other780) { - events = other780.events; +NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other800) { + events = other800.events; } -NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other781) { - events = other781.events; +NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other801) { + events = other801.events; return *this; } void NotificationEventResponse::printTo(std::ostream& out) const { @@ -19361,11 +19908,11 @@ void swap(CurrentNotificationEventId &a, CurrentNotificationEventId &b) { swap(a.eventId, b.eventId); } -CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other782) { - eventId = other782.eventId; +CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other802) { + eventId = other802.eventId; } -CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other783) { - eventId = other783.eventId; +CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other803) { + eventId = other803.eventId; return *this; } void CurrentNotificationEventId::printTo(std::ostream& out) const { @@ -19467,13 +20014,13 @@ void swap(NotificationEventsCountRequest &a, NotificationEventsCountRequest &b) swap(a.dbName, b.dbName); } -NotificationEventsCountRequest::NotificationEventsCountRequest(const NotificationEventsCountRequest& other784) { - fromEventId = other784.fromEventId; - dbName = other784.dbName; +NotificationEventsCountRequest::NotificationEventsCountRequest(const NotificationEventsCountRequest& other804) { + fromEventId = other804.fromEventId; + dbName = other804.dbName; } -NotificationEventsCountRequest& NotificationEventsCountRequest::operator=(const NotificationEventsCountRequest& other785) { - fromEventId = other785.fromEventId; - dbName = other785.dbName; +NotificationEventsCountRequest& NotificationEventsCountRequest::operator=(const NotificationEventsCountRequest& other805) { + fromEventId = other805.fromEventId; + dbName = other805.dbName; return *this; } void NotificationEventsCountRequest::printTo(std::ostream& out) const { @@ -19556,11 +20103,11 @@ void swap(NotificationEventsCountResponse &a, NotificationEventsCountResponse &b swap(a.eventsCount, b.eventsCount); } -NotificationEventsCountResponse::NotificationEventsCountResponse(const NotificationEventsCountResponse& other786) { - eventsCount = other786.eventsCount; +NotificationEventsCountResponse::NotificationEventsCountResponse(const NotificationEventsCountResponse& other806) { + eventsCount = other806.eventsCount; } -NotificationEventsCountResponse& NotificationEventsCountResponse::operator=(const NotificationEventsCountResponse& other787) { - eventsCount = other787.eventsCount; +NotificationEventsCountResponse& NotificationEventsCountResponse::operator=(const NotificationEventsCountResponse& other807) { + eventsCount = other807.eventsCount; return *this; } void NotificationEventsCountResponse::printTo(std::ostream& out) const { @@ -19623,14 +20170,14 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->filesAdded.clear(); - uint32_t _size788; - ::apache::thrift::protocol::TType _etype791; - xfer += iprot->readListBegin(_etype791, _size788); - this->filesAdded.resize(_size788); - uint32_t _i792; - for (_i792 = 0; _i792 < _size788; ++_i792) + uint32_t _size808; + ::apache::thrift::protocol::TType _etype811; + xfer += iprot->readListBegin(_etype811, _size808); + this->filesAdded.resize(_size808); + uint32_t _i812; + for (_i812 = 0; _i812 < _size808; ++_i812) { - xfer += iprot->readString(this->filesAdded[_i792]); + xfer += iprot->readString(this->filesAdded[_i812]); } xfer += iprot->readListEnd(); } @@ -19643,14 +20190,14 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->filesAddedChecksum.clear(); - uint32_t _size793; - ::apache::thrift::protocol::TType _etype796; - xfer += iprot->readListBegin(_etype796, _size793); - this->filesAddedChecksum.resize(_size793); - uint32_t _i797; - for (_i797 = 0; _i797 < _size793; ++_i797) + uint32_t _size813; + ::apache::thrift::protocol::TType _etype816; + xfer += iprot->readListBegin(_etype816, _size813); + this->filesAddedChecksum.resize(_size813); + uint32_t _i817; + for (_i817 = 0; _i817 < _size813; ++_i817) { - xfer += iprot->readString(this->filesAddedChecksum[_i797]); + xfer += iprot->readString(this->filesAddedChecksum[_i817]); } xfer += iprot->readListEnd(); } @@ -19686,10 +20233,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 _iter798; - for (_iter798 = this->filesAdded.begin(); _iter798 != this->filesAdded.end(); ++_iter798) + std::vector ::const_iterator _iter818; + for (_iter818 = this->filesAdded.begin(); _iter818 != this->filesAdded.end(); ++_iter818) { - xfer += oprot->writeString((*_iter798)); + xfer += oprot->writeString((*_iter818)); } xfer += oprot->writeListEnd(); } @@ -19699,10 +20246,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 _iter799; - for (_iter799 = this->filesAddedChecksum.begin(); _iter799 != this->filesAddedChecksum.end(); ++_iter799) + std::vector ::const_iterator _iter819; + for (_iter819 = this->filesAddedChecksum.begin(); _iter819 != this->filesAddedChecksum.end(); ++_iter819) { - xfer += oprot->writeString((*_iter799)); + xfer += oprot->writeString((*_iter819)); } xfer += oprot->writeListEnd(); } @@ -19721,17 +20268,17 @@ void swap(InsertEventRequestData &a, InsertEventRequestData &b) { swap(a.__isset, b.__isset); } -InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other800) { - replace = other800.replace; - filesAdded = other800.filesAdded; - filesAddedChecksum = other800.filesAddedChecksum; - __isset = other800.__isset; +InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other820) { + replace = other820.replace; + filesAdded = other820.filesAdded; + filesAddedChecksum = other820.filesAddedChecksum; + __isset = other820.__isset; } -InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other801) { - replace = other801.replace; - filesAdded = other801.filesAdded; - filesAddedChecksum = other801.filesAddedChecksum; - __isset = other801.__isset; +InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other821) { + replace = other821.replace; + filesAdded = other821.filesAdded; + filesAddedChecksum = other821.filesAddedChecksum; + __isset = other821.__isset; return *this; } void InsertEventRequestData::printTo(std::ostream& out) const { @@ -19813,13 +20360,13 @@ void swap(FireEventRequestData &a, FireEventRequestData &b) { swap(a.__isset, b.__isset); } -FireEventRequestData::FireEventRequestData(const FireEventRequestData& other802) { - insertData = other802.insertData; - __isset = other802.__isset; +FireEventRequestData::FireEventRequestData(const FireEventRequestData& other822) { + insertData = other822.insertData; + __isset = other822.__isset; } -FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other803) { - insertData = other803.insertData; - __isset = other803.__isset; +FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other823) { + insertData = other823.insertData; + __isset = other823.__isset; return *this; } void FireEventRequestData::printTo(std::ostream& out) const { @@ -19916,14 +20463,14 @@ uint32_t FireEventRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionVals.clear(); - uint32_t _size804; - ::apache::thrift::protocol::TType _etype807; - xfer += iprot->readListBegin(_etype807, _size804); - this->partitionVals.resize(_size804); - uint32_t _i808; - for (_i808 = 0; _i808 < _size804; ++_i808) + uint32_t _size824; + ::apache::thrift::protocol::TType _etype827; + xfer += iprot->readListBegin(_etype827, _size824); + this->partitionVals.resize(_size824); + uint32_t _i828; + for (_i828 = 0; _i828 < _size824; ++_i828) { - xfer += iprot->readString(this->partitionVals[_i808]); + xfer += iprot->readString(this->partitionVals[_i828]); } xfer += iprot->readListEnd(); } @@ -19975,10 +20522,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 _iter809; - for (_iter809 = this->partitionVals.begin(); _iter809 != this->partitionVals.end(); ++_iter809) + std::vector ::const_iterator _iter829; + for (_iter829 = this->partitionVals.begin(); _iter829 != this->partitionVals.end(); ++_iter829) { - xfer += oprot->writeString((*_iter809)); + xfer += oprot->writeString((*_iter829)); } xfer += oprot->writeListEnd(); } @@ -19999,21 +20546,21 @@ void swap(FireEventRequest &a, FireEventRequest &b) { swap(a.__isset, b.__isset); } -FireEventRequest::FireEventRequest(const FireEventRequest& other810) { - successful = other810.successful; - data = other810.data; - dbName = other810.dbName; - tableName = other810.tableName; - partitionVals = other810.partitionVals; - __isset = other810.__isset; -} -FireEventRequest& FireEventRequest::operator=(const FireEventRequest& other811) { - successful = other811.successful; - data = other811.data; - dbName = other811.dbName; - tableName = other811.tableName; - partitionVals = other811.partitionVals; - __isset = other811.__isset; +FireEventRequest::FireEventRequest(const FireEventRequest& other830) { + successful = other830.successful; + data = other830.data; + dbName = other830.dbName; + tableName = other830.tableName; + partitionVals = other830.partitionVals; + __isset = other830.__isset; +} +FireEventRequest& FireEventRequest::operator=(const FireEventRequest& other831) { + successful = other831.successful; + data = other831.data; + dbName = other831.dbName; + tableName = other831.tableName; + partitionVals = other831.partitionVals; + __isset = other831.__isset; return *this; } void FireEventRequest::printTo(std::ostream& out) const { @@ -20076,11 +20623,11 @@ void swap(FireEventResponse &a, FireEventResponse &b) { (void) b; } -FireEventResponse::FireEventResponse(const FireEventResponse& other812) { - (void) other812; +FireEventResponse::FireEventResponse(const FireEventResponse& other832) { + (void) other832; } -FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other813) { - (void) other813; +FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other833) { + (void) other833; return *this; } void FireEventResponse::printTo(std::ostream& out) const { @@ -20180,15 +20727,15 @@ void swap(MetadataPpdResult &a, MetadataPpdResult &b) { swap(a.__isset, b.__isset); } -MetadataPpdResult::MetadataPpdResult(const MetadataPpdResult& other814) { - metadata = other814.metadata; - includeBitset = other814.includeBitset; - __isset = other814.__isset; +MetadataPpdResult::MetadataPpdResult(const MetadataPpdResult& other834) { + metadata = other834.metadata; + includeBitset = other834.includeBitset; + __isset = other834.__isset; } -MetadataPpdResult& MetadataPpdResult::operator=(const MetadataPpdResult& other815) { - metadata = other815.metadata; - includeBitset = other815.includeBitset; - __isset = other815.__isset; +MetadataPpdResult& MetadataPpdResult::operator=(const MetadataPpdResult& other835) { + metadata = other835.metadata; + includeBitset = other835.includeBitset; + __isset = other835.__isset; return *this; } void MetadataPpdResult::printTo(std::ostream& out) const { @@ -20239,17 +20786,17 @@ uint32_t GetFileMetadataByExprResult::read(::apache::thrift::protocol::TProtocol if (ftype == ::apache::thrift::protocol::T_MAP) { { this->metadata.clear(); - uint32_t _size816; - ::apache::thrift::protocol::TType _ktype817; - ::apache::thrift::protocol::TType _vtype818; - xfer += iprot->readMapBegin(_ktype817, _vtype818, _size816); - uint32_t _i820; - for (_i820 = 0; _i820 < _size816; ++_i820) + uint32_t _size836; + ::apache::thrift::protocol::TType _ktype837; + ::apache::thrift::protocol::TType _vtype838; + xfer += iprot->readMapBegin(_ktype837, _vtype838, _size836); + uint32_t _i840; + for (_i840 = 0; _i840 < _size836; ++_i840) { - int64_t _key821; - xfer += iprot->readI64(_key821); - MetadataPpdResult& _val822 = this->metadata[_key821]; - xfer += _val822.read(iprot); + int64_t _key841; + xfer += iprot->readI64(_key841); + MetadataPpdResult& _val842 = this->metadata[_key841]; + xfer += _val842.read(iprot); } xfer += iprot->readMapEnd(); } @@ -20290,11 +20837,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 _iter823; - for (_iter823 = this->metadata.begin(); _iter823 != this->metadata.end(); ++_iter823) + std::map ::const_iterator _iter843; + for (_iter843 = this->metadata.begin(); _iter843 != this->metadata.end(); ++_iter843) { - xfer += oprot->writeI64(_iter823->first); - xfer += _iter823->second.write(oprot); + xfer += oprot->writeI64(_iter843->first); + xfer += _iter843->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -20315,13 +20862,13 @@ void swap(GetFileMetadataByExprResult &a, GetFileMetadataByExprResult &b) { swap(a.isSupported, b.isSupported); } -GetFileMetadataByExprResult::GetFileMetadataByExprResult(const GetFileMetadataByExprResult& other824) { - metadata = other824.metadata; - isSupported = other824.isSupported; +GetFileMetadataByExprResult::GetFileMetadataByExprResult(const GetFileMetadataByExprResult& other844) { + metadata = other844.metadata; + isSupported = other844.isSupported; } -GetFileMetadataByExprResult& GetFileMetadataByExprResult::operator=(const GetFileMetadataByExprResult& other825) { - metadata = other825.metadata; - isSupported = other825.isSupported; +GetFileMetadataByExprResult& GetFileMetadataByExprResult::operator=(const GetFileMetadataByExprResult& other845) { + metadata = other845.metadata; + isSupported = other845.isSupported; return *this; } void GetFileMetadataByExprResult::printTo(std::ostream& out) const { @@ -20382,14 +20929,14 @@ uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size826; - ::apache::thrift::protocol::TType _etype829; - xfer += iprot->readListBegin(_etype829, _size826); - this->fileIds.resize(_size826); - uint32_t _i830; - for (_i830 = 0; _i830 < _size826; ++_i830) + uint32_t _size846; + ::apache::thrift::protocol::TType _etype849; + xfer += iprot->readListBegin(_etype849, _size846); + this->fileIds.resize(_size846); + uint32_t _i850; + for (_i850 = 0; _i850 < _size846; ++_i850) { - xfer += iprot->readI64(this->fileIds[_i830]); + xfer += iprot->readI64(this->fileIds[_i850]); } xfer += iprot->readListEnd(); } @@ -20416,9 +20963,9 @@ uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtoco break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast831; - xfer += iprot->readI32(ecast831); - this->type = (FileMetadataExprType::type)ecast831; + int32_t ecast851; + xfer += iprot->readI32(ecast851); + this->type = (FileMetadataExprType::type)ecast851; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -20448,10 +20995,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 _iter832; - for (_iter832 = this->fileIds.begin(); _iter832 != this->fileIds.end(); ++_iter832) + std::vector ::const_iterator _iter852; + for (_iter852 = this->fileIds.begin(); _iter852 != this->fileIds.end(); ++_iter852) { - xfer += oprot->writeI64((*_iter832)); + xfer += oprot->writeI64((*_iter852)); } xfer += oprot->writeListEnd(); } @@ -20485,19 +21032,19 @@ void swap(GetFileMetadataByExprRequest &a, GetFileMetadataByExprRequest &b) { swap(a.__isset, b.__isset); } -GetFileMetadataByExprRequest::GetFileMetadataByExprRequest(const GetFileMetadataByExprRequest& other833) { - fileIds = other833.fileIds; - expr = other833.expr; - doGetFooters = other833.doGetFooters; - type = other833.type; - __isset = other833.__isset; +GetFileMetadataByExprRequest::GetFileMetadataByExprRequest(const GetFileMetadataByExprRequest& other853) { + fileIds = other853.fileIds; + expr = other853.expr; + doGetFooters = other853.doGetFooters; + type = other853.type; + __isset = other853.__isset; } -GetFileMetadataByExprRequest& GetFileMetadataByExprRequest::operator=(const GetFileMetadataByExprRequest& other834) { - fileIds = other834.fileIds; - expr = other834.expr; - doGetFooters = other834.doGetFooters; - type = other834.type; - __isset = other834.__isset; +GetFileMetadataByExprRequest& GetFileMetadataByExprRequest::operator=(const GetFileMetadataByExprRequest& other854) { + fileIds = other854.fileIds; + expr = other854.expr; + doGetFooters = other854.doGetFooters; + type = other854.type; + __isset = other854.__isset; return *this; } void GetFileMetadataByExprRequest::printTo(std::ostream& out) const { @@ -20550,17 +21097,17 @@ uint32_t GetFileMetadataResult::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->metadata.clear(); - uint32_t _size835; - ::apache::thrift::protocol::TType _ktype836; - ::apache::thrift::protocol::TType _vtype837; - xfer += iprot->readMapBegin(_ktype836, _vtype837, _size835); - uint32_t _i839; - for (_i839 = 0; _i839 < _size835; ++_i839) + uint32_t _size855; + ::apache::thrift::protocol::TType _ktype856; + ::apache::thrift::protocol::TType _vtype857; + xfer += iprot->readMapBegin(_ktype856, _vtype857, _size855); + uint32_t _i859; + for (_i859 = 0; _i859 < _size855; ++_i859) { - int64_t _key840; - xfer += iprot->readI64(_key840); - std::string& _val841 = this->metadata[_key840]; - xfer += iprot->readBinary(_val841); + int64_t _key860; + xfer += iprot->readI64(_key860); + std::string& _val861 = this->metadata[_key860]; + xfer += iprot->readBinary(_val861); } xfer += iprot->readMapEnd(); } @@ -20601,11 +21148,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 _iter842; - for (_iter842 = this->metadata.begin(); _iter842 != this->metadata.end(); ++_iter842) + std::map ::const_iterator _iter862; + for (_iter862 = this->metadata.begin(); _iter862 != this->metadata.end(); ++_iter862) { - xfer += oprot->writeI64(_iter842->first); - xfer += oprot->writeBinary(_iter842->second); + xfer += oprot->writeI64(_iter862->first); + xfer += oprot->writeBinary(_iter862->second); } xfer += oprot->writeMapEnd(); } @@ -20626,13 +21173,13 @@ void swap(GetFileMetadataResult &a, GetFileMetadataResult &b) { swap(a.isSupported, b.isSupported); } -GetFileMetadataResult::GetFileMetadataResult(const GetFileMetadataResult& other843) { - metadata = other843.metadata; - isSupported = other843.isSupported; +GetFileMetadataResult::GetFileMetadataResult(const GetFileMetadataResult& other863) { + metadata = other863.metadata; + isSupported = other863.isSupported; } -GetFileMetadataResult& GetFileMetadataResult::operator=(const GetFileMetadataResult& other844) { - metadata = other844.metadata; - isSupported = other844.isSupported; +GetFileMetadataResult& GetFileMetadataResult::operator=(const GetFileMetadataResult& other864) { + metadata = other864.metadata; + isSupported = other864.isSupported; return *this; } void GetFileMetadataResult::printTo(std::ostream& out) const { @@ -20678,14 +21225,14 @@ uint32_t GetFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size845; - ::apache::thrift::protocol::TType _etype848; - xfer += iprot->readListBegin(_etype848, _size845); - this->fileIds.resize(_size845); - uint32_t _i849; - for (_i849 = 0; _i849 < _size845; ++_i849) + uint32_t _size865; + ::apache::thrift::protocol::TType _etype868; + xfer += iprot->readListBegin(_etype868, _size865); + this->fileIds.resize(_size865); + uint32_t _i869; + for (_i869 = 0; _i869 < _size865; ++_i869) { - xfer += iprot->readI64(this->fileIds[_i849]); + xfer += iprot->readI64(this->fileIds[_i869]); } xfer += iprot->readListEnd(); } @@ -20716,10 +21263,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 _iter850; - for (_iter850 = this->fileIds.begin(); _iter850 != this->fileIds.end(); ++_iter850) + std::vector ::const_iterator _iter870; + for (_iter870 = this->fileIds.begin(); _iter870 != this->fileIds.end(); ++_iter870) { - xfer += oprot->writeI64((*_iter850)); + xfer += oprot->writeI64((*_iter870)); } xfer += oprot->writeListEnd(); } @@ -20735,11 +21282,11 @@ void swap(GetFileMetadataRequest &a, GetFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -GetFileMetadataRequest::GetFileMetadataRequest(const GetFileMetadataRequest& other851) { - fileIds = other851.fileIds; +GetFileMetadataRequest::GetFileMetadataRequest(const GetFileMetadataRequest& other871) { + fileIds = other871.fileIds; } -GetFileMetadataRequest& GetFileMetadataRequest::operator=(const GetFileMetadataRequest& other852) { - fileIds = other852.fileIds; +GetFileMetadataRequest& GetFileMetadataRequest::operator=(const GetFileMetadataRequest& other872) { + fileIds = other872.fileIds; return *this; } void GetFileMetadataRequest::printTo(std::ostream& out) const { @@ -20798,11 +21345,11 @@ void swap(PutFileMetadataResult &a, PutFileMetadataResult &b) { (void) b; } -PutFileMetadataResult::PutFileMetadataResult(const PutFileMetadataResult& other853) { - (void) other853; +PutFileMetadataResult::PutFileMetadataResult(const PutFileMetadataResult& other873) { + (void) other873; } -PutFileMetadataResult& PutFileMetadataResult::operator=(const PutFileMetadataResult& other854) { - (void) other854; +PutFileMetadataResult& PutFileMetadataResult::operator=(const PutFileMetadataResult& other874) { + (void) other874; return *this; } void PutFileMetadataResult::printTo(std::ostream& out) const { @@ -20856,14 +21403,14 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size855; - ::apache::thrift::protocol::TType _etype858; - xfer += iprot->readListBegin(_etype858, _size855); - this->fileIds.resize(_size855); - uint32_t _i859; - for (_i859 = 0; _i859 < _size855; ++_i859) + uint32_t _size875; + ::apache::thrift::protocol::TType _etype878; + xfer += iprot->readListBegin(_etype878, _size875); + this->fileIds.resize(_size875); + uint32_t _i879; + for (_i879 = 0; _i879 < _size875; ++_i879) { - xfer += iprot->readI64(this->fileIds[_i859]); + xfer += iprot->readI64(this->fileIds[_i879]); } xfer += iprot->readListEnd(); } @@ -20876,14 +21423,14 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->metadata.clear(); - uint32_t _size860; - ::apache::thrift::protocol::TType _etype863; - xfer += iprot->readListBegin(_etype863, _size860); - this->metadata.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->metadata.resize(_size880); + uint32_t _i884; + for (_i884 = 0; _i884 < _size880; ++_i884) { - xfer += iprot->readBinary(this->metadata[_i864]); + xfer += iprot->readBinary(this->metadata[_i884]); } xfer += iprot->readListEnd(); } @@ -20894,9 +21441,9 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast865; - xfer += iprot->readI32(ecast865); - this->type = (FileMetadataExprType::type)ecast865; + int32_t ecast885; + xfer += iprot->readI32(ecast885); + this->type = (FileMetadataExprType::type)ecast885; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -20926,10 +21473,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 _iter866; - for (_iter866 = this->fileIds.begin(); _iter866 != this->fileIds.end(); ++_iter866) + std::vector ::const_iterator _iter886; + for (_iter886 = this->fileIds.begin(); _iter886 != this->fileIds.end(); ++_iter886) { - xfer += oprot->writeI64((*_iter866)); + xfer += oprot->writeI64((*_iter886)); } xfer += oprot->writeListEnd(); } @@ -20938,10 +21485,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 _iter867; - for (_iter867 = this->metadata.begin(); _iter867 != this->metadata.end(); ++_iter867) + std::vector ::const_iterator _iter887; + for (_iter887 = this->metadata.begin(); _iter887 != this->metadata.end(); ++_iter887) { - xfer += oprot->writeBinary((*_iter867)); + xfer += oprot->writeBinary((*_iter887)); } xfer += oprot->writeListEnd(); } @@ -20965,17 +21512,17 @@ void swap(PutFileMetadataRequest &a, PutFileMetadataRequest &b) { swap(a.__isset, b.__isset); } -PutFileMetadataRequest::PutFileMetadataRequest(const PutFileMetadataRequest& other868) { - fileIds = other868.fileIds; - metadata = other868.metadata; - type = other868.type; - __isset = other868.__isset; +PutFileMetadataRequest::PutFileMetadataRequest(const PutFileMetadataRequest& other888) { + fileIds = other888.fileIds; + metadata = other888.metadata; + type = other888.type; + __isset = other888.__isset; } -PutFileMetadataRequest& PutFileMetadataRequest::operator=(const PutFileMetadataRequest& other869) { - fileIds = other869.fileIds; - metadata = other869.metadata; - type = other869.type; - __isset = other869.__isset; +PutFileMetadataRequest& PutFileMetadataRequest::operator=(const PutFileMetadataRequest& other889) { + fileIds = other889.fileIds; + metadata = other889.metadata; + type = other889.type; + __isset = other889.__isset; return *this; } void PutFileMetadataRequest::printTo(std::ostream& out) const { @@ -21036,11 +21583,11 @@ void swap(ClearFileMetadataResult &a, ClearFileMetadataResult &b) { (void) b; } -ClearFileMetadataResult::ClearFileMetadataResult(const ClearFileMetadataResult& other870) { - (void) other870; +ClearFileMetadataResult::ClearFileMetadataResult(const ClearFileMetadataResult& other890) { + (void) other890; } -ClearFileMetadataResult& ClearFileMetadataResult::operator=(const ClearFileMetadataResult& other871) { - (void) other871; +ClearFileMetadataResult& ClearFileMetadataResult::operator=(const ClearFileMetadataResult& other891) { + (void) other891; return *this; } void ClearFileMetadataResult::printTo(std::ostream& out) const { @@ -21084,14 +21631,14 @@ uint32_t ClearFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* i if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size872; - ::apache::thrift::protocol::TType _etype875; - xfer += iprot->readListBegin(_etype875, _size872); - this->fileIds.resize(_size872); - uint32_t _i876; - for (_i876 = 0; _i876 < _size872; ++_i876) + uint32_t _size892; + ::apache::thrift::protocol::TType _etype895; + xfer += iprot->readListBegin(_etype895, _size892); + this->fileIds.resize(_size892); + uint32_t _i896; + for (_i896 = 0; _i896 < _size892; ++_i896) { - xfer += iprot->readI64(this->fileIds[_i876]); + xfer += iprot->readI64(this->fileIds[_i896]); } xfer += iprot->readListEnd(); } @@ -21122,10 +21669,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 _iter877; - for (_iter877 = this->fileIds.begin(); _iter877 != this->fileIds.end(); ++_iter877) + std::vector ::const_iterator _iter897; + for (_iter897 = this->fileIds.begin(); _iter897 != this->fileIds.end(); ++_iter897) { - xfer += oprot->writeI64((*_iter877)); + xfer += oprot->writeI64((*_iter897)); } xfer += oprot->writeListEnd(); } @@ -21141,11 +21688,11 @@ void swap(ClearFileMetadataRequest &a, ClearFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -ClearFileMetadataRequest::ClearFileMetadataRequest(const ClearFileMetadataRequest& other878) { - fileIds = other878.fileIds; +ClearFileMetadataRequest::ClearFileMetadataRequest(const ClearFileMetadataRequest& other898) { + fileIds = other898.fileIds; } -ClearFileMetadataRequest& ClearFileMetadataRequest::operator=(const ClearFileMetadataRequest& other879) { - fileIds = other879.fileIds; +ClearFileMetadataRequest& ClearFileMetadataRequest::operator=(const ClearFileMetadataRequest& other899) { + fileIds = other899.fileIds; return *this; } void ClearFileMetadataRequest::printTo(std::ostream& out) const { @@ -21227,11 +21774,11 @@ void swap(CacheFileMetadataResult &a, CacheFileMetadataResult &b) { swap(a.isSupported, b.isSupported); } -CacheFileMetadataResult::CacheFileMetadataResult(const CacheFileMetadataResult& other880) { - isSupported = other880.isSupported; +CacheFileMetadataResult::CacheFileMetadataResult(const CacheFileMetadataResult& other900) { + isSupported = other900.isSupported; } -CacheFileMetadataResult& CacheFileMetadataResult::operator=(const CacheFileMetadataResult& other881) { - isSupported = other881.isSupported; +CacheFileMetadataResult& CacheFileMetadataResult::operator=(const CacheFileMetadataResult& other901) { + isSupported = other901.isSupported; return *this; } void CacheFileMetadataResult::printTo(std::ostream& out) const { @@ -21372,19 +21919,19 @@ void swap(CacheFileMetadataRequest &a, CacheFileMetadataRequest &b) { swap(a.__isset, b.__isset); } -CacheFileMetadataRequest::CacheFileMetadataRequest(const CacheFileMetadataRequest& other882) { - dbName = other882.dbName; - tblName = other882.tblName; - partName = other882.partName; - isAllParts = other882.isAllParts; - __isset = other882.__isset; +CacheFileMetadataRequest::CacheFileMetadataRequest(const CacheFileMetadataRequest& other902) { + dbName = other902.dbName; + tblName = other902.tblName; + partName = other902.partName; + isAllParts = other902.isAllParts; + __isset = other902.__isset; } -CacheFileMetadataRequest& CacheFileMetadataRequest::operator=(const CacheFileMetadataRequest& other883) { - dbName = other883.dbName; - tblName = other883.tblName; - partName = other883.partName; - isAllParts = other883.isAllParts; - __isset = other883.__isset; +CacheFileMetadataRequest& CacheFileMetadataRequest::operator=(const CacheFileMetadataRequest& other903) { + dbName = other903.dbName; + tblName = other903.tblName; + partName = other903.partName; + isAllParts = other903.isAllParts; + __isset = other903.__isset; return *this; } void CacheFileMetadataRequest::printTo(std::ostream& out) const { @@ -21432,14 +21979,14 @@ uint32_t GetAllFunctionsResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->functions.clear(); - uint32_t _size884; - ::apache::thrift::protocol::TType _etype887; - xfer += iprot->readListBegin(_etype887, _size884); - this->functions.resize(_size884); - uint32_t _i888; - for (_i888 = 0; _i888 < _size884; ++_i888) + uint32_t _size904; + ::apache::thrift::protocol::TType _etype907; + xfer += iprot->readListBegin(_etype907, _size904); + this->functions.resize(_size904); + uint32_t _i908; + for (_i908 = 0; _i908 < _size904; ++_i908) { - xfer += this->functions[_i888].read(iprot); + xfer += this->functions[_i908].read(iprot); } xfer += iprot->readListEnd(); } @@ -21469,10 +22016,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 _iter889; - for (_iter889 = this->functions.begin(); _iter889 != this->functions.end(); ++_iter889) + std::vector ::const_iterator _iter909; + for (_iter909 = this->functions.begin(); _iter909 != this->functions.end(); ++_iter909) { - xfer += (*_iter889).write(oprot); + xfer += (*_iter909).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21489,13 +22036,13 @@ void swap(GetAllFunctionsResponse &a, GetAllFunctionsResponse &b) { swap(a.__isset, b.__isset); } -GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other890) { - functions = other890.functions; - __isset = other890.__isset; +GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other910) { + functions = other910.functions; + __isset = other910.__isset; } -GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other891) { - functions = other891.functions; - __isset = other891.__isset; +GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other911) { + functions = other911.functions; + __isset = other911.__isset; return *this; } void GetAllFunctionsResponse::printTo(std::ostream& out) const { @@ -21540,16 +22087,16 @@ uint32_t ClientCapabilities::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size892; - ::apache::thrift::protocol::TType _etype895; - xfer += iprot->readListBegin(_etype895, _size892); - this->values.resize(_size892); - uint32_t _i896; - for (_i896 = 0; _i896 < _size892; ++_i896) + uint32_t _size912; + ::apache::thrift::protocol::TType _etype915; + xfer += iprot->readListBegin(_etype915, _size912); + this->values.resize(_size912); + uint32_t _i916; + for (_i916 = 0; _i916 < _size912; ++_i916) { - int32_t ecast897; - xfer += iprot->readI32(ecast897); - this->values[_i896] = (ClientCapability::type)ecast897; + int32_t ecast917; + xfer += iprot->readI32(ecast917); + this->values[_i916] = (ClientCapability::type)ecast917; } xfer += iprot->readListEnd(); } @@ -21580,10 +22127,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 _iter898; - for (_iter898 = this->values.begin(); _iter898 != this->values.end(); ++_iter898) + std::vector ::const_iterator _iter918; + for (_iter918 = this->values.begin(); _iter918 != this->values.end(); ++_iter918) { - xfer += oprot->writeI32((int32_t)(*_iter898)); + xfer += oprot->writeI32((int32_t)(*_iter918)); } xfer += oprot->writeListEnd(); } @@ -21599,11 +22146,11 @@ void swap(ClientCapabilities &a, ClientCapabilities &b) { swap(a.values, b.values); } -ClientCapabilities::ClientCapabilities(const ClientCapabilities& other899) { - values = other899.values; +ClientCapabilities::ClientCapabilities(const ClientCapabilities& other919) { + values = other919.values; } -ClientCapabilities& ClientCapabilities::operator=(const ClientCapabilities& other900) { - values = other900.values; +ClientCapabilities& ClientCapabilities::operator=(const ClientCapabilities& other920) { + values = other920.values; return *this; } void ClientCapabilities::printTo(std::ostream& out) const { @@ -21725,17 +22272,17 @@ void swap(GetTableRequest &a, GetTableRequest &b) { swap(a.__isset, b.__isset); } -GetTableRequest::GetTableRequest(const GetTableRequest& other901) { - dbName = other901.dbName; - tblName = other901.tblName; - capabilities = other901.capabilities; - __isset = other901.__isset; +GetTableRequest::GetTableRequest(const GetTableRequest& other921) { + dbName = other921.dbName; + tblName = other921.tblName; + capabilities = other921.capabilities; + __isset = other921.__isset; } -GetTableRequest& GetTableRequest::operator=(const GetTableRequest& other902) { - dbName = other902.dbName; - tblName = other902.tblName; - capabilities = other902.capabilities; - __isset = other902.__isset; +GetTableRequest& GetTableRequest::operator=(const GetTableRequest& other922) { + dbName = other922.dbName; + tblName = other922.tblName; + capabilities = other922.capabilities; + __isset = other922.__isset; return *this; } void GetTableRequest::printTo(std::ostream& out) const { @@ -21819,11 +22366,11 @@ void swap(GetTableResult &a, GetTableResult &b) { swap(a.table, b.table); } -GetTableResult::GetTableResult(const GetTableResult& other903) { - table = other903.table; +GetTableResult::GetTableResult(const GetTableResult& other923) { + table = other923.table; } -GetTableResult& GetTableResult::operator=(const GetTableResult& other904) { - table = other904.table; +GetTableResult& GetTableResult::operator=(const GetTableResult& other924) { + table = other924.table; return *this; } void GetTableResult::printTo(std::ostream& out) const { @@ -21886,14 +22433,14 @@ uint32_t GetTablesRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tblNames.clear(); - uint32_t _size905; - ::apache::thrift::protocol::TType _etype908; - xfer += iprot->readListBegin(_etype908, _size905); - this->tblNames.resize(_size905); - uint32_t _i909; - for (_i909 = 0; _i909 < _size905; ++_i909) + uint32_t _size925; + ::apache::thrift::protocol::TType _etype928; + xfer += iprot->readListBegin(_etype928, _size925); + this->tblNames.resize(_size925); + uint32_t _i929; + for (_i929 = 0; _i929 < _size925; ++_i929) { - xfer += iprot->readString(this->tblNames[_i909]); + xfer += iprot->readString(this->tblNames[_i929]); } xfer += iprot->readListEnd(); } @@ -21937,10 +22484,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 _iter910; - for (_iter910 = this->tblNames.begin(); _iter910 != this->tblNames.end(); ++_iter910) + std::vector ::const_iterator _iter930; + for (_iter930 = this->tblNames.begin(); _iter930 != this->tblNames.end(); ++_iter930) { - xfer += oprot->writeString((*_iter910)); + xfer += oprot->writeString((*_iter930)); } xfer += oprot->writeListEnd(); } @@ -21964,17 +22511,17 @@ void swap(GetTablesRequest &a, GetTablesRequest &b) { swap(a.__isset, b.__isset); } -GetTablesRequest::GetTablesRequest(const GetTablesRequest& other911) { - dbName = other911.dbName; - tblNames = other911.tblNames; - capabilities = other911.capabilities; - __isset = other911.__isset; +GetTablesRequest::GetTablesRequest(const GetTablesRequest& other931) { + dbName = other931.dbName; + tblNames = other931.tblNames; + capabilities = other931.capabilities; + __isset = other931.__isset; } -GetTablesRequest& GetTablesRequest::operator=(const GetTablesRequest& other912) { - dbName = other912.dbName; - tblNames = other912.tblNames; - capabilities = other912.capabilities; - __isset = other912.__isset; +GetTablesRequest& GetTablesRequest::operator=(const GetTablesRequest& other932) { + dbName = other932.dbName; + tblNames = other932.tblNames; + capabilities = other932.capabilities; + __isset = other932.__isset; return *this; } void GetTablesRequest::printTo(std::ostream& out) const { @@ -22021,14 +22568,14 @@ uint32_t GetTablesResult::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tables.clear(); - uint32_t _size913; - ::apache::thrift::protocol::TType _etype916; - xfer += iprot->readListBegin(_etype916, _size913); - this->tables.resize(_size913); - uint32_t _i917; - for (_i917 = 0; _i917 < _size913; ++_i917) + uint32_t _size933; + ::apache::thrift::protocol::TType _etype936; + xfer += iprot->readListBegin(_etype936, _size933); + this->tables.resize(_size933); + uint32_t _i937; + for (_i937 = 0; _i937 < _size933; ++_i937) { - xfer += this->tables[_i917].read(iprot); + xfer += this->tables[_i937].read(iprot); } xfer += iprot->readListEnd(); } @@ -22059,10 +22606,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 _iter918; - for (_iter918 = this->tables.begin(); _iter918 != this->tables.end(); ++_iter918) + std::vector
::const_iterator _iter938; + for (_iter938 = this->tables.begin(); _iter938 != this->tables.end(); ++_iter938) { - xfer += (*_iter918).write(oprot); + xfer += (*_iter938).write(oprot); } xfer += oprot->writeListEnd(); } @@ -22078,11 +22625,11 @@ void swap(GetTablesResult &a, GetTablesResult &b) { swap(a.tables, b.tables); } -GetTablesResult::GetTablesResult(const GetTablesResult& other919) { - tables = other919.tables; +GetTablesResult::GetTablesResult(const GetTablesResult& other939) { + tables = other939.tables; } -GetTablesResult& GetTablesResult::operator=(const GetTablesResult& other920) { - tables = other920.tables; +GetTablesResult& GetTablesResult::operator=(const GetTablesResult& other940) { + tables = other940.tables; return *this; } void GetTablesResult::printTo(std::ostream& out) const { @@ -22184,13 +22731,13 @@ void swap(CmRecycleRequest &a, CmRecycleRequest &b) { swap(a.purge, b.purge); } -CmRecycleRequest::CmRecycleRequest(const CmRecycleRequest& other921) { - dataPath = other921.dataPath; - purge = other921.purge; +CmRecycleRequest::CmRecycleRequest(const CmRecycleRequest& other941) { + dataPath = other941.dataPath; + purge = other941.purge; } -CmRecycleRequest& CmRecycleRequest::operator=(const CmRecycleRequest& other922) { - dataPath = other922.dataPath; - purge = other922.purge; +CmRecycleRequest& CmRecycleRequest::operator=(const CmRecycleRequest& other942) { + dataPath = other942.dataPath; + purge = other942.purge; return *this; } void CmRecycleRequest::printTo(std::ostream& out) const { @@ -22250,11 +22797,11 @@ void swap(CmRecycleResponse &a, CmRecycleResponse &b) { (void) b; } -CmRecycleResponse::CmRecycleResponse(const CmRecycleResponse& other923) { - (void) other923; +CmRecycleResponse::CmRecycleResponse(const CmRecycleResponse& other943) { + (void) other943; } -CmRecycleResponse& CmRecycleResponse::operator=(const CmRecycleResponse& other924) { - (void) other924; +CmRecycleResponse& CmRecycleResponse::operator=(const CmRecycleResponse& other944) { + (void) other944; return *this; } void CmRecycleResponse::printTo(std::ostream& out) const { @@ -22395,19 +22942,19 @@ void swap(TableMeta &a, TableMeta &b) { swap(a.__isset, b.__isset); } -TableMeta::TableMeta(const TableMeta& other925) { - dbName = other925.dbName; - tableName = other925.tableName; - tableType = other925.tableType; - comments = other925.comments; - __isset = other925.__isset; +TableMeta::TableMeta(const TableMeta& other945) { + dbName = other945.dbName; + tableName = other945.tableName; + tableType = other945.tableType; + comments = other945.comments; + __isset = other945.__isset; } -TableMeta& TableMeta::operator=(const TableMeta& other926) { - dbName = other926.dbName; - tableName = other926.tableName; - tableType = other926.tableType; - comments = other926.comments; - __isset = other926.__isset; +TableMeta& TableMeta::operator=(const TableMeta& other946) { + dbName = other946.dbName; + tableName = other946.tableName; + tableType = other946.tableType; + comments = other946.comments; + __isset = other946.__isset; return *this; } void TableMeta::printTo(std::ostream& out) const { @@ -22465,15 +23012,15 @@ uint32_t Materialization::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_SET) { { this->tablesUsed.clear(); - uint32_t _size927; - ::apache::thrift::protocol::TType _etype930; - xfer += iprot->readSetBegin(_etype930, _size927); - uint32_t _i931; - for (_i931 = 0; _i931 < _size927; ++_i931) + uint32_t _size947; + ::apache::thrift::protocol::TType _etype950; + xfer += iprot->readSetBegin(_etype950, _size947); + uint32_t _i951; + for (_i951 = 0; _i951 < _size947; ++_i951) { - std::string _elem932; - xfer += iprot->readString(_elem932); - this->tablesUsed.insert(_elem932); + std::string _elem952; + xfer += iprot->readString(_elem952); + this->tablesUsed.insert(_elem952); } xfer += iprot->readSetEnd(); } @@ -22522,10 +23069,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 _iter933; - for (_iter933 = this->tablesUsed.begin(); _iter933 != this->tablesUsed.end(); ++_iter933) + std::set ::const_iterator _iter953; + for (_iter953 = this->tablesUsed.begin(); _iter953 != this->tablesUsed.end(); ++_iter953) { - xfer += oprot->writeString((*_iter933)); + xfer += oprot->writeString((*_iter953)); } xfer += oprot->writeSetEnd(); } @@ -22553,17 +23100,17 @@ void swap(Materialization &a, Materialization &b) { swap(a.__isset, b.__isset); } -Materialization::Materialization(const Materialization& other934) { - tablesUsed = other934.tablesUsed; - validTxnList = other934.validTxnList; - invalidationTime = other934.invalidationTime; - __isset = other934.__isset; +Materialization::Materialization(const Materialization& other954) { + tablesUsed = other954.tablesUsed; + validTxnList = other954.validTxnList; + invalidationTime = other954.invalidationTime; + __isset = other954.__isset; } -Materialization& Materialization::operator=(const Materialization& other935) { - tablesUsed = other935.tablesUsed; - validTxnList = other935.validTxnList; - invalidationTime = other935.invalidationTime; - __isset = other935.__isset; +Materialization& Materialization::operator=(const Materialization& other955) { + tablesUsed = other955.tablesUsed; + validTxnList = other955.validTxnList; + invalidationTime = other955.invalidationTime; + __isset = other955.__isset; return *this; } void Materialization::printTo(std::ostream& out) const { @@ -22631,9 +23178,9 @@ uint32_t WMResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast936; - xfer += iprot->readI32(ecast936); - this->status = (WMResourcePlanStatus::type)ecast936; + int32_t ecast956; + xfer += iprot->readI32(ecast956); + this->status = (WMResourcePlanStatus::type)ecast956; this->__isset.status = true; } else { xfer += iprot->skip(ftype); @@ -22707,19 +23254,19 @@ void swap(WMResourcePlan &a, WMResourcePlan &b) { swap(a.__isset, b.__isset); } -WMResourcePlan::WMResourcePlan(const WMResourcePlan& other937) { - name = other937.name; - status = other937.status; - queryParallelism = other937.queryParallelism; - defaultPoolPath = other937.defaultPoolPath; - __isset = other937.__isset; +WMResourcePlan::WMResourcePlan(const WMResourcePlan& other957) { + name = other957.name; + status = other957.status; + queryParallelism = other957.queryParallelism; + defaultPoolPath = other957.defaultPoolPath; + __isset = other957.__isset; } -WMResourcePlan& WMResourcePlan::operator=(const WMResourcePlan& other938) { - name = other938.name; - status = other938.status; - queryParallelism = other938.queryParallelism; - defaultPoolPath = other938.defaultPoolPath; - __isset = other938.__isset; +WMResourcePlan& WMResourcePlan::operator=(const WMResourcePlan& other958) { + name = other958.name; + status = other958.status; + queryParallelism = other958.queryParallelism; + defaultPoolPath = other958.defaultPoolPath; + __isset = other958.__isset; return *this; } void WMResourcePlan::printTo(std::ostream& out) const { @@ -22798,9 +23345,9 @@ uint32_t WMNullableResourcePlan::read(::apache::thrift::protocol::TProtocol* ipr break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast939; - xfer += iprot->readI32(ecast939); - this->status = (WMResourcePlanStatus::type)ecast939; + int32_t ecast959; + xfer += iprot->readI32(ecast959); + this->status = (WMResourcePlanStatus::type)ecast959; this->__isset.status = true; } else { xfer += iprot->skip(ftype); @@ -22902,23 +23449,23 @@ void swap(WMNullableResourcePlan &a, WMNullableResourcePlan &b) { swap(a.__isset, b.__isset); } -WMNullableResourcePlan::WMNullableResourcePlan(const WMNullableResourcePlan& other940) { - name = other940.name; - status = other940.status; - queryParallelism = other940.queryParallelism; - isSetQueryParallelism = other940.isSetQueryParallelism; - defaultPoolPath = other940.defaultPoolPath; - isSetDefaultPoolPath = other940.isSetDefaultPoolPath; - __isset = other940.__isset; -} -WMNullableResourcePlan& WMNullableResourcePlan::operator=(const WMNullableResourcePlan& other941) { - name = other941.name; - status = other941.status; - queryParallelism = other941.queryParallelism; - isSetQueryParallelism = other941.isSetQueryParallelism; - defaultPoolPath = other941.defaultPoolPath; - isSetDefaultPoolPath = other941.isSetDefaultPoolPath; - __isset = other941.__isset; +WMNullableResourcePlan::WMNullableResourcePlan(const WMNullableResourcePlan& other960) { + name = other960.name; + status = other960.status; + queryParallelism = other960.queryParallelism; + isSetQueryParallelism = other960.isSetQueryParallelism; + defaultPoolPath = other960.defaultPoolPath; + isSetDefaultPoolPath = other960.isSetDefaultPoolPath; + __isset = other960.__isset; +} +WMNullableResourcePlan& WMNullableResourcePlan::operator=(const WMNullableResourcePlan& other961) { + name = other961.name; + status = other961.status; + queryParallelism = other961.queryParallelism; + isSetQueryParallelism = other961.isSetQueryParallelism; + defaultPoolPath = other961.defaultPoolPath; + isSetDefaultPoolPath = other961.isSetDefaultPoolPath; + __isset = other961.__isset; return *this; } void WMNullableResourcePlan::printTo(std::ostream& out) const { @@ -23083,21 +23630,21 @@ void swap(WMPool &a, WMPool &b) { swap(a.__isset, b.__isset); } -WMPool::WMPool(const WMPool& other942) { - resourcePlanName = other942.resourcePlanName; - poolPath = other942.poolPath; - allocFraction = other942.allocFraction; - queryParallelism = other942.queryParallelism; - schedulingPolicy = other942.schedulingPolicy; - __isset = other942.__isset; -} -WMPool& WMPool::operator=(const WMPool& other943) { - resourcePlanName = other943.resourcePlanName; - poolPath = other943.poolPath; - allocFraction = other943.allocFraction; - queryParallelism = other943.queryParallelism; - schedulingPolicy = other943.schedulingPolicy; - __isset = other943.__isset; +WMPool::WMPool(const WMPool& other962) { + resourcePlanName = other962.resourcePlanName; + poolPath = other962.poolPath; + allocFraction = other962.allocFraction; + queryParallelism = other962.queryParallelism; + schedulingPolicy = other962.schedulingPolicy; + __isset = other962.__isset; +} +WMPool& WMPool::operator=(const WMPool& other963) { + resourcePlanName = other963.resourcePlanName; + poolPath = other963.poolPath; + allocFraction = other963.allocFraction; + queryParallelism = other963.queryParallelism; + schedulingPolicy = other963.schedulingPolicy; + __isset = other963.__isset; return *this; } void WMPool::printTo(std::ostream& out) const { @@ -23280,23 +23827,23 @@ void swap(WMNullablePool &a, WMNullablePool &b) { swap(a.__isset, b.__isset); } -WMNullablePool::WMNullablePool(const WMNullablePool& other944) { - resourcePlanName = other944.resourcePlanName; - poolPath = other944.poolPath; - allocFraction = other944.allocFraction; - queryParallelism = other944.queryParallelism; - schedulingPolicy = other944.schedulingPolicy; - isSetSchedulingPolicy = other944.isSetSchedulingPolicy; - __isset = other944.__isset; -} -WMNullablePool& WMNullablePool::operator=(const WMNullablePool& other945) { - resourcePlanName = other945.resourcePlanName; - poolPath = other945.poolPath; - allocFraction = other945.allocFraction; - queryParallelism = other945.queryParallelism; - schedulingPolicy = other945.schedulingPolicy; - isSetSchedulingPolicy = other945.isSetSchedulingPolicy; - __isset = other945.__isset; +WMNullablePool::WMNullablePool(const WMNullablePool& other964) { + resourcePlanName = other964.resourcePlanName; + poolPath = other964.poolPath; + allocFraction = other964.allocFraction; + queryParallelism = other964.queryParallelism; + schedulingPolicy = other964.schedulingPolicy; + isSetSchedulingPolicy = other964.isSetSchedulingPolicy; + __isset = other964.__isset; +} +WMNullablePool& WMNullablePool::operator=(const WMNullablePool& other965) { + resourcePlanName = other965.resourcePlanName; + poolPath = other965.poolPath; + allocFraction = other965.allocFraction; + queryParallelism = other965.queryParallelism; + schedulingPolicy = other965.schedulingPolicy; + isSetSchedulingPolicy = other965.isSetSchedulingPolicy; + __isset = other965.__isset; return *this; } void WMNullablePool::printTo(std::ostream& out) const { @@ -23461,21 +24008,21 @@ void swap(WMTrigger &a, WMTrigger &b) { swap(a.__isset, b.__isset); } -WMTrigger::WMTrigger(const WMTrigger& other946) { - resourcePlanName = other946.resourcePlanName; - triggerName = other946.triggerName; - triggerExpression = other946.triggerExpression; - actionExpression = other946.actionExpression; - isInUnmanaged = other946.isInUnmanaged; - __isset = other946.__isset; -} -WMTrigger& WMTrigger::operator=(const WMTrigger& other947) { - resourcePlanName = other947.resourcePlanName; - triggerName = other947.triggerName; - triggerExpression = other947.triggerExpression; - actionExpression = other947.actionExpression; - isInUnmanaged = other947.isInUnmanaged; - __isset = other947.__isset; +WMTrigger::WMTrigger(const WMTrigger& other966) { + resourcePlanName = other966.resourcePlanName; + triggerName = other966.triggerName; + triggerExpression = other966.triggerExpression; + actionExpression = other966.actionExpression; + isInUnmanaged = other966.isInUnmanaged; + __isset = other966.__isset; +} +WMTrigger& WMTrigger::operator=(const WMTrigger& other967) { + resourcePlanName = other967.resourcePlanName; + triggerName = other967.triggerName; + triggerExpression = other967.triggerExpression; + actionExpression = other967.actionExpression; + isInUnmanaged = other967.isInUnmanaged; + __isset = other967.__isset; return *this; } void WMTrigger::printTo(std::ostream& out) const { @@ -23640,21 +24187,21 @@ void swap(WMMapping &a, WMMapping &b) { swap(a.__isset, b.__isset); } -WMMapping::WMMapping(const WMMapping& other948) { - resourcePlanName = other948.resourcePlanName; - entityType = other948.entityType; - entityName = other948.entityName; - poolPath = other948.poolPath; - ordering = other948.ordering; - __isset = other948.__isset; -} -WMMapping& WMMapping::operator=(const WMMapping& other949) { - resourcePlanName = other949.resourcePlanName; - entityType = other949.entityType; - entityName = other949.entityName; - poolPath = other949.poolPath; - ordering = other949.ordering; - __isset = other949.__isset; +WMMapping::WMMapping(const WMMapping& other968) { + resourcePlanName = other968.resourcePlanName; + entityType = other968.entityType; + entityName = other968.entityName; + poolPath = other968.poolPath; + ordering = other968.ordering; + __isset = other968.__isset; +} +WMMapping& WMMapping::operator=(const WMMapping& other969) { + resourcePlanName = other969.resourcePlanName; + entityType = other969.entityType; + entityName = other969.entityName; + poolPath = other969.poolPath; + ordering = other969.ordering; + __isset = other969.__isset; return *this; } void WMMapping::printTo(std::ostream& out) const { @@ -23760,13 +24307,13 @@ void swap(WMPoolTrigger &a, WMPoolTrigger &b) { swap(a.trigger, b.trigger); } -WMPoolTrigger::WMPoolTrigger(const WMPoolTrigger& other950) { - pool = other950.pool; - trigger = other950.trigger; +WMPoolTrigger::WMPoolTrigger(const WMPoolTrigger& other970) { + pool = other970.pool; + trigger = other970.trigger; } -WMPoolTrigger& WMPoolTrigger::operator=(const WMPoolTrigger& other951) { - pool = other951.pool; - trigger = other951.trigger; +WMPoolTrigger& WMPoolTrigger::operator=(const WMPoolTrigger& other971) { + pool = other971.pool; + trigger = other971.trigger; return *this; } void WMPoolTrigger::printTo(std::ostream& out) const { @@ -23840,14 +24387,14 @@ uint32_t WMFullResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->pools.clear(); - uint32_t _size952; - ::apache::thrift::protocol::TType _etype955; - xfer += iprot->readListBegin(_etype955, _size952); - this->pools.resize(_size952); - uint32_t _i956; - for (_i956 = 0; _i956 < _size952; ++_i956) + uint32_t _size972; + ::apache::thrift::protocol::TType _etype975; + xfer += iprot->readListBegin(_etype975, _size972); + this->pools.resize(_size972); + uint32_t _i976; + for (_i976 = 0; _i976 < _size972; ++_i976) { - xfer += this->pools[_i956].read(iprot); + xfer += this->pools[_i976].read(iprot); } xfer += iprot->readListEnd(); } @@ -23860,14 +24407,14 @@ uint32_t WMFullResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->mappings.clear(); - uint32_t _size957; - ::apache::thrift::protocol::TType _etype960; - xfer += iprot->readListBegin(_etype960, _size957); - this->mappings.resize(_size957); - uint32_t _i961; - for (_i961 = 0; _i961 < _size957; ++_i961) + uint32_t _size977; + ::apache::thrift::protocol::TType _etype980; + xfer += iprot->readListBegin(_etype980, _size977); + this->mappings.resize(_size977); + uint32_t _i981; + for (_i981 = 0; _i981 < _size977; ++_i981) { - xfer += this->mappings[_i961].read(iprot); + xfer += this->mappings[_i981].read(iprot); } xfer += iprot->readListEnd(); } @@ -23880,14 +24427,14 @@ uint32_t WMFullResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->triggers.clear(); - uint32_t _size962; - ::apache::thrift::protocol::TType _etype965; - xfer += iprot->readListBegin(_etype965, _size962); - this->triggers.resize(_size962); - uint32_t _i966; - for (_i966 = 0; _i966 < _size962; ++_i966) + uint32_t _size982; + ::apache::thrift::protocol::TType _etype985; + xfer += iprot->readListBegin(_etype985, _size982); + this->triggers.resize(_size982); + uint32_t _i986; + for (_i986 = 0; _i986 < _size982; ++_i986) { - xfer += this->triggers[_i966].read(iprot); + xfer += this->triggers[_i986].read(iprot); } xfer += iprot->readListEnd(); } @@ -23900,14 +24447,14 @@ uint32_t WMFullResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->poolTriggers.clear(); - uint32_t _size967; - ::apache::thrift::protocol::TType _etype970; - xfer += iprot->readListBegin(_etype970, _size967); - this->poolTriggers.resize(_size967); - uint32_t _i971; - for (_i971 = 0; _i971 < _size967; ++_i971) + uint32_t _size987; + ::apache::thrift::protocol::TType _etype990; + xfer += iprot->readListBegin(_etype990, _size987); + this->poolTriggers.resize(_size987); + uint32_t _i991; + for (_i991 = 0; _i991 < _size987; ++_i991) { - xfer += this->poolTriggers[_i971].read(iprot); + xfer += this->poolTriggers[_i991].read(iprot); } xfer += iprot->readListEnd(); } @@ -23944,10 +24491,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 _iter972; - for (_iter972 = this->pools.begin(); _iter972 != this->pools.end(); ++_iter972) + std::vector ::const_iterator _iter992; + for (_iter992 = this->pools.begin(); _iter992 != this->pools.end(); ++_iter992) { - xfer += (*_iter972).write(oprot); + xfer += (*_iter992).write(oprot); } xfer += oprot->writeListEnd(); } @@ -23957,10 +24504,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 _iter973; - for (_iter973 = this->mappings.begin(); _iter973 != this->mappings.end(); ++_iter973) + std::vector ::const_iterator _iter993; + for (_iter993 = this->mappings.begin(); _iter993 != this->mappings.end(); ++_iter993) { - xfer += (*_iter973).write(oprot); + xfer += (*_iter993).write(oprot); } xfer += oprot->writeListEnd(); } @@ -23970,10 +24517,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 _iter974; - for (_iter974 = this->triggers.begin(); _iter974 != this->triggers.end(); ++_iter974) + std::vector ::const_iterator _iter994; + for (_iter994 = this->triggers.begin(); _iter994 != this->triggers.end(); ++_iter994) { - xfer += (*_iter974).write(oprot); + xfer += (*_iter994).write(oprot); } xfer += oprot->writeListEnd(); } @@ -23983,10 +24530,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 _iter975; - for (_iter975 = this->poolTriggers.begin(); _iter975 != this->poolTriggers.end(); ++_iter975) + std::vector ::const_iterator _iter995; + for (_iter995 = this->poolTriggers.begin(); _iter995 != this->poolTriggers.end(); ++_iter995) { - xfer += (*_iter975).write(oprot); + xfer += (*_iter995).write(oprot); } xfer += oprot->writeListEnd(); } @@ -24007,21 +24554,21 @@ void swap(WMFullResourcePlan &a, WMFullResourcePlan &b) { swap(a.__isset, b.__isset); } -WMFullResourcePlan::WMFullResourcePlan(const WMFullResourcePlan& other976) { - plan = other976.plan; - pools = other976.pools; - mappings = other976.mappings; - triggers = other976.triggers; - poolTriggers = other976.poolTriggers; - __isset = other976.__isset; -} -WMFullResourcePlan& WMFullResourcePlan::operator=(const WMFullResourcePlan& other977) { - plan = other977.plan; - pools = other977.pools; - mappings = other977.mappings; - triggers = other977.triggers; - poolTriggers = other977.poolTriggers; - __isset = other977.__isset; +WMFullResourcePlan::WMFullResourcePlan(const WMFullResourcePlan& other996) { + plan = other996.plan; + pools = other996.pools; + mappings = other996.mappings; + triggers = other996.triggers; + poolTriggers = other996.poolTriggers; + __isset = other996.__isset; +} +WMFullResourcePlan& WMFullResourcePlan::operator=(const WMFullResourcePlan& other997) { + plan = other997.plan; + pools = other997.pools; + mappings = other997.mappings; + triggers = other997.triggers; + poolTriggers = other997.poolTriggers; + __isset = other997.__isset; return *this; } void WMFullResourcePlan::printTo(std::ostream& out) const { @@ -24126,15 +24673,15 @@ void swap(WMCreateResourcePlanRequest &a, WMCreateResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMCreateResourcePlanRequest::WMCreateResourcePlanRequest(const WMCreateResourcePlanRequest& other978) { - resourcePlan = other978.resourcePlan; - copyFrom = other978.copyFrom; - __isset = other978.__isset; +WMCreateResourcePlanRequest::WMCreateResourcePlanRequest(const WMCreateResourcePlanRequest& other998) { + resourcePlan = other998.resourcePlan; + copyFrom = other998.copyFrom; + __isset = other998.__isset; } -WMCreateResourcePlanRequest& WMCreateResourcePlanRequest::operator=(const WMCreateResourcePlanRequest& other979) { - resourcePlan = other979.resourcePlan; - copyFrom = other979.copyFrom; - __isset = other979.__isset; +WMCreateResourcePlanRequest& WMCreateResourcePlanRequest::operator=(const WMCreateResourcePlanRequest& other999) { + resourcePlan = other999.resourcePlan; + copyFrom = other999.copyFrom; + __isset = other999.__isset; return *this; } void WMCreateResourcePlanRequest::printTo(std::ostream& out) const { @@ -24194,11 +24741,11 @@ void swap(WMCreateResourcePlanResponse &a, WMCreateResourcePlanResponse &b) { (void) b; } -WMCreateResourcePlanResponse::WMCreateResourcePlanResponse(const WMCreateResourcePlanResponse& other980) { - (void) other980; +WMCreateResourcePlanResponse::WMCreateResourcePlanResponse(const WMCreateResourcePlanResponse& other1000) { + (void) other1000; } -WMCreateResourcePlanResponse& WMCreateResourcePlanResponse::operator=(const WMCreateResourcePlanResponse& other981) { - (void) other981; +WMCreateResourcePlanResponse& WMCreateResourcePlanResponse::operator=(const WMCreateResourcePlanResponse& other1001) { + (void) other1001; return *this; } void WMCreateResourcePlanResponse::printTo(std::ostream& out) const { @@ -24256,11 +24803,11 @@ void swap(WMGetActiveResourcePlanRequest &a, WMGetActiveResourcePlanRequest &b) (void) b; } -WMGetActiveResourcePlanRequest::WMGetActiveResourcePlanRequest(const WMGetActiveResourcePlanRequest& other982) { - (void) other982; +WMGetActiveResourcePlanRequest::WMGetActiveResourcePlanRequest(const WMGetActiveResourcePlanRequest& other1002) { + (void) other1002; } -WMGetActiveResourcePlanRequest& WMGetActiveResourcePlanRequest::operator=(const WMGetActiveResourcePlanRequest& other983) { - (void) other983; +WMGetActiveResourcePlanRequest& WMGetActiveResourcePlanRequest::operator=(const WMGetActiveResourcePlanRequest& other1003) { + (void) other1003; return *this; } void WMGetActiveResourcePlanRequest::printTo(std::ostream& out) const { @@ -24341,13 +24888,13 @@ void swap(WMGetActiveResourcePlanResponse &a, WMGetActiveResourcePlanResponse &b swap(a.__isset, b.__isset); } -WMGetActiveResourcePlanResponse::WMGetActiveResourcePlanResponse(const WMGetActiveResourcePlanResponse& other984) { - resourcePlan = other984.resourcePlan; - __isset = other984.__isset; +WMGetActiveResourcePlanResponse::WMGetActiveResourcePlanResponse(const WMGetActiveResourcePlanResponse& other1004) { + resourcePlan = other1004.resourcePlan; + __isset = other1004.__isset; } -WMGetActiveResourcePlanResponse& WMGetActiveResourcePlanResponse::operator=(const WMGetActiveResourcePlanResponse& other985) { - resourcePlan = other985.resourcePlan; - __isset = other985.__isset; +WMGetActiveResourcePlanResponse& WMGetActiveResourcePlanResponse::operator=(const WMGetActiveResourcePlanResponse& other1005) { + resourcePlan = other1005.resourcePlan; + __isset = other1005.__isset; return *this; } void WMGetActiveResourcePlanResponse::printTo(std::ostream& out) const { @@ -24429,13 +24976,13 @@ void swap(WMGetResourcePlanRequest &a, WMGetResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMGetResourcePlanRequest::WMGetResourcePlanRequest(const WMGetResourcePlanRequest& other986) { - resourcePlanName = other986.resourcePlanName; - __isset = other986.__isset; +WMGetResourcePlanRequest::WMGetResourcePlanRequest(const WMGetResourcePlanRequest& other1006) { + resourcePlanName = other1006.resourcePlanName; + __isset = other1006.__isset; } -WMGetResourcePlanRequest& WMGetResourcePlanRequest::operator=(const WMGetResourcePlanRequest& other987) { - resourcePlanName = other987.resourcePlanName; - __isset = other987.__isset; +WMGetResourcePlanRequest& WMGetResourcePlanRequest::operator=(const WMGetResourcePlanRequest& other1007) { + resourcePlanName = other1007.resourcePlanName; + __isset = other1007.__isset; return *this; } void WMGetResourcePlanRequest::printTo(std::ostream& out) const { @@ -24517,13 +25064,13 @@ void swap(WMGetResourcePlanResponse &a, WMGetResourcePlanResponse &b) { swap(a.__isset, b.__isset); } -WMGetResourcePlanResponse::WMGetResourcePlanResponse(const WMGetResourcePlanResponse& other988) { - resourcePlan = other988.resourcePlan; - __isset = other988.__isset; +WMGetResourcePlanResponse::WMGetResourcePlanResponse(const WMGetResourcePlanResponse& other1008) { + resourcePlan = other1008.resourcePlan; + __isset = other1008.__isset; } -WMGetResourcePlanResponse& WMGetResourcePlanResponse::operator=(const WMGetResourcePlanResponse& other989) { - resourcePlan = other989.resourcePlan; - __isset = other989.__isset; +WMGetResourcePlanResponse& WMGetResourcePlanResponse::operator=(const WMGetResourcePlanResponse& other1009) { + resourcePlan = other1009.resourcePlan; + __isset = other1009.__isset; return *this; } void WMGetResourcePlanResponse::printTo(std::ostream& out) const { @@ -24582,11 +25129,11 @@ void swap(WMGetAllResourcePlanRequest &a, WMGetAllResourcePlanRequest &b) { (void) b; } -WMGetAllResourcePlanRequest::WMGetAllResourcePlanRequest(const WMGetAllResourcePlanRequest& other990) { - (void) other990; +WMGetAllResourcePlanRequest::WMGetAllResourcePlanRequest(const WMGetAllResourcePlanRequest& other1010) { + (void) other1010; } -WMGetAllResourcePlanRequest& WMGetAllResourcePlanRequest::operator=(const WMGetAllResourcePlanRequest& other991) { - (void) other991; +WMGetAllResourcePlanRequest& WMGetAllResourcePlanRequest::operator=(const WMGetAllResourcePlanRequest& other1011) { + (void) other1011; return *this; } void WMGetAllResourcePlanRequest::printTo(std::ostream& out) const { @@ -24630,14 +25177,14 @@ uint32_t WMGetAllResourcePlanResponse::read(::apache::thrift::protocol::TProtoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->resourcePlans.clear(); - uint32_t _size992; - ::apache::thrift::protocol::TType _etype995; - xfer += iprot->readListBegin(_etype995, _size992); - this->resourcePlans.resize(_size992); - uint32_t _i996; - for (_i996 = 0; _i996 < _size992; ++_i996) + uint32_t _size1012; + ::apache::thrift::protocol::TType _etype1015; + xfer += iprot->readListBegin(_etype1015, _size1012); + this->resourcePlans.resize(_size1012); + uint32_t _i1016; + for (_i1016 = 0; _i1016 < _size1012; ++_i1016) { - xfer += this->resourcePlans[_i996].read(iprot); + xfer += this->resourcePlans[_i1016].read(iprot); } xfer += iprot->readListEnd(); } @@ -24667,10 +25214,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 _iter997; - for (_iter997 = this->resourcePlans.begin(); _iter997 != this->resourcePlans.end(); ++_iter997) + std::vector ::const_iterator _iter1017; + for (_iter1017 = this->resourcePlans.begin(); _iter1017 != this->resourcePlans.end(); ++_iter1017) { - xfer += (*_iter997).write(oprot); + xfer += (*_iter1017).write(oprot); } xfer += oprot->writeListEnd(); } @@ -24687,13 +25234,13 @@ void swap(WMGetAllResourcePlanResponse &a, WMGetAllResourcePlanResponse &b) { swap(a.__isset, b.__isset); } -WMGetAllResourcePlanResponse::WMGetAllResourcePlanResponse(const WMGetAllResourcePlanResponse& other998) { - resourcePlans = other998.resourcePlans; - __isset = other998.__isset; +WMGetAllResourcePlanResponse::WMGetAllResourcePlanResponse(const WMGetAllResourcePlanResponse& other1018) { + resourcePlans = other1018.resourcePlans; + __isset = other1018.__isset; } -WMGetAllResourcePlanResponse& WMGetAllResourcePlanResponse::operator=(const WMGetAllResourcePlanResponse& other999) { - resourcePlans = other999.resourcePlans; - __isset = other999.__isset; +WMGetAllResourcePlanResponse& WMGetAllResourcePlanResponse::operator=(const WMGetAllResourcePlanResponse& other1019) { + resourcePlans = other1019.resourcePlans; + __isset = other1019.__isset; return *this; } void WMGetAllResourcePlanResponse::printTo(std::ostream& out) const { @@ -24851,21 +25398,21 @@ void swap(WMAlterResourcePlanRequest &a, WMAlterResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMAlterResourcePlanRequest::WMAlterResourcePlanRequest(const WMAlterResourcePlanRequest& other1000) { - resourcePlanName = other1000.resourcePlanName; - resourcePlan = other1000.resourcePlan; - isEnableAndActivate = other1000.isEnableAndActivate; - isForceDeactivate = other1000.isForceDeactivate; - isReplace = other1000.isReplace; - __isset = other1000.__isset; -} -WMAlterResourcePlanRequest& WMAlterResourcePlanRequest::operator=(const WMAlterResourcePlanRequest& other1001) { - resourcePlanName = other1001.resourcePlanName; - resourcePlan = other1001.resourcePlan; - isEnableAndActivate = other1001.isEnableAndActivate; - isForceDeactivate = other1001.isForceDeactivate; - isReplace = other1001.isReplace; - __isset = other1001.__isset; +WMAlterResourcePlanRequest::WMAlterResourcePlanRequest(const WMAlterResourcePlanRequest& other1020) { + resourcePlanName = other1020.resourcePlanName; + resourcePlan = other1020.resourcePlan; + isEnableAndActivate = other1020.isEnableAndActivate; + isForceDeactivate = other1020.isForceDeactivate; + isReplace = other1020.isReplace; + __isset = other1020.__isset; +} +WMAlterResourcePlanRequest& WMAlterResourcePlanRequest::operator=(const WMAlterResourcePlanRequest& other1021) { + resourcePlanName = other1021.resourcePlanName; + resourcePlan = other1021.resourcePlan; + isEnableAndActivate = other1021.isEnableAndActivate; + isForceDeactivate = other1021.isForceDeactivate; + isReplace = other1021.isReplace; + __isset = other1021.__isset; return *this; } void WMAlterResourcePlanRequest::printTo(std::ostream& out) const { @@ -24951,13 +25498,13 @@ void swap(WMAlterResourcePlanResponse &a, WMAlterResourcePlanResponse &b) { swap(a.__isset, b.__isset); } -WMAlterResourcePlanResponse::WMAlterResourcePlanResponse(const WMAlterResourcePlanResponse& other1002) { - fullResourcePlan = other1002.fullResourcePlan; - __isset = other1002.__isset; +WMAlterResourcePlanResponse::WMAlterResourcePlanResponse(const WMAlterResourcePlanResponse& other1022) { + fullResourcePlan = other1022.fullResourcePlan; + __isset = other1022.__isset; } -WMAlterResourcePlanResponse& WMAlterResourcePlanResponse::operator=(const WMAlterResourcePlanResponse& other1003) { - fullResourcePlan = other1003.fullResourcePlan; - __isset = other1003.__isset; +WMAlterResourcePlanResponse& WMAlterResourcePlanResponse::operator=(const WMAlterResourcePlanResponse& other1023) { + fullResourcePlan = other1023.fullResourcePlan; + __isset = other1023.__isset; return *this; } void WMAlterResourcePlanResponse::printTo(std::ostream& out) const { @@ -25039,13 +25586,13 @@ void swap(WMValidateResourcePlanRequest &a, WMValidateResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMValidateResourcePlanRequest::WMValidateResourcePlanRequest(const WMValidateResourcePlanRequest& other1004) { - resourcePlanName = other1004.resourcePlanName; - __isset = other1004.__isset; +WMValidateResourcePlanRequest::WMValidateResourcePlanRequest(const WMValidateResourcePlanRequest& other1024) { + resourcePlanName = other1024.resourcePlanName; + __isset = other1024.__isset; } -WMValidateResourcePlanRequest& WMValidateResourcePlanRequest::operator=(const WMValidateResourcePlanRequest& other1005) { - resourcePlanName = other1005.resourcePlanName; - __isset = other1005.__isset; +WMValidateResourcePlanRequest& WMValidateResourcePlanRequest::operator=(const WMValidateResourcePlanRequest& other1025) { + resourcePlanName = other1025.resourcePlanName; + __isset = other1025.__isset; return *this; } void WMValidateResourcePlanRequest::printTo(std::ostream& out) const { @@ -25095,14 +25642,14 @@ uint32_t WMValidateResourcePlanResponse::read(::apache::thrift::protocol::TProto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->errors.clear(); - uint32_t _size1006; - ::apache::thrift::protocol::TType _etype1009; - xfer += iprot->readListBegin(_etype1009, _size1006); - this->errors.resize(_size1006); - uint32_t _i1010; - for (_i1010 = 0; _i1010 < _size1006; ++_i1010) + uint32_t _size1026; + ::apache::thrift::protocol::TType _etype1029; + xfer += iprot->readListBegin(_etype1029, _size1026); + this->errors.resize(_size1026); + uint32_t _i1030; + for (_i1030 = 0; _i1030 < _size1026; ++_i1030) { - xfer += iprot->readString(this->errors[_i1010]); + xfer += iprot->readString(this->errors[_i1030]); } xfer += iprot->readListEnd(); } @@ -25115,14 +25662,14 @@ uint32_t WMValidateResourcePlanResponse::read(::apache::thrift::protocol::TProto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->warnings.clear(); - uint32_t _size1011; - ::apache::thrift::protocol::TType _etype1014; - xfer += iprot->readListBegin(_etype1014, _size1011); - this->warnings.resize(_size1011); - uint32_t _i1015; - for (_i1015 = 0; _i1015 < _size1011; ++_i1015) + uint32_t _size1031; + ::apache::thrift::protocol::TType _etype1034; + xfer += iprot->readListBegin(_etype1034, _size1031); + this->warnings.resize(_size1031); + uint32_t _i1035; + for (_i1035 = 0; _i1035 < _size1031; ++_i1035) { - xfer += iprot->readString(this->warnings[_i1015]); + xfer += iprot->readString(this->warnings[_i1035]); } xfer += iprot->readListEnd(); } @@ -25152,10 +25699,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 _iter1016; - for (_iter1016 = this->errors.begin(); _iter1016 != this->errors.end(); ++_iter1016) + std::vector ::const_iterator _iter1036; + for (_iter1036 = this->errors.begin(); _iter1036 != this->errors.end(); ++_iter1036) { - xfer += oprot->writeString((*_iter1016)); + xfer += oprot->writeString((*_iter1036)); } xfer += oprot->writeListEnd(); } @@ -25165,10 +25712,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 _iter1017; - for (_iter1017 = this->warnings.begin(); _iter1017 != this->warnings.end(); ++_iter1017) + std::vector ::const_iterator _iter1037; + for (_iter1037 = this->warnings.begin(); _iter1037 != this->warnings.end(); ++_iter1037) { - xfer += oprot->writeString((*_iter1017)); + xfer += oprot->writeString((*_iter1037)); } xfer += oprot->writeListEnd(); } @@ -25186,15 +25733,15 @@ void swap(WMValidateResourcePlanResponse &a, WMValidateResourcePlanResponse &b) swap(a.__isset, b.__isset); } -WMValidateResourcePlanResponse::WMValidateResourcePlanResponse(const WMValidateResourcePlanResponse& other1018) { - errors = other1018.errors; - warnings = other1018.warnings; - __isset = other1018.__isset; +WMValidateResourcePlanResponse::WMValidateResourcePlanResponse(const WMValidateResourcePlanResponse& other1038) { + errors = other1038.errors; + warnings = other1038.warnings; + __isset = other1038.__isset; } -WMValidateResourcePlanResponse& WMValidateResourcePlanResponse::operator=(const WMValidateResourcePlanResponse& other1019) { - errors = other1019.errors; - warnings = other1019.warnings; - __isset = other1019.__isset; +WMValidateResourcePlanResponse& WMValidateResourcePlanResponse::operator=(const WMValidateResourcePlanResponse& other1039) { + errors = other1039.errors; + warnings = other1039.warnings; + __isset = other1039.__isset; return *this; } void WMValidateResourcePlanResponse::printTo(std::ostream& out) const { @@ -25277,13 +25824,13 @@ void swap(WMDropResourcePlanRequest &a, WMDropResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMDropResourcePlanRequest::WMDropResourcePlanRequest(const WMDropResourcePlanRequest& other1020) { - resourcePlanName = other1020.resourcePlanName; - __isset = other1020.__isset; +WMDropResourcePlanRequest::WMDropResourcePlanRequest(const WMDropResourcePlanRequest& other1040) { + resourcePlanName = other1040.resourcePlanName; + __isset = other1040.__isset; } -WMDropResourcePlanRequest& WMDropResourcePlanRequest::operator=(const WMDropResourcePlanRequest& other1021) { - resourcePlanName = other1021.resourcePlanName; - __isset = other1021.__isset; +WMDropResourcePlanRequest& WMDropResourcePlanRequest::operator=(const WMDropResourcePlanRequest& other1041) { + resourcePlanName = other1041.resourcePlanName; + __isset = other1041.__isset; return *this; } void WMDropResourcePlanRequest::printTo(std::ostream& out) const { @@ -25342,11 +25889,11 @@ void swap(WMDropResourcePlanResponse &a, WMDropResourcePlanResponse &b) { (void) b; } -WMDropResourcePlanResponse::WMDropResourcePlanResponse(const WMDropResourcePlanResponse& other1022) { - (void) other1022; +WMDropResourcePlanResponse::WMDropResourcePlanResponse(const WMDropResourcePlanResponse& other1042) { + (void) other1042; } -WMDropResourcePlanResponse& WMDropResourcePlanResponse::operator=(const WMDropResourcePlanResponse& other1023) { - (void) other1023; +WMDropResourcePlanResponse& WMDropResourcePlanResponse::operator=(const WMDropResourcePlanResponse& other1043) { + (void) other1043; return *this; } void WMDropResourcePlanResponse::printTo(std::ostream& out) const { @@ -25427,13 +25974,13 @@ void swap(WMCreateTriggerRequest &a, WMCreateTriggerRequest &b) { swap(a.__isset, b.__isset); } -WMCreateTriggerRequest::WMCreateTriggerRequest(const WMCreateTriggerRequest& other1024) { - trigger = other1024.trigger; - __isset = other1024.__isset; +WMCreateTriggerRequest::WMCreateTriggerRequest(const WMCreateTriggerRequest& other1044) { + trigger = other1044.trigger; + __isset = other1044.__isset; } -WMCreateTriggerRequest& WMCreateTriggerRequest::operator=(const WMCreateTriggerRequest& other1025) { - trigger = other1025.trigger; - __isset = other1025.__isset; +WMCreateTriggerRequest& WMCreateTriggerRequest::operator=(const WMCreateTriggerRequest& other1045) { + trigger = other1045.trigger; + __isset = other1045.__isset; return *this; } void WMCreateTriggerRequest::printTo(std::ostream& out) const { @@ -25492,11 +26039,11 @@ void swap(WMCreateTriggerResponse &a, WMCreateTriggerResponse &b) { (void) b; } -WMCreateTriggerResponse::WMCreateTriggerResponse(const WMCreateTriggerResponse& other1026) { - (void) other1026; +WMCreateTriggerResponse::WMCreateTriggerResponse(const WMCreateTriggerResponse& other1046) { + (void) other1046; } -WMCreateTriggerResponse& WMCreateTriggerResponse::operator=(const WMCreateTriggerResponse& other1027) { - (void) other1027; +WMCreateTriggerResponse& WMCreateTriggerResponse::operator=(const WMCreateTriggerResponse& other1047) { + (void) other1047; return *this; } void WMCreateTriggerResponse::printTo(std::ostream& out) const { @@ -25577,13 +26124,13 @@ void swap(WMAlterTriggerRequest &a, WMAlterTriggerRequest &b) { swap(a.__isset, b.__isset); } -WMAlterTriggerRequest::WMAlterTriggerRequest(const WMAlterTriggerRequest& other1028) { - trigger = other1028.trigger; - __isset = other1028.__isset; +WMAlterTriggerRequest::WMAlterTriggerRequest(const WMAlterTriggerRequest& other1048) { + trigger = other1048.trigger; + __isset = other1048.__isset; } -WMAlterTriggerRequest& WMAlterTriggerRequest::operator=(const WMAlterTriggerRequest& other1029) { - trigger = other1029.trigger; - __isset = other1029.__isset; +WMAlterTriggerRequest& WMAlterTriggerRequest::operator=(const WMAlterTriggerRequest& other1049) { + trigger = other1049.trigger; + __isset = other1049.__isset; return *this; } void WMAlterTriggerRequest::printTo(std::ostream& out) const { @@ -25642,11 +26189,11 @@ void swap(WMAlterTriggerResponse &a, WMAlterTriggerResponse &b) { (void) b; } -WMAlterTriggerResponse::WMAlterTriggerResponse(const WMAlterTriggerResponse& other1030) { - (void) other1030; +WMAlterTriggerResponse::WMAlterTriggerResponse(const WMAlterTriggerResponse& other1050) { + (void) other1050; } -WMAlterTriggerResponse& WMAlterTriggerResponse::operator=(const WMAlterTriggerResponse& other1031) { - (void) other1031; +WMAlterTriggerResponse& WMAlterTriggerResponse::operator=(const WMAlterTriggerResponse& other1051) { + (void) other1051; return *this; } void WMAlterTriggerResponse::printTo(std::ostream& out) const { @@ -25746,15 +26293,15 @@ void swap(WMDropTriggerRequest &a, WMDropTriggerRequest &b) { swap(a.__isset, b.__isset); } -WMDropTriggerRequest::WMDropTriggerRequest(const WMDropTriggerRequest& other1032) { - resourcePlanName = other1032.resourcePlanName; - triggerName = other1032.triggerName; - __isset = other1032.__isset; +WMDropTriggerRequest::WMDropTriggerRequest(const WMDropTriggerRequest& other1052) { + resourcePlanName = other1052.resourcePlanName; + triggerName = other1052.triggerName; + __isset = other1052.__isset; } -WMDropTriggerRequest& WMDropTriggerRequest::operator=(const WMDropTriggerRequest& other1033) { - resourcePlanName = other1033.resourcePlanName; - triggerName = other1033.triggerName; - __isset = other1033.__isset; +WMDropTriggerRequest& WMDropTriggerRequest::operator=(const WMDropTriggerRequest& other1053) { + resourcePlanName = other1053.resourcePlanName; + triggerName = other1053.triggerName; + __isset = other1053.__isset; return *this; } void WMDropTriggerRequest::printTo(std::ostream& out) const { @@ -25814,11 +26361,11 @@ void swap(WMDropTriggerResponse &a, WMDropTriggerResponse &b) { (void) b; } -WMDropTriggerResponse::WMDropTriggerResponse(const WMDropTriggerResponse& other1034) { - (void) other1034; +WMDropTriggerResponse::WMDropTriggerResponse(const WMDropTriggerResponse& other1054) { + (void) other1054; } -WMDropTriggerResponse& WMDropTriggerResponse::operator=(const WMDropTriggerResponse& other1035) { - (void) other1035; +WMDropTriggerResponse& WMDropTriggerResponse::operator=(const WMDropTriggerResponse& other1055) { + (void) other1055; return *this; } void WMDropTriggerResponse::printTo(std::ostream& out) const { @@ -25899,13 +26446,13 @@ void swap(WMGetTriggersForResourePlanRequest &a, WMGetTriggersForResourePlanRequ swap(a.__isset, b.__isset); } -WMGetTriggersForResourePlanRequest::WMGetTriggersForResourePlanRequest(const WMGetTriggersForResourePlanRequest& other1036) { - resourcePlanName = other1036.resourcePlanName; - __isset = other1036.__isset; +WMGetTriggersForResourePlanRequest::WMGetTriggersForResourePlanRequest(const WMGetTriggersForResourePlanRequest& other1056) { + resourcePlanName = other1056.resourcePlanName; + __isset = other1056.__isset; } -WMGetTriggersForResourePlanRequest& WMGetTriggersForResourePlanRequest::operator=(const WMGetTriggersForResourePlanRequest& other1037) { - resourcePlanName = other1037.resourcePlanName; - __isset = other1037.__isset; +WMGetTriggersForResourePlanRequest& WMGetTriggersForResourePlanRequest::operator=(const WMGetTriggersForResourePlanRequest& other1057) { + resourcePlanName = other1057.resourcePlanName; + __isset = other1057.__isset; return *this; } void WMGetTriggersForResourePlanRequest::printTo(std::ostream& out) const { @@ -25950,14 +26497,14 @@ uint32_t WMGetTriggersForResourePlanResponse::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { this->triggers.clear(); - uint32_t _size1038; - ::apache::thrift::protocol::TType _etype1041; - xfer += iprot->readListBegin(_etype1041, _size1038); - this->triggers.resize(_size1038); - uint32_t _i1042; - for (_i1042 = 0; _i1042 < _size1038; ++_i1042) + uint32_t _size1058; + ::apache::thrift::protocol::TType _etype1061; + xfer += iprot->readListBegin(_etype1061, _size1058); + this->triggers.resize(_size1058); + uint32_t _i1062; + for (_i1062 = 0; _i1062 < _size1058; ++_i1062) { - xfer += this->triggers[_i1042].read(iprot); + xfer += this->triggers[_i1062].read(iprot); } xfer += iprot->readListEnd(); } @@ -25987,10 +26534,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 _iter1043; - for (_iter1043 = this->triggers.begin(); _iter1043 != this->triggers.end(); ++_iter1043) + std::vector ::const_iterator _iter1063; + for (_iter1063 = this->triggers.begin(); _iter1063 != this->triggers.end(); ++_iter1063) { - xfer += (*_iter1043).write(oprot); + xfer += (*_iter1063).write(oprot); } xfer += oprot->writeListEnd(); } @@ -26007,13 +26554,13 @@ void swap(WMGetTriggersForResourePlanResponse &a, WMGetTriggersForResourePlanRes swap(a.__isset, b.__isset); } -WMGetTriggersForResourePlanResponse::WMGetTriggersForResourePlanResponse(const WMGetTriggersForResourePlanResponse& other1044) { - triggers = other1044.triggers; - __isset = other1044.__isset; +WMGetTriggersForResourePlanResponse::WMGetTriggersForResourePlanResponse(const WMGetTriggersForResourePlanResponse& other1064) { + triggers = other1064.triggers; + __isset = other1064.__isset; } -WMGetTriggersForResourePlanResponse& WMGetTriggersForResourePlanResponse::operator=(const WMGetTriggersForResourePlanResponse& other1045) { - triggers = other1045.triggers; - __isset = other1045.__isset; +WMGetTriggersForResourePlanResponse& WMGetTriggersForResourePlanResponse::operator=(const WMGetTriggersForResourePlanResponse& other1065) { + triggers = other1065.triggers; + __isset = other1065.__isset; return *this; } void WMGetTriggersForResourePlanResponse::printTo(std::ostream& out) const { @@ -26095,13 +26642,13 @@ void swap(WMCreatePoolRequest &a, WMCreatePoolRequest &b) { swap(a.__isset, b.__isset); } -WMCreatePoolRequest::WMCreatePoolRequest(const WMCreatePoolRequest& other1046) { - pool = other1046.pool; - __isset = other1046.__isset; +WMCreatePoolRequest::WMCreatePoolRequest(const WMCreatePoolRequest& other1066) { + pool = other1066.pool; + __isset = other1066.__isset; } -WMCreatePoolRequest& WMCreatePoolRequest::operator=(const WMCreatePoolRequest& other1047) { - pool = other1047.pool; - __isset = other1047.__isset; +WMCreatePoolRequest& WMCreatePoolRequest::operator=(const WMCreatePoolRequest& other1067) { + pool = other1067.pool; + __isset = other1067.__isset; return *this; } void WMCreatePoolRequest::printTo(std::ostream& out) const { @@ -26160,11 +26707,11 @@ void swap(WMCreatePoolResponse &a, WMCreatePoolResponse &b) { (void) b; } -WMCreatePoolResponse::WMCreatePoolResponse(const WMCreatePoolResponse& other1048) { - (void) other1048; +WMCreatePoolResponse::WMCreatePoolResponse(const WMCreatePoolResponse& other1068) { + (void) other1068; } -WMCreatePoolResponse& WMCreatePoolResponse::operator=(const WMCreatePoolResponse& other1049) { - (void) other1049; +WMCreatePoolResponse& WMCreatePoolResponse::operator=(const WMCreatePoolResponse& other1069) { + (void) other1069; return *this; } void WMCreatePoolResponse::printTo(std::ostream& out) const { @@ -26264,15 +26811,15 @@ void swap(WMAlterPoolRequest &a, WMAlterPoolRequest &b) { swap(a.__isset, b.__isset); } -WMAlterPoolRequest::WMAlterPoolRequest(const WMAlterPoolRequest& other1050) { - pool = other1050.pool; - poolPath = other1050.poolPath; - __isset = other1050.__isset; +WMAlterPoolRequest::WMAlterPoolRequest(const WMAlterPoolRequest& other1070) { + pool = other1070.pool; + poolPath = other1070.poolPath; + __isset = other1070.__isset; } -WMAlterPoolRequest& WMAlterPoolRequest::operator=(const WMAlterPoolRequest& other1051) { - pool = other1051.pool; - poolPath = other1051.poolPath; - __isset = other1051.__isset; +WMAlterPoolRequest& WMAlterPoolRequest::operator=(const WMAlterPoolRequest& other1071) { + pool = other1071.pool; + poolPath = other1071.poolPath; + __isset = other1071.__isset; return *this; } void WMAlterPoolRequest::printTo(std::ostream& out) const { @@ -26332,11 +26879,11 @@ void swap(WMAlterPoolResponse &a, WMAlterPoolResponse &b) { (void) b; } -WMAlterPoolResponse::WMAlterPoolResponse(const WMAlterPoolResponse& other1052) { - (void) other1052; +WMAlterPoolResponse::WMAlterPoolResponse(const WMAlterPoolResponse& other1072) { + (void) other1072; } -WMAlterPoolResponse& WMAlterPoolResponse::operator=(const WMAlterPoolResponse& other1053) { - (void) other1053; +WMAlterPoolResponse& WMAlterPoolResponse::operator=(const WMAlterPoolResponse& other1073) { + (void) other1073; return *this; } void WMAlterPoolResponse::printTo(std::ostream& out) const { @@ -26436,15 +26983,15 @@ void swap(WMDropPoolRequest &a, WMDropPoolRequest &b) { swap(a.__isset, b.__isset); } -WMDropPoolRequest::WMDropPoolRequest(const WMDropPoolRequest& other1054) { - resourcePlanName = other1054.resourcePlanName; - poolPath = other1054.poolPath; - __isset = other1054.__isset; +WMDropPoolRequest::WMDropPoolRequest(const WMDropPoolRequest& other1074) { + resourcePlanName = other1074.resourcePlanName; + poolPath = other1074.poolPath; + __isset = other1074.__isset; } -WMDropPoolRequest& WMDropPoolRequest::operator=(const WMDropPoolRequest& other1055) { - resourcePlanName = other1055.resourcePlanName; - poolPath = other1055.poolPath; - __isset = other1055.__isset; +WMDropPoolRequest& WMDropPoolRequest::operator=(const WMDropPoolRequest& other1075) { + resourcePlanName = other1075.resourcePlanName; + poolPath = other1075.poolPath; + __isset = other1075.__isset; return *this; } void WMDropPoolRequest::printTo(std::ostream& out) const { @@ -26504,11 +27051,11 @@ void swap(WMDropPoolResponse &a, WMDropPoolResponse &b) { (void) b; } -WMDropPoolResponse::WMDropPoolResponse(const WMDropPoolResponse& other1056) { - (void) other1056; +WMDropPoolResponse::WMDropPoolResponse(const WMDropPoolResponse& other1076) { + (void) other1076; } -WMDropPoolResponse& WMDropPoolResponse::operator=(const WMDropPoolResponse& other1057) { - (void) other1057; +WMDropPoolResponse& WMDropPoolResponse::operator=(const WMDropPoolResponse& other1077) { + (void) other1077; return *this; } void WMDropPoolResponse::printTo(std::ostream& out) const { @@ -26608,15 +27155,15 @@ void swap(WMCreateOrUpdateMappingRequest &a, WMCreateOrUpdateMappingRequest &b) swap(a.__isset, b.__isset); } -WMCreateOrUpdateMappingRequest::WMCreateOrUpdateMappingRequest(const WMCreateOrUpdateMappingRequest& other1058) { - mapping = other1058.mapping; - update = other1058.update; - __isset = other1058.__isset; +WMCreateOrUpdateMappingRequest::WMCreateOrUpdateMappingRequest(const WMCreateOrUpdateMappingRequest& other1078) { + mapping = other1078.mapping; + update = other1078.update; + __isset = other1078.__isset; } -WMCreateOrUpdateMappingRequest& WMCreateOrUpdateMappingRequest::operator=(const WMCreateOrUpdateMappingRequest& other1059) { - mapping = other1059.mapping; - update = other1059.update; - __isset = other1059.__isset; +WMCreateOrUpdateMappingRequest& WMCreateOrUpdateMappingRequest::operator=(const WMCreateOrUpdateMappingRequest& other1079) { + mapping = other1079.mapping; + update = other1079.update; + __isset = other1079.__isset; return *this; } void WMCreateOrUpdateMappingRequest::printTo(std::ostream& out) const { @@ -26676,11 +27223,11 @@ void swap(WMCreateOrUpdateMappingResponse &a, WMCreateOrUpdateMappingResponse &b (void) b; } -WMCreateOrUpdateMappingResponse::WMCreateOrUpdateMappingResponse(const WMCreateOrUpdateMappingResponse& other1060) { - (void) other1060; +WMCreateOrUpdateMappingResponse::WMCreateOrUpdateMappingResponse(const WMCreateOrUpdateMappingResponse& other1080) { + (void) other1080; } -WMCreateOrUpdateMappingResponse& WMCreateOrUpdateMappingResponse::operator=(const WMCreateOrUpdateMappingResponse& other1061) { - (void) other1061; +WMCreateOrUpdateMappingResponse& WMCreateOrUpdateMappingResponse::operator=(const WMCreateOrUpdateMappingResponse& other1081) { + (void) other1081; return *this; } void WMCreateOrUpdateMappingResponse::printTo(std::ostream& out) const { @@ -26761,13 +27308,13 @@ void swap(WMDropMappingRequest &a, WMDropMappingRequest &b) { swap(a.__isset, b.__isset); } -WMDropMappingRequest::WMDropMappingRequest(const WMDropMappingRequest& other1062) { - mapping = other1062.mapping; - __isset = other1062.__isset; +WMDropMappingRequest::WMDropMappingRequest(const WMDropMappingRequest& other1082) { + mapping = other1082.mapping; + __isset = other1082.__isset; } -WMDropMappingRequest& WMDropMappingRequest::operator=(const WMDropMappingRequest& other1063) { - mapping = other1063.mapping; - __isset = other1063.__isset; +WMDropMappingRequest& WMDropMappingRequest::operator=(const WMDropMappingRequest& other1083) { + mapping = other1083.mapping; + __isset = other1083.__isset; return *this; } void WMDropMappingRequest::printTo(std::ostream& out) const { @@ -26826,11 +27373,11 @@ void swap(WMDropMappingResponse &a, WMDropMappingResponse &b) { (void) b; } -WMDropMappingResponse::WMDropMappingResponse(const WMDropMappingResponse& other1064) { - (void) other1064; +WMDropMappingResponse::WMDropMappingResponse(const WMDropMappingResponse& other1084) { + (void) other1084; } -WMDropMappingResponse& WMDropMappingResponse::operator=(const WMDropMappingResponse& other1065) { - (void) other1065; +WMDropMappingResponse& WMDropMappingResponse::operator=(const WMDropMappingResponse& other1085) { + (void) other1085; return *this; } void WMDropMappingResponse::printTo(std::ostream& out) const { @@ -26968,19 +27515,19 @@ void swap(WMCreateOrDropTriggerToPoolMappingRequest &a, WMCreateOrDropTriggerToP swap(a.__isset, b.__isset); } -WMCreateOrDropTriggerToPoolMappingRequest::WMCreateOrDropTriggerToPoolMappingRequest(const WMCreateOrDropTriggerToPoolMappingRequest& other1066) { - resourcePlanName = other1066.resourcePlanName; - triggerName = other1066.triggerName; - poolPath = other1066.poolPath; - drop = other1066.drop; - __isset = other1066.__isset; +WMCreateOrDropTriggerToPoolMappingRequest::WMCreateOrDropTriggerToPoolMappingRequest(const WMCreateOrDropTriggerToPoolMappingRequest& other1086) { + resourcePlanName = other1086.resourcePlanName; + triggerName = other1086.triggerName; + poolPath = other1086.poolPath; + drop = other1086.drop; + __isset = other1086.__isset; } -WMCreateOrDropTriggerToPoolMappingRequest& WMCreateOrDropTriggerToPoolMappingRequest::operator=(const WMCreateOrDropTriggerToPoolMappingRequest& other1067) { - resourcePlanName = other1067.resourcePlanName; - triggerName = other1067.triggerName; - poolPath = other1067.poolPath; - drop = other1067.drop; - __isset = other1067.__isset; +WMCreateOrDropTriggerToPoolMappingRequest& WMCreateOrDropTriggerToPoolMappingRequest::operator=(const WMCreateOrDropTriggerToPoolMappingRequest& other1087) { + resourcePlanName = other1087.resourcePlanName; + triggerName = other1087.triggerName; + poolPath = other1087.poolPath; + drop = other1087.drop; + __isset = other1087.__isset; return *this; } void WMCreateOrDropTriggerToPoolMappingRequest::printTo(std::ostream& out) const { @@ -27042,11 +27589,11 @@ void swap(WMCreateOrDropTriggerToPoolMappingResponse &a, WMCreateOrDropTriggerTo (void) b; } -WMCreateOrDropTriggerToPoolMappingResponse::WMCreateOrDropTriggerToPoolMappingResponse(const WMCreateOrDropTriggerToPoolMappingResponse& other1068) { - (void) other1068; +WMCreateOrDropTriggerToPoolMappingResponse::WMCreateOrDropTriggerToPoolMappingResponse(const WMCreateOrDropTriggerToPoolMappingResponse& other1088) { + (void) other1088; } -WMCreateOrDropTriggerToPoolMappingResponse& WMCreateOrDropTriggerToPoolMappingResponse::operator=(const WMCreateOrDropTriggerToPoolMappingResponse& other1069) { - (void) other1069; +WMCreateOrDropTriggerToPoolMappingResponse& WMCreateOrDropTriggerToPoolMappingResponse::operator=(const WMCreateOrDropTriggerToPoolMappingResponse& other1089) { + (void) other1089; return *this; } void WMCreateOrDropTriggerToPoolMappingResponse::printTo(std::ostream& out) const { @@ -27117,9 +27664,9 @@ uint32_t ISchema::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1070; - xfer += iprot->readI32(ecast1070); - this->schemaType = (SchemaType::type)ecast1070; + int32_t ecast1090; + xfer += iprot->readI32(ecast1090); + this->schemaType = (SchemaType::type)ecast1090; this->__isset.schemaType = true; } else { xfer += iprot->skip(ftype); @@ -27143,9 +27690,9 @@ uint32_t ISchema::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1071; - xfer += iprot->readI32(ecast1071); - this->compatibility = (SchemaCompatibility::type)ecast1071; + int32_t ecast1091; + xfer += iprot->readI32(ecast1091); + this->compatibility = (SchemaCompatibility::type)ecast1091; this->__isset.compatibility = true; } else { xfer += iprot->skip(ftype); @@ -27153,9 +27700,9 @@ uint32_t ISchema::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1072; - xfer += iprot->readI32(ecast1072); - this->validationLevel = (SchemaValidation::type)ecast1072; + int32_t ecast1092; + xfer += iprot->readI32(ecast1092); + this->validationLevel = (SchemaValidation::type)ecast1092; this->__isset.validationLevel = true; } else { xfer += iprot->skip(ftype); @@ -27254,27 +27801,27 @@ void swap(ISchema &a, ISchema &b) { swap(a.__isset, b.__isset); } -ISchema::ISchema(const ISchema& other1073) { - schemaType = other1073.schemaType; - name = other1073.name; - dbName = other1073.dbName; - compatibility = other1073.compatibility; - validationLevel = other1073.validationLevel; - canEvolve = other1073.canEvolve; - schemaGroup = other1073.schemaGroup; - description = other1073.description; - __isset = other1073.__isset; -} -ISchema& ISchema::operator=(const ISchema& other1074) { - schemaType = other1074.schemaType; - name = other1074.name; - dbName = other1074.dbName; - compatibility = other1074.compatibility; - validationLevel = other1074.validationLevel; - canEvolve = other1074.canEvolve; - schemaGroup = other1074.schemaGroup; - description = other1074.description; - __isset = other1074.__isset; +ISchema::ISchema(const ISchema& other1093) { + schemaType = other1093.schemaType; + name = other1093.name; + dbName = other1093.dbName; + compatibility = other1093.compatibility; + validationLevel = other1093.validationLevel; + canEvolve = other1093.canEvolve; + schemaGroup = other1093.schemaGroup; + description = other1093.description; + __isset = other1093.__isset; +} +ISchema& ISchema::operator=(const ISchema& other1094) { + schemaType = other1094.schemaType; + name = other1094.name; + dbName = other1094.dbName; + compatibility = other1094.compatibility; + validationLevel = other1094.validationLevel; + canEvolve = other1094.canEvolve; + schemaGroup = other1094.schemaGroup; + description = other1094.description; + __isset = other1094.__isset; return *this; } void ISchema::printTo(std::ostream& out) const { @@ -27378,15 +27925,15 @@ void swap(ISchemaName &a, ISchemaName &b) { swap(a.__isset, b.__isset); } -ISchemaName::ISchemaName(const ISchemaName& other1075) { - dbName = other1075.dbName; - schemaName = other1075.schemaName; - __isset = other1075.__isset; +ISchemaName::ISchemaName(const ISchemaName& other1095) { + dbName = other1095.dbName; + schemaName = other1095.schemaName; + __isset = other1095.__isset; } -ISchemaName& ISchemaName::operator=(const ISchemaName& other1076) { - dbName = other1076.dbName; - schemaName = other1076.schemaName; - __isset = other1076.__isset; +ISchemaName& ISchemaName::operator=(const ISchemaName& other1096) { + dbName = other1096.dbName; + schemaName = other1096.schemaName; + __isset = other1096.__isset; return *this; } void ISchemaName::printTo(std::ostream& out) const { @@ -27484,15 +28031,15 @@ void swap(AlterISchemaRequest &a, AlterISchemaRequest &b) { swap(a.__isset, b.__isset); } -AlterISchemaRequest::AlterISchemaRequest(const AlterISchemaRequest& other1077) { - name = other1077.name; - newSchema = other1077.newSchema; - __isset = other1077.__isset; +AlterISchemaRequest::AlterISchemaRequest(const AlterISchemaRequest& other1097) { + name = other1097.name; + newSchema = other1097.newSchema; + __isset = other1097.__isset; } -AlterISchemaRequest& AlterISchemaRequest::operator=(const AlterISchemaRequest& other1078) { - name = other1078.name; - newSchema = other1078.newSchema; - __isset = other1078.__isset; +AlterISchemaRequest& AlterISchemaRequest::operator=(const AlterISchemaRequest& other1098) { + name = other1098.name; + newSchema = other1098.newSchema; + __isset = other1098.__isset; return *this; } void AlterISchemaRequest::printTo(std::ostream& out) const { @@ -27603,14 +28150,14 @@ uint32_t SchemaVersion::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->cols.clear(); - uint32_t _size1079; - ::apache::thrift::protocol::TType _etype1082; - xfer += iprot->readListBegin(_etype1082, _size1079); - this->cols.resize(_size1079); - uint32_t _i1083; - for (_i1083 = 0; _i1083 < _size1079; ++_i1083) + uint32_t _size1099; + ::apache::thrift::protocol::TType _etype1102; + xfer += iprot->readListBegin(_etype1102, _size1099); + this->cols.resize(_size1099); + uint32_t _i1103; + for (_i1103 = 0; _i1103 < _size1099; ++_i1103) { - xfer += this->cols[_i1083].read(iprot); + xfer += this->cols[_i1103].read(iprot); } xfer += iprot->readListEnd(); } @@ -27621,9 +28168,9 @@ uint32_t SchemaVersion::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1084; - xfer += iprot->readI32(ecast1084); - this->state = (SchemaVersionState::type)ecast1084; + int32_t ecast1104; + xfer += iprot->readI32(ecast1104); + this->state = (SchemaVersionState::type)ecast1104; this->__isset.state = true; } else { xfer += iprot->skip(ftype); @@ -27701,10 +28248,10 @@ uint32_t SchemaVersion::write(::apache::thrift::protocol::TProtocol* oprot) cons xfer += oprot->writeFieldBegin("cols", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->cols.size())); - std::vector ::const_iterator _iter1085; - for (_iter1085 = this->cols.begin(); _iter1085 != this->cols.end(); ++_iter1085) + std::vector ::const_iterator _iter1105; + for (_iter1105 = this->cols.begin(); _iter1105 != this->cols.end(); ++_iter1105) { - xfer += (*_iter1085).write(oprot); + xfer += (*_iter1105).write(oprot); } xfer += oprot->writeListEnd(); } @@ -27760,31 +28307,31 @@ void swap(SchemaVersion &a, SchemaVersion &b) { swap(a.__isset, b.__isset); } -SchemaVersion::SchemaVersion(const SchemaVersion& other1086) { - schema = other1086.schema; - version = other1086.version; - createdAt = other1086.createdAt; - cols = other1086.cols; - state = other1086.state; - description = other1086.description; - schemaText = other1086.schemaText; - fingerprint = other1086.fingerprint; - name = other1086.name; - serDe = other1086.serDe; - __isset = other1086.__isset; +SchemaVersion::SchemaVersion(const SchemaVersion& other1106) { + schema = other1106.schema; + version = other1106.version; + createdAt = other1106.createdAt; + cols = other1106.cols; + state = other1106.state; + description = other1106.description; + schemaText = other1106.schemaText; + fingerprint = other1106.fingerprint; + name = other1106.name; + serDe = other1106.serDe; + __isset = other1106.__isset; } -SchemaVersion& SchemaVersion::operator=(const SchemaVersion& other1087) { - schema = other1087.schema; - version = other1087.version; - createdAt = other1087.createdAt; - cols = other1087.cols; - state = other1087.state; - description = other1087.description; - schemaText = other1087.schemaText; - fingerprint = other1087.fingerprint; - name = other1087.name; - serDe = other1087.serDe; - __isset = other1087.__isset; +SchemaVersion& SchemaVersion::operator=(const SchemaVersion& other1107) { + schema = other1107.schema; + version = other1107.version; + createdAt = other1107.createdAt; + cols = other1107.cols; + state = other1107.state; + description = other1107.description; + schemaText = other1107.schemaText; + fingerprint = other1107.fingerprint; + name = other1107.name; + serDe = other1107.serDe; + __isset = other1107.__isset; return *this; } void SchemaVersion::printTo(std::ostream& out) const { @@ -27890,15 +28437,15 @@ void swap(SchemaVersionDescriptor &a, SchemaVersionDescriptor &b) { swap(a.__isset, b.__isset); } -SchemaVersionDescriptor::SchemaVersionDescriptor(const SchemaVersionDescriptor& other1088) { - schema = other1088.schema; - version = other1088.version; - __isset = other1088.__isset; +SchemaVersionDescriptor::SchemaVersionDescriptor(const SchemaVersionDescriptor& other1108) { + schema = other1108.schema; + version = other1108.version; + __isset = other1108.__isset; } -SchemaVersionDescriptor& SchemaVersionDescriptor::operator=(const SchemaVersionDescriptor& other1089) { - schema = other1089.schema; - version = other1089.version; - __isset = other1089.__isset; +SchemaVersionDescriptor& SchemaVersionDescriptor::operator=(const SchemaVersionDescriptor& other1109) { + schema = other1109.schema; + version = other1109.version; + __isset = other1109.__isset; return *this; } void SchemaVersionDescriptor::printTo(std::ostream& out) const { @@ -28019,17 +28566,17 @@ void swap(FindSchemasByColsRqst &a, FindSchemasByColsRqst &b) { swap(a.__isset, b.__isset); } -FindSchemasByColsRqst::FindSchemasByColsRqst(const FindSchemasByColsRqst& other1090) { - colName = other1090.colName; - colNamespace = other1090.colNamespace; - type = other1090.type; - __isset = other1090.__isset; +FindSchemasByColsRqst::FindSchemasByColsRqst(const FindSchemasByColsRqst& other1110) { + colName = other1110.colName; + colNamespace = other1110.colNamespace; + type = other1110.type; + __isset = other1110.__isset; } -FindSchemasByColsRqst& FindSchemasByColsRqst::operator=(const FindSchemasByColsRqst& other1091) { - colName = other1091.colName; - colNamespace = other1091.colNamespace; - type = other1091.type; - __isset = other1091.__isset; +FindSchemasByColsRqst& FindSchemasByColsRqst::operator=(const FindSchemasByColsRqst& other1111) { + colName = other1111.colName; + colNamespace = other1111.colNamespace; + type = other1111.type; + __isset = other1111.__isset; return *this; } void FindSchemasByColsRqst::printTo(std::ostream& out) const { @@ -28075,14 +28622,14 @@ uint32_t FindSchemasByColsResp::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_LIST) { { this->schemaVersions.clear(); - uint32_t _size1092; - ::apache::thrift::protocol::TType _etype1095; - xfer += iprot->readListBegin(_etype1095, _size1092); - this->schemaVersions.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->schemaVersions.resize(_size1112); + uint32_t _i1116; + for (_i1116 = 0; _i1116 < _size1112; ++_i1116) { - xfer += this->schemaVersions[_i1096].read(iprot); + xfer += this->schemaVersions[_i1116].read(iprot); } xfer += iprot->readListEnd(); } @@ -28111,10 +28658,10 @@ uint32_t FindSchemasByColsResp::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldBegin("schemaVersions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->schemaVersions.size())); - std::vector ::const_iterator _iter1097; - for (_iter1097 = this->schemaVersions.begin(); _iter1097 != this->schemaVersions.end(); ++_iter1097) + std::vector ::const_iterator _iter1117; + for (_iter1117 = this->schemaVersions.begin(); _iter1117 != this->schemaVersions.end(); ++_iter1117) { - xfer += (*_iter1097).write(oprot); + xfer += (*_iter1117).write(oprot); } xfer += oprot->writeListEnd(); } @@ -28131,13 +28678,13 @@ void swap(FindSchemasByColsResp &a, FindSchemasByColsResp &b) { swap(a.__isset, b.__isset); } -FindSchemasByColsResp::FindSchemasByColsResp(const FindSchemasByColsResp& other1098) { - schemaVersions = other1098.schemaVersions; - __isset = other1098.__isset; +FindSchemasByColsResp::FindSchemasByColsResp(const FindSchemasByColsResp& other1118) { + schemaVersions = other1118.schemaVersions; + __isset = other1118.__isset; } -FindSchemasByColsResp& FindSchemasByColsResp::operator=(const FindSchemasByColsResp& other1099) { - schemaVersions = other1099.schemaVersions; - __isset = other1099.__isset; +FindSchemasByColsResp& FindSchemasByColsResp::operator=(const FindSchemasByColsResp& other1119) { + schemaVersions = other1119.schemaVersions; + __isset = other1119.__isset; return *this; } void FindSchemasByColsResp::printTo(std::ostream& out) const { @@ -28234,15 +28781,15 @@ void swap(MapSchemaVersionToSerdeRequest &a, MapSchemaVersionToSerdeRequest &b) swap(a.__isset, b.__isset); } -MapSchemaVersionToSerdeRequest::MapSchemaVersionToSerdeRequest(const MapSchemaVersionToSerdeRequest& other1100) { - schemaVersion = other1100.schemaVersion; - serdeName = other1100.serdeName; - __isset = other1100.__isset; +MapSchemaVersionToSerdeRequest::MapSchemaVersionToSerdeRequest(const MapSchemaVersionToSerdeRequest& other1120) { + schemaVersion = other1120.schemaVersion; + serdeName = other1120.serdeName; + __isset = other1120.__isset; } -MapSchemaVersionToSerdeRequest& MapSchemaVersionToSerdeRequest::operator=(const MapSchemaVersionToSerdeRequest& other1101) { - schemaVersion = other1101.schemaVersion; - serdeName = other1101.serdeName; - __isset = other1101.__isset; +MapSchemaVersionToSerdeRequest& MapSchemaVersionToSerdeRequest::operator=(const MapSchemaVersionToSerdeRequest& other1121) { + schemaVersion = other1121.schemaVersion; + serdeName = other1121.serdeName; + __isset = other1121.__isset; return *this; } void MapSchemaVersionToSerdeRequest::printTo(std::ostream& out) const { @@ -28297,9 +28844,9 @@ uint32_t SetSchemaVersionStateRequest::read(::apache::thrift::protocol::TProtoco break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1102; - xfer += iprot->readI32(ecast1102); - this->state = (SchemaVersionState::type)ecast1102; + int32_t ecast1122; + xfer += iprot->readI32(ecast1122); + this->state = (SchemaVersionState::type)ecast1122; this->__isset.state = true; } else { xfer += iprot->skip(ftype); @@ -28342,15 +28889,15 @@ void swap(SetSchemaVersionStateRequest &a, SetSchemaVersionStateRequest &b) { swap(a.__isset, b.__isset); } -SetSchemaVersionStateRequest::SetSchemaVersionStateRequest(const SetSchemaVersionStateRequest& other1103) { - schemaVersion = other1103.schemaVersion; - state = other1103.state; - __isset = other1103.__isset; +SetSchemaVersionStateRequest::SetSchemaVersionStateRequest(const SetSchemaVersionStateRequest& other1123) { + schemaVersion = other1123.schemaVersion; + state = other1123.state; + __isset = other1123.__isset; } -SetSchemaVersionStateRequest& SetSchemaVersionStateRequest::operator=(const SetSchemaVersionStateRequest& other1104) { - schemaVersion = other1104.schemaVersion; - state = other1104.state; - __isset = other1104.__isset; +SetSchemaVersionStateRequest& SetSchemaVersionStateRequest::operator=(const SetSchemaVersionStateRequest& other1124) { + schemaVersion = other1124.schemaVersion; + state = other1124.state; + __isset = other1124.__isset; return *this; } void SetSchemaVersionStateRequest::printTo(std::ostream& out) const { @@ -28431,13 +28978,13 @@ void swap(GetSerdeRequest &a, GetSerdeRequest &b) { swap(a.__isset, b.__isset); } -GetSerdeRequest::GetSerdeRequest(const GetSerdeRequest& other1105) { - serdeName = other1105.serdeName; - __isset = other1105.__isset; +GetSerdeRequest::GetSerdeRequest(const GetSerdeRequest& other1125) { + serdeName = other1125.serdeName; + __isset = other1125.__isset; } -GetSerdeRequest& GetSerdeRequest::operator=(const GetSerdeRequest& other1106) { - serdeName = other1106.serdeName; - __isset = other1106.__isset; +GetSerdeRequest& GetSerdeRequest::operator=(const GetSerdeRequest& other1126) { + serdeName = other1126.serdeName; + __isset = other1126.__isset; return *this; } void GetSerdeRequest::printTo(std::ostream& out) const { @@ -28517,13 +29064,13 @@ void swap(MetaException &a, MetaException &b) { swap(a.__isset, b.__isset); } -MetaException::MetaException(const MetaException& other1107) : TException() { - message = other1107.message; - __isset = other1107.__isset; +MetaException::MetaException(const MetaException& other1127) : TException() { + message = other1127.message; + __isset = other1127.__isset; } -MetaException& MetaException::operator=(const MetaException& other1108) { - message = other1108.message; - __isset = other1108.__isset; +MetaException& MetaException::operator=(const MetaException& other1128) { + message = other1128.message; + __isset = other1128.__isset; return *this; } void MetaException::printTo(std::ostream& out) const { @@ -28614,13 +29161,13 @@ void swap(UnknownTableException &a, UnknownTableException &b) { swap(a.__isset, b.__isset); } -UnknownTableException::UnknownTableException(const UnknownTableException& other1109) : TException() { - message = other1109.message; - __isset = other1109.__isset; +UnknownTableException::UnknownTableException(const UnknownTableException& other1129) : TException() { + message = other1129.message; + __isset = other1129.__isset; } -UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other1110) { - message = other1110.message; - __isset = other1110.__isset; +UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other1130) { + message = other1130.message; + __isset = other1130.__isset; return *this; } void UnknownTableException::printTo(std::ostream& out) const { @@ -28711,13 +29258,13 @@ void swap(UnknownDBException &a, UnknownDBException &b) { swap(a.__isset, b.__isset); } -UnknownDBException::UnknownDBException(const UnknownDBException& other1111) : TException() { - message = other1111.message; - __isset = other1111.__isset; +UnknownDBException::UnknownDBException(const UnknownDBException& other1131) : TException() { + message = other1131.message; + __isset = other1131.__isset; } -UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other1112) { - message = other1112.message; - __isset = other1112.__isset; +UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other1132) { + message = other1132.message; + __isset = other1132.__isset; return *this; } void UnknownDBException::printTo(std::ostream& out) const { @@ -28808,13 +29355,13 @@ void swap(AlreadyExistsException &a, AlreadyExistsException &b) { swap(a.__isset, b.__isset); } -AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other1113) : TException() { - message = other1113.message; - __isset = other1113.__isset; +AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other1133) : TException() { + message = other1133.message; + __isset = other1133.__isset; } -AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other1114) { - message = other1114.message; - __isset = other1114.__isset; +AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other1134) { + message = other1134.message; + __isset = other1134.__isset; return *this; } void AlreadyExistsException::printTo(std::ostream& out) const { @@ -28905,13 +29452,13 @@ void swap(InvalidPartitionException &a, InvalidPartitionException &b) { swap(a.__isset, b.__isset); } -InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other1115) : TException() { - message = other1115.message; - __isset = other1115.__isset; +InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other1135) : TException() { + message = other1135.message; + __isset = other1135.__isset; } -InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other1116) { - message = other1116.message; - __isset = other1116.__isset; +InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other1136) { + message = other1136.message; + __isset = other1136.__isset; return *this; } void InvalidPartitionException::printTo(std::ostream& out) const { @@ -29002,13 +29549,13 @@ void swap(UnknownPartitionException &a, UnknownPartitionException &b) { swap(a.__isset, b.__isset); } -UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other1117) : TException() { - message = other1117.message; - __isset = other1117.__isset; +UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other1137) : TException() { + message = other1137.message; + __isset = other1137.__isset; } -UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other1118) { - message = other1118.message; - __isset = other1118.__isset; +UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other1138) { + message = other1138.message; + __isset = other1138.__isset; return *this; } void UnknownPartitionException::printTo(std::ostream& out) const { @@ -29099,13 +29646,13 @@ void swap(InvalidObjectException &a, InvalidObjectException &b) { swap(a.__isset, b.__isset); } -InvalidObjectException::InvalidObjectException(const InvalidObjectException& other1119) : TException() { - message = other1119.message; - __isset = other1119.__isset; +InvalidObjectException::InvalidObjectException(const InvalidObjectException& other1139) : TException() { + message = other1139.message; + __isset = other1139.__isset; } -InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other1120) { - message = other1120.message; - __isset = other1120.__isset; +InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other1140) { + message = other1140.message; + __isset = other1140.__isset; return *this; } void InvalidObjectException::printTo(std::ostream& out) const { @@ -29196,13 +29743,13 @@ void swap(NoSuchObjectException &a, NoSuchObjectException &b) { swap(a.__isset, b.__isset); } -NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other1121) : TException() { - message = other1121.message; - __isset = other1121.__isset; +NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other1141) : TException() { + message = other1141.message; + __isset = other1141.__isset; } -NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other1122) { - message = other1122.message; - __isset = other1122.__isset; +NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other1142) { + message = other1142.message; + __isset = other1142.__isset; return *this; } void NoSuchObjectException::printTo(std::ostream& out) const { @@ -29293,13 +29840,13 @@ void swap(InvalidOperationException &a, InvalidOperationException &b) { swap(a.__isset, b.__isset); } -InvalidOperationException::InvalidOperationException(const InvalidOperationException& other1123) : TException() { - message = other1123.message; - __isset = other1123.__isset; +InvalidOperationException::InvalidOperationException(const InvalidOperationException& other1143) : TException() { + message = other1143.message; + __isset = other1143.__isset; } -InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other1124) { - message = other1124.message; - __isset = other1124.__isset; +InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other1144) { + message = other1144.message; + __isset = other1144.__isset; return *this; } void InvalidOperationException::printTo(std::ostream& out) const { @@ -29390,13 +29937,13 @@ void swap(ConfigValSecurityException &a, ConfigValSecurityException &b) { swap(a.__isset, b.__isset); } -ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other1125) : TException() { - message = other1125.message; - __isset = other1125.__isset; +ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other1145) : TException() { + message = other1145.message; + __isset = other1145.__isset; } -ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other1126) { - message = other1126.message; - __isset = other1126.__isset; +ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other1146) { + message = other1146.message; + __isset = other1146.__isset; return *this; } void ConfigValSecurityException::printTo(std::ostream& out) const { @@ -29487,13 +30034,13 @@ void swap(InvalidInputException &a, InvalidInputException &b) { swap(a.__isset, b.__isset); } -InvalidInputException::InvalidInputException(const InvalidInputException& other1127) : TException() { - message = other1127.message; - __isset = other1127.__isset; +InvalidInputException::InvalidInputException(const InvalidInputException& other1147) : TException() { + message = other1147.message; + __isset = other1147.__isset; } -InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other1128) { - message = other1128.message; - __isset = other1128.__isset; +InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other1148) { + message = other1148.message; + __isset = other1148.__isset; return *this; } void InvalidInputException::printTo(std::ostream& out) const { @@ -29584,13 +30131,13 @@ void swap(NoSuchTxnException &a, NoSuchTxnException &b) { swap(a.__isset, b.__isset); } -NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other1129) : TException() { - message = other1129.message; - __isset = other1129.__isset; +NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other1149) : TException() { + message = other1149.message; + __isset = other1149.__isset; } -NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other1130) { - message = other1130.message; - __isset = other1130.__isset; +NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other1150) { + message = other1150.message; + __isset = other1150.__isset; return *this; } void NoSuchTxnException::printTo(std::ostream& out) const { @@ -29681,13 +30228,13 @@ void swap(TxnAbortedException &a, TxnAbortedException &b) { swap(a.__isset, b.__isset); } -TxnAbortedException::TxnAbortedException(const TxnAbortedException& other1131) : TException() { - message = other1131.message; - __isset = other1131.__isset; +TxnAbortedException::TxnAbortedException(const TxnAbortedException& other1151) : TException() { + message = other1151.message; + __isset = other1151.__isset; } -TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other1132) { - message = other1132.message; - __isset = other1132.__isset; +TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other1152) { + message = other1152.message; + __isset = other1152.__isset; return *this; } void TxnAbortedException::printTo(std::ostream& out) const { @@ -29778,13 +30325,13 @@ void swap(TxnOpenException &a, TxnOpenException &b) { swap(a.__isset, b.__isset); } -TxnOpenException::TxnOpenException(const TxnOpenException& other1133) : TException() { - message = other1133.message; - __isset = other1133.__isset; +TxnOpenException::TxnOpenException(const TxnOpenException& other1153) : TException() { + message = other1153.message; + __isset = other1153.__isset; } -TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other1134) { - message = other1134.message; - __isset = other1134.__isset; +TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other1154) { + message = other1154.message; + __isset = other1154.__isset; return *this; } void TxnOpenException::printTo(std::ostream& out) const { @@ -29875,13 +30422,13 @@ void swap(NoSuchLockException &a, NoSuchLockException &b) { swap(a.__isset, b.__isset); } -NoSuchLockException::NoSuchLockException(const NoSuchLockException& other1135) : TException() { - message = other1135.message; - __isset = other1135.__isset; +NoSuchLockException::NoSuchLockException(const NoSuchLockException& other1155) : TException() { + message = other1155.message; + __isset = other1155.__isset; } -NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other1136) { - message = other1136.message; - __isset = other1136.__isset; +NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other1156) { + message = other1156.message; + __isset = other1156.__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 ef8b694c41..8fb6cfca62 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 @@ -253,6 +253,8 @@ class SQLNotNullConstraint; class SQLDefaultConstraint; +class SQLCheckConstraint; + class Type; class HiveObjectRef; @@ -361,6 +363,10 @@ class DefaultConstraintsRequest; class DefaultConstraintsResponse; +class CheckConstraintsRequest; + +class CheckConstraintsResponse; + class DropConstraintRequest; class AddPrimaryKeyRequest; @@ -373,6 +379,8 @@ class AddNotNullConstraintRequest; class AddDefaultConstraintRequest; +class AddCheckConstraintRequest; + class PartitionsByExprResult; class PartitionsByExprRequest; @@ -1249,6 +1257,94 @@ inline std::ostream& operator<<(std::ostream& out, const SQLDefaultConstraint& o return out; } +typedef struct _SQLCheckConstraint__isset { + _SQLCheckConstraint__isset() : table_db(false), table_name(false), column_name(false), check_expression(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 check_expression :1; + bool dc_name :1; + bool enable_cstr :1; + bool validate_cstr :1; + bool rely_cstr :1; +} _SQLCheckConstraint__isset; + +class SQLCheckConstraint { + public: + + SQLCheckConstraint(const SQLCheckConstraint&); + SQLCheckConstraint& operator=(const SQLCheckConstraint&); + SQLCheckConstraint() : table_db(), table_name(), column_name(), check_expression(), dc_name(), enable_cstr(0), validate_cstr(0), rely_cstr(0) { + } + + virtual ~SQLCheckConstraint() throw(); + std::string table_db; + std::string table_name; + std::string column_name; + std::string check_expression; + std::string dc_name; + bool enable_cstr; + bool validate_cstr; + bool rely_cstr; + + _SQLCheckConstraint__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_check_expression(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 SQLCheckConstraint & 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 (!(check_expression == rhs.check_expression)) + 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 SQLCheckConstraint &rhs) const { + return !(*this == rhs); + } + + bool operator < (const SQLCheckConstraint & ) 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(SQLCheckConstraint &a, SQLCheckConstraint &b); + +inline std::ostream& operator<<(std::ostream& out, const SQLCheckConstraint& obj) +{ + obj.printTo(out); + return out; +} + typedef struct _Type__isset { _Type__isset() : name(false), type1(false), type2(false), fields(false) {} bool name :1; @@ -4528,6 +4624,91 @@ inline std::ostream& operator<<(std::ostream& out, const DefaultConstraintsRespo } +class CheckConstraintsRequest { + public: + + CheckConstraintsRequest(const CheckConstraintsRequest&); + CheckConstraintsRequest& operator=(const CheckConstraintsRequest&); + CheckConstraintsRequest() : db_name(), tbl_name() { + } + + virtual ~CheckConstraintsRequest() 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 CheckConstraintsRequest & rhs) const + { + if (!(db_name == rhs.db_name)) + return false; + if (!(tbl_name == rhs.tbl_name)) + return false; + return true; + } + bool operator != (const CheckConstraintsRequest &rhs) const { + return !(*this == rhs); + } + + bool operator < (const CheckConstraintsRequest & ) 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(CheckConstraintsRequest &a, CheckConstraintsRequest &b); + +inline std::ostream& operator<<(std::ostream& out, const CheckConstraintsRequest& obj) +{ + obj.printTo(out); + return out; +} + + +class CheckConstraintsResponse { + public: + + CheckConstraintsResponse(const CheckConstraintsResponse&); + CheckConstraintsResponse& operator=(const CheckConstraintsResponse&); + CheckConstraintsResponse() { + } + + virtual ~CheckConstraintsResponse() throw(); + std::vector checkConstraints; + + void __set_checkConstraints(const std::vector & val); + + bool operator == (const CheckConstraintsResponse & rhs) const + { + if (!(checkConstraints == rhs.checkConstraints)) + return false; + return true; + } + bool operator != (const CheckConstraintsResponse &rhs) const { + return !(*this == rhs); + } + + bool operator < (const CheckConstraintsResponse & ) 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(CheckConstraintsResponse &a, CheckConstraintsResponse &b); + +inline std::ostream& operator<<(std::ostream& out, const CheckConstraintsResponse& obj) +{ + obj.printTo(out); + return out; +} + + class DropConstraintRequest { public: @@ -4778,6 +4959,46 @@ inline std::ostream& operator<<(std::ostream& out, const AddDefaultConstraintReq } +class AddCheckConstraintRequest { + public: + + AddCheckConstraintRequest(const AddCheckConstraintRequest&); + AddCheckConstraintRequest& operator=(const AddCheckConstraintRequest&); + AddCheckConstraintRequest() { + } + + virtual ~AddCheckConstraintRequest() throw(); + std::vector checkConstraintCols; + + void __set_checkConstraintCols(const std::vector & val); + + bool operator == (const AddCheckConstraintRequest & rhs) const + { + if (!(checkConstraintCols == rhs.checkConstraintCols)) + return false; + return true; + } + bool operator != (const AddCheckConstraintRequest &rhs) const { + return !(*this == rhs); + } + + bool operator < (const AddCheckConstraintRequest & ) 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(AddCheckConstraintRequest &a, AddCheckConstraintRequest &b); + +inline std::ostream& operator<<(std::ostream& out, const AddCheckConstraintRequest& 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 699f27b74e..911e98127b 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 _list554 = iprot.readListBegin(); - struct.txn_ids = new ArrayList(_list554.size); - long _elem555; - for (int _i556 = 0; _i556 < _list554.size; ++_i556) + org.apache.thrift.protocol.TList _list570 = iprot.readListBegin(); + struct.txn_ids = new ArrayList(_list570.size); + long _elem571; + for (int _i572 = 0; _i572 < _list570.size; ++_i572) { - _elem555 = iprot.readI64(); - struct.txn_ids.add(_elem555); + _elem571 = iprot.readI64(); + struct.txn_ids.add(_elem571); } 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 _iter557 : struct.txn_ids) + for (long _iter573 : struct.txn_ids) { - oprot.writeI64(_iter557); + oprot.writeI64(_iter573); } 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 _iter558 : struct.txn_ids) + for (long _iter574 : struct.txn_ids) { - oprot.writeI64(_iter558); + oprot.writeI64(_iter574); } } } @@ -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 _list559 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.txn_ids = new ArrayList(_list559.size); - long _elem560; - for (int _i561 = 0; _i561 < _list559.size; ++_i561) + org.apache.thrift.protocol.TList _list575 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txn_ids = new ArrayList(_list575.size); + long _elem576; + for (int _i577 = 0; _i577 < _list575.size; ++_i577) { - _elem560 = iprot.readI64(); - struct.txn_ids.add(_elem560); + _elem576 = iprot.readI64(); + struct.txn_ids.add(_elem576); } } struct.setTxn_idsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddCheckConstraintRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddCheckConstraintRequest.java new file mode 100644 index 0000000000..8a37ee4bbd --- /dev/null +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddCheckConstraintRequest.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 AddCheckConstraintRequest 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("AddCheckConstraintRequest"); + + private static final org.apache.thrift.protocol.TField CHECK_CONSTRAINT_COLS_FIELD_DESC = new org.apache.thrift.protocol.TField("checkConstraintCols", org.apache.thrift.protocol.TType.LIST, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new AddCheckConstraintRequestStandardSchemeFactory()); + schemes.put(TupleScheme.class, new AddCheckConstraintRequestTupleSchemeFactory()); + } + + private List checkConstraintCols; // 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 { + CHECK_CONSTRAINT_COLS((short)1, "checkConstraintCols"); + + 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: // CHECK_CONSTRAINT_COLS + return CHECK_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.CHECK_CONSTRAINT_COLS, new org.apache.thrift.meta_data.FieldMetaData("checkConstraintCols", 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, SQLCheckConstraint.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AddCheckConstraintRequest.class, metaDataMap); + } + + public AddCheckConstraintRequest() { + } + + public AddCheckConstraintRequest( + List checkConstraintCols) + { + this(); + this.checkConstraintCols = checkConstraintCols; + } + + /** + * Performs a deep copy on other. + */ + public AddCheckConstraintRequest(AddCheckConstraintRequest other) { + if (other.isSetCheckConstraintCols()) { + List __this__checkConstraintCols = new ArrayList(other.checkConstraintCols.size()); + for (SQLCheckConstraint other_element : other.checkConstraintCols) { + __this__checkConstraintCols.add(new SQLCheckConstraint(other_element)); + } + this.checkConstraintCols = __this__checkConstraintCols; + } + } + + public AddCheckConstraintRequest deepCopy() { + return new AddCheckConstraintRequest(this); + } + + @Override + public void clear() { + this.checkConstraintCols = null; + } + + public int getCheckConstraintColsSize() { + return (this.checkConstraintCols == null) ? 0 : this.checkConstraintCols.size(); + } + + public java.util.Iterator getCheckConstraintColsIterator() { + return (this.checkConstraintCols == null) ? null : this.checkConstraintCols.iterator(); + } + + public void addToCheckConstraintCols(SQLCheckConstraint elem) { + if (this.checkConstraintCols == null) { + this.checkConstraintCols = new ArrayList(); + } + this.checkConstraintCols.add(elem); + } + + public List getCheckConstraintCols() { + return this.checkConstraintCols; + } + + public void setCheckConstraintCols(List checkConstraintCols) { + this.checkConstraintCols = checkConstraintCols; + } + + public void unsetCheckConstraintCols() { + this.checkConstraintCols = null; + } + + /** Returns true if field checkConstraintCols is set (has been assigned a value) and false otherwise */ + public boolean isSetCheckConstraintCols() { + return this.checkConstraintCols != null; + } + + public void setCheckConstraintColsIsSet(boolean value) { + if (!value) { + this.checkConstraintCols = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case CHECK_CONSTRAINT_COLS: + if (value == null) { + unsetCheckConstraintCols(); + } else { + setCheckConstraintCols((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case CHECK_CONSTRAINT_COLS: + return getCheckConstraintCols(); + + } + 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 CHECK_CONSTRAINT_COLS: + return isSetCheckConstraintCols(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof AddCheckConstraintRequest) + return this.equals((AddCheckConstraintRequest)that); + return false; + } + + public boolean equals(AddCheckConstraintRequest that) { + if (that == null) + return false; + + boolean this_present_checkConstraintCols = true && this.isSetCheckConstraintCols(); + boolean that_present_checkConstraintCols = true && that.isSetCheckConstraintCols(); + if (this_present_checkConstraintCols || that_present_checkConstraintCols) { + if (!(this_present_checkConstraintCols && that_present_checkConstraintCols)) + return false; + if (!this.checkConstraintCols.equals(that.checkConstraintCols)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_checkConstraintCols = true && (isSetCheckConstraintCols()); + list.add(present_checkConstraintCols); + if (present_checkConstraintCols) + list.add(checkConstraintCols); + + return list.hashCode(); + } + + @Override + public int compareTo(AddCheckConstraintRequest other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetCheckConstraintCols()).compareTo(other.isSetCheckConstraintCols()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCheckConstraintCols()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.checkConstraintCols, other.checkConstraintCols); + 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("AddCheckConstraintRequest("); + boolean first = true; + + sb.append("checkConstraintCols:"); + if (this.checkConstraintCols == null) { + sb.append("null"); + } else { + sb.append(this.checkConstraintCols); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetCheckConstraintCols()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'checkConstraintCols' 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 AddCheckConstraintRequestStandardSchemeFactory implements SchemeFactory { + public AddCheckConstraintRequestStandardScheme getScheme() { + return new AddCheckConstraintRequestStandardScheme(); + } + } + + private static class AddCheckConstraintRequestStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, AddCheckConstraintRequest 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: // CHECK_CONSTRAINT_COLS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list400 = iprot.readListBegin(); + struct.checkConstraintCols = new ArrayList(_list400.size); + SQLCheckConstraint _elem401; + for (int _i402 = 0; _i402 < _list400.size; ++_i402) + { + _elem401 = new SQLCheckConstraint(); + _elem401.read(iprot); + struct.checkConstraintCols.add(_elem401); + } + iprot.readListEnd(); + } + struct.setCheckConstraintColsIsSet(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, AddCheckConstraintRequest struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.checkConstraintCols != null) { + oprot.writeFieldBegin(CHECK_CONSTRAINT_COLS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.checkConstraintCols.size())); + for (SQLCheckConstraint _iter403 : struct.checkConstraintCols) + { + _iter403.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class AddCheckConstraintRequestTupleSchemeFactory implements SchemeFactory { + public AddCheckConstraintRequestTupleScheme getScheme() { + return new AddCheckConstraintRequestTupleScheme(); + } + } + + private static class AddCheckConstraintRequestTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, AddCheckConstraintRequest struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + { + oprot.writeI32(struct.checkConstraintCols.size()); + for (SQLCheckConstraint _iter404 : struct.checkConstraintCols) + { + _iter404.write(oprot); + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, AddCheckConstraintRequest struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + { + org.apache.thrift.protocol.TList _list405 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.checkConstraintCols = new ArrayList(_list405.size); + SQLCheckConstraint _elem406; + for (int _i407 = 0; _i407 < _list405.size; ++_i407) + { + _elem406 = new SQLCheckConstraint(); + _elem406.read(iprot); + struct.checkConstraintCols.add(_elem406); + } + } + struct.setCheckConstraintColsIsSet(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 index 6fe0cae3e6..b4b9cf251f 100644 --- 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 @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddDefaultConstrain case 1: // DEFAULT_CONSTRAINT_COLS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list384 = iprot.readListBegin(); - struct.defaultConstraintCols = new ArrayList(_list384.size); - SQLDefaultConstraint _elem385; - for (int _i386 = 0; _i386 < _list384.size; ++_i386) + org.apache.thrift.protocol.TList _list392 = iprot.readListBegin(); + struct.defaultConstraintCols = new ArrayList(_list392.size); + SQLDefaultConstraint _elem393; + for (int _i394 = 0; _i394 < _list392.size; ++_i394) { - _elem385 = new SQLDefaultConstraint(); - _elem385.read(iprot); - struct.defaultConstraintCols.add(_elem385); + _elem393 = new SQLDefaultConstraint(); + _elem393.read(iprot); + struct.defaultConstraintCols.add(_elem393); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AddDefaultConstrai 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 _iter387 : struct.defaultConstraintCols) + for (SQLDefaultConstraint _iter395 : struct.defaultConstraintCols) { - _iter387.write(oprot); + _iter395.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddDefaultConstrain TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.defaultConstraintCols.size()); - for (SQLDefaultConstraint _iter388 : struct.defaultConstraintCols) + for (SQLDefaultConstraint _iter396 : struct.defaultConstraintCols) { - _iter388.write(oprot); + _iter396.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddDefaultConstrain 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 _list389 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.defaultConstraintCols = new ArrayList(_list389.size); - SQLDefaultConstraint _elem390; - for (int _i391 = 0; _i391 < _list389.size; ++_i391) + org.apache.thrift.protocol.TList _list397 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.defaultConstraintCols = new ArrayList(_list397.size); + SQLDefaultConstraint _elem398; + for (int _i399 = 0; _i399 < _list397.size; ++_i399) { - _elem390 = new SQLDefaultConstraint(); - _elem390.read(iprot); - struct.defaultConstraintCols.add(_elem390); + _elem398 = new SQLDefaultConstraint(); + _elem398.read(iprot); + struct.defaultConstraintCols.add(_elem398); } } 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 2144dc0a37..374cdc382c 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java @@ -816,13 +816,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddDynamicPartition case 5: // PARTITIONNAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list652 = iprot.readListBegin(); - struct.partitionnames = new ArrayList(_list652.size); - String _elem653; - for (int _i654 = 0; _i654 < _list652.size; ++_i654) + org.apache.thrift.protocol.TList _list668 = iprot.readListBegin(); + struct.partitionnames = new ArrayList(_list668.size); + String _elem669; + for (int _i670 = 0; _i670 < _list668.size; ++_i670) { - _elem653 = iprot.readString(); - struct.partitionnames.add(_elem653); + _elem669 = iprot.readString(); + struct.partitionnames.add(_elem669); } iprot.readListEnd(); } @@ -872,9 +872,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AddDynamicPartitio oprot.writeFieldBegin(PARTITIONNAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitionnames.size())); - for (String _iter655 : struct.partitionnames) + for (String _iter671 : struct.partitionnames) { - oprot.writeString(_iter655); + oprot.writeString(_iter671); } oprot.writeListEnd(); } @@ -910,9 +910,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddDynamicPartition oprot.writeString(struct.tablename); { oprot.writeI32(struct.partitionnames.size()); - for (String _iter656 : struct.partitionnames) + for (String _iter672 : struct.partitionnames) { - oprot.writeString(_iter656); + oprot.writeString(_iter672); } } BitSet optionals = new BitSet(); @@ -937,13 +937,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AddDynamicPartitions struct.tablename = iprot.readString(); struct.setTablenameIsSet(true); { - org.apache.thrift.protocol.TList _list657 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionnames = new ArrayList(_list657.size); - String _elem658; - for (int _i659 = 0; _i659 < _list657.size; ++_i659) + org.apache.thrift.protocol.TList _list673 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionnames = new ArrayList(_list673.size); + String _elem674; + for (int _i675 = 0; _i675 < _list673.size; ++_i675) { - _elem658 = iprot.readString(); - struct.partitionnames.add(_elem658); + _elem674 = iprot.readString(); + struct.partitionnames.add(_elem674); } } 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 6bff65d90e..9a2087ca59 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 _list360 = iprot.readListBegin(); - struct.foreignKeyCols = new ArrayList(_list360.size); - SQLForeignKey _elem361; - for (int _i362 = 0; _i362 < _list360.size; ++_i362) + org.apache.thrift.protocol.TList _list368 = iprot.readListBegin(); + struct.foreignKeyCols = new ArrayList(_list368.size); + SQLForeignKey _elem369; + for (int _i370 = 0; _i370 < _list368.size; ++_i370) { - _elem361 = new SQLForeignKey(); - _elem361.read(iprot); - struct.foreignKeyCols.add(_elem361); + _elem369 = new SQLForeignKey(); + _elem369.read(iprot); + struct.foreignKeyCols.add(_elem369); } 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 _iter363 : struct.foreignKeyCols) + for (SQLForeignKey _iter371 : struct.foreignKeyCols) { - _iter363.write(oprot); + _iter371.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 _iter364 : struct.foreignKeyCols) + for (SQLForeignKey _iter372 : struct.foreignKeyCols) { - _iter364.write(oprot); + _iter372.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 _list365 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.foreignKeyCols = new ArrayList(_list365.size); - SQLForeignKey _elem366; - for (int _i367 = 0; _i367 < _list365.size; ++_i367) + org.apache.thrift.protocol.TList _list373 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.foreignKeyCols = new ArrayList(_list373.size); + SQLForeignKey _elem374; + for (int _i375 = 0; _i375 < _list373.size; ++_i375) { - _elem366 = new SQLForeignKey(); - _elem366.read(iprot); - struct.foreignKeyCols.add(_elem366); + _elem374 = new SQLForeignKey(); + _elem374.read(iprot); + struct.foreignKeyCols.add(_elem374); } } 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 35f1a56977..d3d771cdfa 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 _list376 = iprot.readListBegin(); - struct.notNullConstraintCols = new ArrayList(_list376.size); - SQLNotNullConstraint _elem377; - for (int _i378 = 0; _i378 < _list376.size; ++_i378) + org.apache.thrift.protocol.TList _list384 = iprot.readListBegin(); + struct.notNullConstraintCols = new ArrayList(_list384.size); + SQLNotNullConstraint _elem385; + for (int _i386 = 0; _i386 < _list384.size; ++_i386) { - _elem377 = new SQLNotNullConstraint(); - _elem377.read(iprot); - struct.notNullConstraintCols.add(_elem377); + _elem385 = new SQLNotNullConstraint(); + _elem385.read(iprot); + struct.notNullConstraintCols.add(_elem385); } 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 _iter379 : struct.notNullConstraintCols) + for (SQLNotNullConstraint _iter387 : struct.notNullConstraintCols) { - _iter379.write(oprot); + _iter387.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 _iter380 : struct.notNullConstraintCols) + for (SQLNotNullConstraint _iter388 : struct.notNullConstraintCols) { - _iter380.write(oprot); + _iter388.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 _list381 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.notNullConstraintCols = new ArrayList(_list381.size); - SQLNotNullConstraint _elem382; - for (int _i383 = 0; _i383 < _list381.size; ++_i383) + org.apache.thrift.protocol.TList _list389 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.notNullConstraintCols = new ArrayList(_list389.size); + SQLNotNullConstraint _elem390; + for (int _i391 = 0; _i391 < _list389.size; ++_i391) { - _elem382 = new SQLNotNullConstraint(); - _elem382.read(iprot); - struct.notNullConstraintCols.add(_elem382); + _elem390 = new SQLNotNullConstraint(); + _elem390.read(iprot); + struct.notNullConstraintCols.add(_elem390); } } 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 02f0dfa1c3..1e6f973f46 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 _list458 = iprot.readListBegin(); - struct.parts = new ArrayList(_list458.size); - Partition _elem459; - for (int _i460 = 0; _i460 < _list458.size; ++_i460) + org.apache.thrift.protocol.TList _list474 = iprot.readListBegin(); + struct.parts = new ArrayList(_list474.size); + Partition _elem475; + for (int _i476 = 0; _i476 < _list474.size; ++_i476) { - _elem459 = new Partition(); - _elem459.read(iprot); - struct.parts.add(_elem459); + _elem475 = new Partition(); + _elem475.read(iprot); + struct.parts.add(_elem475); } 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 _iter461 : struct.parts) + for (Partition _iter477 : struct.parts) { - _iter461.write(oprot); + _iter477.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 _iter462 : struct.parts) + for (Partition _iter478 : struct.parts) { - _iter462.write(oprot); + _iter478.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 _list463 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.parts = new ArrayList(_list463.size); - Partition _elem464; - for (int _i465 = 0; _i465 < _list463.size; ++_i465) + org.apache.thrift.protocol.TList _list479 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.parts = new ArrayList(_list479.size); + Partition _elem480; + for (int _i481 = 0; _i481 < _list479.size; ++_i481) { - _elem464 = new Partition(); - _elem464.read(iprot); - struct.parts.add(_elem464); + _elem480 = new Partition(); + _elem480.read(iprot); + struct.parts.add(_elem480); } } 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 347c267d5b..fb21b45183 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 _list450 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list450.size); - Partition _elem451; - for (int _i452 = 0; _i452 < _list450.size; ++_i452) + org.apache.thrift.protocol.TList _list466 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list466.size); + Partition _elem467; + for (int _i468 = 0; _i468 < _list466.size; ++_i468) { - _elem451 = new Partition(); - _elem451.read(iprot); - struct.partitions.add(_elem451); + _elem467 = new Partition(); + _elem467.read(iprot); + struct.partitions.add(_elem467); } 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 _iter453 : struct.partitions) + for (Partition _iter469 : struct.partitions) { - _iter453.write(oprot); + _iter469.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 _iter454 : struct.partitions) + for (Partition _iter470 : struct.partitions) { - _iter454.write(oprot); + _iter470.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 _list455 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list455.size); - Partition _elem456; - for (int _i457 = 0; _i457 < _list455.size; ++_i457) + org.apache.thrift.protocol.TList _list471 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list471.size); + Partition _elem472; + for (int _i473 = 0; _i473 < _list471.size; ++_i473) { - _elem456 = new Partition(); - _elem456.read(iprot); - struct.partitions.add(_elem456); + _elem472 = new Partition(); + _elem472.read(iprot); + struct.partitions.add(_elem472); } } 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 c2f12aa3cb..79c79302d8 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 _list352 = iprot.readListBegin(); - struct.primaryKeyCols = new ArrayList(_list352.size); - SQLPrimaryKey _elem353; - for (int _i354 = 0; _i354 < _list352.size; ++_i354) + org.apache.thrift.protocol.TList _list360 = iprot.readListBegin(); + struct.primaryKeyCols = new ArrayList(_list360.size); + SQLPrimaryKey _elem361; + for (int _i362 = 0; _i362 < _list360.size; ++_i362) { - _elem353 = new SQLPrimaryKey(); - _elem353.read(iprot); - struct.primaryKeyCols.add(_elem353); + _elem361 = new SQLPrimaryKey(); + _elem361.read(iprot); + struct.primaryKeyCols.add(_elem361); } 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 _iter355 : struct.primaryKeyCols) + for (SQLPrimaryKey _iter363 : struct.primaryKeyCols) { - _iter355.write(oprot); + _iter363.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 _iter356 : struct.primaryKeyCols) + for (SQLPrimaryKey _iter364 : struct.primaryKeyCols) { - _iter356.write(oprot); + _iter364.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 _list357 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.primaryKeyCols = new ArrayList(_list357.size); - SQLPrimaryKey _elem358; - for (int _i359 = 0; _i359 < _list357.size; ++_i359) + org.apache.thrift.protocol.TList _list365 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.primaryKeyCols = new ArrayList(_list365.size); + SQLPrimaryKey _elem366; + for (int _i367 = 0; _i367 < _list365.size; ++_i367) { - _elem358 = new SQLPrimaryKey(); - _elem358.read(iprot); - struct.primaryKeyCols.add(_elem358); + _elem366 = new SQLPrimaryKey(); + _elem366.read(iprot); + struct.primaryKeyCols.add(_elem366); } } 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 5cd7677cd8..0cfee8a51f 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 _list368 = iprot.readListBegin(); - struct.uniqueConstraintCols = new ArrayList(_list368.size); - SQLUniqueConstraint _elem369; - for (int _i370 = 0; _i370 < _list368.size; ++_i370) + org.apache.thrift.protocol.TList _list376 = iprot.readListBegin(); + struct.uniqueConstraintCols = new ArrayList(_list376.size); + SQLUniqueConstraint _elem377; + for (int _i378 = 0; _i378 < _list376.size; ++_i378) { - _elem369 = new SQLUniqueConstraint(); - _elem369.read(iprot); - struct.uniqueConstraintCols.add(_elem369); + _elem377 = new SQLUniqueConstraint(); + _elem377.read(iprot); + struct.uniqueConstraintCols.add(_elem377); } 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 _iter371 : struct.uniqueConstraintCols) + for (SQLUniqueConstraint _iter379 : struct.uniqueConstraintCols) { - _iter371.write(oprot); + _iter379.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 _iter372 : struct.uniqueConstraintCols) + for (SQLUniqueConstraint _iter380 : struct.uniqueConstraintCols) { - _iter372.write(oprot); + _iter380.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 _list373 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.uniqueConstraintCols = new ArrayList(_list373.size); - SQLUniqueConstraint _elem374; - for (int _i375 = 0; _i375 < _list373.size; ++_i375) + org.apache.thrift.protocol.TList _list381 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.uniqueConstraintCols = new ArrayList(_list381.size); + SQLUniqueConstraint _elem382; + for (int _i383 = 0; _i383 < _list381.size; ++_i383) { - _elem374 = new SQLUniqueConstraint(); - _elem374.read(iprot); - struct.uniqueConstraintCols.add(_elem374); + _elem382 = new SQLUniqueConstraint(); + _elem382.read(iprot); + struct.uniqueConstraintCols.add(_elem382); } } struct.setUniqueConstraintColsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsRequest.java index b143812dc7..bf9585493a 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsRequest.java @@ -521,13 +521,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AllocateTableWriteI case 1: // TXN_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list586 = iprot.readListBegin(); - struct.txnIds = new ArrayList(_list586.size); - long _elem587; - for (int _i588 = 0; _i588 < _list586.size; ++_i588) + org.apache.thrift.protocol.TList _list602 = iprot.readListBegin(); + struct.txnIds = new ArrayList(_list602.size); + long _elem603; + for (int _i604 = 0; _i604 < _list602.size; ++_i604) { - _elem587 = iprot.readI64(); - struct.txnIds.add(_elem587); + _elem603 = iprot.readI64(); + struct.txnIds.add(_elem603); } iprot.readListEnd(); } @@ -569,9 +569,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AllocateTableWrite oprot.writeFieldBegin(TXN_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.txnIds.size())); - for (long _iter589 : struct.txnIds) + for (long _iter605 : struct.txnIds) { - oprot.writeI64(_iter589); + oprot.writeI64(_iter605); } oprot.writeListEnd(); } @@ -606,9 +606,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteI TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.txnIds.size()); - for (long _iter590 : struct.txnIds) + for (long _iter606 : struct.txnIds) { - oprot.writeI64(_iter590); + oprot.writeI64(_iter606); } } oprot.writeString(struct.dbName); @@ -619,13 +619,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteI public void read(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteIdsRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list591 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.txnIds = new ArrayList(_list591.size); - long _elem592; - for (int _i593 = 0; _i593 < _list591.size; ++_i593) + org.apache.thrift.protocol.TList _list607 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txnIds = new ArrayList(_list607.size); + long _elem608; + for (int _i609 = 0; _i609 < _list607.size; ++_i609) { - _elem592 = iprot.readI64(); - struct.txnIds.add(_elem592); + _elem608 = iprot.readI64(); + struct.txnIds.add(_elem608); } } struct.setTxnIdsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsResponse.java index d9ed20d631..5ce8d51469 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsResponse.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AllocateTableWriteI case 1: // TXN_TO_WRITE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list594 = iprot.readListBegin(); - struct.txnToWriteIds = new ArrayList(_list594.size); - TxnToWriteId _elem595; - for (int _i596 = 0; _i596 < _list594.size; ++_i596) + org.apache.thrift.protocol.TList _list610 = iprot.readListBegin(); + struct.txnToWriteIds = new ArrayList(_list610.size); + TxnToWriteId _elem611; + for (int _i612 = 0; _i612 < _list610.size; ++_i612) { - _elem595 = new TxnToWriteId(); - _elem595.read(iprot); - struct.txnToWriteIds.add(_elem595); + _elem611 = new TxnToWriteId(); + _elem611.read(iprot); + struct.txnToWriteIds.add(_elem611); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AllocateTableWrite oprot.writeFieldBegin(TXN_TO_WRITE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.txnToWriteIds.size())); - for (TxnToWriteId _iter597 : struct.txnToWriteIds) + for (TxnToWriteId _iter613 : struct.txnToWriteIds) { - _iter597.write(oprot); + _iter613.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteI TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.txnToWriteIds.size()); - for (TxnToWriteId _iter598 : struct.txnToWriteIds) + for (TxnToWriteId _iter614 : struct.txnToWriteIds) { - _iter598.write(oprot); + _iter614.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteI public void read(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteIdsResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list599 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.txnToWriteIds = new ArrayList(_list599.size); - TxnToWriteId _elem600; - for (int _i601 = 0; _i601 < _list599.size; ++_i601) + org.apache.thrift.protocol.TList _list615 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.txnToWriteIds = new ArrayList(_list615.size); + TxnToWriteId _elem616; + for (int _i617 = 0; _i617 < _list615.size; ++_i617) { - _elem600 = new TxnToWriteId(); - _elem600.read(iprot); - struct.txnToWriteIds.add(_elem600); + _elem616 = new TxnToWriteId(); + _elem616.read(iprot); + struct.txnToWriteIds.add(_elem616); } } struct.setTxnToWriteIdsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CheckConstraintsRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CheckConstraintsRequest.java new file mode 100644 index 0000000000..2a8d81a18b --- /dev/null +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CheckConstraintsRequest.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 CheckConstraintsRequest 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("CheckConstraintsRequest"); + + 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 CheckConstraintsRequestStandardSchemeFactory()); + schemes.put(TupleScheme.class, new CheckConstraintsRequestTupleSchemeFactory()); + } + + 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(CheckConstraintsRequest.class, metaDataMap); + } + + public CheckConstraintsRequest() { + } + + public CheckConstraintsRequest( + String db_name, + String tbl_name) + { + this(); + this.db_name = db_name; + this.tbl_name = tbl_name; + } + + /** + * Performs a deep copy on other. + */ + public CheckConstraintsRequest(CheckConstraintsRequest other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + } + + public CheckConstraintsRequest deepCopy() { + return new CheckConstraintsRequest(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 CheckConstraintsRequest) + return this.equals((CheckConstraintsRequest)that); + return false; + } + + public boolean equals(CheckConstraintsRequest 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(CheckConstraintsRequest 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("CheckConstraintsRequest("); + 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 CheckConstraintsRequestStandardSchemeFactory implements SchemeFactory { + public CheckConstraintsRequestStandardScheme getScheme() { + return new CheckConstraintsRequestStandardScheme(); + } + } + + private static class CheckConstraintsRequestStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, CheckConstraintsRequest 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, CheckConstraintsRequest 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 CheckConstraintsRequestTupleSchemeFactory implements SchemeFactory { + public CheckConstraintsRequestTupleScheme getScheme() { + return new CheckConstraintsRequestTupleScheme(); + } + } + + private static class CheckConstraintsRequestTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, CheckConstraintsRequest 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, CheckConstraintsRequest 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/CheckConstraintsResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CheckConstraintsResponse.java new file mode 100644 index 0000000000..a0a4422914 --- /dev/null +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CheckConstraintsResponse.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 CheckConstraintsResponse 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("CheckConstraintsResponse"); + + private static final org.apache.thrift.protocol.TField CHECK_CONSTRAINTS_FIELD_DESC = new org.apache.thrift.protocol.TField("checkConstraints", org.apache.thrift.protocol.TType.LIST, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new CheckConstraintsResponseStandardSchemeFactory()); + schemes.put(TupleScheme.class, new CheckConstraintsResponseTupleSchemeFactory()); + } + + private List checkConstraints; // 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 { + CHECK_CONSTRAINTS((short)1, "checkConstraints"); + + 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: // CHECK_CONSTRAINTS + return CHECK_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.CHECK_CONSTRAINTS, new org.apache.thrift.meta_data.FieldMetaData("checkConstraints", 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, SQLCheckConstraint.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CheckConstraintsResponse.class, metaDataMap); + } + + public CheckConstraintsResponse() { + } + + public CheckConstraintsResponse( + List checkConstraints) + { + this(); + this.checkConstraints = checkConstraints; + } + + /** + * Performs a deep copy on other. + */ + public CheckConstraintsResponse(CheckConstraintsResponse other) { + if (other.isSetCheckConstraints()) { + List __this__checkConstraints = new ArrayList(other.checkConstraints.size()); + for (SQLCheckConstraint other_element : other.checkConstraints) { + __this__checkConstraints.add(new SQLCheckConstraint(other_element)); + } + this.checkConstraints = __this__checkConstraints; + } + } + + public CheckConstraintsResponse deepCopy() { + return new CheckConstraintsResponse(this); + } + + @Override + public void clear() { + this.checkConstraints = null; + } + + public int getCheckConstraintsSize() { + return (this.checkConstraints == null) ? 0 : this.checkConstraints.size(); + } + + public java.util.Iterator getCheckConstraintsIterator() { + return (this.checkConstraints == null) ? null : this.checkConstraints.iterator(); + } + + public void addToCheckConstraints(SQLCheckConstraint elem) { + if (this.checkConstraints == null) { + this.checkConstraints = new ArrayList(); + } + this.checkConstraints.add(elem); + } + + public List getCheckConstraints() { + return this.checkConstraints; + } + + public void setCheckConstraints(List checkConstraints) { + this.checkConstraints = checkConstraints; + } + + public void unsetCheckConstraints() { + this.checkConstraints = null; + } + + /** Returns true if field checkConstraints is set (has been assigned a value) and false otherwise */ + public boolean isSetCheckConstraints() { + return this.checkConstraints != null; + } + + public void setCheckConstraintsIsSet(boolean value) { + if (!value) { + this.checkConstraints = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case CHECK_CONSTRAINTS: + if (value == null) { + unsetCheckConstraints(); + } else { + setCheckConstraints((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case CHECK_CONSTRAINTS: + return getCheckConstraints(); + + } + 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 CHECK_CONSTRAINTS: + return isSetCheckConstraints(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof CheckConstraintsResponse) + return this.equals((CheckConstraintsResponse)that); + return false; + } + + public boolean equals(CheckConstraintsResponse that) { + if (that == null) + return false; + + boolean this_present_checkConstraints = true && this.isSetCheckConstraints(); + boolean that_present_checkConstraints = true && that.isSetCheckConstraints(); + if (this_present_checkConstraints || that_present_checkConstraints) { + if (!(this_present_checkConstraints && that_present_checkConstraints)) + return false; + if (!this.checkConstraints.equals(that.checkConstraints)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_checkConstraints = true && (isSetCheckConstraints()); + list.add(present_checkConstraints); + if (present_checkConstraints) + list.add(checkConstraints); + + return list.hashCode(); + } + + @Override + public int compareTo(CheckConstraintsResponse other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetCheckConstraints()).compareTo(other.isSetCheckConstraints()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCheckConstraints()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.checkConstraints, other.checkConstraints); + 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("CheckConstraintsResponse("); + boolean first = true; + + sb.append("checkConstraints:"); + if (this.checkConstraints == null) { + sb.append("null"); + } else { + sb.append(this.checkConstraints); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetCheckConstraints()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'checkConstraints' 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 CheckConstraintsResponseStandardSchemeFactory implements SchemeFactory { + public CheckConstraintsResponseStandardScheme getScheme() { + return new CheckConstraintsResponseStandardScheme(); + } + } + + private static class CheckConstraintsResponseStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, CheckConstraintsResponse 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: // CHECK_CONSTRAINTS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list352 = iprot.readListBegin(); + struct.checkConstraints = new ArrayList(_list352.size); + SQLCheckConstraint _elem353; + for (int _i354 = 0; _i354 < _list352.size; ++_i354) + { + _elem353 = new SQLCheckConstraint(); + _elem353.read(iprot); + struct.checkConstraints.add(_elem353); + } + iprot.readListEnd(); + } + struct.setCheckConstraintsIsSet(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, CheckConstraintsResponse struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.checkConstraints != null) { + oprot.writeFieldBegin(CHECK_CONSTRAINTS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.checkConstraints.size())); + for (SQLCheckConstraint _iter355 : struct.checkConstraints) + { + _iter355.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class CheckConstraintsResponseTupleSchemeFactory implements SchemeFactory { + public CheckConstraintsResponseTupleScheme getScheme() { + return new CheckConstraintsResponseTupleScheme(); + } + } + + private static class CheckConstraintsResponseTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, CheckConstraintsResponse struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + { + oprot.writeI32(struct.checkConstraints.size()); + for (SQLCheckConstraint _iter356 : struct.checkConstraints) + { + _iter356.write(oprot); + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, CheckConstraintsResponse struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + { + org.apache.thrift.protocol.TList _list357 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.checkConstraints = new ArrayList(_list357.size); + SQLCheckConstraint _elem358; + for (int _i359 = 0; _i359 < _list357.size; ++_i359) + { + _elem358 = new SQLCheckConstraint(); + _elem358.read(iprot); + struct.checkConstraints.add(_elem358); + } + } + struct.setCheckConstraintsIsSet(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 78d9255bb8..c4c1835573 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 _list752 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list752.size); - long _elem753; - for (int _i754 = 0; _i754 < _list752.size; ++_i754) + org.apache.thrift.protocol.TList _list768 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list768.size); + long _elem769; + for (int _i770 = 0; _i770 < _list768.size; ++_i770) { - _elem753 = iprot.readI64(); - struct.fileIds.add(_elem753); + _elem769 = iprot.readI64(); + struct.fileIds.add(_elem769); } 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 _iter755 : struct.fileIds) + for (long _iter771 : struct.fileIds) { - oprot.writeI64(_iter755); + oprot.writeI64(_iter771); } 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 _iter756 : struct.fileIds) + for (long _iter772 : struct.fileIds) { - oprot.writeI64(_iter756); + oprot.writeI64(_iter772); } } } @@ -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 _list757 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list757.size); - long _elem758; - for (int _i759 = 0; _i759 < _list757.size; ++_i759) + org.apache.thrift.protocol.TList _list773 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list773.size); + long _elem774; + for (int _i775 = 0; _i775 < _list773.size; ++_i775) { - _elem758 = iprot.readI64(); - struct.fileIds.add(_elem758); + _elem774 = iprot.readI64(); + struct.fileIds.add(_elem774); } } 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 c27792f61f..3085522cbe 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 _list768 = iprot.readListBegin(); - struct.values = new ArrayList(_list768.size); - ClientCapability _elem769; - for (int _i770 = 0; _i770 < _list768.size; ++_i770) + org.apache.thrift.protocol.TList _list784 = iprot.readListBegin(); + struct.values = new ArrayList(_list784.size); + ClientCapability _elem785; + for (int _i786 = 0; _i786 < _list784.size; ++_i786) { - _elem769 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem769); + _elem785 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem785); } 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 _iter771 : struct.values) + for (ClientCapability _iter787 : struct.values) { - oprot.writeI32(_iter771.getValue()); + oprot.writeI32(_iter787.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 _iter772 : struct.values) + for (ClientCapability _iter788 : struct.values) { - oprot.writeI32(_iter772.getValue()); + oprot.writeI32(_iter788.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 _list773 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.values = new ArrayList(_list773.size); - ClientCapability _elem774; - for (int _i775 = 0; _i775 < _list773.size; ++_i775) + org.apache.thrift.protocol.TList _list789 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.values = new ArrayList(_list789.size); + ClientCapability _elem790; + for (int _i791 = 0; _i791 < _list789.size; ++_i791) { - _elem774 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem774); + _elem790 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem790); } } 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 18581f3983..1a27ff5fcf 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 _map634 = iprot.readMapBegin(); - struct.properties = new HashMap(2*_map634.size); - String _key635; - String _val636; - for (int _i637 = 0; _i637 < _map634.size; ++_i637) + org.apache.thrift.protocol.TMap _map650 = iprot.readMapBegin(); + struct.properties = new HashMap(2*_map650.size); + String _key651; + String _val652; + for (int _i653 = 0; _i653 < _map650.size; ++_i653) { - _key635 = iprot.readString(); - _val636 = iprot.readString(); - struct.properties.put(_key635, _val636); + _key651 = iprot.readString(); + _val652 = iprot.readString(); + struct.properties.put(_key651, _val652); } 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 _iter638 : struct.properties.entrySet()) + for (Map.Entry _iter654 : struct.properties.entrySet()) { - oprot.writeString(_iter638.getKey()); - oprot.writeString(_iter638.getValue()); + oprot.writeString(_iter654.getKey()); + oprot.writeString(_iter654.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 _iter639 : struct.properties.entrySet()) + for (Map.Entry _iter655 : struct.properties.entrySet()) { - oprot.writeString(_iter639.getKey()); - oprot.writeString(_iter639.getValue()); + oprot.writeString(_iter655.getKey()); + oprot.writeString(_iter655.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 _map640 = 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*_map640.size); - String _key641; - String _val642; - for (int _i643 = 0; _i643 < _map640.size; ++_i643) + org.apache.thrift.protocol.TMap _map656 = 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*_map656.size); + String _key657; + String _val658; + for (int _i659 = 0; _i659 < _map656.size; ++_i659) { - _key641 = iprot.readString(); - _val642 = iprot.readString(); - struct.properties.put(_key641, _val642); + _key657 = iprot.readString(); + _val658 = iprot.readString(); + struct.properties.put(_key657, _val658); } } 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 ed89b2e938..b744177383 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 _set660 = iprot.readSetBegin(); - struct.tablesUsed = new HashSet(2*_set660.size); - String _elem661; - for (int _i662 = 0; _i662 < _set660.size; ++_i662) + org.apache.thrift.protocol.TSet _set676 = iprot.readSetBegin(); + struct.tablesUsed = new HashSet(2*_set676.size); + String _elem677; + for (int _i678 = 0; _i678 < _set676.size; ++_i678) { - _elem661 = iprot.readString(); - struct.tablesUsed.add(_elem661); + _elem677 = iprot.readString(); + struct.tablesUsed.add(_elem677); } 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 _iter663 : struct.tablesUsed) + for (String _iter679 : struct.tablesUsed) { - oprot.writeString(_iter663); + oprot.writeString(_iter679); } 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 _iter664 : struct.tablesUsed) + for (String _iter680 : struct.tablesUsed) { - oprot.writeString(_iter664); + oprot.writeString(_iter680); } } 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 _set665 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tablesUsed = new HashSet(2*_set665.size); - String _elem666; - for (int _i667 = 0; _i667 < _set665.size; ++_i667) + org.apache.thrift.protocol.TSet _set681 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tablesUsed = new HashSet(2*_set681.size); + String _elem682; + for (int _i683 = 0; _i683 < _set681.size; ++_i683) { - _elem666 = iprot.readString(); - struct.tablesUsed.add(_elem666); + _elem682 = iprot.readString(); + struct.tablesUsed.add(_elem682); } } struct.setTablesUsedIsSet(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 5237c643f0..e3f9161628 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 _list466 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list466.size); - Partition _elem467; - for (int _i468 = 0; _i468 < _list466.size; ++_i468) + org.apache.thrift.protocol.TList _list482 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list482.size); + Partition _elem483; + for (int _i484 = 0; _i484 < _list482.size; ++_i484) { - _elem467 = new Partition(); - _elem467.read(iprot); - struct.partitions.add(_elem467); + _elem483 = new Partition(); + _elem483.read(iprot); + struct.partitions.add(_elem483); } 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 _iter469 : struct.partitions) + for (Partition _iter485 : struct.partitions) { - _iter469.write(oprot); + _iter485.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 _iter470 : struct.partitions) + for (Partition _iter486 : struct.partitions) { - _iter470.write(oprot); + _iter486.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 _list471 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list471.size); - Partition _elem472; - for (int _i473 = 0; _i473 < _list471.size; ++_i473) + org.apache.thrift.protocol.TList _list487 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list487.size); + Partition _elem488; + for (int _i489 = 0; _i489 < _list487.size; ++_i489) { - _elem472 = new Partition(); - _elem472.read(iprot); - struct.partitions.add(_elem472); + _elem488 = new Partition(); + _elem488.read(iprot); + struct.partitions.add(_elem488); } } struct.setPartitionsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FindSchemasByColsResp.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FindSchemasByColsResp.java index 01bc32d70b..807f8263a0 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FindSchemasByColsResp.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FindSchemasByColsResp.java @@ -350,14 +350,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, FindSchemasByColsRe case 1: // SCHEMA_VERSIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list872 = iprot.readListBegin(); - struct.schemaVersions = new ArrayList(_list872.size); - SchemaVersionDescriptor _elem873; - for (int _i874 = 0; _i874 < _list872.size; ++_i874) + org.apache.thrift.protocol.TList _list888 = iprot.readListBegin(); + struct.schemaVersions = new ArrayList(_list888.size); + SchemaVersionDescriptor _elem889; + for (int _i890 = 0; _i890 < _list888.size; ++_i890) { - _elem873 = new SchemaVersionDescriptor(); - _elem873.read(iprot); - struct.schemaVersions.add(_elem873); + _elem889 = new SchemaVersionDescriptor(); + _elem889.read(iprot); + struct.schemaVersions.add(_elem889); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, FindSchemasByColsR oprot.writeFieldBegin(SCHEMA_VERSIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.schemaVersions.size())); - for (SchemaVersionDescriptor _iter875 : struct.schemaVersions) + for (SchemaVersionDescriptor _iter891 : struct.schemaVersions) { - _iter875.write(oprot); + _iter891.write(oprot); } oprot.writeListEnd(); } @@ -416,9 +416,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, FindSchemasByColsRe if (struct.isSetSchemaVersions()) { { oprot.writeI32(struct.schemaVersions.size()); - for (SchemaVersionDescriptor _iter876 : struct.schemaVersions) + for (SchemaVersionDescriptor _iter892 : struct.schemaVersions) { - _iter876.write(oprot); + _iter892.write(oprot); } } } @@ -430,14 +430,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, FindSchemasByColsRes BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list877 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.schemaVersions = new ArrayList(_list877.size); - SchemaVersionDescriptor _elem878; - for (int _i879 = 0; _i879 < _list877.size; ++_i879) + org.apache.thrift.protocol.TList _list893 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.schemaVersions = new ArrayList(_list893.size); + SchemaVersionDescriptor _elem894; + for (int _i895 = 0; _i895 < _list893.size; ++_i895) { - _elem878 = new SchemaVersionDescriptor(); - _elem878.read(iprot); - struct.schemaVersions.add(_elem878); + _elem894 = new SchemaVersionDescriptor(); + _elem894.read(iprot); + struct.schemaVersions.add(_elem894); } } struct.setSchemaVersionsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java index 64335903ff..58b1d7cf92 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 _list692 = iprot.readListBegin(); - struct.partitionVals = new ArrayList(_list692.size); - String _elem693; - for (int _i694 = 0; _i694 < _list692.size; ++_i694) + org.apache.thrift.protocol.TList _list708 = iprot.readListBegin(); + struct.partitionVals = new ArrayList(_list708.size); + String _elem709; + for (int _i710 = 0; _i710 < _list708.size; ++_i710) { - _elem693 = iprot.readString(); - struct.partitionVals.add(_elem693); + _elem709 = iprot.readString(); + struct.partitionVals.add(_elem709); } 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 _iter695 : struct.partitionVals) + for (String _iter711 : struct.partitionVals) { - oprot.writeString(_iter695); + oprot.writeString(_iter711); } 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 _iter696 : struct.partitionVals) + for (String _iter712 : struct.partitionVals) { - oprot.writeString(_iter696); + oprot.writeString(_iter712); } } } @@ -843,13 +843,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, FireEventRequest str } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list697 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionVals = new ArrayList(_list697.size); - String _elem698; - for (int _i699 = 0; _i699 < _list697.size; ++_i699) + org.apache.thrift.protocol.TList _list713 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionVals = new ArrayList(_list713.size); + String _elem714; + for (int _i715 = 0; _i715 < _list713.size; ++_i715) { - _elem698 = iprot.readString(); - struct.partitionVals.add(_elem698); + _elem714 = iprot.readString(); + struct.partitionVals.add(_elem714); } } 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 5e785df67b..2a6c28d311 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 _list522 = iprot.readListBegin(); - struct.resourceUris = new ArrayList(_list522.size); - ResourceUri _elem523; - for (int _i524 = 0; _i524 < _list522.size; ++_i524) + org.apache.thrift.protocol.TList _list538 = iprot.readListBegin(); + struct.resourceUris = new ArrayList(_list538.size); + ResourceUri _elem539; + for (int _i540 = 0; _i540 < _list538.size; ++_i540) { - _elem523 = new ResourceUri(); - _elem523.read(iprot); - struct.resourceUris.add(_elem523); + _elem539 = new ResourceUri(); + _elem539.read(iprot); + struct.resourceUris.add(_elem539); } 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 _iter525 : struct.resourceUris) + for (ResourceUri _iter541 : struct.resourceUris) { - _iter525.write(oprot); + _iter541.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 _iter526 : struct.resourceUris) + for (ResourceUri _iter542 : struct.resourceUris) { - _iter526.write(oprot); + _iter542.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 _list527 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.resourceUris = new ArrayList(_list527.size); - ResourceUri _elem528; - for (int _i529 = 0; _i529 < _list527.size; ++_i529) + org.apache.thrift.protocol.TList _list543 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.resourceUris = new ArrayList(_list543.size); + ResourceUri _elem544; + for (int _i545 = 0; _i545 < _list543.size; ++_i545) { - _elem528 = new ResourceUri(); - _elem528.read(iprot); - struct.resourceUris.add(_elem528); + _elem544 = new ResourceUri(); + _elem544.read(iprot); + struct.resourceUris.add(_elem544); } } 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 ce90d65e76..522fb92bf9 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 _list760 = iprot.readListBegin(); - struct.functions = new ArrayList(_list760.size); - Function _elem761; - for (int _i762 = 0; _i762 < _list760.size; ++_i762) + org.apache.thrift.protocol.TList _list776 = iprot.readListBegin(); + struct.functions = new ArrayList(_list776.size); + Function _elem777; + for (int _i778 = 0; _i778 < _list776.size; ++_i778) { - _elem761 = new Function(); - _elem761.read(iprot); - struct.functions.add(_elem761); + _elem777 = new Function(); + _elem777.read(iprot); + struct.functions.add(_elem777); } 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 _iter763 : struct.functions) + for (Function _iter779 : struct.functions) { - _iter763.write(oprot); + _iter779.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 _iter764 : struct.functions) + for (Function _iter780 : struct.functions) { - _iter764.write(oprot); + _iter780.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 _list765 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.functions = new ArrayList(_list765.size); - Function _elem766; - for (int _i767 = 0; _i767 < _list765.size; ++_i767) + org.apache.thrift.protocol.TList _list781 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.functions = new ArrayList(_list781.size); + Function _elem782; + for (int _i783 = 0; _i783 < _list781.size; ++_i783) { - _elem766 = new Function(); - _elem766.read(iprot); - struct.functions.add(_elem766); + _elem782 = new Function(); + _elem782.read(iprot); + struct.functions.add(_elem782); } } 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 025a04a33c..f5f1eb33c8 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 _list710 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list710.size); - long _elem711; - for (int _i712 = 0; _i712 < _list710.size; ++_i712) + org.apache.thrift.protocol.TList _list726 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list726.size); + long _elem727; + for (int _i728 = 0; _i728 < _list726.size; ++_i728) { - _elem711 = iprot.readI64(); - struct.fileIds.add(_elem711); + _elem727 = iprot.readI64(); + struct.fileIds.add(_elem727); } 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 _iter713 : struct.fileIds) + for (long _iter729 : struct.fileIds) { - oprot.writeI64(_iter713); + oprot.writeI64(_iter729); } 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 _iter714 : struct.fileIds) + for (long _iter730 : struct.fileIds) { - oprot.writeI64(_iter714); + oprot.writeI64(_iter730); } } 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 _list715 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list715.size); - long _elem716; - for (int _i717 = 0; _i717 < _list715.size; ++_i717) + org.apache.thrift.protocol.TList _list731 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list731.size); + long _elem732; + for (int _i733 = 0; _i733 < _list731.size; ++_i733) { - _elem716 = iprot.readI64(); - struct.fileIds.add(_elem716); + _elem732 = iprot.readI64(); + struct.fileIds.add(_elem732); } } 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 2ba496fb11..370ab66e19 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 _map700 = iprot.readMapBegin(); - struct.metadata = new HashMap(2*_map700.size); - long _key701; - MetadataPpdResult _val702; - for (int _i703 = 0; _i703 < _map700.size; ++_i703) + org.apache.thrift.protocol.TMap _map716 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map716.size); + long _key717; + MetadataPpdResult _val718; + for (int _i719 = 0; _i719 < _map716.size; ++_i719) { - _key701 = iprot.readI64(); - _val702 = new MetadataPpdResult(); - _val702.read(iprot); - struct.metadata.put(_key701, _val702); + _key717 = iprot.readI64(); + _val718 = new MetadataPpdResult(); + _val718.read(iprot); + struct.metadata.put(_key717, _val718); } 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 _iter704 : struct.metadata.entrySet()) + for (Map.Entry _iter720 : struct.metadata.entrySet()) { - oprot.writeI64(_iter704.getKey()); - _iter704.getValue().write(oprot); + oprot.writeI64(_iter720.getKey()); + _iter720.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 _iter705 : struct.metadata.entrySet()) + for (Map.Entry _iter721 : struct.metadata.entrySet()) { - oprot.writeI64(_iter705.getKey()); - _iter705.getValue().write(oprot); + oprot.writeI64(_iter721.getKey()); + _iter721.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 _map706 = 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*_map706.size); - long _key707; - MetadataPpdResult _val708; - for (int _i709 = 0; _i709 < _map706.size; ++_i709) + org.apache.thrift.protocol.TMap _map722 = 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*_map722.size); + long _key723; + MetadataPpdResult _val724; + for (int _i725 = 0; _i725 < _map722.size; ++_i725) { - _key707 = iprot.readI64(); - _val708 = new MetadataPpdResult(); - _val708.read(iprot); - struct.metadata.put(_key707, _val708); + _key723 = iprot.readI64(); + _val724 = new MetadataPpdResult(); + _val724.read(iprot); + struct.metadata.put(_key723, _val724); } } 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 e12211f867..c74c2b0d74 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 _list728 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list728.size); - long _elem729; - for (int _i730 = 0; _i730 < _list728.size; ++_i730) + org.apache.thrift.protocol.TList _list744 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list744.size); + long _elem745; + for (int _i746 = 0; _i746 < _list744.size; ++_i746) { - _elem729 = iprot.readI64(); - struct.fileIds.add(_elem729); + _elem745 = iprot.readI64(); + struct.fileIds.add(_elem745); } 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 _iter731 : struct.fileIds) + for (long _iter747 : struct.fileIds) { - oprot.writeI64(_iter731); + oprot.writeI64(_iter747); } 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 _iter732 : struct.fileIds) + for (long _iter748 : struct.fileIds) { - oprot.writeI64(_iter732); + oprot.writeI64(_iter748); } } } @@ -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 _list733 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list733.size); - long _elem734; - for (int _i735 = 0; _i735 < _list733.size; ++_i735) + org.apache.thrift.protocol.TList _list749 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list749.size); + long _elem750; + for (int _i751 = 0; _i751 < _list749.size; ++_i751) { - _elem734 = iprot.readI64(); - struct.fileIds.add(_elem734); + _elem750 = iprot.readI64(); + struct.fileIds.add(_elem750); } } 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 a375723f12..6431b6db20 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 _map718 = iprot.readMapBegin(); - struct.metadata = new HashMap(2*_map718.size); - long _key719; - ByteBuffer _val720; - for (int _i721 = 0; _i721 < _map718.size; ++_i721) + org.apache.thrift.protocol.TMap _map734 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map734.size); + long _key735; + ByteBuffer _val736; + for (int _i737 = 0; _i737 < _map734.size; ++_i737) { - _key719 = iprot.readI64(); - _val720 = iprot.readBinary(); - struct.metadata.put(_key719, _val720); + _key735 = iprot.readI64(); + _val736 = iprot.readBinary(); + struct.metadata.put(_key735, _val736); } 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 _iter722 : struct.metadata.entrySet()) + for (Map.Entry _iter738 : struct.metadata.entrySet()) { - oprot.writeI64(_iter722.getKey()); - oprot.writeBinary(_iter722.getValue()); + oprot.writeI64(_iter738.getKey()); + oprot.writeBinary(_iter738.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 _iter723 : struct.metadata.entrySet()) + for (Map.Entry _iter739 : struct.metadata.entrySet()) { - oprot.writeI64(_iter723.getKey()); - oprot.writeBinary(_iter723.getValue()); + oprot.writeI64(_iter739.getKey()); + oprot.writeBinary(_iter739.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 _map724 = 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*_map724.size); - long _key725; - ByteBuffer _val726; - for (int _i727 = 0; _i727 < _map724.size; ++_i727) + org.apache.thrift.protocol.TMap _map740 = 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*_map740.size); + long _key741; + ByteBuffer _val742; + for (int _i743 = 0; _i743 < _map740.size; ++_i743) { - _key725 = iprot.readI64(); - _val726 = iprot.readBinary(); - struct.metadata.put(_key725, _val726); + _key741 = iprot.readI64(); + _val742 = iprot.readBinary(); + struct.metadata.put(_key741, _val742); } } 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 8950b81929..a9061ab836 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 _list530 = iprot.readListBegin(); - struct.open_txns = new ArrayList(_list530.size); - TxnInfo _elem531; - for (int _i532 = 0; _i532 < _list530.size; ++_i532) + org.apache.thrift.protocol.TList _list546 = iprot.readListBegin(); + struct.open_txns = new ArrayList(_list546.size); + TxnInfo _elem547; + for (int _i548 = 0; _i548 < _list546.size; ++_i548) { - _elem531 = new TxnInfo(); - _elem531.read(iprot); - struct.open_txns.add(_elem531); + _elem547 = new TxnInfo(); + _elem547.read(iprot); + struct.open_txns.add(_elem547); } 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 _iter533 : struct.open_txns) + for (TxnInfo _iter549 : struct.open_txns) { - _iter533.write(oprot); + _iter549.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 _iter534 : struct.open_txns) + for (TxnInfo _iter550 : struct.open_txns) { - _iter534.write(oprot); + _iter550.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 _list535 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.open_txns = new ArrayList(_list535.size); - TxnInfo _elem536; - for (int _i537 = 0; _i537 < _list535.size; ++_i537) + org.apache.thrift.protocol.TList _list551 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.open_txns = new ArrayList(_list551.size); + TxnInfo _elem552; + for (int _i553 = 0; _i553 < _list551.size; ++_i553) { - _elem536 = new TxnInfo(); - _elem536.read(iprot); - struct.open_txns.add(_elem536); + _elem552 = new TxnInfo(); + _elem552.read(iprot); + struct.open_txns.add(_elem552); } } 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 b7e7d4b532..12a125f32a 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 _list538 = iprot.readListBegin(); - struct.open_txns = new ArrayList(_list538.size); - long _elem539; - for (int _i540 = 0; _i540 < _list538.size; ++_i540) + org.apache.thrift.protocol.TList _list554 = iprot.readListBegin(); + struct.open_txns = new ArrayList(_list554.size); + long _elem555; + for (int _i556 = 0; _i556 < _list554.size; ++_i556) { - _elem539 = iprot.readI64(); - struct.open_txns.add(_elem539); + _elem555 = iprot.readI64(); + struct.open_txns.add(_elem555); } 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 _iter541 : struct.open_txns) + for (long _iter557 : struct.open_txns) { - oprot.writeI64(_iter541); + oprot.writeI64(_iter557); } 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 _iter542 : struct.open_txns) + for (long _iter558 : struct.open_txns) { - oprot.writeI64(_iter542); + oprot.writeI64(_iter558); } } 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 _list543 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.open_txns = new ArrayList(_list543.size); - long _elem544; - for (int _i545 = 0; _i545 < _list543.size; ++_i545) + org.apache.thrift.protocol.TList _list559 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.open_txns = new ArrayList(_list559.size); + long _elem560; + for (int _i561 = 0; _i561 < _list559.size; ++_i561) { - _elem544 = iprot.readI64(); - struct.open_txns.add(_elem544); + _elem560 = iprot.readI64(); + struct.open_txns.add(_elem560); } } 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 8d8ce6dda7..7b9e6c589c 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 _list776 = iprot.readListBegin(); - struct.tblNames = new ArrayList(_list776.size); - String _elem777; - for (int _i778 = 0; _i778 < _list776.size; ++_i778) + org.apache.thrift.protocol.TList _list792 = iprot.readListBegin(); + struct.tblNames = new ArrayList(_list792.size); + String _elem793; + for (int _i794 = 0; _i794 < _list792.size; ++_i794) { - _elem777 = iprot.readString(); - struct.tblNames.add(_elem777); + _elem793 = iprot.readString(); + struct.tblNames.add(_elem793); } 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 _iter779 : struct.tblNames) + for (String _iter795 : struct.tblNames) { - oprot.writeString(_iter779); + oprot.writeString(_iter795); } 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 _iter780 : struct.tblNames) + for (String _iter796 : struct.tblNames) { - oprot.writeString(_iter780); + oprot.writeString(_iter796); } } } @@ -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 _list781 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tblNames = new ArrayList(_list781.size); - String _elem782; - for (int _i783 = 0; _i783 < _list781.size; ++_i783) + org.apache.thrift.protocol.TList _list797 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tblNames = new ArrayList(_list797.size); + String _elem798; + for (int _i799 = 0; _i799 < _list797.size; ++_i799) { - _elem782 = iprot.readString(); - struct.tblNames.add(_elem782); + _elem798 = iprot.readString(); + struct.tblNames.add(_elem798); } } 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 10b1d41175..3ad5104f16 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 _list784 = iprot.readListBegin(); - struct.tables = new ArrayList
(_list784.size); - Table _elem785; - for (int _i786 = 0; _i786 < _list784.size; ++_i786) + org.apache.thrift.protocol.TList _list800 = iprot.readListBegin(); + struct.tables = new ArrayList
(_list800.size); + Table _elem801; + for (int _i802 = 0; _i802 < _list800.size; ++_i802) { - _elem785 = new Table(); - _elem785.read(iprot); - struct.tables.add(_elem785); + _elem801 = new Table(); + _elem801.read(iprot); + struct.tables.add(_elem801); } 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 _iter787 : struct.tables) + for (Table _iter803 : struct.tables) { - _iter787.write(oprot); + _iter803.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 _iter788 : struct.tables) + for (Table _iter804 : struct.tables) { - _iter788.write(oprot); + _iter804.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 _list789 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tables = new ArrayList
(_list789.size); - Table _elem790; - for (int _i791 = 0; _i791 < _list789.size; ++_i791) + org.apache.thrift.protocol.TList _list805 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tables = new ArrayList
(_list805.size); + Table _elem806; + for (int _i807 = 0; _i807 < _list805.size; ++_i807) { - _elem790 = new Table(); - _elem790.read(iprot); - struct.tables.add(_elem790); + _elem806 = new Table(); + _elem806.read(iprot); + struct.tables.add(_elem806); } } struct.setTablesIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsRequest.java index c22778d6d1..f3db7ba467 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsRequest.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsRequest.java @@ -436,13 +436,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetValidWriteIdsReq case 1: // FULL_TABLE_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list562 = iprot.readListBegin(); - struct.fullTableNames = new ArrayList(_list562.size); - String _elem563; - for (int _i564 = 0; _i564 < _list562.size; ++_i564) + org.apache.thrift.protocol.TList _list578 = iprot.readListBegin(); + struct.fullTableNames = new ArrayList(_list578.size); + String _elem579; + for (int _i580 = 0; _i580 < _list578.size; ++_i580) { - _elem563 = iprot.readString(); - struct.fullTableNames.add(_elem563); + _elem579 = iprot.readString(); + struct.fullTableNames.add(_elem579); } iprot.readListEnd(); } @@ -476,9 +476,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetValidWriteIdsRe oprot.writeFieldBegin(FULL_TABLE_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.fullTableNames.size())); - for (String _iter565 : struct.fullTableNames) + for (String _iter581 : struct.fullTableNames) { - oprot.writeString(_iter565); + oprot.writeString(_iter581); } oprot.writeListEnd(); } @@ -508,9 +508,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetValidWriteIdsReq TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.fullTableNames.size()); - for (String _iter566 : struct.fullTableNames) + for (String _iter582 : struct.fullTableNames) { - oprot.writeString(_iter566); + oprot.writeString(_iter582); } } oprot.writeString(struct.validTxnList); @@ -520,13 +520,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetValidWriteIdsReq public void read(org.apache.thrift.protocol.TProtocol prot, GetValidWriteIdsRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list567 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.fullTableNames = new ArrayList(_list567.size); - String _elem568; - for (int _i569 = 0; _i569 < _list567.size; ++_i569) + org.apache.thrift.protocol.TList _list583 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.fullTableNames = new ArrayList(_list583.size); + String _elem584; + for (int _i585 = 0; _i585 < _list583.size; ++_i585) { - _elem568 = iprot.readString(); - struct.fullTableNames.add(_elem568); + _elem584 = iprot.readString(); + struct.fullTableNames.add(_elem584); } } struct.setFullTableNamesIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsResponse.java index 90d0b9db0b..e0b0dca2ef 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsResponse.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetValidWriteIdsResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetValidWriteIdsRes case 1: // TBL_VALID_WRITE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list578 = iprot.readListBegin(); - struct.tblValidWriteIds = new ArrayList(_list578.size); - TableValidWriteIds _elem579; - for (int _i580 = 0; _i580 < _list578.size; ++_i580) + org.apache.thrift.protocol.TList _list594 = iprot.readListBegin(); + struct.tblValidWriteIds = new ArrayList(_list594.size); + TableValidWriteIds _elem595; + for (int _i596 = 0; _i596 < _list594.size; ++_i596) { - _elem579 = new TableValidWriteIds(); - _elem579.read(iprot); - struct.tblValidWriteIds.add(_elem579); + _elem595 = new TableValidWriteIds(); + _elem595.read(iprot); + struct.tblValidWriteIds.add(_elem595); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetValidWriteIdsRe oprot.writeFieldBegin(TBL_VALID_WRITE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tblValidWriteIds.size())); - for (TableValidWriteIds _iter581 : struct.tblValidWriteIds) + for (TableValidWriteIds _iter597 : struct.tblValidWriteIds) { - _iter581.write(oprot); + _iter597.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetValidWriteIdsRes TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.tblValidWriteIds.size()); - for (TableValidWriteIds _iter582 : struct.tblValidWriteIds) + for (TableValidWriteIds _iter598 : struct.tblValidWriteIds) { - _iter582.write(oprot); + _iter598.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetValidWriteIdsRes public void read(org.apache.thrift.protocol.TProtocol prot, GetValidWriteIdsResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list583 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tblValidWriteIds = new ArrayList(_list583.size); - TableValidWriteIds _elem584; - for (int _i585 = 0; _i585 < _list583.size; ++_i585) + org.apache.thrift.protocol.TList _list599 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tblValidWriteIds = new ArrayList(_list599.size); + TableValidWriteIds _elem600; + for (int _i601 = 0; _i601 < _list599.size; ++_i601) { - _elem584 = new TableValidWriteIds(); - _elem584.read(iprot); - struct.tblValidWriteIds.add(_elem584); + _elem600 = new TableValidWriteIds(); + _elem600.read(iprot); + struct.tblValidWriteIds.add(_elem600); } } struct.setTblValidWriteIdsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java index e069524048..fb2f4dc8da 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 _set618 = iprot.readSetBegin(); - struct.aborted = new HashSet(2*_set618.size); - long _elem619; - for (int _i620 = 0; _i620 < _set618.size; ++_i620) + org.apache.thrift.protocol.TSet _set634 = iprot.readSetBegin(); + struct.aborted = new HashSet(2*_set634.size); + long _elem635; + for (int _i636 = 0; _i636 < _set634.size; ++_i636) { - _elem619 = iprot.readI64(); - struct.aborted.add(_elem619); + _elem635 = iprot.readI64(); + struct.aborted.add(_elem635); } 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 _set621 = iprot.readSetBegin(); - struct.nosuch = new HashSet(2*_set621.size); - long _elem622; - for (int _i623 = 0; _i623 < _set621.size; ++_i623) + org.apache.thrift.protocol.TSet _set637 = iprot.readSetBegin(); + struct.nosuch = new HashSet(2*_set637.size); + long _elem638; + for (int _i639 = 0; _i639 < _set637.size; ++_i639) { - _elem622 = iprot.readI64(); - struct.nosuch.add(_elem622); + _elem638 = iprot.readI64(); + struct.nosuch.add(_elem638); } 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 _iter624 : struct.aborted) + for (long _iter640 : struct.aborted) { - oprot.writeI64(_iter624); + oprot.writeI64(_iter640); } 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 _iter625 : struct.nosuch) + for (long _iter641 : struct.nosuch) { - oprot.writeI64(_iter625); + oprot.writeI64(_iter641); } 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 _iter626 : struct.aborted) + for (long _iter642 : struct.aborted) { - oprot.writeI64(_iter626); + oprot.writeI64(_iter642); } } { oprot.writeI32(struct.nosuch.size()); - for (long _iter627 : struct.nosuch) + for (long _iter643 : struct.nosuch) { - oprot.writeI64(_iter627); + oprot.writeI64(_iter643); } } } @@ -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 _set628 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.aborted = new HashSet(2*_set628.size); - long _elem629; - for (int _i630 = 0; _i630 < _set628.size; ++_i630) + org.apache.thrift.protocol.TSet _set644 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.aborted = new HashSet(2*_set644.size); + long _elem645; + for (int _i646 = 0; _i646 < _set644.size; ++_i646) { - _elem629 = iprot.readI64(); - struct.aborted.add(_elem629); + _elem645 = iprot.readI64(); + struct.aborted.add(_elem645); } } struct.setAbortedIsSet(true); { - org.apache.thrift.protocol.TSet _set631 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.nosuch = new HashSet(2*_set631.size); - long _elem632; - for (int _i633 = 0; _i633 < _set631.size; ++_i633) + org.apache.thrift.protocol.TSet _set647 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.nosuch = new HashSet(2*_set647.size); + long _elem648; + for (int _i649 = 0; _i649 < _set647.size; ++_i649) { - _elem632 = iprot.readI64(); - struct.nosuch.add(_elem632); + _elem648 = iprot.readI64(); + struct.nosuch.add(_elem648); } } 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 2b823a0909..d1cdb4b541 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 _list676 = iprot.readListBegin(); - struct.filesAdded = new ArrayList(_list676.size); - String _elem677; - for (int _i678 = 0; _i678 < _list676.size; ++_i678) + org.apache.thrift.protocol.TList _list692 = iprot.readListBegin(); + struct.filesAdded = new ArrayList(_list692.size); + String _elem693; + for (int _i694 = 0; _i694 < _list692.size; ++_i694) { - _elem677 = iprot.readString(); - struct.filesAdded.add(_elem677); + _elem693 = iprot.readString(); + struct.filesAdded.add(_elem693); } 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 _list679 = iprot.readListBegin(); - struct.filesAddedChecksum = new ArrayList(_list679.size); - String _elem680; - for (int _i681 = 0; _i681 < _list679.size; ++_i681) + org.apache.thrift.protocol.TList _list695 = iprot.readListBegin(); + struct.filesAddedChecksum = new ArrayList(_list695.size); + String _elem696; + for (int _i697 = 0; _i697 < _list695.size; ++_i697) { - _elem680 = iprot.readString(); - struct.filesAddedChecksum.add(_elem680); + _elem696 = iprot.readString(); + struct.filesAddedChecksum.add(_elem696); } 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 _iter682 : struct.filesAdded) + for (String _iter698 : struct.filesAdded) { - oprot.writeString(_iter682); + oprot.writeString(_iter698); } 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 _iter683 : struct.filesAddedChecksum) + for (String _iter699 : struct.filesAddedChecksum) { - oprot.writeString(_iter683); + oprot.writeString(_iter699); } 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 _iter684 : struct.filesAdded) + for (String _iter700 : struct.filesAdded) { - oprot.writeString(_iter684); + oprot.writeString(_iter700); } } 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 _iter685 : struct.filesAddedChecksum) + for (String _iter701 : struct.filesAddedChecksum) { - oprot.writeString(_iter685); + oprot.writeString(_iter701); } } } @@ -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 _list686 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filesAdded = new ArrayList(_list686.size); - String _elem687; - for (int _i688 = 0; _i688 < _list686.size; ++_i688) + org.apache.thrift.protocol.TList _list702 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filesAdded = new ArrayList(_list702.size); + String _elem703; + for (int _i704 = 0; _i704 < _list702.size; ++_i704) { - _elem687 = iprot.readString(); - struct.filesAdded.add(_elem687); + _elem703 = iprot.readString(); + struct.filesAdded.add(_elem703); } } 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 _list689 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filesAddedChecksum = new ArrayList(_list689.size); - String _elem690; - for (int _i691 = 0; _i691 < _list689.size; ++_i691) + org.apache.thrift.protocol.TList _list705 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filesAddedChecksum = new ArrayList(_list705.size); + String _elem706; + for (int _i707 = 0; _i707 < _list705.size; ++_i707) { - _elem690 = iprot.readString(); - struct.filesAddedChecksum.add(_elem690); + _elem706 = iprot.readString(); + struct.filesAddedChecksum.add(_elem706); } } 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 5a9a0e892b..722619f97b 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 _list602 = iprot.readListBegin(); - struct.component = new ArrayList(_list602.size); - LockComponent _elem603; - for (int _i604 = 0; _i604 < _list602.size; ++_i604) + org.apache.thrift.protocol.TList _list618 = iprot.readListBegin(); + struct.component = new ArrayList(_list618.size); + LockComponent _elem619; + for (int _i620 = 0; _i620 < _list618.size; ++_i620) { - _elem603 = new LockComponent(); - _elem603.read(iprot); - struct.component.add(_elem603); + _elem619 = new LockComponent(); + _elem619.read(iprot); + struct.component.add(_elem619); } 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 _iter605 : struct.component) + for (LockComponent _iter621 : struct.component) { - _iter605.write(oprot); + _iter621.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 _iter606 : struct.component) + for (LockComponent _iter622 : struct.component) { - _iter606.write(oprot); + _iter622.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 _list607 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.component = new ArrayList(_list607.size); - LockComponent _elem608; - for (int _i609 = 0; _i609 < _list607.size; ++_i609) + org.apache.thrift.protocol.TList _list623 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.component = new ArrayList(_list623.size); + LockComponent _elem624; + for (int _i625 = 0; _i625 < _list623.size; ++_i625) { - _elem608 = new LockComponent(); - _elem608.read(iprot); - struct.component.add(_elem608); + _elem624 = new LockComponent(); + _elem624.read(iprot); + struct.component.add(_elem624); } } 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 dc6dc0d560..fec35d50b7 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 _set792 = iprot.readSetBegin(); - struct.tablesUsed = new HashSet(2*_set792.size); - String _elem793; - for (int _i794 = 0; _i794 < _set792.size; ++_i794) + org.apache.thrift.protocol.TSet _set808 = iprot.readSetBegin(); + struct.tablesUsed = new HashSet(2*_set808.size); + String _elem809; + for (int _i810 = 0; _i810 < _set808.size; ++_i810) { - _elem793 = iprot.readString(); - struct.tablesUsed.add(_elem793); + _elem809 = iprot.readString(); + struct.tablesUsed.add(_elem809); } 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 _iter795 : struct.tablesUsed) + for (String _iter811 : struct.tablesUsed) { - oprot.writeString(_iter795); + oprot.writeString(_iter811); } 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 _iter796 : struct.tablesUsed) + for (String _iter812 : struct.tablesUsed) { - oprot.writeString(_iter796); + oprot.writeString(_iter812); } } 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 _set797 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tablesUsed = new HashSet(2*_set797.size); - String _elem798; - for (int _i799 = 0; _i799 < _set797.size; ++_i799) + org.apache.thrift.protocol.TSet _set813 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tablesUsed = new HashSet(2*_set813.size); + String _elem814; + for (int _i815 = 0; _i815 < _set813.size; ++_i815) { - _elem798 = iprot.readString(); - struct.tablesUsed.add(_elem798); + _elem814 = iprot.readString(); + struct.tablesUsed.add(_elem814); } } 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 2037590a12..ff40ab592c 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 _list668 = iprot.readListBegin(); - struct.events = new ArrayList(_list668.size); - NotificationEvent _elem669; - for (int _i670 = 0; _i670 < _list668.size; ++_i670) + org.apache.thrift.protocol.TList _list684 = iprot.readListBegin(); + struct.events = new ArrayList(_list684.size); + NotificationEvent _elem685; + for (int _i686 = 0; _i686 < _list684.size; ++_i686) { - _elem669 = new NotificationEvent(); - _elem669.read(iprot); - struct.events.add(_elem669); + _elem685 = new NotificationEvent(); + _elem685.read(iprot); + struct.events.add(_elem685); } 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 _iter671 : struct.events) + for (NotificationEvent _iter687 : struct.events) { - _iter671.write(oprot); + _iter687.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 _iter672 : struct.events) + for (NotificationEvent _iter688 : struct.events) { - _iter672.write(oprot); + _iter688.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 _list673 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.events = new ArrayList(_list673.size); - NotificationEvent _elem674; - for (int _i675 = 0; _i675 < _list673.size; ++_i675) + org.apache.thrift.protocol.TList _list689 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.events = new ArrayList(_list689.size); + NotificationEvent _elem690; + for (int _i691 = 0; _i691 < _list689.size; ++_i691) { - _elem674 = new NotificationEvent(); - _elem674.read(iprot); - struct.events.add(_elem674); + _elem690 = new NotificationEvent(); + _elem690.read(iprot); + struct.events.add(_elem690); } } 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 de60105a71..8f08ed93d0 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 _list546 = iprot.readListBegin(); - struct.txn_ids = new ArrayList(_list546.size); - long _elem547; - for (int _i548 = 0; _i548 < _list546.size; ++_i548) + org.apache.thrift.protocol.TList _list562 = iprot.readListBegin(); + struct.txn_ids = new ArrayList(_list562.size); + long _elem563; + for (int _i564 = 0; _i564 < _list562.size; ++_i564) { - _elem547 = iprot.readI64(); - struct.txn_ids.add(_elem547); + _elem563 = iprot.readI64(); + struct.txn_ids.add(_elem563); } 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 _iter549 : struct.txn_ids) + for (long _iter565 : struct.txn_ids) { - oprot.writeI64(_iter549); + oprot.writeI64(_iter565); } 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 _iter550 : struct.txn_ids) + for (long _iter566 : struct.txn_ids) { - oprot.writeI64(_iter550); + oprot.writeI64(_iter566); } } } @@ -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 _list551 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.txn_ids = new ArrayList(_list551.size); - long _elem552; - for (int _i553 = 0; _i553 < _list551.size; ++_i553) + org.apache.thrift.protocol.TList _list567 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txn_ids = new ArrayList(_list567.size); + long _elem568; + for (int _i569 = 0; _i569 < _list567.size; ++_i569) { - _elem552 = iprot.readI64(); - struct.txn_ids.add(_elem552); + _elem568 = iprot.readI64(); + struct.txn_ids.add(_elem568); } } 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 bb9bc516f5..9cac668860 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 _list490 = iprot.readListBegin(); - struct.partitionKeys = new ArrayList(_list490.size); - FieldSchema _elem491; - for (int _i492 = 0; _i492 < _list490.size; ++_i492) + org.apache.thrift.protocol.TList _list506 = iprot.readListBegin(); + struct.partitionKeys = new ArrayList(_list506.size); + FieldSchema _elem507; + for (int _i508 = 0; _i508 < _list506.size; ++_i508) { - _elem491 = new FieldSchema(); - _elem491.read(iprot); - struct.partitionKeys.add(_elem491); + _elem507 = new FieldSchema(); + _elem507.read(iprot); + struct.partitionKeys.add(_elem507); } 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 _list493 = iprot.readListBegin(); - struct.partitionOrder = new ArrayList(_list493.size); - FieldSchema _elem494; - for (int _i495 = 0; _i495 < _list493.size; ++_i495) + org.apache.thrift.protocol.TList _list509 = iprot.readListBegin(); + struct.partitionOrder = new ArrayList(_list509.size); + FieldSchema _elem510; + for (int _i511 = 0; _i511 < _list509.size; ++_i511) { - _elem494 = new FieldSchema(); - _elem494.read(iprot); - struct.partitionOrder.add(_elem494); + _elem510 = new FieldSchema(); + _elem510.read(iprot); + struct.partitionOrder.add(_elem510); } 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 _iter496 : struct.partitionKeys) + for (FieldSchema _iter512 : struct.partitionKeys) { - _iter496.write(oprot); + _iter512.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 _iter497 : struct.partitionOrder) + for (FieldSchema _iter513 : struct.partitionOrder) { - _iter497.write(oprot); + _iter513.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 _iter498 : struct.partitionKeys) + for (FieldSchema _iter514 : struct.partitionKeys) { - _iter498.write(oprot); + _iter514.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 _iter499 : struct.partitionOrder) + for (FieldSchema _iter515 : struct.partitionOrder) { - _iter499.write(oprot); + _iter515.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 _list500 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitionKeys = new ArrayList(_list500.size); - FieldSchema _elem501; - for (int _i502 = 0; _i502 < _list500.size; ++_i502) + org.apache.thrift.protocol.TList _list516 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitionKeys = new ArrayList(_list516.size); + FieldSchema _elem517; + for (int _i518 = 0; _i518 < _list516.size; ++_i518) { - _elem501 = new FieldSchema(); - _elem501.read(iprot); - struct.partitionKeys.add(_elem501); + _elem517 = new FieldSchema(); + _elem517.read(iprot); + struct.partitionKeys.add(_elem517); } } 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 _list503 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitionOrder = new ArrayList(_list503.size); - FieldSchema _elem504; - for (int _i505 = 0; _i505 < _list503.size; ++_i505) + org.apache.thrift.protocol.TList _list519 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitionOrder = new ArrayList(_list519.size); + FieldSchema _elem520; + for (int _i521 = 0; _i521 < _list519.size; ++_i521) { - _elem504 = new FieldSchema(); - _elem504.read(iprot); - struct.partitionOrder.add(_elem504); + _elem520 = new FieldSchema(); + _elem520.read(iprot); + struct.partitionOrder.add(_elem520); } } 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 a98f748d9e..635b57e0e4 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 _list514 = iprot.readListBegin(); - struct.partitionValues = new ArrayList(_list514.size); - PartitionValuesRow _elem515; - for (int _i516 = 0; _i516 < _list514.size; ++_i516) + org.apache.thrift.protocol.TList _list530 = iprot.readListBegin(); + struct.partitionValues = new ArrayList(_list530.size); + PartitionValuesRow _elem531; + for (int _i532 = 0; _i532 < _list530.size; ++_i532) { - _elem515 = new PartitionValuesRow(); - _elem515.read(iprot); - struct.partitionValues.add(_elem515); + _elem531 = new PartitionValuesRow(); + _elem531.read(iprot); + struct.partitionValues.add(_elem531); } 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 _iter517 : struct.partitionValues) + for (PartitionValuesRow _iter533 : struct.partitionValues) { - _iter517.write(oprot); + _iter533.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 _iter518 : struct.partitionValues) + for (PartitionValuesRow _iter534 : struct.partitionValues) { - _iter518.write(oprot); + _iter534.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 _list519 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitionValues = new ArrayList(_list519.size); - PartitionValuesRow _elem520; - for (int _i521 = 0; _i521 < _list519.size; ++_i521) + org.apache.thrift.protocol.TList _list535 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitionValues = new ArrayList(_list535.size); + PartitionValuesRow _elem536; + for (int _i537 = 0; _i537 < _list535.size; ++_i537) { - _elem520 = new PartitionValuesRow(); - _elem520.read(iprot); - struct.partitionValues.add(_elem520); + _elem536 = new PartitionValuesRow(); + _elem536.read(iprot); + struct.partitionValues.add(_elem536); } } 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 b8a55e96d4..83e9e06db9 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 _list506 = iprot.readListBegin(); - struct.row = new ArrayList(_list506.size); - String _elem507; - for (int _i508 = 0; _i508 < _list506.size; ++_i508) + org.apache.thrift.protocol.TList _list522 = iprot.readListBegin(); + struct.row = new ArrayList(_list522.size); + String _elem523; + for (int _i524 = 0; _i524 < _list522.size; ++_i524) { - _elem507 = iprot.readString(); - struct.row.add(_elem507); + _elem523 = iprot.readString(); + struct.row.add(_elem523); } 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 _iter509 : struct.row) + for (String _iter525 : struct.row) { - oprot.writeString(_iter509); + oprot.writeString(_iter525); } 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 _iter510 : struct.row) + for (String _iter526 : struct.row) { - oprot.writeString(_iter510); + oprot.writeString(_iter526); } } } @@ -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 _list511 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.row = new ArrayList(_list511.size); - String _elem512; - for (int _i513 = 0; _i513 < _list511.size; ++_i513) + org.apache.thrift.protocol.TList _list527 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.row = new ArrayList(_list527.size); + String _elem528; + for (int _i529 = 0; _i529 < _list527.size; ++_i529) { - _elem512 = iprot.readString(); - struct.row.add(_elem512); + _elem528 = iprot.readString(); + struct.row.add(_elem528); } } 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 521b68d202..b5c15397dd 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 _list392 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list392.size); - Partition _elem393; - for (int _i394 = 0; _i394 < _list392.size; ++_i394) + org.apache.thrift.protocol.TList _list408 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list408.size); + Partition _elem409; + for (int _i410 = 0; _i410 < _list408.size; ++_i410) { - _elem393 = new Partition(); - _elem393.read(iprot); - struct.partitions.add(_elem393); + _elem409 = new Partition(); + _elem409.read(iprot); + struct.partitions.add(_elem409); } 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 _iter395 : struct.partitions) + for (Partition _iter411 : struct.partitions) { - _iter395.write(oprot); + _iter411.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 _iter396 : struct.partitions) + for (Partition _iter412 : struct.partitions) { - _iter396.write(oprot); + _iter412.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 _list397 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list397.size); - Partition _elem398; - for (int _i399 = 0; _i399 < _list397.size; ++_i399) + org.apache.thrift.protocol.TList _list413 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list413.size); + Partition _elem414; + for (int _i415 = 0; _i415 < _list413.size; ++_i415) { - _elem398 = new Partition(); - _elem398.read(iprot); - struct.partitions.add(_elem398); + _elem414 = new Partition(); + _elem414.read(iprot); + struct.partitions.add(_elem414); } } 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 c1d93371d6..ad6f05474c 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 _list434 = iprot.readListBegin(); - struct.colNames = new ArrayList(_list434.size); - String _elem435; - for (int _i436 = 0; _i436 < _list434.size; ++_i436) + org.apache.thrift.protocol.TList _list450 = iprot.readListBegin(); + struct.colNames = new ArrayList(_list450.size); + String _elem451; + for (int _i452 = 0; _i452 < _list450.size; ++_i452) { - _elem435 = iprot.readString(); - struct.colNames.add(_elem435); + _elem451 = iprot.readString(); + struct.colNames.add(_elem451); } 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 _list437 = iprot.readListBegin(); - struct.partNames = new ArrayList(_list437.size); - String _elem438; - for (int _i439 = 0; _i439 < _list437.size; ++_i439) + org.apache.thrift.protocol.TList _list453 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list453.size); + String _elem454; + for (int _i455 = 0; _i455 < _list453.size; ++_i455) { - _elem438 = iprot.readString(); - struct.partNames.add(_elem438); + _elem454 = iprot.readString(); + struct.partNames.add(_elem454); } 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 _iter440 : struct.colNames) + for (String _iter456 : struct.colNames) { - oprot.writeString(_iter440); + oprot.writeString(_iter456); } 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 _iter441 : struct.partNames) + for (String _iter457 : struct.partNames) { - oprot.writeString(_iter441); + oprot.writeString(_iter457); } 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 _iter442 : struct.colNames) + for (String _iter458 : struct.colNames) { - oprot.writeString(_iter442); + oprot.writeString(_iter458); } } { oprot.writeI32(struct.partNames.size()); - for (String _iter443 : struct.partNames) + for (String _iter459 : struct.partNames) { - oprot.writeString(_iter443); + oprot.writeString(_iter459); } } } @@ -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 _list444 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.colNames = new ArrayList(_list444.size); - String _elem445; - for (int _i446 = 0; _i446 < _list444.size; ++_i446) + org.apache.thrift.protocol.TList _list460 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.colNames = new ArrayList(_list460.size); + String _elem461; + for (int _i462 = 0; _i462 < _list460.size; ++_i462) { - _elem445 = iprot.readString(); - struct.colNames.add(_elem445); + _elem461 = iprot.readString(); + struct.colNames.add(_elem461); } } struct.setColNamesIsSet(true); { - org.apache.thrift.protocol.TList _list447 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partNames = new ArrayList(_list447.size); - String _elem448; - for (int _i449 = 0; _i449 < _list447.size; ++_i449) + org.apache.thrift.protocol.TList _list463 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partNames = new ArrayList(_list463.size); + String _elem464; + for (int _i465 = 0; _i465 < _list463.size; ++_i465) { - _elem448 = iprot.readString(); - struct.partNames.add(_elem448); + _elem464 = iprot.readString(); + struct.partNames.add(_elem464); } } 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 2bf7fc541d..d84af22da8 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 _map408 = iprot.readMapBegin(); - struct.partStats = new HashMap>(2*_map408.size); - String _key409; - List _val410; - for (int _i411 = 0; _i411 < _map408.size; ++_i411) + org.apache.thrift.protocol.TMap _map424 = iprot.readMapBegin(); + struct.partStats = new HashMap>(2*_map424.size); + String _key425; + List _val426; + for (int _i427 = 0; _i427 < _map424.size; ++_i427) { - _key409 = iprot.readString(); + _key425 = iprot.readString(); { - org.apache.thrift.protocol.TList _list412 = iprot.readListBegin(); - _val410 = new ArrayList(_list412.size); - ColumnStatisticsObj _elem413; - for (int _i414 = 0; _i414 < _list412.size; ++_i414) + org.apache.thrift.protocol.TList _list428 = iprot.readListBegin(); + _val426 = new ArrayList(_list428.size); + ColumnStatisticsObj _elem429; + for (int _i430 = 0; _i430 < _list428.size; ++_i430) { - _elem413 = new ColumnStatisticsObj(); - _elem413.read(iprot); - _val410.add(_elem413); + _elem429 = new ColumnStatisticsObj(); + _elem429.read(iprot); + _val426.add(_elem429); } iprot.readListEnd(); } - struct.partStats.put(_key409, _val410); + struct.partStats.put(_key425, _val426); } 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> _iter415 : struct.partStats.entrySet()) + for (Map.Entry> _iter431 : struct.partStats.entrySet()) { - oprot.writeString(_iter415.getKey()); + oprot.writeString(_iter431.getKey()); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter415.getValue().size())); - for (ColumnStatisticsObj _iter416 : _iter415.getValue()) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter431.getValue().size())); + for (ColumnStatisticsObj _iter432 : _iter431.getValue()) { - _iter416.write(oprot); + _iter432.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> _iter417 : struct.partStats.entrySet()) + for (Map.Entry> _iter433 : struct.partStats.entrySet()) { - oprot.writeString(_iter417.getKey()); + oprot.writeString(_iter433.getKey()); { - oprot.writeI32(_iter417.getValue().size()); - for (ColumnStatisticsObj _iter418 : _iter417.getValue()) + oprot.writeI32(_iter433.getValue().size()); + for (ColumnStatisticsObj _iter434 : _iter433.getValue()) { - _iter418.write(oprot); + _iter434.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 _map419 = 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*_map419.size); - String _key420; - List _val421; - for (int _i422 = 0; _i422 < _map419.size; ++_i422) + org.apache.thrift.protocol.TMap _map435 = 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*_map435.size); + String _key436; + List _val437; + for (int _i438 = 0; _i438 < _map435.size; ++_i438) { - _key420 = iprot.readString(); + _key436 = iprot.readString(); { - org.apache.thrift.protocol.TList _list423 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - _val421 = new ArrayList(_list423.size); - ColumnStatisticsObj _elem424; - for (int _i425 = 0; _i425 < _list423.size; ++_i425) + org.apache.thrift.protocol.TList _list439 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + _val437 = new ArrayList(_list439.size); + ColumnStatisticsObj _elem440; + for (int _i441 = 0; _i441 < _list439.size; ++_i441) { - _elem424 = new ColumnStatisticsObj(); - _elem424.read(iprot); - _val421.add(_elem424); + _elem440 = new ColumnStatisticsObj(); + _elem440.read(iprot); + _val437.add(_elem440); } } - struct.partStats.put(_key420, _val421); + struct.partStats.put(_key436, _val437); } } 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 0b0da1453c..490d7185d6 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 _list736 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list736.size); - long _elem737; - for (int _i738 = 0; _i738 < _list736.size; ++_i738) + org.apache.thrift.protocol.TList _list752 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list752.size); + long _elem753; + for (int _i754 = 0; _i754 < _list752.size; ++_i754) { - _elem737 = iprot.readI64(); - struct.fileIds.add(_elem737); + _elem753 = iprot.readI64(); + struct.fileIds.add(_elem753); } 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 _list739 = iprot.readListBegin(); - struct.metadata = new ArrayList(_list739.size); - ByteBuffer _elem740; - for (int _i741 = 0; _i741 < _list739.size; ++_i741) + org.apache.thrift.protocol.TList _list755 = iprot.readListBegin(); + struct.metadata = new ArrayList(_list755.size); + ByteBuffer _elem756; + for (int _i757 = 0; _i757 < _list755.size; ++_i757) { - _elem740 = iprot.readBinary(); - struct.metadata.add(_elem740); + _elem756 = iprot.readBinary(); + struct.metadata.add(_elem756); } 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 _iter742 : struct.fileIds) + for (long _iter758 : struct.fileIds) { - oprot.writeI64(_iter742); + oprot.writeI64(_iter758); } 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 _iter743 : struct.metadata) + for (ByteBuffer _iter759 : struct.metadata) { - oprot.writeBinary(_iter743); + oprot.writeBinary(_iter759); } 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 _iter744 : struct.fileIds) + for (long _iter760 : struct.fileIds) { - oprot.writeI64(_iter744); + oprot.writeI64(_iter760); } } { oprot.writeI32(struct.metadata.size()); - for (ByteBuffer _iter745 : struct.metadata) + for (ByteBuffer _iter761 : struct.metadata) { - oprot.writeBinary(_iter745); + oprot.writeBinary(_iter761); } } 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 _list746 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list746.size); - long _elem747; - for (int _i748 = 0; _i748 < _list746.size; ++_i748) + org.apache.thrift.protocol.TList _list762 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list762.size); + long _elem763; + for (int _i764 = 0; _i764 < _list762.size; ++_i764) { - _elem747 = iprot.readI64(); - struct.fileIds.add(_elem747); + _elem763 = iprot.readI64(); + struct.fileIds.add(_elem763); } } struct.setFileIdsIsSet(true); { - org.apache.thrift.protocol.TList _list749 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.metadata = new ArrayList(_list749.size); - ByteBuffer _elem750; - for (int _i751 = 0; _i751 < _list749.size; ++_i751) + org.apache.thrift.protocol.TList _list765 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.metadata = new ArrayList(_list765.size); + ByteBuffer _elem766; + for (int _i767 = 0; _i767 < _list765.size; ++_i767) { - _elem750 = iprot.readBinary(); - struct.metadata.add(_elem750); + _elem766 = iprot.readBinary(); + struct.metadata.add(_elem766); } } 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 5639a98d86..d9226836e2 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 _list474 = iprot.readListBegin(); - names = new ArrayList(_list474.size); - String _elem475; - for (int _i476 = 0; _i476 < _list474.size; ++_i476) + org.apache.thrift.protocol.TList _list490 = iprot.readListBegin(); + names = new ArrayList(_list490.size); + String _elem491; + for (int _i492 = 0; _i492 < _list490.size; ++_i492) { - _elem475 = iprot.readString(); - names.add(_elem475); + _elem491 = iprot.readString(); + names.add(_elem491); } 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 _list477 = iprot.readListBegin(); - exprs = new ArrayList(_list477.size); - DropPartitionsExpr _elem478; - for (int _i479 = 0; _i479 < _list477.size; ++_i479) + org.apache.thrift.protocol.TList _list493 = iprot.readListBegin(); + exprs = new ArrayList(_list493.size); + DropPartitionsExpr _elem494; + for (int _i495 = 0; _i495 < _list493.size; ++_i495) { - _elem478 = new DropPartitionsExpr(); - _elem478.read(iprot); - exprs.add(_elem478); + _elem494 = new DropPartitionsExpr(); + _elem494.read(iprot); + exprs.add(_elem494); } 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 _iter480 : names) + for (String _iter496 : names) { - oprot.writeString(_iter480); + oprot.writeString(_iter496); } 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 _iter481 : exprs) + for (DropPartitionsExpr _iter497 : exprs) { - _iter481.write(oprot); + _iter497.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 _list482 = iprot.readListBegin(); - names = new ArrayList(_list482.size); - String _elem483; - for (int _i484 = 0; _i484 < _list482.size; ++_i484) + org.apache.thrift.protocol.TList _list498 = iprot.readListBegin(); + names = new ArrayList(_list498.size); + String _elem499; + for (int _i500 = 0; _i500 < _list498.size; ++_i500) { - _elem483 = iprot.readString(); - names.add(_elem483); + _elem499 = iprot.readString(); + names.add(_elem499); } iprot.readListEnd(); } @@ -264,14 +264,14 @@ protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot case EXPRS: List exprs; { - org.apache.thrift.protocol.TList _list485 = iprot.readListBegin(); - exprs = new ArrayList(_list485.size); - DropPartitionsExpr _elem486; - for (int _i487 = 0; _i487 < _list485.size; ++_i487) + org.apache.thrift.protocol.TList _list501 = iprot.readListBegin(); + exprs = new ArrayList(_list501.size); + DropPartitionsExpr _elem502; + for (int _i503 = 0; _i503 < _list501.size; ++_i503) { - _elem486 = new DropPartitionsExpr(); - _elem486.read(iprot); - exprs.add(_elem486); + _elem502 = new DropPartitionsExpr(); + _elem502.read(iprot); + exprs.add(_elem502); } 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 _iter488 : names) + for (String _iter504 : names) { - oprot.writeString(_iter488); + oprot.writeString(_iter504); } 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 _iter489 : exprs) + for (DropPartitionsExpr _iter505 : exprs) { - _iter489.write(oprot); + _iter505.write(oprot); } oprot.writeListEnd(); } diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SQLCheckConstraint.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SQLCheckConstraint.java new file mode 100644 index 0000000000..24ce47da1e --- /dev/null +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SQLCheckConstraint.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 SQLCheckConstraint 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("SQLCheckConstraint"); + + 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 CHECK_EXPRESSION_FIELD_DESC = new org.apache.thrift.protocol.TField("check_expression", 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 SQLCheckConstraintStandardSchemeFactory()); + schemes.put(TupleScheme.class, new SQLCheckConstraintTupleSchemeFactory()); + } + + private String table_db; // required + private String table_name; // required + private String column_name; // required + private String check_expression; // 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"), + CHECK_EXPRESSION((short)4, "check_expression"), + 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: // CHECK_EXPRESSION + return CHECK_EXPRESSION; + 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.CHECK_EXPRESSION, new org.apache.thrift.meta_data.FieldMetaData("check_expression", 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(SQLCheckConstraint.class, metaDataMap); + } + + public SQLCheckConstraint() { + } + + public SQLCheckConstraint( + String table_db, + String table_name, + String column_name, + String check_expression, + 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.check_expression = check_expression; + 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 SQLCheckConstraint(SQLCheckConstraint 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.isSetCheck_expression()) { + this.check_expression = other.check_expression; + } + 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 SQLCheckConstraint deepCopy() { + return new SQLCheckConstraint(this); + } + + @Override + public void clear() { + this.table_db = null; + this.table_name = null; + this.column_name = null; + this.check_expression = 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 getCheck_expression() { + return this.check_expression; + } + + public void setCheck_expression(String check_expression) { + this.check_expression = check_expression; + } + + public void unsetCheck_expression() { + this.check_expression = null; + } + + /** Returns true if field check_expression is set (has been assigned a value) and false otherwise */ + public boolean isSetCheck_expression() { + return this.check_expression != null; + } + + public void setCheck_expressionIsSet(boolean value) { + if (!value) { + this.check_expression = 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 CHECK_EXPRESSION: + if (value == null) { + unsetCheck_expression(); + } else { + setCheck_expression((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 CHECK_EXPRESSION: + return getCheck_expression(); + + 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 CHECK_EXPRESSION: + return isSetCheck_expression(); + 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 SQLCheckConstraint) + return this.equals((SQLCheckConstraint)that); + return false; + } + + public boolean equals(SQLCheckConstraint 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_check_expression = true && this.isSetCheck_expression(); + boolean that_present_check_expression = true && that.isSetCheck_expression(); + if (this_present_check_expression || that_present_check_expression) { + if (!(this_present_check_expression && that_present_check_expression)) + return false; + if (!this.check_expression.equals(that.check_expression)) + 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_check_expression = true && (isSetCheck_expression()); + list.add(present_check_expression); + if (present_check_expression) + list.add(check_expression); + + 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(SQLCheckConstraint 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(isSetCheck_expression()).compareTo(other.isSetCheck_expression()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCheck_expression()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.check_expression, other.check_expression); + 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("SQLCheckConstraint("); + 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("check_expression:"); + if (this.check_expression == null) { + sb.append("null"); + } else { + sb.append(this.check_expression); + } + 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 SQLCheckConstraintStandardSchemeFactory implements SchemeFactory { + public SQLCheckConstraintStandardScheme getScheme() { + return new SQLCheckConstraintStandardScheme(); + } + } + + private static class SQLCheckConstraintStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, SQLCheckConstraint 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: // CHECK_EXPRESSION + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.check_expression = iprot.readString(); + struct.setCheck_expressionIsSet(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, SQLCheckConstraint 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.check_expression != null) { + oprot.writeFieldBegin(CHECK_EXPRESSION_FIELD_DESC); + oprot.writeString(struct.check_expression); + 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 SQLCheckConstraintTupleSchemeFactory implements SchemeFactory { + public SQLCheckConstraintTupleScheme getScheme() { + return new SQLCheckConstraintTupleScheme(); + } + } + + private static class SQLCheckConstraintTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, SQLCheckConstraint 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.isSetCheck_expression()) { + 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.isSetCheck_expression()) { + oprot.writeString(struct.check_expression); + } + 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, SQLCheckConstraint 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.check_expression = iprot.readString(); + struct.setCheck_expressionIsSet(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/SchemaVersion.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java index fb0be40fba..50efdbdf30 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java @@ -1119,14 +1119,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SchemaVersion struc case 4: // COLS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list864 = iprot.readListBegin(); - struct.cols = new ArrayList(_list864.size); - FieldSchema _elem865; - for (int _i866 = 0; _i866 < _list864.size; ++_i866) + org.apache.thrift.protocol.TList _list880 = iprot.readListBegin(); + struct.cols = new ArrayList(_list880.size); + FieldSchema _elem881; + for (int _i882 = 0; _i882 < _list880.size; ++_i882) { - _elem865 = new FieldSchema(); - _elem865.read(iprot); - struct.cols.add(_elem865); + _elem881 = new FieldSchema(); + _elem881.read(iprot); + struct.cols.add(_elem881); } iprot.readListEnd(); } @@ -1212,9 +1212,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, SchemaVersion stru oprot.writeFieldBegin(COLS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.cols.size())); - for (FieldSchema _iter867 : struct.cols) + for (FieldSchema _iter883 : struct.cols) { - _iter867.write(oprot); + _iter883.write(oprot); } oprot.writeListEnd(); } @@ -1323,9 +1323,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, SchemaVersion struc if (struct.isSetCols()) { { oprot.writeI32(struct.cols.size()); - for (FieldSchema _iter868 : struct.cols) + for (FieldSchema _iter884 : struct.cols) { - _iter868.write(oprot); + _iter884.write(oprot); } } } @@ -1368,14 +1368,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, SchemaVersion struct } if (incoming.get(3)) { { - org.apache.thrift.protocol.TList _list869 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.cols = new ArrayList(_list869.size); - FieldSchema _elem870; - for (int _i871 = 0; _i871 < _list869.size; ++_i871) + org.apache.thrift.protocol.TList _list885 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.cols = new ArrayList(_list885.size); + FieldSchema _elem886; + for (int _i887 = 0; _i887 < _list885.size; ++_i887) { - _elem870 = new FieldSchema(); - _elem870.read(iprot); - struct.cols.add(_elem870); + _elem886 = new FieldSchema(); + _elem886.read(iprot); + struct.cols.add(_elem886); } } struct.setColsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java index a189d0ab25..dd1366ba6d 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 _list644 = iprot.readListBegin(); - struct.compacts = new ArrayList(_list644.size); - ShowCompactResponseElement _elem645; - for (int _i646 = 0; _i646 < _list644.size; ++_i646) + org.apache.thrift.protocol.TList _list660 = iprot.readListBegin(); + struct.compacts = new ArrayList(_list660.size); + ShowCompactResponseElement _elem661; + for (int _i662 = 0; _i662 < _list660.size; ++_i662) { - _elem645 = new ShowCompactResponseElement(); - _elem645.read(iprot); - struct.compacts.add(_elem645); + _elem661 = new ShowCompactResponseElement(); + _elem661.read(iprot); + struct.compacts.add(_elem661); } 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 _iter647 : struct.compacts) + for (ShowCompactResponseElement _iter663 : struct.compacts) { - _iter647.write(oprot); + _iter663.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 _iter648 : struct.compacts) + for (ShowCompactResponseElement _iter664 : struct.compacts) { - _iter648.write(oprot); + _iter664.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 _list649 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.compacts = new ArrayList(_list649.size); - ShowCompactResponseElement _elem650; - for (int _i651 = 0; _i651 < _list649.size; ++_i651) + org.apache.thrift.protocol.TList _list665 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.compacts = new ArrayList(_list665.size); + ShowCompactResponseElement _elem666; + for (int _i667 = 0; _i667 < _list665.size; ++_i667) { - _elem650 = new ShowCompactResponseElement(); - _elem650.read(iprot); - struct.compacts.add(_elem650); + _elem666 = new ShowCompactResponseElement(); + _elem666.read(iprot); + struct.compacts.add(_elem666); } } 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 37155095a4..941f756f80 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 _list610 = iprot.readListBegin(); - struct.locks = new ArrayList(_list610.size); - ShowLocksResponseElement _elem611; - for (int _i612 = 0; _i612 < _list610.size; ++_i612) + org.apache.thrift.protocol.TList _list626 = iprot.readListBegin(); + struct.locks = new ArrayList(_list626.size); + ShowLocksResponseElement _elem627; + for (int _i628 = 0; _i628 < _list626.size; ++_i628) { - _elem611 = new ShowLocksResponseElement(); - _elem611.read(iprot); - struct.locks.add(_elem611); + _elem627 = new ShowLocksResponseElement(); + _elem627.read(iprot); + struct.locks.add(_elem627); } 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 _iter613 : struct.locks) + for (ShowLocksResponseElement _iter629 : struct.locks) { - _iter613.write(oprot); + _iter629.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 _iter614 : struct.locks) + for (ShowLocksResponseElement _iter630 : struct.locks) { - _iter614.write(oprot); + _iter630.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 _list615 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.locks = new ArrayList(_list615.size); - ShowLocksResponseElement _elem616; - for (int _i617 = 0; _i617 < _list615.size; ++_i617) + org.apache.thrift.protocol.TList _list631 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.locks = new ArrayList(_list631.size); + ShowLocksResponseElement _elem632; + for (int _i633 = 0; _i633 < _list631.size; ++_i633) { - _elem616 = new ShowLocksResponseElement(); - _elem616.read(iprot); - struct.locks.add(_elem616); + _elem632 = new ShowLocksResponseElement(); + _elem632.read(iprot); + struct.locks.add(_elem632); } } 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 ccab0e166f..6c7c9af797 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 _list426 = iprot.readListBegin(); - struct.colNames = new ArrayList(_list426.size); - String _elem427; - for (int _i428 = 0; _i428 < _list426.size; ++_i428) + org.apache.thrift.protocol.TList _list442 = iprot.readListBegin(); + struct.colNames = new ArrayList(_list442.size); + String _elem443; + for (int _i444 = 0; _i444 < _list442.size; ++_i444) { - _elem427 = iprot.readString(); - struct.colNames.add(_elem427); + _elem443 = iprot.readString(); + struct.colNames.add(_elem443); } 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 _iter429 : struct.colNames) + for (String _iter445 : struct.colNames) { - oprot.writeString(_iter429); + oprot.writeString(_iter445); } 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 _iter430 : struct.colNames) + for (String _iter446 : struct.colNames) { - oprot.writeString(_iter430); + oprot.writeString(_iter446); } } } @@ -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 _list431 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.colNames = new ArrayList(_list431.size); - String _elem432; - for (int _i433 = 0; _i433 < _list431.size; ++_i433) + org.apache.thrift.protocol.TList _list447 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.colNames = new ArrayList(_list447.size); + String _elem448; + for (int _i449 = 0; _i449 < _list447.size; ++_i449) { - _elem432 = iprot.readString(); - struct.colNames.add(_elem432); + _elem448 = iprot.readString(); + struct.colNames.add(_elem448); } } 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 4e8c5b25b4..789f91c372 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 _list400 = iprot.readListBegin(); - struct.tableStats = new ArrayList(_list400.size); - ColumnStatisticsObj _elem401; - for (int _i402 = 0; _i402 < _list400.size; ++_i402) + org.apache.thrift.protocol.TList _list416 = iprot.readListBegin(); + struct.tableStats = new ArrayList(_list416.size); + ColumnStatisticsObj _elem417; + for (int _i418 = 0; _i418 < _list416.size; ++_i418) { - _elem401 = new ColumnStatisticsObj(); - _elem401.read(iprot); - struct.tableStats.add(_elem401); + _elem417 = new ColumnStatisticsObj(); + _elem417.read(iprot); + struct.tableStats.add(_elem417); } 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 _iter403 : struct.tableStats) + for (ColumnStatisticsObj _iter419 : struct.tableStats) { - _iter403.write(oprot); + _iter419.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 _iter404 : struct.tableStats) + for (ColumnStatisticsObj _iter420 : struct.tableStats) { - _iter404.write(oprot); + _iter420.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 _list405 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tableStats = new ArrayList(_list405.size); - ColumnStatisticsObj _elem406; - for (int _i407 = 0; _i407 < _list405.size; ++_i407) + org.apache.thrift.protocol.TList _list421 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tableStats = new ArrayList(_list421.size); + ColumnStatisticsObj _elem422; + for (int _i423 = 0; _i423 < _list421.size; ++_i423) { - _elem406 = new ColumnStatisticsObj(); - _elem406.read(iprot); - struct.tableStats.add(_elem406); + _elem422 = new ColumnStatisticsObj(); + _elem422.read(iprot); + struct.tableStats.add(_elem422); } } struct.setTableStatsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableValidWriteIds.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableValidWriteIds.java index aab0aa38bc..893454e700 100644 --- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableValidWriteIds.java +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableValidWriteIds.java @@ -708,13 +708,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TableValidWriteIds case 3: // INVALID_WRITE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list570 = iprot.readListBegin(); - struct.invalidWriteIds = new ArrayList(_list570.size); - long _elem571; - for (int _i572 = 0; _i572 < _list570.size; ++_i572) + org.apache.thrift.protocol.TList _list586 = iprot.readListBegin(); + struct.invalidWriteIds = new ArrayList(_list586.size); + long _elem587; + for (int _i588 = 0; _i588 < _list586.size; ++_i588) { - _elem571 = iprot.readI64(); - struct.invalidWriteIds.add(_elem571); + _elem587 = iprot.readI64(); + struct.invalidWriteIds.add(_elem587); } iprot.readListEnd(); } @@ -764,9 +764,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, TableValidWriteIds oprot.writeFieldBegin(INVALID_WRITE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.invalidWriteIds.size())); - for (long _iter573 : struct.invalidWriteIds) + for (long _iter589 : struct.invalidWriteIds) { - oprot.writeI64(_iter573); + oprot.writeI64(_iter589); } oprot.writeListEnd(); } @@ -803,9 +803,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TableValidWriteIds oprot.writeI64(struct.writeIdHighWaterMark); { oprot.writeI32(struct.invalidWriteIds.size()); - for (long _iter574 : struct.invalidWriteIds) + for (long _iter590 : struct.invalidWriteIds) { - oprot.writeI64(_iter574); + oprot.writeI64(_iter590); } } oprot.writeBinary(struct.abortedBits); @@ -827,13 +827,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TableValidWriteIds s struct.writeIdHighWaterMark = iprot.readI64(); struct.setWriteIdHighWaterMarkIsSet(true); { - org.apache.thrift.protocol.TList _list575 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.invalidWriteIds = new ArrayList(_list575.size); - long _elem576; - for (int _i577 = 0; _i577 < _list575.size; ++_i577) + org.apache.thrift.protocol.TList _list591 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.invalidWriteIds = new ArrayList(_list591.size); + long _elem592; + for (int _i593 = 0; _i593 < _list591.size; ++_i593) { - _elem576 = iprot.readI64(); - struct.invalidWriteIds.add(_elem576); + _elem592 = iprot.readI64(); + struct.invalidWriteIds.add(_elem592); } } struct.setInvalidWriteIdsIsSet(true); diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java index 8c5ceafb25..e824f4a145 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, List defaultConstraints) 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, List checkConstraints) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException; public void drop_constraint(DropConstraintRequest req) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; @@ -92,6 +92,8 @@ public void add_default_constraint(AddDefaultConstraintRequest req) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; + public void add_check_constraint(AddCheckConstraintRequest 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; @@ -224,6 +226,8 @@ public DefaultConstraintsResponse get_default_constraints(DefaultConstraintsRequest request) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; + public CheckConstraintsResponse get_check_constraints(CheckConstraintsRequest 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; @@ -470,7 +474,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, List defaultConstraints, 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, List checkConstraints, 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; @@ -484,6 +488,8 @@ public void add_default_constraint(AddDefaultConstraintRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void add_check_constraint(AddCheckConstraintRequest 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; @@ -616,6 +622,8 @@ public void get_default_constraints(DefaultConstraintsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_check_constraints(CheckConstraintsRequest 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; @@ -1376,13 +1384,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, List defaultConstraints) 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, List checkConstraints) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException { - send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints); + send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints); recv_create_table_with_constraints(); } - public void send_create_table_with_constraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, List defaultConstraints) throws org.apache.thrift.TException + public void send_create_table_with_constraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, List defaultConstraints, List checkConstraints) throws org.apache.thrift.TException { create_table_with_constraints_args args = new create_table_with_constraints_args(); args.setTbl(tbl); @@ -1391,6 +1399,7 @@ public void send_create_table_with_constraints(Table tbl, List pr args.setUniqueConstraints(uniqueConstraints); args.setNotNullConstraints(notNullConstraints); args.setDefaultConstraints(defaultConstraints); + args.setCheckConstraints(checkConstraints); sendBase("create_table_with_constraints", args); } @@ -1569,6 +1578,32 @@ public void recv_add_default_constraint() throws NoSuchObjectException, MetaExce return; } + public void add_check_constraint(AddCheckConstraintRequest req) throws NoSuchObjectException, MetaException, org.apache.thrift.TException + { + send_add_check_constraint(req); + recv_add_check_constraint(); + } + + public void send_add_check_constraint(AddCheckConstraintRequest req) throws org.apache.thrift.TException + { + add_check_constraint_args args = new add_check_constraint_args(); + args.setReq(req); + sendBase("add_check_constraint", args); + } + + public void recv_add_check_constraint() throws NoSuchObjectException, MetaException, org.apache.thrift.TException + { + add_check_constraint_result result = new add_check_constraint_result(); + receiveBase(result, "add_check_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); @@ -3603,6 +3638,35 @@ public DefaultConstraintsResponse recv_get_default_constraints() throws MetaExce throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_default_constraints failed: unknown result"); } + public CheckConstraintsResponse get_check_constraints(CheckConstraintsRequest request) throws MetaException, NoSuchObjectException, org.apache.thrift.TException + { + send_get_check_constraints(request); + return recv_get_check_constraints(); + } + + public void send_get_check_constraints(CheckConstraintsRequest request) throws org.apache.thrift.TException + { + get_check_constraints_args args = new get_check_constraints_args(); + args.setRequest(request); + sendBase("get_check_constraints", args); + } + + public CheckConstraintsResponse recv_get_check_constraints() throws MetaException, NoSuchObjectException, org.apache.thrift.TException + { + get_check_constraints_result result = new get_check_constraints_result(); + receiveBase(result, "get_check_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_check_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); @@ -7065,9 +7129,9 @@ public void getResult() throws AlreadyExistsException, InvalidObjectException, M } } - 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 create_table_with_constraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, List defaultConstraints, List checkConstraints, 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, defaultConstraints, resultHandler, this, ___protocolFactory, ___transport); + create_table_with_constraints_call method_call = new create_table_with_constraints_call(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } @@ -7079,7 +7143,8 @@ public void create_table_with_constraints(Table tbl, List primary private List uniqueConstraints; private List notNullConstraints; 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 { + private List checkConstraints; + public create_table_with_constraints_call(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, List defaultConstraints, List checkConstraints, 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; @@ -7087,6 +7152,7 @@ public create_table_with_constraints_call(Table tbl, List primary this.uniqueConstraints = uniqueConstraints; this.notNullConstraints = notNullConstraints; this.defaultConstraints = defaultConstraints; + this.checkConstraints = checkConstraints; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { @@ -7098,6 +7164,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa args.setUniqueConstraints(uniqueConstraints); args.setNotNullConstraints(notNullConstraints); args.setDefaultConstraints(defaultConstraints); + args.setCheckConstraints(checkConstraints); args.write(prot); prot.writeMessageEnd(); } @@ -7304,6 +7371,38 @@ public void getResult() throws NoSuchObjectException, MetaException, org.apache. } } + public void add_check_constraint(AddCheckConstraintRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + add_check_constraint_call method_call = new add_check_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_check_constraint_call extends org.apache.thrift.async.TAsyncMethodCall { + private AddCheckConstraintRequest req; + public add_check_constraint_call(AddCheckConstraintRequest 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_check_constraint", org.apache.thrift.protocol.TMessageType.CALL, 0)); + add_check_constraint_args args = new add_check_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_check_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); @@ -9776,6 +9875,38 @@ public DefaultConstraintsResponse getResult() throws MetaException, NoSuchObject } } + public void get_check_constraints(CheckConstraintsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + get_check_constraints_call method_call = new get_check_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_check_constraints_call extends org.apache.thrift.async.TAsyncMethodCall { + private CheckConstraintsRequest request; + public get_check_constraints_call(CheckConstraintsRequest 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_check_constraints", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_check_constraints_args args = new get_check_constraints_args(); + args.setRequest(request); + args.write(prot); + prot.writeMessageEnd(); + } + + public CheckConstraintsResponse 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_check_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); @@ -13176,6 +13307,7 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { + public add_check_constraint() { + super("add_check_constraint"); + } + + public add_check_constraint_args getEmptyArgsInstance() { + return new add_check_constraint_args(); + } + + protected boolean isOneway() { + return false; + } + + public add_check_constraint_result getResult(I iface, add_check_constraint_args args) throws org.apache.thrift.TException { + add_check_constraint_result result = new add_check_constraint_result(); + try { + iface.add_check_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"); @@ -15765,6 +15924,32 @@ public get_default_constraints_result getResult(I iface, get_default_constraints } } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_check_constraints extends org.apache.thrift.ProcessFunction { + public get_check_constraints() { + super("get_check_constraints"); + } + + public get_check_constraints_args getEmptyArgsInstance() { + return new get_check_constraints_args(); + } + + protected boolean isOneway() { + return false; + } + + public get_check_constraints_result getResult(I iface, get_check_constraints_args args) throws org.apache.thrift.TException { + get_check_constraints_result result = new get_check_constraints_result(); + try { + result.success = iface.get_check_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"); @@ -18377,6 +18562,7 @@ protected AsyncProcessor(I iface, Map resultHandler) throws TException { - iface.create_table_with_constraints(args.tbl, args.primaryKeys, args.foreignKeys, args.uniqueConstraints, args.notNullConstraints, args.defaultConstraints,resultHandler); + iface.create_table_with_constraints(args.tbl, args.primaryKeys, args.foreignKeys, args.uniqueConstraints, args.notNullConstraints, args.defaultConstraints, args.checkConstraints,resultHandler); } } @@ -20128,6 +20315,67 @@ public void start(I iface, add_default_constraint_args args, org.apache.thrift.a } } + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class add_check_constraint extends org.apache.thrift.AsyncProcessFunction { + public add_check_constraint() { + super("add_check_constraint"); + } + + public add_check_constraint_args getEmptyArgsInstance() { + return new add_check_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_check_constraint_result result = new add_check_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_check_constraint_result result = new add_check_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_check_constraint_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.add_check_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"); @@ -24280,22 +24528,21 @@ public void start(I iface, get_default_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_check_constraints extends org.apache.thrift.AsyncProcessFunction { + public get_check_constraints() { + super("get_check_constraints"); } - public update_table_column_statistics_args getEmptyArgsInstance() { - return new update_table_column_statistics_args(); + public get_check_constraints_args getEmptyArgsInstance() { + return new get_check_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(CheckConstraintsResponse o) { + get_check_constraints_result result = new get_check_constraints_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -24307,26 +24554,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_check_constraints_result result = new get_check_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 { @@ -24348,25 +24585,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_check_constraints_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get_check_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 { @@ -24380,7 +24617,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); @@ -24421,26 +24658,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; @@ -24452,24 +24690,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; } @@ -35852,13 +36162,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 _list880 = iprot.readListBegin(); - struct.success = new ArrayList(_list880.size); - String _elem881; - for (int _i882 = 0; _i882 < _list880.size; ++_i882) + org.apache.thrift.protocol.TList _list896 = iprot.readListBegin(); + struct.success = new ArrayList(_list896.size); + String _elem897; + for (int _i898 = 0; _i898 < _list896.size; ++_i898) { - _elem881 = iprot.readString(); - struct.success.add(_elem881); + _elem897 = iprot.readString(); + struct.success.add(_elem897); } iprot.readListEnd(); } @@ -35893,9 +36203,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 _iter883 : struct.success) + for (String _iter899 : struct.success) { - oprot.writeString(_iter883); + oprot.writeString(_iter899); } oprot.writeListEnd(); } @@ -35934,9 +36244,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_databases_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter884 : struct.success) + for (String _iter900 : struct.success) { - oprot.writeString(_iter884); + oprot.writeString(_iter900); } } } @@ -35951,13 +36261,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 _list885 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list885.size); - String _elem886; - for (int _i887 = 0; _i887 < _list885.size; ++_i887) + org.apache.thrift.protocol.TList _list901 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list901.size); + String _elem902; + for (int _i903 = 0; _i903 < _list901.size; ++_i903) { - _elem886 = iprot.readString(); - struct.success.add(_elem886); + _elem902 = iprot.readString(); + struct.success.add(_elem902); } } struct.setSuccessIsSet(true); @@ -36611,13 +36921,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 _list888 = iprot.readListBegin(); - struct.success = new ArrayList(_list888.size); - String _elem889; - for (int _i890 = 0; _i890 < _list888.size; ++_i890) + org.apache.thrift.protocol.TList _list904 = iprot.readListBegin(); + struct.success = new ArrayList(_list904.size); + String _elem905; + for (int _i906 = 0; _i906 < _list904.size; ++_i906) { - _elem889 = iprot.readString(); - struct.success.add(_elem889); + _elem905 = iprot.readString(); + struct.success.add(_elem905); } iprot.readListEnd(); } @@ -36652,9 +36962,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 _iter891 : struct.success) + for (String _iter907 : struct.success) { - oprot.writeString(_iter891); + oprot.writeString(_iter907); } oprot.writeListEnd(); } @@ -36693,9 +37003,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_databases_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter892 : struct.success) + for (String _iter908 : struct.success) { - oprot.writeString(_iter892); + oprot.writeString(_iter908); } } } @@ -36710,13 +37020,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 _list893 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list893.size); - String _elem894; - for (int _i895 = 0; _i895 < _list893.size; ++_i895) + org.apache.thrift.protocol.TList _list909 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list909.size); + String _elem910; + for (int _i911 = 0; _i911 < _list909.size; ++_i911) { - _elem894 = iprot.readString(); - struct.success.add(_elem894); + _elem910 = iprot.readString(); + struct.success.add(_elem910); } } struct.setSuccessIsSet(true); @@ -41323,16 +41633,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 _map896 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map896.size); - String _key897; - Type _val898; - for (int _i899 = 0; _i899 < _map896.size; ++_i899) + org.apache.thrift.protocol.TMap _map912 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map912.size); + String _key913; + Type _val914; + for (int _i915 = 0; _i915 < _map912.size; ++_i915) { - _key897 = iprot.readString(); - _val898 = new Type(); - _val898.read(iprot); - struct.success.put(_key897, _val898); + _key913 = iprot.readString(); + _val914 = new Type(); + _val914.read(iprot); + struct.success.put(_key913, _val914); } iprot.readMapEnd(); } @@ -41367,10 +41677,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 _iter900 : struct.success.entrySet()) + for (Map.Entry _iter916 : struct.success.entrySet()) { - oprot.writeString(_iter900.getKey()); - _iter900.getValue().write(oprot); + oprot.writeString(_iter916.getKey()); + _iter916.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -41409,10 +41719,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 _iter901 : struct.success.entrySet()) + for (Map.Entry _iter917 : struct.success.entrySet()) { - oprot.writeString(_iter901.getKey()); - _iter901.getValue().write(oprot); + oprot.writeString(_iter917.getKey()); + _iter917.getValue().write(oprot); } } } @@ -41427,16 +41737,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 _map902 = 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*_map902.size); - String _key903; - Type _val904; - for (int _i905 = 0; _i905 < _map902.size; ++_i905) + org.apache.thrift.protocol.TMap _map918 = 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*_map918.size); + String _key919; + Type _val920; + for (int _i921 = 0; _i921 < _map918.size; ++_i921) { - _key903 = iprot.readString(); - _val904 = new Type(); - _val904.read(iprot); - struct.success.put(_key903, _val904); + _key919 = iprot.readString(); + _val920 = new Type(); + _val920.read(iprot); + struct.success.put(_key919, _val920); } } struct.setSuccessIsSet(true); @@ -42471,14 +42781,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 _list906 = iprot.readListBegin(); - struct.success = new ArrayList(_list906.size); - FieldSchema _elem907; - for (int _i908 = 0; _i908 < _list906.size; ++_i908) + org.apache.thrift.protocol.TList _list922 = iprot.readListBegin(); + struct.success = new ArrayList(_list922.size); + FieldSchema _elem923; + for (int _i924 = 0; _i924 < _list922.size; ++_i924) { - _elem907 = new FieldSchema(); - _elem907.read(iprot); - struct.success.add(_elem907); + _elem923 = new FieldSchema(); + _elem923.read(iprot); + struct.success.add(_elem923); } iprot.readListEnd(); } @@ -42531,9 +42841,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 _iter909 : struct.success) + for (FieldSchema _iter925 : struct.success) { - _iter909.write(oprot); + _iter925.write(oprot); } oprot.writeListEnd(); } @@ -42588,9 +42898,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter910 : struct.success) + for (FieldSchema _iter926 : struct.success) { - _iter910.write(oprot); + _iter926.write(oprot); } } } @@ -42611,14 +42921,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 _list911 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list911.size); - FieldSchema _elem912; - for (int _i913 = 0; _i913 < _list911.size; ++_i913) + org.apache.thrift.protocol.TList _list927 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list927.size); + FieldSchema _elem928; + for (int _i929 = 0; _i929 < _list927.size; ++_i929) { - _elem912 = new FieldSchema(); - _elem912.read(iprot); - struct.success.add(_elem912); + _elem928 = new FieldSchema(); + _elem928.read(iprot); + struct.success.add(_elem928); } } struct.setSuccessIsSet(true); @@ -43772,14 +44082,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 _list914 = iprot.readListBegin(); - struct.success = new ArrayList(_list914.size); - FieldSchema _elem915; - for (int _i916 = 0; _i916 < _list914.size; ++_i916) + org.apache.thrift.protocol.TList _list930 = iprot.readListBegin(); + struct.success = new ArrayList(_list930.size); + FieldSchema _elem931; + for (int _i932 = 0; _i932 < _list930.size; ++_i932) { - _elem915 = new FieldSchema(); - _elem915.read(iprot); - struct.success.add(_elem915); + _elem931 = new FieldSchema(); + _elem931.read(iprot); + struct.success.add(_elem931); } iprot.readListEnd(); } @@ -43832,9 +44142,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 _iter917 : struct.success) + for (FieldSchema _iter933 : struct.success) { - _iter917.write(oprot); + _iter933.write(oprot); } oprot.writeListEnd(); } @@ -43889,9 +44199,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter918 : struct.success) + for (FieldSchema _iter934 : struct.success) { - _iter918.write(oprot); + _iter934.write(oprot); } } } @@ -43912,14 +44222,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 _list919 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list919.size); - FieldSchema _elem920; - for (int _i921 = 0; _i921 < _list919.size; ++_i921) + org.apache.thrift.protocol.TList _list935 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list935.size); + FieldSchema _elem936; + for (int _i937 = 0; _i937 < _list935.size; ++_i937) { - _elem920 = new FieldSchema(); - _elem920.read(iprot); - struct.success.add(_elem920); + _elem936 = new FieldSchema(); + _elem936.read(iprot); + struct.success.add(_elem936); } } struct.setSuccessIsSet(true); @@ -44964,14 +45274,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 _list922 = iprot.readListBegin(); - struct.success = new ArrayList(_list922.size); - FieldSchema _elem923; - for (int _i924 = 0; _i924 < _list922.size; ++_i924) + org.apache.thrift.protocol.TList _list938 = iprot.readListBegin(); + struct.success = new ArrayList(_list938.size); + FieldSchema _elem939; + for (int _i940 = 0; _i940 < _list938.size; ++_i940) { - _elem923 = new FieldSchema(); - _elem923.read(iprot); - struct.success.add(_elem923); + _elem939 = new FieldSchema(); + _elem939.read(iprot); + struct.success.add(_elem939); } iprot.readListEnd(); } @@ -45024,9 +45334,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 _iter925 : struct.success) + for (FieldSchema _iter941 : struct.success) { - _iter925.write(oprot); + _iter941.write(oprot); } oprot.writeListEnd(); } @@ -45081,9 +45391,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter926 : struct.success) + for (FieldSchema _iter942 : struct.success) { - _iter926.write(oprot); + _iter942.write(oprot); } } } @@ -45104,14 +45414,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 _list927 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list927.size); - FieldSchema _elem928; - for (int _i929 = 0; _i929 < _list927.size; ++_i929) + org.apache.thrift.protocol.TList _list943 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list943.size); + FieldSchema _elem944; + for (int _i945 = 0; _i945 < _list943.size; ++_i945) { - _elem928 = new FieldSchema(); - _elem928.read(iprot); - struct.success.add(_elem928); + _elem944 = new FieldSchema(); + _elem944.read(iprot); + struct.success.add(_elem944); } } struct.setSuccessIsSet(true); @@ -46265,14 +46575,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 _list930 = iprot.readListBegin(); - struct.success = new ArrayList(_list930.size); - FieldSchema _elem931; - for (int _i932 = 0; _i932 < _list930.size; ++_i932) + org.apache.thrift.protocol.TList _list946 = iprot.readListBegin(); + struct.success = new ArrayList(_list946.size); + FieldSchema _elem947; + for (int _i948 = 0; _i948 < _list946.size; ++_i948) { - _elem931 = new FieldSchema(); - _elem931.read(iprot); - struct.success.add(_elem931); + _elem947 = new FieldSchema(); + _elem947.read(iprot); + struct.success.add(_elem947); } iprot.readListEnd(); } @@ -46325,9 +46635,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 _iter933 : struct.success) + for (FieldSchema _iter949 : struct.success) { - _iter933.write(oprot); + _iter949.write(oprot); } oprot.writeListEnd(); } @@ -46382,9 +46692,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter934 : struct.success) + for (FieldSchema _iter950 : struct.success) { - _iter934.write(oprot); + _iter950.write(oprot); } } } @@ -46405,14 +46715,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 _list935 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list935.size); - FieldSchema _elem936; - for (int _i937 = 0; _i937 < _list935.size; ++_i937) + org.apache.thrift.protocol.TList _list951 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list951.size); + FieldSchema _elem952; + for (int _i953 = 0; _i953 < _list951.size; ++_i953) { - _elem936 = new FieldSchema(); - _elem936.read(iprot); - struct.success.add(_elem936); + _elem952 = new FieldSchema(); + _elem952.read(iprot); + struct.success.add(_elem952); } } struct.setSuccessIsSet(true); @@ -48637,6 +48947,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_en 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 org.apache.thrift.protocol.TField CHECK_CONSTRAINTS_FIELD_DESC = new org.apache.thrift.protocol.TField("checkConstraints", org.apache.thrift.protocol.TType.LIST, (short)7); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -48650,6 +48961,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_en private List uniqueConstraints; // required private List notNullConstraints; // required private List defaultConstraints; // required + private List checkConstraints; // 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 { @@ -48658,7 +48970,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_en FOREIGN_KEYS((short)3, "foreignKeys"), UNIQUE_CONSTRAINTS((short)4, "uniqueConstraints"), NOT_NULL_CONSTRAINTS((short)5, "notNullConstraints"), - DEFAULT_CONSTRAINTS((short)6, "defaultConstraints"); + DEFAULT_CONSTRAINTS((short)6, "defaultConstraints"), + CHECK_CONSTRAINTS((short)7, "checkConstraints"); private static final Map byName = new HashMap(); @@ -48685,6 +48998,8 @@ public static _Fields findByThriftId(int fieldId) { return NOT_NULL_CONSTRAINTS; case 6: // DEFAULT_CONSTRAINTS return DEFAULT_CONSTRAINTS; + case 7: // CHECK_CONSTRAINTS + return CHECK_CONSTRAINTS; default: return null; } @@ -48745,6 +49060,9 @@ public String getFieldName() { 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)))); + tmpMap.put(_Fields.CHECK_CONSTRAINTS, new org.apache.thrift.meta_data.FieldMetaData("checkConstraints", 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, SQLCheckConstraint.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_with_constraints_args.class, metaDataMap); } @@ -48758,7 +49076,8 @@ public create_table_with_constraints_args( List foreignKeys, List uniqueConstraints, List notNullConstraints, - List defaultConstraints) + List defaultConstraints, + List checkConstraints) { this(); this.tbl = tbl; @@ -48767,6 +49086,7 @@ public create_table_with_constraints_args( this.uniqueConstraints = uniqueConstraints; this.notNullConstraints = notNullConstraints; this.defaultConstraints = defaultConstraints; + this.checkConstraints = checkConstraints; } /** @@ -48811,6 +49131,13 @@ public create_table_with_constraints_args(create_table_with_constraints_args oth } this.defaultConstraints = __this__defaultConstraints; } + if (other.isSetCheckConstraints()) { + List __this__checkConstraints = new ArrayList(other.checkConstraints.size()); + for (SQLCheckConstraint other_element : other.checkConstraints) { + __this__checkConstraints.add(new SQLCheckConstraint(other_element)); + } + this.checkConstraints = __this__checkConstraints; + } } public create_table_with_constraints_args deepCopy() { @@ -48825,6 +49152,7 @@ public void clear() { this.uniqueConstraints = null; this.notNullConstraints = null; this.defaultConstraints = null; + this.checkConstraints = null; } public Table getTbl() { @@ -49040,6 +49368,44 @@ public void setDefaultConstraintsIsSet(boolean value) { } } + public int getCheckConstraintsSize() { + return (this.checkConstraints == null) ? 0 : this.checkConstraints.size(); + } + + public java.util.Iterator getCheckConstraintsIterator() { + return (this.checkConstraints == null) ? null : this.checkConstraints.iterator(); + } + + public void addToCheckConstraints(SQLCheckConstraint elem) { + if (this.checkConstraints == null) { + this.checkConstraints = new ArrayList(); + } + this.checkConstraints.add(elem); + } + + public List getCheckConstraints() { + return this.checkConstraints; + } + + public void setCheckConstraints(List checkConstraints) { + this.checkConstraints = checkConstraints; + } + + public void unsetCheckConstraints() { + this.checkConstraints = null; + } + + /** Returns true if field checkConstraints is set (has been assigned a value) and false otherwise */ + public boolean isSetCheckConstraints() { + return this.checkConstraints != null; + } + + public void setCheckConstraintsIsSet(boolean value) { + if (!value) { + this.checkConstraints = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case TBL: @@ -49090,6 +49456,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case CHECK_CONSTRAINTS: + if (value == null) { + unsetCheckConstraints(); + } else { + setCheckConstraints((List)value); + } + break; + } } @@ -49113,6 +49487,9 @@ public Object getFieldValue(_Fields field) { case DEFAULT_CONSTRAINTS: return getDefaultConstraints(); + case CHECK_CONSTRAINTS: + return getCheckConstraints(); + } throw new IllegalStateException(); } @@ -49136,6 +49513,8 @@ public boolean isSet(_Fields field) { return isSetNotNullConstraints(); case DEFAULT_CONSTRAINTS: return isSetDefaultConstraints(); + case CHECK_CONSTRAINTS: + return isSetCheckConstraints(); } throw new IllegalStateException(); } @@ -49207,6 +49586,15 @@ public boolean equals(create_table_with_constraints_args that) { return false; } + boolean this_present_checkConstraints = true && this.isSetCheckConstraints(); + boolean that_present_checkConstraints = true && that.isSetCheckConstraints(); + if (this_present_checkConstraints || that_present_checkConstraints) { + if (!(this_present_checkConstraints && that_present_checkConstraints)) + return false; + if (!this.checkConstraints.equals(that.checkConstraints)) + return false; + } + return true; } @@ -49244,6 +49632,11 @@ public int hashCode() { if (present_defaultConstraints) list.add(defaultConstraints); + boolean present_checkConstraints = true && (isSetCheckConstraints()); + list.add(present_checkConstraints); + if (present_checkConstraints) + list.add(checkConstraints); + return list.hashCode(); } @@ -49315,6 +49708,16 @@ public int compareTo(create_table_with_constraints_args other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetCheckConstraints()).compareTo(other.isSetCheckConstraints()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCheckConstraints()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.checkConstraints, other.checkConstraints); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -49382,6 +49785,14 @@ public String toString() { sb.append(this.defaultConstraints); } first = false; + if (!first) sb.append(", "); + sb.append("checkConstraints:"); + if (this.checkConstraints == null) { + sb.append("null"); + } else { + sb.append(this.checkConstraints); + } + first = false; sb.append(")"); return sb.toString(); } @@ -49440,14 +49851,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 _list938 = iprot.readListBegin(); - struct.primaryKeys = new ArrayList(_list938.size); - SQLPrimaryKey _elem939; - for (int _i940 = 0; _i940 < _list938.size; ++_i940) + org.apache.thrift.protocol.TList _list954 = iprot.readListBegin(); + struct.primaryKeys = new ArrayList(_list954.size); + SQLPrimaryKey _elem955; + for (int _i956 = 0; _i956 < _list954.size; ++_i956) { - _elem939 = new SQLPrimaryKey(); - _elem939.read(iprot); - struct.primaryKeys.add(_elem939); + _elem955 = new SQLPrimaryKey(); + _elem955.read(iprot); + struct.primaryKeys.add(_elem955); } iprot.readListEnd(); } @@ -49459,14 +49870,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 _list941 = iprot.readListBegin(); - struct.foreignKeys = new ArrayList(_list941.size); - SQLForeignKey _elem942; - for (int _i943 = 0; _i943 < _list941.size; ++_i943) + org.apache.thrift.protocol.TList _list957 = iprot.readListBegin(); + struct.foreignKeys = new ArrayList(_list957.size); + SQLForeignKey _elem958; + for (int _i959 = 0; _i959 < _list957.size; ++_i959) { - _elem942 = new SQLForeignKey(); - _elem942.read(iprot); - struct.foreignKeys.add(_elem942); + _elem958 = new SQLForeignKey(); + _elem958.read(iprot); + struct.foreignKeys.add(_elem958); } iprot.readListEnd(); } @@ -49478,14 +49889,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 _list944 = iprot.readListBegin(); - struct.uniqueConstraints = new ArrayList(_list944.size); - SQLUniqueConstraint _elem945; - for (int _i946 = 0; _i946 < _list944.size; ++_i946) + org.apache.thrift.protocol.TList _list960 = iprot.readListBegin(); + struct.uniqueConstraints = new ArrayList(_list960.size); + SQLUniqueConstraint _elem961; + for (int _i962 = 0; _i962 < _list960.size; ++_i962) { - _elem945 = new SQLUniqueConstraint(); - _elem945.read(iprot); - struct.uniqueConstraints.add(_elem945); + _elem961 = new SQLUniqueConstraint(); + _elem961.read(iprot); + struct.uniqueConstraints.add(_elem961); } iprot.readListEnd(); } @@ -49497,14 +49908,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 _list947 = iprot.readListBegin(); - struct.notNullConstraints = new ArrayList(_list947.size); - SQLNotNullConstraint _elem948; - for (int _i949 = 0; _i949 < _list947.size; ++_i949) + org.apache.thrift.protocol.TList _list963 = iprot.readListBegin(); + struct.notNullConstraints = new ArrayList(_list963.size); + SQLNotNullConstraint _elem964; + for (int _i965 = 0; _i965 < _list963.size; ++_i965) { - _elem948 = new SQLNotNullConstraint(); - _elem948.read(iprot); - struct.notNullConstraints.add(_elem948); + _elem964 = new SQLNotNullConstraint(); + _elem964.read(iprot); + struct.notNullConstraints.add(_elem964); } iprot.readListEnd(); } @@ -49516,14 +49927,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c case 6: // DEFAULT_CONSTRAINTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list950 = iprot.readListBegin(); - struct.defaultConstraints = new ArrayList(_list950.size); - SQLDefaultConstraint _elem951; - for (int _i952 = 0; _i952 < _list950.size; ++_i952) + org.apache.thrift.protocol.TList _list966 = iprot.readListBegin(); + struct.defaultConstraints = new ArrayList(_list966.size); + SQLDefaultConstraint _elem967; + for (int _i968 = 0; _i968 < _list966.size; ++_i968) { - _elem951 = new SQLDefaultConstraint(); - _elem951.read(iprot); - struct.defaultConstraints.add(_elem951); + _elem967 = new SQLDefaultConstraint(); + _elem967.read(iprot); + struct.defaultConstraints.add(_elem967); } iprot.readListEnd(); } @@ -49532,6 +49943,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 7: // CHECK_CONSTRAINTS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list969 = iprot.readListBegin(); + struct.checkConstraints = new ArrayList(_list969.size); + SQLCheckConstraint _elem970; + for (int _i971 = 0; _i971 < _list969.size; ++_i971) + { + _elem970 = new SQLCheckConstraint(); + _elem970.read(iprot); + struct.checkConstraints.add(_elem970); + } + iprot.readListEnd(); + } + struct.setCheckConstraintsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -49554,9 +49984,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 _iter953 : struct.primaryKeys) + for (SQLPrimaryKey _iter972 : struct.primaryKeys) { - _iter953.write(oprot); + _iter972.write(oprot); } oprot.writeListEnd(); } @@ -49566,9 +49996,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 _iter954 : struct.foreignKeys) + for (SQLForeignKey _iter973 : struct.foreignKeys) { - _iter954.write(oprot); + _iter973.write(oprot); } oprot.writeListEnd(); } @@ -49578,9 +50008,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 _iter955 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter974 : struct.uniqueConstraints) { - _iter955.write(oprot); + _iter974.write(oprot); } oprot.writeListEnd(); } @@ -49590,9 +50020,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(NOT_NULL_CONSTRAINTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.notNullConstraints.size())); - for (SQLNotNullConstraint _iter956 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter975 : struct.notNullConstraints) { - _iter956.write(oprot); + _iter975.write(oprot); } oprot.writeListEnd(); } @@ -49602,9 +50032,21 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(DEFAULT_CONSTRAINTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.defaultConstraints.size())); - for (SQLDefaultConstraint _iter957 : struct.defaultConstraints) + for (SQLDefaultConstraint _iter976 : struct.defaultConstraints) { - _iter957.write(oprot); + _iter976.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.checkConstraints != null) { + oprot.writeFieldBegin(CHECK_CONSTRAINTS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.checkConstraints.size())); + for (SQLCheckConstraint _iter977 : struct.checkConstraints) + { + _iter977.write(oprot); } oprot.writeListEnd(); } @@ -49646,52 +50088,64 @@ public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_c if (struct.isSetDefaultConstraints()) { optionals.set(5); } - oprot.writeBitSet(optionals, 6); + if (struct.isSetCheckConstraints()) { + optionals.set(6); + } + oprot.writeBitSet(optionals, 7); if (struct.isSetTbl()) { struct.tbl.write(oprot); } if (struct.isSetPrimaryKeys()) { { oprot.writeI32(struct.primaryKeys.size()); - for (SQLPrimaryKey _iter958 : struct.primaryKeys) + for (SQLPrimaryKey _iter978 : struct.primaryKeys) { - _iter958.write(oprot); + _iter978.write(oprot); } } } if (struct.isSetForeignKeys()) { { oprot.writeI32(struct.foreignKeys.size()); - for (SQLForeignKey _iter959 : struct.foreignKeys) + for (SQLForeignKey _iter979 : struct.foreignKeys) { - _iter959.write(oprot); + _iter979.write(oprot); } } } if (struct.isSetUniqueConstraints()) { { oprot.writeI32(struct.uniqueConstraints.size()); - for (SQLUniqueConstraint _iter960 : struct.uniqueConstraints) + for (SQLUniqueConstraint _iter980 : struct.uniqueConstraints) { - _iter960.write(oprot); + _iter980.write(oprot); } } } if (struct.isSetNotNullConstraints()) { { oprot.writeI32(struct.notNullConstraints.size()); - for (SQLNotNullConstraint _iter961 : struct.notNullConstraints) + for (SQLNotNullConstraint _iter981 : struct.notNullConstraints) { - _iter961.write(oprot); + _iter981.write(oprot); } } } if (struct.isSetDefaultConstraints()) { { oprot.writeI32(struct.defaultConstraints.size()); - for (SQLDefaultConstraint _iter962 : struct.defaultConstraints) + for (SQLDefaultConstraint _iter982 : struct.defaultConstraints) { - _iter962.write(oprot); + _iter982.write(oprot); + } + } + } + if (struct.isSetCheckConstraints()) { + { + oprot.writeI32(struct.checkConstraints.size()); + for (SQLCheckConstraint _iter983 : struct.checkConstraints) + { + _iter983.write(oprot); } } } @@ -49700,7 +50154,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(6); + BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { struct.tbl = new Table(); struct.tbl.read(iprot); @@ -49708,74 +50162,88 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_co } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list963 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.primaryKeys = new ArrayList(_list963.size); - SQLPrimaryKey _elem964; - for (int _i965 = 0; _i965 < _list963.size; ++_i965) + org.apache.thrift.protocol.TList _list984 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.primaryKeys = new ArrayList(_list984.size); + SQLPrimaryKey _elem985; + for (int _i986 = 0; _i986 < _list984.size; ++_i986) { - _elem964 = new SQLPrimaryKey(); - _elem964.read(iprot); - struct.primaryKeys.add(_elem964); + _elem985 = new SQLPrimaryKey(); + _elem985.read(iprot); + struct.primaryKeys.add(_elem985); } } struct.setPrimaryKeysIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list966 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.foreignKeys = new ArrayList(_list966.size); - SQLForeignKey _elem967; - for (int _i968 = 0; _i968 < _list966.size; ++_i968) + org.apache.thrift.protocol.TList _list987 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.foreignKeys = new ArrayList(_list987.size); + SQLForeignKey _elem988; + for (int _i989 = 0; _i989 < _list987.size; ++_i989) { - _elem967 = new SQLForeignKey(); - _elem967.read(iprot); - struct.foreignKeys.add(_elem967); + _elem988 = new SQLForeignKey(); + _elem988.read(iprot); + struct.foreignKeys.add(_elem988); } } struct.setForeignKeysIsSet(true); } if (incoming.get(3)) { { - org.apache.thrift.protocol.TList _list969 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.uniqueConstraints = new ArrayList(_list969.size); - SQLUniqueConstraint _elem970; - for (int _i971 = 0; _i971 < _list969.size; ++_i971) + org.apache.thrift.protocol.TList _list990 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.uniqueConstraints = new ArrayList(_list990.size); + SQLUniqueConstraint _elem991; + for (int _i992 = 0; _i992 < _list990.size; ++_i992) { - _elem970 = new SQLUniqueConstraint(); - _elem970.read(iprot); - struct.uniqueConstraints.add(_elem970); + _elem991 = new SQLUniqueConstraint(); + _elem991.read(iprot); + struct.uniqueConstraints.add(_elem991); } } struct.setUniqueConstraintsIsSet(true); } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list972 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.notNullConstraints = new ArrayList(_list972.size); - SQLNotNullConstraint _elem973; - for (int _i974 = 0; _i974 < _list972.size; ++_i974) + org.apache.thrift.protocol.TList _list993 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.notNullConstraints = new ArrayList(_list993.size); + SQLNotNullConstraint _elem994; + for (int _i995 = 0; _i995 < _list993.size; ++_i995) { - _elem973 = new SQLNotNullConstraint(); - _elem973.read(iprot); - struct.notNullConstraints.add(_elem973); + _elem994 = new SQLNotNullConstraint(); + _elem994.read(iprot); + struct.notNullConstraints.add(_elem994); } } struct.setNotNullConstraintsIsSet(true); } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list975 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.defaultConstraints = new ArrayList(_list975.size); - SQLDefaultConstraint _elem976; - for (int _i977 = 0; _i977 < _list975.size; ++_i977) + org.apache.thrift.protocol.TList _list996 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.defaultConstraints = new ArrayList(_list996.size); + SQLDefaultConstraint _elem997; + for (int _i998 = 0; _i998 < _list996.size; ++_i998) { - _elem976 = new SQLDefaultConstraint(); - _elem976.read(iprot); - struct.defaultConstraints.add(_elem976); + _elem997 = new SQLDefaultConstraint(); + _elem997.read(iprot); + struct.defaultConstraints.add(_elem997); } } struct.setDefaultConstraintsIsSet(true); } + if (incoming.get(6)) { + { + org.apache.thrift.protocol.TList _list999 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.checkConstraints = new ArrayList(_list999.size); + SQLCheckConstraint _elem1000; + for (int _i1001 = 0; _i1001 < _list999.size; ++_i1001) + { + _elem1000 = new SQLCheckConstraint(); + _elem1000.read(iprot); + struct.checkConstraints.add(_elem1000); + } + } + struct.setCheckConstraintsIsSet(true); + } } } @@ -55433,28 +55901,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_default_constrai } - @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_check_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_check_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_check_constraint_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_check_constraint_argsTupleSchemeFactory()); } - private String dbname; // required - private String name; // required - private boolean deleteData; // required + private AddCheckConstraintRequest 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(); @@ -55469,12 +55931,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_default_constrai */ 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; } @@ -55515,153 +55973,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, AddCheckConstraintRequest.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_check_constraint_args.class, metaDataMap); } - public drop_table_args() { + public add_check_constraint_args() { } - public drop_table_args( - String dbname, - String name, - boolean deleteData) + public add_check_constraint_args( + AddCheckConstraintRequest 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_check_constraint_args(add_check_constraint_args other) { + if (other.isSetReq()) { + this.req = new AddCheckConstraintRequest(other.req); } - this.deleteData = other.deleteData; } - public drop_table_args deepCopy() { - return new drop_table_args(this); + public add_check_constraint_args deepCopy() { + return new add_check_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 AddCheckConstraintRequest getReq() { + return this.req; } - public void setName(String name) { - this.name = name; + public void setReq(AddCheckConstraintRequest 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((AddCheckConstraintRequest)value); } break; @@ -55670,14 +56048,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(); @@ -55690,12 +56062,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(); } @@ -55704,39 +56072,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_check_constraint_args) + return this.equals((add_check_constraint_args)that); return false; } - public boolean equals(drop_table_args that) { + public boolean equals(add_check_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; } @@ -55747,58 +56097,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_check_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; } @@ -55820,28 +56140,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_check_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(); } @@ -55849,6 +56157,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 { @@ -55861,23 +56172,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_check_constraint_argsStandardSchemeFactory implements SchemeFactory { + public add_check_constraint_argsStandardScheme getScheme() { + return new add_check_constraint_argsStandardScheme(); } } - private static class drop_table_argsStandardScheme extends StandardScheme { + private static class add_check_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_check_constraint_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -55887,26 +56196,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 AddCheckConstraintRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -55920,102 +56214,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_check_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_check_constraint_argsTupleSchemeFactory implements SchemeFactory { + public add_check_constraint_argsTupleScheme getScheme() { + return new add_check_constraint_argsTupleScheme(); } } - private static class drop_table_argsTupleScheme extends TupleScheme { + private static class add_check_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_check_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_check_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 AddCheckConstraintRequest(); + 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_check_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_check_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_check_constraint_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_check_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(); @@ -56032,8 +56299,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; } @@ -56079,44 +56346,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_check_constraint_result.class, metaDataMap); } - public drop_table_result() { + public add_check_constraint_result() { } - public drop_table_result( + public add_check_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_check_constraint_result(add_check_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_check_constraint_result deepCopy() { + return new add_check_constraint_result(this); } @Override public void clear() { this.o1 = null; - this.o3 = null; + this.o2 = null; } public NoSuchObjectException getO1() { @@ -56142,26 +56409,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; } } @@ -56175,11 +56442,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; @@ -56191,8 +56458,8 @@ public Object getFieldValue(_Fields field) { case O1: return getO1(); - case O3: - return getO3(); + case O2: + return getO2(); } throw new IllegalStateException(); @@ -56207,8 +56474,8 @@ public boolean isSet(_Fields field) { switch (field) { case O1: return isSetO1(); - case O3: - return isSetO3(); + case O2: + return isSetO2(); } throw new IllegalStateException(); } @@ -56217,12 +56484,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_check_constraint_result) + return this.equals((add_check_constraint_result)that); return false; } - public boolean equals(drop_table_result that) { + public boolean equals(add_check_constraint_result that) { if (that == null) return false; @@ -56235,12 +56502,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; } @@ -56256,16 +56523,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_check_constraint_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -56282,12 +56549,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; } @@ -56309,7 +56576,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_check_constraint_result("); boolean first = true; sb.append("o1:"); @@ -56320,11 +56587,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(")"); @@ -56352,15 +56619,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_check_constraint_resultStandardSchemeFactory implements SchemeFactory { + public add_check_constraint_resultStandardScheme getScheme() { + return new add_check_constraint_resultStandardScheme(); } } - private static class drop_table_resultStandardScheme extends StandardScheme { + private static class add_check_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_check_constraint_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -56379,11 +56646,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); } @@ -56397,7 +56664,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_check_constraint_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -56406,9 +56673,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(); @@ -56417,35 +56684,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_check_constraint_resultTupleSchemeFactory implements SchemeFactory { + public add_check_constraint_resultTupleScheme getScheme() { + return new add_check_constraint_resultTupleScheme(); } } - private static class drop_table_resultTupleScheme extends TupleScheme { + private static class add_check_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_check_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_check_constraint_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -56454,40 +56721,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(); @@ -56508,8 +56772,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; } @@ -56561,33 +56823,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; @@ -56596,13 +56854,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 @@ -56611,7 +56866,6 @@ public void clear() { this.name = null; setDeleteDataIsSet(false); this.deleteData = false; - this.environment_context = null; } public String getDbname() { @@ -56682,29 +56936,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: @@ -56731,14 +56962,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case ENVIRONMENT_CONTEXT: - if (value == null) { - unsetEnvironment_context(); - } else { - setEnvironment_context((EnvironmentContext)value); - } - break; - } } @@ -56753,9 +56976,6 @@ public Object getFieldValue(_Fields field) { case DELETE_DATA: return isDeleteData(); - case ENVIRONMENT_CONTEXT: - return getEnvironment_context(); - } throw new IllegalStateException(); } @@ -56773,8 +56993,6 @@ public boolean isSet(_Fields field) { return isSetName(); case DELETE_DATA: return isSetDeleteData(); - case ENVIRONMENT_CONTEXT: - return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -56783,12 +57001,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; @@ -56819,15 +57037,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; } @@ -56850,16 +57059,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()); } @@ -56896,16 +57100,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; } @@ -56923,7 +57117,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:"); @@ -56945,14 +57139,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(); } @@ -56960,9 +57146,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 { @@ -56983,15 +57166,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) @@ -57025,15 +57208,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); } @@ -57043,7 +57217,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); @@ -57060,27 +57234,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()) { @@ -57092,10 +57261,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); } @@ -57105,15 +57271,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); @@ -57126,26 +57289,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 @@ -57221,13 +57379,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) { @@ -57239,7 +57397,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); } @@ -57248,8 +57406,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 @@ -57356,12 +57514,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; @@ -57404,7 +57562,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()); } @@ -57448,7 +57606,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:"); @@ -57491,15 +57649,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) @@ -57536,7 +57694,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); @@ -57556,16 +57714,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()) { @@ -57584,7 +57742,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)) { @@ -57602,28 +57760,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(); @@ -57638,12 +57799,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; } @@ -57684,168 +57847,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; @@ -57854,14 +58041,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(); @@ -57874,12 +58064,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(); } @@ -57888,39 +58080,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; } @@ -57931,58 +58132,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; } @@ -58004,30 +58220,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(")"); @@ -58037,6 +58257,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 { @@ -58049,21 +58272,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) @@ -58073,36 +58298,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 _list978 = iprot.readListBegin(); - struct.partNames = new ArrayList(_list978.size); - String _elem979; - for (int _i980 = 0; _i980 < _list978.size; ++_i980) - { - _elem979 = iprot.readString(); - struct.partNames.add(_elem979); - } - 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); } @@ -58116,30 +58340,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 _iter981 : struct.partNames) - { - oprot.writeString(_iter981); - } - 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(); @@ -58148,91 +58368,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 _iter982 : struct.partNames) - { - oprot.writeString(_iter982); - } - } + 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 _list983 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partNames = new ArrayList(_list983.size); - String _elem984; - for (int _i985 = 0; _i985 < _list983.size; ++_i985) - { - _elem984 = iprot.readString(); - struct.partNames.add(_elem984); - } - } - 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(); @@ -58249,6 +58468,8 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // O1 return O1; + case 2: // O3 + return O3; default: return null; } @@ -58294,43 +58515,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; } @@ -58349,13 +58578,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; @@ -58367,6 +58627,9 @@ public Object getFieldValue(_Fields field) { case O1: return getO1(); + case O3: + return getO3(); + } throw new IllegalStateException(); } @@ -58380,6 +58643,8 @@ public boolean isSet(_Fields field) { switch (field) { case O1: return isSetO1(); + case O3: + return isSetO3(); } throw new IllegalStateException(); } @@ -58388,12 +58653,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; @@ -58406,6 +58671,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; } @@ -58418,11 +58692,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()); } @@ -58439,6 +58718,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; } @@ -58456,7 +58745,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:"); @@ -58466,6 +58755,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(); } @@ -58491,15 +58788,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) @@ -58511,13 +58808,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); } @@ -58527,7 +58833,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); @@ -58536,66 +58842,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(); @@ -58612,8 +58937,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; } @@ -58657,91 +58984,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; } } @@ -58749,17 +59124,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; @@ -58769,10 +59152,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(); @@ -58786,9 +59172,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(); } @@ -58797,30 +59185,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; } @@ -58831,43 +59228,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; } @@ -58889,22 +59301,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(")"); @@ -58932,15 +59352,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) @@ -58952,16 +59372,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 _list1002 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list1002.size); + String _elem1003; + for (int _i1004 = 0; _i1004 < _list1002.size; ++_i1004) + { + _elem1003 = iprot.readString(); + struct.partNames.add(_elem1003); + } + iprot.readListEnd(); + } + struct.setPartNamesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -58975,18 +59413,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 _iter1005 : struct.partNames) + { + oprot.writeString(_iter1005); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -58995,68 +59445,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 _iter1006 : struct.partNames) + { + oprot.writeString(_iter1006); + } + } } } @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 _list1007 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partNames = new ArrayList(_list1007.size); + String _elem1008; + for (int _i1009 = 0; _i1009 < _list1007.size; ++_i1009) + { + _elem1008 = iprot.readString(); + struct.partNames.add(_elem1008); + } + } + 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(); @@ -59072,8 +59544,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: @@ -59119,88 +59589,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; } @@ -59226,14 +59648,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(); @@ -59247,9 +59661,6 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case O1: return getO1(); @@ -59264,8 +59675,6 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); case O1: return isSetO1(); } @@ -59276,24 +59685,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) { @@ -59310,11 +59710,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) @@ -59324,23 +59719,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; @@ -59368,17 +59753,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"); @@ -59411,15 +59788,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) @@ -59429,24 +59806,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 _list986 = iprot.readListBegin(); - struct.success = new ArrayList(_list986.size); - String _elem987; - for (int _i988 = 0; _i988 < _list986.size; ++_i988) - { - _elem987 = iprot.readString(); - struct.success.add(_elem987); - } - 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(); @@ -59465,22 +59824,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 _iter989 : struct.success) - { - oprot.writeString(_iter989); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -59492,57 +59839,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 _iter990 : struct.success) - { - oprot.writeString(_iter990); - } - } + 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 _list991 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list991.size); - String _elem992; - for (int _i993 = 0; _i993 < _list991.size; ++_i993) - { - _elem992 = iprot.readString(); - struct.success.add(_elem992); - } - } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); @@ -59552,28 +59874,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(); @@ -59592,8 +59911,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; } @@ -59641,50 +59958,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() { @@ -59733,29 +60042,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: @@ -59774,14 +60060,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case TABLE_TYPE: - if (value == null) { - unsetTableType(); - } else { - setTableType((String)value); - } - break; - } } @@ -59793,9 +60071,6 @@ public Object getFieldValue(_Fields field) { case PATTERN: return getPattern(); - case TABLE_TYPE: - return getTableType(); - } throw new IllegalStateException(); } @@ -59811,8 +60086,6 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case PATTERN: return isSetPattern(); - case TABLE_TYPE: - return isSetTableType(); } throw new IllegalStateException(); } @@ -59821,12 +60094,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; @@ -59848,15 +60121,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; } @@ -59874,16 +60138,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()); } @@ -59910,16 +60169,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; } @@ -59937,7 +60186,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:"); @@ -59955,14 +60204,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(); } @@ -59988,15 +60229,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) @@ -60022,14 +60263,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); } @@ -60039,7 +60272,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); @@ -60053,27 +60286,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()) { @@ -60082,25 +60310,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); @@ -60109,25 +60331,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 @@ -60204,13 +60422,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) { @@ -60222,7 +60440,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; @@ -60232,8 +60450,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 @@ -60355,12 +60573,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; @@ -60403,7 +60621,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()); } @@ -60447,7 +60665,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:"); @@ -60490,15 +60708,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) @@ -60511,13 +60729,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 _list994 = iprot.readListBegin(); - struct.success = new ArrayList(_list994.size); - String _elem995; - for (int _i996 = 0; _i996 < _list994.size; ++_i996) + org.apache.thrift.protocol.TList _list1010 = iprot.readListBegin(); + struct.success = new ArrayList(_list1010.size); + String _elem1011; + for (int _i1012 = 0; _i1012 < _list1010.size; ++_i1012) { - _elem995 = iprot.readString(); - struct.success.add(_elem995); + _elem1011 = iprot.readString(); + struct.success.add(_elem1011); } iprot.readListEnd(); } @@ -60544,7 +60762,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); @@ -60552,9 +60770,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 _iter997 : struct.success) + for (String _iter1013 : struct.success) { - oprot.writeString(_iter997); + oprot.writeString(_iter1013); } oprot.writeListEnd(); } @@ -60571,16 +60789,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()) { @@ -60593,9 +60811,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter998 : struct.success) + for (String _iter1014 : struct.success) { - oprot.writeString(_iter998); + oprot.writeString(_iter1014); } } } @@ -60605,18 +60823,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 _list999 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list999.size); - String _elem1000; - for (int _i1001 = 0; _i1001 < _list999.size; ++_i1001) + org.apache.thrift.protocol.TList _list1015 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1015.size); + String _elem1016; + for (int _i1017 = 0; _i1017 < _list1015.size; ++_i1017) { - _elem1000 = iprot.readString(); - struct.success.add(_elem1000); + _elem1016 = iprot.readString(); + struct.success.add(_elem1016); } } struct.setSuccessIsSet(true); @@ -60631,22 +60849,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(); @@ -60663,6 +60887,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; } @@ -60708,36 +60936,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() { @@ -60763,6 +61007,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: @@ -60773,6 +61063,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; + } } @@ -60781,6 +61087,12 @@ public Object getFieldValue(_Fields field) { case DB_NAME: return getDb_name(); + case PATTERN: + return getPattern(); + + case TABLE_TYPE: + return getTableType(); + } throw new IllegalStateException(); } @@ -60794,6 +61106,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(); } @@ -60802,12 +61118,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; @@ -60820,6 +61136,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; } @@ -60832,11 +61166,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()); } @@ -60853,6 +61197,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; } @@ -60870,7 +61234,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:"); @@ -60880,6 +61244,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(); } @@ -60905,15 +61285,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) @@ -60931,6 +61311,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); } @@ -60940,7 +61336,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); @@ -60949,56 +61345,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 @@ -61075,13 +61501,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) { @@ -61093,7 +61519,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; @@ -61103,8 +61529,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 @@ -61226,12 +61652,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; @@ -61274,7 +61700,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()); } @@ -61318,7 +61744,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:"); @@ -61361,15 +61787,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) @@ -61382,13 +61808,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 _list1002 = iprot.readListBegin(); - struct.success = new ArrayList(_list1002.size); - String _elem1003; - for (int _i1004 = 0; _i1004 < _list1002.size; ++_i1004) + org.apache.thrift.protocol.TList _list1018 = iprot.readListBegin(); + struct.success = new ArrayList(_list1018.size); + String _elem1019; + for (int _i1020 = 0; _i1020 < _list1018.size; ++_i1020) { - _elem1003 = iprot.readString(); - struct.success.add(_elem1003); + _elem1019 = iprot.readString(); + struct.success.add(_elem1019); } iprot.readListEnd(); } @@ -61415,7 +61841,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); @@ -61423,9 +61849,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 _iter1005 : struct.success) + for (String _iter1021 : struct.success) { - oprot.writeString(_iter1005); + oprot.writeString(_iter1021); } oprot.writeListEnd(); } @@ -61442,16 +61868,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()) { @@ -61464,9 +61890,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_materialized_vi if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1006 : struct.success) + for (String _iter1022 : struct.success) { - oprot.writeString(_iter1006); + oprot.writeString(_iter1022); } } } @@ -61476,18 +61902,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 _list1007 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1007.size); - String _elem1008; - for (int _i1009 = 0; _i1009 < _list1007.size; ++_i1009) + org.apache.thrift.protocol.TList _list1023 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1023.size); + String _elem1024; + for (int _i1025 = 0; _i1025 < _list1023.size; ++_i1025) { - _elem1008 = iprot.readString(); - struct.success.add(_elem1008); + _elem1024 = iprot.readString(); + struct.success.add(_elem1024); } } struct.setSuccessIsSet(true); @@ -61502,28 +61928,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(); @@ -61538,12 +61958,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; } @@ -61587,165 +62003,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; @@ -61754,14 +62075,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(); @@ -61774,12 +62089,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(); } @@ -61788,39 +62099,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; } @@ -61831,58 +62124,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; } @@ -61904,30 +62167,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(")"); @@ -61955,15 +62202,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) @@ -61973,36 +62220,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 _list1010 = iprot.readListBegin(); - struct.tbl_types = new ArrayList(_list1010.size); - String _elem1011; - for (int _i1012 = 0; _i1012 < _list1010.size; ++_i1012) - { - _elem1011 = iprot.readString(); - struct.tbl_types.add(_elem1011); - } - 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); } @@ -62016,30 +62237,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 _iter1013 : struct.tbl_types) - { - oprot.writeString(_iter1013); - } - oprot.writeListEnd(); - } + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -62048,88 +62252,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 _iter1014 : struct.tbl_types) - { - oprot.writeString(_iter1014); - } - } + 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 _list1015 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_types = new ArrayList(_list1015.size); - String _elem1016; - for (int _i1017 = 0; _i1017 < _list1015.size; ++_i1017) - { - _elem1016 = iprot.readString(); - struct.tbl_types.add(_elem1016); - } - } - 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. */ @@ -62199,18 +62368,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(); @@ -62221,12 +62390,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()) { @@ -62234,8 +62400,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 @@ -62248,22 +62414,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; } @@ -62311,7 +62477,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -62357,12 +62523,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; @@ -62405,7 +62571,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()); } @@ -62449,7 +62615,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:"); @@ -62492,15 +62658,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) @@ -62513,14 +62679,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 _list1018 = iprot.readListBegin(); - struct.success = new ArrayList(_list1018.size); - TableMeta _elem1019; - for (int _i1020 = 0; _i1020 < _list1018.size; ++_i1020) + org.apache.thrift.protocol.TList _list1026 = iprot.readListBegin(); + struct.success = new ArrayList(_list1026.size); + String _elem1027; + for (int _i1028 = 0; _i1028 < _list1026.size; ++_i1028) { - _elem1019 = new TableMeta(); - _elem1019.read(iprot); - struct.success.add(_elem1019); + _elem1027 = iprot.readString(); + struct.success.add(_elem1027); } iprot.readListEnd(); } @@ -62547,17 +62712,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 _iter1021 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter1029 : struct.success) { - _iter1021.write(oprot); + oprot.writeString(_iter1029); } oprot.writeListEnd(); } @@ -62574,16 +62739,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()) { @@ -62596,9 +62761,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (TableMeta _iter1022 : struct.success) + for (String _iter1030 : struct.success) { - _iter1022.write(oprot); + oprot.writeString(_iter1030); } } } @@ -62608,19 +62773,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 _list1023 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1023.size); - TableMeta _elem1024; - for (int _i1025 = 0; _i1025 < _list1023.size; ++_i1025) + org.apache.thrift.protocol.TList _list1031 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1031.size); + String _elem1032; + for (int _i1033 = 0; _i1033 < _list1031.size; ++_i1033) { - _elem1024 = new TableMeta(); - _elem1024.read(iprot); - struct.success.add(_elem1024); + _elem1032 = iprot.readString(); + struct.success.add(_elem1032); } } struct.setSuccessIsSet(true); @@ -62635,22 +62799,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(); @@ -62665,8 +62835,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; } @@ -62710,70 +62884,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; @@ -62782,8 +63051,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(); @@ -62796,8 +63071,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(); } @@ -62806,21 +63085,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; } @@ -62831,28 +63128,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; } @@ -62874,14 +63201,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(")"); @@ -62909,15 +63252,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) @@ -62927,10 +63270,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 _list1034 = iprot.readListBegin(); + struct.tbl_types = new ArrayList(_list1034.size); + String _elem1035; + for (int _i1036 = 0; _i1036 < _list1034.size; ++_i1036) + { + _elem1035 = iprot.readString(); + struct.tbl_types.add(_elem1035); + } + iprot.readListEnd(); + } + struct.setTbl_typesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -62944,13 +63313,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 _iter1037 : struct.tbl_types) + { + oprot.writeString(_iter1037); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -62959,53 +63345,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 _iter1038 : struct.tbl_types) + { + oprot.writeString(_iter1038); + } + } } } @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 _list1039 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_types = new ArrayList(_list1039.size); + String _elem1040; + for (int _i1041 = 0; _i1041 < _list1039.size; ++_i1041) + { + _elem1040 = iprot.readString(); + struct.tbl_types.add(_elem1040); + } + } + 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. */ @@ -63075,18 +63496,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(); @@ -63097,9 +63518,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()) { @@ -63107,8 +63531,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 @@ -63121,22 +63545,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; } @@ -63184,7 +63608,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -63230,12 +63654,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; @@ -63278,7 +63702,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()); } @@ -63322,7 +63746,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 _list1042 = iprot.readListBegin(); + struct.success = new ArrayList(_list1042.size); + TableMeta _elem1043; + for (int _i1044 = 0; _i1044 < _list1042.size; ++_i1044) + { + _elem1043 = new TableMeta(); + _elem1043.read(iprot); + struct.success.add(_elem1043); + } + 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 _iter1045 : struct.success) + { + _iter1045.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 _iter1046 : struct.success) + { + _iter1046.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 _list1047 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1047.size); + TableMeta _elem1048; + for (int _i1049 = 0; _i1049 < _list1047.size; ++_i1049) + { + _elem1048 = new TableMeta(); + _elem1048.read(iprot); + struct.success.add(_elem1048); + } + } + 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:"); @@ -63386,13 +64683,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 _list1026 = iprot.readListBegin(); - struct.success = new ArrayList(_list1026.size); - String _elem1027; - for (int _i1028 = 0; _i1028 < _list1026.size; ++_i1028) + org.apache.thrift.protocol.TList _list1050 = iprot.readListBegin(); + struct.success = new ArrayList(_list1050.size); + String _elem1051; + for (int _i1052 = 0; _i1052 < _list1050.size; ++_i1052) { - _elem1027 = iprot.readString(); - struct.success.add(_elem1027); + _elem1051 = iprot.readString(); + struct.success.add(_elem1051); } iprot.readListEnd(); } @@ -63427,9 +64724,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 _iter1029 : struct.success) + for (String _iter1053 : struct.success) { - oprot.writeString(_iter1029); + oprot.writeString(_iter1053); } oprot.writeListEnd(); } @@ -63468,9 +64765,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1030 : struct.success) + for (String _iter1054 : struct.success) { - oprot.writeString(_iter1030); + oprot.writeString(_iter1054); } } } @@ -63485,13 +64782,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 _list1031 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1031.size); - String _elem1032; - for (int _i1033 = 0; _i1033 < _list1031.size; ++_i1033) + org.apache.thrift.protocol.TList _list1055 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1055.size); + String _elem1056; + for (int _i1057 = 0; _i1057 < _list1055.size; ++_i1057) { - _elem1032 = iprot.readString(); - struct.success.add(_elem1032); + _elem1056 = iprot.readString(); + struct.success.add(_elem1056); } } struct.setSuccessIsSet(true); @@ -64944,13 +66241,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 _list1034 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list1034.size); - String _elem1035; - for (int _i1036 = 0; _i1036 < _list1034.size; ++_i1036) + org.apache.thrift.protocol.TList _list1058 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list1058.size); + String _elem1059; + for (int _i1060 = 0; _i1060 < _list1058.size; ++_i1060) { - _elem1035 = iprot.readString(); - struct.tbl_names.add(_elem1035); + _elem1059 = iprot.readString(); + struct.tbl_names.add(_elem1059); } iprot.readListEnd(); } @@ -64981,9 +66278,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 _iter1037 : struct.tbl_names) + for (String _iter1061 : struct.tbl_names) { - oprot.writeString(_iter1037); + oprot.writeString(_iter1061); } oprot.writeListEnd(); } @@ -65020,9 +66317,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 _iter1038 : struct.tbl_names) + for (String _iter1062 : struct.tbl_names) { - oprot.writeString(_iter1038); + oprot.writeString(_iter1062); } } } @@ -65038,13 +66335,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1039 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = new ArrayList(_list1039.size); - String _elem1040; - for (int _i1041 = 0; _i1041 < _list1039.size; ++_i1041) + org.apache.thrift.protocol.TList _list1063 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list1063.size); + String _elem1064; + for (int _i1065 = 0; _i1065 < _list1063.size; ++_i1065) { - _elem1040 = iprot.readString(); - struct.tbl_names.add(_elem1040); + _elem1064 = iprot.readString(); + struct.tbl_names.add(_elem1064); } } struct.setTbl_namesIsSet(true); @@ -65369,14 +66666,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 _list1042 = iprot.readListBegin(); - struct.success = new ArrayList
(_list1042.size); - Table _elem1043; - for (int _i1044 = 0; _i1044 < _list1042.size; ++_i1044) + org.apache.thrift.protocol.TList _list1066 = iprot.readListBegin(); + struct.success = new ArrayList
(_list1066.size); + Table _elem1067; + for (int _i1068 = 0; _i1068 < _list1066.size; ++_i1068) { - _elem1043 = new Table(); - _elem1043.read(iprot); - struct.success.add(_elem1043); + _elem1067 = new Table(); + _elem1067.read(iprot); + struct.success.add(_elem1067); } iprot.readListEnd(); } @@ -65402,9 +66699,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 _iter1045 : struct.success) + for (Table _iter1069 : struct.success) { - _iter1045.write(oprot); + _iter1069.write(oprot); } oprot.writeListEnd(); } @@ -65435,9 +66732,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Table _iter1046 : struct.success) + for (Table _iter1070 : struct.success) { - _iter1046.write(oprot); + _iter1070.write(oprot); } } } @@ -65449,14 +66746,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 _list1047 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList
(_list1047.size); - Table _elem1048; - for (int _i1049 = 0; _i1049 < _list1047.size; ++_i1049) + org.apache.thrift.protocol.TList _list1071 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList
(_list1071.size); + Table _elem1072; + for (int _i1073 = 0; _i1073 < _list1071.size; ++_i1073) { - _elem1048 = new Table(); - _elem1048.read(iprot); - struct.success.add(_elem1048); + _elem1072 = new Table(); + _elem1072.read(iprot); + struct.success.add(_elem1072); } } struct.setSuccessIsSet(true); @@ -67849,13 +69146,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 _list1050 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list1050.size); - String _elem1051; - for (int _i1052 = 0; _i1052 < _list1050.size; ++_i1052) + org.apache.thrift.protocol.TList _list1074 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list1074.size); + String _elem1075; + for (int _i1076 = 0; _i1076 < _list1074.size; ++_i1076) { - _elem1051 = iprot.readString(); - struct.tbl_names.add(_elem1051); + _elem1075 = iprot.readString(); + struct.tbl_names.add(_elem1075); } iprot.readListEnd(); } @@ -67886,9 +69183,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 _iter1053 : struct.tbl_names) + for (String _iter1077 : struct.tbl_names) { - oprot.writeString(_iter1053); + oprot.writeString(_iter1077); } oprot.writeListEnd(); } @@ -67925,9 +69222,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_materialization if (struct.isSetTbl_names()) { { oprot.writeI32(struct.tbl_names.size()); - for (String _iter1054 : struct.tbl_names) + for (String _iter1078 : struct.tbl_names) { - oprot.writeString(_iter1054); + oprot.writeString(_iter1078); } } } @@ -67943,13 +69240,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_materialization_ } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1055 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = new ArrayList(_list1055.size); - String _elem1056; - for (int _i1057 = 0; _i1057 < _list1055.size; ++_i1057) + org.apache.thrift.protocol.TList _list1079 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list1079.size); + String _elem1080; + for (int _i1081 = 0; _i1081 < _list1079.size; ++_i1081) { - _elem1056 = iprot.readString(); - struct.tbl_names.add(_elem1056); + _elem1080 = iprot.readString(); + struct.tbl_names.add(_elem1080); } } struct.setTbl_namesIsSet(true); @@ -68522,16 +69819,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 _map1058 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map1058.size); - String _key1059; - Materialization _val1060; - for (int _i1061 = 0; _i1061 < _map1058.size; ++_i1061) + org.apache.thrift.protocol.TMap _map1082 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1082.size); + String _key1083; + Materialization _val1084; + for (int _i1085 = 0; _i1085 < _map1082.size; ++_i1085) { - _key1059 = iprot.readString(); - _val1060 = new Materialization(); - _val1060.read(iprot); - struct.success.put(_key1059, _val1060); + _key1083 = iprot.readString(); + _val1084 = new Materialization(); + _val1084.read(iprot); + struct.success.put(_key1083, _val1084); } iprot.readMapEnd(); } @@ -68584,10 +69881,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 _iter1062 : struct.success.entrySet()) + for (Map.Entry _iter1086 : struct.success.entrySet()) { - oprot.writeString(_iter1062.getKey()); - _iter1062.getValue().write(oprot); + oprot.writeString(_iter1086.getKey()); + _iter1086.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -68642,10 +69939,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_materialization if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter1063 : struct.success.entrySet()) + for (Map.Entry _iter1087 : struct.success.entrySet()) { - oprot.writeString(_iter1063.getKey()); - _iter1063.getValue().write(oprot); + oprot.writeString(_iter1087.getKey()); + _iter1087.getValue().write(oprot); } } } @@ -68666,16 +69963,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 _map1064 = 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*_map1064.size); - String _key1065; - Materialization _val1066; - for (int _i1067 = 0; _i1067 < _map1064.size; ++_i1067) + org.apache.thrift.protocol.TMap _map1088 = 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*_map1088.size); + String _key1089; + Materialization _val1090; + for (int _i1091 = 0; _i1091 < _map1088.size; ++_i1091) { - _key1065 = iprot.readString(); - _val1066 = new Materialization(); - _val1066.read(iprot); - struct.success.put(_key1065, _val1066); + _key1089 = iprot.readString(); + _val1090 = new Materialization(); + _val1090.read(iprot); + struct.success.put(_key1089, _val1090); } } struct.setSuccessIsSet(true); @@ -70964,13 +72261,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 _list1068 = iprot.readListBegin(); - struct.success = new ArrayList(_list1068.size); - String _elem1069; - for (int _i1070 = 0; _i1070 < _list1068.size; ++_i1070) + org.apache.thrift.protocol.TList _list1092 = iprot.readListBegin(); + struct.success = new ArrayList(_list1092.size); + String _elem1093; + for (int _i1094 = 0; _i1094 < _list1092.size; ++_i1094) { - _elem1069 = iprot.readString(); - struct.success.add(_elem1069); + _elem1093 = iprot.readString(); + struct.success.add(_elem1093); } iprot.readListEnd(); } @@ -71023,9 +72320,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 _iter1071 : struct.success) + for (String _iter1095 : struct.success) { - oprot.writeString(_iter1071); + oprot.writeString(_iter1095); } oprot.writeListEnd(); } @@ -71080,9 +72377,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1072 : struct.success) + for (String _iter1096 : struct.success) { - oprot.writeString(_iter1072); + oprot.writeString(_iter1096); } } } @@ -71103,13 +72400,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 _list1073 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1073.size); - String _elem1074; - for (int _i1075 = 0; _i1075 < _list1073.size; ++_i1075) + org.apache.thrift.protocol.TList _list1097 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1097.size); + String _elem1098; + for (int _i1099 = 0; _i1099 < _list1097.size; ++_i1099) { - _elem1074 = iprot.readString(); - struct.success.add(_elem1074); + _elem1098 = iprot.readString(); + struct.success.add(_elem1098); } } struct.setSuccessIsSet(true); @@ -76968,14 +78265,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 _list1076 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1076.size); - Partition _elem1077; - for (int _i1078 = 0; _i1078 < _list1076.size; ++_i1078) + org.apache.thrift.protocol.TList _list1100 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1100.size); + Partition _elem1101; + for (int _i1102 = 0; _i1102 < _list1100.size; ++_i1102) { - _elem1077 = new Partition(); - _elem1077.read(iprot); - struct.new_parts.add(_elem1077); + _elem1101 = new Partition(); + _elem1101.read(iprot); + struct.new_parts.add(_elem1101); } iprot.readListEnd(); } @@ -77001,9 +78298,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 _iter1079 : struct.new_parts) + for (Partition _iter1103 : struct.new_parts) { - _iter1079.write(oprot); + _iter1103.write(oprot); } oprot.writeListEnd(); } @@ -77034,9 +78331,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 _iter1080 : struct.new_parts) + for (Partition _iter1104 : struct.new_parts) { - _iter1080.write(oprot); + _iter1104.write(oprot); } } } @@ -77048,14 +78345,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 _list1081 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1081.size); - Partition _elem1082; - for (int _i1083 = 0; _i1083 < _list1081.size; ++_i1083) + org.apache.thrift.protocol.TList _list1105 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1105.size); + Partition _elem1106; + for (int _i1107 = 0; _i1107 < _list1105.size; ++_i1107) { - _elem1082 = new Partition(); - _elem1082.read(iprot); - struct.new_parts.add(_elem1082); + _elem1106 = new Partition(); + _elem1106.read(iprot); + struct.new_parts.add(_elem1106); } } struct.setNew_partsIsSet(true); @@ -78056,14 +79353,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 _list1084 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1084.size); - PartitionSpec _elem1085; - for (int _i1086 = 0; _i1086 < _list1084.size; ++_i1086) + org.apache.thrift.protocol.TList _list1108 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1108.size); + PartitionSpec _elem1109; + for (int _i1110 = 0; _i1110 < _list1108.size; ++_i1110) { - _elem1085 = new PartitionSpec(); - _elem1085.read(iprot); - struct.new_parts.add(_elem1085); + _elem1109 = new PartitionSpec(); + _elem1109.read(iprot); + struct.new_parts.add(_elem1109); } iprot.readListEnd(); } @@ -78089,9 +79386,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 _iter1087 : struct.new_parts) + for (PartitionSpec _iter1111 : struct.new_parts) { - _iter1087.write(oprot); + _iter1111.write(oprot); } oprot.writeListEnd(); } @@ -78122,9 +79419,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 _iter1088 : struct.new_parts) + for (PartitionSpec _iter1112 : struct.new_parts) { - _iter1088.write(oprot); + _iter1112.write(oprot); } } } @@ -78136,14 +79433,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 _list1089 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1089.size); - PartitionSpec _elem1090; - for (int _i1091 = 0; _i1091 < _list1089.size; ++_i1091) + org.apache.thrift.protocol.TList _list1113 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1113.size); + PartitionSpec _elem1114; + for (int _i1115 = 0; _i1115 < _list1113.size; ++_i1115) { - _elem1090 = new PartitionSpec(); - _elem1090.read(iprot); - struct.new_parts.add(_elem1090); + _elem1114 = new PartitionSpec(); + _elem1114.read(iprot); + struct.new_parts.add(_elem1114); } } struct.setNew_partsIsSet(true); @@ -79319,13 +80616,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 _list1092 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1092.size); - String _elem1093; - for (int _i1094 = 0; _i1094 < _list1092.size; ++_i1094) + org.apache.thrift.protocol.TList _list1116 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1116.size); + String _elem1117; + for (int _i1118 = 0; _i1118 < _list1116.size; ++_i1118) { - _elem1093 = iprot.readString(); - struct.part_vals.add(_elem1093); + _elem1117 = iprot.readString(); + struct.part_vals.add(_elem1117); } iprot.readListEnd(); } @@ -79361,9 +80658,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 _iter1095 : struct.part_vals) + for (String _iter1119 : struct.part_vals) { - oprot.writeString(_iter1095); + oprot.writeString(_iter1119); } oprot.writeListEnd(); } @@ -79406,9 +80703,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 _iter1096 : struct.part_vals) + for (String _iter1120 : struct.part_vals) { - oprot.writeString(_iter1096); + oprot.writeString(_iter1120); } } } @@ -79428,13 +80725,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1097 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1097.size); - String _elem1098; - for (int _i1099 = 0; _i1099 < _list1097.size; ++_i1099) + org.apache.thrift.protocol.TList _list1121 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1121.size); + String _elem1122; + for (int _i1123 = 0; _i1123 < _list1121.size; ++_i1123) { - _elem1098 = iprot.readString(); - struct.part_vals.add(_elem1098); + _elem1122 = iprot.readString(); + struct.part_vals.add(_elem1122); } } struct.setPart_valsIsSet(true); @@ -81743,13 +83040,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 _list1100 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1100.size); - String _elem1101; - for (int _i1102 = 0; _i1102 < _list1100.size; ++_i1102) + org.apache.thrift.protocol.TList _list1124 = iprot.readListBegin(); + 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); } iprot.readListEnd(); } @@ -81794,9 +83091,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 _iter1103 : struct.part_vals) + for (String _iter1127 : struct.part_vals) { - oprot.writeString(_iter1103); + oprot.writeString(_iter1127); } oprot.writeListEnd(); } @@ -81847,9 +83144,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 _iter1104 : struct.part_vals) + for (String _iter1128 : struct.part_vals) { - oprot.writeString(_iter1104); + oprot.writeString(_iter1128); } } } @@ -81872,13 +83169,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1105 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1105.size); - String _elem1106; - for (int _i1107 = 0; _i1107 < _list1105.size; ++_i1107) + org.apache.thrift.protocol.TList _list1129 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1129.size); + String _elem1130; + for (int _i1131 = 0; _i1131 < _list1129.size; ++_i1131) { - _elem1106 = iprot.readString(); - struct.part_vals.add(_elem1106); + _elem1130 = iprot.readString(); + struct.part_vals.add(_elem1130); } } struct.setPart_valsIsSet(true); @@ -85748,13 +87045,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 _list1108 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1108.size); - String _elem1109; - for (int _i1110 = 0; _i1110 < _list1108.size; ++_i1110) + org.apache.thrift.protocol.TList _list1132 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1132.size); + String _elem1133; + for (int _i1134 = 0; _i1134 < _list1132.size; ++_i1134) { - _elem1109 = iprot.readString(); - struct.part_vals.add(_elem1109); + _elem1133 = iprot.readString(); + struct.part_vals.add(_elem1133); } iprot.readListEnd(); } @@ -85798,9 +87095,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 _iter1111 : struct.part_vals) + for (String _iter1135 : struct.part_vals) { - oprot.writeString(_iter1111); + oprot.writeString(_iter1135); } oprot.writeListEnd(); } @@ -85849,9 +87146,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 _iter1112 : struct.part_vals) + for (String _iter1136 : struct.part_vals) { - oprot.writeString(_iter1112); + oprot.writeString(_iter1136); } } } @@ -85874,13 +87171,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1113 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1113.size); - String _elem1114; - for (int _i1115 = 0; _i1115 < _list1113.size; ++_i1115) + org.apache.thrift.protocol.TList _list1137 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1137.size); + String _elem1138; + for (int _i1139 = 0; _i1139 < _list1137.size; ++_i1139) { - _elem1114 = iprot.readString(); - struct.part_vals.add(_elem1114); + _elem1138 = iprot.readString(); + struct.part_vals.add(_elem1138); } } struct.setPart_valsIsSet(true); @@ -87119,13 +88416,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 _list1116 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1116.size); - String _elem1117; - for (int _i1118 = 0; _i1118 < _list1116.size; ++_i1118) + org.apache.thrift.protocol.TList _list1140 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1140.size); + String _elem1141; + for (int _i1142 = 0; _i1142 < _list1140.size; ++_i1142) { - _elem1117 = iprot.readString(); - struct.part_vals.add(_elem1117); + _elem1141 = iprot.readString(); + struct.part_vals.add(_elem1141); } iprot.readListEnd(); } @@ -87178,9 +88475,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 _iter1119 : struct.part_vals) + for (String _iter1143 : struct.part_vals) { - oprot.writeString(_iter1119); + oprot.writeString(_iter1143); } oprot.writeListEnd(); } @@ -87237,9 +88534,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 _iter1120 : struct.part_vals) + for (String _iter1144 : struct.part_vals) { - oprot.writeString(_iter1120); + oprot.writeString(_iter1144); } } } @@ -87265,13 +88562,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1121 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1121.size); - String _elem1122; - for (int _i1123 = 0; _i1123 < _list1121.size; ++_i1123) + org.apache.thrift.protocol.TList _list1145 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1145.size); + String _elem1146; + for (int _i1147 = 0; _i1147 < _list1145.size; ++_i1147) { - _elem1122 = iprot.readString(); - struct.part_vals.add(_elem1122); + _elem1146 = iprot.readString(); + struct.part_vals.add(_elem1146); } } struct.setPart_valsIsSet(true); @@ -91873,13 +93170,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 _list1124 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1124.size); - String _elem1125; - for (int _i1126 = 0; _i1126 < _list1124.size; ++_i1126) + org.apache.thrift.protocol.TList _list1148 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1148.size); + String _elem1149; + for (int _i1150 = 0; _i1150 < _list1148.size; ++_i1150) { - _elem1125 = iprot.readString(); - struct.part_vals.add(_elem1125); + _elem1149 = iprot.readString(); + struct.part_vals.add(_elem1149); } iprot.readListEnd(); } @@ -91915,9 +93212,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 _iter1127 : struct.part_vals) + for (String _iter1151 : struct.part_vals) { - oprot.writeString(_iter1127); + oprot.writeString(_iter1151); } oprot.writeListEnd(); } @@ -91960,9 +93257,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 _iter1128 : struct.part_vals) + for (String _iter1152 : struct.part_vals) { - oprot.writeString(_iter1128); + oprot.writeString(_iter1152); } } } @@ -91982,13 +93279,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1129 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1129.size); - String _elem1130; - for (int _i1131 = 0; _i1131 < _list1129.size; ++_i1131) + org.apache.thrift.protocol.TList _list1153 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1153.size); + String _elem1154; + for (int _i1155 = 0; _i1155 < _list1153.size; ++_i1155) { - _elem1130 = iprot.readString(); - struct.part_vals.add(_elem1130); + _elem1154 = iprot.readString(); + struct.part_vals.add(_elem1154); } } struct.setPart_valsIsSet(true); @@ -93206,15 +94503,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 _map1132 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map1132.size); - String _key1133; - String _val1134; - for (int _i1135 = 0; _i1135 < _map1132.size; ++_i1135) + org.apache.thrift.protocol.TMap _map1156 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map1156.size); + String _key1157; + String _val1158; + for (int _i1159 = 0; _i1159 < _map1156.size; ++_i1159) { - _key1133 = iprot.readString(); - _val1134 = iprot.readString(); - struct.partitionSpecs.put(_key1133, _val1134); + _key1157 = iprot.readString(); + _val1158 = iprot.readString(); + struct.partitionSpecs.put(_key1157, _val1158); } iprot.readMapEnd(); } @@ -93272,10 +94569,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 _iter1136 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1160 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1136.getKey()); - oprot.writeString(_iter1136.getValue()); + oprot.writeString(_iter1160.getKey()); + oprot.writeString(_iter1160.getValue()); } oprot.writeMapEnd(); } @@ -93338,10 +94635,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter1137 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1161 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1137.getKey()); - oprot.writeString(_iter1137.getValue()); + oprot.writeString(_iter1161.getKey()); + oprot.writeString(_iter1161.getValue()); } } } @@ -93365,15 +94662,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 _map1138 = 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*_map1138.size); - String _key1139; - String _val1140; - for (int _i1141 = 0; _i1141 < _map1138.size; ++_i1141) + org.apache.thrift.protocol.TMap _map1162 = 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*_map1162.size); + String _key1163; + String _val1164; + for (int _i1165 = 0; _i1165 < _map1162.size; ++_i1165) { - _key1139 = iprot.readString(); - _val1140 = iprot.readString(); - struct.partitionSpecs.put(_key1139, _val1140); + _key1163 = iprot.readString(); + _val1164 = iprot.readString(); + struct.partitionSpecs.put(_key1163, _val1164); } } struct.setPartitionSpecsIsSet(true); @@ -94819,15 +96116,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 _map1142 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map1142.size); - String _key1143; - String _val1144; - for (int _i1145 = 0; _i1145 < _map1142.size; ++_i1145) + org.apache.thrift.protocol.TMap _map1166 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map1166.size); + String _key1167; + String _val1168; + for (int _i1169 = 0; _i1169 < _map1166.size; ++_i1169) { - _key1143 = iprot.readString(); - _val1144 = iprot.readString(); - struct.partitionSpecs.put(_key1143, _val1144); + _key1167 = iprot.readString(); + _val1168 = iprot.readString(); + struct.partitionSpecs.put(_key1167, _val1168); } iprot.readMapEnd(); } @@ -94885,10 +96182,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 _iter1146 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1170 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1146.getKey()); - oprot.writeString(_iter1146.getValue()); + oprot.writeString(_iter1170.getKey()); + oprot.writeString(_iter1170.getValue()); } oprot.writeMapEnd(); } @@ -94951,10 +96248,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter1147 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter1171 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter1147.getKey()); - oprot.writeString(_iter1147.getValue()); + oprot.writeString(_iter1171.getKey()); + oprot.writeString(_iter1171.getValue()); } } } @@ -94978,15 +96275,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 _map1148 = 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*_map1148.size); - String _key1149; - String _val1150; - for (int _i1151 = 0; _i1151 < _map1148.size; ++_i1151) + org.apache.thrift.protocol.TMap _map1172 = 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*_map1172.size); + String _key1173; + String _val1174; + for (int _i1175 = 0; _i1175 < _map1172.size; ++_i1175) { - _key1149 = iprot.readString(); - _val1150 = iprot.readString(); - struct.partitionSpecs.put(_key1149, _val1150); + _key1173 = iprot.readString(); + _val1174 = iprot.readString(); + struct.partitionSpecs.put(_key1173, _val1174); } } struct.setPartitionSpecsIsSet(true); @@ -95651,14 +96948,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 _list1152 = iprot.readListBegin(); - struct.success = new ArrayList(_list1152.size); - Partition _elem1153; - for (int _i1154 = 0; _i1154 < _list1152.size; ++_i1154) + org.apache.thrift.protocol.TList _list1176 = iprot.readListBegin(); + struct.success = new ArrayList(_list1176.size); + Partition _elem1177; + for (int _i1178 = 0; _i1178 < _list1176.size; ++_i1178) { - _elem1153 = new Partition(); - _elem1153.read(iprot); - struct.success.add(_elem1153); + _elem1177 = new Partition(); + _elem1177.read(iprot); + struct.success.add(_elem1177); } iprot.readListEnd(); } @@ -95720,9 +97017,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 _iter1155 : struct.success) + for (Partition _iter1179 : struct.success) { - _iter1155.write(oprot); + _iter1179.write(oprot); } oprot.writeListEnd(); } @@ -95785,9 +97082,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1156 : struct.success) + for (Partition _iter1180 : struct.success) { - _iter1156.write(oprot); + _iter1180.write(oprot); } } } @@ -95811,14 +97108,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 _list1157 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1157.size); - Partition _elem1158; - for (int _i1159 = 0; _i1159 < _list1157.size; ++_i1159) + org.apache.thrift.protocol.TList _list1181 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1181.size); + Partition _elem1182; + for (int _i1183 = 0; _i1183 < _list1181.size; ++_i1183) { - _elem1158 = new Partition(); - _elem1158.read(iprot); - struct.success.add(_elem1158); + _elem1182 = new Partition(); + _elem1182.read(iprot); + struct.success.add(_elem1182); } } struct.setSuccessIsSet(true); @@ -96517,13 +97814,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 _list1160 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1160.size); - String _elem1161; - for (int _i1162 = 0; _i1162 < _list1160.size; ++_i1162) + org.apache.thrift.protocol.TList _list1184 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1184.size); + String _elem1185; + for (int _i1186 = 0; _i1186 < _list1184.size; ++_i1186) { - _elem1161 = iprot.readString(); - struct.part_vals.add(_elem1161); + _elem1185 = iprot.readString(); + struct.part_vals.add(_elem1185); } iprot.readListEnd(); } @@ -96543,13 +97840,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 _list1163 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1163.size); - String _elem1164; - for (int _i1165 = 0; _i1165 < _list1163.size; ++_i1165) + org.apache.thrift.protocol.TList _list1187 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1187.size); + String _elem1188; + for (int _i1189 = 0; _i1189 < _list1187.size; ++_i1189) { - _elem1164 = iprot.readString(); - struct.group_names.add(_elem1164); + _elem1188 = iprot.readString(); + struct.group_names.add(_elem1188); } iprot.readListEnd(); } @@ -96585,9 +97882,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 _iter1166 : struct.part_vals) + for (String _iter1190 : struct.part_vals) { - oprot.writeString(_iter1166); + oprot.writeString(_iter1190); } oprot.writeListEnd(); } @@ -96602,9 +97899,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 _iter1167 : struct.group_names) + for (String _iter1191 : struct.group_names) { - oprot.writeString(_iter1167); + oprot.writeString(_iter1191); } oprot.writeListEnd(); } @@ -96653,9 +97950,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 _iter1168 : struct.part_vals) + for (String _iter1192 : struct.part_vals) { - oprot.writeString(_iter1168); + oprot.writeString(_iter1192); } } } @@ -96665,9 +97962,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 _iter1169 : struct.group_names) + for (String _iter1193 : struct.group_names) { - oprot.writeString(_iter1169); + oprot.writeString(_iter1193); } } } @@ -96687,13 +97984,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1170 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1170.size); - String _elem1171; - for (int _i1172 = 0; _i1172 < _list1170.size; ++_i1172) + org.apache.thrift.protocol.TList _list1194 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1194.size); + String _elem1195; + for (int _i1196 = 0; _i1196 < _list1194.size; ++_i1196) { - _elem1171 = iprot.readString(); - struct.part_vals.add(_elem1171); + _elem1195 = iprot.readString(); + struct.part_vals.add(_elem1195); } } struct.setPart_valsIsSet(true); @@ -96704,13 +98001,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1173 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1173.size); - String _elem1174; - for (int _i1175 = 0; _i1175 < _list1173.size; ++_i1175) + org.apache.thrift.protocol.TList _list1197 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1197.size); + String _elem1198; + for (int _i1199 = 0; _i1199 < _list1197.size; ++_i1199) { - _elem1174 = iprot.readString(); - struct.group_names.add(_elem1174); + _elem1198 = iprot.readString(); + struct.group_names.add(_elem1198); } } struct.setGroup_namesIsSet(true); @@ -99479,14 +100776,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 _list1176 = iprot.readListBegin(); - struct.success = new ArrayList(_list1176.size); - Partition _elem1177; - for (int _i1178 = 0; _i1178 < _list1176.size; ++_i1178) + org.apache.thrift.protocol.TList _list1200 = iprot.readListBegin(); + struct.success = new ArrayList(_list1200.size); + Partition _elem1201; + for (int _i1202 = 0; _i1202 < _list1200.size; ++_i1202) { - _elem1177 = new Partition(); - _elem1177.read(iprot); - struct.success.add(_elem1177); + _elem1201 = new Partition(); + _elem1201.read(iprot); + struct.success.add(_elem1201); } iprot.readListEnd(); } @@ -99530,9 +100827,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 _iter1179 : struct.success) + for (Partition _iter1203 : struct.success) { - _iter1179.write(oprot); + _iter1203.write(oprot); } oprot.writeListEnd(); } @@ -99579,9 +100876,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1180 : struct.success) + for (Partition _iter1204 : struct.success) { - _iter1180.write(oprot); + _iter1204.write(oprot); } } } @@ -99599,14 +100896,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 _list1181 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1181.size); - Partition _elem1182; - for (int _i1183 = 0; _i1183 < _list1181.size; ++_i1183) + org.apache.thrift.protocol.TList _list1205 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1205.size); + Partition _elem1206; + for (int _i1207 = 0; _i1207 < _list1205.size; ++_i1207) { - _elem1182 = new Partition(); - _elem1182.read(iprot); - struct.success.add(_elem1182); + _elem1206 = new Partition(); + _elem1206.read(iprot); + struct.success.add(_elem1206); } } struct.setSuccessIsSet(true); @@ -100296,13 +101593,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 _list1184 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1184.size); - String _elem1185; - for (int _i1186 = 0; _i1186 < _list1184.size; ++_i1186) + org.apache.thrift.protocol.TList _list1208 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1208.size); + String _elem1209; + for (int _i1210 = 0; _i1210 < _list1208.size; ++_i1210) { - _elem1185 = iprot.readString(); - struct.group_names.add(_elem1185); + _elem1209 = iprot.readString(); + struct.group_names.add(_elem1209); } iprot.readListEnd(); } @@ -100346,9 +101643,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 _iter1187 : struct.group_names) + for (String _iter1211 : struct.group_names) { - oprot.writeString(_iter1187); + oprot.writeString(_iter1211); } oprot.writeListEnd(); } @@ -100403,9 +101700,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 _iter1188 : struct.group_names) + for (String _iter1212 : struct.group_names) { - oprot.writeString(_iter1188); + oprot.writeString(_iter1212); } } } @@ -100433,13 +101730,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list1189 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1189.size); - String _elem1190; - for (int _i1191 = 0; _i1191 < _list1189.size; ++_i1191) + org.apache.thrift.protocol.TList _list1213 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1213.size); + String _elem1214; + for (int _i1215 = 0; _i1215 < _list1213.size; ++_i1215) { - _elem1190 = iprot.readString(); - struct.group_names.add(_elem1190); + _elem1214 = iprot.readString(); + struct.group_names.add(_elem1214); } } struct.setGroup_namesIsSet(true); @@ -100926,14 +102223,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 _list1192 = iprot.readListBegin(); - struct.success = new ArrayList(_list1192.size); - Partition _elem1193; - for (int _i1194 = 0; _i1194 < _list1192.size; ++_i1194) + org.apache.thrift.protocol.TList _list1216 = iprot.readListBegin(); + struct.success = new ArrayList(_list1216.size); + Partition _elem1217; + for (int _i1218 = 0; _i1218 < _list1216.size; ++_i1218) { - _elem1193 = new Partition(); - _elem1193.read(iprot); - struct.success.add(_elem1193); + _elem1217 = new Partition(); + _elem1217.read(iprot); + struct.success.add(_elem1217); } iprot.readListEnd(); } @@ -100977,9 +102274,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 _iter1195 : struct.success) + for (Partition _iter1219 : struct.success) { - _iter1195.write(oprot); + _iter1219.write(oprot); } oprot.writeListEnd(); } @@ -101026,9 +102323,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1196 : struct.success) + for (Partition _iter1220 : struct.success) { - _iter1196.write(oprot); + _iter1220.write(oprot); } } } @@ -101046,14 +102343,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 _list1197 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1197.size); - Partition _elem1198; - for (int _i1199 = 0; _i1199 < _list1197.size; ++_i1199) + org.apache.thrift.protocol.TList _list1221 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1221.size); + Partition _elem1222; + for (int _i1223 = 0; _i1223 < _list1221.size; ++_i1223) { - _elem1198 = new Partition(); - _elem1198.read(iprot); - struct.success.add(_elem1198); + _elem1222 = new Partition(); + _elem1222.read(iprot); + struct.success.add(_elem1222); } } struct.setSuccessIsSet(true); @@ -102116,14 +103413,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 _list1200 = iprot.readListBegin(); - struct.success = new ArrayList(_list1200.size); - PartitionSpec _elem1201; - for (int _i1202 = 0; _i1202 < _list1200.size; ++_i1202) + org.apache.thrift.protocol.TList _list1224 = iprot.readListBegin(); + struct.success = new ArrayList(_list1224.size); + PartitionSpec _elem1225; + for (int _i1226 = 0; _i1226 < _list1224.size; ++_i1226) { - _elem1201 = new PartitionSpec(); - _elem1201.read(iprot); - struct.success.add(_elem1201); + _elem1225 = new PartitionSpec(); + _elem1225.read(iprot); + struct.success.add(_elem1225); } iprot.readListEnd(); } @@ -102167,9 +103464,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 _iter1203 : struct.success) + for (PartitionSpec _iter1227 : struct.success) { - _iter1203.write(oprot); + _iter1227.write(oprot); } oprot.writeListEnd(); } @@ -102216,9 +103513,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspe if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter1204 : struct.success) + for (PartitionSpec _iter1228 : struct.success) { - _iter1204.write(oprot); + _iter1228.write(oprot); } } } @@ -102236,14 +103533,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 _list1205 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1205.size); - PartitionSpec _elem1206; - for (int _i1207 = 0; _i1207 < _list1205.size; ++_i1207) + org.apache.thrift.protocol.TList _list1229 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1229.size); + PartitionSpec _elem1230; + for (int _i1231 = 0; _i1231 < _list1229.size; ++_i1231) { - _elem1206 = new PartitionSpec(); - _elem1206.read(iprot); - struct.success.add(_elem1206); + _elem1230 = new PartitionSpec(); + _elem1230.read(iprot); + struct.success.add(_elem1230); } } struct.setSuccessIsSet(true); @@ -103303,13 +104600,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 _list1208 = iprot.readListBegin(); - struct.success = new ArrayList(_list1208.size); - String _elem1209; - for (int _i1210 = 0; _i1210 < _list1208.size; ++_i1210) + org.apache.thrift.protocol.TList _list1232 = iprot.readListBegin(); + struct.success = new ArrayList(_list1232.size); + String _elem1233; + for (int _i1234 = 0; _i1234 < _list1232.size; ++_i1234) { - _elem1209 = iprot.readString(); - struct.success.add(_elem1209); + _elem1233 = iprot.readString(); + struct.success.add(_elem1233); } iprot.readListEnd(); } @@ -103353,9 +104650,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 _iter1211 : struct.success) + for (String _iter1235 : struct.success) { - oprot.writeString(_iter1211); + oprot.writeString(_iter1235); } oprot.writeListEnd(); } @@ -103402,9 +104699,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1212 : struct.success) + for (String _iter1236 : struct.success) { - oprot.writeString(_iter1212); + oprot.writeString(_iter1236); } } } @@ -103422,13 +104719,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 _list1213 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1213.size); - String _elem1214; - for (int _i1215 = 0; _i1215 < _list1213.size; ++_i1215) + org.apache.thrift.protocol.TList _list1237 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1237.size); + String _elem1238; + for (int _i1239 = 0; _i1239 < _list1237.size; ++_i1239) { - _elem1214 = iprot.readString(); - struct.success.add(_elem1214); + _elem1238 = iprot.readString(); + struct.success.add(_elem1238); } } struct.setSuccessIsSet(true); @@ -104959,13 +106256,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 _list1216 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1216.size); - String _elem1217; - for (int _i1218 = 0; _i1218 < _list1216.size; ++_i1218) + org.apache.thrift.protocol.TList _list1240 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1240.size); + String _elem1241; + for (int _i1242 = 0; _i1242 < _list1240.size; ++_i1242) { - _elem1217 = iprot.readString(); - struct.part_vals.add(_elem1217); + _elem1241 = iprot.readString(); + struct.part_vals.add(_elem1241); } iprot.readListEnd(); } @@ -105009,9 +106306,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 _iter1219 : struct.part_vals) + for (String _iter1243 : struct.part_vals) { - oprot.writeString(_iter1219); + oprot.writeString(_iter1243); } oprot.writeListEnd(); } @@ -105060,9 +106357,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 _iter1220 : struct.part_vals) + for (String _iter1244 : struct.part_vals) { - oprot.writeString(_iter1220); + oprot.writeString(_iter1244); } } } @@ -105085,13 +106382,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1221 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1221.size); - String _elem1222; - for (int _i1223 = 0; _i1223 < _list1221.size; ++_i1223) + org.apache.thrift.protocol.TList _list1245 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1245.size); + String _elem1246; + for (int _i1247 = 0; _i1247 < _list1245.size; ++_i1247) { - _elem1222 = iprot.readString(); - struct.part_vals.add(_elem1222); + _elem1246 = iprot.readString(); + struct.part_vals.add(_elem1246); } } struct.setPart_valsIsSet(true); @@ -105582,14 +106879,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 _list1224 = iprot.readListBegin(); - struct.success = new ArrayList(_list1224.size); - Partition _elem1225; - for (int _i1226 = 0; _i1226 < _list1224.size; ++_i1226) + org.apache.thrift.protocol.TList _list1248 = iprot.readListBegin(); + struct.success = new ArrayList(_list1248.size); + Partition _elem1249; + for (int _i1250 = 0; _i1250 < _list1248.size; ++_i1250) { - _elem1225 = new Partition(); - _elem1225.read(iprot); - struct.success.add(_elem1225); + _elem1249 = new Partition(); + _elem1249.read(iprot); + struct.success.add(_elem1249); } iprot.readListEnd(); } @@ -105633,9 +106930,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 _iter1227 : struct.success) + for (Partition _iter1251 : struct.success) { - _iter1227.write(oprot); + _iter1251.write(oprot); } oprot.writeListEnd(); } @@ -105682,9 +106979,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1228 : struct.success) + for (Partition _iter1252 : struct.success) { - _iter1228.write(oprot); + _iter1252.write(oprot); } } } @@ -105702,14 +106999,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 _list1229 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1229.size); - Partition _elem1230; - for (int _i1231 = 0; _i1231 < _list1229.size; ++_i1231) + org.apache.thrift.protocol.TList _list1253 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1253.size); + Partition _elem1254; + for (int _i1255 = 0; _i1255 < _list1253.size; ++_i1255) { - _elem1230 = new Partition(); - _elem1230.read(iprot); - struct.success.add(_elem1230); + _elem1254 = new Partition(); + _elem1254.read(iprot); + struct.success.add(_elem1254); } } struct.setSuccessIsSet(true); @@ -106481,13 +107778,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 _list1232 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1232.size); - String _elem1233; - for (int _i1234 = 0; _i1234 < _list1232.size; ++_i1234) + org.apache.thrift.protocol.TList _list1256 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1256.size); + String _elem1257; + for (int _i1258 = 0; _i1258 < _list1256.size; ++_i1258) { - _elem1233 = iprot.readString(); - struct.part_vals.add(_elem1233); + _elem1257 = iprot.readString(); + struct.part_vals.add(_elem1257); } iprot.readListEnd(); } @@ -106515,13 +107812,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 _list1235 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1235.size); - String _elem1236; - for (int _i1237 = 0; _i1237 < _list1235.size; ++_i1237) + org.apache.thrift.protocol.TList _list1259 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1259.size); + String _elem1260; + for (int _i1261 = 0; _i1261 < _list1259.size; ++_i1261) { - _elem1236 = iprot.readString(); - struct.group_names.add(_elem1236); + _elem1260 = iprot.readString(); + struct.group_names.add(_elem1260); } iprot.readListEnd(); } @@ -106557,9 +107854,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 _iter1238 : struct.part_vals) + for (String _iter1262 : struct.part_vals) { - oprot.writeString(_iter1238); + oprot.writeString(_iter1262); } oprot.writeListEnd(); } @@ -106577,9 +107874,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 _iter1239 : struct.group_names) + for (String _iter1263 : struct.group_names) { - oprot.writeString(_iter1239); + oprot.writeString(_iter1263); } oprot.writeListEnd(); } @@ -106631,9 +107928,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 _iter1240 : struct.part_vals) + for (String _iter1264 : struct.part_vals) { - oprot.writeString(_iter1240); + oprot.writeString(_iter1264); } } } @@ -106646,9 +107943,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 _iter1241 : struct.group_names) + for (String _iter1265 : struct.group_names) { - oprot.writeString(_iter1241); + oprot.writeString(_iter1265); } } } @@ -106668,13 +107965,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1242 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1242.size); - String _elem1243; - for (int _i1244 = 0; _i1244 < _list1242.size; ++_i1244) + org.apache.thrift.protocol.TList _list1266 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1266.size); + String _elem1267; + for (int _i1268 = 0; _i1268 < _list1266.size; ++_i1268) { - _elem1243 = iprot.readString(); - struct.part_vals.add(_elem1243); + _elem1267 = iprot.readString(); + struct.part_vals.add(_elem1267); } } struct.setPart_valsIsSet(true); @@ -106689,13 +107986,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list1245 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1245.size); - String _elem1246; - for (int _i1247 = 0; _i1247 < _list1245.size; ++_i1247) + org.apache.thrift.protocol.TList _list1269 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1269.size); + String _elem1270; + for (int _i1271 = 0; _i1271 < _list1269.size; ++_i1271) { - _elem1246 = iprot.readString(); - struct.group_names.add(_elem1246); + _elem1270 = iprot.readString(); + struct.group_names.add(_elem1270); } } struct.setGroup_namesIsSet(true); @@ -107182,14 +108479,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 _list1248 = iprot.readListBegin(); - struct.success = new ArrayList(_list1248.size); - Partition _elem1249; - for (int _i1250 = 0; _i1250 < _list1248.size; ++_i1250) + org.apache.thrift.protocol.TList _list1272 = iprot.readListBegin(); + struct.success = new ArrayList(_list1272.size); + Partition _elem1273; + for (int _i1274 = 0; _i1274 < _list1272.size; ++_i1274) { - _elem1249 = new Partition(); - _elem1249.read(iprot); - struct.success.add(_elem1249); + _elem1273 = new Partition(); + _elem1273.read(iprot); + struct.success.add(_elem1273); } iprot.readListEnd(); } @@ -107233,9 +108530,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 _iter1251 : struct.success) + for (Partition _iter1275 : struct.success) { - _iter1251.write(oprot); + _iter1275.write(oprot); } oprot.writeListEnd(); } @@ -107282,9 +108579,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1252 : struct.success) + for (Partition _iter1276 : struct.success) { - _iter1252.write(oprot); + _iter1276.write(oprot); } } } @@ -107302,14 +108599,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 _list1253 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1253.size); - Partition _elem1254; - for (int _i1255 = 0; _i1255 < _list1253.size; ++_i1255) + org.apache.thrift.protocol.TList _list1277 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1277.size); + Partition _elem1278; + for (int _i1279 = 0; _i1279 < _list1277.size; ++_i1279) { - _elem1254 = new Partition(); - _elem1254.read(iprot); - struct.success.add(_elem1254); + _elem1278 = new Partition(); + _elem1278.read(iprot); + struct.success.add(_elem1278); } } struct.setSuccessIsSet(true); @@ -107902,13 +109199,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 _list1256 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1256.size); - String _elem1257; - for (int _i1258 = 0; _i1258 < _list1256.size; ++_i1258) + org.apache.thrift.protocol.TList _list1280 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1280.size); + String _elem1281; + for (int _i1282 = 0; _i1282 < _list1280.size; ++_i1282) { - _elem1257 = iprot.readString(); - struct.part_vals.add(_elem1257); + _elem1281 = iprot.readString(); + struct.part_vals.add(_elem1281); } iprot.readListEnd(); } @@ -107952,9 +109249,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 _iter1259 : struct.part_vals) + for (String _iter1283 : struct.part_vals) { - oprot.writeString(_iter1259); + oprot.writeString(_iter1283); } oprot.writeListEnd(); } @@ -108003,9 +109300,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 _iter1260 : struct.part_vals) + for (String _iter1284 : struct.part_vals) { - oprot.writeString(_iter1260); + oprot.writeString(_iter1284); } } } @@ -108028,13 +109325,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1261 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1261.size); - String _elem1262; - for (int _i1263 = 0; _i1263 < _list1261.size; ++_i1263) + org.apache.thrift.protocol.TList _list1285 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1285.size); + String _elem1286; + for (int _i1287 = 0; _i1287 < _list1285.size; ++_i1287) { - _elem1262 = iprot.readString(); - struct.part_vals.add(_elem1262); + _elem1286 = iprot.readString(); + struct.part_vals.add(_elem1286); } } struct.setPart_valsIsSet(true); @@ -108522,13 +109819,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 _list1264 = iprot.readListBegin(); - struct.success = new ArrayList(_list1264.size); - String _elem1265; - for (int _i1266 = 0; _i1266 < _list1264.size; ++_i1266) + org.apache.thrift.protocol.TList _list1288 = iprot.readListBegin(); + struct.success = new ArrayList(_list1288.size); + String _elem1289; + for (int _i1290 = 0; _i1290 < _list1288.size; ++_i1290) { - _elem1265 = iprot.readString(); - struct.success.add(_elem1265); + _elem1289 = iprot.readString(); + struct.success.add(_elem1289); } iprot.readListEnd(); } @@ -108572,9 +109869,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 _iter1267 : struct.success) + for (String _iter1291 : struct.success) { - oprot.writeString(_iter1267); + oprot.writeString(_iter1291); } oprot.writeListEnd(); } @@ -108621,9 +109918,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1268 : struct.success) + for (String _iter1292 : struct.success) { - oprot.writeString(_iter1268); + oprot.writeString(_iter1292); } } } @@ -108641,13 +109938,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 _list1269 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1269.size); - String _elem1270; - for (int _i1271 = 0; _i1271 < _list1269.size; ++_i1271) + org.apache.thrift.protocol.TList _list1293 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1293.size); + String _elem1294; + for (int _i1295 = 0; _i1295 < _list1293.size; ++_i1295) { - _elem1270 = iprot.readString(); - struct.success.add(_elem1270); + _elem1294 = iprot.readString(); + struct.success.add(_elem1294); } } struct.setSuccessIsSet(true); @@ -109814,14 +111111,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 _list1272 = iprot.readListBegin(); - struct.success = new ArrayList(_list1272.size); - Partition _elem1273; - for (int _i1274 = 0; _i1274 < _list1272.size; ++_i1274) + org.apache.thrift.protocol.TList _list1296 = iprot.readListBegin(); + struct.success = new ArrayList(_list1296.size); + Partition _elem1297; + for (int _i1298 = 0; _i1298 < _list1296.size; ++_i1298) { - _elem1273 = new Partition(); - _elem1273.read(iprot); - struct.success.add(_elem1273); + _elem1297 = new Partition(); + _elem1297.read(iprot); + struct.success.add(_elem1297); } iprot.readListEnd(); } @@ -109865,9 +111162,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 _iter1275 : struct.success) + for (Partition _iter1299 : struct.success) { - _iter1275.write(oprot); + _iter1299.write(oprot); } oprot.writeListEnd(); } @@ -109914,9 +111211,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1276 : struct.success) + for (Partition _iter1300 : struct.success) { - _iter1276.write(oprot); + _iter1300.write(oprot); } } } @@ -109934,14 +111231,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 _list1277 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1277.size); - Partition _elem1278; - for (int _i1279 = 0; _i1279 < _list1277.size; ++_i1279) + org.apache.thrift.protocol.TList _list1301 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1301.size); + Partition _elem1302; + for (int _i1303 = 0; _i1303 < _list1301.size; ++_i1303) { - _elem1278 = new Partition(); - _elem1278.read(iprot); - struct.success.add(_elem1278); + _elem1302 = new Partition(); + _elem1302.read(iprot); + struct.success.add(_elem1302); } } struct.setSuccessIsSet(true); @@ -111108,14 +112405,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 _list1280 = iprot.readListBegin(); - struct.success = new ArrayList(_list1280.size); - PartitionSpec _elem1281; - for (int _i1282 = 0; _i1282 < _list1280.size; ++_i1282) + org.apache.thrift.protocol.TList _list1304 = iprot.readListBegin(); + struct.success = new ArrayList(_list1304.size); + PartitionSpec _elem1305; + for (int _i1306 = 0; _i1306 < _list1304.size; ++_i1306) { - _elem1281 = new PartitionSpec(); - _elem1281.read(iprot); - struct.success.add(_elem1281); + _elem1305 = new PartitionSpec(); + _elem1305.read(iprot); + struct.success.add(_elem1305); } iprot.readListEnd(); } @@ -111159,9 +112456,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 _iter1283 : struct.success) + for (PartitionSpec _iter1307 : struct.success) { - _iter1283.write(oprot); + _iter1307.write(oprot); } oprot.writeListEnd(); } @@ -111208,9 +112505,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 _iter1284 : struct.success) + for (PartitionSpec _iter1308 : struct.success) { - _iter1284.write(oprot); + _iter1308.write(oprot); } } } @@ -111228,14 +112525,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 _list1285 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1285.size); - PartitionSpec _elem1286; - for (int _i1287 = 0; _i1287 < _list1285.size; ++_i1287) + 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); + PartitionSpec _elem1310; + for (int _i1311 = 0; _i1311 < _list1309.size; ++_i1311) { - _elem1286 = new PartitionSpec(); - _elem1286.read(iprot); - struct.success.add(_elem1286); + _elem1310 = new PartitionSpec(); + _elem1310.read(iprot); + struct.success.add(_elem1310); } } struct.setSuccessIsSet(true); @@ -113819,13 +115116,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 _list1288 = iprot.readListBegin(); - struct.names = new ArrayList(_list1288.size); - String _elem1289; - for (int _i1290 = 0; _i1290 < _list1288.size; ++_i1290) + org.apache.thrift.protocol.TList _list1312 = iprot.readListBegin(); + struct.names = new ArrayList(_list1312.size); + String _elem1313; + for (int _i1314 = 0; _i1314 < _list1312.size; ++_i1314) { - _elem1289 = iprot.readString(); - struct.names.add(_elem1289); + _elem1313 = iprot.readString(); + struct.names.add(_elem1313); } iprot.readListEnd(); } @@ -113861,9 +115158,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 _iter1291 : struct.names) + for (String _iter1315 : struct.names) { - oprot.writeString(_iter1291); + oprot.writeString(_iter1315); } oprot.writeListEnd(); } @@ -113906,9 +115203,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter1292 : struct.names) + for (String _iter1316 : struct.names) { - oprot.writeString(_iter1292); + oprot.writeString(_iter1316); } } } @@ -113928,13 +115225,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1293 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list1293.size); - String _elem1294; - for (int _i1295 = 0; _i1295 < _list1293.size; ++_i1295) + org.apache.thrift.protocol.TList _list1317 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list1317.size); + String _elem1318; + for (int _i1319 = 0; _i1319 < _list1317.size; ++_i1319) { - _elem1294 = iprot.readString(); - struct.names.add(_elem1294); + _elem1318 = iprot.readString(); + struct.names.add(_elem1318); } } struct.setNamesIsSet(true); @@ -114421,14 +115718,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 _list1296 = iprot.readListBegin(); - struct.success = new ArrayList(_list1296.size); - Partition _elem1297; - for (int _i1298 = 0; _i1298 < _list1296.size; ++_i1298) + org.apache.thrift.protocol.TList _list1320 = iprot.readListBegin(); + struct.success = new ArrayList(_list1320.size); + Partition _elem1321; + for (int _i1322 = 0; _i1322 < _list1320.size; ++_i1322) { - _elem1297 = new Partition(); - _elem1297.read(iprot); - struct.success.add(_elem1297); + _elem1321 = new Partition(); + _elem1321.read(iprot); + struct.success.add(_elem1321); } iprot.readListEnd(); } @@ -114472,9 +115769,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 _iter1299 : struct.success) + for (Partition _iter1323 : struct.success) { - _iter1299.write(oprot); + _iter1323.write(oprot); } oprot.writeListEnd(); } @@ -114521,9 +115818,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1300 : struct.success) + for (Partition _iter1324 : struct.success) { - _iter1300.write(oprot); + _iter1324.write(oprot); } } } @@ -114541,14 +115838,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 _list1301 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1301.size); - Partition _elem1302; - for (int _i1303 = 0; _i1303 < _list1301.size; ++_i1303) + org.apache.thrift.protocol.TList _list1325 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1325.size); + Partition _elem1326; + for (int _i1327 = 0; _i1327 < _list1325.size; ++_i1327) { - _elem1302 = new Partition(); - _elem1302.read(iprot); - struct.success.add(_elem1302); + _elem1326 = new Partition(); + _elem1326.read(iprot); + struct.success.add(_elem1326); } } struct.setSuccessIsSet(true); @@ -116098,14 +117395,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 _list1304 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1304.size); - Partition _elem1305; - for (int _i1306 = 0; _i1306 < _list1304.size; ++_i1306) + org.apache.thrift.protocol.TList _list1328 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1328.size); + Partition _elem1329; + for (int _i1330 = 0; _i1330 < _list1328.size; ++_i1330) { - _elem1305 = new Partition(); - _elem1305.read(iprot); - struct.new_parts.add(_elem1305); + _elem1329 = new Partition(); + _elem1329.read(iprot); + struct.new_parts.add(_elem1329); } iprot.readListEnd(); } @@ -116141,9 +117438,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 _iter1307 : struct.new_parts) + for (Partition _iter1331 : struct.new_parts) { - _iter1307.write(oprot); + _iter1331.write(oprot); } oprot.writeListEnd(); } @@ -116186,9 +117483,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 _iter1308 : struct.new_parts) + for (Partition _iter1332 : struct.new_parts) { - _iter1308.write(oprot); + _iter1332.write(oprot); } } } @@ -116208,14 +117505,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1309 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1309.size); - Partition _elem1310; - for (int _i1311 = 0; _i1311 < _list1309.size; ++_i1311) + org.apache.thrift.protocol.TList _list1333 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1333.size); + Partition _elem1334; + for (int _i1335 = 0; _i1335 < _list1333.size; ++_i1335) { - _elem1310 = new Partition(); - _elem1310.read(iprot); - struct.new_parts.add(_elem1310); + _elem1334 = new Partition(); + _elem1334.read(iprot); + struct.new_parts.add(_elem1334); } } struct.setNew_partsIsSet(true); @@ -117268,14 +118565,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 _list1312 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1312.size); - Partition _elem1313; - for (int _i1314 = 0; _i1314 < _list1312.size; ++_i1314) + org.apache.thrift.protocol.TList _list1336 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1336.size); + Partition _elem1337; + for (int _i1338 = 0; _i1338 < _list1336.size; ++_i1338) { - _elem1313 = new Partition(); - _elem1313.read(iprot); - struct.new_parts.add(_elem1313); + _elem1337 = new Partition(); + _elem1337.read(iprot); + struct.new_parts.add(_elem1337); } iprot.readListEnd(); } @@ -117320,9 +118617,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 _iter1315 : struct.new_parts) + for (Partition _iter1339 : struct.new_parts) { - _iter1315.write(oprot); + _iter1339.write(oprot); } oprot.writeListEnd(); } @@ -117373,9 +118670,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 _iter1316 : struct.new_parts) + for (Partition _iter1340 : struct.new_parts) { - _iter1316.write(oprot); + _iter1340.write(oprot); } } } @@ -117398,14 +118695,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1317 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1317.size); - Partition _elem1318; - for (int _i1319 = 0; _i1319 < _list1317.size; ++_i1319) + org.apache.thrift.protocol.TList _list1341 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1341.size); + Partition _elem1342; + for (int _i1343 = 0; _i1343 < _list1341.size; ++_i1343) { - _elem1318 = new Partition(); - _elem1318.read(iprot); - struct.new_parts.add(_elem1318); + _elem1342 = new Partition(); + _elem1342.read(iprot); + struct.new_parts.add(_elem1342); } } struct.setNew_partsIsSet(true); @@ -119606,13 +120903,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 _list1320 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1320.size); - String _elem1321; - for (int _i1322 = 0; _i1322 < _list1320.size; ++_i1322) + org.apache.thrift.protocol.TList _list1344 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1344.size); + String _elem1345; + for (int _i1346 = 0; _i1346 < _list1344.size; ++_i1346) { - _elem1321 = iprot.readString(); - struct.part_vals.add(_elem1321); + _elem1345 = iprot.readString(); + struct.part_vals.add(_elem1345); } iprot.readListEnd(); } @@ -119657,9 +120954,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 _iter1323 : struct.part_vals) + for (String _iter1347 : struct.part_vals) { - oprot.writeString(_iter1323); + oprot.writeString(_iter1347); } oprot.writeListEnd(); } @@ -119710,9 +121007,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 _iter1324 : struct.part_vals) + for (String _iter1348 : struct.part_vals) { - oprot.writeString(_iter1324); + oprot.writeString(_iter1348); } } } @@ -119735,13 +121032,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1325 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = 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.part_vals = new ArrayList(_list1349.size); + String _elem1350; + for (int _i1351 = 0; _i1351 < _list1349.size; ++_i1351) { - _elem1326 = iprot.readString(); - struct.part_vals.add(_elem1326); + _elem1350 = iprot.readString(); + struct.part_vals.add(_elem1350); } } struct.setPart_valsIsSet(true); @@ -120615,13 +121912,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 _list1328 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1328.size); - String _elem1329; - for (int _i1330 = 0; _i1330 < _list1328.size; ++_i1330) + org.apache.thrift.protocol.TList _list1352 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1352.size); + String _elem1353; + for (int _i1354 = 0; _i1354 < _list1352.size; ++_i1354) { - _elem1329 = iprot.readString(); - struct.part_vals.add(_elem1329); + _elem1353 = iprot.readString(); + struct.part_vals.add(_elem1353); } iprot.readListEnd(); } @@ -120655,9 +121952,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 _iter1331 : struct.part_vals) + for (String _iter1355 : struct.part_vals) { - oprot.writeString(_iter1331); + oprot.writeString(_iter1355); } oprot.writeListEnd(); } @@ -120694,9 +121991,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 _iter1332 : struct.part_vals) + for (String _iter1356 : struct.part_vals) { - oprot.writeString(_iter1332); + oprot.writeString(_iter1356); } } } @@ -120711,13 +122008,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 _list1333 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = 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.part_vals = new ArrayList(_list1357.size); + String _elem1358; + for (int _i1359 = 0; _i1359 < _list1357.size; ++_i1359) { - _elem1334 = iprot.readString(); - struct.part_vals.add(_elem1334); + _elem1358 = iprot.readString(); + struct.part_vals.add(_elem1358); } } struct.setPart_valsIsSet(true); @@ -122872,13 +124169,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 _list1336 = iprot.readListBegin(); - struct.success = new ArrayList(_list1336.size); - String _elem1337; - for (int _i1338 = 0; _i1338 < _list1336.size; ++_i1338) + org.apache.thrift.protocol.TList _list1360 = iprot.readListBegin(); + struct.success = new ArrayList(_list1360.size); + String _elem1361; + for (int _i1362 = 0; _i1362 < _list1360.size; ++_i1362) { - _elem1337 = iprot.readString(); - struct.success.add(_elem1337); + _elem1361 = iprot.readString(); + struct.success.add(_elem1361); } iprot.readListEnd(); } @@ -122913,9 +124210,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 _iter1339 : struct.success) + for (String _iter1363 : struct.success) { - oprot.writeString(_iter1339); + oprot.writeString(_iter1363); } oprot.writeListEnd(); } @@ -122954,9 +124251,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1340 : struct.success) + for (String _iter1364 : struct.success) { - oprot.writeString(_iter1340); + oprot.writeString(_iter1364); } } } @@ -122971,13 +124268,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 _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) + org.apache.thrift.protocol.TList _list1365 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1365.size); + String _elem1366; + for (int _i1367 = 0; _i1367 < _list1365.size; ++_i1367) { - _elem1342 = iprot.readString(); - struct.success.add(_elem1342); + _elem1366 = iprot.readString(); + struct.success.add(_elem1366); } } struct.setSuccessIsSet(true); @@ -123740,15 +125037,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 _map1344 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map1344.size); - String _key1345; - String _val1346; - for (int _i1347 = 0; _i1347 < _map1344.size; ++_i1347) + org.apache.thrift.protocol.TMap _map1368 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1368.size); + String _key1369; + String _val1370; + for (int _i1371 = 0; _i1371 < _map1368.size; ++_i1371) { - _key1345 = iprot.readString(); - _val1346 = iprot.readString(); - struct.success.put(_key1345, _val1346); + _key1369 = iprot.readString(); + _val1370 = iprot.readString(); + struct.success.put(_key1369, _val1370); } iprot.readMapEnd(); } @@ -123783,10 +125080,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 _iter1348 : struct.success.entrySet()) + for (Map.Entry _iter1372 : struct.success.entrySet()) { - oprot.writeString(_iter1348.getKey()); - oprot.writeString(_iter1348.getValue()); + oprot.writeString(_iter1372.getKey()); + oprot.writeString(_iter1372.getValue()); } oprot.writeMapEnd(); } @@ -123825,10 +125122,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 _iter1349 : struct.success.entrySet()) + for (Map.Entry _iter1373 : struct.success.entrySet()) { - oprot.writeString(_iter1349.getKey()); - oprot.writeString(_iter1349.getValue()); + oprot.writeString(_iter1373.getKey()); + oprot.writeString(_iter1373.getValue()); } } } @@ -123843,15 +125140,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 _map1350 = 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*_map1350.size); - String _key1351; - String _val1352; - for (int _i1353 = 0; _i1353 < _map1350.size; ++_i1353) + org.apache.thrift.protocol.TMap _map1374 = 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*_map1374.size); + String _key1375; + String _val1376; + for (int _i1377 = 0; _i1377 < _map1374.size; ++_i1377) { - _key1351 = iprot.readString(); - _val1352 = iprot.readString(); - struct.success.put(_key1351, _val1352); + _key1375 = iprot.readString(); + _val1376 = iprot.readString(); + struct.success.put(_key1375, _val1376); } } struct.setSuccessIsSet(true); @@ -124446,15 +125743,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 _map1354 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1354.size); - String _key1355; - String _val1356; - for (int _i1357 = 0; _i1357 < _map1354.size; ++_i1357) + org.apache.thrift.protocol.TMap _map1378 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1378.size); + String _key1379; + String _val1380; + for (int _i1381 = 0; _i1381 < _map1378.size; ++_i1381) { - _key1355 = iprot.readString(); - _val1356 = iprot.readString(); - struct.part_vals.put(_key1355, _val1356); + _key1379 = iprot.readString(); + _val1380 = iprot.readString(); + struct.part_vals.put(_key1379, _val1380); } iprot.readMapEnd(); } @@ -124498,10 +125795,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 _iter1358 : struct.part_vals.entrySet()) + for (Map.Entry _iter1382 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1358.getKey()); - oprot.writeString(_iter1358.getValue()); + oprot.writeString(_iter1382.getKey()); + oprot.writeString(_iter1382.getValue()); } oprot.writeMapEnd(); } @@ -124552,10 +125849,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1359 : struct.part_vals.entrySet()) + for (Map.Entry _iter1383 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1359.getKey()); - oprot.writeString(_iter1359.getValue()); + oprot.writeString(_iter1383.getKey()); + oprot.writeString(_iter1383.getValue()); } } } @@ -124578,15 +125875,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1360 = 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*_map1360.size); - String _key1361; - String _val1362; - for (int _i1363 = 0; _i1363 < _map1360.size; ++_i1363) + org.apache.thrift.protocol.TMap _map1384 = 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*_map1384.size); + String _key1385; + String _val1386; + for (int _i1387 = 0; _i1387 < _map1384.size; ++_i1387) { - _key1361 = iprot.readString(); - _val1362 = iprot.readString(); - struct.part_vals.put(_key1361, _val1362); + _key1385 = iprot.readString(); + _val1386 = iprot.readString(); + struct.part_vals.put(_key1385, _val1386); } } struct.setPart_valsIsSet(true); @@ -126070,15 +127367,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 _map1364 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1364.size); - String _key1365; - String _val1366; - for (int _i1367 = 0; _i1367 < _map1364.size; ++_i1367) + org.apache.thrift.protocol.TMap _map1388 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1388.size); + String _key1389; + String _val1390; + for (int _i1391 = 0; _i1391 < _map1388.size; ++_i1391) { - _key1365 = iprot.readString(); - _val1366 = iprot.readString(); - struct.part_vals.put(_key1365, _val1366); + _key1389 = iprot.readString(); + _val1390 = iprot.readString(); + struct.part_vals.put(_key1389, _val1390); } iprot.readMapEnd(); } @@ -126122,10 +127419,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 _iter1368 : struct.part_vals.entrySet()) + for (Map.Entry _iter1392 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1368.getKey()); - oprot.writeString(_iter1368.getValue()); + oprot.writeString(_iter1392.getKey()); + oprot.writeString(_iter1392.getValue()); } oprot.writeMapEnd(); } @@ -126176,10 +127473,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1369 : struct.part_vals.entrySet()) + for (Map.Entry _iter1393 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1369.getKey()); - oprot.writeString(_iter1369.getValue()); + oprot.writeString(_iter1393.getKey()); + oprot.writeString(_iter1393.getValue()); } } } @@ -126202,15 +127499,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1370 = 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*_map1370.size); - String _key1371; - String _val1372; - for (int _i1373 = 0; _i1373 < _map1370.size; ++_i1373) + org.apache.thrift.protocol.TMap _map1394 = 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*_map1394.size); + String _key1395; + String _val1396; + for (int _i1397 = 0; _i1397 < _map1394.size; ++_i1397) { - _key1371 = iprot.readString(); - _val1372 = iprot.readString(); - struct.part_vals.put(_key1371, _val1372); + _key1395 = iprot.readString(); + _val1396 = iprot.readString(); + struct.part_vals.put(_key1395, _val1396); } } struct.setPart_valsIsSet(true); @@ -126903,11 +128200,1078 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("isPartitionMarkedForEvent_result("); + StringBuilder sb = new StringBuilder("isPartitionMarkedForEvent_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"); + } 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; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; + if (!first) sb.append(", "); + sb.append("o4:"); + if (this.o4 == null) { + sb.append("null"); + } else { + sb.append(this.o4); + } + first = false; + if (!first) sb.append(", "); + sb.append("o5:"); + if (this.o5 == null) { + sb.append("null"); + } else { + sb.append(this.o5); + } + first = false; + if (!first) sb.append(", "); + sb.append("o6:"); + if (this.o6 == null) { + sb.append("null"); + } else { + sb.append(this.o6); + } + 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 isPartitionMarkedForEvent_resultStandardSchemeFactory implements SchemeFactory { + public isPartitionMarkedForEvent_resultStandardScheme getScheme() { + return new isPartitionMarkedForEvent_resultStandardScheme(); + } + } + + private static class isPartitionMarkedForEvent_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, isPartitionMarkedForEvent_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.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 MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // O2 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o2 = new NoSuchObjectException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new UnknownDBException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // O4 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o4 = new UnknownTableException(); + struct.o4.read(iprot); + struct.setO4IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // O5 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o5 = new UnknownPartitionException(); + struct.o5.read(iprot); + struct.setO5IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // O6 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o6 = new InvalidPartitionException(); + struct.o6.read(iprot); + struct.setO6IsSet(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, isPartitionMarkedForEvent_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); + oprot.writeFieldEnd(); + } + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o4 != null) { + oprot.writeFieldBegin(O4_FIELD_DESC); + struct.o4.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o5 != null) { + oprot.writeFieldBegin(O5_FIELD_DESC); + struct.o5.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o6 != null) { + oprot.writeFieldBegin(O6_FIELD_DESC); + struct.o6.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class isPartitionMarkedForEvent_resultTupleSchemeFactory implements SchemeFactory { + public isPartitionMarkedForEvent_resultTupleScheme getScheme() { + return new isPartitionMarkedForEvent_resultTupleScheme(); + } + } + + private static class isPartitionMarkedForEvent_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedForEvent_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); + } + if (struct.isSetO3()) { + optionals.set(3); + } + if (struct.isSetO4()) { + optionals.set(4); + } + if (struct.isSetO5()) { + optionals.set(5); + } + if (struct.isSetO6()) { + optionals.set(6); + } + oprot.writeBitSet(optionals, 7); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); + } + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } + if (struct.isSetO4()) { + struct.o4.write(oprot); + } + if (struct.isSetO5()) { + struct.o5.write(oprot); + } + if (struct.isSetO6()) { + struct.o6.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedForEvent_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(7); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(2)) { + struct.o2 = new NoSuchObjectException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } + if (incoming.get(3)) { + struct.o3 = new UnknownDBException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } + if (incoming.get(4)) { + struct.o4 = new UnknownTableException(); + struct.o4.read(iprot); + struct.setO4IsSet(true); + } + if (incoming.get(5)) { + struct.o5 = new UnknownPartitionException(); + struct.o5.read(iprot); + struct.setO5IsSet(true); + } + if (incoming.get(6)) { + struct.o6 = new InvalidPartitionException(); + struct.o6.read(iprot); + struct.setO6IsSet(true); + } + } + } + + } + + @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 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()); + } + + 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 { + REQUEST((short)1, "request"); + + 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: // REQUEST + return REQUEST; + 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.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_primary_keys_args.class, metaDataMap); + } + + public get_primary_keys_args() { + } + + public get_primary_keys_args( + PrimaryKeysRequest request) + { + this(); + this.request = request; + } + + /** + * Performs a deep copy on other. + */ + public get_primary_keys_args(get_primary_keys_args other) { + if (other.isSetRequest()) { + this.request = new PrimaryKeysRequest(other.request); + } + } + + public get_primary_keys_args deepCopy() { + return new get_primary_keys_args(this); + } + + @Override + public void clear() { + this.request = null; + } + + public PrimaryKeysRequest getRequest() { + return this.request; + } + + public void setRequest(PrimaryKeysRequest request) { + this.request = request; + } + + public void unsetRequest() { + this.request = 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 setRequestIsSet(boolean value) { + if (!value) { + this.request = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case REQUEST: + if (value == null) { + unsetRequest(); + } else { + setRequest((PrimaryKeysRequest)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case REQUEST: + return getRequest(); + + } + 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 REQUEST: + return isSetRequest(); + } + throw new IllegalStateException(); + } + + @Override + 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); + return false; + } + + public boolean equals(get_primary_keys_args that) { + if (that == null) + return false; + + 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.request.equals(that.request)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_request = true && (isSetRequest()); + list.add(present_request); + if (present_request) + list.add(request); + + return list.hashCode(); + } + + @Override + 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(isSetRequest()).compareTo(other.isSetRequest()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRequest()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + 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_primary_keys_args("); + boolean first = true; + + sb.append("request:"); + if (this.request == null) { + sb.append("null"); + } else { + sb.append(this.request); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (request != null) { + request.validate(); + } + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class get_primary_keys_argsStandardSchemeFactory implements SchemeFactory { + public get_primary_keys_argsStandardScheme getScheme() { + return new get_primary_keys_argsStandardScheme(); + } + } + + private static class get_primary_keys_argsStandardScheme extends StandardScheme { + + 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) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + 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); + } + 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_primary_keys_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.request != null) { + oprot.writeFieldBegin(REQUEST_FIELD_DESC); + struct.request.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + 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_primary_keys_argsTupleScheme extends TupleScheme { + + @Override + 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.isSetRequest()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetRequest()) { + struct.request.write(oprot); + } + } + + @Override + 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(1); + if (incoming.get(0)) { + 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_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.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_primary_keys_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_primary_keys_resultTupleSchemeFactory()); + } + + 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"), + O1((short)1, "o1"), + O2((short)2, "o2"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // O1 + return O1; + case 2: // O2 + return O2; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, 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_primary_keys_result.class, metaDataMap); + } + + public get_primary_keys_result() { + } + + 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_primary_keys_result(get_primary_keys_result other) { + if (other.isSetSuccess()) { + this.success = new PrimaryKeysResponse(other.success); + } + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new NoSuchObjectException(other.o2); + } + } + + 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 PrimaryKeysResponse getSuccess() { + return this.success; + } + + public void setSuccess(PrimaryKeysResponse success) { + this.success = success; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public MetaException getO1() { + return this.o1; + } + + public void setO1(MetaException o1) { + this.o1 = o1; + } + + public void unsetO1() { + this.o1 = null; + } + + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; + } + + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; + } + } + + public NoSuchObjectException getO2() { + return this.o2; + } + + public void setO2(NoSuchObjectException o2) { + this.o2 = o2; + } + + public void unsetO2() { + this.o2 = null; + } + + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ + public boolean isSetO2() { + return this.o2 != null; + } + + public void setO2IsSet(boolean value) { + if (!value) { + this.o2 = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((PrimaryKeysResponse)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((MetaException)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((NoSuchObjectException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case O1: + return getO1(); + + case O2: + return getO2(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + case O1: + return isSetO1(); + case O2: + return isSetO2(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof get_primary_keys_result) + return this.equals((get_primary_keys_result)that); + return false; + } + + public boolean equals(get_primary_keys_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + if (!(this_present_o1 && that_present_o1)) + return false; + if (!this.o1.equals(that.o1)) + return false; + } + + boolean this_present_o2 = true && this.isSetO2(); + boolean that_present_o2 = true && that.isSetO2(); + if (this_present_o2 || that_present_o2) { + if (!(this_present_o2 && that_present_o2)) + return false; + if (!this.o2.equals(that.o2)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + + boolean present_o2 = true && (isSetO2()); + list.add(present_o2); + if (present_o2) + list.add(o2); + + return list.hashCode(); + } + + @Override + public int compareTo(get_primary_keys_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("get_primary_keys_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:"); @@ -126925,38 +129289,6 @@ public String toString() { sb.append(this.o2); } first = false; - if (!first) sb.append(", "); - sb.append("o3:"); - if (this.o3 == null) { - sb.append("null"); - } else { - sb.append(this.o3); - } - first = false; - if (!first) sb.append(", "); - sb.append("o4:"); - if (this.o4 == null) { - sb.append("null"); - } else { - sb.append(this.o4); - } - first = false; - if (!first) sb.append(", "); - sb.append("o5:"); - if (this.o5 == null) { - sb.append("null"); - } else { - sb.append(this.o5); - } - first = false; - if (!first) sb.append(", "); - sb.append("o6:"); - if (this.o6 == null) { - sb.append("null"); - } else { - sb.append(this.o6); - } - first = false; sb.append(")"); return sb.toString(); } @@ -126964,6 +129296,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 { @@ -126976,23 +129311,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 isPartitionMarkedForEvent_resultStandardSchemeFactory implements SchemeFactory { - public isPartitionMarkedForEvent_resultStandardScheme getScheme() { - return new isPartitionMarkedForEvent_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 isPartitionMarkedForEvent_resultStandardScheme extends StandardScheme { + private static class get_primary_keys_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, isPartitionMarkedForEvent_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) @@ -127003,8 +129336,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isPartitionMarkedFo } 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 PrimaryKeysResponse(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -127028,42 +129362,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isPartitionMarkedFo org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // O3 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new UnknownDBException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // O4 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o4 = new UnknownTableException(); - struct.o4.read(iprot); - struct.setO4IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // O5 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o5 = new UnknownPartitionException(); - struct.o5.read(iprot); - struct.setO5IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // O6 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o6 = new InvalidPartitionException(); - struct.o6.read(iprot); - struct.setO6IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -127073,13 +129371,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isPartitionMarkedFo struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, isPartitionMarkedForEvent_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.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -127092,42 +129390,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, isPartitionMarkedF struct.o2.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.o4 != null) { - oprot.writeFieldBegin(O4_FIELD_DESC); - struct.o4.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.o5 != null) { - oprot.writeFieldBegin(O5_FIELD_DESC); - struct.o5.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.o6 != null) { - oprot.writeFieldBegin(O6_FIELD_DESC); - struct.o6.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class isPartitionMarkedForEvent_resultTupleSchemeFactory implements SchemeFactory { - public isPartitionMarkedForEvent_resultTupleScheme getScheme() { - return new isPartitionMarkedForEvent_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 isPartitionMarkedForEvent_resultTupleScheme extends TupleScheme { + private static class get_primary_keys_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedForEvent_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()) { @@ -127139,21 +129417,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetO2()) { optionals.set(2); } - if (struct.isSetO3()) { - optionals.set(3); - } - if (struct.isSetO4()) { - optionals.set(4); - } - if (struct.isSetO5()) { - optionals.set(5); - } - if (struct.isSetO6()) { - optionals.set(6); - } - oprot.writeBitSet(optionals, 7); + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -127161,26 +129427,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetO2()) { struct.o2.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } - if (struct.isSetO4()) { - struct.o4.write(oprot); - } - if (struct.isSetO5()) { - struct.o5.write(oprot); - } - if (struct.isSetO6()) { - struct.o6.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedForEvent_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(7); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = iprot.readBool(); + struct.success = new PrimaryKeysResponse(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -127193,43 +129448,23 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(3)) { - struct.o3 = new UnknownDBException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } - if (incoming.get(4)) { - struct.o4 = new UnknownTableException(); - struct.o4.read(iprot); - struct.setO4IsSet(true); - } - if (incoming.get(5)) { - struct.o5 = new UnknownPartitionException(); - struct.o5.read(iprot); - struct.setO5IsSet(true); - } - if (incoming.get(6)) { - struct.o6 = new InvalidPartitionException(); - struct.o6.read(iprot); - struct.setO6IsSet(true); - } } } } - @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 { @@ -127294,16 +129529,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; @@ -127312,14 +129547,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 @@ -127327,11 +129562,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; } @@ -127356,7 +129591,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetRequest(); } else { - setRequest((PrimaryKeysRequest)value); + setRequest((ForeignKeysRequest)value); } break; @@ -127389,12 +129624,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; @@ -127423,7 +129658,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()); } @@ -127457,7 +129692,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:"); @@ -127495,15 +129730,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) @@ -127515,7 +129750,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 { @@ -127531,7 +129766,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); @@ -127546,16 +129781,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()) { @@ -127568,11 +129803,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); } @@ -127581,8 +129816,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); @@ -127590,11 +129825,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 @@ -127667,20 +129902,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) { @@ -127693,9 +129928,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); @@ -127705,8 +129940,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 @@ -127716,11 +129951,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; } @@ -127791,7 +130026,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((PrimaryKeysResponse)value); + setSuccess((ForeignKeysResponse)value); } break; @@ -127850,12 +130085,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; @@ -127912,7 +130147,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()); } @@ -127966,7 +130201,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:"); @@ -128020,15 +130255,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) @@ -128040,7 +130275,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 { @@ -128074,7 +130309,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); @@ -128099,16 +130334,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()) { @@ -128133,11 +130368,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); } @@ -128156,18 +130391,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 { @@ -128232,16 +130467,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; @@ -128250,14 +130485,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 @@ -128265,11 +130500,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; } @@ -128294,7 +130529,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetRequest(); } else { - setRequest((ForeignKeysRequest)value); + setRequest((UniqueConstraintsRequest)value); } break; @@ -128327,12 +130562,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; @@ -128361,7 +130596,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()); } @@ -128395,7 +130630,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:"); @@ -128433,15 +130668,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) @@ -128453,7 +130688,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 { @@ -128469,7 +130704,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); @@ -128484,16 +130719,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()) { @@ -128506,11 +130741,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); } @@ -128519,8 +130754,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); @@ -128528,11 +130763,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 @@ -128605,20 +130840,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) { @@ -128631,9 +130866,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); @@ -128643,8 +130878,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 @@ -128654,11 +130889,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; } @@ -128729,7 +130964,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((ForeignKeysResponse)value); + setSuccess((UniqueConstraintsResponse)value); } break; @@ -128788,12 +131023,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; @@ -128850,7 +131085,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()); } @@ -128904,7 +131139,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:"); @@ -128958,15 +131193,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) @@ -128978,7 +131213,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 { @@ -129012,7 +131247,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); @@ -129037,16 +131272,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()) { @@ -129071,11 +131306,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); } @@ -129094,18 +131329,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 { @@ -129170,16 +131405,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; @@ -129188,14 +131423,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 @@ -129203,11 +131438,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; } @@ -129232,7 +131467,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetRequest(); } else { - setRequest((UniqueConstraintsRequest)value); + setRequest((NotNullConstraintsRequest)value); } break; @@ -129265,12 +131500,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; @@ -129299,7 +131534,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()); } @@ -129333,7 +131568,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:"); @@ -129371,15 +131606,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) @@ -129391,7 +131626,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 { @@ -129407,7 +131642,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); @@ -129422,16 +131657,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()) { @@ -129444,11 +131679,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); } @@ -129457,8 +131692,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); @@ -129466,11 +131701,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 @@ -129543,20 +131778,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) { @@ -129569,9 +131804,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); @@ -129581,8 +131816,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 @@ -129592,11 +131827,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; } @@ -129667,7 +131902,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((UniqueConstraintsResponse)value); + setSuccess((NotNullConstraintsResponse)value); } break; @@ -129726,12 +131961,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; @@ -129788,7 +132023,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()); } @@ -129842,7 +132077,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:"); @@ -129896,15 +132131,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) @@ -129916,7 +132151,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 { @@ -129950,7 +132185,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); @@ -129975,16 +132210,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()) { @@ -130009,11 +132244,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); } @@ -130032,18 +132267,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 { @@ -130108,16 +132343,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; @@ -130126,14 +132361,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 @@ -130141,11 +132376,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; } @@ -130170,7 +132405,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetRequest(); } else { - setRequest((NotNullConstraintsRequest)value); + setRequest((DefaultConstraintsRequest)value); } break; @@ -130203,12 +132438,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; @@ -130237,7 +132472,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()); } @@ -130271,7 +132506,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:"); @@ -130309,15 +132544,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) @@ -130329,7 +132564,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 { @@ -130345,7 +132580,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); @@ -130360,16 +132595,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()) { @@ -130382,11 +132617,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); } @@ -130395,8 +132630,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); @@ -130404,11 +132639,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 @@ -130481,20 +132716,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) { @@ -130507,9 +132742,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); @@ -130519,8 +132754,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 @@ -130530,11 +132765,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; } @@ -130605,7 +132840,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((NotNullConstraintsResponse)value); + setSuccess((DefaultConstraintsResponse)value); } break; @@ -130664,12 +132899,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; @@ -130726,7 +132961,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()); } @@ -130780,7 +133015,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:"); @@ -130834,15 +133069,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) @@ -130854,7 +133089,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 { @@ -130888,7 +133123,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); @@ -130913,16 +133148,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()) { @@ -130947,11 +133182,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); } @@ -130970,18 +133205,18 @@ 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_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"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_check_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_check_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_default_constraints_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_default_constraints_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_check_constraints_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_check_constraints_argsTupleSchemeFactory()); } - private DefaultConstraintsRequest request; // required + private CheckConstraintsRequest 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 { @@ -131046,16 +133281,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, DefaultConstraintsRequest.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CheckConstraintsRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_default_constraints_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_check_constraints_args.class, metaDataMap); } - public get_default_constraints_args() { + public get_check_constraints_args() { } - public get_default_constraints_args( - DefaultConstraintsRequest request) + public get_check_constraints_args( + CheckConstraintsRequest request) { this(); this.request = request; @@ -131064,14 +133299,14 @@ public get_default_constraints_args( /** * Performs a deep copy on other. */ - public get_default_constraints_args(get_default_constraints_args other) { + public get_check_constraints_args(get_check_constraints_args other) { if (other.isSetRequest()) { - this.request = new DefaultConstraintsRequest(other.request); + this.request = new CheckConstraintsRequest(other.request); } } - public get_default_constraints_args deepCopy() { - return new get_default_constraints_args(this); + public get_check_constraints_args deepCopy() { + return new get_check_constraints_args(this); } @Override @@ -131079,11 +133314,11 @@ public void clear() { this.request = null; } - public DefaultConstraintsRequest getRequest() { + public CheckConstraintsRequest getRequest() { return this.request; } - public void setRequest(DefaultConstraintsRequest request) { + public void setRequest(CheckConstraintsRequest request) { this.request = request; } @@ -131108,7 +133343,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetRequest(); } else { - setRequest((DefaultConstraintsRequest)value); + setRequest((CheckConstraintsRequest)value); } break; @@ -131141,12 +133376,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_default_constraints_args) - return this.equals((get_default_constraints_args)that); + if (that instanceof get_check_constraints_args) + return this.equals((get_check_constraints_args)that); return false; } - public boolean equals(get_default_constraints_args that) { + public boolean equals(get_check_constraints_args that) { if (that == null) return false; @@ -131175,7 +133410,7 @@ public int hashCode() { } @Override - public int compareTo(get_default_constraints_args other) { + public int compareTo(get_check_constraints_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -131209,7 +133444,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_default_constraints_args("); + StringBuilder sb = new StringBuilder("get_check_constraints_args("); boolean first = true; sb.append("request:"); @@ -131247,15 +133482,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - 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_check_constraints_argsStandardSchemeFactory implements SchemeFactory { + public get_check_constraints_argsStandardScheme getScheme() { + return new get_check_constraints_argsStandardScheme(); } } - private static class get_default_constraints_argsStandardScheme extends StandardScheme { + private static class get_check_constraints_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_default_constraints_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_check_constraints_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -131267,7 +133502,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_default_constra switch (schemeField.id) { case 1: // REQUEST if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.request = new DefaultConstraintsRequest(); + struct.request = new CheckConstraintsRequest(); struct.request.read(iprot); struct.setRequestIsSet(true); } else { @@ -131283,7 +133518,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_default_constra struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_default_constraints_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_check_constraints_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -131298,16 +133533,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_default_constr } - 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_check_constraints_argsTupleSchemeFactory implements SchemeFactory { + public get_check_constraints_argsTupleScheme getScheme() { + return new get_check_constraints_argsTupleScheme(); } } - private static class get_default_constraints_argsTupleScheme extends TupleScheme { + private static class get_check_constraints_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_default_constraints_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_check_constraints_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRequest()) { @@ -131320,11 +133555,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_default_constra } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_default_constraints_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_check_constraints_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.request = new DefaultConstraintsRequest(); + struct.request = new CheckConstraintsRequest(); struct.request.read(iprot); struct.setRequestIsSet(true); } @@ -131333,8 +133568,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_default_constrai } - @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"); + @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_check_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_check_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); @@ -131342,11 +133577,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_default_constrai private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_default_constraints_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_default_constraints_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_check_constraints_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_check_constraints_resultTupleSchemeFactory()); } - private DefaultConstraintsResponse success; // required + private CheckConstraintsResponse success; // required private MetaException o1; // required private NoSuchObjectException o2; // required @@ -131419,20 +133654,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, DefaultConstraintsResponse.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CheckConstraintsResponse.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_default_constraints_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_check_constraints_result.class, metaDataMap); } - public get_default_constraints_result() { + public get_check_constraints_result() { } - public get_default_constraints_result( - DefaultConstraintsResponse success, + public get_check_constraints_result( + CheckConstraintsResponse success, MetaException o1, NoSuchObjectException o2) { @@ -131445,9 +133680,9 @@ public get_default_constraints_result( /** * Performs a deep copy on other. */ - public get_default_constraints_result(get_default_constraints_result other) { + public get_check_constraints_result(get_check_constraints_result other) { if (other.isSetSuccess()) { - this.success = new DefaultConstraintsResponse(other.success); + this.success = new CheckConstraintsResponse(other.success); } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); @@ -131457,8 +133692,8 @@ public get_default_constraints_result(get_default_constraints_result other) { } } - public get_default_constraints_result deepCopy() { - return new get_default_constraints_result(this); + public get_check_constraints_result deepCopy() { + return new get_check_constraints_result(this); } @Override @@ -131468,11 +133703,11 @@ public void clear() { this.o2 = null; } - public DefaultConstraintsResponse getSuccess() { + public CheckConstraintsResponse getSuccess() { return this.success; } - public void setSuccess(DefaultConstraintsResponse success) { + public void setSuccess(CheckConstraintsResponse success) { this.success = success; } @@ -131543,7 +133778,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((DefaultConstraintsResponse)value); + setSuccess((CheckConstraintsResponse)value); } break; @@ -131602,12 +133837,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_default_constraints_result) - return this.equals((get_default_constraints_result)that); + if (that instanceof get_check_constraints_result) + return this.equals((get_check_constraints_result)that); return false; } - public boolean equals(get_default_constraints_result that) { + public boolean equals(get_check_constraints_result that) { if (that == null) return false; @@ -131664,7 +133899,7 @@ public int hashCode() { } @Override - public int compareTo(get_default_constraints_result other) { + public int compareTo(get_check_constraints_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -131718,7 +133953,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_default_constraints_result("); + StringBuilder sb = new StringBuilder("get_check_constraints_result("); boolean first = true; sb.append("success:"); @@ -131772,15 +134007,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - 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_check_constraints_resultStandardSchemeFactory implements SchemeFactory { + public get_check_constraints_resultStandardScheme getScheme() { + return new get_check_constraints_resultStandardScheme(); } } - private static class get_default_constraints_resultStandardScheme extends StandardScheme { + private static class get_check_constraints_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_default_constraints_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_check_constraints_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -131792,7 +134027,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_default_constra switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new DefaultConstraintsResponse(); + struct.success = new CheckConstraintsResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -131826,7 +134061,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_default_constra struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_default_constraints_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_check_constraints_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -131851,16 +134086,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_default_constr } - 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_check_constraints_resultTupleSchemeFactory implements SchemeFactory { + public get_check_constraints_resultTupleScheme getScheme() { + return new get_check_constraints_resultTupleScheme(); } } - private static class get_default_constraints_resultTupleScheme extends TupleScheme { + private static class get_check_constraints_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_default_constraints_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_check_constraints_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -131885,11 +134120,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_default_constra } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_default_constraints_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_check_constraints_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new DefaultConstraintsResponse(); + struct.success = new CheckConstraintsResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -147628,13 +149863,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 _list1374 = iprot.readListBegin(); - struct.success = new ArrayList(_list1374.size); - String _elem1375; - for (int _i1376 = 0; _i1376 < _list1374.size; ++_i1376) + org.apache.thrift.protocol.TList _list1398 = iprot.readListBegin(); + struct.success = new ArrayList(_list1398.size); + String _elem1399; + for (int _i1400 = 0; _i1400 < _list1398.size; ++_i1400) { - _elem1375 = iprot.readString(); - struct.success.add(_elem1375); + _elem1399 = iprot.readString(); + struct.success.add(_elem1399); } iprot.readListEnd(); } @@ -147669,9 +149904,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 _iter1377 : struct.success) + for (String _iter1401 : struct.success) { - oprot.writeString(_iter1377); + oprot.writeString(_iter1401); } oprot.writeListEnd(); } @@ -147710,9 +149945,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1378 : struct.success) + for (String _iter1402 : struct.success) { - oprot.writeString(_iter1378); + oprot.writeString(_iter1402); } } } @@ -147727,13 +149962,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 _list1379 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1379.size); - String _elem1380; - for (int _i1381 = 0; _i1381 < _list1379.size; ++_i1381) + org.apache.thrift.protocol.TList _list1403 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1403.size); + String _elem1404; + for (int _i1405 = 0; _i1405 < _list1403.size; ++_i1405) { - _elem1380 = iprot.readString(); - struct.success.add(_elem1380); + _elem1404 = iprot.readString(); + struct.success.add(_elem1404); } } struct.setSuccessIsSet(true); @@ -151788,13 +154023,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 _list1382 = iprot.readListBegin(); - struct.success = new ArrayList(_list1382.size); - String _elem1383; - for (int _i1384 = 0; _i1384 < _list1382.size; ++_i1384) + org.apache.thrift.protocol.TList _list1406 = iprot.readListBegin(); + struct.success = new ArrayList(_list1406.size); + String _elem1407; + for (int _i1408 = 0; _i1408 < _list1406.size; ++_i1408) { - _elem1383 = iprot.readString(); - struct.success.add(_elem1383); + _elem1407 = iprot.readString(); + struct.success.add(_elem1407); } iprot.readListEnd(); } @@ -151829,9 +154064,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 _iter1385 : struct.success) + for (String _iter1409 : struct.success) { - oprot.writeString(_iter1385); + oprot.writeString(_iter1409); } oprot.writeListEnd(); } @@ -151870,9 +154105,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1386 : struct.success) + for (String _iter1410 : struct.success) { - oprot.writeString(_iter1386); + oprot.writeString(_iter1410); } } } @@ -151887,13 +154122,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 _list1387 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1387.size); - String _elem1388; - for (int _i1389 = 0; _i1389 < _list1387.size; ++_i1389) + org.apache.thrift.protocol.TList _list1411 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1411.size); + String _elem1412; + for (int _i1413 = 0; _i1413 < _list1411.size; ++_i1413) { - _elem1388 = iprot.readString(); - struct.success.add(_elem1388); + _elem1412 = iprot.readString(); + struct.success.add(_elem1412); } } struct.setSuccessIsSet(true); @@ -155184,14 +157419,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 _list1390 = iprot.readListBegin(); - struct.success = new ArrayList(_list1390.size); - Role _elem1391; - for (int _i1392 = 0; _i1392 < _list1390.size; ++_i1392) + org.apache.thrift.protocol.TList _list1414 = iprot.readListBegin(); + struct.success = new ArrayList(_list1414.size); + Role _elem1415; + for (int _i1416 = 0; _i1416 < _list1414.size; ++_i1416) { - _elem1391 = new Role(); - _elem1391.read(iprot); - struct.success.add(_elem1391); + _elem1415 = new Role(); + _elem1415.read(iprot); + struct.success.add(_elem1415); } iprot.readListEnd(); } @@ -155226,9 +157461,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 _iter1393 : struct.success) + for (Role _iter1417 : struct.success) { - _iter1393.write(oprot); + _iter1417.write(oprot); } oprot.writeListEnd(); } @@ -155267,9 +157502,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Role _iter1394 : struct.success) + for (Role _iter1418 : struct.success) { - _iter1394.write(oprot); + _iter1418.write(oprot); } } } @@ -155284,14 +157519,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 _list1395 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1395.size); - Role _elem1396; - for (int _i1397 = 0; _i1397 < _list1395.size; ++_i1397) + org.apache.thrift.protocol.TList _list1419 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1419.size); + Role _elem1420; + for (int _i1421 = 0; _i1421 < _list1419.size; ++_i1421) { - _elem1396 = new Role(); - _elem1396.read(iprot); - struct.success.add(_elem1396); + _elem1420 = new Role(); + _elem1420.read(iprot); + struct.success.add(_elem1420); } } struct.setSuccessIsSet(true); @@ -158296,13 +160531,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 _list1398 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1398.size); - String _elem1399; - for (int _i1400 = 0; _i1400 < _list1398.size; ++_i1400) + org.apache.thrift.protocol.TList _list1422 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1422.size); + String _elem1423; + for (int _i1424 = 0; _i1424 < _list1422.size; ++_i1424) { - _elem1399 = iprot.readString(); - struct.group_names.add(_elem1399); + _elem1423 = iprot.readString(); + struct.group_names.add(_elem1423); } iprot.readListEnd(); } @@ -158338,9 +160573,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 _iter1401 : struct.group_names) + for (String _iter1425 : struct.group_names) { - oprot.writeString(_iter1401); + oprot.writeString(_iter1425); } oprot.writeListEnd(); } @@ -158383,9 +160618,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 _iter1402 : struct.group_names) + for (String _iter1426 : struct.group_names) { - oprot.writeString(_iter1402); + oprot.writeString(_iter1426); } } } @@ -158406,13 +160641,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1403 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1403.size); - String _elem1404; - for (int _i1405 = 0; _i1405 < _list1403.size; ++_i1405) + org.apache.thrift.protocol.TList _list1427 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1427.size); + String _elem1428; + for (int _i1429 = 0; _i1429 < _list1427.size; ++_i1429) { - _elem1404 = iprot.readString(); - struct.group_names.add(_elem1404); + _elem1428 = iprot.readString(); + struct.group_names.add(_elem1428); } } struct.setGroup_namesIsSet(true); @@ -159870,14 +162105,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 _list1406 = iprot.readListBegin(); - struct.success = new ArrayList(_list1406.size); - HiveObjectPrivilege _elem1407; - for (int _i1408 = 0; _i1408 < _list1406.size; ++_i1408) + org.apache.thrift.protocol.TList _list1430 = iprot.readListBegin(); + struct.success = new ArrayList(_list1430.size); + HiveObjectPrivilege _elem1431; + for (int _i1432 = 0; _i1432 < _list1430.size; ++_i1432) { - _elem1407 = new HiveObjectPrivilege(); - _elem1407.read(iprot); - struct.success.add(_elem1407); + _elem1431 = new HiveObjectPrivilege(); + _elem1431.read(iprot); + struct.success.add(_elem1431); } iprot.readListEnd(); } @@ -159912,9 +162147,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 _iter1409 : struct.success) + for (HiveObjectPrivilege _iter1433 : struct.success) { - _iter1409.write(oprot); + _iter1433.write(oprot); } oprot.writeListEnd(); } @@ -159953,9 +162188,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter1410 : struct.success) + for (HiveObjectPrivilege _iter1434 : struct.success) { - _iter1410.write(oprot); + _iter1434.write(oprot); } } } @@ -159970,14 +162205,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 _list1411 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1411.size); - HiveObjectPrivilege _elem1412; - for (int _i1413 = 0; _i1413 < _list1411.size; ++_i1413) + org.apache.thrift.protocol.TList _list1435 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1435.size); + HiveObjectPrivilege _elem1436; + for (int _i1437 = 0; _i1437 < _list1435.size; ++_i1437) { - _elem1412 = new HiveObjectPrivilege(); - _elem1412.read(iprot); - struct.success.add(_elem1412); + _elem1436 = new HiveObjectPrivilege(); + _elem1436.read(iprot); + struct.success.add(_elem1436); } } struct.setSuccessIsSet(true); @@ -162879,13 +165114,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 _list1414 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1414.size); - String _elem1415; - for (int _i1416 = 0; _i1416 < _list1414.size; ++_i1416) + org.apache.thrift.protocol.TList _list1438 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1438.size); + String _elem1439; + for (int _i1440 = 0; _i1440 < _list1438.size; ++_i1440) { - _elem1415 = iprot.readString(); - struct.group_names.add(_elem1415); + _elem1439 = iprot.readString(); + struct.group_names.add(_elem1439); } iprot.readListEnd(); } @@ -162916,9 +165151,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 _iter1417 : struct.group_names) + for (String _iter1441 : struct.group_names) { - oprot.writeString(_iter1417); + oprot.writeString(_iter1441); } oprot.writeListEnd(); } @@ -162955,9 +165190,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 _iter1418 : struct.group_names) + for (String _iter1442 : struct.group_names) { - oprot.writeString(_iter1418); + oprot.writeString(_iter1442); } } } @@ -162973,13 +165208,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1419 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1419.size); - String _elem1420; - for (int _i1421 = 0; _i1421 < _list1419.size; ++_i1421) + org.apache.thrift.protocol.TList _list1443 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1443.size); + String _elem1444; + for (int _i1445 = 0; _i1445 < _list1443.size; ++_i1445) { - _elem1420 = iprot.readString(); - struct.group_names.add(_elem1420); + _elem1444 = iprot.readString(); + struct.group_names.add(_elem1444); } } struct.setGroup_namesIsSet(true); @@ -163382,13 +165617,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 _list1422 = iprot.readListBegin(); - struct.success = new ArrayList(_list1422.size); - String _elem1423; - for (int _i1424 = 0; _i1424 < _list1422.size; ++_i1424) + org.apache.thrift.protocol.TList _list1446 = iprot.readListBegin(); + struct.success = new ArrayList(_list1446.size); + String _elem1447; + for (int _i1448 = 0; _i1448 < _list1446.size; ++_i1448) { - _elem1423 = iprot.readString(); - struct.success.add(_elem1423); + _elem1447 = iprot.readString(); + struct.success.add(_elem1447); } iprot.readListEnd(); } @@ -163423,9 +165658,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 _iter1425 : struct.success) + for (String _iter1449 : struct.success) { - oprot.writeString(_iter1425); + oprot.writeString(_iter1449); } oprot.writeListEnd(); } @@ -163464,9 +165699,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1426 : struct.success) + for (String _iter1450 : struct.success) { - oprot.writeString(_iter1426); + oprot.writeString(_iter1450); } } } @@ -163481,13 +165716,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 _list1427 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1427.size); - String _elem1428; - for (int _i1429 = 0; _i1429 < _list1427.size; ++_i1429) + org.apache.thrift.protocol.TList _list1451 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1451.size); + String _elem1452; + for (int _i1453 = 0; _i1453 < _list1451.size; ++_i1453) { - _elem1428 = iprot.readString(); - struct.success.add(_elem1428); + _elem1452 = iprot.readString(); + struct.success.add(_elem1452); } } struct.setSuccessIsSet(true); @@ -168778,13 +171013,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 _list1430 = iprot.readListBegin(); - struct.success = new ArrayList(_list1430.size); - String _elem1431; - for (int _i1432 = 0; _i1432 < _list1430.size; ++_i1432) + org.apache.thrift.protocol.TList _list1454 = iprot.readListBegin(); + struct.success = new ArrayList(_list1454.size); + String _elem1455; + for (int _i1456 = 0; _i1456 < _list1454.size; ++_i1456) { - _elem1431 = iprot.readString(); - struct.success.add(_elem1431); + _elem1455 = iprot.readString(); + struct.success.add(_elem1455); } iprot.readListEnd(); } @@ -168810,9 +171045,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 _iter1433 : struct.success) + for (String _iter1457 : struct.success) { - oprot.writeString(_iter1433); + oprot.writeString(_iter1457); } oprot.writeListEnd(); } @@ -168843,9 +171078,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_token_ident if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1434 : struct.success) + for (String _iter1458 : struct.success) { - oprot.writeString(_iter1434); + oprot.writeString(_iter1458); } } } @@ -168857,13 +171092,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 _list1435 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1435.size); - String _elem1436; - for (int _i1437 = 0; _i1437 < _list1435.size; ++_i1437) + org.apache.thrift.protocol.TList _list1459 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1459.size); + String _elem1460; + for (int _i1461 = 0; _i1461 < _list1459.size; ++_i1461) { - _elem1436 = iprot.readString(); - struct.success.add(_elem1436); + _elem1460 = iprot.readString(); + struct.success.add(_elem1460); } } struct.setSuccessIsSet(true); @@ -171893,13 +174128,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 _list1438 = iprot.readListBegin(); - struct.success = new ArrayList(_list1438.size); - String _elem1439; - for (int _i1440 = 0; _i1440 < _list1438.size; ++_i1440) + org.apache.thrift.protocol.TList _list1462 = iprot.readListBegin(); + struct.success = new ArrayList(_list1462.size); + String _elem1463; + for (int _i1464 = 0; _i1464 < _list1462.size; ++_i1464) { - _elem1439 = iprot.readString(); - struct.success.add(_elem1439); + _elem1463 = iprot.readString(); + struct.success.add(_elem1463); } iprot.readListEnd(); } @@ -171925,9 +174160,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 _iter1441 : struct.success) + for (String _iter1465 : struct.success) { - oprot.writeString(_iter1441); + oprot.writeString(_iter1465); } oprot.writeListEnd(); } @@ -171958,9 +174193,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_master_keys_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1442 : struct.success) + for (String _iter1466 : struct.success) { - oprot.writeString(_iter1442); + oprot.writeString(_iter1466); } } } @@ -171972,13 +174207,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 _list1443 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1443.size); - String _elem1444; - for (int _i1445 = 0; _i1445 < _list1443.size; ++_i1445) + org.apache.thrift.protocol.TList _list1467 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1467.size); + String _elem1468; + for (int _i1469 = 0; _i1469 < _list1467.size; ++_i1469) { - _elem1444 = iprot.readString(); - struct.success.add(_elem1444); + _elem1468 = iprot.readString(); + struct.success.add(_elem1468); } } struct.setSuccessIsSet(true); @@ -219552,14 +221787,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_all_vers case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1446 = iprot.readListBegin(); - struct.success = new ArrayList(_list1446.size); - SchemaVersion _elem1447; - for (int _i1448 = 0; _i1448 < _list1446.size; ++_i1448) + org.apache.thrift.protocol.TList _list1470 = iprot.readListBegin(); + struct.success = new ArrayList(_list1470.size); + SchemaVersion _elem1471; + for (int _i1472 = 0; _i1472 < _list1470.size; ++_i1472) { - _elem1447 = new SchemaVersion(); - _elem1447.read(iprot); - struct.success.add(_elem1447); + _elem1471 = new SchemaVersion(); + _elem1471.read(iprot); + struct.success.add(_elem1471); } iprot.readListEnd(); } @@ -219603,9 +221838,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_all_ver oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (SchemaVersion _iter1449 : struct.success) + for (SchemaVersion _iter1473 : struct.success) { - _iter1449.write(oprot); + _iter1473.write(oprot); } oprot.writeListEnd(); } @@ -219652,9 +221887,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_all_vers if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (SchemaVersion _iter1450 : struct.success) + for (SchemaVersion _iter1474 : struct.success) { - _iter1450.write(oprot); + _iter1474.write(oprot); } } } @@ -219672,14 +221907,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_all_versi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1451 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1451.size); - SchemaVersion _elem1452; - for (int _i1453 = 0; _i1453 < _list1451.size; ++_i1453) + org.apache.thrift.protocol.TList _list1475 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1475.size); + SchemaVersion _elem1476; + for (int _i1477 = 0; _i1477 < _list1475.size; ++_i1477) { - _elem1452 = new SchemaVersion(); - _elem1452.read(iprot); - struct.success.add(_elem1452); + _elem1476 = new SchemaVersion(); + _elem1476.read(iprot); + struct.success.add(_elem1476); } } 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 2fc0e00d6c..a7be2ecb67 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 _list800 = iprot.readListBegin(); - struct.pools = new ArrayList(_list800.size); - WMPool _elem801; - for (int _i802 = 0; _i802 < _list800.size; ++_i802) + org.apache.thrift.protocol.TList _list816 = iprot.readListBegin(); + struct.pools = new ArrayList(_list816.size); + WMPool _elem817; + for (int _i818 = 0; _i818 < _list816.size; ++_i818) { - _elem801 = new WMPool(); - _elem801.read(iprot); - struct.pools.add(_elem801); + _elem817 = new WMPool(); + _elem817.read(iprot); + struct.pools.add(_elem817); } 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 _list803 = iprot.readListBegin(); - struct.mappings = new ArrayList(_list803.size); - WMMapping _elem804; - for (int _i805 = 0; _i805 < _list803.size; ++_i805) + org.apache.thrift.protocol.TList _list819 = iprot.readListBegin(); + struct.mappings = new ArrayList(_list819.size); + WMMapping _elem820; + for (int _i821 = 0; _i821 < _list819.size; ++_i821) { - _elem804 = new WMMapping(); - _elem804.read(iprot); - struct.mappings.add(_elem804); + _elem820 = new WMMapping(); + _elem820.read(iprot); + struct.mappings.add(_elem820); } 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 _list806 = iprot.readListBegin(); - struct.triggers = new ArrayList(_list806.size); - WMTrigger _elem807; - for (int _i808 = 0; _i808 < _list806.size; ++_i808) + org.apache.thrift.protocol.TList _list822 = iprot.readListBegin(); + struct.triggers = new ArrayList(_list822.size); + WMTrigger _elem823; + for (int _i824 = 0; _i824 < _list822.size; ++_i824) { - _elem807 = new WMTrigger(); - _elem807.read(iprot); - struct.triggers.add(_elem807); + _elem823 = new WMTrigger(); + _elem823.read(iprot); + struct.triggers.add(_elem823); } 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 _list809 = iprot.readListBegin(); - struct.poolTriggers = new ArrayList(_list809.size); - WMPoolTrigger _elem810; - for (int _i811 = 0; _i811 < _list809.size; ++_i811) + org.apache.thrift.protocol.TList _list825 = iprot.readListBegin(); + struct.poolTriggers = new ArrayList(_list825.size); + WMPoolTrigger _elem826; + for (int _i827 = 0; _i827 < _list825.size; ++_i827) { - _elem810 = new WMPoolTrigger(); - _elem810.read(iprot); - struct.poolTriggers.add(_elem810); + _elem826 = new WMPoolTrigger(); + _elem826.read(iprot); + struct.poolTriggers.add(_elem826); } 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 _iter812 : struct.pools) + for (WMPool _iter828 : struct.pools) { - _iter812.write(oprot); + _iter828.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 _iter813 : struct.mappings) + for (WMMapping _iter829 : struct.mappings) { - _iter813.write(oprot); + _iter829.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 _iter814 : struct.triggers) + for (WMTrigger _iter830 : struct.triggers) { - _iter814.write(oprot); + _iter830.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 _iter815 : struct.poolTriggers) + for (WMPoolTrigger _iter831 : struct.poolTriggers) { - _iter815.write(oprot); + _iter831.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 _iter816 : struct.pools) + for (WMPool _iter832 : struct.pools) { - _iter816.write(oprot); + _iter832.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 _iter817 : struct.mappings) + for (WMMapping _iter833 : struct.mappings) { - _iter817.write(oprot); + _iter833.write(oprot); } } } if (struct.isSetTriggers()) { { oprot.writeI32(struct.triggers.size()); - for (WMTrigger _iter818 : struct.triggers) + for (WMTrigger _iter834 : struct.triggers) { - _iter818.write(oprot); + _iter834.write(oprot); } } } if (struct.isSetPoolTriggers()) { { oprot.writeI32(struct.poolTriggers.size()); - for (WMPoolTrigger _iter819 : struct.poolTriggers) + for (WMPoolTrigger _iter835 : struct.poolTriggers) { - _iter819.write(oprot); + _iter835.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 _list820 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.pools = new ArrayList(_list820.size); - WMPool _elem821; - for (int _i822 = 0; _i822 < _list820.size; ++_i822) + org.apache.thrift.protocol.TList _list836 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.pools = new ArrayList(_list836.size); + WMPool _elem837; + for (int _i838 = 0; _i838 < _list836.size; ++_i838) { - _elem821 = new WMPool(); - _elem821.read(iprot); - struct.pools.add(_elem821); + _elem837 = new WMPool(); + _elem837.read(iprot); + struct.pools.add(_elem837); } } struct.setPoolsIsSet(true); BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list823 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.mappings = new ArrayList(_list823.size); - WMMapping _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.STRUCT, iprot.readI32()); + struct.mappings = new ArrayList(_list839.size); + WMMapping _elem840; + for (int _i841 = 0; _i841 < _list839.size; ++_i841) { - _elem824 = new WMMapping(); - _elem824.read(iprot); - struct.mappings.add(_elem824); + _elem840 = new WMMapping(); + _elem840.read(iprot); + struct.mappings.add(_elem840); } } struct.setMappingsIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list826 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.triggers = new ArrayList(_list826.size); - WMTrigger _elem827; - for (int _i828 = 0; _i828 < _list826.size; ++_i828) + org.apache.thrift.protocol.TList _list842 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.triggers = new ArrayList(_list842.size); + WMTrigger _elem843; + for (int _i844 = 0; _i844 < _list842.size; ++_i844) { - _elem827 = new WMTrigger(); - _elem827.read(iprot); - struct.triggers.add(_elem827); + _elem843 = new WMTrigger(); + _elem843.read(iprot); + struct.triggers.add(_elem843); } } struct.setTriggersIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list829 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.poolTriggers = new ArrayList(_list829.size); - WMPoolTrigger _elem830; - for (int _i831 = 0; _i831 < _list829.size; ++_i831) + org.apache.thrift.protocol.TList _list845 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.poolTriggers = new ArrayList(_list845.size); + WMPoolTrigger _elem846; + for (int _i847 = 0; _i847 < _list845.size; ++_i847) { - _elem830 = new WMPoolTrigger(); - _elem830.read(iprot); - struct.poolTriggers.add(_elem830); + _elem846 = new WMPoolTrigger(); + _elem846.read(iprot); + struct.poolTriggers.add(_elem846); } } 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 0ddb2b2dff..d931b47790 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 _list832 = iprot.readListBegin(); - struct.resourcePlans = new ArrayList(_list832.size); - WMResourcePlan _elem833; - for (int _i834 = 0; _i834 < _list832.size; ++_i834) + org.apache.thrift.protocol.TList _list848 = iprot.readListBegin(); + struct.resourcePlans = new ArrayList(_list848.size); + WMResourcePlan _elem849; + for (int _i850 = 0; _i850 < _list848.size; ++_i850) { - _elem833 = new WMResourcePlan(); - _elem833.read(iprot); - struct.resourcePlans.add(_elem833); + _elem849 = new WMResourcePlan(); + _elem849.read(iprot); + struct.resourcePlans.add(_elem849); } 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 _iter835 : struct.resourcePlans) + for (WMResourcePlan _iter851 : struct.resourcePlans) { - _iter835.write(oprot); + _iter851.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 _iter836 : struct.resourcePlans) + for (WMResourcePlan _iter852 : struct.resourcePlans) { - _iter836.write(oprot); + _iter852.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 _list837 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.resourcePlans = new ArrayList(_list837.size); - WMResourcePlan _elem838; - for (int _i839 = 0; _i839 < _list837.size; ++_i839) + org.apache.thrift.protocol.TList _list853 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.resourcePlans = new ArrayList(_list853.size); + WMResourcePlan _elem854; + for (int _i855 = 0; _i855 < _list853.size; ++_i855) { - _elem838 = new WMResourcePlan(); - _elem838.read(iprot); - struct.resourcePlans.add(_elem838); + _elem854 = new WMResourcePlan(); + _elem854.read(iprot); + struct.resourcePlans.add(_elem854); } } 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 93fa2b7ee9..a674db2a80 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 _list856 = iprot.readListBegin(); - struct.triggers = new ArrayList(_list856.size); - WMTrigger _elem857; - for (int _i858 = 0; _i858 < _list856.size; ++_i858) + org.apache.thrift.protocol.TList _list872 = iprot.readListBegin(); + struct.triggers = new ArrayList(_list872.size); + WMTrigger _elem873; + for (int _i874 = 0; _i874 < _list872.size; ++_i874) { - _elem857 = new WMTrigger(); - _elem857.read(iprot); - struct.triggers.add(_elem857); + _elem873 = new WMTrigger(); + _elem873.read(iprot); + struct.triggers.add(_elem873); } 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 _iter859 : struct.triggers) + for (WMTrigger _iter875 : struct.triggers) { - _iter859.write(oprot); + _iter875.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 _iter860 : struct.triggers) + for (WMTrigger _iter876 : struct.triggers) { - _iter860.write(oprot); + _iter876.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 _list861 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.triggers = new ArrayList(_list861.size); - WMTrigger _elem862; - for (int _i863 = 0; _i863 < _list861.size; ++_i863) + org.apache.thrift.protocol.TList _list877 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.triggers = new ArrayList(_list877.size); + WMTrigger _elem878; + for (int _i879 = 0; _i879 < _list877.size; ++_i879) { - _elem862 = new WMTrigger(); - _elem862.read(iprot); - struct.triggers.add(_elem862); + _elem878 = new WMTrigger(); + _elem878.read(iprot); + struct.triggers.add(_elem878); } } 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 97d33c1da4..db1195843d 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 _list840 = iprot.readListBegin(); - struct.errors = new ArrayList(_list840.size); - String _elem841; - for (int _i842 = 0; _i842 < _list840.size; ++_i842) + org.apache.thrift.protocol.TList _list856 = iprot.readListBegin(); + struct.errors = new ArrayList(_list856.size); + String _elem857; + for (int _i858 = 0; _i858 < _list856.size; ++_i858) { - _elem841 = iprot.readString(); - struct.errors.add(_elem841); + _elem857 = iprot.readString(); + struct.errors.add(_elem857); } 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 _list843 = iprot.readListBegin(); - struct.warnings = new ArrayList(_list843.size); - String _elem844; - for (int _i845 = 0; _i845 < _list843.size; ++_i845) + org.apache.thrift.protocol.TList _list859 = iprot.readListBegin(); + struct.warnings = new ArrayList(_list859.size); + String _elem860; + for (int _i861 = 0; _i861 < _list859.size; ++_i861) { - _elem844 = iprot.readString(); - struct.warnings.add(_elem844); + _elem860 = iprot.readString(); + struct.warnings.add(_elem860); } 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 _iter846 : struct.errors) + for (String _iter862 : struct.errors) { - oprot.writeString(_iter846); + oprot.writeString(_iter862); } 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 _iter847 : struct.warnings) + for (String _iter863 : struct.warnings) { - oprot.writeString(_iter847); + oprot.writeString(_iter863); } 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 _iter848 : struct.errors) + for (String _iter864 : struct.errors) { - oprot.writeString(_iter848); + oprot.writeString(_iter864); } } } if (struct.isSetWarnings()) { { oprot.writeI32(struct.warnings.size()); - for (String _iter849 : struct.warnings) + for (String _iter865 : struct.warnings) { - oprot.writeString(_iter849); + oprot.writeString(_iter865); } } } @@ -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 _list850 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.errors = new ArrayList(_list850.size); - String _elem851; - for (int _i852 = 0; _i852 < _list850.size; ++_i852) + org.apache.thrift.protocol.TList _list866 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.errors = new ArrayList(_list866.size); + String _elem867; + for (int _i868 = 0; _i868 < _list866.size; ++_i868) { - _elem851 = iprot.readString(); - struct.errors.add(_elem851); + _elem867 = iprot.readString(); + struct.errors.add(_elem867); } } struct.setErrorsIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list853 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.warnings = new ArrayList(_list853.size); - String _elem854; - for (int _i855 = 0; _i855 < _list853.size; ++_i855) + org.apache.thrift.protocol.TList _list869 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.warnings = new ArrayList(_list869.size); + String _elem870; + for (int _i871 = 0; _i871 < _list869.size; ++_i871) { - _elem854 = iprot.readString(); - struct.warnings.add(_elem854); + _elem870 = iprot.readString(); + struct.warnings.add(_elem870); } } 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 efe693a65e..d00d11be3e 100644 --- a/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ b/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -163,12 +163,13 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { * @param \metastore\SQLUniqueConstraint[] $uniqueConstraints * @param \metastore\SQLNotNullConstraint[] $notNullConstraints * @param \metastore\SQLDefaultConstraint[] $defaultConstraints + * @param \metastore\SQLCheckConstraint[] $checkConstraints * @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, array $defaultConstraints); + public function create_table_with_constraints(\metastore\Table $tbl, array $primaryKeys, array $foreignKeys, array $uniqueConstraints, array $notNullConstraints, array $defaultConstraints, array $checkConstraints); /** * @param \metastore\DropConstraintRequest $req * @throws \metastore\NoSuchObjectException @@ -205,6 +206,12 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { * @throws \metastore\MetaException */ public function add_default_constraint(\metastore\AddDefaultConstraintRequest $req); + /** + * @param \metastore\AddCheckConstraintRequest $req + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function add_check_constraint(\metastore\AddCheckConstraintRequest $req); /** * @param string $dbname * @param string $name @@ -787,6 +794,13 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { * @throws \metastore\NoSuchObjectException */ public function get_default_constraints(\metastore\DefaultConstraintsRequest $request); + /** + * @param \metastore\CheckConstraintsRequest $request + * @return \metastore\CheckConstraintsResponse + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ + public function get_check_constraints(\metastore\CheckConstraintsRequest $request); /** * @param \metastore\ColumnStatistics $stats_obj * @return bool @@ -2516,13 +2530,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, array $defaultConstraints) + public function create_table_with_constraints(\metastore\Table $tbl, array $primaryKeys, array $foreignKeys, array $uniqueConstraints, array $notNullConstraints, array $defaultConstraints, array $checkConstraints) { - $this->send_create_table_with_constraints($tbl, $primaryKeys, $foreignKeys, $uniqueConstraints, $notNullConstraints, $defaultConstraints); + $this->send_create_table_with_constraints($tbl, $primaryKeys, $foreignKeys, $uniqueConstraints, $notNullConstraints, $defaultConstraints, $checkConstraints); $this->recv_create_table_with_constraints(); } - public function send_create_table_with_constraints(\metastore\Table $tbl, array $primaryKeys, array $foreignKeys, array $uniqueConstraints, array $notNullConstraints, array $defaultConstraints) + public function send_create_table_with_constraints(\metastore\Table $tbl, array $primaryKeys, array $foreignKeys, array $uniqueConstraints, array $notNullConstraints, array $defaultConstraints, array $checkConstraints) { $args = new \metastore\ThriftHiveMetastore_create_table_with_constraints_args(); $args->tbl = $tbl; @@ -2531,6 +2545,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->uniqueConstraints = $uniqueConstraints; $args->notNullConstraints = $notNullConstraints; $args->defaultConstraints = $defaultConstraints; + $args->checkConstraints = $checkConstraints; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { @@ -2905,6 +2920,60 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas return; } + public function add_check_constraint(\metastore\AddCheckConstraintRequest $req) + { + $this->send_add_check_constraint($req); + $this->recv_add_check_constraint(); + } + + public function send_add_check_constraint(\metastore\AddCheckConstraintRequest $req) + { + $args = new \metastore\ThriftHiveMetastore_add_check_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_check_constraint', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('add_check_constraint', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_add_check_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_check_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_check_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); @@ -6787,6 +6856,63 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_default_constraints failed: unknown result"); } + public function get_check_constraints(\metastore\CheckConstraintsRequest $request) + { + $this->send_get_check_constraints($request); + return $this->recv_get_check_constraints(); + } + + public function send_get_check_constraints(\metastore\CheckConstraintsRequest $request) + { + $args = new \metastore\ThriftHiveMetastore_get_check_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_check_constraints', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_check_constraints', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_check_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_check_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_check_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_check_constraints failed: unknown result"); + } + public function update_table_column_statistics(\metastore\ColumnStatistics $stats_obj) { $this->send_update_table_column_statistics($stats_obj); @@ -13660,14 +13786,14 @@ class ThriftHiveMetastore_get_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size778 = 0; - $_etype781 = 0; - $xfer += $input->readListBegin($_etype781, $_size778); - for ($_i782 = 0; $_i782 < $_size778; ++$_i782) + $_size792 = 0; + $_etype795 = 0; + $xfer += $input->readListBegin($_etype795, $_size792); + for ($_i796 = 0; $_i796 < $_size792; ++$_i796) { - $elem783 = null; - $xfer += $input->readString($elem783); - $this->success []= $elem783; + $elem797 = null; + $xfer += $input->readString($elem797); + $this->success []= $elem797; } $xfer += $input->readListEnd(); } else { @@ -13703,9 +13829,9 @@ class ThriftHiveMetastore_get_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter784) + foreach ($this->success as $iter798) { - $xfer += $output->writeString($iter784); + $xfer += $output->writeString($iter798); } } $output->writeListEnd(); @@ -13836,14 +13962,14 @@ class ThriftHiveMetastore_get_all_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size785 = 0; - $_etype788 = 0; - $xfer += $input->readListBegin($_etype788, $_size785); - for ($_i789 = 0; $_i789 < $_size785; ++$_i789) + $_size799 = 0; + $_etype802 = 0; + $xfer += $input->readListBegin($_etype802, $_size799); + for ($_i803 = 0; $_i803 < $_size799; ++$_i803) { - $elem790 = null; - $xfer += $input->readString($elem790); - $this->success []= $elem790; + $elem804 = null; + $xfer += $input->readString($elem804); + $this->success []= $elem804; } $xfer += $input->readListEnd(); } else { @@ -13879,9 +14005,9 @@ class ThriftHiveMetastore_get_all_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter791) + foreach ($this->success as $iter805) { - $xfer += $output->writeString($iter791); + $xfer += $output->writeString($iter805); } } $output->writeListEnd(); @@ -14882,18 +15008,18 @@ class ThriftHiveMetastore_get_type_all_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size792 = 0; - $_ktype793 = 0; - $_vtype794 = 0; - $xfer += $input->readMapBegin($_ktype793, $_vtype794, $_size792); - for ($_i796 = 0; $_i796 < $_size792; ++$_i796) + $_size806 = 0; + $_ktype807 = 0; + $_vtype808 = 0; + $xfer += $input->readMapBegin($_ktype807, $_vtype808, $_size806); + for ($_i810 = 0; $_i810 < $_size806; ++$_i810) { - $key797 = ''; - $val798 = new \metastore\Type(); - $xfer += $input->readString($key797); - $val798 = new \metastore\Type(); - $xfer += $val798->read($input); - $this->success[$key797] = $val798; + $key811 = ''; + $val812 = new \metastore\Type(); + $xfer += $input->readString($key811); + $val812 = new \metastore\Type(); + $xfer += $val812->read($input); + $this->success[$key811] = $val812; } $xfer += $input->readMapEnd(); } else { @@ -14929,10 +15055,10 @@ class ThriftHiveMetastore_get_type_all_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter799 => $viter800) + foreach ($this->success as $kiter813 => $viter814) { - $xfer += $output->writeString($kiter799); - $xfer += $viter800->write($output); + $xfer += $output->writeString($kiter813); + $xfer += $viter814->write($output); } } $output->writeMapEnd(); @@ -15136,15 +15262,15 @@ class ThriftHiveMetastore_get_fields_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size801 = 0; - $_etype804 = 0; - $xfer += $input->readListBegin($_etype804, $_size801); - for ($_i805 = 0; $_i805 < $_size801; ++$_i805) + $_size815 = 0; + $_etype818 = 0; + $xfer += $input->readListBegin($_etype818, $_size815); + for ($_i819 = 0; $_i819 < $_size815; ++$_i819) { - $elem806 = null; - $elem806 = new \metastore\FieldSchema(); - $xfer += $elem806->read($input); - $this->success []= $elem806; + $elem820 = null; + $elem820 = new \metastore\FieldSchema(); + $xfer += $elem820->read($input); + $this->success []= $elem820; } $xfer += $input->readListEnd(); } else { @@ -15196,9 +15322,9 @@ class ThriftHiveMetastore_get_fields_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter807) + foreach ($this->success as $iter821) { - $xfer += $iter807->write($output); + $xfer += $iter821->write($output); } } $output->writeListEnd(); @@ -15440,15 +15566,15 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size808 = 0; - $_etype811 = 0; - $xfer += $input->readListBegin($_etype811, $_size808); - for ($_i812 = 0; $_i812 < $_size808; ++$_i812) + $_size822 = 0; + $_etype825 = 0; + $xfer += $input->readListBegin($_etype825, $_size822); + for ($_i826 = 0; $_i826 < $_size822; ++$_i826) { - $elem813 = null; - $elem813 = new \metastore\FieldSchema(); - $xfer += $elem813->read($input); - $this->success []= $elem813; + $elem827 = null; + $elem827 = new \metastore\FieldSchema(); + $xfer += $elem827->read($input); + $this->success []= $elem827; } $xfer += $input->readListEnd(); } else { @@ -15500,9 +15626,9 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter814) + foreach ($this->success as $iter828) { - $xfer += $iter814->write($output); + $xfer += $iter828->write($output); } } $output->writeListEnd(); @@ -15716,15 +15842,15 @@ class ThriftHiveMetastore_get_schema_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size815 = 0; - $_etype818 = 0; - $xfer += $input->readListBegin($_etype818, $_size815); - for ($_i819 = 0; $_i819 < $_size815; ++$_i819) + $_size829 = 0; + $_etype832 = 0; + $xfer += $input->readListBegin($_etype832, $_size829); + for ($_i833 = 0; $_i833 < $_size829; ++$_i833) { - $elem820 = null; - $elem820 = new \metastore\FieldSchema(); - $xfer += $elem820->read($input); - $this->success []= $elem820; + $elem834 = null; + $elem834 = new \metastore\FieldSchema(); + $xfer += $elem834->read($input); + $this->success []= $elem834; } $xfer += $input->readListEnd(); } else { @@ -15776,9 +15902,9 @@ class ThriftHiveMetastore_get_schema_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter821) + foreach ($this->success as $iter835) { - $xfer += $iter821->write($output); + $xfer += $iter835->write($output); } } $output->writeListEnd(); @@ -16020,15 +16146,15 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size822 = 0; - $_etype825 = 0; - $xfer += $input->readListBegin($_etype825, $_size822); - for ($_i826 = 0; $_i826 < $_size822; ++$_i826) + $_size836 = 0; + $_etype839 = 0; + $xfer += $input->readListBegin($_etype839, $_size836); + for ($_i840 = 0; $_i840 < $_size836; ++$_i840) { - $elem827 = null; - $elem827 = new \metastore\FieldSchema(); - $xfer += $elem827->read($input); - $this->success []= $elem827; + $elem841 = null; + $elem841 = new \metastore\FieldSchema(); + $xfer += $elem841->read($input); + $this->success []= $elem841; } $xfer += $input->readListEnd(); } else { @@ -16080,9 +16206,9 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter828) + foreach ($this->success as $iter842) { - $xfer += $iter828->write($output); + $xfer += $iter842->write($output); } } $output->writeListEnd(); @@ -16630,6 +16756,10 @@ class ThriftHiveMetastore_create_table_with_constraints_args { * @var \metastore\SQLDefaultConstraint[] */ public $defaultConstraints = null; + /** + * @var \metastore\SQLCheckConstraint[] + */ + public $checkConstraints = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -16684,6 +16814,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { 'class' => '\metastore\SQLDefaultConstraint', ), ), + 7 => array( + 'var' => 'checkConstraints', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\SQLCheckConstraint', + ), + ), ); } if (is_array($vals)) { @@ -16705,6 +16844,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { if (isset($vals['defaultConstraints'])) { $this->defaultConstraints = $vals['defaultConstraints']; } + if (isset($vals['checkConstraints'])) { + $this->checkConstraints = $vals['checkConstraints']; + } } } @@ -16738,15 +16880,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 2: if ($ftype == TType::LST) { $this->primaryKeys = array(); - $_size829 = 0; - $_etype832 = 0; - $xfer += $input->readListBegin($_etype832, $_size829); - for ($_i833 = 0; $_i833 < $_size829; ++$_i833) + $_size843 = 0; + $_etype846 = 0; + $xfer += $input->readListBegin($_etype846, $_size843); + for ($_i847 = 0; $_i847 < $_size843; ++$_i847) { - $elem834 = null; - $elem834 = new \metastore\SQLPrimaryKey(); - $xfer += $elem834->read($input); - $this->primaryKeys []= $elem834; + $elem848 = null; + $elem848 = new \metastore\SQLPrimaryKey(); + $xfer += $elem848->read($input); + $this->primaryKeys []= $elem848; } $xfer += $input->readListEnd(); } else { @@ -16756,15 +16898,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 3: if ($ftype == TType::LST) { $this->foreignKeys = array(); - $_size835 = 0; - $_etype838 = 0; - $xfer += $input->readListBegin($_etype838, $_size835); - for ($_i839 = 0; $_i839 < $_size835; ++$_i839) + $_size849 = 0; + $_etype852 = 0; + $xfer += $input->readListBegin($_etype852, $_size849); + for ($_i853 = 0; $_i853 < $_size849; ++$_i853) { - $elem840 = null; - $elem840 = new \metastore\SQLForeignKey(); - $xfer += $elem840->read($input); - $this->foreignKeys []= $elem840; + $elem854 = null; + $elem854 = new \metastore\SQLForeignKey(); + $xfer += $elem854->read($input); + $this->foreignKeys []= $elem854; } $xfer += $input->readListEnd(); } else { @@ -16774,15 +16916,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 4: if ($ftype == TType::LST) { $this->uniqueConstraints = array(); - $_size841 = 0; - $_etype844 = 0; - $xfer += $input->readListBegin($_etype844, $_size841); - for ($_i845 = 0; $_i845 < $_size841; ++$_i845) + $_size855 = 0; + $_etype858 = 0; + $xfer += $input->readListBegin($_etype858, $_size855); + for ($_i859 = 0; $_i859 < $_size855; ++$_i859) { - $elem846 = null; - $elem846 = new \metastore\SQLUniqueConstraint(); - $xfer += $elem846->read($input); - $this->uniqueConstraints []= $elem846; + $elem860 = null; + $elem860 = new \metastore\SQLUniqueConstraint(); + $xfer += $elem860->read($input); + $this->uniqueConstraints []= $elem860; } $xfer += $input->readListEnd(); } else { @@ -16792,15 +16934,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 5: if ($ftype == TType::LST) { $this->notNullConstraints = array(); - $_size847 = 0; - $_etype850 = 0; - $xfer += $input->readListBegin($_etype850, $_size847); - for ($_i851 = 0; $_i851 < $_size847; ++$_i851) + $_size861 = 0; + $_etype864 = 0; + $xfer += $input->readListBegin($_etype864, $_size861); + for ($_i865 = 0; $_i865 < $_size861; ++$_i865) { - $elem852 = null; - $elem852 = new \metastore\SQLNotNullConstraint(); - $xfer += $elem852->read($input); - $this->notNullConstraints []= $elem852; + $elem866 = null; + $elem866 = new \metastore\SQLNotNullConstraint(); + $xfer += $elem866->read($input); + $this->notNullConstraints []= $elem866; } $xfer += $input->readListEnd(); } else { @@ -16810,15 +16952,33 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 6: if ($ftype == TType::LST) { $this->defaultConstraints = array(); - $_size853 = 0; - $_etype856 = 0; - $xfer += $input->readListBegin($_etype856, $_size853); - for ($_i857 = 0; $_i857 < $_size853; ++$_i857) + $_size867 = 0; + $_etype870 = 0; + $xfer += $input->readListBegin($_etype870, $_size867); + for ($_i871 = 0; $_i871 < $_size867; ++$_i871) + { + $elem872 = null; + $elem872 = new \metastore\SQLDefaultConstraint(); + $xfer += $elem872->read($input); + $this->defaultConstraints []= $elem872; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 7: + if ($ftype == TType::LST) { + $this->checkConstraints = array(); + $_size873 = 0; + $_etype876 = 0; + $xfer += $input->readListBegin($_etype876, $_size873); + for ($_i877 = 0; $_i877 < $_size873; ++$_i877) { - $elem858 = null; - $elem858 = new \metastore\SQLDefaultConstraint(); - $xfer += $elem858->read($input); - $this->defaultConstraints []= $elem858; + $elem878 = null; + $elem878 = new \metastore\SQLCheckConstraint(); + $xfer += $elem878->read($input); + $this->checkConstraints []= $elem878; } $xfer += $input->readListEnd(); } else { @@ -16854,9 +17014,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->primaryKeys)); { - foreach ($this->primaryKeys as $iter859) + foreach ($this->primaryKeys as $iter879) { - $xfer += $iter859->write($output); + $xfer += $iter879->write($output); } } $output->writeListEnd(); @@ -16871,9 +17031,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->foreignKeys)); { - foreach ($this->foreignKeys as $iter860) + foreach ($this->foreignKeys as $iter880) { - $xfer += $iter860->write($output); + $xfer += $iter880->write($output); } } $output->writeListEnd(); @@ -16888,9 +17048,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->uniqueConstraints)); { - foreach ($this->uniqueConstraints as $iter861) + foreach ($this->uniqueConstraints as $iter881) { - $xfer += $iter861->write($output); + $xfer += $iter881->write($output); } } $output->writeListEnd(); @@ -16905,9 +17065,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->notNullConstraints)); { - foreach ($this->notNullConstraints as $iter862) + foreach ($this->notNullConstraints as $iter882) { - $xfer += $iter862->write($output); + $xfer += $iter882->write($output); } } $output->writeListEnd(); @@ -16922,9 +17082,26 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->defaultConstraints)); { - foreach ($this->defaultConstraints as $iter863) + foreach ($this->defaultConstraints as $iter883) { - $xfer += $iter863->write($output); + $xfer += $iter883->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->checkConstraints !== null) { + if (!is_array($this->checkConstraints)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('checkConstraints', TType::LST, 7); + { + $output->writeListBegin(TType::STRUCT, count($this->checkConstraints)); + { + foreach ($this->checkConstraints as $iter884) + { + $xfer += $iter884->write($output); } } $output->writeListEnd(); @@ -18182,54 +18359,33 @@ class ThriftHiveMetastore_add_default_constraint_result { } -class ThriftHiveMetastore_drop_table_args { +class ThriftHiveMetastore_add_check_constraint_args { static $_TSPEC; /** - * @var string - */ - public $dbname = null; - /** - * @var string - */ - public $name = null; - /** - * @var bool + * @var \metastore\AddCheckConstraintRequest */ - 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\AddCheckConstraintRequest', ), ); } 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_check_constraint_args'; } public function read($input) @@ -18248,22 +18404,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\AddCheckConstraintRequest(); + $xfer += $this->req->read($input); } else { $xfer += $input->skip($ftype); } @@ -18280,20 +18423,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_check_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(); @@ -18303,7 +18439,7 @@ class ThriftHiveMetastore_drop_table_args { } -class ThriftHiveMetastore_drop_table_result { +class ThriftHiveMetastore_add_check_constraint_result { static $_TSPEC; /** @@ -18313,7 +18449,7 @@ class ThriftHiveMetastore_drop_table_result { /** * @var \metastore\MetaException */ - public $o3 = null; + public $o2 = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -18324,7 +18460,7 @@ class ThriftHiveMetastore_drop_table_result { 'class' => '\metastore\NoSuchObjectException', ), 2 => array( - 'var' => 'o3', + 'var' => 'o2', 'type' => TType::STRUCT, 'class' => '\metastore\MetaException', ), @@ -18334,14 +18470,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_check_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_check_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) @@ -18742,14 +19101,14 @@ class ThriftHiveMetastore_truncate_table_args { case 3: if ($ftype == TType::LST) { $this->partNames = array(); - $_size864 = 0; - $_etype867 = 0; - $xfer += $input->readListBegin($_etype867, $_size864); - for ($_i868 = 0; $_i868 < $_size864; ++$_i868) + $_size885 = 0; + $_etype888 = 0; + $xfer += $input->readListBegin($_etype888, $_size885); + for ($_i889 = 0; $_i889 < $_size885; ++$_i889) { - $elem869 = null; - $xfer += $input->readString($elem869); - $this->partNames []= $elem869; + $elem890 = null; + $xfer += $input->readString($elem890); + $this->partNames []= $elem890; } $xfer += $input->readListEnd(); } else { @@ -18787,9 +19146,9 @@ class ThriftHiveMetastore_truncate_table_args { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter870) + foreach ($this->partNames as $iter891) { - $xfer += $output->writeString($iter870); + $xfer += $output->writeString($iter891); } } $output->writeListEnd(); @@ -19040,14 +19399,14 @@ class ThriftHiveMetastore_get_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size871 = 0; - $_etype874 = 0; - $xfer += $input->readListBegin($_etype874, $_size871); - for ($_i875 = 0; $_i875 < $_size871; ++$_i875) + $_size892 = 0; + $_etype895 = 0; + $xfer += $input->readListBegin($_etype895, $_size892); + for ($_i896 = 0; $_i896 < $_size892; ++$_i896) { - $elem876 = null; - $xfer += $input->readString($elem876); - $this->success []= $elem876; + $elem897 = null; + $xfer += $input->readString($elem897); + $this->success []= $elem897; } $xfer += $input->readListEnd(); } else { @@ -19083,9 +19442,9 @@ class ThriftHiveMetastore_get_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter877) + foreach ($this->success as $iter898) { - $xfer += $output->writeString($iter877); + $xfer += $output->writeString($iter898); } } $output->writeListEnd(); @@ -19287,14 +19646,14 @@ class ThriftHiveMetastore_get_tables_by_type_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size878 = 0; - $_etype881 = 0; - $xfer += $input->readListBegin($_etype881, $_size878); - for ($_i882 = 0; $_i882 < $_size878; ++$_i882) + $_size899 = 0; + $_etype902 = 0; + $xfer += $input->readListBegin($_etype902, $_size899); + for ($_i903 = 0; $_i903 < $_size899; ++$_i903) { - $elem883 = null; - $xfer += $input->readString($elem883); - $this->success []= $elem883; + $elem904 = null; + $xfer += $input->readString($elem904); + $this->success []= $elem904; } $xfer += $input->readListEnd(); } else { @@ -19330,9 +19689,9 @@ class ThriftHiveMetastore_get_tables_by_type_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter884) + foreach ($this->success as $iter905) { - $xfer += $output->writeString($iter884); + $xfer += $output->writeString($iter905); } } $output->writeListEnd(); @@ -19488,14 +19847,14 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size885 = 0; - $_etype888 = 0; - $xfer += $input->readListBegin($_etype888, $_size885); - for ($_i889 = 0; $_i889 < $_size885; ++$_i889) + $_size906 = 0; + $_etype909 = 0; + $xfer += $input->readListBegin($_etype909, $_size906); + for ($_i910 = 0; $_i910 < $_size906; ++$_i910) { - $elem890 = null; - $xfer += $input->readString($elem890); - $this->success []= $elem890; + $elem911 = null; + $xfer += $input->readString($elem911); + $this->success []= $elem911; } $xfer += $input->readListEnd(); } else { @@ -19531,9 +19890,9 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter891) + foreach ($this->success as $iter912) { - $xfer += $output->writeString($iter891); + $xfer += $output->writeString($iter912); } } $output->writeListEnd(); @@ -19638,14 +19997,14 @@ class ThriftHiveMetastore_get_table_meta_args { case 3: if ($ftype == TType::LST) { $this->tbl_types = array(); - $_size892 = 0; - $_etype895 = 0; - $xfer += $input->readListBegin($_etype895, $_size892); - for ($_i896 = 0; $_i896 < $_size892; ++$_i896) + $_size913 = 0; + $_etype916 = 0; + $xfer += $input->readListBegin($_etype916, $_size913); + for ($_i917 = 0; $_i917 < $_size913; ++$_i917) { - $elem897 = null; - $xfer += $input->readString($elem897); - $this->tbl_types []= $elem897; + $elem918 = null; + $xfer += $input->readString($elem918); + $this->tbl_types []= $elem918; } $xfer += $input->readListEnd(); } else { @@ -19683,9 +20042,9 @@ class ThriftHiveMetastore_get_table_meta_args { { $output->writeListBegin(TType::STRING, count($this->tbl_types)); { - foreach ($this->tbl_types as $iter898) + foreach ($this->tbl_types as $iter919) { - $xfer += $output->writeString($iter898); + $xfer += $output->writeString($iter919); } } $output->writeListEnd(); @@ -19762,15 +20121,15 @@ class ThriftHiveMetastore_get_table_meta_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size899 = 0; - $_etype902 = 0; - $xfer += $input->readListBegin($_etype902, $_size899); - for ($_i903 = 0; $_i903 < $_size899; ++$_i903) + $_size920 = 0; + $_etype923 = 0; + $xfer += $input->readListBegin($_etype923, $_size920); + for ($_i924 = 0; $_i924 < $_size920; ++$_i924) { - $elem904 = null; - $elem904 = new \metastore\TableMeta(); - $xfer += $elem904->read($input); - $this->success []= $elem904; + $elem925 = null; + $elem925 = new \metastore\TableMeta(); + $xfer += $elem925->read($input); + $this->success []= $elem925; } $xfer += $input->readListEnd(); } else { @@ -19806,9 +20165,9 @@ class ThriftHiveMetastore_get_table_meta_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter905) + foreach ($this->success as $iter926) { - $xfer += $iter905->write($output); + $xfer += $iter926->write($output); } } $output->writeListEnd(); @@ -19964,14 +20323,14 @@ class ThriftHiveMetastore_get_all_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size906 = 0; - $_etype909 = 0; - $xfer += $input->readListBegin($_etype909, $_size906); - for ($_i910 = 0; $_i910 < $_size906; ++$_i910) + $_size927 = 0; + $_etype930 = 0; + $xfer += $input->readListBegin($_etype930, $_size927); + for ($_i931 = 0; $_i931 < $_size927; ++$_i931) { - $elem911 = null; - $xfer += $input->readString($elem911); - $this->success []= $elem911; + $elem932 = null; + $xfer += $input->readString($elem932); + $this->success []= $elem932; } $xfer += $input->readListEnd(); } else { @@ -20007,9 +20366,9 @@ class ThriftHiveMetastore_get_all_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter912) + foreach ($this->success as $iter933) { - $xfer += $output->writeString($iter912); + $xfer += $output->writeString($iter933); } } $output->writeListEnd(); @@ -20324,14 +20683,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = array(); - $_size913 = 0; - $_etype916 = 0; - $xfer += $input->readListBegin($_etype916, $_size913); - for ($_i917 = 0; $_i917 < $_size913; ++$_i917) + $_size934 = 0; + $_etype937 = 0; + $xfer += $input->readListBegin($_etype937, $_size934); + for ($_i938 = 0; $_i938 < $_size934; ++$_i938) { - $elem918 = null; - $xfer += $input->readString($elem918); - $this->tbl_names []= $elem918; + $elem939 = null; + $xfer += $input->readString($elem939); + $this->tbl_names []= $elem939; } $xfer += $input->readListEnd(); } else { @@ -20364,9 +20723,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter919) + foreach ($this->tbl_names as $iter940) { - $xfer += $output->writeString($iter919); + $xfer += $output->writeString($iter940); } } $output->writeListEnd(); @@ -20431,15 +20790,15 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size920 = 0; - $_etype923 = 0; - $xfer += $input->readListBegin($_etype923, $_size920); - for ($_i924 = 0; $_i924 < $_size920; ++$_i924) + $_size941 = 0; + $_etype944 = 0; + $xfer += $input->readListBegin($_etype944, $_size941); + for ($_i945 = 0; $_i945 < $_size941; ++$_i945) { - $elem925 = null; - $elem925 = new \metastore\Table(); - $xfer += $elem925->read($input); - $this->success []= $elem925; + $elem946 = null; + $elem946 = new \metastore\Table(); + $xfer += $elem946->read($input); + $this->success []= $elem946; } $xfer += $input->readListEnd(); } else { @@ -20467,9 +20826,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter926) + foreach ($this->success as $iter947) { - $xfer += $iter926->write($output); + $xfer += $iter947->write($output); } } $output->writeListEnd(); @@ -20996,14 +21355,14 @@ class ThriftHiveMetastore_get_materialization_invalidation_info_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = array(); - $_size927 = 0; - $_etype930 = 0; - $xfer += $input->readListBegin($_etype930, $_size927); - for ($_i931 = 0; $_i931 < $_size927; ++$_i931) + $_size948 = 0; + $_etype951 = 0; + $xfer += $input->readListBegin($_etype951, $_size948); + for ($_i952 = 0; $_i952 < $_size948; ++$_i952) { - $elem932 = null; - $xfer += $input->readString($elem932); - $this->tbl_names []= $elem932; + $elem953 = null; + $xfer += $input->readString($elem953); + $this->tbl_names []= $elem953; } $xfer += $input->readListEnd(); } else { @@ -21036,9 +21395,9 @@ class ThriftHiveMetastore_get_materialization_invalidation_info_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter933) + foreach ($this->tbl_names as $iter954) { - $xfer += $output->writeString($iter933); + $xfer += $output->writeString($iter954); } } $output->writeListEnd(); @@ -21143,18 +21502,18 @@ class ThriftHiveMetastore_get_materialization_invalidation_info_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size934 = 0; - $_ktype935 = 0; - $_vtype936 = 0; - $xfer += $input->readMapBegin($_ktype935, $_vtype936, $_size934); - for ($_i938 = 0; $_i938 < $_size934; ++$_i938) + $_size955 = 0; + $_ktype956 = 0; + $_vtype957 = 0; + $xfer += $input->readMapBegin($_ktype956, $_vtype957, $_size955); + for ($_i959 = 0; $_i959 < $_size955; ++$_i959) { - $key939 = ''; - $val940 = new \metastore\Materialization(); - $xfer += $input->readString($key939); - $val940 = new \metastore\Materialization(); - $xfer += $val940->read($input); - $this->success[$key939] = $val940; + $key960 = ''; + $val961 = new \metastore\Materialization(); + $xfer += $input->readString($key960); + $val961 = new \metastore\Materialization(); + $xfer += $val961->read($input); + $this->success[$key960] = $val961; } $xfer += $input->readMapEnd(); } else { @@ -21206,10 +21565,10 @@ class ThriftHiveMetastore_get_materialization_invalidation_info_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter941 => $viter942) + foreach ($this->success as $kiter962 => $viter963) { - $xfer += $output->writeString($kiter941); - $xfer += $viter942->write($output); + $xfer += $output->writeString($kiter962); + $xfer += $viter963->write($output); } } $output->writeMapEnd(); @@ -21698,14 +22057,14 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size943 = 0; - $_etype946 = 0; - $xfer += $input->readListBegin($_etype946, $_size943); - for ($_i947 = 0; $_i947 < $_size943; ++$_i947) + $_size964 = 0; + $_etype967 = 0; + $xfer += $input->readListBegin($_etype967, $_size964); + for ($_i968 = 0; $_i968 < $_size964; ++$_i968) { - $elem948 = null; - $xfer += $input->readString($elem948); - $this->success []= $elem948; + $elem969 = null; + $xfer += $input->readString($elem969); + $this->success []= $elem969; } $xfer += $input->readListEnd(); } else { @@ -21757,9 +22116,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter949) + foreach ($this->success as $iter970) { - $xfer += $output->writeString($iter949); + $xfer += $output->writeString($iter970); } } $output->writeListEnd(); @@ -23072,15 +23431,15 @@ class ThriftHiveMetastore_add_partitions_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size950 = 0; - $_etype953 = 0; - $xfer += $input->readListBegin($_etype953, $_size950); - for ($_i954 = 0; $_i954 < $_size950; ++$_i954) + $_size971 = 0; + $_etype974 = 0; + $xfer += $input->readListBegin($_etype974, $_size971); + for ($_i975 = 0; $_i975 < $_size971; ++$_i975) { - $elem955 = null; - $elem955 = new \metastore\Partition(); - $xfer += $elem955->read($input); - $this->new_parts []= $elem955; + $elem976 = null; + $elem976 = new \metastore\Partition(); + $xfer += $elem976->read($input); + $this->new_parts []= $elem976; } $xfer += $input->readListEnd(); } else { @@ -23108,9 +23467,9 @@ class ThriftHiveMetastore_add_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter956) + foreach ($this->new_parts as $iter977) { - $xfer += $iter956->write($output); + $xfer += $iter977->write($output); } } $output->writeListEnd(); @@ -23325,15 +23684,15 @@ class ThriftHiveMetastore_add_partitions_pspec_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size957 = 0; - $_etype960 = 0; - $xfer += $input->readListBegin($_etype960, $_size957); - for ($_i961 = 0; $_i961 < $_size957; ++$_i961) + $_size978 = 0; + $_etype981 = 0; + $xfer += $input->readListBegin($_etype981, $_size978); + for ($_i982 = 0; $_i982 < $_size978; ++$_i982) { - $elem962 = null; - $elem962 = new \metastore\PartitionSpec(); - $xfer += $elem962->read($input); - $this->new_parts []= $elem962; + $elem983 = null; + $elem983 = new \metastore\PartitionSpec(); + $xfer += $elem983->read($input); + $this->new_parts []= $elem983; } $xfer += $input->readListEnd(); } else { @@ -23361,9 +23720,9 @@ class ThriftHiveMetastore_add_partitions_pspec_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter963) + foreach ($this->new_parts as $iter984) { - $xfer += $iter963->write($output); + $xfer += $iter984->write($output); } } $output->writeListEnd(); @@ -23613,14 +23972,14 @@ class ThriftHiveMetastore_append_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size964 = 0; - $_etype967 = 0; - $xfer += $input->readListBegin($_etype967, $_size964); - for ($_i968 = 0; $_i968 < $_size964; ++$_i968) + $_size985 = 0; + $_etype988 = 0; + $xfer += $input->readListBegin($_etype988, $_size985); + for ($_i989 = 0; $_i989 < $_size985; ++$_i989) { - $elem969 = null; - $xfer += $input->readString($elem969); - $this->part_vals []= $elem969; + $elem990 = null; + $xfer += $input->readString($elem990); + $this->part_vals []= $elem990; } $xfer += $input->readListEnd(); } else { @@ -23658,9 +24017,9 @@ class ThriftHiveMetastore_append_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter970) + foreach ($this->part_vals as $iter991) { - $xfer += $output->writeString($iter970); + $xfer += $output->writeString($iter991); } } $output->writeListEnd(); @@ -24162,14 +24521,14 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size971 = 0; - $_etype974 = 0; - $xfer += $input->readListBegin($_etype974, $_size971); - for ($_i975 = 0; $_i975 < $_size971; ++$_i975) + $_size992 = 0; + $_etype995 = 0; + $xfer += $input->readListBegin($_etype995, $_size992); + for ($_i996 = 0; $_i996 < $_size992; ++$_i996) { - $elem976 = null; - $xfer += $input->readString($elem976); - $this->part_vals []= $elem976; + $elem997 = null; + $xfer += $input->readString($elem997); + $this->part_vals []= $elem997; } $xfer += $input->readListEnd(); } else { @@ -24215,9 +24574,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter977) + foreach ($this->part_vals as $iter998) { - $xfer += $output->writeString($iter977); + $xfer += $output->writeString($iter998); } } $output->writeListEnd(); @@ -25071,14 +25430,14 @@ class ThriftHiveMetastore_drop_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size978 = 0; - $_etype981 = 0; - $xfer += $input->readListBegin($_etype981, $_size978); - for ($_i982 = 0; $_i982 < $_size978; ++$_i982) + $_size999 = 0; + $_etype1002 = 0; + $xfer += $input->readListBegin($_etype1002, $_size999); + for ($_i1003 = 0; $_i1003 < $_size999; ++$_i1003) { - $elem983 = null; - $xfer += $input->readString($elem983); - $this->part_vals []= $elem983; + $elem1004 = null; + $xfer += $input->readString($elem1004); + $this->part_vals []= $elem1004; } $xfer += $input->readListEnd(); } else { @@ -25123,9 +25482,9 @@ class ThriftHiveMetastore_drop_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter984) + foreach ($this->part_vals as $iter1005) { - $xfer += $output->writeString($iter984); + $xfer += $output->writeString($iter1005); } } $output->writeListEnd(); @@ -25378,14 +25737,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size985 = 0; - $_etype988 = 0; - $xfer += $input->readListBegin($_etype988, $_size985); - for ($_i989 = 0; $_i989 < $_size985; ++$_i989) + $_size1006 = 0; + $_etype1009 = 0; + $xfer += $input->readListBegin($_etype1009, $_size1006); + for ($_i1010 = 0; $_i1010 < $_size1006; ++$_i1010) { - $elem990 = null; - $xfer += $input->readString($elem990); - $this->part_vals []= $elem990; + $elem1011 = null; + $xfer += $input->readString($elem1011); + $this->part_vals []= $elem1011; } $xfer += $input->readListEnd(); } else { @@ -25438,9 +25797,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter991) + foreach ($this->part_vals as $iter1012) { - $xfer += $output->writeString($iter991); + $xfer += $output->writeString($iter1012); } } $output->writeListEnd(); @@ -26454,14 +26813,14 @@ class ThriftHiveMetastore_get_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size992 = 0; - $_etype995 = 0; - $xfer += $input->readListBegin($_etype995, $_size992); - for ($_i996 = 0; $_i996 < $_size992; ++$_i996) + $_size1013 = 0; + $_etype1016 = 0; + $xfer += $input->readListBegin($_etype1016, $_size1013); + for ($_i1017 = 0; $_i1017 < $_size1013; ++$_i1017) { - $elem997 = null; - $xfer += $input->readString($elem997); - $this->part_vals []= $elem997; + $elem1018 = null; + $xfer += $input->readString($elem1018); + $this->part_vals []= $elem1018; } $xfer += $input->readListEnd(); } else { @@ -26499,9 +26858,9 @@ class ThriftHiveMetastore_get_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter998) + foreach ($this->part_vals as $iter1019) { - $xfer += $output->writeString($iter998); + $xfer += $output->writeString($iter1019); } } $output->writeListEnd(); @@ -26743,17 +27102,17 @@ class ThriftHiveMetastore_exchange_partition_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size999 = 0; - $_ktype1000 = 0; - $_vtype1001 = 0; - $xfer += $input->readMapBegin($_ktype1000, $_vtype1001, $_size999); - for ($_i1003 = 0; $_i1003 < $_size999; ++$_i1003) + $_size1020 = 0; + $_ktype1021 = 0; + $_vtype1022 = 0; + $xfer += $input->readMapBegin($_ktype1021, $_vtype1022, $_size1020); + for ($_i1024 = 0; $_i1024 < $_size1020; ++$_i1024) { - $key1004 = ''; - $val1005 = ''; - $xfer += $input->readString($key1004); - $xfer += $input->readString($val1005); - $this->partitionSpecs[$key1004] = $val1005; + $key1025 = ''; + $val1026 = ''; + $xfer += $input->readString($key1025); + $xfer += $input->readString($val1026); + $this->partitionSpecs[$key1025] = $val1026; } $xfer += $input->readMapEnd(); } else { @@ -26809,10 +27168,10 @@ class ThriftHiveMetastore_exchange_partition_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter1006 => $viter1007) + foreach ($this->partitionSpecs as $kiter1027 => $viter1028) { - $xfer += $output->writeString($kiter1006); - $xfer += $output->writeString($viter1007); + $xfer += $output->writeString($kiter1027); + $xfer += $output->writeString($viter1028); } } $output->writeMapEnd(); @@ -27124,17 +27483,17 @@ class ThriftHiveMetastore_exchange_partitions_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size1008 = 0; - $_ktype1009 = 0; - $_vtype1010 = 0; - $xfer += $input->readMapBegin($_ktype1009, $_vtype1010, $_size1008); - for ($_i1012 = 0; $_i1012 < $_size1008; ++$_i1012) + $_size1029 = 0; + $_ktype1030 = 0; + $_vtype1031 = 0; + $xfer += $input->readMapBegin($_ktype1030, $_vtype1031, $_size1029); + for ($_i1033 = 0; $_i1033 < $_size1029; ++$_i1033) { - $key1013 = ''; - $val1014 = ''; - $xfer += $input->readString($key1013); - $xfer += $input->readString($val1014); - $this->partitionSpecs[$key1013] = $val1014; + $key1034 = ''; + $val1035 = ''; + $xfer += $input->readString($key1034); + $xfer += $input->readString($val1035); + $this->partitionSpecs[$key1034] = $val1035; } $xfer += $input->readMapEnd(); } else { @@ -27190,10 +27549,10 @@ class ThriftHiveMetastore_exchange_partitions_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter1015 => $viter1016) + foreach ($this->partitionSpecs as $kiter1036 => $viter1037) { - $xfer += $output->writeString($kiter1015); - $xfer += $output->writeString($viter1016); + $xfer += $output->writeString($kiter1036); + $xfer += $output->writeString($viter1037); } } $output->writeMapEnd(); @@ -27326,15 +27685,15 @@ class ThriftHiveMetastore_exchange_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1017 = 0; - $_etype1020 = 0; - $xfer += $input->readListBegin($_etype1020, $_size1017); - for ($_i1021 = 0; $_i1021 < $_size1017; ++$_i1021) + $_size1038 = 0; + $_etype1041 = 0; + $xfer += $input->readListBegin($_etype1041, $_size1038); + for ($_i1042 = 0; $_i1042 < $_size1038; ++$_i1042) { - $elem1022 = null; - $elem1022 = new \metastore\Partition(); - $xfer += $elem1022->read($input); - $this->success []= $elem1022; + $elem1043 = null; + $elem1043 = new \metastore\Partition(); + $xfer += $elem1043->read($input); + $this->success []= $elem1043; } $xfer += $input->readListEnd(); } else { @@ -27394,9 +27753,9 @@ class ThriftHiveMetastore_exchange_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1023) + foreach ($this->success as $iter1044) { - $xfer += $iter1023->write($output); + $xfer += $iter1044->write($output); } } $output->writeListEnd(); @@ -27542,14 +27901,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1024 = 0; - $_etype1027 = 0; - $xfer += $input->readListBegin($_etype1027, $_size1024); - for ($_i1028 = 0; $_i1028 < $_size1024; ++$_i1028) + $_size1045 = 0; + $_etype1048 = 0; + $xfer += $input->readListBegin($_etype1048, $_size1045); + for ($_i1049 = 0; $_i1049 < $_size1045; ++$_i1049) { - $elem1029 = null; - $xfer += $input->readString($elem1029); - $this->part_vals []= $elem1029; + $elem1050 = null; + $xfer += $input->readString($elem1050); + $this->part_vals []= $elem1050; } $xfer += $input->readListEnd(); } else { @@ -27566,14 +27925,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1030 = 0; - $_etype1033 = 0; - $xfer += $input->readListBegin($_etype1033, $_size1030); - for ($_i1034 = 0; $_i1034 < $_size1030; ++$_i1034) + $_size1051 = 0; + $_etype1054 = 0; + $xfer += $input->readListBegin($_etype1054, $_size1051); + for ($_i1055 = 0; $_i1055 < $_size1051; ++$_i1055) { - $elem1035 = null; - $xfer += $input->readString($elem1035); - $this->group_names []= $elem1035; + $elem1056 = null; + $xfer += $input->readString($elem1056); + $this->group_names []= $elem1056; } $xfer += $input->readListEnd(); } else { @@ -27611,9 +27970,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1036) + foreach ($this->part_vals as $iter1057) { - $xfer += $output->writeString($iter1036); + $xfer += $output->writeString($iter1057); } } $output->writeListEnd(); @@ -27633,9 +27992,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1037) + foreach ($this->group_names as $iter1058) { - $xfer += $output->writeString($iter1037); + $xfer += $output->writeString($iter1058); } } $output->writeListEnd(); @@ -28226,15 +28585,15 @@ class ThriftHiveMetastore_get_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1038 = 0; - $_etype1041 = 0; - $xfer += $input->readListBegin($_etype1041, $_size1038); - for ($_i1042 = 0; $_i1042 < $_size1038; ++$_i1042) + $_size1059 = 0; + $_etype1062 = 0; + $xfer += $input->readListBegin($_etype1062, $_size1059); + for ($_i1063 = 0; $_i1063 < $_size1059; ++$_i1063) { - $elem1043 = null; - $elem1043 = new \metastore\Partition(); - $xfer += $elem1043->read($input); - $this->success []= $elem1043; + $elem1064 = null; + $elem1064 = new \metastore\Partition(); + $xfer += $elem1064->read($input); + $this->success []= $elem1064; } $xfer += $input->readListEnd(); } else { @@ -28278,9 +28637,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1044) + foreach ($this->success as $iter1065) { - $xfer += $iter1044->write($output); + $xfer += $iter1065->write($output); } } $output->writeListEnd(); @@ -28426,14 +28785,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1045 = 0; - $_etype1048 = 0; - $xfer += $input->readListBegin($_etype1048, $_size1045); - for ($_i1049 = 0; $_i1049 < $_size1045; ++$_i1049) + $_size1066 = 0; + $_etype1069 = 0; + $xfer += $input->readListBegin($_etype1069, $_size1066); + for ($_i1070 = 0; $_i1070 < $_size1066; ++$_i1070) { - $elem1050 = null; - $xfer += $input->readString($elem1050); - $this->group_names []= $elem1050; + $elem1071 = null; + $xfer += $input->readString($elem1071); + $this->group_names []= $elem1071; } $xfer += $input->readListEnd(); } else { @@ -28481,9 +28840,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1051) + foreach ($this->group_names as $iter1072) { - $xfer += $output->writeString($iter1051); + $xfer += $output->writeString($iter1072); } } $output->writeListEnd(); @@ -28572,15 +28931,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1052 = 0; - $_etype1055 = 0; - $xfer += $input->readListBegin($_etype1055, $_size1052); - for ($_i1056 = 0; $_i1056 < $_size1052; ++$_i1056) + $_size1073 = 0; + $_etype1076 = 0; + $xfer += $input->readListBegin($_etype1076, $_size1073); + for ($_i1077 = 0; $_i1077 < $_size1073; ++$_i1077) { - $elem1057 = null; - $elem1057 = new \metastore\Partition(); - $xfer += $elem1057->read($input); - $this->success []= $elem1057; + $elem1078 = null; + $elem1078 = new \metastore\Partition(); + $xfer += $elem1078->read($input); + $this->success []= $elem1078; } $xfer += $input->readListEnd(); } else { @@ -28624,9 +28983,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1058) + foreach ($this->success as $iter1079) { - $xfer += $iter1058->write($output); + $xfer += $iter1079->write($output); } } $output->writeListEnd(); @@ -28846,15 +29205,15 @@ class ThriftHiveMetastore_get_partitions_pspec_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1059 = 0; - $_etype1062 = 0; - $xfer += $input->readListBegin($_etype1062, $_size1059); - for ($_i1063 = 0; $_i1063 < $_size1059; ++$_i1063) + $_size1080 = 0; + $_etype1083 = 0; + $xfer += $input->readListBegin($_etype1083, $_size1080); + for ($_i1084 = 0; $_i1084 < $_size1080; ++$_i1084) { - $elem1064 = null; - $elem1064 = new \metastore\PartitionSpec(); - $xfer += $elem1064->read($input); - $this->success []= $elem1064; + $elem1085 = null; + $elem1085 = new \metastore\PartitionSpec(); + $xfer += $elem1085->read($input); + $this->success []= $elem1085; } $xfer += $input->readListEnd(); } else { @@ -28898,9 +29257,9 @@ class ThriftHiveMetastore_get_partitions_pspec_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1065) + foreach ($this->success as $iter1086) { - $xfer += $iter1065->write($output); + $xfer += $iter1086->write($output); } } $output->writeListEnd(); @@ -29119,14 +29478,14 @@ class ThriftHiveMetastore_get_partition_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1066 = 0; - $_etype1069 = 0; - $xfer += $input->readListBegin($_etype1069, $_size1066); - for ($_i1070 = 0; $_i1070 < $_size1066; ++$_i1070) + $_size1087 = 0; + $_etype1090 = 0; + $xfer += $input->readListBegin($_etype1090, $_size1087); + for ($_i1091 = 0; $_i1091 < $_size1087; ++$_i1091) { - $elem1071 = null; - $xfer += $input->readString($elem1071); - $this->success []= $elem1071; + $elem1092 = null; + $xfer += $input->readString($elem1092); + $this->success []= $elem1092; } $xfer += $input->readListEnd(); } else { @@ -29170,9 +29529,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1072) + foreach ($this->success as $iter1093) { - $xfer += $output->writeString($iter1072); + $xfer += $output->writeString($iter1093); } } $output->writeListEnd(); @@ -29503,14 +29862,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1073 = 0; - $_etype1076 = 0; - $xfer += $input->readListBegin($_etype1076, $_size1073); - for ($_i1077 = 0; $_i1077 < $_size1073; ++$_i1077) + $_size1094 = 0; + $_etype1097 = 0; + $xfer += $input->readListBegin($_etype1097, $_size1094); + for ($_i1098 = 0; $_i1098 < $_size1094; ++$_i1098) { - $elem1078 = null; - $xfer += $input->readString($elem1078); - $this->part_vals []= $elem1078; + $elem1099 = null; + $xfer += $input->readString($elem1099); + $this->part_vals []= $elem1099; } $xfer += $input->readListEnd(); } else { @@ -29555,9 +29914,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1079) + foreach ($this->part_vals as $iter1100) { - $xfer += $output->writeString($iter1079); + $xfer += $output->writeString($iter1100); } } $output->writeListEnd(); @@ -29651,15 +30010,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1080 = 0; - $_etype1083 = 0; - $xfer += $input->readListBegin($_etype1083, $_size1080); - for ($_i1084 = 0; $_i1084 < $_size1080; ++$_i1084) + $_size1101 = 0; + $_etype1104 = 0; + $xfer += $input->readListBegin($_etype1104, $_size1101); + for ($_i1105 = 0; $_i1105 < $_size1101; ++$_i1105) { - $elem1085 = null; - $elem1085 = new \metastore\Partition(); - $xfer += $elem1085->read($input); - $this->success []= $elem1085; + $elem1106 = null; + $elem1106 = new \metastore\Partition(); + $xfer += $elem1106->read($input); + $this->success []= $elem1106; } $xfer += $input->readListEnd(); } else { @@ -29703,9 +30062,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1086) + foreach ($this->success as $iter1107) { - $xfer += $iter1086->write($output); + $xfer += $iter1107->write($output); } } $output->writeListEnd(); @@ -29852,14 +30211,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1087 = 0; - $_etype1090 = 0; - $xfer += $input->readListBegin($_etype1090, $_size1087); - for ($_i1091 = 0; $_i1091 < $_size1087; ++$_i1091) + $_size1108 = 0; + $_etype1111 = 0; + $xfer += $input->readListBegin($_etype1111, $_size1108); + for ($_i1112 = 0; $_i1112 < $_size1108; ++$_i1112) { - $elem1092 = null; - $xfer += $input->readString($elem1092); - $this->part_vals []= $elem1092; + $elem1113 = null; + $xfer += $input->readString($elem1113); + $this->part_vals []= $elem1113; } $xfer += $input->readListEnd(); } else { @@ -29883,14 +30242,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1093 = 0; - $_etype1096 = 0; - $xfer += $input->readListBegin($_etype1096, $_size1093); - for ($_i1097 = 0; $_i1097 < $_size1093; ++$_i1097) + $_size1114 = 0; + $_etype1117 = 0; + $xfer += $input->readListBegin($_etype1117, $_size1114); + for ($_i1118 = 0; $_i1118 < $_size1114; ++$_i1118) { - $elem1098 = null; - $xfer += $input->readString($elem1098); - $this->group_names []= $elem1098; + $elem1119 = null; + $xfer += $input->readString($elem1119); + $this->group_names []= $elem1119; } $xfer += $input->readListEnd(); } else { @@ -29928,9 +30287,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1099) + foreach ($this->part_vals as $iter1120) { - $xfer += $output->writeString($iter1099); + $xfer += $output->writeString($iter1120); } } $output->writeListEnd(); @@ -29955,9 +30314,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1100) + foreach ($this->group_names as $iter1121) { - $xfer += $output->writeString($iter1100); + $xfer += $output->writeString($iter1121); } } $output->writeListEnd(); @@ -30046,15 +30405,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1101 = 0; - $_etype1104 = 0; - $xfer += $input->readListBegin($_etype1104, $_size1101); - for ($_i1105 = 0; $_i1105 < $_size1101; ++$_i1105) + $_size1122 = 0; + $_etype1125 = 0; + $xfer += $input->readListBegin($_etype1125, $_size1122); + for ($_i1126 = 0; $_i1126 < $_size1122; ++$_i1126) { - $elem1106 = null; - $elem1106 = new \metastore\Partition(); - $xfer += $elem1106->read($input); - $this->success []= $elem1106; + $elem1127 = null; + $elem1127 = new \metastore\Partition(); + $xfer += $elem1127->read($input); + $this->success []= $elem1127; } $xfer += $input->readListEnd(); } else { @@ -30098,9 +30457,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1107) + foreach ($this->success as $iter1128) { - $xfer += $iter1107->write($output); + $xfer += $iter1128->write($output); } } $output->writeListEnd(); @@ -30221,14 +30580,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1108 = 0; - $_etype1111 = 0; - $xfer += $input->readListBegin($_etype1111, $_size1108); - for ($_i1112 = 0; $_i1112 < $_size1108; ++$_i1112) + $_size1129 = 0; + $_etype1132 = 0; + $xfer += $input->readListBegin($_etype1132, $_size1129); + for ($_i1133 = 0; $_i1133 < $_size1129; ++$_i1133) { - $elem1113 = null; - $xfer += $input->readString($elem1113); - $this->part_vals []= $elem1113; + $elem1134 = null; + $xfer += $input->readString($elem1134); + $this->part_vals []= $elem1134; } $xfer += $input->readListEnd(); } else { @@ -30273,9 +30632,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1114) + foreach ($this->part_vals as $iter1135) { - $xfer += $output->writeString($iter1114); + $xfer += $output->writeString($iter1135); } } $output->writeListEnd(); @@ -30368,14 +30727,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1115 = 0; - $_etype1118 = 0; - $xfer += $input->readListBegin($_etype1118, $_size1115); - for ($_i1119 = 0; $_i1119 < $_size1115; ++$_i1119) + $_size1136 = 0; + $_etype1139 = 0; + $xfer += $input->readListBegin($_etype1139, $_size1136); + for ($_i1140 = 0; $_i1140 < $_size1136; ++$_i1140) { - $elem1120 = null; - $xfer += $input->readString($elem1120); - $this->success []= $elem1120; + $elem1141 = null; + $xfer += $input->readString($elem1141); + $this->success []= $elem1141; } $xfer += $input->readListEnd(); } else { @@ -30419,9 +30778,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1121) + foreach ($this->success as $iter1142) { - $xfer += $output->writeString($iter1121); + $xfer += $output->writeString($iter1142); } } $output->writeListEnd(); @@ -30664,15 +31023,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1122 = 0; - $_etype1125 = 0; - $xfer += $input->readListBegin($_etype1125, $_size1122); - for ($_i1126 = 0; $_i1126 < $_size1122; ++$_i1126) + $_size1143 = 0; + $_etype1146 = 0; + $xfer += $input->readListBegin($_etype1146, $_size1143); + for ($_i1147 = 0; $_i1147 < $_size1143; ++$_i1147) { - $elem1127 = null; - $elem1127 = new \metastore\Partition(); - $xfer += $elem1127->read($input); - $this->success []= $elem1127; + $elem1148 = null; + $elem1148 = new \metastore\Partition(); + $xfer += $elem1148->read($input); + $this->success []= $elem1148; } $xfer += $input->readListEnd(); } else { @@ -30716,9 +31075,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1128) + foreach ($this->success as $iter1149) { - $xfer += $iter1128->write($output); + $xfer += $iter1149->write($output); } } $output->writeListEnd(); @@ -30961,15 +31320,15 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1129 = 0; - $_etype1132 = 0; - $xfer += $input->readListBegin($_etype1132, $_size1129); - for ($_i1133 = 0; $_i1133 < $_size1129; ++$_i1133) + $_size1150 = 0; + $_etype1153 = 0; + $xfer += $input->readListBegin($_etype1153, $_size1150); + for ($_i1154 = 0; $_i1154 < $_size1150; ++$_i1154) { - $elem1134 = null; - $elem1134 = new \metastore\PartitionSpec(); - $xfer += $elem1134->read($input); - $this->success []= $elem1134; + $elem1155 = null; + $elem1155 = new \metastore\PartitionSpec(); + $xfer += $elem1155->read($input); + $this->success []= $elem1155; } $xfer += $input->readListEnd(); } else { @@ -31013,9 +31372,9 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1135) + foreach ($this->success as $iter1156) { - $xfer += $iter1135->write($output); + $xfer += $iter1156->write($output); } } $output->writeListEnd(); @@ -31581,14 +31940,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size1136 = 0; - $_etype1139 = 0; - $xfer += $input->readListBegin($_etype1139, $_size1136); - for ($_i1140 = 0; $_i1140 < $_size1136; ++$_i1140) + $_size1157 = 0; + $_etype1160 = 0; + $xfer += $input->readListBegin($_etype1160, $_size1157); + for ($_i1161 = 0; $_i1161 < $_size1157; ++$_i1161) { - $elem1141 = null; - $xfer += $input->readString($elem1141); - $this->names []= $elem1141; + $elem1162 = null; + $xfer += $input->readString($elem1162); + $this->names []= $elem1162; } $xfer += $input->readListEnd(); } else { @@ -31626,9 +31985,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter1142) + foreach ($this->names as $iter1163) { - $xfer += $output->writeString($iter1142); + $xfer += $output->writeString($iter1163); } } $output->writeListEnd(); @@ -31717,15 +32076,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1143 = 0; - $_etype1146 = 0; - $xfer += $input->readListBegin($_etype1146, $_size1143); - for ($_i1147 = 0; $_i1147 < $_size1143; ++$_i1147) + $_size1164 = 0; + $_etype1167 = 0; + $xfer += $input->readListBegin($_etype1167, $_size1164); + for ($_i1168 = 0; $_i1168 < $_size1164; ++$_i1168) { - $elem1148 = null; - $elem1148 = new \metastore\Partition(); - $xfer += $elem1148->read($input); - $this->success []= $elem1148; + $elem1169 = null; + $elem1169 = new \metastore\Partition(); + $xfer += $elem1169->read($input); + $this->success []= $elem1169; } $xfer += $input->readListEnd(); } else { @@ -31769,9 +32128,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1149) + foreach ($this->success as $iter1170) { - $xfer += $iter1149->write($output); + $xfer += $iter1170->write($output); } } $output->writeListEnd(); @@ -32110,15 +32469,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1150 = 0; - $_etype1153 = 0; - $xfer += $input->readListBegin($_etype1153, $_size1150); - for ($_i1154 = 0; $_i1154 < $_size1150; ++$_i1154) + $_size1171 = 0; + $_etype1174 = 0; + $xfer += $input->readListBegin($_etype1174, $_size1171); + for ($_i1175 = 0; $_i1175 < $_size1171; ++$_i1175) { - $elem1155 = null; - $elem1155 = new \metastore\Partition(); - $xfer += $elem1155->read($input); - $this->new_parts []= $elem1155; + $elem1176 = null; + $elem1176 = new \metastore\Partition(); + $xfer += $elem1176->read($input); + $this->new_parts []= $elem1176; } $xfer += $input->readListEnd(); } else { @@ -32156,9 +32515,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1156) + foreach ($this->new_parts as $iter1177) { - $xfer += $iter1156->write($output); + $xfer += $iter1177->write($output); } } $output->writeListEnd(); @@ -32373,15 +32732,15 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1157 = 0; - $_etype1160 = 0; - $xfer += $input->readListBegin($_etype1160, $_size1157); - for ($_i1161 = 0; $_i1161 < $_size1157; ++$_i1161) + $_size1178 = 0; + $_etype1181 = 0; + $xfer += $input->readListBegin($_etype1181, $_size1178); + for ($_i1182 = 0; $_i1182 < $_size1178; ++$_i1182) { - $elem1162 = null; - $elem1162 = new \metastore\Partition(); - $xfer += $elem1162->read($input); - $this->new_parts []= $elem1162; + $elem1183 = null; + $elem1183 = new \metastore\Partition(); + $xfer += $elem1183->read($input); + $this->new_parts []= $elem1183; } $xfer += $input->readListEnd(); } else { @@ -32427,9 +32786,9 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1163) + foreach ($this->new_parts as $iter1184) { - $xfer += $iter1163->write($output); + $xfer += $iter1184->write($output); } } $output->writeListEnd(); @@ -32907,14 +33266,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1164 = 0; - $_etype1167 = 0; - $xfer += $input->readListBegin($_etype1167, $_size1164); - for ($_i1168 = 0; $_i1168 < $_size1164; ++$_i1168) + $_size1185 = 0; + $_etype1188 = 0; + $xfer += $input->readListBegin($_etype1188, $_size1185); + for ($_i1189 = 0; $_i1189 < $_size1185; ++$_i1189) { - $elem1169 = null; - $xfer += $input->readString($elem1169); - $this->part_vals []= $elem1169; + $elem1190 = null; + $xfer += $input->readString($elem1190); + $this->part_vals []= $elem1190; } $xfer += $input->readListEnd(); } else { @@ -32960,9 +33319,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1170) + foreach ($this->part_vals as $iter1191) { - $xfer += $output->writeString($iter1170); + $xfer += $output->writeString($iter1191); } } $output->writeListEnd(); @@ -33147,14 +33506,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1171 = 0; - $_etype1174 = 0; - $xfer += $input->readListBegin($_etype1174, $_size1171); - for ($_i1175 = 0; $_i1175 < $_size1171; ++$_i1175) + $_size1192 = 0; + $_etype1195 = 0; + $xfer += $input->readListBegin($_etype1195, $_size1192); + for ($_i1196 = 0; $_i1196 < $_size1192; ++$_i1196) { - $elem1176 = null; - $xfer += $input->readString($elem1176); - $this->part_vals []= $elem1176; + $elem1197 = null; + $xfer += $input->readString($elem1197); + $this->part_vals []= $elem1197; } $xfer += $input->readListEnd(); } else { @@ -33189,9 +33548,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1177) + foreach ($this->part_vals as $iter1198) { - $xfer += $output->writeString($iter1177); + $xfer += $output->writeString($iter1198); } } $output->writeListEnd(); @@ -33645,14 +34004,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1178 = 0; - $_etype1181 = 0; - $xfer += $input->readListBegin($_etype1181, $_size1178); - for ($_i1182 = 0; $_i1182 < $_size1178; ++$_i1182) + $_size1199 = 0; + $_etype1202 = 0; + $xfer += $input->readListBegin($_etype1202, $_size1199); + for ($_i1203 = 0; $_i1203 < $_size1199; ++$_i1203) { - $elem1183 = null; - $xfer += $input->readString($elem1183); - $this->success []= $elem1183; + $elem1204 = null; + $xfer += $input->readString($elem1204); + $this->success []= $elem1204; } $xfer += $input->readListEnd(); } else { @@ -33688,9 +34047,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1184) + foreach ($this->success as $iter1205) { - $xfer += $output->writeString($iter1184); + $xfer += $output->writeString($iter1205); } } $output->writeListEnd(); @@ -33850,17 +34209,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size1185 = 0; - $_ktype1186 = 0; - $_vtype1187 = 0; - $xfer += $input->readMapBegin($_ktype1186, $_vtype1187, $_size1185); - for ($_i1189 = 0; $_i1189 < $_size1185; ++$_i1189) + $_size1206 = 0; + $_ktype1207 = 0; + $_vtype1208 = 0; + $xfer += $input->readMapBegin($_ktype1207, $_vtype1208, $_size1206); + for ($_i1210 = 0; $_i1210 < $_size1206; ++$_i1210) { - $key1190 = ''; - $val1191 = ''; - $xfer += $input->readString($key1190); - $xfer += $input->readString($val1191); - $this->success[$key1190] = $val1191; + $key1211 = ''; + $val1212 = ''; + $xfer += $input->readString($key1211); + $xfer += $input->readString($val1212); + $this->success[$key1211] = $val1212; } $xfer += $input->readMapEnd(); } else { @@ -33896,10 +34255,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter1192 => $viter1193) + foreach ($this->success as $kiter1213 => $viter1214) { - $xfer += $output->writeString($kiter1192); - $xfer += $output->writeString($viter1193); + $xfer += $output->writeString($kiter1213); + $xfer += $output->writeString($viter1214); } } $output->writeMapEnd(); @@ -34019,17 +34378,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1194 = 0; - $_ktype1195 = 0; - $_vtype1196 = 0; - $xfer += $input->readMapBegin($_ktype1195, $_vtype1196, $_size1194); - for ($_i1198 = 0; $_i1198 < $_size1194; ++$_i1198) + $_size1215 = 0; + $_ktype1216 = 0; + $_vtype1217 = 0; + $xfer += $input->readMapBegin($_ktype1216, $_vtype1217, $_size1215); + for ($_i1219 = 0; $_i1219 < $_size1215; ++$_i1219) { - $key1199 = ''; - $val1200 = ''; - $xfer += $input->readString($key1199); - $xfer += $input->readString($val1200); - $this->part_vals[$key1199] = $val1200; + $key1220 = ''; + $val1221 = ''; + $xfer += $input->readString($key1220); + $xfer += $input->readString($val1221); + $this->part_vals[$key1220] = $val1221; } $xfer += $input->readMapEnd(); } else { @@ -34074,10 +34433,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1201 => $viter1202) + foreach ($this->part_vals as $kiter1222 => $viter1223) { - $xfer += $output->writeString($kiter1201); - $xfer += $output->writeString($viter1202); + $xfer += $output->writeString($kiter1222); + $xfer += $output->writeString($viter1223); } } $output->writeMapEnd(); @@ -34399,17 +34758,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1203 = 0; - $_ktype1204 = 0; - $_vtype1205 = 0; - $xfer += $input->readMapBegin($_ktype1204, $_vtype1205, $_size1203); - for ($_i1207 = 0; $_i1207 < $_size1203; ++$_i1207) + $_size1224 = 0; + $_ktype1225 = 0; + $_vtype1226 = 0; + $xfer += $input->readMapBegin($_ktype1225, $_vtype1226, $_size1224); + for ($_i1228 = 0; $_i1228 < $_size1224; ++$_i1228) { - $key1208 = ''; - $val1209 = ''; - $xfer += $input->readString($key1208); - $xfer += $input->readString($val1209); - $this->part_vals[$key1208] = $val1209; + $key1229 = ''; + $val1230 = ''; + $xfer += $input->readString($key1229); + $xfer += $input->readString($val1230); + $this->part_vals[$key1229] = $val1230; } $xfer += $input->readMapEnd(); } else { @@ -34454,10 +34813,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1210 => $viter1211) + foreach ($this->part_vals as $kiter1231 => $viter1232) { - $xfer += $output->writeString($kiter1210); - $xfer += $output->writeString($viter1211); + $xfer += $output->writeString($kiter1231); + $xfer += $output->writeString($viter1232); } } $output->writeMapEnd(); @@ -35751,6 +36110,216 @@ class ThriftHiveMetastore_get_default_constraints_result { } +class ThriftHiveMetastore_get_check_constraints_args { + static $_TSPEC; + + /** + * @var \metastore\CheckConstraintsRequest + */ + public $request = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'request', + 'type' => TType::STRUCT, + 'class' => '\metastore\CheckConstraintsRequest', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['request'])) { + $this->request = $vals['request']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_check_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\CheckConstraintsRequest(); + $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_check_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_check_constraints_result { + static $_TSPEC; + + /** + * @var \metastore\CheckConstraintsResponse + */ + 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\CheckConstraintsResponse', + ), + 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_check_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\CheckConstraintsResponse(); + $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_check_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; @@ -39206,14 +39775,14 @@ class ThriftHiveMetastore_get_functions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1212 = 0; - $_etype1215 = 0; - $xfer += $input->readListBegin($_etype1215, $_size1212); - for ($_i1216 = 0; $_i1216 < $_size1212; ++$_i1216) + $_size1233 = 0; + $_etype1236 = 0; + $xfer += $input->readListBegin($_etype1236, $_size1233); + for ($_i1237 = 0; $_i1237 < $_size1233; ++$_i1237) { - $elem1217 = null; - $xfer += $input->readString($elem1217); - $this->success []= $elem1217; + $elem1238 = null; + $xfer += $input->readString($elem1238); + $this->success []= $elem1238; } $xfer += $input->readListEnd(); } else { @@ -39249,9 +39818,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1218) + foreach ($this->success as $iter1239) { - $xfer += $output->writeString($iter1218); + $xfer += $output->writeString($iter1239); } } $output->writeListEnd(); @@ -40120,14 +40689,14 @@ class ThriftHiveMetastore_get_role_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1219 = 0; - $_etype1222 = 0; - $xfer += $input->readListBegin($_etype1222, $_size1219); - for ($_i1223 = 0; $_i1223 < $_size1219; ++$_i1223) + $_size1240 = 0; + $_etype1243 = 0; + $xfer += $input->readListBegin($_etype1243, $_size1240); + for ($_i1244 = 0; $_i1244 < $_size1240; ++$_i1244) { - $elem1224 = null; - $xfer += $input->readString($elem1224); - $this->success []= $elem1224; + $elem1245 = null; + $xfer += $input->readString($elem1245); + $this->success []= $elem1245; } $xfer += $input->readListEnd(); } else { @@ -40163,9 +40732,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1225) + foreach ($this->success as $iter1246) { - $xfer += $output->writeString($iter1225); + $xfer += $output->writeString($iter1246); } } $output->writeListEnd(); @@ -40856,15 +41425,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1226 = 0; - $_etype1229 = 0; - $xfer += $input->readListBegin($_etype1229, $_size1226); - for ($_i1230 = 0; $_i1230 < $_size1226; ++$_i1230) + $_size1247 = 0; + $_etype1250 = 0; + $xfer += $input->readListBegin($_etype1250, $_size1247); + for ($_i1251 = 0; $_i1251 < $_size1247; ++$_i1251) { - $elem1231 = null; - $elem1231 = new \metastore\Role(); - $xfer += $elem1231->read($input); - $this->success []= $elem1231; + $elem1252 = null; + $elem1252 = new \metastore\Role(); + $xfer += $elem1252->read($input); + $this->success []= $elem1252; } $xfer += $input->readListEnd(); } else { @@ -40900,9 +41469,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1232) + foreach ($this->success as $iter1253) { - $xfer += $iter1232->write($output); + $xfer += $iter1253->write($output); } } $output->writeListEnd(); @@ -41564,14 +42133,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1233 = 0; - $_etype1236 = 0; - $xfer += $input->readListBegin($_etype1236, $_size1233); - for ($_i1237 = 0; $_i1237 < $_size1233; ++$_i1237) + $_size1254 = 0; + $_etype1257 = 0; + $xfer += $input->readListBegin($_etype1257, $_size1254); + for ($_i1258 = 0; $_i1258 < $_size1254; ++$_i1258) { - $elem1238 = null; - $xfer += $input->readString($elem1238); - $this->group_names []= $elem1238; + $elem1259 = null; + $xfer += $input->readString($elem1259); + $this->group_names []= $elem1259; } $xfer += $input->readListEnd(); } else { @@ -41612,9 +42181,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1239) + foreach ($this->group_names as $iter1260) { - $xfer += $output->writeString($iter1239); + $xfer += $output->writeString($iter1260); } } $output->writeListEnd(); @@ -41922,15 +42491,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1240 = 0; - $_etype1243 = 0; - $xfer += $input->readListBegin($_etype1243, $_size1240); - for ($_i1244 = 0; $_i1244 < $_size1240; ++$_i1244) + $_size1261 = 0; + $_etype1264 = 0; + $xfer += $input->readListBegin($_etype1264, $_size1261); + for ($_i1265 = 0; $_i1265 < $_size1261; ++$_i1265) { - $elem1245 = null; - $elem1245 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem1245->read($input); - $this->success []= $elem1245; + $elem1266 = null; + $elem1266 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem1266->read($input); + $this->success []= $elem1266; } $xfer += $input->readListEnd(); } else { @@ -41966,9 +42535,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1246) + foreach ($this->success as $iter1267) { - $xfer += $iter1246->write($output); + $xfer += $iter1267->write($output); } } $output->writeListEnd(); @@ -42600,14 +43169,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1247 = 0; - $_etype1250 = 0; - $xfer += $input->readListBegin($_etype1250, $_size1247); - for ($_i1251 = 0; $_i1251 < $_size1247; ++$_i1251) + $_size1268 = 0; + $_etype1271 = 0; + $xfer += $input->readListBegin($_etype1271, $_size1268); + for ($_i1272 = 0; $_i1272 < $_size1268; ++$_i1272) { - $elem1252 = null; - $xfer += $input->readString($elem1252); - $this->group_names []= $elem1252; + $elem1273 = null; + $xfer += $input->readString($elem1273); + $this->group_names []= $elem1273; } $xfer += $input->readListEnd(); } else { @@ -42640,9 +43209,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1253) + foreach ($this->group_names as $iter1274) { - $xfer += $output->writeString($iter1253); + $xfer += $output->writeString($iter1274); } } $output->writeListEnd(); @@ -42718,14 +43287,14 @@ class ThriftHiveMetastore_set_ugi_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1254 = 0; - $_etype1257 = 0; - $xfer += $input->readListBegin($_etype1257, $_size1254); - for ($_i1258 = 0; $_i1258 < $_size1254; ++$_i1258) + $_size1275 = 0; + $_etype1278 = 0; + $xfer += $input->readListBegin($_etype1278, $_size1275); + for ($_i1279 = 0; $_i1279 < $_size1275; ++$_i1279) { - $elem1259 = null; - $xfer += $input->readString($elem1259); - $this->success []= $elem1259; + $elem1280 = null; + $xfer += $input->readString($elem1280); + $this->success []= $elem1280; } $xfer += $input->readListEnd(); } else { @@ -42761,9 +43330,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1260) + foreach ($this->success as $iter1281) { - $xfer += $output->writeString($iter1260); + $xfer += $output->writeString($iter1281); } } $output->writeListEnd(); @@ -43880,14 +44449,14 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1261 = 0; - $_etype1264 = 0; - $xfer += $input->readListBegin($_etype1264, $_size1261); - for ($_i1265 = 0; $_i1265 < $_size1261; ++$_i1265) + $_size1282 = 0; + $_etype1285 = 0; + $xfer += $input->readListBegin($_etype1285, $_size1282); + for ($_i1286 = 0; $_i1286 < $_size1282; ++$_i1286) { - $elem1266 = null; - $xfer += $input->readString($elem1266); - $this->success []= $elem1266; + $elem1287 = null; + $xfer += $input->readString($elem1287); + $this->success []= $elem1287; } $xfer += $input->readListEnd(); } else { @@ -43915,9 +44484,9 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1267) + foreach ($this->success as $iter1288) { - $xfer += $output->writeString($iter1267); + $xfer += $output->writeString($iter1288); } } $output->writeListEnd(); @@ -44556,14 +45125,14 @@ class ThriftHiveMetastore_get_master_keys_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1268 = 0; - $_etype1271 = 0; - $xfer += $input->readListBegin($_etype1271, $_size1268); - for ($_i1272 = 0; $_i1272 < $_size1268; ++$_i1272) + $_size1289 = 0; + $_etype1292 = 0; + $xfer += $input->readListBegin($_etype1292, $_size1289); + for ($_i1293 = 0; $_i1293 < $_size1289; ++$_i1293) { - $elem1273 = null; - $xfer += $input->readString($elem1273); - $this->success []= $elem1273; + $elem1294 = null; + $xfer += $input->readString($elem1294); + $this->success []= $elem1294; } $xfer += $input->readListEnd(); } else { @@ -44591,9 +45160,9 @@ class ThriftHiveMetastore_get_master_keys_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1274) + foreach ($this->success as $iter1295) { - $xfer += $output->writeString($iter1274); + $xfer += $output->writeString($iter1295); } } $output->writeListEnd(); @@ -55132,15 +55701,15 @@ class ThriftHiveMetastore_get_schema_all_versions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1275 = 0; - $_etype1278 = 0; - $xfer += $input->readListBegin($_etype1278, $_size1275); - for ($_i1279 = 0; $_i1279 < $_size1275; ++$_i1279) + $_size1296 = 0; + $_etype1299 = 0; + $xfer += $input->readListBegin($_etype1299, $_size1296); + for ($_i1300 = 0; $_i1300 < $_size1296; ++$_i1300) { - $elem1280 = null; - $elem1280 = new \metastore\SchemaVersion(); - $xfer += $elem1280->read($input); - $this->success []= $elem1280; + $elem1301 = null; + $elem1301 = new \metastore\SchemaVersion(); + $xfer += $elem1301->read($input); + $this->success []= $elem1301; } $xfer += $input->readListEnd(); } else { @@ -55184,9 +55753,9 @@ class ThriftHiveMetastore_get_schema_all_versions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1281) + foreach ($this->success as $iter1302) { - $xfer += $iter1281->write($output); + $xfer += $iter1302->write($output); } } $output->writeListEnd(); diff --git a/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php b/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php index 3be16de3de..1ad2d04be0 100644 --- a/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php +++ b/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php @@ -1771,6 +1771,242 @@ class SQLDefaultConstraint { } +class SQLCheckConstraint { + static $_TSPEC; + + /** + * @var string + */ + public $table_db = null; + /** + * @var string + */ + public $table_name = null; + /** + * @var string + */ + public $column_name = null; + /** + * @var string + */ + public $check_expression = 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' => 'check_expression', + '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['check_expression'])) { + $this->check_expression = $vals['check_expression']; + } + 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 'SQLCheckConstraint'; + } + + 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->check_expression); + } 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('SQLCheckConstraint'); + 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->check_expression !== null) { + $xfer += $output->writeFieldBegin('check_expression', TType::STRING, 4); + $xfer += $output->writeString($this->check_expression); + $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; @@ -10393,54 +10629,43 @@ class DefaultConstraintsResponse { } -class DropConstraintRequest { +class CheckConstraintsRequest { 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 'CheckConstraintsRequest'; } public function read($input) @@ -10460,7 +10685,219 @@ 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->tbl_name); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('CheckConstraintsRequest'); + 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 CheckConstraintsResponse { + static $_TSPEC; + + /** + * @var \metastore\SQLCheckConstraint[] + */ + public $checkConstraints = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'checkConstraints', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\SQLCheckConstraint', + ), + ), + ); + } + if (is_array($vals)) { + if (isset($vals['checkConstraints'])) { + $this->checkConstraints = $vals['checkConstraints']; + } + } + } + + public function getName() { + return 'CheckConstraintsResponse'; + } + + 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->checkConstraints = array(); + $_size311 = 0; + $_etype314 = 0; + $xfer += $input->readListBegin($_etype314, $_size311); + for ($_i315 = 0; $_i315 < $_size311; ++$_i315) + { + $elem316 = null; + $elem316 = new \metastore\SQLCheckConstraint(); + $xfer += $elem316->read($input); + $this->checkConstraints []= $elem316; + } + $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('CheckConstraintsResponse'); + if ($this->checkConstraints !== null) { + if (!is_array($this->checkConstraints)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('checkConstraints', TType::LST, 1); + { + $output->writeListBegin(TType::STRUCT, count($this->checkConstraints)); + { + foreach ($this->checkConstraints as $iter317) + { + $xfer += $iter317->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); } @@ -10565,15 +11002,15 @@ class AddPrimaryKeyRequest { case 1: if ($ftype == TType::LST) { $this->primaryKeyCols = array(); - $_size311 = 0; - $_etype314 = 0; - $xfer += $input->readListBegin($_etype314, $_size311); - for ($_i315 = 0; $_i315 < $_size311; ++$_i315) + $_size318 = 0; + $_etype321 = 0; + $xfer += $input->readListBegin($_etype321, $_size318); + for ($_i322 = 0; $_i322 < $_size318; ++$_i322) { - $elem316 = null; - $elem316 = new \metastore\SQLPrimaryKey(); - $xfer += $elem316->read($input); - $this->primaryKeyCols []= $elem316; + $elem323 = null; + $elem323 = new \metastore\SQLPrimaryKey(); + $xfer += $elem323->read($input); + $this->primaryKeyCols []= $elem323; } $xfer += $input->readListEnd(); } else { @@ -10601,9 +11038,9 @@ class AddPrimaryKeyRequest { { $output->writeListBegin(TType::STRUCT, count($this->primaryKeyCols)); { - foreach ($this->primaryKeyCols as $iter317) + foreach ($this->primaryKeyCols as $iter324) { - $xfer += $iter317->write($output); + $xfer += $iter324->write($output); } } $output->writeListEnd(); @@ -10668,15 +11105,15 @@ class AddForeignKeyRequest { case 1: if ($ftype == TType::LST) { $this->foreignKeyCols = array(); - $_size318 = 0; - $_etype321 = 0; - $xfer += $input->readListBegin($_etype321, $_size318); - for ($_i322 = 0; $_i322 < $_size318; ++$_i322) + $_size325 = 0; + $_etype328 = 0; + $xfer += $input->readListBegin($_etype328, $_size325); + for ($_i329 = 0; $_i329 < $_size325; ++$_i329) { - $elem323 = null; - $elem323 = new \metastore\SQLForeignKey(); - $xfer += $elem323->read($input); - $this->foreignKeyCols []= $elem323; + $elem330 = null; + $elem330 = new \metastore\SQLForeignKey(); + $xfer += $elem330->read($input); + $this->foreignKeyCols []= $elem330; } $xfer += $input->readListEnd(); } else { @@ -10704,9 +11141,9 @@ class AddForeignKeyRequest { { $output->writeListBegin(TType::STRUCT, count($this->foreignKeyCols)); { - foreach ($this->foreignKeyCols as $iter324) + foreach ($this->foreignKeyCols as $iter331) { - $xfer += $iter324->write($output); + $xfer += $iter331->write($output); } } $output->writeListEnd(); @@ -10771,15 +11208,15 @@ class AddUniqueConstraintRequest { case 1: if ($ftype == TType::LST) { $this->uniqueConstraintCols = array(); - $_size325 = 0; - $_etype328 = 0; - $xfer += $input->readListBegin($_etype328, $_size325); - for ($_i329 = 0; $_i329 < $_size325; ++$_i329) + $_size332 = 0; + $_etype335 = 0; + $xfer += $input->readListBegin($_etype335, $_size332); + for ($_i336 = 0; $_i336 < $_size332; ++$_i336) { - $elem330 = null; - $elem330 = new \metastore\SQLUniqueConstraint(); - $xfer += $elem330->read($input); - $this->uniqueConstraintCols []= $elem330; + $elem337 = null; + $elem337 = new \metastore\SQLUniqueConstraint(); + $xfer += $elem337->read($input); + $this->uniqueConstraintCols []= $elem337; } $xfer += $input->readListEnd(); } else { @@ -10807,9 +11244,9 @@ class AddUniqueConstraintRequest { { $output->writeListBegin(TType::STRUCT, count($this->uniqueConstraintCols)); { - foreach ($this->uniqueConstraintCols as $iter331) + foreach ($this->uniqueConstraintCols as $iter338) { - $xfer += $iter331->write($output); + $xfer += $iter338->write($output); } } $output->writeListEnd(); @@ -10874,15 +11311,15 @@ class AddNotNullConstraintRequest { case 1: if ($ftype == TType::LST) { $this->notNullConstraintCols = array(); - $_size332 = 0; - $_etype335 = 0; - $xfer += $input->readListBegin($_etype335, $_size332); - for ($_i336 = 0; $_i336 < $_size332; ++$_i336) + $_size339 = 0; + $_etype342 = 0; + $xfer += $input->readListBegin($_etype342, $_size339); + for ($_i343 = 0; $_i343 < $_size339; ++$_i343) { - $elem337 = null; - $elem337 = new \metastore\SQLNotNullConstraint(); - $xfer += $elem337->read($input); - $this->notNullConstraintCols []= $elem337; + $elem344 = null; + $elem344 = new \metastore\SQLNotNullConstraint(); + $xfer += $elem344->read($input); + $this->notNullConstraintCols []= $elem344; } $xfer += $input->readListEnd(); } else { @@ -10910,9 +11347,9 @@ class AddNotNullConstraintRequest { { $output->writeListBegin(TType::STRUCT, count($this->notNullConstraintCols)); { - foreach ($this->notNullConstraintCols as $iter338) + foreach ($this->notNullConstraintCols as $iter345) { - $xfer += $iter338->write($output); + $xfer += $iter345->write($output); } } $output->writeListEnd(); @@ -10977,15 +11414,15 @@ class AddDefaultConstraintRequest { case 1: if ($ftype == TType::LST) { $this->defaultConstraintCols = array(); - $_size339 = 0; - $_etype342 = 0; - $xfer += $input->readListBegin($_etype342, $_size339); - for ($_i343 = 0; $_i343 < $_size339; ++$_i343) + $_size346 = 0; + $_etype349 = 0; + $xfer += $input->readListBegin($_etype349, $_size346); + for ($_i350 = 0; $_i350 < $_size346; ++$_i350) { - $elem344 = null; - $elem344 = new \metastore\SQLDefaultConstraint(); - $xfer += $elem344->read($input); - $this->defaultConstraintCols []= $elem344; + $elem351 = null; + $elem351 = new \metastore\SQLDefaultConstraint(); + $xfer += $elem351->read($input); + $this->defaultConstraintCols []= $elem351; } $xfer += $input->readListEnd(); } else { @@ -11013,9 +11450,112 @@ class AddDefaultConstraintRequest { { $output->writeListBegin(TType::STRUCT, count($this->defaultConstraintCols)); { - foreach ($this->defaultConstraintCols as $iter345) + foreach ($this->defaultConstraintCols as $iter352) { - $xfer += $iter345->write($output); + $xfer += $iter352->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class AddCheckConstraintRequest { + static $_TSPEC; + + /** + * @var \metastore\SQLCheckConstraint[] + */ + public $checkConstraintCols = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'checkConstraintCols', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\SQLCheckConstraint', + ), + ), + ); + } + if (is_array($vals)) { + if (isset($vals['checkConstraintCols'])) { + $this->checkConstraintCols = $vals['checkConstraintCols']; + } + } + } + + public function getName() { + return 'AddCheckConstraintRequest'; + } + + 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->checkConstraintCols = array(); + $_size353 = 0; + $_etype356 = 0; + $xfer += $input->readListBegin($_etype356, $_size353); + for ($_i357 = 0; $_i357 < $_size353; ++$_i357) + { + $elem358 = null; + $elem358 = new \metastore\SQLCheckConstraint(); + $xfer += $elem358->read($input); + $this->checkConstraintCols []= $elem358; + } + $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('AddCheckConstraintRequest'); + if ($this->checkConstraintCols !== null) { + if (!is_array($this->checkConstraintCols)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('checkConstraintCols', TType::LST, 1); + { + $output->writeListBegin(TType::STRUCT, count($this->checkConstraintCols)); + { + foreach ($this->checkConstraintCols as $iter359) + { + $xfer += $iter359->write($output); } } $output->writeListEnd(); @@ -11091,15 +11631,15 @@ class PartitionsByExprResult { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size346 = 0; - $_etype349 = 0; - $xfer += $input->readListBegin($_etype349, $_size346); - for ($_i350 = 0; $_i350 < $_size346; ++$_i350) + $_size360 = 0; + $_etype363 = 0; + $xfer += $input->readListBegin($_etype363, $_size360); + for ($_i364 = 0; $_i364 < $_size360; ++$_i364) { - $elem351 = null; - $elem351 = new \metastore\Partition(); - $xfer += $elem351->read($input); - $this->partitions []= $elem351; + $elem365 = null; + $elem365 = new \metastore\Partition(); + $xfer += $elem365->read($input); + $this->partitions []= $elem365; } $xfer += $input->readListEnd(); } else { @@ -11134,9 +11674,9 @@ class PartitionsByExprResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter352) + foreach ($this->partitions as $iter366) { - $xfer += $iter352->write($output); + $xfer += $iter366->write($output); } } $output->writeListEnd(); @@ -11373,15 +11913,15 @@ class TableStatsResult { case 1: if ($ftype == TType::LST) { $this->tableStats = array(); - $_size353 = 0; - $_etype356 = 0; - $xfer += $input->readListBegin($_etype356, $_size353); - for ($_i357 = 0; $_i357 < $_size353; ++$_i357) + $_size367 = 0; + $_etype370 = 0; + $xfer += $input->readListBegin($_etype370, $_size367); + for ($_i371 = 0; $_i371 < $_size367; ++$_i371) { - $elem358 = null; - $elem358 = new \metastore\ColumnStatisticsObj(); - $xfer += $elem358->read($input); - $this->tableStats []= $elem358; + $elem372 = null; + $elem372 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem372->read($input); + $this->tableStats []= $elem372; } $xfer += $input->readListEnd(); } else { @@ -11409,9 +11949,9 @@ class TableStatsResult { { $output->writeListBegin(TType::STRUCT, count($this->tableStats)); { - foreach ($this->tableStats as $iter359) + foreach ($this->tableStats as $iter373) { - $xfer += $iter359->write($output); + $xfer += $iter373->write($output); } } $output->writeListEnd(); @@ -11484,28 +12024,28 @@ class PartitionsStatsResult { case 1: if ($ftype == TType::MAP) { $this->partStats = array(); - $_size360 = 0; - $_ktype361 = 0; - $_vtype362 = 0; - $xfer += $input->readMapBegin($_ktype361, $_vtype362, $_size360); - for ($_i364 = 0; $_i364 < $_size360; ++$_i364) + $_size374 = 0; + $_ktype375 = 0; + $_vtype376 = 0; + $xfer += $input->readMapBegin($_ktype375, $_vtype376, $_size374); + for ($_i378 = 0; $_i378 < $_size374; ++$_i378) { - $key365 = ''; - $val366 = array(); - $xfer += $input->readString($key365); - $val366 = array(); - $_size367 = 0; - $_etype370 = 0; - $xfer += $input->readListBegin($_etype370, $_size367); - for ($_i371 = 0; $_i371 < $_size367; ++$_i371) + $key379 = ''; + $val380 = array(); + $xfer += $input->readString($key379); + $val380 = array(); + $_size381 = 0; + $_etype384 = 0; + $xfer += $input->readListBegin($_etype384, $_size381); + for ($_i385 = 0; $_i385 < $_size381; ++$_i385) { - $elem372 = null; - $elem372 = new \metastore\ColumnStatisticsObj(); - $xfer += $elem372->read($input); - $val366 []= $elem372; + $elem386 = null; + $elem386 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem386->read($input); + $val380 []= $elem386; } $xfer += $input->readListEnd(); - $this->partStats[$key365] = $val366; + $this->partStats[$key379] = $val380; } $xfer += $input->readMapEnd(); } else { @@ -11533,15 +12073,15 @@ class PartitionsStatsResult { { $output->writeMapBegin(TType::STRING, TType::LST, count($this->partStats)); { - foreach ($this->partStats as $kiter373 => $viter374) + foreach ($this->partStats as $kiter387 => $viter388) { - $xfer += $output->writeString($kiter373); + $xfer += $output->writeString($kiter387); { - $output->writeListBegin(TType::STRUCT, count($viter374)); + $output->writeListBegin(TType::STRUCT, count($viter388)); { - foreach ($viter374 as $iter375) + foreach ($viter388 as $iter389) { - $xfer += $iter375->write($output); + $xfer += $iter389->write($output); } } $output->writeListEnd(); @@ -11645,14 +12185,14 @@ class TableStatsRequest { case 3: if ($ftype == TType::LST) { $this->colNames = array(); - $_size376 = 0; - $_etype379 = 0; - $xfer += $input->readListBegin($_etype379, $_size376); - for ($_i380 = 0; $_i380 < $_size376; ++$_i380) + $_size390 = 0; + $_etype393 = 0; + $xfer += $input->readListBegin($_etype393, $_size390); + for ($_i394 = 0; $_i394 < $_size390; ++$_i394) { - $elem381 = null; - $xfer += $input->readString($elem381); - $this->colNames []= $elem381; + $elem395 = null; + $xfer += $input->readString($elem395); + $this->colNames []= $elem395; } $xfer += $input->readListEnd(); } else { @@ -11690,9 +12230,9 @@ class TableStatsRequest { { $output->writeListBegin(TType::STRING, count($this->colNames)); { - foreach ($this->colNames as $iter382) + foreach ($this->colNames as $iter396) { - $xfer += $output->writeString($iter382); + $xfer += $output->writeString($iter396); } } $output->writeListEnd(); @@ -11807,14 +12347,14 @@ class PartitionsStatsRequest { case 3: if ($ftype == TType::LST) { $this->colNames = array(); - $_size383 = 0; - $_etype386 = 0; - $xfer += $input->readListBegin($_etype386, $_size383); - for ($_i387 = 0; $_i387 < $_size383; ++$_i387) + $_size397 = 0; + $_etype400 = 0; + $xfer += $input->readListBegin($_etype400, $_size397); + for ($_i401 = 0; $_i401 < $_size397; ++$_i401) { - $elem388 = null; - $xfer += $input->readString($elem388); - $this->colNames []= $elem388; + $elem402 = null; + $xfer += $input->readString($elem402); + $this->colNames []= $elem402; } $xfer += $input->readListEnd(); } else { @@ -11824,14 +12364,14 @@ class PartitionsStatsRequest { case 4: if ($ftype == TType::LST) { $this->partNames = array(); - $_size389 = 0; - $_etype392 = 0; - $xfer += $input->readListBegin($_etype392, $_size389); - for ($_i393 = 0; $_i393 < $_size389; ++$_i393) + $_size403 = 0; + $_etype406 = 0; + $xfer += $input->readListBegin($_etype406, $_size403); + for ($_i407 = 0; $_i407 < $_size403; ++$_i407) { - $elem394 = null; - $xfer += $input->readString($elem394); - $this->partNames []= $elem394; + $elem408 = null; + $xfer += $input->readString($elem408); + $this->partNames []= $elem408; } $xfer += $input->readListEnd(); } else { @@ -11869,9 +12409,9 @@ class PartitionsStatsRequest { { $output->writeListBegin(TType::STRING, count($this->colNames)); { - foreach ($this->colNames as $iter395) + foreach ($this->colNames as $iter409) { - $xfer += $output->writeString($iter395); + $xfer += $output->writeString($iter409); } } $output->writeListEnd(); @@ -11886,9 +12426,9 @@ class PartitionsStatsRequest { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter396) + foreach ($this->partNames as $iter410) { - $xfer += $output->writeString($iter396); + $xfer += $output->writeString($iter410); } } $output->writeListEnd(); @@ -11953,15 +12493,15 @@ class AddPartitionsResult { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size397 = 0; - $_etype400 = 0; - $xfer += $input->readListBegin($_etype400, $_size397); - for ($_i401 = 0; $_i401 < $_size397; ++$_i401) + $_size411 = 0; + $_etype414 = 0; + $xfer += $input->readListBegin($_etype414, $_size411); + for ($_i415 = 0; $_i415 < $_size411; ++$_i415) { - $elem402 = null; - $elem402 = new \metastore\Partition(); - $xfer += $elem402->read($input); - $this->partitions []= $elem402; + $elem416 = null; + $elem416 = new \metastore\Partition(); + $xfer += $elem416->read($input); + $this->partitions []= $elem416; } $xfer += $input->readListEnd(); } else { @@ -11989,9 +12529,9 @@ class AddPartitionsResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter403) + foreach ($this->partitions as $iter417) { - $xfer += $iter403->write($output); + $xfer += $iter417->write($output); } } $output->writeListEnd(); @@ -12114,15 +12654,15 @@ class AddPartitionsRequest { case 3: if ($ftype == TType::LST) { $this->parts = array(); - $_size404 = 0; - $_etype407 = 0; - $xfer += $input->readListBegin($_etype407, $_size404); - for ($_i408 = 0; $_i408 < $_size404; ++$_i408) + $_size418 = 0; + $_etype421 = 0; + $xfer += $input->readListBegin($_etype421, $_size418); + for ($_i422 = 0; $_i422 < $_size418; ++$_i422) { - $elem409 = null; - $elem409 = new \metastore\Partition(); - $xfer += $elem409->read($input); - $this->parts []= $elem409; + $elem423 = null; + $elem423 = new \metastore\Partition(); + $xfer += $elem423->read($input); + $this->parts []= $elem423; } $xfer += $input->readListEnd(); } else { @@ -12174,9 +12714,9 @@ class AddPartitionsRequest { { $output->writeListBegin(TType::STRUCT, count($this->parts)); { - foreach ($this->parts as $iter410) + foreach ($this->parts as $iter424) { - $xfer += $iter410->write($output); + $xfer += $iter424->write($output); } } $output->writeListEnd(); @@ -12251,15 +12791,15 @@ class DropPartitionsResult { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size411 = 0; - $_etype414 = 0; - $xfer += $input->readListBegin($_etype414, $_size411); - for ($_i415 = 0; $_i415 < $_size411; ++$_i415) + $_size425 = 0; + $_etype428 = 0; + $xfer += $input->readListBegin($_etype428, $_size425); + for ($_i429 = 0; $_i429 < $_size425; ++$_i429) { - $elem416 = null; - $elem416 = new \metastore\Partition(); - $xfer += $elem416->read($input); - $this->partitions []= $elem416; + $elem430 = null; + $elem430 = new \metastore\Partition(); + $xfer += $elem430->read($input); + $this->partitions []= $elem430; } $xfer += $input->readListEnd(); } else { @@ -12287,9 +12827,9 @@ class DropPartitionsResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter417) + foreach ($this->partitions as $iter431) { - $xfer += $iter417->write($output); + $xfer += $iter431->write($output); } } $output->writeListEnd(); @@ -12467,14 +13007,14 @@ class RequestPartsSpec { case 1: if ($ftype == TType::LST) { $this->names = array(); - $_size418 = 0; - $_etype421 = 0; - $xfer += $input->readListBegin($_etype421, $_size418); - for ($_i422 = 0; $_i422 < $_size418; ++$_i422) + $_size432 = 0; + $_etype435 = 0; + $xfer += $input->readListBegin($_etype435, $_size432); + for ($_i436 = 0; $_i436 < $_size432; ++$_i436) { - $elem423 = null; - $xfer += $input->readString($elem423); - $this->names []= $elem423; + $elem437 = null; + $xfer += $input->readString($elem437); + $this->names []= $elem437; } $xfer += $input->readListEnd(); } else { @@ -12484,15 +13024,15 @@ class RequestPartsSpec { case 2: if ($ftype == TType::LST) { $this->exprs = array(); - $_size424 = 0; - $_etype427 = 0; - $xfer += $input->readListBegin($_etype427, $_size424); - for ($_i428 = 0; $_i428 < $_size424; ++$_i428) + $_size438 = 0; + $_etype441 = 0; + $xfer += $input->readListBegin($_etype441, $_size438); + for ($_i442 = 0; $_i442 < $_size438; ++$_i442) { - $elem429 = null; - $elem429 = new \metastore\DropPartitionsExpr(); - $xfer += $elem429->read($input); - $this->exprs []= $elem429; + $elem443 = null; + $elem443 = new \metastore\DropPartitionsExpr(); + $xfer += $elem443->read($input); + $this->exprs []= $elem443; } $xfer += $input->readListEnd(); } else { @@ -12520,9 +13060,9 @@ class RequestPartsSpec { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter430) + foreach ($this->names as $iter444) { - $xfer += $output->writeString($iter430); + $xfer += $output->writeString($iter444); } } $output->writeListEnd(); @@ -12537,9 +13077,9 @@ class RequestPartsSpec { { $output->writeListBegin(TType::STRUCT, count($this->exprs)); { - foreach ($this->exprs as $iter431) + foreach ($this->exprs as $iter445) { - $xfer += $iter431->write($output); + $xfer += $iter445->write($output); } } $output->writeListEnd(); @@ -12946,15 +13486,15 @@ class PartitionValuesRequest { case 3: if ($ftype == TType::LST) { $this->partitionKeys = array(); - $_size432 = 0; - $_etype435 = 0; - $xfer += $input->readListBegin($_etype435, $_size432); - for ($_i436 = 0; $_i436 < $_size432; ++$_i436) + $_size446 = 0; + $_etype449 = 0; + $xfer += $input->readListBegin($_etype449, $_size446); + for ($_i450 = 0; $_i450 < $_size446; ++$_i450) { - $elem437 = null; - $elem437 = new \metastore\FieldSchema(); - $xfer += $elem437->read($input); - $this->partitionKeys []= $elem437; + $elem451 = null; + $elem451 = new \metastore\FieldSchema(); + $xfer += $elem451->read($input); + $this->partitionKeys []= $elem451; } $xfer += $input->readListEnd(); } else { @@ -12978,15 +13518,15 @@ class PartitionValuesRequest { case 6: if ($ftype == TType::LST) { $this->partitionOrder = array(); - $_size438 = 0; - $_etype441 = 0; - $xfer += $input->readListBegin($_etype441, $_size438); - for ($_i442 = 0; $_i442 < $_size438; ++$_i442) + $_size452 = 0; + $_etype455 = 0; + $xfer += $input->readListBegin($_etype455, $_size452); + for ($_i456 = 0; $_i456 < $_size452; ++$_i456) { - $elem443 = null; - $elem443 = new \metastore\FieldSchema(); - $xfer += $elem443->read($input); - $this->partitionOrder []= $elem443; + $elem457 = null; + $elem457 = new \metastore\FieldSchema(); + $xfer += $elem457->read($input); + $this->partitionOrder []= $elem457; } $xfer += $input->readListEnd(); } else { @@ -13038,9 +13578,9 @@ class PartitionValuesRequest { { $output->writeListBegin(TType::STRUCT, count($this->partitionKeys)); { - foreach ($this->partitionKeys as $iter444) + foreach ($this->partitionKeys as $iter458) { - $xfer += $iter444->write($output); + $xfer += $iter458->write($output); } } $output->writeListEnd(); @@ -13065,9 +13605,9 @@ class PartitionValuesRequest { { $output->writeListBegin(TType::STRUCT, count($this->partitionOrder)); { - foreach ($this->partitionOrder as $iter445) + foreach ($this->partitionOrder as $iter459) { - $xfer += $iter445->write($output); + $xfer += $iter459->write($output); } } $output->writeListEnd(); @@ -13141,14 +13681,14 @@ class PartitionValuesRow { case 1: if ($ftype == TType::LST) { $this->row = array(); - $_size446 = 0; - $_etype449 = 0; - $xfer += $input->readListBegin($_etype449, $_size446); - for ($_i450 = 0; $_i450 < $_size446; ++$_i450) + $_size460 = 0; + $_etype463 = 0; + $xfer += $input->readListBegin($_etype463, $_size460); + for ($_i464 = 0; $_i464 < $_size460; ++$_i464) { - $elem451 = null; - $xfer += $input->readString($elem451); - $this->row []= $elem451; + $elem465 = null; + $xfer += $input->readString($elem465); + $this->row []= $elem465; } $xfer += $input->readListEnd(); } else { @@ -13176,9 +13716,9 @@ class PartitionValuesRow { { $output->writeListBegin(TType::STRING, count($this->row)); { - foreach ($this->row as $iter452) + foreach ($this->row as $iter466) { - $xfer += $output->writeString($iter452); + $xfer += $output->writeString($iter466); } } $output->writeListEnd(); @@ -13243,15 +13783,15 @@ class PartitionValuesResponse { case 1: if ($ftype == TType::LST) { $this->partitionValues = array(); - $_size453 = 0; - $_etype456 = 0; - $xfer += $input->readListBegin($_etype456, $_size453); - for ($_i457 = 0; $_i457 < $_size453; ++$_i457) + $_size467 = 0; + $_etype470 = 0; + $xfer += $input->readListBegin($_etype470, $_size467); + for ($_i471 = 0; $_i471 < $_size467; ++$_i471) { - $elem458 = null; - $elem458 = new \metastore\PartitionValuesRow(); - $xfer += $elem458->read($input); - $this->partitionValues []= $elem458; + $elem472 = null; + $elem472 = new \metastore\PartitionValuesRow(); + $xfer += $elem472->read($input); + $this->partitionValues []= $elem472; } $xfer += $input->readListEnd(); } else { @@ -13279,9 +13819,9 @@ class PartitionValuesResponse { { $output->writeListBegin(TType::STRUCT, count($this->partitionValues)); { - foreach ($this->partitionValues as $iter459) + foreach ($this->partitionValues as $iter473) { - $xfer += $iter459->write($output); + $xfer += $iter473->write($output); } } $output->writeListEnd(); @@ -13570,15 +14110,15 @@ class Function { case 8: if ($ftype == TType::LST) { $this->resourceUris = array(); - $_size460 = 0; - $_etype463 = 0; - $xfer += $input->readListBegin($_etype463, $_size460); - for ($_i464 = 0; $_i464 < $_size460; ++$_i464) + $_size474 = 0; + $_etype477 = 0; + $xfer += $input->readListBegin($_etype477, $_size474); + for ($_i478 = 0; $_i478 < $_size474; ++$_i478) { - $elem465 = null; - $elem465 = new \metastore\ResourceUri(); - $xfer += $elem465->read($input); - $this->resourceUris []= $elem465; + $elem479 = null; + $elem479 = new \metastore\ResourceUri(); + $xfer += $elem479->read($input); + $this->resourceUris []= $elem479; } $xfer += $input->readListEnd(); } else { @@ -13641,9 +14181,9 @@ class Function { { $output->writeListBegin(TType::STRUCT, count($this->resourceUris)); { - foreach ($this->resourceUris as $iter466) + foreach ($this->resourceUris as $iter480) { - $xfer += $iter466->write($output); + $xfer += $iter480->write($output); } } $output->writeListEnd(); @@ -13985,15 +14525,15 @@ class GetOpenTxnsInfoResponse { case 2: if ($ftype == TType::LST) { $this->open_txns = array(); - $_size467 = 0; - $_etype470 = 0; - $xfer += $input->readListBegin($_etype470, $_size467); - for ($_i471 = 0; $_i471 < $_size467; ++$_i471) + $_size481 = 0; + $_etype484 = 0; + $xfer += $input->readListBegin($_etype484, $_size481); + for ($_i485 = 0; $_i485 < $_size481; ++$_i485) { - $elem472 = null; - $elem472 = new \metastore\TxnInfo(); - $xfer += $elem472->read($input); - $this->open_txns []= $elem472; + $elem486 = null; + $elem486 = new \metastore\TxnInfo(); + $xfer += $elem486->read($input); + $this->open_txns []= $elem486; } $xfer += $input->readListEnd(); } else { @@ -14026,9 +14566,9 @@ class GetOpenTxnsInfoResponse { { $output->writeListBegin(TType::STRUCT, count($this->open_txns)); { - foreach ($this->open_txns as $iter473) + foreach ($this->open_txns as $iter487) { - $xfer += $iter473->write($output); + $xfer += $iter487->write($output); } } $output->writeListEnd(); @@ -14132,14 +14672,14 @@ class GetOpenTxnsResponse { case 2: if ($ftype == TType::LST) { $this->open_txns = array(); - $_size474 = 0; - $_etype477 = 0; - $xfer += $input->readListBegin($_etype477, $_size474); - for ($_i478 = 0; $_i478 < $_size474; ++$_i478) + $_size488 = 0; + $_etype491 = 0; + $xfer += $input->readListBegin($_etype491, $_size488); + for ($_i492 = 0; $_i492 < $_size488; ++$_i492) { - $elem479 = null; - $xfer += $input->readI64($elem479); - $this->open_txns []= $elem479; + $elem493 = null; + $xfer += $input->readI64($elem493); + $this->open_txns []= $elem493; } $xfer += $input->readListEnd(); } else { @@ -14186,9 +14726,9 @@ class GetOpenTxnsResponse { { $output->writeListBegin(TType::I64, count($this->open_txns)); { - foreach ($this->open_txns as $iter480) + foreach ($this->open_txns as $iter494) { - $xfer += $output->writeI64($iter480); + $xfer += $output->writeI64($iter494); } } $output->writeListEnd(); @@ -14406,14 +14946,14 @@ class OpenTxnsResponse { case 1: if ($ftype == TType::LST) { $this->txn_ids = array(); - $_size481 = 0; - $_etype484 = 0; - $xfer += $input->readListBegin($_etype484, $_size481); - for ($_i485 = 0; $_i485 < $_size481; ++$_i485) + $_size495 = 0; + $_etype498 = 0; + $xfer += $input->readListBegin($_etype498, $_size495); + for ($_i499 = 0; $_i499 < $_size495; ++$_i499) { - $elem486 = null; - $xfer += $input->readI64($elem486); - $this->txn_ids []= $elem486; + $elem500 = null; + $xfer += $input->readI64($elem500); + $this->txn_ids []= $elem500; } $xfer += $input->readListEnd(); } else { @@ -14441,9 +14981,9 @@ class OpenTxnsResponse { { $output->writeListBegin(TType::I64, count($this->txn_ids)); { - foreach ($this->txn_ids as $iter487) + foreach ($this->txn_ids as $iter501) { - $xfer += $output->writeI64($iter487); + $xfer += $output->writeI64($iter501); } } $output->writeListEnd(); @@ -14582,14 +15122,14 @@ class AbortTxnsRequest { case 1: if ($ftype == TType::LST) { $this->txn_ids = array(); - $_size488 = 0; - $_etype491 = 0; - $xfer += $input->readListBegin($_etype491, $_size488); - for ($_i492 = 0; $_i492 < $_size488; ++$_i492) + $_size502 = 0; + $_etype505 = 0; + $xfer += $input->readListBegin($_etype505, $_size502); + for ($_i506 = 0; $_i506 < $_size502; ++$_i506) { - $elem493 = null; - $xfer += $input->readI64($elem493); - $this->txn_ids []= $elem493; + $elem507 = null; + $xfer += $input->readI64($elem507); + $this->txn_ids []= $elem507; } $xfer += $input->readListEnd(); } else { @@ -14617,9 +15157,9 @@ class AbortTxnsRequest { { $output->writeListBegin(TType::I64, count($this->txn_ids)); { - foreach ($this->txn_ids as $iter494) + foreach ($this->txn_ids as $iter508) { - $xfer += $output->writeI64($iter494); + $xfer += $output->writeI64($iter508); } } $output->writeListEnd(); @@ -14769,14 +15309,14 @@ class GetValidWriteIdsRequest { case 1: if ($ftype == TType::LST) { $this->fullTableNames = array(); - $_size495 = 0; - $_etype498 = 0; - $xfer += $input->readListBegin($_etype498, $_size495); - for ($_i499 = 0; $_i499 < $_size495; ++$_i499) + $_size509 = 0; + $_etype512 = 0; + $xfer += $input->readListBegin($_etype512, $_size509); + for ($_i513 = 0; $_i513 < $_size509; ++$_i513) { - $elem500 = null; - $xfer += $input->readString($elem500); - $this->fullTableNames []= $elem500; + $elem514 = null; + $xfer += $input->readString($elem514); + $this->fullTableNames []= $elem514; } $xfer += $input->readListEnd(); } else { @@ -14811,9 +15351,9 @@ class GetValidWriteIdsRequest { { $output->writeListBegin(TType::STRING, count($this->fullTableNames)); { - foreach ($this->fullTableNames as $iter501) + foreach ($this->fullTableNames as $iter515) { - $xfer += $output->writeString($iter501); + $xfer += $output->writeString($iter515); } } $output->writeListEnd(); @@ -14940,14 +15480,14 @@ class TableValidWriteIds { case 3: if ($ftype == TType::LST) { $this->invalidWriteIds = array(); - $_size502 = 0; - $_etype505 = 0; - $xfer += $input->readListBegin($_etype505, $_size502); - for ($_i506 = 0; $_i506 < $_size502; ++$_i506) + $_size516 = 0; + $_etype519 = 0; + $xfer += $input->readListBegin($_etype519, $_size516); + for ($_i520 = 0; $_i520 < $_size516; ++$_i520) { - $elem507 = null; - $xfer += $input->readI64($elem507); - $this->invalidWriteIds []= $elem507; + $elem521 = null; + $xfer += $input->readI64($elem521); + $this->invalidWriteIds []= $elem521; } $xfer += $input->readListEnd(); } else { @@ -14999,9 +15539,9 @@ class TableValidWriteIds { { $output->writeListBegin(TType::I64, count($this->invalidWriteIds)); { - foreach ($this->invalidWriteIds as $iter508) + foreach ($this->invalidWriteIds as $iter522) { - $xfer += $output->writeI64($iter508); + $xfer += $output->writeI64($iter522); } } $output->writeListEnd(); @@ -15076,15 +15616,15 @@ class GetValidWriteIdsResponse { case 1: if ($ftype == TType::LST) { $this->tblValidWriteIds = array(); - $_size509 = 0; - $_etype512 = 0; - $xfer += $input->readListBegin($_etype512, $_size509); - for ($_i513 = 0; $_i513 < $_size509; ++$_i513) + $_size523 = 0; + $_etype526 = 0; + $xfer += $input->readListBegin($_etype526, $_size523); + for ($_i527 = 0; $_i527 < $_size523; ++$_i527) { - $elem514 = null; - $elem514 = new \metastore\TableValidWriteIds(); - $xfer += $elem514->read($input); - $this->tblValidWriteIds []= $elem514; + $elem528 = null; + $elem528 = new \metastore\TableValidWriteIds(); + $xfer += $elem528->read($input); + $this->tblValidWriteIds []= $elem528; } $xfer += $input->readListEnd(); } else { @@ -15112,9 +15652,9 @@ class GetValidWriteIdsResponse { { $output->writeListBegin(TType::STRUCT, count($this->tblValidWriteIds)); { - foreach ($this->tblValidWriteIds as $iter515) + foreach ($this->tblValidWriteIds as $iter529) { - $xfer += $iter515->write($output); + $xfer += $iter529->write($output); } } $output->writeListEnd(); @@ -15200,14 +15740,14 @@ class AllocateTableWriteIdsRequest { case 1: if ($ftype == TType::LST) { $this->txnIds = array(); - $_size516 = 0; - $_etype519 = 0; - $xfer += $input->readListBegin($_etype519, $_size516); - for ($_i520 = 0; $_i520 < $_size516; ++$_i520) + $_size530 = 0; + $_etype533 = 0; + $xfer += $input->readListBegin($_etype533, $_size530); + for ($_i534 = 0; $_i534 < $_size530; ++$_i534) { - $elem521 = null; - $xfer += $input->readI64($elem521); - $this->txnIds []= $elem521; + $elem535 = null; + $xfer += $input->readI64($elem535); + $this->txnIds []= $elem535; } $xfer += $input->readListEnd(); } else { @@ -15249,9 +15789,9 @@ class AllocateTableWriteIdsRequest { { $output->writeListBegin(TType::I64, count($this->txnIds)); { - foreach ($this->txnIds as $iter522) + foreach ($this->txnIds as $iter536) { - $xfer += $output->writeI64($iter522); + $xfer += $output->writeI64($iter536); } } $output->writeListEnd(); @@ -15424,15 +15964,15 @@ class AllocateTableWriteIdsResponse { case 1: if ($ftype == TType::LST) { $this->txnToWriteIds = array(); - $_size523 = 0; - $_etype526 = 0; - $xfer += $input->readListBegin($_etype526, $_size523); - for ($_i527 = 0; $_i527 < $_size523; ++$_i527) + $_size537 = 0; + $_etype540 = 0; + $xfer += $input->readListBegin($_etype540, $_size537); + for ($_i541 = 0; $_i541 < $_size537; ++$_i541) { - $elem528 = null; - $elem528 = new \metastore\TxnToWriteId(); - $xfer += $elem528->read($input); - $this->txnToWriteIds []= $elem528; + $elem542 = null; + $elem542 = new \metastore\TxnToWriteId(); + $xfer += $elem542->read($input); + $this->txnToWriteIds []= $elem542; } $xfer += $input->readListEnd(); } else { @@ -15460,9 +16000,9 @@ class AllocateTableWriteIdsResponse { { $output->writeListBegin(TType::STRUCT, count($this->txnToWriteIds)); { - foreach ($this->txnToWriteIds as $iter529) + foreach ($this->txnToWriteIds as $iter543) { - $xfer += $iter529->write($output); + $xfer += $iter543->write($output); } } $output->writeListEnd(); @@ -15807,15 +16347,15 @@ class LockRequest { case 1: if ($ftype == TType::LST) { $this->component = array(); - $_size530 = 0; - $_etype533 = 0; - $xfer += $input->readListBegin($_etype533, $_size530); - for ($_i534 = 0; $_i534 < $_size530; ++$_i534) + $_size544 = 0; + $_etype547 = 0; + $xfer += $input->readListBegin($_etype547, $_size544); + for ($_i548 = 0; $_i548 < $_size544; ++$_i548) { - $elem535 = null; - $elem535 = new \metastore\LockComponent(); - $xfer += $elem535->read($input); - $this->component []= $elem535; + $elem549 = null; + $elem549 = new \metastore\LockComponent(); + $xfer += $elem549->read($input); + $this->component []= $elem549; } $xfer += $input->readListEnd(); } else { @@ -15871,9 +16411,9 @@ class LockRequest { { $output->writeListBegin(TType::STRUCT, count($this->component)); { - foreach ($this->component as $iter536) + foreach ($this->component as $iter550) { - $xfer += $iter536->write($output); + $xfer += $iter550->write($output); } } $output->writeListEnd(); @@ -16816,15 +17356,15 @@ class ShowLocksResponse { case 1: if ($ftype == TType::LST) { $this->locks = array(); - $_size537 = 0; - $_etype540 = 0; - $xfer += $input->readListBegin($_etype540, $_size537); - for ($_i541 = 0; $_i541 < $_size537; ++$_i541) + $_size551 = 0; + $_etype554 = 0; + $xfer += $input->readListBegin($_etype554, $_size551); + for ($_i555 = 0; $_i555 < $_size551; ++$_i555) { - $elem542 = null; - $elem542 = new \metastore\ShowLocksResponseElement(); - $xfer += $elem542->read($input); - $this->locks []= $elem542; + $elem556 = null; + $elem556 = new \metastore\ShowLocksResponseElement(); + $xfer += $elem556->read($input); + $this->locks []= $elem556; } $xfer += $input->readListEnd(); } else { @@ -16852,9 +17392,9 @@ class ShowLocksResponse { { $output->writeListBegin(TType::STRUCT, count($this->locks)); { - foreach ($this->locks as $iter543) + foreach ($this->locks as $iter557) { - $xfer += $iter543->write($output); + $xfer += $iter557->write($output); } } $output->writeListEnd(); @@ -17129,17 +17669,17 @@ class HeartbeatTxnRangeResponse { case 1: if ($ftype == TType::SET) { $this->aborted = array(); - $_size544 = 0; - $_etype547 = 0; - $xfer += $input->readSetBegin($_etype547, $_size544); - for ($_i548 = 0; $_i548 < $_size544; ++$_i548) + $_size558 = 0; + $_etype561 = 0; + $xfer += $input->readSetBegin($_etype561, $_size558); + for ($_i562 = 0; $_i562 < $_size558; ++$_i562) { - $elem549 = null; - $xfer += $input->readI64($elem549); - if (is_scalar($elem549)) { - $this->aborted[$elem549] = true; + $elem563 = null; + $xfer += $input->readI64($elem563); + if (is_scalar($elem563)) { + $this->aborted[$elem563] = true; } else { - $this->aborted []= $elem549; + $this->aborted []= $elem563; } } $xfer += $input->readSetEnd(); @@ -17150,17 +17690,17 @@ class HeartbeatTxnRangeResponse { case 2: if ($ftype == TType::SET) { $this->nosuch = array(); - $_size550 = 0; - $_etype553 = 0; - $xfer += $input->readSetBegin($_etype553, $_size550); - for ($_i554 = 0; $_i554 < $_size550; ++$_i554) + $_size564 = 0; + $_etype567 = 0; + $xfer += $input->readSetBegin($_etype567, $_size564); + for ($_i568 = 0; $_i568 < $_size564; ++$_i568) { - $elem555 = null; - $xfer += $input->readI64($elem555); - if (is_scalar($elem555)) { - $this->nosuch[$elem555] = true; + $elem569 = null; + $xfer += $input->readI64($elem569); + if (is_scalar($elem569)) { + $this->nosuch[$elem569] = true; } else { - $this->nosuch []= $elem555; + $this->nosuch []= $elem569; } } $xfer += $input->readSetEnd(); @@ -17189,12 +17729,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->aborted)); { - foreach ($this->aborted as $iter556 => $iter557) + foreach ($this->aborted as $iter570 => $iter571) { - if (is_scalar($iter557)) { - $xfer += $output->writeI64($iter556); + if (is_scalar($iter571)) { + $xfer += $output->writeI64($iter570); } else { - $xfer += $output->writeI64($iter557); + $xfer += $output->writeI64($iter571); } } } @@ -17210,12 +17750,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->nosuch)); { - foreach ($this->nosuch as $iter558 => $iter559) + foreach ($this->nosuch as $iter572 => $iter573) { - if (is_scalar($iter559)) { - $xfer += $output->writeI64($iter558); + if (is_scalar($iter573)) { + $xfer += $output->writeI64($iter572); } else { - $xfer += $output->writeI64($iter559); + $xfer += $output->writeI64($iter573); } } } @@ -17374,17 +17914,17 @@ class CompactionRequest { case 6: if ($ftype == TType::MAP) { $this->properties = array(); - $_size560 = 0; - $_ktype561 = 0; - $_vtype562 = 0; - $xfer += $input->readMapBegin($_ktype561, $_vtype562, $_size560); - for ($_i564 = 0; $_i564 < $_size560; ++$_i564) + $_size574 = 0; + $_ktype575 = 0; + $_vtype576 = 0; + $xfer += $input->readMapBegin($_ktype575, $_vtype576, $_size574); + for ($_i578 = 0; $_i578 < $_size574; ++$_i578) { - $key565 = ''; - $val566 = ''; - $xfer += $input->readString($key565); - $xfer += $input->readString($val566); - $this->properties[$key565] = $val566; + $key579 = ''; + $val580 = ''; + $xfer += $input->readString($key579); + $xfer += $input->readString($val580); + $this->properties[$key579] = $val580; } $xfer += $input->readMapEnd(); } else { @@ -17437,10 +17977,10 @@ class CompactionRequest { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); { - foreach ($this->properties as $kiter567 => $viter568) + foreach ($this->properties as $kiter581 => $viter582) { - $xfer += $output->writeString($kiter567); - $xfer += $output->writeString($viter568); + $xfer += $output->writeString($kiter581); + $xfer += $output->writeString($viter582); } } $output->writeMapEnd(); @@ -18027,15 +18567,15 @@ class ShowCompactResponse { case 1: if ($ftype == TType::LST) { $this->compacts = array(); - $_size569 = 0; - $_etype572 = 0; - $xfer += $input->readListBegin($_etype572, $_size569); - for ($_i573 = 0; $_i573 < $_size569; ++$_i573) + $_size583 = 0; + $_etype586 = 0; + $xfer += $input->readListBegin($_etype586, $_size583); + for ($_i587 = 0; $_i587 < $_size583; ++$_i587) { - $elem574 = null; - $elem574 = new \metastore\ShowCompactResponseElement(); - $xfer += $elem574->read($input); - $this->compacts []= $elem574; + $elem588 = null; + $elem588 = new \metastore\ShowCompactResponseElement(); + $xfer += $elem588->read($input); + $this->compacts []= $elem588; } $xfer += $input->readListEnd(); } else { @@ -18063,9 +18603,9 @@ class ShowCompactResponse { { $output->writeListBegin(TType::STRUCT, count($this->compacts)); { - foreach ($this->compacts as $iter575) + foreach ($this->compacts as $iter589) { - $xfer += $iter575->write($output); + $xfer += $iter589->write($output); } } $output->writeListEnd(); @@ -18212,14 +18752,14 @@ class AddDynamicPartitions { case 5: if ($ftype == TType::LST) { $this->partitionnames = array(); - $_size576 = 0; - $_etype579 = 0; - $xfer += $input->readListBegin($_etype579, $_size576); - for ($_i580 = 0; $_i580 < $_size576; ++$_i580) + $_size590 = 0; + $_etype593 = 0; + $xfer += $input->readListBegin($_etype593, $_size590); + for ($_i594 = 0; $_i594 < $_size590; ++$_i594) { - $elem581 = null; - $xfer += $input->readString($elem581); - $this->partitionnames []= $elem581; + $elem595 = null; + $xfer += $input->readString($elem595); + $this->partitionnames []= $elem595; } $xfer += $input->readListEnd(); } else { @@ -18274,9 +18814,9 @@ class AddDynamicPartitions { { $output->writeListBegin(TType::STRING, count($this->partitionnames)); { - foreach ($this->partitionnames as $iter582) + foreach ($this->partitionnames as $iter596) { - $xfer += $output->writeString($iter582); + $xfer += $output->writeString($iter596); } } $output->writeListEnd(); @@ -18582,17 +19122,17 @@ class CreationMetadata { case 3: if ($ftype == TType::SET) { $this->tablesUsed = array(); - $_size583 = 0; - $_etype586 = 0; - $xfer += $input->readSetBegin($_etype586, $_size583); - for ($_i587 = 0; $_i587 < $_size583; ++$_i587) + $_size597 = 0; + $_etype600 = 0; + $xfer += $input->readSetBegin($_etype600, $_size597); + for ($_i601 = 0; $_i601 < $_size597; ++$_i601) { - $elem588 = null; - $xfer += $input->readString($elem588); - if (is_scalar($elem588)) { - $this->tablesUsed[$elem588] = true; + $elem602 = null; + $xfer += $input->readString($elem602); + if (is_scalar($elem602)) { + $this->tablesUsed[$elem602] = true; } else { - $this->tablesUsed []= $elem588; + $this->tablesUsed []= $elem602; } } $xfer += $input->readSetEnd(); @@ -18638,12 +19178,12 @@ class CreationMetadata { { $output->writeSetBegin(TType::STRING, count($this->tablesUsed)); { - foreach ($this->tablesUsed as $iter589 => $iter590) + foreach ($this->tablesUsed as $iter603 => $iter604) { - if (is_scalar($iter590)) { - $xfer += $output->writeString($iter589); + if (is_scalar($iter604)) { + $xfer += $output->writeString($iter603); } else { - $xfer += $output->writeString($iter590); + $xfer += $output->writeString($iter604); } } } @@ -19025,15 +19565,15 @@ class NotificationEventResponse { case 1: if ($ftype == TType::LST) { $this->events = array(); - $_size591 = 0; - $_etype594 = 0; - $xfer += $input->readListBegin($_etype594, $_size591); - for ($_i595 = 0; $_i595 < $_size591; ++$_i595) + $_size605 = 0; + $_etype608 = 0; + $xfer += $input->readListBegin($_etype608, $_size605); + for ($_i609 = 0; $_i609 < $_size605; ++$_i609) { - $elem596 = null; - $elem596 = new \metastore\NotificationEvent(); - $xfer += $elem596->read($input); - $this->events []= $elem596; + $elem610 = null; + $elem610 = new \metastore\NotificationEvent(); + $xfer += $elem610->read($input); + $this->events []= $elem610; } $xfer += $input->readListEnd(); } else { @@ -19061,9 +19601,9 @@ class NotificationEventResponse { { $output->writeListBegin(TType::STRUCT, count($this->events)); { - foreach ($this->events as $iter597) + foreach ($this->events as $iter611) { - $xfer += $iter597->write($output); + $xfer += $iter611->write($output); } } $output->writeListEnd(); @@ -19408,14 +19948,14 @@ class InsertEventRequestData { case 2: if ($ftype == TType::LST) { $this->filesAdded = array(); - $_size598 = 0; - $_etype601 = 0; - $xfer += $input->readListBegin($_etype601, $_size598); - for ($_i602 = 0; $_i602 < $_size598; ++$_i602) + $_size612 = 0; + $_etype615 = 0; + $xfer += $input->readListBegin($_etype615, $_size612); + for ($_i616 = 0; $_i616 < $_size612; ++$_i616) { - $elem603 = null; - $xfer += $input->readString($elem603); - $this->filesAdded []= $elem603; + $elem617 = null; + $xfer += $input->readString($elem617); + $this->filesAdded []= $elem617; } $xfer += $input->readListEnd(); } else { @@ -19425,14 +19965,14 @@ class InsertEventRequestData { case 3: if ($ftype == TType::LST) { $this->filesAddedChecksum = 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->readString($elem609); - $this->filesAddedChecksum []= $elem609; + $elem623 = null; + $xfer += $input->readString($elem623); + $this->filesAddedChecksum []= $elem623; } $xfer += $input->readListEnd(); } else { @@ -19465,9 +20005,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->filesAdded)); { - foreach ($this->filesAdded as $iter610) + foreach ($this->filesAdded as $iter624) { - $xfer += $output->writeString($iter610); + $xfer += $output->writeString($iter624); } } $output->writeListEnd(); @@ -19482,9 +20022,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->filesAddedChecksum)); { - foreach ($this->filesAddedChecksum as $iter611) + foreach ($this->filesAddedChecksum as $iter625) { - $xfer += $output->writeString($iter611); + $xfer += $output->writeString($iter625); } } $output->writeListEnd(); @@ -19702,14 +20242,14 @@ class FireEventRequest { case 5: if ($ftype == TType::LST) { $this->partitionVals = array(); - $_size612 = 0; - $_etype615 = 0; - $xfer += $input->readListBegin($_etype615, $_size612); - for ($_i616 = 0; $_i616 < $_size612; ++$_i616) + $_size626 = 0; + $_etype629 = 0; + $xfer += $input->readListBegin($_etype629, $_size626); + for ($_i630 = 0; $_i630 < $_size626; ++$_i630) { - $elem617 = null; - $xfer += $input->readString($elem617); - $this->partitionVals []= $elem617; + $elem631 = null; + $xfer += $input->readString($elem631); + $this->partitionVals []= $elem631; } $xfer += $input->readListEnd(); } else { @@ -19760,9 +20300,9 @@ class FireEventRequest { { $output->writeListBegin(TType::STRING, count($this->partitionVals)); { - foreach ($this->partitionVals as $iter618) + foreach ($this->partitionVals as $iter632) { - $xfer += $output->writeString($iter618); + $xfer += $output->writeString($iter632); } } $output->writeListEnd(); @@ -19990,18 +20530,18 @@ class GetFileMetadataByExprResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size619 = 0; - $_ktype620 = 0; - $_vtype621 = 0; - $xfer += $input->readMapBegin($_ktype620, $_vtype621, $_size619); - for ($_i623 = 0; $_i623 < $_size619; ++$_i623) + $_size633 = 0; + $_ktype634 = 0; + $_vtype635 = 0; + $xfer += $input->readMapBegin($_ktype634, $_vtype635, $_size633); + for ($_i637 = 0; $_i637 < $_size633; ++$_i637) { - $key624 = 0; - $val625 = new \metastore\MetadataPpdResult(); - $xfer += $input->readI64($key624); - $val625 = new \metastore\MetadataPpdResult(); - $xfer += $val625->read($input); - $this->metadata[$key624] = $val625; + $key638 = 0; + $val639 = new \metastore\MetadataPpdResult(); + $xfer += $input->readI64($key638); + $val639 = new \metastore\MetadataPpdResult(); + $xfer += $val639->read($input); + $this->metadata[$key638] = $val639; } $xfer += $input->readMapEnd(); } else { @@ -20036,10 +20576,10 @@ class GetFileMetadataByExprResult { { $output->writeMapBegin(TType::I64, TType::STRUCT, count($this->metadata)); { - foreach ($this->metadata as $kiter626 => $viter627) + foreach ($this->metadata as $kiter640 => $viter641) { - $xfer += $output->writeI64($kiter626); - $xfer += $viter627->write($output); + $xfer += $output->writeI64($kiter640); + $xfer += $viter641->write($output); } } $output->writeMapEnd(); @@ -20141,14 +20681,14 @@ class GetFileMetadataByExprRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size628 = 0; - $_etype631 = 0; - $xfer += $input->readListBegin($_etype631, $_size628); - for ($_i632 = 0; $_i632 < $_size628; ++$_i632) + $_size642 = 0; + $_etype645 = 0; + $xfer += $input->readListBegin($_etype645, $_size642); + for ($_i646 = 0; $_i646 < $_size642; ++$_i646) { - $elem633 = null; - $xfer += $input->readI64($elem633); - $this->fileIds []= $elem633; + $elem647 = null; + $xfer += $input->readI64($elem647); + $this->fileIds []= $elem647; } $xfer += $input->readListEnd(); } else { @@ -20197,9 +20737,9 @@ class GetFileMetadataByExprRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter634) + foreach ($this->fileIds as $iter648) { - $xfer += $output->writeI64($iter634); + $xfer += $output->writeI64($iter648); } } $output->writeListEnd(); @@ -20293,17 +20833,17 @@ class GetFileMetadataResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size635 = 0; - $_ktype636 = 0; - $_vtype637 = 0; - $xfer += $input->readMapBegin($_ktype636, $_vtype637, $_size635); - for ($_i639 = 0; $_i639 < $_size635; ++$_i639) + $_size649 = 0; + $_ktype650 = 0; + $_vtype651 = 0; + $xfer += $input->readMapBegin($_ktype650, $_vtype651, $_size649); + for ($_i653 = 0; $_i653 < $_size649; ++$_i653) { - $key640 = 0; - $val641 = ''; - $xfer += $input->readI64($key640); - $xfer += $input->readString($val641); - $this->metadata[$key640] = $val641; + $key654 = 0; + $val655 = ''; + $xfer += $input->readI64($key654); + $xfer += $input->readString($val655); + $this->metadata[$key654] = $val655; } $xfer += $input->readMapEnd(); } else { @@ -20338,10 +20878,10 @@ class GetFileMetadataResult { { $output->writeMapBegin(TType::I64, TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $kiter642 => $viter643) + foreach ($this->metadata as $kiter656 => $viter657) { - $xfer += $output->writeI64($kiter642); - $xfer += $output->writeString($viter643); + $xfer += $output->writeI64($kiter656); + $xfer += $output->writeString($viter657); } } $output->writeMapEnd(); @@ -20410,14 +20950,14 @@ class GetFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size644 = 0; - $_etype647 = 0; - $xfer += $input->readListBegin($_etype647, $_size644); - for ($_i648 = 0; $_i648 < $_size644; ++$_i648) + $_size658 = 0; + $_etype661 = 0; + $xfer += $input->readListBegin($_etype661, $_size658); + for ($_i662 = 0; $_i662 < $_size658; ++$_i662) { - $elem649 = null; - $xfer += $input->readI64($elem649); - $this->fileIds []= $elem649; + $elem663 = null; + $xfer += $input->readI64($elem663); + $this->fileIds []= $elem663; } $xfer += $input->readListEnd(); } else { @@ -20445,9 +20985,9 @@ class GetFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter650) + foreach ($this->fileIds as $iter664) { - $xfer += $output->writeI64($iter650); + $xfer += $output->writeI64($iter664); } } $output->writeListEnd(); @@ -20587,14 +21127,14 @@ class PutFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size651 = 0; - $_etype654 = 0; - $xfer += $input->readListBegin($_etype654, $_size651); - for ($_i655 = 0; $_i655 < $_size651; ++$_i655) + $_size665 = 0; + $_etype668 = 0; + $xfer += $input->readListBegin($_etype668, $_size665); + for ($_i669 = 0; $_i669 < $_size665; ++$_i669) { - $elem656 = null; - $xfer += $input->readI64($elem656); - $this->fileIds []= $elem656; + $elem670 = null; + $xfer += $input->readI64($elem670); + $this->fileIds []= $elem670; } $xfer += $input->readListEnd(); } else { @@ -20604,14 +21144,14 @@ class PutFileMetadataRequest { case 2: if ($ftype == TType::LST) { $this->metadata = array(); - $_size657 = 0; - $_etype660 = 0; - $xfer += $input->readListBegin($_etype660, $_size657); - for ($_i661 = 0; $_i661 < $_size657; ++$_i661) + $_size671 = 0; + $_etype674 = 0; + $xfer += $input->readListBegin($_etype674, $_size671); + for ($_i675 = 0; $_i675 < $_size671; ++$_i675) { - $elem662 = null; - $xfer += $input->readString($elem662); - $this->metadata []= $elem662; + $elem676 = null; + $xfer += $input->readString($elem676); + $this->metadata []= $elem676; } $xfer += $input->readListEnd(); } else { @@ -20646,9 +21186,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter663) + foreach ($this->fileIds as $iter677) { - $xfer += $output->writeI64($iter663); + $xfer += $output->writeI64($iter677); } } $output->writeListEnd(); @@ -20663,9 +21203,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $iter664) + foreach ($this->metadata as $iter678) { - $xfer += $output->writeString($iter664); + $xfer += $output->writeString($iter678); } } $output->writeListEnd(); @@ -20784,14 +21324,14 @@ class ClearFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size665 = 0; - $_etype668 = 0; - $xfer += $input->readListBegin($_etype668, $_size665); - for ($_i669 = 0; $_i669 < $_size665; ++$_i669) + $_size679 = 0; + $_etype682 = 0; + $xfer += $input->readListBegin($_etype682, $_size679); + for ($_i683 = 0; $_i683 < $_size679; ++$_i683) { - $elem670 = null; - $xfer += $input->readI64($elem670); - $this->fileIds []= $elem670; + $elem684 = null; + $xfer += $input->readI64($elem684); + $this->fileIds []= $elem684; } $xfer += $input->readListEnd(); } else { @@ -20819,9 +21359,9 @@ class ClearFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter671) + foreach ($this->fileIds as $iter685) { - $xfer += $output->writeI64($iter671); + $xfer += $output->writeI64($iter685); } } $output->writeListEnd(); @@ -21105,15 +21645,15 @@ class GetAllFunctionsResponse { case 1: if ($ftype == TType::LST) { $this->functions = array(); - $_size672 = 0; - $_etype675 = 0; - $xfer += $input->readListBegin($_etype675, $_size672); - for ($_i676 = 0; $_i676 < $_size672; ++$_i676) + $_size686 = 0; + $_etype689 = 0; + $xfer += $input->readListBegin($_etype689, $_size686); + for ($_i690 = 0; $_i690 < $_size686; ++$_i690) { - $elem677 = null; - $elem677 = new \metastore\Function(); - $xfer += $elem677->read($input); - $this->functions []= $elem677; + $elem691 = null; + $elem691 = new \metastore\Function(); + $xfer += $elem691->read($input); + $this->functions []= $elem691; } $xfer += $input->readListEnd(); } else { @@ -21141,9 +21681,9 @@ class GetAllFunctionsResponse { { $output->writeListBegin(TType::STRUCT, count($this->functions)); { - foreach ($this->functions as $iter678) + foreach ($this->functions as $iter692) { - $xfer += $iter678->write($output); + $xfer += $iter692->write($output); } } $output->writeListEnd(); @@ -21207,14 +21747,14 @@ class ClientCapabilities { case 1: if ($ftype == TType::LST) { $this->values = array(); - $_size679 = 0; - $_etype682 = 0; - $xfer += $input->readListBegin($_etype682, $_size679); - for ($_i683 = 0; $_i683 < $_size679; ++$_i683) + $_size693 = 0; + $_etype696 = 0; + $xfer += $input->readListBegin($_etype696, $_size693); + for ($_i697 = 0; $_i697 < $_size693; ++$_i697) { - $elem684 = null; - $xfer += $input->readI32($elem684); - $this->values []= $elem684; + $elem698 = null; + $xfer += $input->readI32($elem698); + $this->values []= $elem698; } $xfer += $input->readListEnd(); } else { @@ -21242,9 +21782,9 @@ class ClientCapabilities { { $output->writeListBegin(TType::I32, count($this->values)); { - foreach ($this->values as $iter685) + foreach ($this->values as $iter699) { - $xfer += $output->writeI32($iter685); + $xfer += $output->writeI32($iter699); } } $output->writeListEnd(); @@ -21544,14 +22084,14 @@ class GetTablesRequest { case 2: if ($ftype == TType::LST) { $this->tblNames = 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; - $xfer += $input->readString($elem691); - $this->tblNames []= $elem691; + $elem705 = null; + $xfer += $input->readString($elem705); + $this->tblNames []= $elem705; } $xfer += $input->readListEnd(); } else { @@ -21592,9 +22132,9 @@ class GetTablesRequest { { $output->writeListBegin(TType::STRING, count($this->tblNames)); { - foreach ($this->tblNames as $iter692) + foreach ($this->tblNames as $iter706) { - $xfer += $output->writeString($iter692); + $xfer += $output->writeString($iter706); } } $output->writeListEnd(); @@ -21667,15 +22207,15 @@ class GetTablesResult { case 1: if ($ftype == TType::LST) { $this->tables = array(); - $_size693 = 0; - $_etype696 = 0; - $xfer += $input->readListBegin($_etype696, $_size693); - for ($_i697 = 0; $_i697 < $_size693; ++$_i697) + $_size707 = 0; + $_etype710 = 0; + $xfer += $input->readListBegin($_etype710, $_size707); + for ($_i711 = 0; $_i711 < $_size707; ++$_i711) { - $elem698 = null; - $elem698 = new \metastore\Table(); - $xfer += $elem698->read($input); - $this->tables []= $elem698; + $elem712 = null; + $elem712 = new \metastore\Table(); + $xfer += $elem712->read($input); + $this->tables []= $elem712; } $xfer += $input->readListEnd(); } else { @@ -21703,9 +22243,9 @@ class GetTablesResult { { $output->writeListBegin(TType::STRUCT, count($this->tables)); { - foreach ($this->tables as $iter699) + foreach ($this->tables as $iter713) { - $xfer += $iter699->write($output); + $xfer += $iter713->write($output); } } $output->writeListEnd(); @@ -22083,17 +22623,17 @@ class Materialization { case 1: if ($ftype == TType::SET) { $this->tablesUsed = array(); - $_size700 = 0; - $_etype703 = 0; - $xfer += $input->readSetBegin($_etype703, $_size700); - for ($_i704 = 0; $_i704 < $_size700; ++$_i704) + $_size714 = 0; + $_etype717 = 0; + $xfer += $input->readSetBegin($_etype717, $_size714); + for ($_i718 = 0; $_i718 < $_size714; ++$_i718) { - $elem705 = null; - $xfer += $input->readString($elem705); - if (is_scalar($elem705)) { - $this->tablesUsed[$elem705] = true; + $elem719 = null; + $xfer += $input->readString($elem719); + if (is_scalar($elem719)) { + $this->tablesUsed[$elem719] = true; } else { - $this->tablesUsed []= $elem705; + $this->tablesUsed []= $elem719; } } $xfer += $input->readSetEnd(); @@ -22136,12 +22676,12 @@ class Materialization { { $output->writeSetBegin(TType::STRING, count($this->tablesUsed)); { - foreach ($this->tablesUsed as $iter706 => $iter707) + foreach ($this->tablesUsed as $iter720 => $iter721) { - if (is_scalar($iter707)) { - $xfer += $output->writeString($iter706); + if (is_scalar($iter721)) { + $xfer += $output->writeString($iter720); } else { - $xfer += $output->writeString($iter707); + $xfer += $output->writeString($iter721); } } } @@ -23408,15 +23948,15 @@ class WMFullResourcePlan { case 2: if ($ftype == TType::LST) { $this->pools = array(); - $_size708 = 0; - $_etype711 = 0; - $xfer += $input->readListBegin($_etype711, $_size708); - for ($_i712 = 0; $_i712 < $_size708; ++$_i712) + $_size722 = 0; + $_etype725 = 0; + $xfer += $input->readListBegin($_etype725, $_size722); + for ($_i726 = 0; $_i726 < $_size722; ++$_i726) { - $elem713 = null; - $elem713 = new \metastore\WMPool(); - $xfer += $elem713->read($input); - $this->pools []= $elem713; + $elem727 = null; + $elem727 = new \metastore\WMPool(); + $xfer += $elem727->read($input); + $this->pools []= $elem727; } $xfer += $input->readListEnd(); } else { @@ -23426,15 +23966,15 @@ class WMFullResourcePlan { case 3: if ($ftype == TType::LST) { $this->mappings = array(); - $_size714 = 0; - $_etype717 = 0; - $xfer += $input->readListBegin($_etype717, $_size714); - for ($_i718 = 0; $_i718 < $_size714; ++$_i718) + $_size728 = 0; + $_etype731 = 0; + $xfer += $input->readListBegin($_etype731, $_size728); + for ($_i732 = 0; $_i732 < $_size728; ++$_i732) { - $elem719 = null; - $elem719 = new \metastore\WMMapping(); - $xfer += $elem719->read($input); - $this->mappings []= $elem719; + $elem733 = null; + $elem733 = new \metastore\WMMapping(); + $xfer += $elem733->read($input); + $this->mappings []= $elem733; } $xfer += $input->readListEnd(); } else { @@ -23444,15 +23984,15 @@ class WMFullResourcePlan { case 4: if ($ftype == TType::LST) { $this->triggers = array(); - $_size720 = 0; - $_etype723 = 0; - $xfer += $input->readListBegin($_etype723, $_size720); - for ($_i724 = 0; $_i724 < $_size720; ++$_i724) + $_size734 = 0; + $_etype737 = 0; + $xfer += $input->readListBegin($_etype737, $_size734); + for ($_i738 = 0; $_i738 < $_size734; ++$_i738) { - $elem725 = null; - $elem725 = new \metastore\WMTrigger(); - $xfer += $elem725->read($input); - $this->triggers []= $elem725; + $elem739 = null; + $elem739 = new \metastore\WMTrigger(); + $xfer += $elem739->read($input); + $this->triggers []= $elem739; } $xfer += $input->readListEnd(); } else { @@ -23462,15 +24002,15 @@ class WMFullResourcePlan { case 5: if ($ftype == TType::LST) { $this->poolTriggers = array(); - $_size726 = 0; - $_etype729 = 0; - $xfer += $input->readListBegin($_etype729, $_size726); - for ($_i730 = 0; $_i730 < $_size726; ++$_i730) + $_size740 = 0; + $_etype743 = 0; + $xfer += $input->readListBegin($_etype743, $_size740); + for ($_i744 = 0; $_i744 < $_size740; ++$_i744) { - $elem731 = null; - $elem731 = new \metastore\WMPoolTrigger(); - $xfer += $elem731->read($input); - $this->poolTriggers []= $elem731; + $elem745 = null; + $elem745 = new \metastore\WMPoolTrigger(); + $xfer += $elem745->read($input); + $this->poolTriggers []= $elem745; } $xfer += $input->readListEnd(); } else { @@ -23506,9 +24046,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->pools)); { - foreach ($this->pools as $iter732) + foreach ($this->pools as $iter746) { - $xfer += $iter732->write($output); + $xfer += $iter746->write($output); } } $output->writeListEnd(); @@ -23523,9 +24063,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->mappings)); { - foreach ($this->mappings as $iter733) + foreach ($this->mappings as $iter747) { - $xfer += $iter733->write($output); + $xfer += $iter747->write($output); } } $output->writeListEnd(); @@ -23540,9 +24080,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->triggers)); { - foreach ($this->triggers as $iter734) + foreach ($this->triggers as $iter748) { - $xfer += $iter734->write($output); + $xfer += $iter748->write($output); } } $output->writeListEnd(); @@ -23557,9 +24097,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->poolTriggers)); { - foreach ($this->poolTriggers as $iter735) + foreach ($this->poolTriggers as $iter749) { - $xfer += $iter735->write($output); + $xfer += $iter749->write($output); } } $output->writeListEnd(); @@ -24112,15 +24652,15 @@ class WMGetAllResourcePlanResponse { case 1: if ($ftype == TType::LST) { $this->resourcePlans = array(); - $_size736 = 0; - $_etype739 = 0; - $xfer += $input->readListBegin($_etype739, $_size736); - for ($_i740 = 0; $_i740 < $_size736; ++$_i740) + $_size750 = 0; + $_etype753 = 0; + $xfer += $input->readListBegin($_etype753, $_size750); + for ($_i754 = 0; $_i754 < $_size750; ++$_i754) { - $elem741 = null; - $elem741 = new \metastore\WMResourcePlan(); - $xfer += $elem741->read($input); - $this->resourcePlans []= $elem741; + $elem755 = null; + $elem755 = new \metastore\WMResourcePlan(); + $xfer += $elem755->read($input); + $this->resourcePlans []= $elem755; } $xfer += $input->readListEnd(); } else { @@ -24148,9 +24688,9 @@ class WMGetAllResourcePlanResponse { { $output->writeListBegin(TType::STRUCT, count($this->resourcePlans)); { - foreach ($this->resourcePlans as $iter742) + foreach ($this->resourcePlans as $iter756) { - $xfer += $iter742->write($output); + $xfer += $iter756->write($output); } } $output->writeListEnd(); @@ -24556,14 +25096,14 @@ class WMValidateResourcePlanResponse { case 1: if ($ftype == TType::LST) { $this->errors = array(); - $_size743 = 0; - $_etype746 = 0; - $xfer += $input->readListBegin($_etype746, $_size743); - for ($_i747 = 0; $_i747 < $_size743; ++$_i747) + $_size757 = 0; + $_etype760 = 0; + $xfer += $input->readListBegin($_etype760, $_size757); + for ($_i761 = 0; $_i761 < $_size757; ++$_i761) { - $elem748 = null; - $xfer += $input->readString($elem748); - $this->errors []= $elem748; + $elem762 = null; + $xfer += $input->readString($elem762); + $this->errors []= $elem762; } $xfer += $input->readListEnd(); } else { @@ -24573,14 +25113,14 @@ class WMValidateResourcePlanResponse { case 2: if ($ftype == TType::LST) { $this->warnings = array(); - $_size749 = 0; - $_etype752 = 0; - $xfer += $input->readListBegin($_etype752, $_size749); - for ($_i753 = 0; $_i753 < $_size749; ++$_i753) + $_size763 = 0; + $_etype766 = 0; + $xfer += $input->readListBegin($_etype766, $_size763); + for ($_i767 = 0; $_i767 < $_size763; ++$_i767) { - $elem754 = null; - $xfer += $input->readString($elem754); - $this->warnings []= $elem754; + $elem768 = null; + $xfer += $input->readString($elem768); + $this->warnings []= $elem768; } $xfer += $input->readListEnd(); } else { @@ -24608,9 +25148,9 @@ class WMValidateResourcePlanResponse { { $output->writeListBegin(TType::STRING, count($this->errors)); { - foreach ($this->errors as $iter755) + foreach ($this->errors as $iter769) { - $xfer += $output->writeString($iter755); + $xfer += $output->writeString($iter769); } } $output->writeListEnd(); @@ -24625,9 +25165,9 @@ class WMValidateResourcePlanResponse { { $output->writeListBegin(TType::STRING, count($this->warnings)); { - foreach ($this->warnings as $iter756) + foreach ($this->warnings as $iter770) { - $xfer += $output->writeString($iter756); + $xfer += $output->writeString($iter770); } } $output->writeListEnd(); @@ -25300,15 +25840,15 @@ class WMGetTriggersForResourePlanResponse { case 1: if ($ftype == TType::LST) { $this->triggers = array(); - $_size757 = 0; - $_etype760 = 0; - $xfer += $input->readListBegin($_etype760, $_size757); - for ($_i761 = 0; $_i761 < $_size757; ++$_i761) + $_size771 = 0; + $_etype774 = 0; + $xfer += $input->readListBegin($_etype774, $_size771); + for ($_i775 = 0; $_i775 < $_size771; ++$_i775) { - $elem762 = null; - $elem762 = new \metastore\WMTrigger(); - $xfer += $elem762->read($input); - $this->triggers []= $elem762; + $elem776 = null; + $elem776 = new \metastore\WMTrigger(); + $xfer += $elem776->read($input); + $this->triggers []= $elem776; } $xfer += $input->readListEnd(); } else { @@ -25336,9 +25876,9 @@ class WMGetTriggersForResourePlanResponse { { $output->writeListBegin(TType::STRUCT, count($this->triggers)); { - foreach ($this->triggers as $iter763) + foreach ($this->triggers as $iter777) { - $xfer += $iter763->write($output); + $xfer += $iter777->write($output); } } $output->writeListEnd(); @@ -26876,15 +27416,15 @@ class SchemaVersion { case 4: if ($ftype == TType::LST) { $this->cols = array(); - $_size764 = 0; - $_etype767 = 0; - $xfer += $input->readListBegin($_etype767, $_size764); - for ($_i768 = 0; $_i768 < $_size764; ++$_i768) + $_size778 = 0; + $_etype781 = 0; + $xfer += $input->readListBegin($_etype781, $_size778); + for ($_i782 = 0; $_i782 < $_size778; ++$_i782) { - $elem769 = null; - $elem769 = new \metastore\FieldSchema(); - $xfer += $elem769->read($input); - $this->cols []= $elem769; + $elem783 = null; + $elem783 = new \metastore\FieldSchema(); + $xfer += $elem783->read($input); + $this->cols []= $elem783; } $xfer += $input->readListEnd(); } else { @@ -26973,9 +27513,9 @@ class SchemaVersion { { $output->writeListBegin(TType::STRUCT, count($this->cols)); { - foreach ($this->cols as $iter770) + foreach ($this->cols as $iter784) { - $xfer += $iter770->write($output); + $xfer += $iter784->write($output); } } $output->writeListEnd(); @@ -27297,15 +27837,15 @@ class FindSchemasByColsResp { case 1: if ($ftype == TType::LST) { $this->schemaVersions = array(); - $_size771 = 0; - $_etype774 = 0; - $xfer += $input->readListBegin($_etype774, $_size771); - for ($_i775 = 0; $_i775 < $_size771; ++$_i775) + $_size785 = 0; + $_etype788 = 0; + $xfer += $input->readListBegin($_etype788, $_size785); + for ($_i789 = 0; $_i789 < $_size785; ++$_i789) { - $elem776 = null; - $elem776 = new \metastore\SchemaVersionDescriptor(); - $xfer += $elem776->read($input); - $this->schemaVersions []= $elem776; + $elem790 = null; + $elem790 = new \metastore\SchemaVersionDescriptor(); + $xfer += $elem790->read($input); + $this->schemaVersions []= $elem790; } $xfer += $input->readListEnd(); } else { @@ -27333,9 +27873,9 @@ class FindSchemasByColsResp { { $output->writeListBegin(TType::STRUCT, count($this->schemaVersions)); { - foreach ($this->schemaVersions as $iter777) + foreach ($this->schemaVersions as $iter791) { - $xfer += $iter777->write($output); + $xfer += $iter791->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 a8e83863f7..1b3ebcf6ef 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,13 +42,14 @@ 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, defaultConstraints)') + print(' void create_table_with_constraints(Table tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints)') 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 add_check_constraint(AddCheckConstraintRequest 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)') @@ -115,6 +116,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' UniqueConstraintsResponse get_unique_constraints(UniqueConstraintsRequest request)') print(' NotNullConstraintsResponse get_not_null_constraints(NotNullConstraintsRequest request)') print(' DefaultConstraintsResponse get_default_constraints(DefaultConstraintsRequest request)') + print(' CheckConstraintsResponse get_check_constraints(CheckConstraintsRequest 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)') @@ -396,10 +398,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) != 6: - print('create_table_with_constraints requires 6 args') + if len(args) != 7: + print('create_table_with_constraints requires 7 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]),eval(args[5]),)) + 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]),eval(args[6]),)) elif cmd == 'drop_constraint': if len(args) != 1: @@ -437,6 +439,12 @@ elif cmd == 'add_default_constraint': sys.exit(1) pp.pprint(client.add_default_constraint(eval(args[0]),)) +elif cmd == 'add_check_constraint': + if len(args) != 1: + print('add_check_constraint requires 1 args') + sys.exit(1) + pp.pprint(client.add_check_constraint(eval(args[0]),)) + elif cmd == 'drop_table': if len(args) != 3: print('drop_table requires 3 args') @@ -833,6 +841,12 @@ elif cmd == 'get_default_constraints': sys.exit(1) pp.pprint(client.get_default_constraints(eval(args[0]),)) +elif cmd == 'get_check_constraints': + if len(args) != 1: + print('get_check_constraints requires 1 args') + sys.exit(1) + pp.pprint(client.get_check_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 30214d8df8..cf36654b51 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, defaultConstraints): + def create_table_with_constraints(self, tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints): """ Parameters: - tbl @@ -165,6 +165,7 @@ def create_table_with_constraints(self, tbl, primaryKeys, foreignKeys, uniqueCon - uniqueConstraints - notNullConstraints - defaultConstraints + - checkConstraints """ pass @@ -210,6 +211,13 @@ def add_default_constraint(self, req): """ pass + def add_check_constraint(self, req): + """ + Parameters: + - req + """ + pass + def drop_table(self, dbname, name, deleteData): """ Parameters: @@ -792,6 +800,13 @@ def get_default_constraints(self, request): """ pass + def get_check_constraints(self, request): + """ + Parameters: + - request + """ + pass + def update_table_column_statistics(self, stats_obj): """ Parameters: @@ -2163,7 +2178,7 @@ def recv_create_table_with_environment_context(self): raise result.o4 return - def create_table_with_constraints(self, tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints): + def create_table_with_constraints(self, tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints): """ Parameters: - tbl @@ -2172,11 +2187,12 @@ def create_table_with_constraints(self, tbl, primaryKeys, foreignKeys, uniqueCon - uniqueConstraints - notNullConstraints - defaultConstraints + - checkConstraints """ - self.send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints) + self.send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints) self.recv_create_table_with_constraints() - def send_create_table_with_constraints(self, tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints): + def send_create_table_with_constraints(self, tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints): self._oprot.writeMessageBegin('create_table_with_constraints', TMessageType.CALL, self._seqid) args = create_table_with_constraints_args() args.tbl = tbl @@ -2185,6 +2201,7 @@ def send_create_table_with_constraints(self, tbl, primaryKeys, foreignKeys, uniq args.uniqueConstraints = uniqueConstraints args.notNullConstraints = notNullConstraints args.defaultConstraints = defaultConstraints + args.checkConstraints = checkConstraints args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() @@ -2408,6 +2425,39 @@ def recv_add_default_constraint(self): raise result.o2 return + def add_check_constraint(self, req): + """ + Parameters: + - req + """ + self.send_add_check_constraint(req) + self.recv_add_check_constraint() + + def send_add_check_constraint(self, req): + self._oprot.writeMessageBegin('add_check_constraint', TMessageType.CALL, self._seqid) + args = add_check_constraint_args() + args.req = req + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_add_check_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_check_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: @@ -4958,6 +5008,41 @@ def recv_get_default_constraints(self): raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_default_constraints failed: unknown result") + def get_check_constraints(self, request): + """ + Parameters: + - request + """ + self.send_get_check_constraints(request) + return self.recv_get_check_constraints() + + def send_get_check_constraints(self, request): + self._oprot.writeMessageBegin('get_check_constraints', TMessageType.CALL, self._seqid) + args = get_check_constraints_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_check_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_check_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_check_constraints failed: unknown result") + def update_table_column_statistics(self, stats_obj): """ Parameters: @@ -8495,6 +8580,7 @@ def __init__(self, handler): 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["add_check_constraint"] = Processor.process_add_check_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 @@ -8561,6 +8647,7 @@ def __init__(self, handler): 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["get_check_constraints"] = Processor.process_get_check_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 @@ -9154,7 +9241,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, args.defaultConstraints) + self._handler.create_table_with_constraints(args.tbl, args.primaryKeys, args.foreignKeys, args.uniqueConstraints, args.notNullConstraints, args.defaultConstraints, args.checkConstraints) msg_type = TMessageType.REPLY except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): raise @@ -9329,6 +9416,31 @@ def process_add_default_constraint(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_add_check_constraint(self, seqid, iprot, oprot): + args = add_check_constraint_args() + args.read(iprot) + iprot.readMessageEnd() + result = add_check_constraint_result() + try: + self._handler.add_check_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_check_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) @@ -11018,6 +11130,31 @@ def process_get_default_constraints(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_get_check_constraints(self, seqid, iprot, oprot): + args = get_check_constraints_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_check_constraints_result() + try: + result.success = self._handler.get_check_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_check_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) @@ -14371,10 +14508,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype777, _size774) = iprot.readListBegin() - for _i778 in xrange(_size774): - _elem779 = iprot.readString() - self.success.append(_elem779) + (_etype791, _size788) = iprot.readListBegin() + for _i792 in xrange(_size788): + _elem793 = iprot.readString() + self.success.append(_elem793) iprot.readListEnd() else: iprot.skip(ftype) @@ -14397,8 +14534,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 iter780 in self.success: - oprot.writeString(iter780) + for iter794 in self.success: + oprot.writeString(iter794) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14503,10 +14640,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype784, _size781) = iprot.readListBegin() - for _i785 in xrange(_size781): - _elem786 = iprot.readString() - self.success.append(_elem786) + (_etype798, _size795) = iprot.readListBegin() + for _i799 in xrange(_size795): + _elem800 = iprot.readString() + self.success.append(_elem800) iprot.readListEnd() else: iprot.skip(ftype) @@ -14529,8 +14666,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 iter787 in self.success: - oprot.writeString(iter787) + for iter801 in self.success: + oprot.writeString(iter801) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15300,12 +15437,12 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype789, _vtype790, _size788 ) = iprot.readMapBegin() - for _i792 in xrange(_size788): - _key793 = iprot.readString() - _val794 = Type() - _val794.read(iprot) - self.success[_key793] = _val794 + (_ktype803, _vtype804, _size802 ) = iprot.readMapBegin() + for _i806 in xrange(_size802): + _key807 = iprot.readString() + _val808 = Type() + _val808.read(iprot) + self.success[_key807] = _val808 iprot.readMapEnd() else: iprot.skip(ftype) @@ -15328,9 +15465,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 kiter795,viter796 in self.success.items(): - oprot.writeString(kiter795) - viter796.write(oprot) + for kiter809,viter810 in self.success.items(): + oprot.writeString(kiter809) + viter810.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -15473,11 +15610,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype800, _size797) = iprot.readListBegin() - for _i801 in xrange(_size797): - _elem802 = FieldSchema() - _elem802.read(iprot) - self.success.append(_elem802) + (_etype814, _size811) = iprot.readListBegin() + for _i815 in xrange(_size811): + _elem816 = FieldSchema() + _elem816.read(iprot) + self.success.append(_elem816) iprot.readListEnd() else: iprot.skip(ftype) @@ -15512,8 +15649,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 iter803 in self.success: - iter803.write(oprot) + for iter817 in self.success: + iter817.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15680,11 +15817,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype807, _size804) = iprot.readListBegin() - for _i808 in xrange(_size804): - _elem809 = FieldSchema() - _elem809.read(iprot) - self.success.append(_elem809) + (_etype821, _size818) = iprot.readListBegin() + for _i822 in xrange(_size818): + _elem823 = FieldSchema() + _elem823.read(iprot) + self.success.append(_elem823) iprot.readListEnd() else: iprot.skip(ftype) @@ -15719,8 +15856,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 iter810 in self.success: - iter810.write(oprot) + for iter824 in self.success: + iter824.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15873,11 +16010,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype814, _size811) = iprot.readListBegin() - for _i815 in xrange(_size811): - _elem816 = FieldSchema() - _elem816.read(iprot) - self.success.append(_elem816) + (_etype828, _size825) = iprot.readListBegin() + for _i829 in xrange(_size825): + _elem830 = FieldSchema() + _elem830.read(iprot) + self.success.append(_elem830) iprot.readListEnd() else: iprot.skip(ftype) @@ -15912,8 +16049,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 iter817 in self.success: - iter817.write(oprot) + for iter831 in self.success: + iter831.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16080,11 +16217,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype821, _size818) = iprot.readListBegin() - for _i822 in xrange(_size818): - _elem823 = FieldSchema() - _elem823.read(iprot) - self.success.append(_elem823) + (_etype835, _size832) = iprot.readListBegin() + for _i836 in xrange(_size832): + _elem837 = FieldSchema() + _elem837.read(iprot) + self.success.append(_elem837) iprot.readListEnd() else: iprot.skip(ftype) @@ -16119,8 +16256,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 iter824 in self.success: - iter824.write(oprot) + for iter838 in self.success: + iter838.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16532,6 +16669,7 @@ class create_table_with_constraints_args: - uniqueConstraints - notNullConstraints - defaultConstraints + - checkConstraints """ thrift_spec = ( @@ -16542,15 +16680,17 @@ class create_table_with_constraints_args: (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 + (7, TType.LIST, 'checkConstraints', (TType.STRUCT,(SQLCheckConstraint, SQLCheckConstraint.thrift_spec)), None, ), # 7 ) - def __init__(self, tbl=None, primaryKeys=None, foreignKeys=None, uniqueConstraints=None, notNullConstraints=None, defaultConstraints=None,): + def __init__(self, tbl=None, primaryKeys=None, foreignKeys=None, uniqueConstraints=None, notNullConstraints=None, defaultConstraints=None, checkConstraints=None,): self.tbl = tbl self.primaryKeys = primaryKeys self.foreignKeys = foreignKeys self.uniqueConstraints = uniqueConstraints self.notNullConstraints = notNullConstraints self.defaultConstraints = defaultConstraints + self.checkConstraints = checkConstraints 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: @@ -16570,55 +16710,66 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.primaryKeys = [] - (_etype828, _size825) = iprot.readListBegin() - for _i829 in xrange(_size825): - _elem830 = SQLPrimaryKey() - _elem830.read(iprot) - self.primaryKeys.append(_elem830) + (_etype842, _size839) = iprot.readListBegin() + for _i843 in xrange(_size839): + _elem844 = SQLPrimaryKey() + _elem844.read(iprot) + self.primaryKeys.append(_elem844) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.foreignKeys = [] - (_etype834, _size831) = iprot.readListBegin() - for _i835 in xrange(_size831): - _elem836 = SQLForeignKey() - _elem836.read(iprot) - self.foreignKeys.append(_elem836) + (_etype848, _size845) = iprot.readListBegin() + for _i849 in xrange(_size845): + _elem850 = SQLForeignKey() + _elem850.read(iprot) + self.foreignKeys.append(_elem850) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.uniqueConstraints = [] - (_etype840, _size837) = iprot.readListBegin() - for _i841 in xrange(_size837): - _elem842 = SQLUniqueConstraint() - _elem842.read(iprot) - self.uniqueConstraints.append(_elem842) + (_etype854, _size851) = iprot.readListBegin() + for _i855 in xrange(_size851): + _elem856 = SQLUniqueConstraint() + _elem856.read(iprot) + self.uniqueConstraints.append(_elem856) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.notNullConstraints = [] - (_etype846, _size843) = iprot.readListBegin() - for _i847 in xrange(_size843): - _elem848 = SQLNotNullConstraint() - _elem848.read(iprot) - self.notNullConstraints.append(_elem848) + (_etype860, _size857) = iprot.readListBegin() + for _i861 in xrange(_size857): + _elem862 = SQLNotNullConstraint() + _elem862.read(iprot) + self.notNullConstraints.append(_elem862) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.LIST: self.defaultConstraints = [] - (_etype852, _size849) = iprot.readListBegin() - for _i853 in xrange(_size849): - _elem854 = SQLDefaultConstraint() - _elem854.read(iprot) - self.defaultConstraints.append(_elem854) + (_etype866, _size863) = iprot.readListBegin() + for _i867 in xrange(_size863): + _elem868 = SQLDefaultConstraint() + _elem868.read(iprot) + self.defaultConstraints.append(_elem868) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.LIST: + self.checkConstraints = [] + (_etype872, _size869) = iprot.readListBegin() + for _i873 in xrange(_size869): + _elem874 = SQLCheckConstraint() + _elem874.read(iprot) + self.checkConstraints.append(_elem874) iprot.readListEnd() else: iprot.skip(ftype) @@ -16639,36 +16790,43 @@ def write(self, oprot): if self.primaryKeys is not None: oprot.writeFieldBegin('primaryKeys', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.primaryKeys)) - for iter855 in self.primaryKeys: - iter855.write(oprot) + for iter875 in self.primaryKeys: + iter875.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 iter856 in self.foreignKeys: - iter856.write(oprot) + for iter876 in self.foreignKeys: + iter876.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 iter857 in self.uniqueConstraints: - iter857.write(oprot) + for iter877 in self.uniqueConstraints: + iter877.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 iter858 in self.notNullConstraints: - iter858.write(oprot) + for iter878 in self.notNullConstraints: + iter878.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 iter859 in self.defaultConstraints: - iter859.write(oprot) + for iter879 in self.defaultConstraints: + iter879.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.checkConstraints is not None: + oprot.writeFieldBegin('checkConstraints', TType.LIST, 7) + oprot.writeListBegin(TType.STRUCT, len(self.checkConstraints)) + for iter880 in self.checkConstraints: + iter880.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16686,6 +16844,7 @@ def __hash__(self): value = (value * 31) ^ hash(self.uniqueConstraints) value = (value * 31) ^ hash(self.notNullConstraints) value = (value * 31) ^ hash(self.defaultConstraints) + value = (value * 31) ^ hash(self.checkConstraints) return value def __repr__(self): @@ -17683,6 +17842,152 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class add_check_constraint_args: + """ + Attributes: + - req + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', (AddCheckConstraintRequest, AddCheckConstraintRequest.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 = AddCheckConstraintRequest() + 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_check_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_check_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_check_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: @@ -18081,10 +18386,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.partNames = [] - (_etype863, _size860) = iprot.readListBegin() - for _i864 in xrange(_size860): - _elem865 = iprot.readString() - self.partNames.append(_elem865) + (_etype884, _size881) = iprot.readListBegin() + for _i885 in xrange(_size881): + _elem886 = iprot.readString() + self.partNames.append(_elem886) iprot.readListEnd() else: iprot.skip(ftype) @@ -18109,8 +18414,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 iter866 in self.partNames: - oprot.writeString(iter866) + for iter887 in self.partNames: + oprot.writeString(iter887) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18310,10 +18615,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype870, _size867) = iprot.readListBegin() - for _i871 in xrange(_size867): - _elem872 = iprot.readString() - self.success.append(_elem872) + (_etype891, _size888) = iprot.readListBegin() + for _i892 in xrange(_size888): + _elem893 = iprot.readString() + self.success.append(_elem893) iprot.readListEnd() else: iprot.skip(ftype) @@ -18336,8 +18641,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 iter873 in self.success: - oprot.writeString(iter873) + for iter894 in self.success: + oprot.writeString(iter894) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18487,10 +18792,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype877, _size874) = iprot.readListBegin() - for _i878 in xrange(_size874): - _elem879 = iprot.readString() - self.success.append(_elem879) + (_etype898, _size895) = iprot.readListBegin() + for _i899 in xrange(_size895): + _elem900 = iprot.readString() + self.success.append(_elem900) iprot.readListEnd() else: iprot.skip(ftype) @@ -18513,8 +18818,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 iter880 in self.success: - oprot.writeString(iter880) + for iter901 in self.success: + oprot.writeString(iter901) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18638,10 +18943,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype884, _size881) = iprot.readListBegin() - for _i885 in xrange(_size881): - _elem886 = iprot.readString() - self.success.append(_elem886) + (_etype905, _size902) = iprot.readListBegin() + for _i906 in xrange(_size902): + _elem907 = iprot.readString() + self.success.append(_elem907) iprot.readListEnd() else: iprot.skip(ftype) @@ -18664,8 +18969,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 iter887 in self.success: - oprot.writeString(iter887) + for iter908 in self.success: + oprot.writeString(iter908) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18738,10 +19043,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.tbl_types = [] - (_etype891, _size888) = iprot.readListBegin() - for _i892 in xrange(_size888): - _elem893 = iprot.readString() - self.tbl_types.append(_elem893) + (_etype912, _size909) = iprot.readListBegin() + for _i913 in xrange(_size909): + _elem914 = iprot.readString() + self.tbl_types.append(_elem914) iprot.readListEnd() else: iprot.skip(ftype) @@ -18766,8 +19071,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 iter894 in self.tbl_types: - oprot.writeString(iter894) + for iter915 in self.tbl_types: + oprot.writeString(iter915) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18823,11 +19128,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype898, _size895) = iprot.readListBegin() - for _i899 in xrange(_size895): - _elem900 = TableMeta() - _elem900.read(iprot) - self.success.append(_elem900) + (_etype919, _size916) = iprot.readListBegin() + for _i920 in xrange(_size916): + _elem921 = TableMeta() + _elem921.read(iprot) + self.success.append(_elem921) iprot.readListEnd() else: iprot.skip(ftype) @@ -18850,8 +19155,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 iter901 in self.success: - iter901.write(oprot) + for iter922 in self.success: + iter922.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18975,10 +19280,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype905, _size902) = iprot.readListBegin() - for _i906 in xrange(_size902): - _elem907 = iprot.readString() - self.success.append(_elem907) + (_etype926, _size923) = iprot.readListBegin() + for _i927 in xrange(_size923): + _elem928 = iprot.readString() + self.success.append(_elem928) iprot.readListEnd() else: iprot.skip(ftype) @@ -19001,8 +19306,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 iter908 in self.success: - oprot.writeString(iter908) + for iter929 in self.success: + oprot.writeString(iter929) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -19238,10 +19543,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype912, _size909) = iprot.readListBegin() - for _i913 in xrange(_size909): - _elem914 = iprot.readString() - self.tbl_names.append(_elem914) + (_etype933, _size930) = iprot.readListBegin() + for _i934 in xrange(_size930): + _elem935 = iprot.readString() + self.tbl_names.append(_elem935) iprot.readListEnd() else: iprot.skip(ftype) @@ -19262,8 +19567,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 iter915 in self.tbl_names: - oprot.writeString(iter915) + for iter936 in self.tbl_names: + oprot.writeString(iter936) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19315,11 +19620,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype919, _size916) = iprot.readListBegin() - for _i920 in xrange(_size916): - _elem921 = Table() - _elem921.read(iprot) - self.success.append(_elem921) + (_etype940, _size937) = iprot.readListBegin() + for _i941 in xrange(_size937): + _elem942 = Table() + _elem942.read(iprot) + self.success.append(_elem942) iprot.readListEnd() else: iprot.skip(ftype) @@ -19336,8 +19641,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 iter922 in self.success: - iter922.write(oprot) + for iter943 in self.success: + iter943.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19729,10 +20034,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype926, _size923) = iprot.readListBegin() - for _i927 in xrange(_size923): - _elem928 = iprot.readString() - self.tbl_names.append(_elem928) + (_etype947, _size944) = iprot.readListBegin() + for _i948 in xrange(_size944): + _elem949 = iprot.readString() + self.tbl_names.append(_elem949) iprot.readListEnd() else: iprot.skip(ftype) @@ -19753,8 +20058,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 iter929 in self.tbl_names: - oprot.writeString(iter929) + for iter950 in self.tbl_names: + oprot.writeString(iter950) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19815,12 +20120,12 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype931, _vtype932, _size930 ) = iprot.readMapBegin() - for _i934 in xrange(_size930): - _key935 = iprot.readString() - _val936 = Materialization() - _val936.read(iprot) - self.success[_key935] = _val936 + (_ktype952, _vtype953, _size951 ) = iprot.readMapBegin() + for _i955 in xrange(_size951): + _key956 = iprot.readString() + _val957 = Materialization() + _val957.read(iprot) + self.success[_key956] = _val957 iprot.readMapEnd() else: iprot.skip(ftype) @@ -19855,9 +20160,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 kiter937,viter938 in self.success.items(): - oprot.writeString(kiter937) - viter938.write(oprot) + for kiter958,viter959 in self.success.items(): + oprot.writeString(kiter958) + viter959.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20209,10 +20514,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype942, _size939) = iprot.readListBegin() - for _i943 in xrange(_size939): - _elem944 = iprot.readString() - self.success.append(_elem944) + (_etype963, _size960) = iprot.readListBegin() + for _i964 in xrange(_size960): + _elem965 = iprot.readString() + self.success.append(_elem965) iprot.readListEnd() else: iprot.skip(ftype) @@ -20247,8 +20552,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 iter945 in self.success: - oprot.writeString(iter945) + for iter966 in self.success: + oprot.writeString(iter966) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21218,11 +21523,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype949, _size946) = iprot.readListBegin() - for _i950 in xrange(_size946): - _elem951 = Partition() - _elem951.read(iprot) - self.new_parts.append(_elem951) + (_etype970, _size967) = iprot.readListBegin() + for _i971 in xrange(_size967): + _elem972 = Partition() + _elem972.read(iprot) + self.new_parts.append(_elem972) iprot.readListEnd() else: iprot.skip(ftype) @@ -21239,8 +21544,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 iter952 in self.new_parts: - iter952.write(oprot) + for iter973 in self.new_parts: + iter973.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21398,11 +21703,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype956, _size953) = iprot.readListBegin() - for _i957 in xrange(_size953): - _elem958 = PartitionSpec() - _elem958.read(iprot) - self.new_parts.append(_elem958) + (_etype977, _size974) = iprot.readListBegin() + for _i978 in xrange(_size974): + _elem979 = PartitionSpec() + _elem979.read(iprot) + self.new_parts.append(_elem979) iprot.readListEnd() else: iprot.skip(ftype) @@ -21419,8 +21724,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 iter959 in self.new_parts: - iter959.write(oprot) + for iter980 in self.new_parts: + iter980.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21594,10 +21899,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype963, _size960) = iprot.readListBegin() - for _i964 in xrange(_size960): - _elem965 = iprot.readString() - self.part_vals.append(_elem965) + (_etype984, _size981) = iprot.readListBegin() + for _i985 in xrange(_size981): + _elem986 = iprot.readString() + self.part_vals.append(_elem986) iprot.readListEnd() else: iprot.skip(ftype) @@ -21622,8 +21927,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 iter966 in self.part_vals: - oprot.writeString(iter966) + for iter987 in self.part_vals: + oprot.writeString(iter987) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21976,10 +22281,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype970, _size967) = iprot.readListBegin() - for _i971 in xrange(_size967): - _elem972 = iprot.readString() - self.part_vals.append(_elem972) + (_etype991, _size988) = iprot.readListBegin() + for _i992 in xrange(_size988): + _elem993 = iprot.readString() + self.part_vals.append(_elem993) iprot.readListEnd() else: iprot.skip(ftype) @@ -22010,8 +22315,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 iter973 in self.part_vals: - oprot.writeString(iter973) + for iter994 in self.part_vals: + oprot.writeString(iter994) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -22606,10 +22911,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype977, _size974) = iprot.readListBegin() - for _i978 in xrange(_size974): - _elem979 = iprot.readString() - self.part_vals.append(_elem979) + (_etype998, _size995) = iprot.readListBegin() + for _i999 in xrange(_size995): + _elem1000 = iprot.readString() + self.part_vals.append(_elem1000) iprot.readListEnd() else: iprot.skip(ftype) @@ -22639,8 +22944,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 iter980 in self.part_vals: - oprot.writeString(iter980) + for iter1001 in self.part_vals: + oprot.writeString(iter1001) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -22813,10 +23118,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype984, _size981) = iprot.readListBegin() - for _i985 in xrange(_size981): - _elem986 = iprot.readString() - self.part_vals.append(_elem986) + (_etype1005, _size1002) = iprot.readListBegin() + for _i1006 in xrange(_size1002): + _elem1007 = iprot.readString() + self.part_vals.append(_elem1007) iprot.readListEnd() else: iprot.skip(ftype) @@ -22852,8 +23157,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 iter987 in self.part_vals: - oprot.writeString(iter987) + for iter1008 in self.part_vals: + oprot.writeString(iter1008) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -23590,10 +23895,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype991, _size988) = iprot.readListBegin() - for _i992 in xrange(_size988): - _elem993 = iprot.readString() - self.part_vals.append(_elem993) + (_etype1012, _size1009) = iprot.readListBegin() + for _i1013 in xrange(_size1009): + _elem1014 = iprot.readString() + self.part_vals.append(_elem1014) iprot.readListEnd() else: iprot.skip(ftype) @@ -23618,8 +23923,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 iter994 in self.part_vals: - oprot.writeString(iter994) + for iter1015 in self.part_vals: + oprot.writeString(iter1015) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23778,11 +24083,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype996, _vtype997, _size995 ) = iprot.readMapBegin() - for _i999 in xrange(_size995): - _key1000 = iprot.readString() - _val1001 = iprot.readString() - self.partitionSpecs[_key1000] = _val1001 + (_ktype1017, _vtype1018, _size1016 ) = iprot.readMapBegin() + for _i1020 in xrange(_size1016): + _key1021 = iprot.readString() + _val1022 = iprot.readString() + self.partitionSpecs[_key1021] = _val1022 iprot.readMapEnd() else: iprot.skip(ftype) @@ -23819,9 +24124,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 kiter1002,viter1003 in self.partitionSpecs.items(): - oprot.writeString(kiter1002) - oprot.writeString(viter1003) + for kiter1023,viter1024 in self.partitionSpecs.items(): + oprot.writeString(kiter1023) + oprot.writeString(viter1024) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -24026,11 +24331,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype1005, _vtype1006, _size1004 ) = iprot.readMapBegin() - for _i1008 in xrange(_size1004): - _key1009 = iprot.readString() - _val1010 = iprot.readString() - self.partitionSpecs[_key1009] = _val1010 + (_ktype1026, _vtype1027, _size1025 ) = iprot.readMapBegin() + for _i1029 in xrange(_size1025): + _key1030 = iprot.readString() + _val1031 = iprot.readString() + self.partitionSpecs[_key1030] = _val1031 iprot.readMapEnd() else: iprot.skip(ftype) @@ -24067,9 +24372,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 kiter1011,viter1012 in self.partitionSpecs.items(): - oprot.writeString(kiter1011) - oprot.writeString(viter1012) + for kiter1032,viter1033 in self.partitionSpecs.items(): + oprot.writeString(kiter1032) + oprot.writeString(viter1033) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -24152,11 +24457,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1016, _size1013) = iprot.readListBegin() - for _i1017 in xrange(_size1013): - _elem1018 = Partition() - _elem1018.read(iprot) - self.success.append(_elem1018) + (_etype1037, _size1034) = iprot.readListBegin() + for _i1038 in xrange(_size1034): + _elem1039 = Partition() + _elem1039.read(iprot) + self.success.append(_elem1039) iprot.readListEnd() else: iprot.skip(ftype) @@ -24197,8 +24502,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1019 in self.success: - iter1019.write(oprot) + for iter1040 in self.success: + iter1040.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -24292,10 +24597,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1023, _size1020) = iprot.readListBegin() - for _i1024 in xrange(_size1020): - _elem1025 = iprot.readString() - self.part_vals.append(_elem1025) + (_etype1044, _size1041) = iprot.readListBegin() + for _i1045 in xrange(_size1041): + _elem1046 = iprot.readString() + self.part_vals.append(_elem1046) iprot.readListEnd() else: iprot.skip(ftype) @@ -24307,10 +24612,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype1029, _size1026) = iprot.readListBegin() - for _i1030 in xrange(_size1026): - _elem1031 = iprot.readString() - self.group_names.append(_elem1031) + (_etype1050, _size1047) = iprot.readListBegin() + for _i1051 in xrange(_size1047): + _elem1052 = iprot.readString() + self.group_names.append(_elem1052) iprot.readListEnd() else: iprot.skip(ftype) @@ -24335,8 +24640,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 iter1032 in self.part_vals: - oprot.writeString(iter1032) + for iter1053 in self.part_vals: + oprot.writeString(iter1053) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -24346,8 +24651,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 iter1033 in self.group_names: - oprot.writeString(iter1033) + for iter1054 in self.group_names: + oprot.writeString(iter1054) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24776,11 +25081,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1037, _size1034) = iprot.readListBegin() - for _i1038 in xrange(_size1034): - _elem1039 = Partition() - _elem1039.read(iprot) - self.success.append(_elem1039) + (_etype1058, _size1055) = iprot.readListBegin() + for _i1059 in xrange(_size1055): + _elem1060 = Partition() + _elem1060.read(iprot) + self.success.append(_elem1060) iprot.readListEnd() else: iprot.skip(ftype) @@ -24809,8 +25114,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1040 in self.success: - iter1040.write(oprot) + for iter1061 in self.success: + iter1061.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -24904,10 +25209,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype1044, _size1041) = iprot.readListBegin() - for _i1045 in xrange(_size1041): - _elem1046 = iprot.readString() - self.group_names.append(_elem1046) + (_etype1065, _size1062) = iprot.readListBegin() + for _i1066 in xrange(_size1062): + _elem1067 = iprot.readString() + self.group_names.append(_elem1067) iprot.readListEnd() else: iprot.skip(ftype) @@ -24940,8 +25245,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 iter1047 in self.group_names: - oprot.writeString(iter1047) + for iter1068 in self.group_names: + oprot.writeString(iter1068) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -25002,11 +25307,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1051, _size1048) = iprot.readListBegin() - for _i1052 in xrange(_size1048): - _elem1053 = Partition() - _elem1053.read(iprot) - self.success.append(_elem1053) + (_etype1072, _size1069) = iprot.readListBegin() + for _i1073 in xrange(_size1069): + _elem1074 = Partition() + _elem1074.read(iprot) + self.success.append(_elem1074) iprot.readListEnd() else: iprot.skip(ftype) @@ -25035,8 +25340,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 iter1054 in self.success: - iter1054.write(oprot) + for iter1075 in self.success: + iter1075.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -25194,11 +25499,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1058, _size1055) = iprot.readListBegin() - for _i1059 in xrange(_size1055): - _elem1060 = PartitionSpec() - _elem1060.read(iprot) - self.success.append(_elem1060) + (_etype1079, _size1076) = iprot.readListBegin() + for _i1080 in xrange(_size1076): + _elem1081 = PartitionSpec() + _elem1081.read(iprot) + self.success.append(_elem1081) iprot.readListEnd() else: iprot.skip(ftype) @@ -25227,8 +25532,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1061 in self.success: - iter1061.write(oprot) + for iter1082 in self.success: + iter1082.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -25386,10 +25691,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1065, _size1062) = iprot.readListBegin() - for _i1066 in xrange(_size1062): - _elem1067 = iprot.readString() - self.success.append(_elem1067) + (_etype1086, _size1083) = iprot.readListBegin() + for _i1087 in xrange(_size1083): + _elem1088 = iprot.readString() + self.success.append(_elem1088) iprot.readListEnd() else: iprot.skip(ftype) @@ -25418,8 +25723,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 iter1068 in self.success: - oprot.writeString(iter1068) + for iter1089 in self.success: + oprot.writeString(iter1089) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -25659,10 +25964,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1072, _size1069) = iprot.readListBegin() - for _i1073 in xrange(_size1069): - _elem1074 = iprot.readString() - self.part_vals.append(_elem1074) + (_etype1093, _size1090) = iprot.readListBegin() + for _i1094 in xrange(_size1090): + _elem1095 = iprot.readString() + self.part_vals.append(_elem1095) iprot.readListEnd() else: iprot.skip(ftype) @@ -25692,8 +25997,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 iter1075 in self.part_vals: - oprot.writeString(iter1075) + for iter1096 in self.part_vals: + oprot.writeString(iter1096) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -25757,11 +26062,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1079, _size1076) = iprot.readListBegin() - for _i1080 in xrange(_size1076): - _elem1081 = Partition() - _elem1081.read(iprot) - self.success.append(_elem1081) + (_etype1100, _size1097) = iprot.readListBegin() + for _i1101 in xrange(_size1097): + _elem1102 = Partition() + _elem1102.read(iprot) + self.success.append(_elem1102) iprot.readListEnd() else: iprot.skip(ftype) @@ -25790,8 +26095,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1082 in self.success: - iter1082.write(oprot) + for iter1103 in self.success: + iter1103.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -25878,10 +26183,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1086, _size1083) = iprot.readListBegin() - for _i1087 in xrange(_size1083): - _elem1088 = iprot.readString() - self.part_vals.append(_elem1088) + (_etype1107, _size1104) = iprot.readListBegin() + for _i1108 in xrange(_size1104): + _elem1109 = iprot.readString() + self.part_vals.append(_elem1109) iprot.readListEnd() else: iprot.skip(ftype) @@ -25898,10 +26203,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype1092, _size1089) = iprot.readListBegin() - for _i1093 in xrange(_size1089): - _elem1094 = iprot.readString() - self.group_names.append(_elem1094) + (_etype1113, _size1110) = iprot.readListBegin() + for _i1114 in xrange(_size1110): + _elem1115 = iprot.readString() + self.group_names.append(_elem1115) iprot.readListEnd() else: iprot.skip(ftype) @@ -25926,8 +26231,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 iter1095 in self.part_vals: - oprot.writeString(iter1095) + for iter1116 in self.part_vals: + oprot.writeString(iter1116) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -25941,8 +26246,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 iter1096 in self.group_names: - oprot.writeString(iter1096) + for iter1117 in self.group_names: + oprot.writeString(iter1117) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -26004,11 +26309,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1100, _size1097) = iprot.readListBegin() - for _i1101 in xrange(_size1097): - _elem1102 = Partition() - _elem1102.read(iprot) - self.success.append(_elem1102) + (_etype1121, _size1118) = iprot.readListBegin() + for _i1122 in xrange(_size1118): + _elem1123 = Partition() + _elem1123.read(iprot) + self.success.append(_elem1123) iprot.readListEnd() else: iprot.skip(ftype) @@ -26037,8 +26342,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1103 in self.success: - iter1103.write(oprot) + for iter1124 in self.success: + iter1124.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -26119,10 +26424,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1107, _size1104) = iprot.readListBegin() - for _i1108 in xrange(_size1104): - _elem1109 = iprot.readString() - self.part_vals.append(_elem1109) + (_etype1128, _size1125) = iprot.readListBegin() + for _i1129 in xrange(_size1125): + _elem1130 = iprot.readString() + self.part_vals.append(_elem1130) iprot.readListEnd() else: iprot.skip(ftype) @@ -26152,8 +26457,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 iter1110 in self.part_vals: - oprot.writeString(iter1110) + for iter1131 in self.part_vals: + oprot.writeString(iter1131) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -26217,10 +26522,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1114, _size1111) = iprot.readListBegin() - for _i1115 in xrange(_size1111): - _elem1116 = iprot.readString() - self.success.append(_elem1116) + (_etype1135, _size1132) = iprot.readListBegin() + for _i1136 in xrange(_size1132): + _elem1137 = iprot.readString() + self.success.append(_elem1137) 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.STRING, len(self.success)) - for iter1117 in self.success: - oprot.writeString(iter1117) + for iter1138 in self.success: + oprot.writeString(iter1138) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -26421,11 +26726,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1121, _size1118) = iprot.readListBegin() - for _i1122 in xrange(_size1118): - _elem1123 = Partition() - _elem1123.read(iprot) - self.success.append(_elem1123) + (_etype1142, _size1139) = iprot.readListBegin() + for _i1143 in xrange(_size1139): + _elem1144 = Partition() + _elem1144.read(iprot) + self.success.append(_elem1144) iprot.readListEnd() else: iprot.skip(ftype) @@ -26454,8 +26759,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1124 in self.success: - iter1124.write(oprot) + for iter1145 in self.success: + iter1145.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -26626,11 +26931,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1128, _size1125) = iprot.readListBegin() - for _i1129 in xrange(_size1125): - _elem1130 = PartitionSpec() - _elem1130.read(iprot) - self.success.append(_elem1130) + (_etype1149, _size1146) = iprot.readListBegin() + for _i1150 in xrange(_size1146): + _elem1151 = PartitionSpec() + _elem1151.read(iprot) + self.success.append(_elem1151) iprot.readListEnd() else: iprot.skip(ftype) @@ -26659,8 +26964,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 iter1131 in self.success: - iter1131.write(oprot) + for iter1152 in self.success: + iter1152.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27080,10 +27385,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype1135, _size1132) = iprot.readListBegin() - for _i1136 in xrange(_size1132): - _elem1137 = iprot.readString() - self.names.append(_elem1137) + (_etype1156, _size1153) = iprot.readListBegin() + for _i1157 in xrange(_size1153): + _elem1158 = iprot.readString() + self.names.append(_elem1158) iprot.readListEnd() else: iprot.skip(ftype) @@ -27108,8 +27413,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 iter1138 in self.names: - oprot.writeString(iter1138) + for iter1159 in self.names: + oprot.writeString(iter1159) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27168,11 +27473,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1142, _size1139) = iprot.readListBegin() - for _i1143 in xrange(_size1139): - _elem1144 = Partition() - _elem1144.read(iprot) - self.success.append(_elem1144) + (_etype1163, _size1160) = iprot.readListBegin() + for _i1164 in xrange(_size1160): + _elem1165 = Partition() + _elem1165.read(iprot) + self.success.append(_elem1165) iprot.readListEnd() else: iprot.skip(ftype) @@ -27201,8 +27506,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1145 in self.success: - iter1145.write(oprot) + for iter1166 in self.success: + iter1166.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27452,11 +27757,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype1149, _size1146) = iprot.readListBegin() - for _i1150 in xrange(_size1146): - _elem1151 = Partition() - _elem1151.read(iprot) - self.new_parts.append(_elem1151) + (_etype1170, _size1167) = iprot.readListBegin() + for _i1171 in xrange(_size1167): + _elem1172 = Partition() + _elem1172.read(iprot) + self.new_parts.append(_elem1172) iprot.readListEnd() else: iprot.skip(ftype) @@ -27481,8 +27786,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 iter1152 in self.new_parts: - iter1152.write(oprot) + for iter1173 in self.new_parts: + iter1173.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27635,11 +27940,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype1156, _size1153) = iprot.readListBegin() - for _i1157 in xrange(_size1153): - _elem1158 = Partition() - _elem1158.read(iprot) - self.new_parts.append(_elem1158) + (_etype1177, _size1174) = iprot.readListBegin() + for _i1178 in xrange(_size1174): + _elem1179 = Partition() + _elem1179.read(iprot) + self.new_parts.append(_elem1179) iprot.readListEnd() else: iprot.skip(ftype) @@ -27670,8 +27975,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 iter1159 in self.new_parts: - iter1159.write(oprot) + for iter1180 in self.new_parts: + iter1180.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -28015,10 +28320,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1163, _size1160) = iprot.readListBegin() - for _i1164 in xrange(_size1160): - _elem1165 = iprot.readString() - self.part_vals.append(_elem1165) + (_etype1184, _size1181) = iprot.readListBegin() + for _i1185 in xrange(_size1181): + _elem1186 = iprot.readString() + self.part_vals.append(_elem1186) iprot.readListEnd() else: iprot.skip(ftype) @@ -28049,8 +28354,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 iter1166 in self.part_vals: - oprot.writeString(iter1166) + for iter1187 in self.part_vals: + oprot.writeString(iter1187) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -28192,10 +28497,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_vals = [] - (_etype1170, _size1167) = iprot.readListBegin() - for _i1171 in xrange(_size1167): - _elem1172 = iprot.readString() - self.part_vals.append(_elem1172) + (_etype1191, _size1188) = iprot.readListBegin() + for _i1192 in xrange(_size1188): + _elem1193 = iprot.readString() + self.part_vals.append(_elem1193) iprot.readListEnd() else: iprot.skip(ftype) @@ -28217,8 +28522,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 iter1173 in self.part_vals: - oprot.writeString(iter1173) + for iter1194 in self.part_vals: + oprot.writeString(iter1194) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -28576,10 +28881,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1177, _size1174) = iprot.readListBegin() - for _i1178 in xrange(_size1174): - _elem1179 = iprot.readString() - self.success.append(_elem1179) + (_etype1198, _size1195) = iprot.readListBegin() + for _i1199 in xrange(_size1195): + _elem1200 = iprot.readString() + self.success.append(_elem1200) iprot.readListEnd() else: iprot.skip(ftype) @@ -28602,8 +28907,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 iter1180 in self.success: - oprot.writeString(iter1180) + for iter1201 in self.success: + oprot.writeString(iter1201) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28727,11 +29032,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype1182, _vtype1183, _size1181 ) = iprot.readMapBegin() - for _i1185 in xrange(_size1181): - _key1186 = iprot.readString() - _val1187 = iprot.readString() - self.success[_key1186] = _val1187 + (_ktype1203, _vtype1204, _size1202 ) = iprot.readMapBegin() + for _i1206 in xrange(_size1202): + _key1207 = iprot.readString() + _val1208 = iprot.readString() + self.success[_key1207] = _val1208 iprot.readMapEnd() else: iprot.skip(ftype) @@ -28754,9 +29059,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 kiter1188,viter1189 in self.success.items(): - oprot.writeString(kiter1188) - oprot.writeString(viter1189) + for kiter1209,viter1210 in self.success.items(): + oprot.writeString(kiter1209) + oprot.writeString(viter1210) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28832,11 +29137,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype1191, _vtype1192, _size1190 ) = iprot.readMapBegin() - for _i1194 in xrange(_size1190): - _key1195 = iprot.readString() - _val1196 = iprot.readString() - self.part_vals[_key1195] = _val1196 + (_ktype1212, _vtype1213, _size1211 ) = iprot.readMapBegin() + for _i1215 in xrange(_size1211): + _key1216 = iprot.readString() + _val1217 = iprot.readString() + self.part_vals[_key1216] = _val1217 iprot.readMapEnd() else: iprot.skip(ftype) @@ -28866,9 +29171,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 kiter1197,viter1198 in self.part_vals.items(): - oprot.writeString(kiter1197) - oprot.writeString(viter1198) + for kiter1218,viter1219 in self.part_vals.items(): + oprot.writeString(kiter1218) + oprot.writeString(viter1219) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -29082,11 +29387,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype1200, _vtype1201, _size1199 ) = iprot.readMapBegin() - for _i1203 in xrange(_size1199): - _key1204 = iprot.readString() - _val1205 = iprot.readString() - self.part_vals[_key1204] = _val1205 + (_ktype1221, _vtype1222, _size1220 ) = iprot.readMapBegin() + for _i1224 in xrange(_size1220): + _key1225 = iprot.readString() + _val1226 = iprot.readString() + self.part_vals[_key1225] = _val1226 iprot.readMapEnd() else: iprot.skip(ftype) @@ -29116,9 +29421,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 kiter1206,viter1207 in self.part_vals.items(): - oprot.writeString(kiter1206) - oprot.writeString(viter1207) + for kiter1227,viter1228 in self.part_vals.items(): + oprot.writeString(kiter1227) + oprot.writeString(viter1228) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -30094,6 +30399,165 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class get_check_constraints_args: + """ + Attributes: + - request + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', (CheckConstraintsRequest, CheckConstraintsRequest.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 = CheckConstraintsRequest() + 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_check_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_check_constraints_result: + """ + Attributes: + - success + - o1 + - o2 + """ + + thrift_spec = ( + (0, TType.STRUCT, 'success', (CheckConstraintsResponse, CheckConstraintsResponse.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 = CheckConstraintsResponse() + 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_check_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: @@ -32611,10 +33075,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1211, _size1208) = iprot.readListBegin() - for _i1212 in xrange(_size1208): - _elem1213 = iprot.readString() - self.success.append(_elem1213) + (_etype1232, _size1229) = iprot.readListBegin() + for _i1233 in xrange(_size1229): + _elem1234 = iprot.readString() + self.success.append(_elem1234) iprot.readListEnd() else: iprot.skip(ftype) @@ -32637,8 +33101,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 iter1214 in self.success: - oprot.writeString(iter1214) + for iter1235 in self.success: + oprot.writeString(iter1235) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -33326,10 +33790,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1218, _size1215) = iprot.readListBegin() - for _i1219 in xrange(_size1215): - _elem1220 = iprot.readString() - self.success.append(_elem1220) + (_etype1239, _size1236) = iprot.readListBegin() + for _i1240 in xrange(_size1236): + _elem1241 = iprot.readString() + self.success.append(_elem1241) iprot.readListEnd() else: iprot.skip(ftype) @@ -33352,8 +33816,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 iter1221 in self.success: - oprot.writeString(iter1221) + for iter1242 in self.success: + oprot.writeString(iter1242) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -33867,11 +34331,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1225, _size1222) = iprot.readListBegin() - for _i1226 in xrange(_size1222): - _elem1227 = Role() - _elem1227.read(iprot) - self.success.append(_elem1227) + (_etype1246, _size1243) = iprot.readListBegin() + for _i1247 in xrange(_size1243): + _elem1248 = Role() + _elem1248.read(iprot) + self.success.append(_elem1248) iprot.readListEnd() else: iprot.skip(ftype) @@ -33894,8 +34358,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 iter1228 in self.success: - iter1228.write(oprot) + for iter1249 in self.success: + iter1249.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -34404,10 +34868,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype1232, _size1229) = iprot.readListBegin() - for _i1233 in xrange(_size1229): - _elem1234 = iprot.readString() - self.group_names.append(_elem1234) + (_etype1253, _size1250) = iprot.readListBegin() + for _i1254 in xrange(_size1250): + _elem1255 = iprot.readString() + self.group_names.append(_elem1255) iprot.readListEnd() else: iprot.skip(ftype) @@ -34432,8 +34896,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 iter1235 in self.group_names: - oprot.writeString(iter1235) + for iter1256 in self.group_names: + oprot.writeString(iter1256) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -34660,11 +35124,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1239, _size1236) = iprot.readListBegin() - for _i1240 in xrange(_size1236): - _elem1241 = HiveObjectPrivilege() - _elem1241.read(iprot) - self.success.append(_elem1241) + (_etype1260, _size1257) = iprot.readListBegin() + for _i1261 in xrange(_size1257): + _elem1262 = HiveObjectPrivilege() + _elem1262.read(iprot) + self.success.append(_elem1262) iprot.readListEnd() else: iprot.skip(ftype) @@ -34687,8 +35151,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 iter1242 in self.success: - iter1242.write(oprot) + for iter1263 in self.success: + iter1263.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -35186,10 +35650,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype1246, _size1243) = iprot.readListBegin() - for _i1247 in xrange(_size1243): - _elem1248 = iprot.readString() - self.group_names.append(_elem1248) + (_etype1267, _size1264) = iprot.readListBegin() + for _i1268 in xrange(_size1264): + _elem1269 = iprot.readString() + self.group_names.append(_elem1269) iprot.readListEnd() else: iprot.skip(ftype) @@ -35210,8 +35674,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 iter1249 in self.group_names: - oprot.writeString(iter1249) + for iter1270 in self.group_names: + oprot.writeString(iter1270) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -35266,10 +35730,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1253, _size1250) = iprot.readListBegin() - for _i1254 in xrange(_size1250): - _elem1255 = iprot.readString() - self.success.append(_elem1255) + (_etype1274, _size1271) = iprot.readListBegin() + for _i1275 in xrange(_size1271): + _elem1276 = iprot.readString() + self.success.append(_elem1276) iprot.readListEnd() else: iprot.skip(ftype) @@ -35292,8 +35756,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1256 in self.success: - oprot.writeString(iter1256) + for iter1277 in self.success: + oprot.writeString(iter1277) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -36225,10 +36689,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1260, _size1257) = iprot.readListBegin() - for _i1261 in xrange(_size1257): - _elem1262 = iprot.readString() - self.success.append(_elem1262) + (_etype1281, _size1278) = iprot.readListBegin() + for _i1282 in xrange(_size1278): + _elem1283 = iprot.readString() + self.success.append(_elem1283) iprot.readListEnd() else: iprot.skip(ftype) @@ -36245,8 +36709,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1263 in self.success: - oprot.writeString(iter1263) + for iter1284 in self.success: + oprot.writeString(iter1284) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -36773,10 +37237,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1267, _size1264) = iprot.readListBegin() - for _i1268 in xrange(_size1264): - _elem1269 = iprot.readString() - self.success.append(_elem1269) + (_etype1288, _size1285) = iprot.readListBegin() + for _i1289 in xrange(_size1285): + _elem1290 = iprot.readString() + self.success.append(_elem1290) iprot.readListEnd() else: iprot.skip(ftype) @@ -36793,8 +37257,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 iter1270 in self.success: - oprot.writeString(iter1270) + for iter1291 in self.success: + oprot.writeString(iter1291) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -44962,11 +45426,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1274, _size1271) = iprot.readListBegin() - for _i1275 in xrange(_size1271): - _elem1276 = SchemaVersion() - _elem1276.read(iprot) - self.success.append(_elem1276) + (_etype1295, _size1292) = iprot.readListBegin() + for _i1296 in xrange(_size1292): + _elem1297 = SchemaVersion() + _elem1297.read(iprot) + self.success.append(_elem1297) iprot.readListEnd() else: iprot.skip(ftype) @@ -44995,8 +45459,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 iter1277 in self.success: - iter1277.write(oprot) + for iter1298 in self.success: + iter1298.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: diff --git a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py index 4d4429f671..98811845e0 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 @@ -1404,6 +1404,162 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class SQLCheckConstraint: + """ + Attributes: + - table_db + - table_name + - column_name + - check_expression + - 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, 'check_expression', 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, check_expression=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.check_expression = check_expression + 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.check_expression = 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('SQLCheckConstraint') + 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.check_expression is not None: + oprot.writeFieldBegin('check_expression', TType.STRING, 4) + oprot.writeString(self.check_expression) + 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.check_expression) + 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: @@ -7249,6 +7405,164 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class CheckConstraintsRequest: + """ + 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('CheckConstraintsRequest') + 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 CheckConstraintsResponse: + """ + Attributes: + - checkConstraints + """ + + thrift_spec = ( + None, # 0 + (1, TType.LIST, 'checkConstraints', (TType.STRUCT,(SQLCheckConstraint, SQLCheckConstraint.thrift_spec)), None, ), # 1 + ) + + def __init__(self, checkConstraints=None,): + self.checkConstraints = checkConstraints + + 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.checkConstraints = [] + (_etype314, _size311) = iprot.readListBegin() + for _i315 in xrange(_size311): + _elem316 = SQLCheckConstraint() + _elem316.read(iprot) + self.checkConstraints.append(_elem316) + 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('CheckConstraintsResponse') + if self.checkConstraints is not None: + oprot.writeFieldBegin('checkConstraints', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.checkConstraints)) + for iter317 in self.checkConstraints: + iter317.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.checkConstraints is None: + raise TProtocol.TProtocolException(message='Required field checkConstraints is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.checkConstraints) + 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 DropConstraintRequest: """ Attributes: @@ -7372,11 +7686,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.primaryKeyCols = [] - (_etype314, _size311) = iprot.readListBegin() - for _i315 in xrange(_size311): - _elem316 = SQLPrimaryKey() - _elem316.read(iprot) - self.primaryKeyCols.append(_elem316) + (_etype321, _size318) = iprot.readListBegin() + for _i322 in xrange(_size318): + _elem323 = SQLPrimaryKey() + _elem323.read(iprot) + self.primaryKeyCols.append(_elem323) iprot.readListEnd() else: iprot.skip(ftype) @@ -7393,8 +7707,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 iter317 in self.primaryKeyCols: - iter317.write(oprot) + for iter324 in self.primaryKeyCols: + iter324.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7448,11 +7762,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.foreignKeyCols = [] - (_etype321, _size318) = iprot.readListBegin() - for _i322 in xrange(_size318): - _elem323 = SQLForeignKey() - _elem323.read(iprot) - self.foreignKeyCols.append(_elem323) + (_etype328, _size325) = iprot.readListBegin() + for _i329 in xrange(_size325): + _elem330 = SQLForeignKey() + _elem330.read(iprot) + self.foreignKeyCols.append(_elem330) iprot.readListEnd() else: iprot.skip(ftype) @@ -7469,8 +7783,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 iter324 in self.foreignKeyCols: - iter324.write(oprot) + for iter331 in self.foreignKeyCols: + iter331.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7524,11 +7838,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.uniqueConstraintCols = [] - (_etype328, _size325) = iprot.readListBegin() - for _i329 in xrange(_size325): - _elem330 = SQLUniqueConstraint() - _elem330.read(iprot) - self.uniqueConstraintCols.append(_elem330) + (_etype335, _size332) = iprot.readListBegin() + for _i336 in xrange(_size332): + _elem337 = SQLUniqueConstraint() + _elem337.read(iprot) + self.uniqueConstraintCols.append(_elem337) iprot.readListEnd() else: iprot.skip(ftype) @@ -7545,22 +7859,98 @@ def write(self, oprot): if self.uniqueConstraintCols is not None: oprot.writeFieldBegin('uniqueConstraintCols', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.uniqueConstraintCols)) - for iter331 in self.uniqueConstraintCols: - iter331.write(oprot) + for iter338 in self.uniqueConstraintCols: + iter338.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.uniqueConstraintCols is None: + raise TProtocol.TProtocolException(message='Required field uniqueConstraintCols is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.uniqueConstraintCols) + 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 AddNotNullConstraintRequest: + """ + Attributes: + - notNullConstraintCols + """ + + thrift_spec = ( + None, # 0 + (1, TType.LIST, 'notNullConstraintCols', (TType.STRUCT,(SQLNotNullConstraint, SQLNotNullConstraint.thrift_spec)), None, ), # 1 + ) + + def __init__(self, notNullConstraintCols=None,): + self.notNullConstraintCols = notNullConstraintCols + + 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.notNullConstraintCols = [] + (_etype342, _size339) = iprot.readListBegin() + for _i343 in xrange(_size339): + _elem344 = SQLNotNullConstraint() + _elem344.read(iprot) + self.notNullConstraintCols.append(_elem344) + 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('AddNotNullConstraintRequest') + if self.notNullConstraintCols is not None: + oprot.writeFieldBegin('notNullConstraintCols', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.notNullConstraintCols)) + for iter345 in self.notNullConstraintCols: + iter345.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.uniqueConstraintCols is None: - raise TProtocol.TProtocolException(message='Required field uniqueConstraintCols is unset!') + if self.notNullConstraintCols is None: + raise TProtocol.TProtocolException(message='Required field notNullConstraintCols is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.uniqueConstraintCols) + value = (value * 31) ^ hash(self.notNullConstraintCols) return value def __repr__(self): @@ -7574,19 +7964,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class AddNotNullConstraintRequest: +class AddDefaultConstraintRequest: """ Attributes: - - notNullConstraintCols + - defaultConstraintCols """ thrift_spec = ( None, # 0 - (1, TType.LIST, 'notNullConstraintCols', (TType.STRUCT,(SQLNotNullConstraint, SQLNotNullConstraint.thrift_spec)), None, ), # 1 + (1, TType.LIST, 'defaultConstraintCols', (TType.STRUCT,(SQLDefaultConstraint, SQLDefaultConstraint.thrift_spec)), None, ), # 1 ) - def __init__(self, notNullConstraintCols=None,): - self.notNullConstraintCols = notNullConstraintCols + 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: @@ -7599,12 +7989,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.LIST: - self.notNullConstraintCols = [] - (_etype335, _size332) = iprot.readListBegin() - for _i336 in xrange(_size332): - _elem337 = SQLNotNullConstraint() - _elem337.read(iprot) - self.notNullConstraintCols.append(_elem337) + self.defaultConstraintCols = [] + (_etype349, _size346) = iprot.readListBegin() + for _i350 in xrange(_size346): + _elem351 = SQLDefaultConstraint() + _elem351.read(iprot) + self.defaultConstraintCols.append(_elem351) iprot.readListEnd() else: iprot.skip(ftype) @@ -7617,26 +8007,26 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('AddNotNullConstraintRequest') - if self.notNullConstraintCols is not None: - oprot.writeFieldBegin('notNullConstraintCols', TType.LIST, 1) - oprot.writeListBegin(TType.STRUCT, len(self.notNullConstraintCols)) - for iter338 in self.notNullConstraintCols: - iter338.write(oprot) + oprot.writeStructBegin('AddDefaultConstraintRequest') + if self.defaultConstraintCols is not None: + oprot.writeFieldBegin('defaultConstraintCols', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.defaultConstraintCols)) + for iter352 in self.defaultConstraintCols: + iter352.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.notNullConstraintCols is None: - raise TProtocol.TProtocolException(message='Required field notNullConstraintCols is unset!') + 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.notNullConstraintCols) + value = (value * 31) ^ hash(self.defaultConstraintCols) return value def __repr__(self): @@ -7650,19 +8040,19 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class AddDefaultConstraintRequest: +class AddCheckConstraintRequest: """ Attributes: - - defaultConstraintCols + - checkConstraintCols """ thrift_spec = ( None, # 0 - (1, TType.LIST, 'defaultConstraintCols', (TType.STRUCT,(SQLDefaultConstraint, SQLDefaultConstraint.thrift_spec)), None, ), # 1 + (1, TType.LIST, 'checkConstraintCols', (TType.STRUCT,(SQLCheckConstraint, SQLCheckConstraint.thrift_spec)), None, ), # 1 ) - def __init__(self, defaultConstraintCols=None,): - self.defaultConstraintCols = defaultConstraintCols + def __init__(self, checkConstraintCols=None,): + self.checkConstraintCols = checkConstraintCols 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: @@ -7675,12 +8065,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.LIST: - self.defaultConstraintCols = [] - (_etype342, _size339) = iprot.readListBegin() - for _i343 in xrange(_size339): - _elem344 = SQLDefaultConstraint() - _elem344.read(iprot) - self.defaultConstraintCols.append(_elem344) + self.checkConstraintCols = [] + (_etype356, _size353) = iprot.readListBegin() + for _i357 in xrange(_size353): + _elem358 = SQLCheckConstraint() + _elem358.read(iprot) + self.checkConstraintCols.append(_elem358) iprot.readListEnd() else: iprot.skip(ftype) @@ -7693,26 +8083,26 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('AddDefaultConstraintRequest') - if self.defaultConstraintCols is not None: - oprot.writeFieldBegin('defaultConstraintCols', TType.LIST, 1) - oprot.writeListBegin(TType.STRUCT, len(self.defaultConstraintCols)) - for iter345 in self.defaultConstraintCols: - iter345.write(oprot) + oprot.writeStructBegin('AddCheckConstraintRequest') + if self.checkConstraintCols is not None: + oprot.writeFieldBegin('checkConstraintCols', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.checkConstraintCols)) + for iter359 in self.checkConstraintCols: + iter359.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!') + if self.checkConstraintCols is None: + raise TProtocol.TProtocolException(message='Required field checkConstraintCols is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.defaultConstraintCols) + value = (value * 31) ^ hash(self.checkConstraintCols) return value def __repr__(self): @@ -7755,11 +8145,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype349, _size346) = iprot.readListBegin() - for _i350 in xrange(_size346): - _elem351 = Partition() - _elem351.read(iprot) - self.partitions.append(_elem351) + (_etype363, _size360) = iprot.readListBegin() + for _i364 in xrange(_size360): + _elem365 = Partition() + _elem365.read(iprot) + self.partitions.append(_elem365) iprot.readListEnd() else: iprot.skip(ftype) @@ -7781,8 +8171,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 iter352 in self.partitions: - iter352.write(oprot) + for iter366 in self.partitions: + iter366.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.hasUnknownPartitions is not None: @@ -7966,11 +8356,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tableStats = [] - (_etype356, _size353) = iprot.readListBegin() - for _i357 in xrange(_size353): - _elem358 = ColumnStatisticsObj() - _elem358.read(iprot) - self.tableStats.append(_elem358) + (_etype370, _size367) = iprot.readListBegin() + for _i371 in xrange(_size367): + _elem372 = ColumnStatisticsObj() + _elem372.read(iprot) + self.tableStats.append(_elem372) iprot.readListEnd() else: iprot.skip(ftype) @@ -7987,8 +8377,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 iter359 in self.tableStats: - iter359.write(oprot) + for iter373 in self.tableStats: + iter373.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8042,17 +8432,17 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partStats = {} - (_ktype361, _vtype362, _size360 ) = iprot.readMapBegin() - for _i364 in xrange(_size360): - _key365 = iprot.readString() - _val366 = [] - (_etype370, _size367) = iprot.readListBegin() - for _i371 in xrange(_size367): - _elem372 = ColumnStatisticsObj() - _elem372.read(iprot) - _val366.append(_elem372) + (_ktype375, _vtype376, _size374 ) = iprot.readMapBegin() + for _i378 in xrange(_size374): + _key379 = iprot.readString() + _val380 = [] + (_etype384, _size381) = iprot.readListBegin() + for _i385 in xrange(_size381): + _elem386 = ColumnStatisticsObj() + _elem386.read(iprot) + _val380.append(_elem386) iprot.readListEnd() - self.partStats[_key365] = _val366 + self.partStats[_key379] = _val380 iprot.readMapEnd() else: iprot.skip(ftype) @@ -8069,11 +8459,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 kiter373,viter374 in self.partStats.items(): - oprot.writeString(kiter373) - oprot.writeListBegin(TType.STRUCT, len(viter374)) - for iter375 in viter374: - iter375.write(oprot) + for kiter387,viter388 in self.partStats.items(): + oprot.writeString(kiter387) + oprot.writeListBegin(TType.STRUCT, len(viter388)) + for iter389 in viter388: + iter389.write(oprot) oprot.writeListEnd() oprot.writeMapEnd() oprot.writeFieldEnd() @@ -8144,10 +8534,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.colNames = [] - (_etype379, _size376) = iprot.readListBegin() - for _i380 in xrange(_size376): - _elem381 = iprot.readString() - self.colNames.append(_elem381) + (_etype393, _size390) = iprot.readListBegin() + for _i394 in xrange(_size390): + _elem395 = iprot.readString() + self.colNames.append(_elem395) iprot.readListEnd() else: iprot.skip(ftype) @@ -8172,8 +8562,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 iter382 in self.colNames: - oprot.writeString(iter382) + for iter396 in self.colNames: + oprot.writeString(iter396) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8252,20 +8642,20 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.colNames = [] - (_etype386, _size383) = iprot.readListBegin() - for _i387 in xrange(_size383): - _elem388 = iprot.readString() - self.colNames.append(_elem388) + (_etype400, _size397) = iprot.readListBegin() + for _i401 in xrange(_size397): + _elem402 = iprot.readString() + self.colNames.append(_elem402) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.partNames = [] - (_etype392, _size389) = iprot.readListBegin() - for _i393 in xrange(_size389): - _elem394 = iprot.readString() - self.partNames.append(_elem394) + (_etype406, _size403) = iprot.readListBegin() + for _i407 in xrange(_size403): + _elem408 = iprot.readString() + self.partNames.append(_elem408) iprot.readListEnd() else: iprot.skip(ftype) @@ -8290,15 +8680,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 iter395 in self.colNames: - oprot.writeString(iter395) + for iter409 in self.colNames: + oprot.writeString(iter409) oprot.writeListEnd() oprot.writeFieldEnd() if self.partNames is not None: oprot.writeFieldBegin('partNames', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.partNames)) - for iter396 in self.partNames: - oprot.writeString(iter396) + for iter410 in self.partNames: + oprot.writeString(iter410) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8361,11 +8751,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype400, _size397) = iprot.readListBegin() - for _i401 in xrange(_size397): - _elem402 = Partition() - _elem402.read(iprot) - self.partitions.append(_elem402) + (_etype414, _size411) = iprot.readListBegin() + for _i415 in xrange(_size411): + _elem416 = Partition() + _elem416.read(iprot) + self.partitions.append(_elem416) iprot.readListEnd() else: iprot.skip(ftype) @@ -8382,8 +8772,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 iter403 in self.partitions: - iter403.write(oprot) + for iter417 in self.partitions: + iter417.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8457,11 +8847,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.parts = [] - (_etype407, _size404) = iprot.readListBegin() - for _i408 in xrange(_size404): - _elem409 = Partition() - _elem409.read(iprot) - self.parts.append(_elem409) + (_etype421, _size418) = iprot.readListBegin() + for _i422 in xrange(_size418): + _elem423 = Partition() + _elem423.read(iprot) + self.parts.append(_elem423) iprot.readListEnd() else: iprot.skip(ftype) @@ -8496,8 +8886,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 iter410 in self.parts: - iter410.write(oprot) + for iter424 in self.parts: + iter424.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ifNotExists is not None: @@ -8569,11 +8959,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype414, _size411) = iprot.readListBegin() - for _i415 in xrange(_size411): - _elem416 = Partition() - _elem416.read(iprot) - self.partitions.append(_elem416) + (_etype428, _size425) = iprot.readListBegin() + for _i429 in xrange(_size425): + _elem430 = Partition() + _elem430.read(iprot) + self.partitions.append(_elem430) iprot.readListEnd() else: iprot.skip(ftype) @@ -8590,8 +8980,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 iter417 in self.partitions: - iter417.write(oprot) + for iter431 in self.partitions: + iter431.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8726,21 +9116,21 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.names = [] - (_etype421, _size418) = iprot.readListBegin() - for _i422 in xrange(_size418): - _elem423 = iprot.readString() - self.names.append(_elem423) + (_etype435, _size432) = iprot.readListBegin() + for _i436 in xrange(_size432): + _elem437 = iprot.readString() + self.names.append(_elem437) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.exprs = [] - (_etype427, _size424) = iprot.readListBegin() - for _i428 in xrange(_size424): - _elem429 = DropPartitionsExpr() - _elem429.read(iprot) - self.exprs.append(_elem429) + (_etype441, _size438) = iprot.readListBegin() + for _i442 in xrange(_size438): + _elem443 = DropPartitionsExpr() + _elem443.read(iprot) + self.exprs.append(_elem443) iprot.readListEnd() else: iprot.skip(ftype) @@ -8757,15 +9147,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 iter430 in self.names: - oprot.writeString(iter430) + for iter444 in self.names: + oprot.writeString(iter444) oprot.writeListEnd() oprot.writeFieldEnd() if self.exprs is not None: oprot.writeFieldBegin('exprs', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.exprs)) - for iter431 in self.exprs: - iter431.write(oprot) + for iter445 in self.exprs: + iter445.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9013,11 +9403,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.partitionKeys = [] - (_etype435, _size432) = iprot.readListBegin() - for _i436 in xrange(_size432): - _elem437 = FieldSchema() - _elem437.read(iprot) - self.partitionKeys.append(_elem437) + (_etype449, _size446) = iprot.readListBegin() + for _i450 in xrange(_size446): + _elem451 = FieldSchema() + _elem451.read(iprot) + self.partitionKeys.append(_elem451) iprot.readListEnd() else: iprot.skip(ftype) @@ -9034,11 +9424,11 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.partitionOrder = [] - (_etype441, _size438) = iprot.readListBegin() - for _i442 in xrange(_size438): - _elem443 = FieldSchema() - _elem443.read(iprot) - self.partitionOrder.append(_elem443) + (_etype455, _size452) = iprot.readListBegin() + for _i456 in xrange(_size452): + _elem457 = FieldSchema() + _elem457.read(iprot) + self.partitionOrder.append(_elem457) iprot.readListEnd() else: iprot.skip(ftype) @@ -9073,8 +9463,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 iter444 in self.partitionKeys: - iter444.write(oprot) + for iter458 in self.partitionKeys: + iter458.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.applyDistinct is not None: @@ -9088,8 +9478,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 iter445 in self.partitionOrder: - iter445.write(oprot) + for iter459 in self.partitionOrder: + iter459.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ascending is not None: @@ -9162,10 +9552,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.row = [] - (_etype449, _size446) = iprot.readListBegin() - for _i450 in xrange(_size446): - _elem451 = iprot.readString() - self.row.append(_elem451) + (_etype463, _size460) = iprot.readListBegin() + for _i464 in xrange(_size460): + _elem465 = iprot.readString() + self.row.append(_elem465) iprot.readListEnd() else: iprot.skip(ftype) @@ -9182,8 +9572,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 iter452 in self.row: - oprot.writeString(iter452) + for iter466 in self.row: + oprot.writeString(iter466) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9237,11 +9627,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitionValues = [] - (_etype456, _size453) = iprot.readListBegin() - for _i457 in xrange(_size453): - _elem458 = PartitionValuesRow() - _elem458.read(iprot) - self.partitionValues.append(_elem458) + (_etype470, _size467) = iprot.readListBegin() + for _i471 in xrange(_size467): + _elem472 = PartitionValuesRow() + _elem472.read(iprot) + self.partitionValues.append(_elem472) iprot.readListEnd() else: iprot.skip(ftype) @@ -9258,8 +9648,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 iter459 in self.partitionValues: - iter459.write(oprot) + for iter473 in self.partitionValues: + iter473.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9447,11 +9837,11 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.resourceUris = [] - (_etype463, _size460) = iprot.readListBegin() - for _i464 in xrange(_size460): - _elem465 = ResourceUri() - _elem465.read(iprot) - self.resourceUris.append(_elem465) + (_etype477, _size474) = iprot.readListBegin() + for _i478 in xrange(_size474): + _elem479 = ResourceUri() + _elem479.read(iprot) + self.resourceUris.append(_elem479) iprot.readListEnd() else: iprot.skip(ftype) @@ -9496,8 +9886,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 iter466 in self.resourceUris: - iter466.write(oprot) + for iter480 in self.resourceUris: + iter480.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9741,11 +10131,11 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.open_txns = [] - (_etype470, _size467) = iprot.readListBegin() - for _i471 in xrange(_size467): - _elem472 = TxnInfo() - _elem472.read(iprot) - self.open_txns.append(_elem472) + (_etype484, _size481) = iprot.readListBegin() + for _i485 in xrange(_size481): + _elem486 = TxnInfo() + _elem486.read(iprot) + self.open_txns.append(_elem486) iprot.readListEnd() else: iprot.skip(ftype) @@ -9766,8 +10156,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 iter473 in self.open_txns: - iter473.write(oprot) + for iter487 in self.open_txns: + iter487.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9838,10 +10228,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.open_txns = [] - (_etype477, _size474) = iprot.readListBegin() - for _i478 in xrange(_size474): - _elem479 = iprot.readI64() - self.open_txns.append(_elem479) + (_etype491, _size488) = iprot.readListBegin() + for _i492 in xrange(_size488): + _elem493 = iprot.readI64() + self.open_txns.append(_elem493) iprot.readListEnd() else: iprot.skip(ftype) @@ -9872,8 +10262,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 iter480 in self.open_txns: - oprot.writeI64(iter480) + for iter494 in self.open_txns: + oprot.writeI64(iter494) oprot.writeListEnd() oprot.writeFieldEnd() if self.min_open_txn is not None: @@ -10052,10 +10442,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txn_ids = [] - (_etype484, _size481) = iprot.readListBegin() - for _i485 in xrange(_size481): - _elem486 = iprot.readI64() - self.txn_ids.append(_elem486) + (_etype498, _size495) = iprot.readListBegin() + for _i499 in xrange(_size495): + _elem500 = iprot.readI64() + self.txn_ids.append(_elem500) iprot.readListEnd() else: iprot.skip(ftype) @@ -10072,8 +10462,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 iter487 in self.txn_ids: - oprot.writeI64(iter487) + for iter501 in self.txn_ids: + oprot.writeI64(iter501) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10194,10 +10584,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txn_ids = [] - (_etype491, _size488) = iprot.readListBegin() - for _i492 in xrange(_size488): - _elem493 = iprot.readI64() - self.txn_ids.append(_elem493) + (_etype505, _size502) = iprot.readListBegin() + for _i506 in xrange(_size502): + _elem507 = iprot.readI64() + self.txn_ids.append(_elem507) iprot.readListEnd() else: iprot.skip(ftype) @@ -10214,8 +10604,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 iter494 in self.txn_ids: - oprot.writeI64(iter494) + for iter508 in self.txn_ids: + oprot.writeI64(iter508) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10339,10 +10729,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fullTableNames = [] - (_etype498, _size495) = iprot.readListBegin() - for _i499 in xrange(_size495): - _elem500 = iprot.readString() - self.fullTableNames.append(_elem500) + (_etype512, _size509) = iprot.readListBegin() + for _i513 in xrange(_size509): + _elem514 = iprot.readString() + self.fullTableNames.append(_elem514) iprot.readListEnd() else: iprot.skip(ftype) @@ -10364,8 +10754,8 @@ def write(self, oprot): if self.fullTableNames is not None: oprot.writeFieldBegin('fullTableNames', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.fullTableNames)) - for iter501 in self.fullTableNames: - oprot.writeString(iter501) + for iter515 in self.fullTableNames: + oprot.writeString(iter515) oprot.writeListEnd() oprot.writeFieldEnd() if self.validTxnList is not None: @@ -10448,10 +10838,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.invalidWriteIds = [] - (_etype505, _size502) = iprot.readListBegin() - for _i506 in xrange(_size502): - _elem507 = iprot.readI64() - self.invalidWriteIds.append(_elem507) + (_etype519, _size516) = iprot.readListBegin() + for _i520 in xrange(_size516): + _elem521 = iprot.readI64() + self.invalidWriteIds.append(_elem521) iprot.readListEnd() else: iprot.skip(ftype) @@ -10486,8 +10876,8 @@ def write(self, oprot): if self.invalidWriteIds is not None: oprot.writeFieldBegin('invalidWriteIds', TType.LIST, 3) oprot.writeListBegin(TType.I64, len(self.invalidWriteIds)) - for iter508 in self.invalidWriteIds: - oprot.writeI64(iter508) + for iter522 in self.invalidWriteIds: + oprot.writeI64(iter522) oprot.writeListEnd() oprot.writeFieldEnd() if self.minOpenWriteId is not None: @@ -10559,11 +10949,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tblValidWriteIds = [] - (_etype512, _size509) = iprot.readListBegin() - for _i513 in xrange(_size509): - _elem514 = TableValidWriteIds() - _elem514.read(iprot) - self.tblValidWriteIds.append(_elem514) + (_etype526, _size523) = iprot.readListBegin() + for _i527 in xrange(_size523): + _elem528 = TableValidWriteIds() + _elem528.read(iprot) + self.tblValidWriteIds.append(_elem528) iprot.readListEnd() else: iprot.skip(ftype) @@ -10580,8 +10970,8 @@ def write(self, oprot): if self.tblValidWriteIds is not None: oprot.writeFieldBegin('tblValidWriteIds', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.tblValidWriteIds)) - for iter515 in self.tblValidWriteIds: - iter515.write(oprot) + for iter529 in self.tblValidWriteIds: + iter529.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10641,10 +11031,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txnIds = [] - (_etype519, _size516) = iprot.readListBegin() - for _i520 in xrange(_size516): - _elem521 = iprot.readI64() - self.txnIds.append(_elem521) + (_etype533, _size530) = iprot.readListBegin() + for _i534 in xrange(_size530): + _elem535 = iprot.readI64() + self.txnIds.append(_elem535) iprot.readListEnd() else: iprot.skip(ftype) @@ -10671,8 +11061,8 @@ def write(self, oprot): if self.txnIds is not None: oprot.writeFieldBegin('txnIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.txnIds)) - for iter522 in self.txnIds: - oprot.writeI64(iter522) + for iter536 in self.txnIds: + oprot.writeI64(iter536) oprot.writeListEnd() oprot.writeFieldEnd() if self.dbName is not None: @@ -10822,11 +11212,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txnToWriteIds = [] - (_etype526, _size523) = iprot.readListBegin() - for _i527 in xrange(_size523): - _elem528 = TxnToWriteId() - _elem528.read(iprot) - self.txnToWriteIds.append(_elem528) + (_etype540, _size537) = iprot.readListBegin() + for _i541 in xrange(_size537): + _elem542 = TxnToWriteId() + _elem542.read(iprot) + self.txnToWriteIds.append(_elem542) iprot.readListEnd() else: iprot.skip(ftype) @@ -10843,8 +11233,8 @@ def write(self, oprot): if self.txnToWriteIds is not None: oprot.writeFieldBegin('txnToWriteIds', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.txnToWriteIds)) - for iter529 in self.txnToWriteIds: - iter529.write(oprot) + for iter543 in self.txnToWriteIds: + iter543.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11072,11 +11462,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.component = [] - (_etype533, _size530) = iprot.readListBegin() - for _i534 in xrange(_size530): - _elem535 = LockComponent() - _elem535.read(iprot) - self.component.append(_elem535) + (_etype547, _size544) = iprot.readListBegin() + for _i548 in xrange(_size544): + _elem549 = LockComponent() + _elem549.read(iprot) + self.component.append(_elem549) iprot.readListEnd() else: iprot.skip(ftype) @@ -11113,8 +11503,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 iter536 in self.component: - iter536.write(oprot) + for iter550 in self.component: + iter550.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.txnid is not None: @@ -11812,11 +12202,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.locks = [] - (_etype540, _size537) = iprot.readListBegin() - for _i541 in xrange(_size537): - _elem542 = ShowLocksResponseElement() - _elem542.read(iprot) - self.locks.append(_elem542) + (_etype554, _size551) = iprot.readListBegin() + for _i555 in xrange(_size551): + _elem556 = ShowLocksResponseElement() + _elem556.read(iprot) + self.locks.append(_elem556) iprot.readListEnd() else: iprot.skip(ftype) @@ -11833,8 +12223,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 iter543 in self.locks: - iter543.write(oprot) + for iter557 in self.locks: + iter557.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12049,20 +12439,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.SET: self.aborted = set() - (_etype547, _size544) = iprot.readSetBegin() - for _i548 in xrange(_size544): - _elem549 = iprot.readI64() - self.aborted.add(_elem549) + (_etype561, _size558) = iprot.readSetBegin() + for _i562 in xrange(_size558): + _elem563 = iprot.readI64() + self.aborted.add(_elem563) iprot.readSetEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.SET: self.nosuch = set() - (_etype553, _size550) = iprot.readSetBegin() - for _i554 in xrange(_size550): - _elem555 = iprot.readI64() - self.nosuch.add(_elem555) + (_etype567, _size564) = iprot.readSetBegin() + for _i568 in xrange(_size564): + _elem569 = iprot.readI64() + self.nosuch.add(_elem569) iprot.readSetEnd() else: iprot.skip(ftype) @@ -12079,15 +12469,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 iter556 in self.aborted: - oprot.writeI64(iter556) + for iter570 in self.aborted: + oprot.writeI64(iter570) oprot.writeSetEnd() oprot.writeFieldEnd() if self.nosuch is not None: oprot.writeFieldBegin('nosuch', TType.SET, 2) oprot.writeSetBegin(TType.I64, len(self.nosuch)) - for iter557 in self.nosuch: - oprot.writeI64(iter557) + for iter571 in self.nosuch: + oprot.writeI64(iter571) oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12184,11 +12574,11 @@ def read(self, iprot): elif fid == 6: if ftype == TType.MAP: self.properties = {} - (_ktype559, _vtype560, _size558 ) = iprot.readMapBegin() - for _i562 in xrange(_size558): - _key563 = iprot.readString() - _val564 = iprot.readString() - self.properties[_key563] = _val564 + (_ktype573, _vtype574, _size572 ) = iprot.readMapBegin() + for _i576 in xrange(_size572): + _key577 = iprot.readString() + _val578 = iprot.readString() + self.properties[_key577] = _val578 iprot.readMapEnd() else: iprot.skip(ftype) @@ -12225,9 +12615,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 kiter565,viter566 in self.properties.items(): - oprot.writeString(kiter565) - oprot.writeString(viter566) + for kiter579,viter580 in self.properties.items(): + oprot.writeString(kiter579) + oprot.writeString(viter580) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12662,11 +13052,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.compacts = [] - (_etype570, _size567) = iprot.readListBegin() - for _i571 in xrange(_size567): - _elem572 = ShowCompactResponseElement() - _elem572.read(iprot) - self.compacts.append(_elem572) + (_etype584, _size581) = iprot.readListBegin() + for _i585 in xrange(_size581): + _elem586 = ShowCompactResponseElement() + _elem586.read(iprot) + self.compacts.append(_elem586) iprot.readListEnd() else: iprot.skip(ftype) @@ -12683,8 +13073,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 iter573 in self.compacts: - iter573.write(oprot) + for iter587 in self.compacts: + iter587.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12773,10 +13163,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.partitionnames = [] - (_etype577, _size574) = iprot.readListBegin() - for _i578 in xrange(_size574): - _elem579 = iprot.readString() - self.partitionnames.append(_elem579) + (_etype591, _size588) = iprot.readListBegin() + for _i592 in xrange(_size588): + _elem593 = iprot.readString() + self.partitionnames.append(_elem593) iprot.readListEnd() else: iprot.skip(ftype) @@ -12814,8 +13204,8 @@ def write(self, oprot): if self.partitionnames is not None: oprot.writeFieldBegin('partitionnames', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.partitionnames)) - for iter580 in self.partitionnames: - oprot.writeString(iter580) + for iter594 in self.partitionnames: + oprot.writeString(iter594) oprot.writeListEnd() oprot.writeFieldEnd() if self.operationType is not None: @@ -13037,10 +13427,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.SET: self.tablesUsed = set() - (_etype584, _size581) = iprot.readSetBegin() - for _i585 in xrange(_size581): - _elem586 = iprot.readString() - self.tablesUsed.add(_elem586) + (_etype598, _size595) = iprot.readSetBegin() + for _i599 in xrange(_size595): + _elem600 = iprot.readString() + self.tablesUsed.add(_elem600) iprot.readSetEnd() else: iprot.skip(ftype) @@ -13070,8 +13460,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 iter587 in self.tablesUsed: - oprot.writeString(iter587) + for iter601 in self.tablesUsed: + oprot.writeString(iter601) oprot.writeSetEnd() oprot.writeFieldEnd() if self.validTxnList is not None: @@ -13367,11 +13757,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.events = [] - (_etype591, _size588) = iprot.readListBegin() - for _i592 in xrange(_size588): - _elem593 = NotificationEvent() - _elem593.read(iprot) - self.events.append(_elem593) + (_etype605, _size602) = iprot.readListBegin() + for _i606 in xrange(_size602): + _elem607 = NotificationEvent() + _elem607.read(iprot) + self.events.append(_elem607) iprot.readListEnd() else: iprot.skip(ftype) @@ -13388,8 +13778,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 iter594 in self.events: - iter594.write(oprot) + for iter608 in self.events: + iter608.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13670,20 +14060,20 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.filesAdded = [] - (_etype598, _size595) = iprot.readListBegin() - for _i599 in xrange(_size595): - _elem600 = iprot.readString() - self.filesAdded.append(_elem600) + (_etype612, _size609) = iprot.readListBegin() + for _i613 in xrange(_size609): + _elem614 = iprot.readString() + self.filesAdded.append(_elem614) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.filesAddedChecksum = [] - (_etype604, _size601) = iprot.readListBegin() - for _i605 in xrange(_size601): - _elem606 = iprot.readString() - self.filesAddedChecksum.append(_elem606) + (_etype618, _size615) = iprot.readListBegin() + for _i619 in xrange(_size615): + _elem620 = iprot.readString() + self.filesAddedChecksum.append(_elem620) iprot.readListEnd() else: iprot.skip(ftype) @@ -13704,15 +14094,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 iter607 in self.filesAdded: - oprot.writeString(iter607) + for iter621 in self.filesAdded: + oprot.writeString(iter621) oprot.writeListEnd() oprot.writeFieldEnd() if self.filesAddedChecksum is not None: oprot.writeFieldBegin('filesAddedChecksum', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.filesAddedChecksum)) - for iter608 in self.filesAddedChecksum: - oprot.writeString(iter608) + for iter622 in self.filesAddedChecksum: + oprot.writeString(iter622) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13867,10 +14257,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.partitionVals = [] - (_etype612, _size609) = iprot.readListBegin() - for _i613 in xrange(_size609): - _elem614 = iprot.readString() - self.partitionVals.append(_elem614) + (_etype626, _size623) = iprot.readListBegin() + for _i627 in xrange(_size623): + _elem628 = iprot.readString() + self.partitionVals.append(_elem628) iprot.readListEnd() else: iprot.skip(ftype) @@ -13903,8 +14293,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 iter615 in self.partitionVals: - oprot.writeString(iter615) + for iter629 in self.partitionVals: + oprot.writeString(iter629) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14091,12 +14481,12 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype617, _vtype618, _size616 ) = iprot.readMapBegin() - for _i620 in xrange(_size616): - _key621 = iprot.readI64() - _val622 = MetadataPpdResult() - _val622.read(iprot) - self.metadata[_key621] = _val622 + (_ktype631, _vtype632, _size630 ) = iprot.readMapBegin() + for _i634 in xrange(_size630): + _key635 = iprot.readI64() + _val636 = MetadataPpdResult() + _val636.read(iprot) + self.metadata[_key635] = _val636 iprot.readMapEnd() else: iprot.skip(ftype) @@ -14118,9 +14508,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 kiter623,viter624 in self.metadata.items(): - oprot.writeI64(kiter623) - viter624.write(oprot) + for kiter637,viter638 in self.metadata.items(): + oprot.writeI64(kiter637) + viter638.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -14190,10 +14580,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype628, _size625) = iprot.readListBegin() - for _i629 in xrange(_size625): - _elem630 = iprot.readI64() - self.fileIds.append(_elem630) + (_etype642, _size639) = iprot.readListBegin() + for _i643 in xrange(_size639): + _elem644 = iprot.readI64() + self.fileIds.append(_elem644) iprot.readListEnd() else: iprot.skip(ftype) @@ -14225,8 +14615,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 iter631 in self.fileIds: - oprot.writeI64(iter631) + for iter645 in self.fileIds: + oprot.writeI64(iter645) oprot.writeListEnd() oprot.writeFieldEnd() if self.expr is not None: @@ -14300,11 +14690,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype633, _vtype634, _size632 ) = iprot.readMapBegin() - for _i636 in xrange(_size632): - _key637 = iprot.readI64() - _val638 = iprot.readString() - self.metadata[_key637] = _val638 + (_ktype647, _vtype648, _size646 ) = iprot.readMapBegin() + for _i650 in xrange(_size646): + _key651 = iprot.readI64() + _val652 = iprot.readString() + self.metadata[_key651] = _val652 iprot.readMapEnd() else: iprot.skip(ftype) @@ -14326,9 +14716,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 kiter639,viter640 in self.metadata.items(): - oprot.writeI64(kiter639) - oprot.writeString(viter640) + for kiter653,viter654 in self.metadata.items(): + oprot.writeI64(kiter653) + oprot.writeString(viter654) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -14389,10 +14779,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype644, _size641) = iprot.readListBegin() - for _i645 in xrange(_size641): - _elem646 = iprot.readI64() - self.fileIds.append(_elem646) + (_etype658, _size655) = iprot.readListBegin() + for _i659 in xrange(_size655): + _elem660 = iprot.readI64() + self.fileIds.append(_elem660) iprot.readListEnd() else: iprot.skip(ftype) @@ -14409,8 +14799,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 iter647 in self.fileIds: - oprot.writeI64(iter647) + for iter661 in self.fileIds: + oprot.writeI64(iter661) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14516,20 +14906,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype651, _size648) = iprot.readListBegin() - for _i652 in xrange(_size648): - _elem653 = iprot.readI64() - self.fileIds.append(_elem653) + (_etype665, _size662) = iprot.readListBegin() + for _i666 in xrange(_size662): + _elem667 = iprot.readI64() + self.fileIds.append(_elem667) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.metadata = [] - (_etype657, _size654) = iprot.readListBegin() - for _i658 in xrange(_size654): - _elem659 = iprot.readString() - self.metadata.append(_elem659) + (_etype671, _size668) = iprot.readListBegin() + for _i672 in xrange(_size668): + _elem673 = iprot.readString() + self.metadata.append(_elem673) iprot.readListEnd() else: iprot.skip(ftype) @@ -14551,15 +14941,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 iter660 in self.fileIds: - oprot.writeI64(iter660) + for iter674 in self.fileIds: + oprot.writeI64(iter674) oprot.writeListEnd() oprot.writeFieldEnd() if self.metadata is not None: oprot.writeFieldBegin('metadata', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.metadata)) - for iter661 in self.metadata: - oprot.writeString(iter661) + for iter675 in self.metadata: + oprot.writeString(iter675) oprot.writeListEnd() oprot.writeFieldEnd() if self.type is not None: @@ -14667,10 +15057,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype665, _size662) = iprot.readListBegin() - for _i666 in xrange(_size662): - _elem667 = iprot.readI64() - self.fileIds.append(_elem667) + (_etype679, _size676) = iprot.readListBegin() + for _i680 in xrange(_size676): + _elem681 = iprot.readI64() + self.fileIds.append(_elem681) iprot.readListEnd() else: iprot.skip(ftype) @@ -14687,8 +15077,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 iter668 in self.fileIds: - oprot.writeI64(iter668) + for iter682 in self.fileIds: + oprot.writeI64(iter682) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14917,11 +15307,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.functions = [] - (_etype672, _size669) = iprot.readListBegin() - for _i673 in xrange(_size669): - _elem674 = Function() - _elem674.read(iprot) - self.functions.append(_elem674) + (_etype686, _size683) = iprot.readListBegin() + for _i687 in xrange(_size683): + _elem688 = Function() + _elem688.read(iprot) + self.functions.append(_elem688) iprot.readListEnd() else: iprot.skip(ftype) @@ -14938,8 +15328,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 iter675 in self.functions: - iter675.write(oprot) + for iter689 in self.functions: + iter689.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14991,10 +15381,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.values = [] - (_etype679, _size676) = iprot.readListBegin() - for _i680 in xrange(_size676): - _elem681 = iprot.readI32() - self.values.append(_elem681) + (_etype693, _size690) = iprot.readListBegin() + for _i694 in xrange(_size690): + _elem695 = iprot.readI32() + self.values.append(_elem695) iprot.readListEnd() else: iprot.skip(ftype) @@ -15011,8 +15401,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 iter682 in self.values: - oprot.writeI32(iter682) + for iter696 in self.values: + oprot.writeI32(iter696) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15241,10 +15631,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tblNames = [] - (_etype686, _size683) = iprot.readListBegin() - for _i687 in xrange(_size683): - _elem688 = iprot.readString() - self.tblNames.append(_elem688) + (_etype700, _size697) = iprot.readListBegin() + for _i701 in xrange(_size697): + _elem702 = iprot.readString() + self.tblNames.append(_elem702) iprot.readListEnd() else: iprot.skip(ftype) @@ -15271,8 +15661,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 iter689 in self.tblNames: - oprot.writeString(iter689) + for iter703 in self.tblNames: + oprot.writeString(iter703) oprot.writeListEnd() oprot.writeFieldEnd() if self.capabilities is not None: @@ -15332,11 +15722,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tables = [] - (_etype693, _size690) = iprot.readListBegin() - for _i694 in xrange(_size690): - _elem695 = Table() - _elem695.read(iprot) - self.tables.append(_elem695) + (_etype707, _size704) = iprot.readListBegin() + for _i708 in xrange(_size704): + _elem709 = Table() + _elem709.read(iprot) + self.tables.append(_elem709) iprot.readListEnd() else: iprot.skip(ftype) @@ -15353,8 +15743,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 iter696 in self.tables: - iter696.write(oprot) + for iter710 in self.tables: + iter710.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15652,10 +16042,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.SET: self.tablesUsed = set() - (_etype700, _size697) = iprot.readSetBegin() - for _i701 in xrange(_size697): - _elem702 = iprot.readString() - self.tablesUsed.add(_elem702) + (_etype714, _size711) = iprot.readSetBegin() + for _i715 in xrange(_size711): + _elem716 = iprot.readString() + self.tablesUsed.add(_elem716) iprot.readSetEnd() else: iprot.skip(ftype) @@ -15682,8 +16072,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 iter703 in self.tablesUsed: - oprot.writeString(iter703) + for iter717 in self.tablesUsed: + oprot.writeString(iter717) oprot.writeSetEnd() oprot.writeFieldEnd() if self.validTxnList is not None: @@ -16587,44 +16977,44 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.pools = [] - (_etype707, _size704) = iprot.readListBegin() - for _i708 in xrange(_size704): - _elem709 = WMPool() - _elem709.read(iprot) - self.pools.append(_elem709) + (_etype721, _size718) = iprot.readListBegin() + for _i722 in xrange(_size718): + _elem723 = WMPool() + _elem723.read(iprot) + self.pools.append(_elem723) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.mappings = [] - (_etype713, _size710) = iprot.readListBegin() - for _i714 in xrange(_size710): - _elem715 = WMMapping() - _elem715.read(iprot) - self.mappings.append(_elem715) + (_etype727, _size724) = iprot.readListBegin() + for _i728 in xrange(_size724): + _elem729 = WMMapping() + _elem729.read(iprot) + self.mappings.append(_elem729) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.triggers = [] - (_etype719, _size716) = iprot.readListBegin() - for _i720 in xrange(_size716): - _elem721 = WMTrigger() - _elem721.read(iprot) - self.triggers.append(_elem721) + (_etype733, _size730) = iprot.readListBegin() + for _i734 in xrange(_size730): + _elem735 = WMTrigger() + _elem735.read(iprot) + self.triggers.append(_elem735) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.poolTriggers = [] - (_etype725, _size722) = iprot.readListBegin() - for _i726 in xrange(_size722): - _elem727 = WMPoolTrigger() - _elem727.read(iprot) - self.poolTriggers.append(_elem727) + (_etype739, _size736) = iprot.readListBegin() + for _i740 in xrange(_size736): + _elem741 = WMPoolTrigger() + _elem741.read(iprot) + self.poolTriggers.append(_elem741) iprot.readListEnd() else: iprot.skip(ftype) @@ -16645,29 +17035,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 iter728 in self.pools: - iter728.write(oprot) + for iter742 in self.pools: + iter742.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 iter729 in self.mappings: - iter729.write(oprot) + for iter743 in self.mappings: + iter743.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 iter730 in self.triggers: - iter730.write(oprot) + for iter744 in self.triggers: + iter744.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 iter731 in self.poolTriggers: - iter731.write(oprot) + for iter745 in self.poolTriggers: + iter745.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17141,11 +17531,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.resourcePlans = [] - (_etype735, _size732) = iprot.readListBegin() - for _i736 in xrange(_size732): - _elem737 = WMResourcePlan() - _elem737.read(iprot) - self.resourcePlans.append(_elem737) + (_etype749, _size746) = iprot.readListBegin() + for _i750 in xrange(_size746): + _elem751 = WMResourcePlan() + _elem751.read(iprot) + self.resourcePlans.append(_elem751) iprot.readListEnd() else: iprot.skip(ftype) @@ -17162,8 +17552,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 iter738 in self.resourcePlans: - iter738.write(oprot) + for iter752 in self.resourcePlans: + iter752.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17467,20 +17857,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.errors = [] - (_etype742, _size739) = iprot.readListBegin() - for _i743 in xrange(_size739): - _elem744 = iprot.readString() - self.errors.append(_elem744) + (_etype756, _size753) = iprot.readListBegin() + for _i757 in xrange(_size753): + _elem758 = iprot.readString() + self.errors.append(_elem758) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.warnings = [] - (_etype748, _size745) = iprot.readListBegin() - for _i749 in xrange(_size745): - _elem750 = iprot.readString() - self.warnings.append(_elem750) + (_etype762, _size759) = iprot.readListBegin() + for _i763 in xrange(_size759): + _elem764 = iprot.readString() + self.warnings.append(_elem764) iprot.readListEnd() else: iprot.skip(ftype) @@ -17497,15 +17887,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 iter751 in self.errors: - oprot.writeString(iter751) + for iter765 in self.errors: + oprot.writeString(iter765) oprot.writeListEnd() oprot.writeFieldEnd() if self.warnings is not None: oprot.writeFieldBegin('warnings', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.warnings)) - for iter752 in self.warnings: - oprot.writeString(iter752) + for iter766 in self.warnings: + oprot.writeString(iter766) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18082,11 +18472,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.triggers = [] - (_etype756, _size753) = iprot.readListBegin() - for _i757 in xrange(_size753): - _elem758 = WMTrigger() - _elem758.read(iprot) - self.triggers.append(_elem758) + (_etype770, _size767) = iprot.readListBegin() + for _i771 in xrange(_size767): + _elem772 = WMTrigger() + _elem772.read(iprot) + self.triggers.append(_elem772) iprot.readListEnd() else: iprot.skip(ftype) @@ -18103,8 +18493,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 iter759 in self.triggers: - iter759.write(oprot) + for iter773 in self.triggers: + iter773.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19262,11 +19652,11 @@ def read(self, iprot): elif fid == 4: if ftype == TType.LIST: self.cols = [] - (_etype763, _size760) = iprot.readListBegin() - for _i764 in xrange(_size760): - _elem765 = FieldSchema() - _elem765.read(iprot) - self.cols.append(_elem765) + (_etype777, _size774) = iprot.readListBegin() + for _i778 in xrange(_size774): + _elem779 = FieldSchema() + _elem779.read(iprot) + self.cols.append(_elem779) iprot.readListEnd() else: iprot.skip(ftype) @@ -19326,8 +19716,8 @@ def write(self, oprot): if self.cols is not None: oprot.writeFieldBegin('cols', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.cols)) - for iter766 in self.cols: - iter766.write(oprot) + for iter780 in self.cols: + iter780.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.state is not None: @@ -19582,11 +19972,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.schemaVersions = [] - (_etype770, _size767) = iprot.readListBegin() - for _i771 in xrange(_size767): - _elem772 = SchemaVersionDescriptor() - _elem772.read(iprot) - self.schemaVersions.append(_elem772) + (_etype784, _size781) = iprot.readListBegin() + for _i785 in xrange(_size781): + _elem786 = SchemaVersionDescriptor() + _elem786.read(iprot) + self.schemaVersions.append(_elem786) iprot.readListEnd() else: iprot.skip(ftype) @@ -19603,8 +19993,8 @@ def write(self, oprot): if self.schemaVersions is not None: oprot.writeFieldBegin('schemaVersions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.schemaVersions)) - for iter773 in self.schemaVersions: - iter773.write(oprot) + for iter787 in self.schemaVersions: + iter787.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 6b6746fed9..3fac0d092b 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 @@ -381,6 +381,36 @@ class SQLDefaultConstraint ::Thrift::Struct.generate_accessors self end +class SQLCheckConstraint + include ::Thrift::Struct, ::Thrift::Struct_Union + TABLE_DB = 1 + TABLE_NAME = 2 + COLUMN_NAME = 3 + CHECK_EXPRESSION = 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'}, + CHECK_EXPRESSION => {:type => ::Thrift::Types::STRING, :name => 'check_expression'}, + 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 @@ -1644,6 +1674,43 @@ class DefaultConstraintsResponse ::Thrift::Struct.generate_accessors self end +class CheckConstraintsRequest + 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 CheckConstraintsResponse + include ::Thrift::Struct, ::Thrift::Struct_Union + CHECKCONSTRAINTS = 1 + + FIELDS = { + CHECKCONSTRAINTS => {:type => ::Thrift::Types::LIST, :name => 'checkConstraints', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLCheckConstraint}} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field checkConstraints is unset!') unless @checkConstraints + end + + ::Thrift::Struct.generate_accessors self +end + class DropConstraintRequest include ::Thrift::Struct, ::Thrift::Struct_Union DBNAME = 1 @@ -1752,6 +1819,23 @@ class AddDefaultConstraintRequest ::Thrift::Struct.generate_accessors self end +class AddCheckConstraintRequest + include ::Thrift::Struct, ::Thrift::Struct_Union + CHECKCONSTRAINTCOLS = 1 + + FIELDS = { + CHECKCONSTRAINTCOLS => {:type => ::Thrift::Types::LIST, :name => 'checkConstraintCols', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLCheckConstraint}} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field checkConstraintCols is unset!') unless @checkConstraintCols + 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 e6787c1e02..7a07b73cc7 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, defaultConstraints) - send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints) + def create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints) + send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints) recv_create_table_with_constraints() end - 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) + def send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints) + send_message('create_table_with_constraints', Create_table_with_constraints_args, :tbl => tbl, :primaryKeys => primaryKeys, :foreignKeys => foreignKeys, :uniqueConstraints => uniqueConstraints, :notNullConstraints => notNullConstraints, :defaultConstraints => defaultConstraints, :checkConstraints => checkConstraints) end def recv_create_table_with_constraints() @@ -432,6 +432,22 @@ module ThriftHiveMetastore return end + def add_check_constraint(req) + send_add_check_constraint(req) + recv_add_check_constraint() + end + + def send_add_check_constraint(req) + send_message('add_check_constraint', Add_check_constraint_args, :req => req) + end + + def recv_add_check_constraint() + result = receive_message(Add_check_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() @@ -1554,6 +1570,23 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_default_constraints failed: unknown result') end + def get_check_constraints(request) + send_get_check_constraints(request) + return recv_get_check_constraints() + end + + def send_get_check_constraints(request) + send_message('get_check_constraints', Get_check_constraints_args, :request => request) + end + + def recv_get_check_constraints() + result = receive_message(Get_check_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_check_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() @@ -3503,7 +3536,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, args.defaultConstraints) + @handler.create_table_with_constraints(args.tbl, args.primaryKeys, args.foreignKeys, args.uniqueConstraints, args.notNullConstraints, args.defaultConstraints, args.checkConstraints) rescue ::AlreadyExistsException => o1 result.o1 = o1 rescue ::InvalidObjectException => o2 @@ -3594,6 +3627,19 @@ module ThriftHiveMetastore write_result(result, oprot, 'add_default_constraint', seqid) end + def process_add_check_constraint(seqid, iprot, oprot) + args = read_args(iprot, Add_check_constraint_args) + result = Add_check_constraint_result.new() + begin + @handler.add_check_constraint(args.req) + rescue ::NoSuchObjectException => o1 + result.o1 = o1 + rescue ::MetaException => o2 + result.o2 = o2 + end + write_result(result, oprot, 'add_check_constraint', seqid) + end + def process_drop_table(seqid, iprot, oprot) args = read_args(iprot, Drop_table_args) result = Drop_table_result.new() @@ -4476,6 +4522,19 @@ module ThriftHiveMetastore write_result(result, oprot, 'get_default_constraints', seqid) end + def process_get_check_constraints(seqid, iprot, oprot) + args = read_args(iprot, Get_check_constraints_args) + result = Get_check_constraints_result.new() + begin + result.success = @handler.get_check_constraints(args.request) + rescue ::MetaException => o1 + result.o1 = o1 + rescue ::NoSuchObjectException => o2 + result.o2 = o2 + end + write_result(result, oprot, 'get_check_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() @@ -6376,6 +6435,7 @@ module ThriftHiveMetastore UNIQUECONSTRAINTS = 4 NOTNULLCONSTRAINTS = 5 DEFAULTCONSTRAINTS = 6 + CHECKCONSTRAINTS = 7 FIELDS = { TBL => {:type => ::Thrift::Types::STRUCT, :name => 'tbl', :class => ::Table}, @@ -6383,7 +6443,8 @@ module ThriftHiveMetastore 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}}, - DEFAULTCONSTRAINTS => {:type => ::Thrift::Types::LIST, :name => 'defaultConstraints', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLDefaultConstraint}} + DEFAULTCONSTRAINTS => {:type => ::Thrift::Types::LIST, :name => 'defaultConstraints', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLDefaultConstraint}}, + CHECKCONSTRAINTS => {:type => ::Thrift::Types::LIST, :name => 'checkConstraints', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLCheckConstraint}} } def struct_fields; FIELDS; end @@ -6620,6 +6681,40 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Add_check_constraint_args + include ::Thrift::Struct, ::Thrift::Struct_Union + REQ = 1 + + FIELDS = { + REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::AddCheckConstraintRequest} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Add_check_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 @@ -9242,6 +9337,42 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Get_check_constraints_args + include ::Thrift::Struct, ::Thrift::Struct_Union + REQUEST = 1 + + FIELDS = { + REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::CheckConstraintsRequest} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_check_constraints_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O1 = 1 + O2 = 2 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CheckConstraintsResponse}, + 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 66353e769b..0ee650118e 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 @@ -1423,13 +1423,14 @@ 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, null); + create_table_core(ms, tbl, envContext, null, 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 defaultConstraints) + List notNullConstraints, List defaultConstraints, + List checkConstraints) throws AlreadyExistsException, MetaException, InvalidObjectException, NoSuchObjectException { if (!MetaStoreUtils.validateName(tbl.getTableName(), conf)) { @@ -1516,12 +1517,13 @@ private void create_table_core(final RawStore ms, final Table tbl, } if (primaryKeys == null && foreignKeys == null - && uniqueConstraints == null && notNullConstraints == null && defaultConstraints == null) { + && uniqueConstraints == null && notNullConstraints == null && defaultConstraints == null + && checkConstraints == null) { ms.createTable(tbl); } else { // Set constraint name if null before sending to listener List constraintNames = ms.createTableWithConstraints(tbl, primaryKeys, foreignKeys, - uniqueConstraints, notNullConstraints, defaultConstraints); + uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints); int primaryKeySize = 0; if (primaryKeys != null) { primaryKeySize = primaryKeys.size(); @@ -1557,6 +1559,7 @@ private void create_table_core(final RawStore ms, final Table tbl, } } } + int defaultConstraintSize = defaultConstraints.size(); if (defaultConstraints!= null) { for (int i = 0; i < defaultConstraints.size(); i++) { if (defaultConstraints.get(i).getDc_name() == null) { @@ -1565,6 +1568,16 @@ private void create_table_core(final RawStore ms, final Table tbl, } } } + if (checkConstraints!= null) { + for (int i = 0; i < checkConstraints.size(); i++) { + if (checkConstraints.get(i).getDc_name() == null) { + checkConstraints.get(i).setDc_name(constraintNames.get(primaryKeySize + foreignKeySize + + uniqueConstraintSize + + defaultConstraintSize + + notNullConstraintSize + i)); + } + } + } } if (!transactionalListeners.isEmpty()) { @@ -1660,14 +1673,15 @@ public void create_table_with_constraints(final Table tbl, final List primaryKeys, final List foreignKeys, List uniqueConstraints, List notNullConstraints, - List defaultConstraints) + List defaultConstraints, + List checkConstraints) 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, defaultConstraints); + uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints); success = true; } catch (NoSuchObjectException e) { ex = e; @@ -1994,6 +2008,58 @@ public void add_default_constraint(AddDefaultConstraintRequest req) } } + @Override + public void add_check_constraint(AddCheckConstraintRequest req) + throws MetaException, InvalidObjectException { + List checkConstraintCols= req.getCheckConstraintCols(); + String constraintName = (checkConstraintCols != null && checkConstraintCols.size() > 0) ? + checkConstraintCols.get(0).getDc_name() : "null"; + startFunction("add_check_constraint", ": " + constraintName); + boolean success = false; + Exception ex = null; + RawStore ms = getMS(); + try { + ms.openTransaction(); + List constraintNames = ms.addCheckConstraints(checkConstraintCols); + if (checkConstraintCols != null) { + for (int i = 0; i < checkConstraintCols.size(); i++) { + if (checkConstraintCols.get(i).getDc_name() == null) { + checkConstraintCols.get(i).setDc_name(constraintNames.get(i)); + } + } + } + if (transactionalListeners.size() > 0) { + if (checkConstraintCols != null && checkConstraintCols.size() > 0) { + //TODO: Even listener for check + //AddcheckConstraintEvent addcheckConstraintEvent = new AddcheckConstraintEvent(checkConstraintCols, true, this); + //for (MetaStoreEventListener transactionalListener : transactionalListeners) { + // transactionalListener.onAddNotNullConstraint(addcheckConstraintEvent); + //} + } + } + 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 (checkConstraintCols != null && checkConstraintCols.size() > 0) { + for (MetaStoreEventListener listener : listeners) { + //AddNotNullConstraintEvent addCheckConstraintEvent = new AddNotNullConstraintEvent(checkConstraintCols, true, this); + //listener.onAddCheckConstraint(addCheckConstraintEvent); + } + } + endFunction("add_check_constraint", success, ex, constraintName); + } + } + private boolean is_table_exists(RawStore ms, String dbname, String name) throws MetaException { return (ms.getTable(dbname, name) != null); @@ -7110,6 +7176,30 @@ public DefaultConstraintsResponse get_default_constraints(DefaultConstraintsRequ } return new DefaultConstraintsResponse(ret); } + + @Override + public CheckConstraintsResponse get_check_constraints(CheckConstraintsRequest request) + throws TException { + String db_name = request.getDb_name(); + String tbl_name = request.getTbl_name(); + startTableFunction("get_check_constraints", db_name, tbl_name); + List ret = null; + Exception ex = null; + try { + ret = getMS().getCheckConstraints(db_name, tbl_name); + } catch (Exception e) { + ex = e; + if (e instanceof MetaException) { + throw (MetaException) e; + } else { + throw newMetaException(e); + } + } finally { + endFunction("get_check_constraints", ret != null, ex, tbl_name); + } + return new CheckConstraintsResponse(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 1755700b0e..dfb96260e5 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 @@ -802,7 +802,8 @@ public void createTableWithConstraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, - List defaultConstraints) + List defaultConstraints, + List checkConstraints) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, TException { HiveMetaHook hook = getHook(tbl); @@ -813,7 +814,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, defaultConstraints); + uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints); if (hook != null) { hook.commitCreateTable(tbl); } @@ -861,6 +862,12 @@ public void addDefaultConstraint(List defaultConstraints) client.add_default_constraint(new AddDefaultConstraintRequest(defaultConstraints)); } + @Override + public void addCheckConstraint(List checkConstraints) throws + NoSuchObjectException, MetaException, TException { + client.add_check_constraint(new AddCheckConstraintRequest(checkConstraints)); + } + /** * @param type * @return true or false @@ -1692,6 +1699,12 @@ public void alterDatabase(String dbName, Database db) return client.get_default_constraints(req).getDefaultConstraints(); } + @Override + public List getCheckConstraints(CheckConstraintsRequest req) + throws MetaException, NoSuchObjectException, TException { + return client.get_check_constraints(req).getCheckConstraints(); + } + /** {@inheritDoc} */ @Override @Deprecated 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 f1d5066657..c69192b731 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 @@ -35,6 +35,8 @@ import org.apache.hadoop.hive.metastore.annotation.NoReconnect; import org.apache.hadoop.hive.metastore.api.AggrStats; import org.apache.hadoop.hive.metastore.api.AlreadyExistsException; +import org.apache.hadoop.hive.metastore.api.BasicTxnInfo; +import org.apache.hadoop.hive.metastore.api.CheckConstraintsRequest; import org.apache.hadoop.hive.metastore.api.CmRecycleRequest; import org.apache.hadoop.hive.metastore.api.CmRecycleResponse; import org.apache.hadoop.hive.metastore.api.ColumnStatistics; @@ -92,6 +94,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.SQLCheckConstraint; import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; @@ -1749,12 +1752,16 @@ boolean cacheFileMetadata(String dbName, String tableName, String partName, List getDefaultConstraints(DefaultConstraintsRequest request) throws MetaException, NoSuchObjectException, TException; + List getCheckConstraints(CheckConstraintsRequest request) throws MetaException, + NoSuchObjectException, TException; + void createTableWithConstraints( org.apache.hadoop.hive.metastore.api.Table tTbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, - List defaultConstraints) + List defaultConstraints, + List checkConstraints) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, TException; void dropConstraint(String dbName, String tableName, String constraintName) throws @@ -1775,6 +1782,9 @@ void addNotNullConstraint(List notNullConstraintCols) thro void addDefaultConstraint(List defaultConstraints) throws MetaException, NoSuchObjectException, TException; + void addCheckConstraint(List checkConstraints) 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 6ead20aeaf..0dcf1170a7 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.SQLCheckConstraint; import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; @@ -2343,4 +2344,64 @@ public void closeAllQueries() { return ret; } + public List getCheckConstraints(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.CHECK_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); + } + if (LOG.isDebugEnabled()){ + LOG.debug("getCheckConstraints: directsql : " + queryText); + } + 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; + SQLCheckConstraint currConstraint = new SQLCheckConstraint( + 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 1f75105b56..8032f66d84 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 @@ -118,6 +118,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.SQLCheckConstraint; import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; @@ -1103,7 +1104,7 @@ public boolean dropType(String typeName) { public List createTableWithConstraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, - List defaultConstraints) + List defaultConstraints, List checkConstraints) throws InvalidObjectException, MetaException { boolean success = false; try { @@ -1117,6 +1118,7 @@ public boolean dropType(String typeName) { constraintNames.addAll(addUniqueConstraints(uniqueConstraints, false)); constraintNames.addAll(addNotNullConstraints(notNullConstraints, false)); constraintNames.addAll(addDefaultConstraints(defaultConstraints, false)); + constraintNames.addAll(addCheckConstraints(checkConstraints, false)); success = commitTransaction(); return constraintNames; } finally { @@ -4493,6 +4495,75 @@ private static String generateColNameTypeSignature(String colName, String colTyp return addDefaultConstraints(nns, true); } + @Override + public List addCheckConstraints(List nns) + throws InvalidObjectException, MetaException { + return addCheckConstraints(nns, true); + } + + private List addCheckConstraints(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()); + if(constraintNameAlreadyExists(constraintName)) { + throw new InvalidObjectException("Constraint name already exists: " + constraintName); + } + } + 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 checkValue = nns.get(i).getCheck_expression(); + MConstraint muk = new MConstraint( + constraintName, + MConstraint.CHECK_CONSTRAINT, + 1, // Not null constraint should reference a single column + null, + null, + enableValidateRely, + parentTable, + null, + parentCD, + null, + null, + parentIntegerIndex, + checkValue); + cstrs.add(muk); + } + pm.makePersistentAll(cstrs); + return nnNames; + } + private List addDefaultConstraints(List nns, boolean retrieveCD) throws InvalidObjectException, MetaException { List nnNames = new ArrayList<>(); @@ -9449,6 +9520,16 @@ private String getPrimaryKeyConstraintName(String db_name, String tbl_name) thro } } + @Override + public List getCheckConstraints(String db_name, String tbl_name) + throws MetaException { + try { + return getCheckConstraintsInternal(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 { @@ -9470,6 +9551,68 @@ private String getPrimaryKeyConstraintName(String db_name, String tbl_name) thro }.run(false); } + protected List getCheckConstraintsInternal(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.getCheckConstraints(db_name, tbl_name); + } + + @Override + protected List getJdoResult(GetHelper> ctx) + throws MetaException, NoSuchObjectException { + return getCheckConstraintsViaJdo(db_name, tbl_name); + } + }.run(false); + } + + private List getCheckConstraintsViaJdo(String db_name, String tbl_name) + throws MetaException { + boolean commited = false; + List checkConstraints= null; + Query query = null; + try { + openTransaction(); + query = pm.newQuery(MConstraint.class, + "parentTable.tableName == tbl_name && parentTable.database.name == db_name &&" + + " constraintType == MConstraint.CHECK_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); + checkConstraints = 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; + checkConstraints.add(new SQLCheckConstraint(db_name, + tbl_name, + cols.get(currConstraint.getParentIntegerIndex()).getName(), + currConstraint.getDefaultOrCheckValue(), + currConstraint.getConstraintName(), enable, validate, rely)); + } + commited = commitTransaction(); + } finally { + if (!commited) { + rollbackTransaction(); + } + if (query != null) { + query.closeAll(); + } + } + return checkConstraints; + } + private List getDefaultConstraintsViaJdo(String db_name, String tbl_name) throws MetaException { boolean commited = false; @@ -9493,9 +9636,9 @@ private String getPrimaryKeyConstraintName(String db_name, String tbl_name) thro 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)); + tbl_name, + cols.get(currConstraint.getParentIntegerIndex()).getName(), + currConstraint.getDefaultOrCheckValue(), 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 b079f8baad..2a5bc90361 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 @@ -68,6 +68,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.SQLCheckConstraint; import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; @@ -733,10 +734,14 @@ void getFileMetadataByExpr(List fileIds, FileMetadataExprType type, byte[] List getDefaultConstraints(String db_name, String tbl_name) throws MetaException; + List getCheckConstraints(String db_name, + String tbl_name) throws MetaException; + List createTableWithConstraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, - List defaultConstraints) throws InvalidObjectException, MetaException; + List defaultConstraints, + List checkConstraints) throws InvalidObjectException, MetaException; void dropConstraint(String dbName, String tableName, String constraintName) throws NoSuchObjectException; @@ -750,6 +755,8 @@ void getFileMetadataByExpr(List fileIds, FileMetadataExprType type, byte[] List addDefaultConstraints(List nns) throws InvalidObjectException, MetaException; + List addCheckConstraints(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 d28b19642b..efccaec7a6 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 @@ -89,6 +89,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.SQLCheckConstraint; import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; @@ -2435,14 +2436,22 @@ public int getDatabaseCount() throws MetaException { return rawStore.getDefaultConstraints(db_name, tbl_name); } + @Override + public List getCheckConstraints(String db_name, String tbl_name) + throws MetaException { + // TODO constraintCache + return rawStore.getCheckConstraints(db_name, tbl_name); + } + @Override public List createTableWithConstraints(Table tbl, List primaryKeys, List foreignKeys, List uniqueConstraints, List notNullConstraints, - List defaultConstraints) throws InvalidObjectException, MetaException { + List defaultConstraints, + List checkConstraints) throws InvalidObjectException, MetaException { // TODO constraintCache List constraintNames = rawStore.createTableWithConstraints(tbl, primaryKeys, - foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints); + foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints); String dbName = StringUtils.normalizeIdentifier(tbl.getDbName()); String tblName = StringUtils.normalizeIdentifier(tbl.getTableName()); if (!shouldCacheTable(dbName, tblName)) { @@ -2499,6 +2508,13 @@ public void dropConstraint(String dbName, String tableName, return rawStore.addDefaultConstraints(nns); } + @Override + public List addCheckConstraints(List nns) + throws InvalidObjectException, MetaException { + // TODO constraintCache + return rawStore.addCheckConstraints(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 8c7f57fdc1..47877d5651 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 @@ -44,6 +44,7 @@ public final static int UNIQUE_CONSTRAINT = 2; public final static int NOT_NULL_CONSTRAINT = 3; public final static int DEFAULT_CONSTRAINT = 4; + public final static int CHECK_CONSTRAINT = 5; @SuppressWarnings("serial") public static class PK implements Serializable { @@ -110,10 +111,10 @@ public MConstraint(String constraintName, int constraintType, int position, Inte this.defaultValue = defaultValue; } - public String getDefaultValue() { return defaultValue; } + public String getDefaultOrCheckValue() { return defaultValue; } - public void setDefaultValue(String defaultValue) { - this.defaultValue = defaultValue; + public void setDefaultOrCheckValue(String defaultOrCheckValue) { + this.defaultValue= defaultOrCheckValue; } 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 b816eb6a5b..b6826ba43a 100644 --- a/standalone-metastore/src/main/thrift/hive_metastore.thrift +++ b/standalone-metastore/src/main/thrift/hive_metastore.thrift @@ -101,6 +101,17 @@ struct SQLDefaultConstraint { 8: bool rely_cstr // Rely/No Rely } +struct SQLCheckConstraint { + 1: string table_db, // table schema + 2: string table_name, // table name + 3: string column_name, // column name + 4: string check_expression,// check expression + 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) @@ -581,6 +592,15 @@ struct DefaultConstraintsResponse { 1: required list defaultConstraints } +struct CheckConstraintsRequest { + 1: required string db_name, + 2: required string tbl_name +} + +struct CheckConstraintsResponse { + 1: required list checkConstraints +} + struct DropConstraintRequest { 1: required string dbname, @@ -608,6 +628,10 @@ struct AddDefaultConstraintRequest { 1: required list defaultConstraintCols } +struct AddCheckConstraintRequest { + 1: required list checkConstraintCols +} + // Return type for get_partitions_by_expr struct PartitionsByExprResult { 1: required list partitions, @@ -1530,7 +1554,7 @@ service ThriftHiveMetastore extends fb303.FacebookService 4:NoSuchObjectException o4) void create_table_with_constraints(1:Table tbl, 2: list primaryKeys, 3: list foreignKeys, 4: list uniqueConstraints, 5: list notNullConstraints, - 6: list defaultConstraints) + 6: list defaultConstraints, 7: list checkConstraints) throws (1:AlreadyExistsException o1, 2:InvalidObjectException o2, 3:MetaException o3, 4:NoSuchObjectException o4) @@ -1546,6 +1570,8 @@ service ThriftHiveMetastore extends fb303.FacebookService throws(1:NoSuchObjectException o1, 2:MetaException o2) void add_default_constraint(1:AddDefaultConstraintRequest req) throws(1:NoSuchObjectException o1, 2:MetaException o2) + void add_check_constraint(1:AddCheckConstraintRequest 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 @@ -1796,6 +1822,8 @@ service ThriftHiveMetastore extends fb303.FacebookService throws(1:MetaException o1, 2:NoSuchObjectException o2) DefaultConstraintsResponse get_default_constraints(1:DefaultConstraintsRequest request) throws(1:MetaException o1, 2:NoSuchObjectException o2) + CheckConstraintsResponse get_check_constraints(1:CheckConstraintsRequest 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 5edf8b3bb8..2d813cf08d 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 @@ -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.SQLCheckConstraint; import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; @@ -881,12 +882,20 @@ public FileMetadataHandler getFileMetadataHandler(FileMetadataExprType type) { return null; } + @Override + public List getCheckConstraints(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 defaultConstraints) + List defaultConstraints, + List checkConstraints) throws InvalidObjectException, MetaException { // TODO Auto-generated method stub return null; @@ -931,6 +940,13 @@ public void dropConstraint(String dbName, String tableName, return null; } + @Override + public List addCheckConstraints(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 132cdc3c1d..d69de7c54d 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 @@ -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.SQLCheckConstraint; import org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint; import org.apache.hadoop.hive.metastore.api.SQLForeignKey; import org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint; @@ -881,12 +882,20 @@ public FileMetadataHandler getFileMetadataHandler(FileMetadataExprType type) { return null; } + @Override + public List getCheckConstraints(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 defaultConstraints) + List defaultConstraints, + List checkConstraints) throws InvalidObjectException, MetaException { // TODO Auto-generated method stub return null; @@ -933,6 +942,13 @@ public void dropConstraint(String dbName, String tableName, return null; } + @Override + public List addCheckConstraints(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");